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
673 READLINE_TEXI_INCFLAG
692 HAVE_NATIVE_GCORE_TARGET
721 INSTALL_STRIP_PROGRAM
747 MAINTAINER_MODE_FALSE
776 program_transform_name
787 ac_subst_files
='host_makefile_frag'
789 enable_option_checking
790 enable_maintainer_mode
793 with_separate_debug_dir
795 with_relocated_sources
797 with_auto_load_safe_path
825 enable_build_warnings
826 enable_gdb_build_warnings
836 with_libbabeltrace_prefix
838 ac_precious_vars
='build_alias
852 ac_subdirs_all
='testsuite
857 # Initialize some variables set by options.
859 ac_init_version
=false
860 ac_unrecognized_opts
=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
871 program_transform_name
=s
,x
,x
,
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir
='${exec_prefix}/bin'
886 sbindir
='${exec_prefix}/sbin'
887 libexecdir
='${exec_prefix}/libexec'
888 datarootdir
='${prefix}/share'
889 datadir
='${datarootdir}'
890 sysconfdir
='${prefix}/etc'
891 sharedstatedir
='${prefix}/com'
892 localstatedir
='${prefix}/var'
893 includedir
='${prefix}/include'
894 oldincludedir
='/usr/include'
895 docdir
='${datarootdir}/doc/${PACKAGE}'
896 infodir
='${datarootdir}/info'
901 libdir
='${exec_prefix}/lib'
902 localedir
='${datarootdir}/locale'
903 mandir
='${datarootdir}/man'
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\
$ac_option
917 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
927 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
929 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
932 -build |
--build |
--buil |
--bui |
--bu)
933 ac_prev
=build_alias
;;
934 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
935 build_alias
=$ac_optarg ;;
937 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
938 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
939 ac_prev
=cache_file
;;
940 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
941 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
942 cache_file
=$ac_optarg ;;
945 cache_file
=config.cache
;;
947 -datadir |
--datadir |
--datadi |
--datad)
949 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
950 datadir
=$ac_optarg ;;
952 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
953 |
--dataroo |
--dataro |
--datar)
954 ac_prev
=datarootdir
;;
955 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
956 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
957 datarootdir
=$ac_optarg ;;
959 -disable-* |
--disable-*)
960 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
963 as_fn_error
"invalid feature name: $ac_useropt"
964 ac_useropt_orig
=$ac_useropt
965 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep
=', ';;
973 eval enable_
$ac_useropt=no
;;
975 -docdir |
--docdir |
--docdi |
--doc |
--do)
977 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
980 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
982 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
985 -enable-* |
--enable-*)
986 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
989 as_fn_error
"invalid feature name: $ac_useropt"
990 ac_useropt_orig
=$ac_useropt
991 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep
=', ';;
999 eval enable_
$ac_useropt=\
$ac_optarg ;;
1001 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1002 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1003 |
--exec |
--exe |
--ex)
1004 ac_prev
=exec_prefix
;;
1005 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1006 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1007 |
--exec=* |
--exe=* |
--ex=*)
1008 exec_prefix
=$ac_optarg ;;
1010 -gas |
--gas |
--ga |
--g)
1011 # Obsolete; use --with-gas.
1014 -help |
--help |
--hel |
--he |
-h)
1015 ac_init_help
=long
;;
1016 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1017 ac_init_help
=recursive
;;
1018 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1019 ac_init_help
=short
;;
1021 -host |
--host |
--hos |
--ho)
1022 ac_prev
=host_alias
;;
1023 -host=* |
--host=* |
--hos=* |
--ho=*)
1024 host_alias
=$ac_optarg ;;
1026 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1028 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1030 htmldir
=$ac_optarg ;;
1032 -includedir |
--includedir |
--includedi |
--included |
--include \
1033 |
--includ |
--inclu |
--incl |
--inc)
1034 ac_prev
=includedir
;;
1035 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1036 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1037 includedir
=$ac_optarg ;;
1039 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1041 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1042 infodir
=$ac_optarg ;;
1044 -libdir |
--libdir |
--libdi |
--libd)
1046 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1047 libdir
=$ac_optarg ;;
1049 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1050 |
--libexe |
--libex |
--libe)
1051 ac_prev
=libexecdir
;;
1052 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1053 |
--libexe=* |
--libex=* |
--libe=*)
1054 libexecdir
=$ac_optarg ;;
1056 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1057 ac_prev
=localedir
;;
1058 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1059 localedir
=$ac_optarg ;;
1061 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1062 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1063 ac_prev
=localstatedir
;;
1064 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1065 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1066 localstatedir
=$ac_optarg ;;
1068 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1070 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1071 mandir
=$ac_optarg ;;
1073 -nfp |
--nfp |
--nf)
1074 # Obsolete; use --without-fp.
1077 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1078 |
--no-cr |
--no-c |
-n)
1081 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1082 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1085 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1086 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1087 |
--oldin |
--oldi |
--old |
--ol |
--o)
1088 ac_prev
=oldincludedir
;;
1089 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1090 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1091 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1092 oldincludedir
=$ac_optarg ;;
1094 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1096 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1097 prefix
=$ac_optarg ;;
1099 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1100 |
--program-pre |
--program-pr |
--program-p)
1101 ac_prev
=program_prefix
;;
1102 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1103 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1104 program_prefix
=$ac_optarg ;;
1106 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1107 |
--program-suf |
--program-su |
--program-s)
1108 ac_prev
=program_suffix
;;
1109 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1110 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1111 program_suffix
=$ac_optarg ;;
1113 -program-transform-name |
--program-transform-name \
1114 |
--program-transform-nam |
--program-transform-na \
1115 |
--program-transform-n |
--program-transform- \
1116 |
--program-transform |
--program-transfor \
1117 |
--program-transfo |
--program-transf \
1118 |
--program-trans |
--program-tran \
1119 |
--progr-tra |
--program-tr |
--program-t)
1120 ac_prev
=program_transform_name
;;
1121 -program-transform-name=* |
--program-transform-name=* \
1122 |
--program-transform-nam=* |
--program-transform-na=* \
1123 |
--program-transform-n=* |
--program-transform-=* \
1124 |
--program-transform=* |
--program-transfor=* \
1125 |
--program-transfo=* |
--program-transf=* \
1126 |
--program-trans=* |
--program-tran=* \
1127 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1128 program_transform_name
=$ac_optarg ;;
1130 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1132 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1133 pdfdir
=$ac_optarg ;;
1135 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1137 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1140 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1141 |
-silent |
--silent |
--silen |
--sile |
--sil)
1144 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1146 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1148 sbindir
=$ac_optarg ;;
1150 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1151 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1152 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1154 ac_prev
=sharedstatedir
;;
1155 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1156 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1157 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1159 sharedstatedir
=$ac_optarg ;;
1161 -site |
--site |
--sit)
1163 -site=* |
--site=* |
--sit=*)
1166 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1168 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1169 srcdir
=$ac_optarg ;;
1171 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1172 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1173 ac_prev
=sysconfdir
;;
1174 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1175 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1176 sysconfdir
=$ac_optarg ;;
1178 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1179 ac_prev
=target_alias
;;
1180 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1181 target_alias
=$ac_optarg ;;
1183 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1186 -version |
--version |
--versio |
--versi |
--vers |
-V)
1187 ac_init_version
=: ;;
1190 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1193 as_fn_error
"invalid package name: $ac_useropt"
1194 ac_useropt_orig
=$ac_useropt
1195 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep
=', ';;
1203 eval with_
$ac_useropt=\
$ac_optarg ;;
1205 -without-* |
--without-*)
1206 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1209 as_fn_error
"invalid package name: $ac_useropt"
1210 ac_useropt_orig
=$ac_useropt
1211 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep
=', ';;
1219 eval with_
$ac_useropt=no
;;
1222 # Obsolete; use --with-x.
1225 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1226 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1227 ac_prev
=x_includes
;;
1228 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1229 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1230 x_includes
=$ac_optarg ;;
1232 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1233 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1234 ac_prev
=x_libraries
;;
1235 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1236 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1237 x_libraries
=$ac_optarg ;;
1239 -*) as_fn_error
"unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information."
1244 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1248 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1250 eval $ac_envvar=\
$ac_optarg
1251 export $ac_envvar ;;
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1264 if test -n "$ac_prev"; then
1265 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error
"missing argument to $ac_option"
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1272 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 # Check all directory arguments for consistency.
1278 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val
=\$
$ac_var
1284 # Remove trailing slashes.
1287 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\
$ac_val;;
1290 # Be sure to have absolute directory names.
1292 [\\/$
]* | ?
:[\\/]* ) continue;;
1293 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1295 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1303 target
=$target_alias
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x
; then
1307 if test "x$build_alias" = x
; then
1308 cross_compiling
=maybe
1309 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used." >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1317 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1319 test "$silent" = yes && exec 6>/dev
/null
1322 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di
=`ls -di .` &&
1324 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error
"working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error
"pwd does not report name of working directory"
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted
=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir
=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1362 ac_srcdir_defaulted
=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1366 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1368 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1380 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 for ac_var
in $ac_precious_vars; do
1383 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1385 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1396 \`configure' configures this package to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1459 --x-includes=DIR X include files are
in DIR
1460 --x-libraries=DIR X library files are
in DIR
1463 --build=BUILD configure
for building on BUILD
[guessed
]
1464 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1465 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1469 if test -n "$ac_init_help"; then
1474 --disable-option-checking ignore unrecognized
--enable/--with options
1475 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1476 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1477 --enable-maintainer-mode enable make rules and dependencies not useful
1478 (and sometimes confusing
) to the casual installer
1479 --enable-plugins Enable support
for plugins
(defaults no
)
1480 --disable-largefile omit support
for large files
1481 --enable-targets=TARGETS
1482 alternative target configurations
1483 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1484 --disable-gdbcli disable command-line interface
(CLI
)
1485 --disable-gdbmi disable machine-interface
(MI
)
1486 --enable-tui enable full-screen terminal user interface
(TUI
)
1487 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1488 --enable-profiling enable profiling of GDB
1489 --disable-rpath do not hardcode runtime library paths
1490 --enable-libmcheck Try linking with
-lmcheck if available
1491 --enable-werror treat compile warnings as errors
1492 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1493 --enable-gdb-build-warnings
1494 enable GDB specific build-time compiler warnings
if
1496 --enable-sim link gdb with simulator
1497 --enable-multi-ice build the multi-ice-gdb-server
1498 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1502 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1503 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1504 --with-separate-debug-dir=PATH
1505 look for global separate debug info
in this path
1507 --with-gdb-datadir=PATH
look for global separate data files
in this path
1509 --with-relocated-sources=PATH
1510 automatically relocate this path
for source files
1511 --with-auto-load-dir=PATH
1512 directories from
which to load auto-loaded scripts
1513 [$debugdir:$datadir/auto-load
]
1514 --with-auto-load-safe-path=PATH
1515 directories safe to hold auto-loaded files
1516 [--with-auto-load-dir]
1517 --without-auto-load-safe-path
1518 do not restrict auto-loaded files locations
1519 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1520 --with-curses use the curses library instead of the termcap
1522 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1523 --with-bugurl=URL Direct users to URL to report a bug
1524 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1525 --with-libiconv-prefix=DIR
1526 search
for libiconv
in DIR
/include and DIR
/lib
1527 --with-iconv-bin=PATH specify where to
find the
iconv program
1528 --with-system-readline use installed readline library
1529 --with-jit-reader-dir=PATH
1530 directory to load the JIT readers from
1531 --with-expat include expat support
(auto
/yes
/no
)
1532 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1533 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1534 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1535 --with-python[=PYTHON] include python support
1536 (auto/yes/no/<python-program>)
1537 --with-guile[=GUILE] include guile support
1538 (auto/yes/no/<guile-version>/<pkg-config-program>)
1539 --without-included-regex
1540 don't use included regex
; this is the default on
1541 systems with version
2 of the GNU C library
(use
1542 with caution on other system
)
1543 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1544 --with-system-gdbinit=PATH
1545 automatically load a system-wide gdbinit
file
1546 --with-lzma support lzma compression
(auto
/yes
/no
)
1547 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1548 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1549 --with-tcl directory containing tcl configuration (tclConfig.sh)
1550 --with-tk directory containing tk configuration (tkConfig.sh)
1551 --with-x use the X Window System
1552 --with-babeltrace include babeltrace support (auto/yes/no)
1553 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1554 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1556 Some influential environment variables
:
1557 CC C compiler
command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1560 nonstandard directory
<lib dir
>
1561 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1562 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1563 you have headers
in a nonstandard directory
<include dir
>
1565 MAKEINFO Parent configure detects
if it is of sufficient version.
1567 Parameters
for MAKEINFO.
1568 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1569 the first program found out of: `bison
-y', `byacc', `yacc'.
1570 YFLAGS The list of arguments that will be passed by default to $YACC.
1571 This script will default YFLAGS to the empty string to avoid a
1572 default value of `-d' given by some make applications.
1573 XMKMF Path to xmkmf, Makefile generator for X Window System
1575 Use these variables to override the choices made by `configure' or to
help
1576 it to
find libraries and programs with nonstandard names
/locations.
1578 Report bugs to the package provider.
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1592 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1594 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1599 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1602 ac_abs_top_builddir
=$ac_pwd
1603 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir
=$ac_top_build_prefix
1608 .
) # We are building in place.
1610 ac_top_srcdir
=$ac_top_builddir_sub
1611 ac_abs_top_srcdir
=$ac_pwd ;;
1612 [\\/]* | ?
:[\\/]* ) # Absolute name.
1613 ac_srcdir
=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir
=$srcdir
1615 ac_abs_top_srcdir
=$srcdir ;;
1617 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1621 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1623 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1642 generated by GNU Autoconf
2.64
1644 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1645 This configure
script is free software
; the Free Software Foundation
1646 gives unlimited permission to copy
, distribute and modify it.
1651 ## ------------------------ ##
1652 ## Autoconf initialization. ##
1653 ## ------------------------ ##
1655 # ac_fn_c_try_compile LINENO
1656 # --------------------------
1657 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_compile
()
1660 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1661 rm -f conftest.
$ac_objext
1662 if { { ac_try
="$ac_compile"
1664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_compile") 2>conftest.err
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest.$ac_objext; then :
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 } # ac_fn_c_try_compile
1693 # ac_fn_c_try_cpp LINENO
1694 # ----------------------
1695 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { { ac_try="$ac_cpp conftest.$ac_ext"
1701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1702 *) ac_try_echo
=$ac_try;;
1704 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708 if test -s conftest.err
; then
1709 grep -v '^ *+' conftest.err
>conftest.er1
1710 cat conftest.er1
>&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } >/dev
/null
&& {
1715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.
$ac_ext >&5
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1730 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1733 # the include files in INCLUDES and setting the cache variable VAR
1735 ac_fn_c_check_header_mongrel
()
1737 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1738 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1748 # Is the header compilable?
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1750 $as_echo_n "checking $2 usability... " >&6; }
1751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1756 if ac_fn_c_try_compile
"$LINENO"; then :
1757 ac_header_compiler
=yes
1759 ac_header_compiler
=no
1761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1763 $as_echo "$ac_header_compiler" >&6; }
1765 # Is the header present?
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1767 $as_echo_n "checking $2 presence... " >&6; }
1768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1772 if ac_fn_c_try_cpp
"$LINENO"; then :
1773 ac_header_preproc
=yes
1775 ac_header_preproc
=no
1777 rm -f conftest.err conftest.
$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1779 $as_echo "$ac_header_preproc" >&6; }
1781 # So? What about this header?
1782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1785 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1787 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1791 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1793 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1795 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1797 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1805 $as_echo_n "(cached) " >&6
1807 eval "$3=\$ac_header_compiler"
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1815 } # ac_fn_c_check_header_mongrel
1817 # ac_fn_c_try_run LINENO
1818 # ----------------------
1819 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1820 # that executables *can* be run.
1823 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1824 if { { ac_try
="$ac_link"
1826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>&5
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1835 { { case "(($ac_try" in
1836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1837 *) ac_try_echo
=$ac_try;;
1839 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_try") 2>&5
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; }; }; then :
1847 $as_echo "$as_me: program exited with status $ac_status" >&5
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.
$ac_ext >&5
1851 ac_retval
=$ac_status
1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1859 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1860 # -------------------------------------------------------
1861 # Tests whether HEADER exists and can be compiled using the include files in
1862 # INCLUDES, setting the cache variable VAR accordingly.
1863 ac_fn_c_check_header_compile
()
1865 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869 $as_echo_n "(cached) " >&6
1871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1876 if ac_fn_c_try_compile
"$LINENO"; then :
1881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1888 } # ac_fn_c_check_header_compile
1890 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1891 # --------------------------------------------
1892 # Tries to find the compile-time value of EXPR in a program that includes
1893 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1895 ac_fn_c_compute_int
()
1897 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1898 if test "$cross_compiling" = yes; then
1899 # Depending upon the size, compute the lo and hi bounds.
1900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1906 static int test_array [1 - 2 * !(($2) >= 0)];
1913 if ac_fn_c_try_compile
"$LINENO"; then :
1916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1922 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1929 if ac_fn_c_try_compile
"$LINENO"; then :
1930 ac_hi
=$ac_mid; break
1932 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1933 if test $ac_lo -le $ac_mid; then
1937 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1948 static int test_array [1 - 2 * !(($2) < 0)];
1955 if ac_fn_c_try_compile
"$LINENO"; then :
1958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1964 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1971 if ac_fn_c_try_compile
"$LINENO"; then :
1972 ac_lo
=$ac_mid; break
1974 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1975 if test $ac_mid -le $ac_hi; then
1979 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1989 # Binary search between lo and hi bounds.
1990 while test "x$ac_lo" != "x$ac_hi"; do
1991 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1998 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005 if ac_fn_c_try_compile
"$LINENO"; then :
2008 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2013 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2020 static long int longval () { return $2; }
2021 static unsigned long int ulongval () { return $2; }
2028 FILE *f = fopen ("conftest.val", "w");
2033 long int i = longval ();
2036 fprintf (f, "%ld", i);
2040 unsigned long int i = ulongval ();
2043 fprintf (f, "%lu", i);
2045 /* Do not output a trailing newline, as this causes \r\n confusion
2046 on some platforms. */
2047 return ferror (f) || fclose (f) != 0;
2053 if ac_fn_c_try_run
"$LINENO"; then :
2054 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2059 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2066 } # ac_fn_c_compute_int
2068 # ac_fn_c_try_link LINENO
2069 # -----------------------
2070 # Try to link conftest.$ac_ext, and return whether this succeeded.
2073 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2074 rm -f conftest.
$ac_objext conftest
$ac_exeext
2075 if { { ac_try
="$ac_link"
2077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_link") 2>conftest.err
2084 if test -s conftest.err; then
2085 grep -v '^ *+' conftest.err >conftest.er1
2086 cat conftest.er1 >&5
2087 mv -f conftest.er1 conftest.err
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; } && {
2091 test -z "$ac_c_werror_flag" ||
2092 test ! -s conftest.err
2093 } && test -s conftest$ac_exeext && {
2094 test "$cross_compiling" = yes ||
2095 $as_test_x conftest$ac_exeext
2099 $as_echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2104 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2105 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2106 # interfere with the next link command; also delete a directory that is
2107 # left behind by Apple's compiler. We do this before executing the actions.
2108 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 } # ac_fn_c_try_link
2114 # ac_fn_c_check_func LINENO FUNC VAR
2115 # ----------------------------------
2116 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2117 ac_fn_c_check_func ()
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121 $as_echo_n "checking for $2... " >&6; }
2122 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123 $as_echo_n "(cached) " >&6
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2129 #define $2 innocuous_$2
2131 /* System header to define __stub macros and hopefully few prototypes,
2132 which can conflict with char $2 (); below.
2133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2134 <limits.h> exists even on freestanding compilers. */
2137 # include <limits.h>
2139 # include <assert.h>
2144 /* Override any GCC internal prototype to avoid an error.
2145 Use char because int might match the return type of a GCC
2146 builtin and then its argument prototype would still apply. */
2151 /* The GNU C library defines this for functions which it implements
2152 to always fail with ENOSYS. Some functions are actually named
2153 something starting with __ and the normal name is an alias. */
2154 #if defined __stub_$2 || defined __stub___$2
2166 if ac_fn_c_try_link "$LINENO"; then :
2171 rm -f core conftest.err conftest.$ac_objext \
2172 conftest$ac_exeext conftest.$ac_ext
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2179 } # ac_fn_c_check_func
2181 # ac_fn_c_check_decl LINENO SYMBOL VAR
2182 # ------------------------------------
2183 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2184 ac_fn_c_check_decl ()
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2188 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2190 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2191 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2192 $as_echo_n "(cached) " >&6
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 #ifndef $as_decl_name
2202 (void) $as_decl_use;
2204 (void) $as_decl_name;
2212 if ac_fn_c_try_compile "$LINENO"; then :
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2224 } # ac_fn_c_check_decl
2226 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2227 # ----------------------------------------------------
2228 # Tries to find if the field MEMBER exists in type AGGR, after including
2229 # INCLUDES, setting cache variable VAR accordingly.
2230 ac_fn_c_check_member ()
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2234 $as_echo_n "checking for $2.$3... " >&6; }
2235 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2251 if ac_fn_c_try_compile "$LINENO"; then :
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2261 if (sizeof ac_aggr.$3)
2267 if ac_fn_c_try_compile "$LINENO"; then :
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2281 } # ac_fn_c_check_member
2283 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2284 # -------------------------------------------
2285 # Tests whether TYPE exists after having included INCLUDES, setting cache
2286 # variable VAR accordingly.
2287 ac_fn_c_check_type ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2291 $as_echo_n "checking for $2... " >&6; }
2292 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2293 $as_echo_n "(cached) " >&6
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2321 if ac_fn_c_try_compile "$LINENO"; then :
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2335 } # ac_fn_c_check_type
2336 cat >config.log <<_ACEOF
2337 This file contains any messages produced by compilers while
2338 running configure, to aid debugging if configure makes a mistake.
2340 It was created by $as_me, which was
2341 generated by GNU Autoconf 2.64. Invocation command line was
2353 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2354 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2355 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2356 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2357 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2359 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2360 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2362 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2363 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2364 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2365 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2366 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2367 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2368 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 $as_echo "PATH: $as_dir"
2393 # Keep a trace of the command line.
2394 # Strip out --no-create and --no-recursion so they do not pile up.
2395 # Strip out --silent because we don't want to record it for future runs.
2396 # Also quote any args containing shell meta-characters.
2397 # Make two passes to allow for proper duplicate-argument suppression.
2401 ac_must_keep_next=false
2407 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2409 | -silent | --silent | --silen | --sile | --sil)
2412 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2415 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2417 as_fn_append ac_configure_args1 " '$ac_arg'"
2418 if test $ac_must_keep_next = true; then
2419 ac_must_keep_next=false # Got value, back to normal.
2422 *=* | --config-cache | -C | -disable-* | --disable-* \
2423 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2424 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2425 | -with-* | --with-* | -without-* | --without-* | --x)
2426 case "$ac_configure_args0 " in
2427 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2430 -* ) ac_must_keep_next=true ;;
2433 as_fn_append ac_configure_args " '$ac_arg'"
2438 { ac_configure_args0=; unset ac_configure_args0;}
2439 { ac_configure_args1=; unset ac_configure_args1;}
2441 # When interrupted or exit'd, cleanup temporary files, and complete
2442 # config.log. We remove comments because anyway the quotes in there
2443 # would cause problems or look ugly.
2444 # WARNING: Use '\'' to represent an apostrophe within the trap.
2445 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2446 trap 'exit_status=$?
2447 # Save into config.log some information that might help in debugging.
2452 ## ---------------- ##
2453 ## Cache variables. ##
2454 ## ---------------- ##
2457 # The following way of writing the cache mishandles newlines in values,
2459 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2460 eval ac_val=\$$ac_var
2464 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2465 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2468 _ | IFS | as_nl) ;; #(
2469 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2470 *) { eval $ac_var=; unset $ac_var;} ;;
2475 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2476 *${as_nl}ac_space=\ *)
2478 "s/'\''/'\''\\\\'\'''\''/g;
2479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2490 ## ----------------- ##
2491 ## Output variables. ##
2492 ## ----------------- ##
2495 for ac_var in $ac_subst_vars
2497 eval ac_val=\$$ac_var
2499 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2501 $as_echo "$ac_var='\''$ac_val'\''"
2505 if test -n "$ac_subst_files"; then
2507 ## ------------------- ##
2508 ## File substitutions. ##
2509 ## ------------------- ##
2512 for ac_var in $ac_subst_files
2514 eval ac_val=\$$ac_var
2516 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2518 $as_echo "$ac_var='\''$ac_val'\''"
2523 if test -s confdefs.h; then
2533 test "$ac_signal" != 0 &&
2534 $as_echo "$as_me: caught signal $ac_signal"
2535 $as_echo "$as_me: exit $exit_status"
2537 rm -f core *.core core.conftest.* &&
2538 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2541 for ac_signal in 1 2 13 15; do
2542 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2547 rm -f -r conftest* confdefs.h
2549 $as_echo "/* confdefs.h */" > confdefs.h
2551 # Predefined preprocessor variables.
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_NAME "$PACKAGE_NAME"
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_STRING "$PACKAGE_STRING"
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_URL "$PACKAGE_URL"
2578 # Let the site file select an alternate cache file if it wants to.
2579 # Prefer an explicitly selected file to automatically selected ones.
2582 if test -n "$CONFIG_SITE"; then
2583 ac_site_file1=$CONFIG_SITE
2584 elif test "x$prefix" != xNONE; then
2585 ac_site_file1=$prefix/share/config.site
2586 ac_site_file2=$prefix/etc/config.site
2588 ac_site_file1=$ac_default_prefix/share/config.site
2589 ac_site_file2=$ac_default_prefix/etc/config.site
2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2593 test "x$ac_site_file" = xNONE && continue
2594 if test -r "$ac_site_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2597 sed 's/^/| /' "$ac_site_file" >&5
2602 if test -r "$cache_file"; then
2603 # Some versions of bash will fail to source /dev/null (special
2604 # files actually), so we avoid doing that.
2605 if test -f "$cache_file"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2607 $as_echo "$as_me: loading cache $cache_file" >&6;}
2609 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2610 *) . "./$cache_file";;
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2615 $as_echo "$as_me: creating cache $cache_file" >&6;}
2619 # Check that the precious variables saved in the cache have kept the same
2621 ac_cache_corrupted=false
2622 for ac_var in $ac_precious_vars; do
2623 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2624 eval ac_new_set=\$ac_env_${ac_var}_set
2625 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2626 eval ac_new_val=\$ac_env_${ac_var}_value
2627 case $ac_old_set,$ac_new_set in
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2630 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2634 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2638 if test "x$ac_old_val" != "x$ac_new_val"; then
2639 # differences in whitespace do not lead to failure.
2640 ac_old_val_w=`echo x
$ac_old_val`
2641 ac_new_val_w=`echo x
$ac_new_val`
2642 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2644 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2645 ac_cache_corrupted=:
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2648 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2649 eval $ac_var=\$ac_old_val
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2652 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2654 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2657 # Pass precious variables to config.status.
2658 if test "$ac_new_set" = set; then
2660 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2661 *) ac_arg=$ac_var=$ac_new_val ;;
2663 case " $ac_configure_args " in
2664 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2665 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2669 if $ac_cache_corrupted; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2673 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2674 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2676 ## -------------------- ##
2677 ## Main body of script. ##
2678 ## -------------------- ##
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 ac_config_headers="$ac_config_headers config.h:config.in"
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2694 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2695 # Check whether --enable-maintainer-mode was given.
2696 if test "${enable_maintainer_mode+set}" = set; then :
2697 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2699 USE_MAINTAINER_MODE=no
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2703 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2704 if test $USE_MAINTAINER_MODE = yes; then
2705 MAINTAINER_MODE_TRUE=
2706 MAINTAINER_MODE_FALSE='#'
2708 MAINTAINER_MODE_TRUE='#'
2709 MAINTAINER_MODE_FALSE=
2712 MAINT=$MAINTAINER_MODE_TRUE
2716 # Set the 'development' global.
2717 . $srcdir/../bfd/development.sh
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2763 if test -z "$ac_cv_prog_CC"; then
2765 # Extract the first word of "gcc", so it can be a program name with args.
2766 set dummy gcc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2772 if test -n "$ac_ct_CC"; then
2773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_ac_ct_CC="gcc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2795 $as_echo "$ac_ct_CC" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2801 if test "x$ac_ct_CC" = x; then
2804 case $cross_compiling:$ac_tool_warned in
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808 ac_tool_warned=yes ;;
2816 if test -z "$CC"; then
2817 if test -n "$ac_tool_prefix"; then
2818 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2819 set dummy ${ac_tool_prefix}cc; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_CC+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_CC="${ac_tool_prefix}cc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 if test -n "$CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2848 $as_echo "$CC" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2857 if test -z "$CC"; then
2858 # Extract the first word of "cc", so it can be a program name with args.
2859 set dummy cc; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_CC+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2865 if test -n "$CC"; then
2866 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2877 ac_prog_rejected=yes
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 if test $ac_prog_rejected = yes; then
2889 # We found a bogon in the path, so make sure we never use it.
2890 set dummy $ac_cv_prog_CC
2892 if test $# != 0; then
2893 # We chose a different compiler from the bogus one.
2894 # However, it has the same basename, so the bogon will be chosen
2895 # first if we set CC to just the basename; use the full file name.
2897 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 for ac_prog in cl.exe
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 if test -n "$CC"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947 $as_echo "$CC" >&6; }
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2954 test -n "$CC" && break
2957 if test -z "$CC"; then
2959 for ac_prog in cl.exe
2961 # Extract the first word of "$ac_prog", so it can be a program name with args.
2962 set dummy $ac_prog; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$ac_ct_CC"; then
2969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_ac_ct_CC="$ac_prog"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 $as_echo "$ac_ct_CC" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2998 test -n "$ac_ct_CC" && break
3001 if test "x$ac_ct_CC" = x; then
3004 case $cross_compiling:$ac_tool_warned in
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3017 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error "no acceptable C compiler found
in \
$PATH
3020 See \
`config.log' for more details." "$LINENO" 5; }
3022 # Provide some information about the compiler.
3023 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3026 for ac_option in --version -v -V -qversion; do
3027 { { ac_try="$ac_compiler $ac_option >&5"
3029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3030 *) ac_try_echo
=$ac_try;;
3032 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3036 if test -s conftest.err
; then
3038 ... rest of stderr output deleted ...
3039 10q' conftest.err
>conftest.er1
3040 cat conftest.er1
>&5
3041 rm -f conftest.er1 conftest.err
3043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044 test $ac_status = 0; }
3047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3058 ac_clean_files_save
=$ac_clean_files
3059 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3060 # Try to create an executable without -o first, disregard a.out.
3061 # It will help us diagnose broken compilers, and finding out an intuition
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3064 $as_echo_n "checking for C compiler default output file name... " >&6; }
3065 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3067 # The possible output files:
3068 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3071 for ac_file
in $ac_files
3074 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3075 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3080 if { { ac_try
="$ac_link_default"
3082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_link_default") 2>&5
3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }; then :
3091 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3092 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3093 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3094 # so that the user can short-circuit this test for compilers unknown to
3096 for ac_file in $ac_files ''
3098 test -f "$ac_file" || continue
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3103 # We found the default executable, but exeext='' is most
3107 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3111 # We set ac_cv_exeext here because the later test for it is not
3112 # safe: cross compilers may not add the suffix if given an `-o'
3113 # argument, so we may need to know it at that point already.
3114 # Even if this section looks crufty: it has the advantage of
3121 test "$ac_cv_exeext" = no && ac_cv_exeext=
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3127 $as_echo "$ac_file" >&6; }
3128 if test -z "$ac_file"; then :
3129 $as_echo "$as_me: failed program was:" >&5
3130 sed 's
/^
/|
/' conftest.$ac_ext >&5
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3134 { as_fn_set_status 77
3135 as_fn_error "C compiler cannot create executables
3136 See \`config.log
' for more details." "$LINENO" 5; }; }
3138 ac_exeext=$ac_cv_exeext
3140 # Check that the compiler produces executables we can run. If not, either
3141 # the compiler is broken, or we cross compile.
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3143 $as_echo_n "checking whether the C compiler works... " >&6; }
3144 # If not cross compiling, check that we can run a simple program.
3145 if test "$cross_compiling" != yes; then
3146 if { ac_try='.
/$ac_file'
3147 { { case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153 (eval "$ac_try") 2>&5
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }; }; then
3159 if test "$cross_compiling" = maybe; then
3162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3164 as_fn_error "cannot run C compiled programs.
3165 If you meant to cross compile, use \`--host'.
3166 See \`config.log' for more details.
" "$LINENO" 5; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3171 $as_echo "yes" >&6; }
3173 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3174 ac_clean_files=$ac_clean_files_save
3175 # Check that the compiler produces executables we can run. If not, either
3176 # the compiler is broken, or we cross compile.
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3178 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3180 $as_echo "$cross_compiling" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3183 $as_echo_n "checking
for suffix of executables...
" >&6; }
3184 if { { ac_try="$ac_link"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_link") 2>&5
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3194 test $ac_status = 0; }; then :
3195 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3196 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3197 # work properly (i.e., refer to `conftest.exe'), while it won't with
3199 for ac_file in conftest.exe conftest conftest.*; do
3200 test -f "$ac_file" || continue
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3203 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error "cannot compute suffix of executables: cannot compile and link
3212 See \`config.log' for more details.
" "$LINENO" 5; }
3214 rm -f conftest$ac_cv_exeext
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3216 $as_echo "$ac_cv_exeext" >&6; }
3218 rm -f conftest.$ac_ext
3219 EXEEXT=$ac_cv_exeext
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3222 $as_echo_n "checking
for suffix of object files...
" >&6; }
3223 if test "${ac_cv_objext+set}" = set; then :
3224 $as_echo_n "(cached
) " >&6
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3237 rm -f conftest.o conftest.obj
3238 if { { ac_try="$ac_compile"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_compile") 2>&5
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 for ac_file in conftest.o conftest.obj conftest.*; do
3250 test -f "$ac_file" || continue;
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3253 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3258 $as_echo "$as_me: failed program was
:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error "cannot compute suffix of object files: cannot compile
3264 See \`config.log' for more details.
" "$LINENO" 5; }
3266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3269 $as_echo "$ac_cv_objext" >&6; }
3270 OBJEXT=$ac_cv_objext
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3273 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3274 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3275 $as_echo_n "(cached
) " >&6
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3291 if ac_fn_c_try_compile "$LINENO"; then :
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3301 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3302 if test $ac_compiler_gnu = yes; then
3307 ac_test_CFLAGS=${CFLAGS+set}
3308 ac_save_CFLAGS=$CFLAGS
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3310 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3311 if test "${ac_cv_prog_cc_g+set}" = set; then :
3312 $as_echo_n "(cached
) " >&6
3314 ac_save_c_werror_flag=$ac_c_werror_flag
3315 ac_c_werror_flag=yes
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3329 if ac_fn_c_try_compile "$LINENO"; then :
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3344 if ac_fn_c_try_compile "$LINENO"; then :
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3360 if ac_fn_c_try_compile "$LINENO"; then :
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3371 $as_echo "$ac_cv_prog_cc_g" >&6; }
3372 if test "$ac_test_CFLAGS" = set; then
3373 CFLAGS=$ac_save_CFLAGS
3374 elif test $ac_cv_prog_cc_g = yes; then
3375 if test "$GCC" = yes; then
3381 if test "$GCC" = yes; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3388 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3389 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3390 $as_echo_n "(cached
) " >&6
3392 ac_cv_prog_cc_c89=no
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3398 #include <sys/types.h>
3399 #include <sys/stat.h>
3400 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3401 struct buf { int x; };
3402 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3403 static char *e (p, i)
3409 static char *f (char * (*g) (char **, int), char **p, ...)
3414 s = g (p, va_arg (v,int));
3419 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3420 function prototypes and stuff, but not '\xHH' hex character constants.
3421 These don't provoke an error unfortunately, instead are silently treated
3422 as 'x'. The following induces an error, until -std is added to get
3423 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3424 array size at least. It's necessary to write '\x00'==0 to get something
3425 that's true only with -std. */
3426 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3429 inside strings and character constants. */
3431 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3433 int test (int i, double x);
3434 struct s1 {int (*f) (int a);};
3435 struct s2 {int (*f) (double a);};
3436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3447 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3448 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 CC="$ac_save_CC $ac_arg"
3451 if ac_fn_c_try_compile "$LINENO"; then :
3452 ac_cv_prog_cc_c89=$ac_arg
3454 rm -f core conftest.err conftest.$ac_objext
3455 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3457 rm -f conftest.$ac_ext
3462 case "x
$ac_cv_prog_cc_c89" in
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3465 $as_echo "none needed
" >&6; } ;;
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3468 $as_echo "unsupported
" >&6; } ;;
3470 CC="$CC $ac_cv_prog_cc_c89"
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3472 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3474 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3491 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3492 # On Suns, sometimes $CPP names a directory.
3493 if test -n "$CPP" && test -d "$CPP"; then
3496 if test -z "$CPP"; then
3497 if test "${ac_cv_prog_CPP+set}" = set; then :
3498 $as_echo_n "(cached
) " >&6
3500 # Double quotes because CPP needs to be expanded
3501 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3504 for ac_c_preproc_warn_flag in '' yes
3506 # Use a header file that comes with gcc, so configuring glibc
3507 # with a fresh cross-compiler works.
3508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3509 # <limits.h> exists even on freestanding compilers.
3510 # On the NeXT, cc -E runs the code through the compiler's parser,
3511 # not just through cpp. "Syntax error
" is here to catch this case.
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3515 # include <limits.h>
3517 # include <assert.h>
3521 if ac_fn_c_try_cpp "$LINENO"; then :
3524 # Broken: fails on valid input.
3527 rm -f conftest.err conftest.$ac_ext
3529 # OK, works on sane cases. Now check whether nonexistent headers
3530 # can be detected and how.
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533 #include <ac_nonexistent.h>
3535 if ac_fn_c_try_cpp "$LINENO"; then :
3536 # Broken: success on invalid input.
3539 # Passes both tests.
3543 rm -f conftest.err conftest.$ac_ext
3546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547 rm -f conftest.err conftest.$ac_ext
3548 if $ac_preproc_ok; then :
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3561 $as_echo "$CPP" >&6; }
3563 for ac_c_preproc_warn_flag in '' yes
3565 # Use a header file that comes with gcc, so configuring glibc
3566 # with a fresh cross-compiler works.
3567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568 # <limits.h> exists even on freestanding compilers.
3569 # On the NeXT, cc -E runs the code through the compiler's parser,
3570 # not just through cpp. "Syntax error
" is here to catch this case.
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3574 # include <limits.h>
3576 # include <assert.h>
3580 if ac_fn_c_try_cpp "$LINENO"; then :
3583 # Broken: fails on valid input.
3586 rm -f conftest.err conftest.$ac_ext
3588 # OK, works on sane cases. Now check whether nonexistent headers
3589 # can be detected and how.
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 #include <ac_nonexistent.h>
3594 if ac_fn_c_try_cpp "$LINENO"; then :
3595 # Broken: success on invalid input.
3598 # Passes both tests.
3602 rm -f conftest.err conftest.$ac_ext
3605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3606 rm -f conftest.err conftest.$ac_ext
3607 if $ac_preproc_ok; then :
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3613 See \`config.log' for more details.
" "$LINENO" 5; }
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3624 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3625 if test "${ac_cv_path_GREP+set}" = set; then :
3626 $as_echo_n "(cached
) " >&6
3628 if test -z "$GREP"; then
3629 ac_path_GREP_found=false
3630 # Loop through the user's path and test for each of PROGNAME-LIST
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3635 test -z "$as_dir" && as_dir=.
3636 for ac_prog in grep ggrep; do
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3639 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3640 # Check for GNU ac_path_GREP and select it if it is found.
3641 # Check for GNU $ac_path_GREP
3642 case `"$ac_path_GREP" --version 2>&1` in
3644 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3647 $as_echo_n 0123456789 >"conftest.
in"
3650 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3651 mv "conftest.tmp
" "conftest.
in"
3652 cp "conftest.
in" "conftest.
nl"
3653 $as_echo 'GREP' >> "conftest.
nl"
3654 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3655 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3656 as_fn_arith $ac_count + 1 && ac_count=$as_val
3657 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3658 # Best one so far, save it but keep looking for a better one
3659 ac_cv_path_GREP="$ac_path_GREP"
3660 ac_path_GREP_max=$ac_count
3662 # 10*(2^10) chars as input seems more than enough
3663 test $ac_count -gt 10 && break
3665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668 $ac_path_GREP_found && break 3
3673 if test -z "$ac_cv_path_GREP"; then
3674 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3677 ac_cv_path_GREP=$GREP
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3682 $as_echo "$ac_cv_path_GREP" >&6; }
3683 GREP="$ac_cv_path_GREP"
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3687 $as_echo_n "checking
for egrep...
" >&6; }
3688 if test "${ac_cv_path_EGREP+set}" = set; then :
3689 $as_echo_n "(cached
) " >&6
3691 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3692 then ac_cv_path_EGREP="$GREP -E"
3694 if test -z "$EGREP"; then
3695 ac_path_EGREP_found=false
3696 # Loop through the user's path and test for each of PROGNAME-LIST
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3701 test -z "$as_dir" && as_dir=.
3702 for ac_prog in egrep; do
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3705 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3706 # Check for GNU ac_path_EGREP and select it if it is found.
3707 # Check for GNU $ac_path_EGREP
3708 case `"$ac_path_EGREP" --version 2>&1` in
3710 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3713 $as_echo_n 0123456789 >"conftest.
in"
3716 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3717 mv "conftest.tmp
" "conftest.
in"
3718 cp "conftest.
in" "conftest.
nl"
3719 $as_echo 'EGREP' >> "conftest.
nl"
3720 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3721 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3722 as_fn_arith $ac_count + 1 && ac_count=$as_val
3723 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3724 # Best one so far, save it but keep looking for a better one
3725 ac_cv_path_EGREP="$ac_path_EGREP"
3726 ac_path_EGREP_max=$ac_count
3728 # 10*(2^10) chars as input seems more than enough
3729 test $ac_count -gt 10 && break
3731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734 $ac_path_EGREP_found && break 3
3739 if test -z "$ac_cv_path_EGREP"; then
3740 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3743 ac_cv_path_EGREP=$EGREP
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3749 $as_echo "$ac_cv_path_EGREP" >&6; }
3750 EGREP="$ac_cv_path_EGREP"
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3754 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3755 if test "${ac_cv_header_stdc+set}" = set; then :
3756 $as_echo_n "(cached
) " >&6
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774 ac_cv_header_stdc=yes
3776 ac_cv_header_stdc=no
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 if test $ac_cv_header_stdc = yes; then
3781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3787 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3788 $EGREP "memchr
" >/dev/null 2>&1; then :
3791 ac_cv_header_stdc=no
3797 if test $ac_cv_header_stdc = yes; then
3798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3804 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3805 $EGREP "free
" >/dev/null 2>&1; then :
3808 ac_cv_header_stdc=no
3814 if test $ac_cv_header_stdc = yes; then
3815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816 if test "$cross_compiling" = yes; then :
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 #if ((' ' & 0x0FF) == 0x020)
3824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3827 # define ISLOWER(c) \
3828 (('a' <= (c) && (c) <= 'i') \
3829 || ('j' <= (c) && (c) <= 'r') \
3830 || ('s' <= (c) && (c) <= 'z'))
3831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3839 for (i = 0; i < 256; i++)
3840 if (XOR (islower (i), ISLOWER (i))
3841 || toupper (i) != TOUPPER (i))
3846 if ac_fn_c_try_run "$LINENO"; then :
3849 ac_cv_header_stdc=no
3851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3852 conftest.$ac_objext conftest.beam conftest.$ac_ext
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3858 $as_echo "$ac_cv_header_stdc" >&6; }
3859 if test $ac_cv_header_stdc = yes; then
3861 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3866 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3867 inttypes.h stdint.h unistd.h
3869 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3870 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3872 eval as_val
=\$
$as_ac_Header
3873 if test "x$as_val" = x
""yes; then :
3874 cat >>confdefs.h
<<_ACEOF
3875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3884 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3885 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3892 if test "$MINIX" = yes; then
3894 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3897 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3900 $as_echo "#define _MINIX 1" >>confdefs.h
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3906 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3907 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3913 # define __EXTENSIONS__ 1
3914 $ac_includes_default
3923 if ac_fn_c_try_compile
"$LINENO"; then :
3924 ac_cv_safe_to_define___extensions__
=yes
3926 ac_cv_safe_to_define___extensions__
=no
3928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3931 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3932 test $ac_cv_safe_to_define___extensions__ = yes &&
3933 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3935 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3937 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3939 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3941 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3945 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3946 for ac_t
in install-sh
install.sh shtool
; do
3947 if test -f "$ac_dir/$ac_t"; then
3949 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3954 if test -z "$ac_aux_dir"; then
3955 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3958 # These three variables are undocumented and unsupported,
3959 # and are intended to be withdrawn in a future Autoconf release.
3960 # They can cause serious problems if a builder's source tree is in a directory
3961 # whose full name contains unusual characters.
3962 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3963 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3964 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3967 # Make sure we can run config.sub.
3968 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3969 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3972 $as_echo_n "checking build system type... " >&6; }
3973 if test "${ac_cv_build+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3976 ac_build_alias
=$build_alias
3977 test "x$ac_build_alias" = x
&&
3978 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3979 test "x$ac_build_alias" = x
&&
3980 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3981 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3982 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3986 $as_echo "$ac_cv_build" >&6; }
3987 case $ac_cv_build in
3989 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3992 ac_save_IFS
=$IFS; IFS
='-'
3998 # Remember, the first character of IFS is used to create $*,
3999 # except with old shells:
4002 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4006 $as_echo_n "checking host system type... " >&6; }
4007 if test "${ac_cv_host+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4010 if test "x$host_alias" = x
; then
4011 ac_cv_host
=$ac_cv_build
4013 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4014 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4019 $as_echo "$ac_cv_host" >&6; }
4022 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4025 ac_save_IFS
=$IFS; IFS
='-'
4031 # Remember, the first character of IFS is used to create $*,
4032 # except with old shells:
4035 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4039 $as_echo_n "checking target system type... " >&6; }
4040 if test "${ac_cv_target+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4043 if test "x$target_alias" = x
; then
4044 ac_cv_target
=$ac_cv_host
4046 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4047 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4052 $as_echo "$ac_cv_target" >&6; }
4053 case $ac_cv_target in
4055 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4057 target
=$ac_cv_target
4058 ac_save_IFS
=$IFS; IFS
='-'
4064 # Remember, the first character of IFS is used to create $*,
4065 # except with old shells:
4068 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4071 # The aliases save the names the user supplied, while $host etc.
4072 # will get canonicalized.
4073 test -n "$target_alias" &&
4074 test "$program_prefix$program_suffix$program_transform_name" = \
4076 program_prefix
=${target_alias}-
4078 # The tests for host and target for $enable_largefile require
4083 # As the $enable_largefile decision depends on --enable-plugins we must set it
4084 # even in directories otherwise not depending on the $plugins option.
4087 # Check whether --enable-plugins was given.
4088 if test "${enable_plugins+set}" = set; then :
4089 enableval
=$enable_plugins; case "${enableval}" in
4090 yes |
"") plugins
=yes ;;
4101 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4102 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4103 # are mutually exclusive; and without procfs support, the bfd/ elf module
4104 # cannot provide certain routines such as elfcore_write_prpsinfo
4105 # or elfcore_write_prstatus. So unless the user explicitly requested
4106 # large-file support through the --enable-largefile switch, disable
4107 # large-file support in favor of procfs support.
4108 test "${target}" = "${host}" -a "x$plugins" = xno \
4109 && : ${enable_largefile="no"}
4113 # Check whether --enable-largefile was given.
4114 if test "${enable_largefile+set}" = set; then :
4115 enableval
=$enable_largefile;
4118 if test "$enable_largefile" != no
; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4121 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4122 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 ac_cv_sys_largefile_CC
=no
4126 if test "$GCC" != yes; then
4129 # IRIX 6.2 and later do not support large files by default,
4130 # so use the C compiler's -n32 option if that helps.
4131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4133 #include <sys/types.h>
4134 /* Check that off_t can represent 2**63 - 1 correctly.
4135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4136 since some C++ compilers masquerading as C compilers
4137 incorrectly reject 9223372036854775807. */
4138 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4140 && LARGE_OFF_T % 2147483647 == 1)
4150 if ac_fn_c_try_compile
"$LINENO"; then :
4153 rm -f core conftest.err conftest.
$ac_objext
4155 if ac_fn_c_try_compile
"$LINENO"; then :
4156 ac_cv_sys_largefile_CC
=' -n32'; break
4158 rm -f core conftest.err conftest.
$ac_objext
4162 rm -f conftest.
$ac_ext
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4166 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4167 if test "$ac_cv_sys_largefile_CC" != no
; then
4168 CC
=$CC$ac_cv_sys_largefile_CC
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4172 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4173 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179 #include <sys/types.h>
4180 /* Check that off_t can represent 2**63 - 1 correctly.
4181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4182 since some C++ compilers masquerading as C compilers
4183 incorrectly reject 9223372036854775807. */
4184 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4186 && LARGE_OFF_T % 2147483647 == 1)
4196 if ac_fn_c_try_compile
"$LINENO"; then :
4197 ac_cv_sys_file_offset_bits
=no
; break
4199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #define _FILE_OFFSET_BITS 64
4203 #include <sys/types.h>
4204 /* Check that off_t can represent 2**63 - 1 correctly.
4205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4206 since some C++ compilers masquerading as C compilers
4207 incorrectly reject 9223372036854775807. */
4208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4210 && LARGE_OFF_T % 2147483647 == 1)
4220 if ac_fn_c_try_compile
"$LINENO"; then :
4221 ac_cv_sys_file_offset_bits
=64; break
4223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4224 ac_cv_sys_file_offset_bits
=unknown
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4229 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4230 case $ac_cv_sys_file_offset_bits in #(
4233 cat >>confdefs.h
<<_ACEOF
4234 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4239 if test $ac_cv_sys_file_offset_bits = unknown
; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4241 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4242 if test "${ac_cv_sys_large_files+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 #include <sys/types.h>
4249 /* Check that off_t can represent 2**63 - 1 correctly.
4250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4251 since some C++ compilers masquerading as C compilers
4252 incorrectly reject 9223372036854775807. */
4253 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4255 && LARGE_OFF_T % 2147483647 == 1)
4265 if ac_fn_c_try_compile
"$LINENO"; then :
4266 ac_cv_sys_large_files
=no
; break
4268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271 #define _LARGE_FILES 1
4272 #include <sys/types.h>
4273 /* Check that off_t can represent 2**63 - 1 correctly.
4274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4275 since some C++ compilers masquerading as C compilers
4276 incorrectly reject 9223372036854775807. */
4277 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4279 && LARGE_OFF_T % 2147483647 == 1)
4289 if ac_fn_c_try_compile
"$LINENO"; then :
4290 ac_cv_sys_large_files
=1; break
4292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4293 ac_cv_sys_large_files
=unknown
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4298 $as_echo "$ac_cv_sys_large_files" >&6; }
4299 case $ac_cv_sys_large_files in #(
4302 cat >>confdefs.h
<<_ACEOF
4303 #define _LARGE_FILES $ac_cv_sys_large_files
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4316 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4317 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4318 $as_echo_n "(cached) " >&6
4320 am_cv_prog_cc_stdc
=no
4322 # Don't try gcc -ansi; that turns off useful extensions and
4323 # breaks some systems' header files.
4324 # AIX -qlanglvl=ansi
4325 # Ultrix and OSF/1 -std1
4326 # HP-UX 10.20 and later -Ae
4327 # HP-UX older versions -Aa -D_HPUX_SOURCE
4328 # SVR4 -Xc -D__EXTENSIONS__
4329 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4331 CC
="$ac_save_CC $ac_arg"
4332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4336 #include <sys/types.h>
4337 #include <sys/stat.h>
4338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4339 struct buf { int x; };
4340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4341 static char *e (p, i)
4347 static char *f (char * (*g) (char **, int), char **p, ...)
4352 s = g (p, va_arg (v,int));
4356 int test (int i, double x);
4357 struct s1 {int (*f) (int a);};
4358 struct s2 {int (*f) (double a);};
4359 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4367 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4373 if ac_fn_c_try_compile
"$LINENO"; then :
4374 am_cv_prog_cc_stdc
="$ac_arg"; break
4376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4382 if test -z "$am_cv_prog_cc_stdc"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4384 $as_echo "none needed" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4387 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4389 case "x$am_cv_prog_cc_stdc" in
4391 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4394 # expand $ac_aux_dir to an absolute path
4395 am_aux_dir
=`cd $ac_aux_dir && pwd`
4397 if test x
"${install_sh}" != xset
; then
4400 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4402 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4406 # Installed binaries are usually stripped using `strip' when the user
4407 # run `make install-strip'. However `strip' might not be the right
4408 # tool to use in cross-compilation environments, therefore Automake
4409 # will honor the `STRIP' environment variable to overrule this program.
4410 if test "$cross_compiling" != no
; then
4411 if test -n "$ac_tool_prefix"; then
4412 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4413 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if test "${ac_cv_prog_STRIP+set}" = set; then :
4417 $as_echo_n "(cached) " >&6
4419 if test -n "$STRIP"; then
4420 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4426 test -z "$as_dir" && as_dir
=.
4427 for ac_exec_ext
in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 STRIP
=$ac_cv_prog_STRIP
4440 if test -n "$STRIP"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4442 $as_echo "$STRIP" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4450 if test -z "$ac_cv_prog_STRIP"; then
4452 # Extract the first word of "strip", so it can be a program name with args.
4453 set dummy strip
; ac_word
=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4459 if test -n "$ac_ct_STRIP"; then
4460 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir
=.
4467 for ac_exec_ext
in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_ac_ct_STRIP
="strip"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4480 if test -n "$ac_ct_STRIP"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4482 $as_echo "$ac_ct_STRIP" >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4488 if test "x$ac_ct_STRIP" = x
; then
4491 case $cross_compiling:$ac_tool_warned in
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned
=yes ;;
4500 STRIP
="$ac_cv_prog_STRIP"
4504 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4508 for ac_dir
in ..
"$srcdir"/..
; do
4509 for ac_t
in install-sh
install.sh shtool
; do
4510 if test -f "$ac_dir/$ac_t"; then
4512 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4517 if test -z "$ac_aux_dir"; then
4518 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4521 # These three variables are undocumented and unsupported,
4522 # and are intended to be withdrawn in a future Autoconf release.
4523 # They can cause serious problems if a builder's source tree is in a directory
4524 # whose full name contains unusual characters.
4525 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4526 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4527 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4531 test "$program_prefix" != NONE
&&
4532 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4533 # Use a double $ so make ignores it.
4534 test "$program_suffix" != NONE
&&
4535 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4536 # Double any \ or $.
4537 # By default was `s,x,x', remove it if useless.
4538 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4539 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4542 # Dependency checking.
4543 rm -rf .tst
2>/dev
/null
4544 mkdir .tst
2>/dev
/null
4545 if test -d .tst
; then
4550 rmdir .tst
2>/dev
/null
4552 DEPDIR
="${am__leading_dot}deps"
4554 ac_config_commands
="$ac_config_commands depdir"
4557 depcc
="$CC" am_compiler_list
=
4559 am_depcomp
=$ac_aux_dir/depcomp
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4561 $as_echo_n "checking dependency style of $depcc... " >&6; }
4562 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4565 if test -f "$am_depcomp"; then
4566 # We make a subdir and do the tests there. Otherwise we can end up
4567 # making bogus files that we don't know about and never remove. For
4568 # instance it was reported that on HP-UX the gcc test will end up
4569 # making a dummy file named `D' -- because `-MD' means `put the output
4572 # Copy depcomp to subdir because otherwise we won't find it if we're
4573 # using a relative directory.
4574 cp "$am_depcomp" conftest.dir
4576 # We will build objects and dependencies in a subdirectory because
4577 # it helps to detect inapplicable dependency modes. For instance
4578 # both Tru64's cc and ICC support -MD to output dependencies as a
4579 # side effect of compilation, but ICC will put the dependencies in
4580 # the current directory while Tru64 will put them in the object
4584 am_cv_CC_dependencies_compiler_type
=none
4585 if test "$am_compiler_list" = ""; then
4586 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4588 for depmode
in $am_compiler_list; do
4589 if test $depmode = none
; then break; fi
4591 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4592 # Setup a source with many dependencies, because some compilers
4593 # like to wrap large dependency lists on column 80 (with \), and
4594 # we should not choose a depcomp mode which is confused by this.
4596 # We need to recreate these files for each test, as the compiler may
4597 # overwrite some of them when testing with obscure command lines.
4598 # This happens at least with the AIX C compiler.
4600 for i
in 1 2 3 4 5 6; do
4601 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4602 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4603 # Solaris 8's {/usr,}/bin/sh.
4604 touch sub
/conftst
$i.h
4606 echo "include sub/conftest.Po" > confmf
4608 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4609 # mode. It turns out that the SunPro C++ compiler does not properly
4610 # handle `-M -o', and we need to detect this.
4611 depcmd
="depmode=$depmode \
4612 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4614 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4615 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4616 if env
$depcmd > conftest.err
2>&1 &&
4617 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4618 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4619 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4620 # icc doesn't choke on unknown options, it will just issue warnings
4621 # or remarks (even with -Werror). So we grep stderr for any message
4622 # that says an option was ignored or not supported.
4623 # When given -MP, icc 7.0 and 7.1 complain thusly:
4624 # icc: Command line warning: ignoring option '-M'; no argument required
4625 # The diagnosis changed in icc 8.0:
4626 # icc: Command line remark: option '-MP' not supported
4627 if (grep 'ignoring option' conftest.err ||
4628 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4629 am_cv_CC_dependencies_compiler_type
=$depmode
4630 $as_echo "$as_me:$LINENO: success" >&5
4634 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4635 sed -e 's/^/| /' < conftest.err
>&5
4641 am_cv_CC_dependencies_compiler_type
=none
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4646 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4647 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4648 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4649 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4654 # Check for the 'make' the user wants to use.
4657 # Extract the first word of "$ac_prog", so it can be a program name with args.
4658 set dummy
$ac_prog; ac_word
=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_prog_MAKE+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4664 if test -n "$MAKE"; then
4665 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir
=.
4672 for ac_exec_ext
in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_MAKE
="$ac_prog"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 MAKE
=$ac_cv_prog_MAKE
4685 if test -n "$MAKE"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4687 $as_echo "$MAKE" >&6; }
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4694 test -n "$MAKE" && break
4698 case "`$MAKE --version 2>&1 | sed 1q`" in
4703 if test "$MAKE_IS_GNU" = yes; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4712 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4714 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4715 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4716 $as_echo_n "(cached) " >&6
4718 cat >conftest.
make <<\_ACEOF
4721 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4724 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4726 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4728 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4732 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4734 $as_echo "yes" >&6; }
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4739 SET_MAKE
="MAKE=${MAKE-make}"
4743 # Configure gnulib. We need to build gnulib under some other
4744 # directory not "gnulib", to avoid the problem of both GDB and
4745 # GDBserver wanting to build it in the same directory, when building
4746 # in the source dir.
4749 in_build
="build-gnulib"
4751 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4752 # so they do not pile up.
4753 ac_sub_configure_args
=
4755 eval "set x $ac_configure_args"
4759 if test -n "$ac_prev"; then
4764 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
4765 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
4766 ac_prev
=cache_file
;;
4767 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
4768 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
4771 --config-cache |
-C)
4773 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
4775 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
4777 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
4779 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
4781 --disable-option-checking)
4785 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4787 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
4791 # Always prepend --prefix to ensure using the same prefix
4792 # in subdir configurations.
4793 ac_arg
="--prefix=$prefix"
4795 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4797 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
4800 if test "$silent" = yes; then
4801 ac_sub_configure_args
="--silent $ac_sub_configure_args"
4804 # Always prepend --disable-option-checking to silence warnings, since
4805 # different subdirs can have different --enable and --with options.
4806 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
4811 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4813 $as_echo "$ac_msg" >&6
4814 as_dir
="$ac_dir"; as_fn_mkdir_p
4818 ac_srcdir
=$srcdir/$in_src ;;
4820 ac_srcdir
=..
/$srcdir/$in_src ;;
4825 ac_sub_configure
=$ac_srcdir/configure
4827 # Make the cache file name correct relative to the subdirectory.
4829 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
4831 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
4834 { $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
4835 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4836 # The eval makes quoting arguments work.
4837 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4838 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4839 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4855 # If we haven't got the data from the intl directory,
4856 # assume NLS is disabled.
4865 if test -f ..
/intl
/config.intl
; then
4866 . ..
/intl
/config.intl
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4869 $as_echo_n "checking whether NLS is requested... " >&6; }
4870 if test x
"$USE_NLS" != xyes
; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4875 $as_echo "yes" >&6; }
4877 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4881 $as_echo_n "checking for catalogs to be installed... " >&6; }
4882 # Look for .po and .gmo files in the source directory.
4885 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4886 # If there aren't any .gmo files the shell will give us the
4887 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4889 case "$cat" in *\
**)
4892 # The quadruple backslash is collapsed to a double backslash
4893 # by the backticks, then collapsed again by the double quotes,
4894 # leaving us with one backslash in the sed expression (right
4895 # before the dot that mustn't act as a wildcard).
4896 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4897 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4898 # The user is allowed to set LINGUAS to a list of languages to
4899 # install catalogs for. If it's empty that means "all of them."
4900 if test "x$LINGUAS" = x
; then
4901 CATALOGS
="$CATALOGS $cat"
4902 XLINGUAS
="$XLINGUAS $lang"
4904 case "$LINGUAS" in *$lang*)
4905 CATALOGS
="$CATALOGS $cat"
4906 XLINGUAS
="$XLINGUAS $lang"
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4913 $as_echo "$LINGUAS" >&6; }
4926 localedir
='${datadir}/locale'
4929 if test x
"$USE_NLS" = xyes
; then
4930 CONFIG_ALL
="$CONFIG_ALL all-po"
4931 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4932 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4933 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4936 GNULIB
=build-gnulib
/import
4938 # For Makefile dependencies.
4940 if test x
"$STDINT_H" != x
; then
4941 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
4947 cat >>confdefs.h
<<_ACEOF
4948 #define PACKAGE "$PACKAGE"
4953 # We never need to detect it in this sub-configure.
4954 # But preserve it for config.status --recheck.
4958 MAKEINFO_EXTRA_FLAGS
=""
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4960 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4961 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4962 $as_echo_n "(cached) " >&6
4964 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4965 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4966 gdb_cv_have_makeinfo_click
=yes
4968 gdb_cv_have_makeinfo_click
=no
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4972 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4973 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
4974 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4980 # Check whether --with-separate-debug-dir was given.
4981 if test "${with_separate_debug_dir+set}" = set; then :
4982 withval
=$with_separate_debug_dir;
4985 DEBUGDIR
=${libdir}/debug
4989 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4990 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4991 ac_define_dir
=`eval echo $DEBUGDIR`
4992 ac_define_dir
=`eval echo $ac_define_dir`
4994 cat >>confdefs.h
<<_ACEOF
4995 #define DEBUGDIR "$ac_define_dir"
5001 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5002 if test "x$prefix" = xNONE
; then
5003 test_prefix
=/usr
/local
5008 test_prefix
=$exec_prefix
5011 case ${ac_define_dir} in
5012 "${test_prefix}"|
"${test_prefix}/"*|\
5013 '${exec_prefix}'|
'${exec_prefix}/'*)
5018 cat >>confdefs.h
<<_ACEOF
5019 #define DEBUGDIR_RELOCATABLE $value
5025 # We can't pass paths as command line arguments.
5026 # Mingw32 tries to be clever and will convert the paths for us.
5027 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5028 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5029 # This breaks GDB's relocatable path conversions since paths passed in
5030 # config.h would not get so translated, the path prefixes no longer match.
5032 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5033 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5034 ac_define_dir
=`eval echo $bindir`
5035 ac_define_dir
=`eval echo $ac_define_dir`
5037 cat >>confdefs.h
<<_ACEOF
5038 #define BINDIR "$ac_define_dir"
5043 # GDB's datadir relocation
5047 # Check whether --with-gdb-datadir was given.
5048 if test "${with_gdb_datadir+set}" = set; then :
5049 withval
=$with_gdb_datadir;
5050 GDB_DATADIR
=$withval
5052 GDB_DATADIR
=${datadir}/gdb
5056 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5057 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5058 ac_define_dir
=`eval echo $GDB_DATADIR`
5059 ac_define_dir
=`eval echo $ac_define_dir`
5061 cat >>confdefs.h
<<_ACEOF
5062 #define GDB_DATADIR "$ac_define_dir"
5068 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5069 if test "x$prefix" = xNONE
; then
5070 test_prefix
=/usr
/local
5075 test_prefix
=$exec_prefix
5078 case ${ac_define_dir} in
5079 "${test_prefix}"|
"${test_prefix}/"*|\
5080 '${exec_prefix}'|
'${exec_prefix}/'*)
5085 cat >>confdefs.h
<<_ACEOF
5086 #define GDB_DATADIR_RELOCATABLE $value
5093 # Check whether --with-relocated-sources was given.
5094 if test "${with_relocated_sources+set}" = set; then :
5095 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
5097 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5098 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5099 ac_define_dir
=`eval echo $reloc_srcdir`
5100 ac_define_dir
=`eval echo $ac_define_dir`
5102 cat >>confdefs.h
<<_ACEOF
5103 #define RELOC_SRCDIR "$ac_define_dir"
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5112 $as_echo_n "checking for default auto-load directory... " >&6; }
5114 # Check whether --with-auto-load-dir was given.
5115 if test "${with_auto_load_dir+set}" = set; then :
5116 withval
=$with_auto_load_dir;
5118 with_auto_load_dir
='$debugdir:$datadir/auto-load'
5121 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5123 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5124 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5125 ac_define_dir
=`eval echo $escape_dir`
5126 ac_define_dir
=`eval echo $ac_define_dir`
5128 cat >>confdefs.h
<<_ACEOF
5129 #define AUTO_LOAD_DIR "$ac_define_dir"
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5134 $as_echo "$with_auto_load_dir" >&6; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5137 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5139 # Check whether --with-auto-load-safe-path was given.
5140 if test "${with_auto_load_safe_path+set}" = set; then :
5141 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5142 with_auto_load_safe_path
="/"
5145 with_auto_load_safe_path
="$with_auto_load_dir"
5148 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5150 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5151 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5152 ac_define_dir
=`eval echo $escape_dir`
5153 ac_define_dir
=`eval echo $ac_define_dir`
5155 cat >>confdefs.h
<<_ACEOF
5156 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5161 $as_echo "$with_auto_load_safe_path" >&6; }
5165 subdirs
="$subdirs testsuite"
5168 # Check whether to support alternative target configurations
5169 # Check whether --enable-targets was given.
5170 if test "${enable_targets+set}" = set; then :
5171 enableval
=$enable_targets; case "${enableval}" in
5172 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5174 no
) enable_targets
= ;;
5175 *) enable_targets
=$enableval ;;
5180 # Check whether to enable 64-bit support on 32-bit hosts
5181 # Check whether --enable-64-bit-bfd was given.
5182 if test "${enable_64_bit_bfd+set}" = set; then :
5183 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5186 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5192 # Provide defaults for some variables set by the per-host and per-target
5194 gdb_host_obs
=posix-hdep.o
5196 if test "${target}" = "${host}"; then
5202 .
$srcdir/configure.
host
5204 # Accumulate some settings from configure.tgt over all enabled targets
5208 HAVE_NATIVE_GCORE_TARGET
=
5210 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5212 if test "$targ_alias" = "all"; then
5215 # Canonicalize the secondary target names.
5216 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5217 if test -n "$result"; then
5223 .
${srcdir}/configure.tgt
5225 if test -z "${gdb_target_obs}"; then :
5226 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5229 # Target-specific object files
5230 for i
in ${gdb_target_obs}; do
5231 case " $TARGET_OBS " in
5234 TARGET_OBS
="$TARGET_OBS ${i}"
5239 # Check whether this target needs 64-bit CORE_ADDR
5240 if test x
${want64} = xfalse
; then
5241 .
${srcdir}/..
/bfd
/config.bfd
5244 # Check whether this target is native and supports gcore.
5245 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5246 && $gdb_have_gcore; then
5247 HAVE_NATIVE_GCORE_TARGET
=1
5252 if test x
${all_targets} = xtrue
; then
5254 # We want all 64-bit targets if we either:
5255 # - run on a 64-bit host or
5256 # - already require 64-bit support for some other target or
5257 # - the --enable-64-bit-bfd option was supplied
5258 # Otherwise we only support all 32-bit targets.
5260 # NOTE: This test must be in sync with the corresponding
5263 if test x
${want64} = xfalse
; then
5264 # The cast to long int works around a bug in the HP C Compiler
5265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5267 # This bug is HP SR number 8606223364.
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5269 $as_echo_n "checking size of long... " >&6; }
5270 if test "${ac_cv_sizeof_long+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5273 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5276 if test "$ac_cv_type_long" = yes; then
5277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5279 { as_fn_set_status
77
5280 as_fn_error
"cannot compute sizeof (long)
5281 See \`config.log' for more details." "$LINENO" 5; }; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5289 $as_echo "$ac_cv_sizeof_long" >&6; }
5293 cat >>confdefs.h
<<_ACEOF
5294 #define SIZEOF_LONG $ac_cv_sizeof_long
5298 if test "x${ac_cv_sizeof_long}" = "x8"; then
5302 if test x
${want64} = xtrue
; then
5303 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5305 TARGET_OBS
='$(ALL_TARGET_OBS)'
5312 # For other settings, only the main target counts.
5316 targ
=$target; .
${srcdir}/configure.tgt
5318 # Fetch the default architecture and default target vector from BFD.
5319 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5321 # We only want the first architecture, so strip off the others if
5322 # there is more than one.
5323 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5325 if test "x$targ_archs" != x
; then
5327 cat >>confdefs.h
<<_ACEOF
5328 #define DEFAULT_BFD_ARCH $targ_archs
5332 if test "x$targ_defvec" != x
; then
5334 cat >>confdefs.h
<<_ACEOF
5335 #define DEFAULT_BFD_VEC $targ_defvec
5340 # The CLI cannot be disabled yet, but may be in the future.
5343 # Check whether --enable-gdbcli was given.
5344 if test "${enable_gdbcli+set}" = set; then :
5345 enableval
=$enable_gdbcli; case $enableval in
5349 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5351 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5357 if test x
"$enable_gdbcli" = xyes
; then
5358 if test -d $srcdir/cli
; then
5359 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5360 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5361 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5362 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5367 # Check whether --enable-gdbmi was given.
5368 if test "${enable_gdbmi+set}" = set; then :
5369 enableval
=$enable_gdbmi; case $enableval in
5373 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5379 if test x
"$enable_gdbmi" = xyes
; then
5380 if test -d $srcdir/mi
; then
5381 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5382 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5383 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5384 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5389 # Check whether --enable-tui was given.
5390 if test "${enable_tui+set}" = set; then :
5391 enableval
=$enable_tui; case $enableval in
5395 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5403 # Check whether --enable-gdbtk was given.
5404 if test "${enable_gdbtk+set}" = set; then :
5405 enableval
=$enable_gdbtk; case $enableval in
5409 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5412 if test -d $srcdir/gdbtk
; then
5419 # We unconditionally disable gdbtk tests on selected platforms.
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5423 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5427 # Libunwind support for ia64.
5430 # Check whether --with-libunwind-ia64 was given.
5431 if test "${with_libunwind_ia64+set}" = set; then :
5432 withval
=$with_libunwind_ia64;
5434 with_libunwind_ia64
=auto
5438 # Backward compatibility option.
5439 if test "${with_libunwind+set}" = set; then
5440 if test x
"$with_libunwind_ia64" != xauto
; then
5441 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5444 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5445 with_libunwind_ia64
="$with_libunwind"
5448 case "$with_libunwind_ia64" in
5452 for ac_header
in libunwind-ia64.h
5454 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5455 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5456 cat >>confdefs.h
<<_ACEOF
5457 #define HAVE_LIBUNWIND_IA64_H 1
5464 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5467 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5471 if test x
"$with_libunwind_ia64" = xyes
; then
5472 for ac_header
in libunwind-ia64.h
5474 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5475 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5476 cat >>confdefs.h
<<_ACEOF
5477 #define HAVE_LIBUNWIND_IA64_H 1
5484 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5485 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5487 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5488 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5489 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5494 # Check whether --with-curses was given.
5495 if test "${with_curses+set}" = set; then :
5496 withval
=$with_curses; opt_curses
=$withval
5501 if test "$opt_curses" = "yes"; then
5505 # Profiling support.
5506 # Check whether --enable-profiling was given.
5507 if test "${enable_profiling+set}" = set; then :
5508 enableval
=$enable_profiling; case $enableval in
5512 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5519 for ac_func
in monstartup _mcleanup
5521 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5522 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5523 eval as_val
=\$
$as_ac_var
5524 if test "x$as_val" = x
""yes; then :
5525 cat >>confdefs.h
<<_ACEOF
5526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5533 $as_echo_n "checking for _etext... " >&6; }
5534 if test "${ac_cv_var__etext+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5550 if ac_fn_c_try_link
"$LINENO"; then :
5551 ac_cv_var__etext
=yes
5555 rm -f core conftest.err conftest.
$ac_objext \
5556 conftest
$ac_exeext conftest.
$ac_ext
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5559 $as_echo "$ac_cv_var__etext" >&6; }
5560 if test $ac_cv_var__etext = yes; then
5562 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5566 $as_echo_n "checking for etext... " >&6; }
5567 if test "${ac_cv_var_etext+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5583 if ac_fn_c_try_link
"$LINENO"; then :
5588 rm -f core conftest.err conftest.
$ac_objext \
5589 conftest
$ac_exeext conftest.
$ac_ext
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5592 $as_echo "$ac_cv_var_etext" >&6; }
5593 if test $ac_cv_var_etext = yes; then
5595 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5598 if test "$enable_profiling" = yes ; then
5599 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
5600 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5603 OLD_CFLAGS
="$CFLAGS"
5604 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5607 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5608 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5622 if ac_fn_c_try_compile
"$LINENO"; then :
5623 ac_cv_cc_supports_pg
=yes
5625 ac_cv_cc_supports_pg
=no
5627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5630 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5632 if test $ac_cv_cc_supports_pg = no
; then
5633 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5636 CFLAGS
="$OLD_CFLAGS"
5641 # Check whether --with-pkgversion was given.
5642 if test "${with_pkgversion+set}" = set; then :
5643 withval
=$with_pkgversion; case "$withval" in
5644 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
5646 *) PKGVERSION
="($withval) " ;;
5657 # Check whether --with-bugurl was given.
5658 if test "${with_bugurl+set}" = set; then :
5659 withval
=$with_bugurl; case "$withval" in
5660 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
5663 *) BUGURL
="$withval"
5667 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
5677 REPORT_BUGS_TO
="<$BUGURL>"
5678 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
5685 cat >>confdefs.h
<<_ACEOF
5686 #define PKGVERSION "$PKGVERSION"
5690 cat >>confdefs.h
<<_ACEOF
5691 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5695 # --------------------- #
5696 # Checks for programs. #
5697 # --------------------- #
5699 for ac_prog
in gawk mawk nawk
awk
5701 # Extract the first word of "$ac_prog", so it can be a program name with args.
5702 set dummy
$ac_prog; ac_word
=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if test "${ac_cv_prog_AWK+set}" = set; then :
5706 $as_echo_n "(cached) " >&6
5708 if test -n "$AWK"; then
5709 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir
=.
5716 for ac_exec_ext
in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_prog_AWK
="$ac_prog"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 if test -n "$AWK"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5731 $as_echo "$AWK" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5738 test -n "$AWK" && break
5741 # Find a good install program. We prefer a C program (faster),
5742 # so one script is as good as another. But avoid the broken or
5743 # incompatible versions:
5744 # SysV /etc/install, /usr/sbin/install
5745 # SunOS /usr/etc/install
5746 # IRIX /sbin/install
5748 # AmigaOS /C/install, which installs bootblocks on floppy discs
5749 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5750 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5751 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5752 # OS/2's system install, which has a completely different semantic
5753 # ./install, which can be erroneously created by make from ./install.sh.
5754 # Reject install programs that cannot install multiple files.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5756 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5757 if test -z "$INSTALL"; then
5758 if test "${ac_cv_path_install+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5765 test -z "$as_dir" && as_dir
=.
5766 # Account for people who put trailing slashes in PATH elements.
5767 case $as_dir/ in #((
5768 .
/ | .
// |
/[cC
]/* | \
5769 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5770 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5773 # OSF1 and SCO ODT 3.0 have their own names for install.
5774 # Don't use installbsd from OSF since it installs stuff as root
5776 for ac_prog
in ginstall scoinst
install; do
5777 for ac_exec_ext
in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5779 if test $ac_prog = install &&
5780 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5781 # AIX install. It has an incompatible calling convention.
5783 elif test $ac_prog = install &&
5784 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5785 # program-specific install script used by HP pwplus--don't use.
5788 rm -rf conftest.one conftest.two conftest.dir
5789 echo one
> conftest.one
5790 echo two
> conftest.two
5792 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5793 test -s conftest.one
&& test -s conftest.two
&&
5794 test -s conftest.dir
/conftest.one
&&
5795 test -s conftest.dir
/conftest.two
5797 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5810 rm -rf conftest.one conftest.two conftest.dir
5813 if test "${ac_cv_path_install+set}" = set; then
5814 INSTALL
=$ac_cv_path_install
5816 # As a last resort, use the slow shell script. Don't cache a
5817 # value for INSTALL within a source directory, because that will
5818 # break other packages using the cache if that directory is
5819 # removed, or if the value is a relative name.
5820 INSTALL
=$ac_install_sh
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5824 $as_echo "$INSTALL" >&6; }
5826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5827 # It thinks the first close brace ends the variable substitution.
5828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5832 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5835 $as_echo_n "checking whether ln -s works... " >&6; }
5837 if test "$LN_S" = "ln -s"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5839 $as_echo "yes" >&6; }
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5842 $as_echo "no, using $LN_S" >&6; }
5845 if test -n "$ac_tool_prefix"; then
5846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5847 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5853 if test -n "$RANLIB"; then
5854 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir
=.
5861 for ac_exec_ext
in '' $ac_executable_extensions; do
5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 RANLIB
=$ac_cv_prog_RANLIB
5874 if test -n "$RANLIB"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5876 $as_echo "$RANLIB" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5884 if test -z "$ac_cv_prog_RANLIB"; then
5885 ac_ct_RANLIB
=$RANLIB
5886 # Extract the first word of "ranlib", so it can be a program name with args.
5887 set dummy ranlib
; ac_word
=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
5893 if test -n "$ac_ct_RANLIB"; then
5894 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir
=.
5901 for ac_exec_ext
in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5914 if test -n "$ac_ct_RANLIB"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5916 $as_echo "$ac_ct_RANLIB" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5922 if test "x$ac_ct_RANLIB" = x
; then
5925 case $cross_compiling:$ac_tool_warned in
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929 ac_tool_warned
=yes ;;
5931 RANLIB
=$ac_ct_RANLIB
5934 RANLIB
="$ac_cv_prog_RANLIB"
5937 for ac_prog
in 'bison -y' byacc
5939 # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy
$ac_prog; ac_word
=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if test "${ac_cv_prog_YACC+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5946 if test -n "$YACC"; then
5947 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5953 test -z "$as_dir" && as_dir
=.
5954 for ac_exec_ext
in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_YACC
="$ac_prog"
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 YACC
=$ac_cv_prog_YACC
5967 if test -n "$YACC"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5969 $as_echo "$YACC" >&6; }
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5976 test -n "$YACC" && break
5978 test -n "$YACC" || YACC
="yacc"
5981 if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5983 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if test "${ac_cv_prog_AR+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5989 if test -n "$AR"; then
5990 ac_cv_prog_AR
="$AR" # Let the user override the test.
5992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir
=.
5997 for ac_exec_ext
in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 if test -n "$AR"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6012 $as_echo "$AR" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6020 if test -z "$ac_cv_prog_AR"; then
6022 # Extract the first word of "ar", so it can be a program name with args.
6023 set dummy
ar; ac_word
=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6029 if test -n "$ac_ct_AR"; then
6030 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6036 test -z "$as_dir" && as_dir
=.
6037 for ac_exec_ext
in '' $ac_executable_extensions; do
6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039 ac_cv_prog_ac_ct_AR
="ar"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6050 if test -n "$ac_ct_AR"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6052 $as_echo "$ac_ct_AR" >&6; }
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6058 if test "x$ac_ct_AR" = x
; then
6061 case $cross_compiling:$ac_tool_warned in
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 ac_tool_warned
=yes ;;
6073 if test -n "$ac_tool_prefix"; then
6074 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6075 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6081 if test -n "$DLLTOOL"; then
6082 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6088 test -z "$as_dir" && as_dir
=.
6089 for ac_exec_ext
in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 DLLTOOL
=$ac_cv_prog_DLLTOOL
6102 if test -n "$DLLTOOL"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6104 $as_echo "$DLLTOOL" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6112 if test -z "$ac_cv_prog_DLLTOOL"; then
6113 ac_ct_DLLTOOL
=$DLLTOOL
6114 # Extract the first word of "dlltool", so it can be a program name with args.
6115 set dummy dlltool
; ac_word
=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6119 $as_echo_n "(cached) " >&6
6121 if test -n "$ac_ct_DLLTOOL"; then
6122 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir
=.
6129 for ac_exec_ext
in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6142 if test -n "$ac_ct_DLLTOOL"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6144 $as_echo "$ac_ct_DLLTOOL" >&6; }
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6150 if test "x$ac_ct_DLLTOOL" = x
; then
6153 case $cross_compiling:$ac_tool_warned in
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157 ac_tool_warned
=yes ;;
6159 DLLTOOL
=$ac_ct_DLLTOOL
6162 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6167 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6173 if test -n "$WINDRES"; then
6174 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6180 test -z "$as_dir" && as_dir
=.
6181 for ac_exec_ext
in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 WINDRES
=$ac_cv_prog_WINDRES
6194 if test -n "$WINDRES"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6196 $as_echo "$WINDRES" >&6; }
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6204 if test -z "$ac_cv_prog_WINDRES"; then
6205 ac_ct_WINDRES
=$WINDRES
6206 # Extract the first word of "windres", so it can be a program name with args.
6207 set dummy windres
; ac_word
=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6213 if test -n "$ac_ct_WINDRES"; then
6214 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir
=.
6221 for ac_exec_ext
in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_ac_ct_WINDRES
="windres"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6234 if test -n "$ac_ct_WINDRES"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6236 $as_echo "$ac_ct_WINDRES" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6242 if test "x$ac_ct_WINDRES" = x
; then
6245 case $cross_compiling:$ac_tool_warned in
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned
=yes ;;
6251 WINDRES
=$ac_ct_WINDRES
6254 WINDRES
="$ac_cv_prog_WINDRES"
6260 # Needed for GNU Hurd hosts.
6261 if test -n "$ac_tool_prefix"; then
6262 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6263 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if test "${ac_cv_prog_MIG+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6269 if test -n "$MIG"; then
6270 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir
=.
6277 for ac_exec_ext
in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 if test -n "$MIG"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6292 $as_echo "$MIG" >&6; }
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6300 if test -z "$ac_cv_prog_MIG"; then
6302 # Extract the first word of "mig", so it can be a program name with args.
6303 set dummy mig
; ac_word
=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6307 $as_echo_n "(cached) " >&6
6309 if test -n "$ac_ct_MIG"; then
6310 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6316 test -z "$as_dir" && as_dir
=.
6317 for ac_exec_ext
in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_ac_ct_MIG
="mig"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6330 if test -n "$ac_ct_MIG"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6332 $as_echo "$ac_ct_MIG" >&6; }
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6338 if test "x$ac_ct_MIG" = x
; then
6341 case $cross_compiling:$ac_tool_warned in
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345 ac_tool_warned
=yes ;;
6350 MIG
="$ac_cv_prog_MIG"
6353 if test x
"$MIG" = x
; then
6354 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
6359 # ---------------------- #
6360 # Checks for libraries. #
6361 # ---------------------- #
6363 # We might need to link with -lm; most simulators need it.
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6365 $as_echo_n "checking for main in -lm... " >&6; }
6366 if test "${ac_cv_lib_m_main+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6369 ac_check_lib_save_LIBS
=$LIBS
6371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6383 if ac_fn_c_try_link
"$LINENO"; then :
6384 ac_cv_lib_m_main
=yes
6388 rm -f core conftest.err conftest.
$ac_objext \
6389 conftest
$ac_exeext conftest.
$ac_ext
6390 LIBS
=$ac_check_lib_save_LIBS
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6393 $as_echo "$ac_cv_lib_m_main" >&6; }
6394 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6395 cat >>confdefs.h
<<_ACEOF
6404 # We need to link with -lw to get `wctype' on Solaris before Solaris
6405 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6406 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6407 # is known to have this problem). Therefore we avoid libw if we can.
6408 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6409 if test "x$ac_cv_func_wctype" = x
""yes; then :
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6413 $as_echo_n "checking for wctype in -lw... " >&6; }
6414 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6417 ac_check_lib_save_LIBS
=$LIBS
6419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6422 /* Override any GCC internal prototype to avoid an error.
6423 Use char because int might match the return type of a GCC
6424 builtin and then its argument prototype would still apply. */
6437 if ac_fn_c_try_link
"$LINENO"; then :
6438 ac_cv_lib_w_wctype
=yes
6440 ac_cv_lib_w_wctype
=no
6442 rm -f core conftest.err conftest.
$ac_objext \
6443 conftest
$ac_exeext conftest.
$ac_ext
6444 LIBS
=$ac_check_lib_save_LIBS
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6447 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6448 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6449 cat >>confdefs.h
<<_ACEOF
6460 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6462 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6463 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6466 ac_func_search_save_LIBS
=$LIBS
6467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6470 /* Override any GCC internal prototype to avoid an error.
6471 Use char because int might match the return type of a GCC
6472 builtin and then its argument prototype would still apply. */
6476 char gethostbyname ();
6480 return gethostbyname ();
6485 for ac_lib
in '' nsl
; do
6486 if test -z "$ac_lib"; then
6487 ac_res
="none required"
6490 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6492 if ac_fn_c_try_link
"$LINENO"; then :
6493 ac_cv_search_gethostbyname
=$ac_res
6495 rm -f core conftest.err conftest.
$ac_objext \
6497 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6501 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6504 ac_cv_search_gethostbyname
=no
6507 LIBS
=$ac_func_search_save_LIBS
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6510 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6511 ac_res
=$ac_cv_search_gethostbyname
6512 if test "$ac_res" != no
; then :
6513 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6518 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6520 $as_echo_n "checking for library containing socketpair... " >&6; }
6521 if test "${ac_cv_search_socketpair+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6524 ac_func_search_save_LIBS
=$LIBS
6525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6528 /* Override any GCC internal prototype to avoid an error.
6529 Use char because int might match the return type of a GCC
6530 builtin and then its argument prototype would still apply. */
6538 return socketpair ();
6543 for ac_lib
in '' socket
; do
6544 if test -z "$ac_lib"; then
6545 ac_res
="none required"
6548 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6550 if ac_fn_c_try_link
"$LINENO"; then :
6551 ac_cv_search_socketpair
=$ac_res
6553 rm -f core conftest.err conftest.
$ac_objext \
6555 if test "${ac_cv_search_socketpair+set}" = set; then :
6559 if test "${ac_cv_search_socketpair+set}" = set; then :
6562 ac_cv_search_socketpair
=no
6565 LIBS
=$ac_func_search_save_LIBS
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6568 $as_echo "$ac_cv_search_socketpair" >&6; }
6569 ac_res
=$ac_cv_search_socketpair
6570 if test "$ac_res" != no
; then :
6571 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6576 # Link in zlib if we can. This allows us to read compressed debug sections.
6578 # See if the user specified whether he wants zlib support or not.
6580 # Check whether --with-zlib was given.
6581 if test "${with_zlib+set}" = set; then :
6588 if test "$with_zlib" != "no"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6590 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6591 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6594 ac_func_search_save_LIBS
=$LIBS
6595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6598 /* Override any GCC internal prototype to avoid an error.
6599 Use char because int might match the return type of a GCC
6600 builtin and then its argument prototype would still apply. */
6604 char zlibVersion ();
6608 return zlibVersion ();
6613 for ac_lib
in '' z
; do
6614 if test -z "$ac_lib"; then
6615 ac_res
="none required"
6618 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6620 if ac_fn_c_try_link
"$LINENO"; then :
6621 ac_cv_search_zlibVersion
=$ac_res
6623 rm -f core conftest.err conftest.
$ac_objext \
6625 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6629 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6632 ac_cv_search_zlibVersion
=no
6635 LIBS
=$ac_func_search_save_LIBS
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6638 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6639 ac_res
=$ac_cv_search_zlibVersion
6640 if test "$ac_res" != no
; then :
6641 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6642 for ac_header
in zlib.h
6644 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6645 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
6646 cat >>confdefs.h
<<_ACEOF
6647 #define HAVE_ZLIB_H 1
6656 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6657 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6662 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6664 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6665 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6668 ac_func_search_save_LIBS
=$LIBS
6669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6672 /* Override any GCC internal prototype to avoid an error.
6673 Use char because int might match the return type of a GCC
6674 builtin and then its argument prototype would still apply. */
6678 char dlgetmodinfo ();
6682 return dlgetmodinfo ();
6687 for ac_lib
in '' dl xpdl
; do
6688 if test -z "$ac_lib"; then
6689 ac_res
="none required"
6692 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6694 if ac_fn_c_try_link
"$LINENO"; then :
6695 ac_cv_search_dlgetmodinfo
=$ac_res
6697 rm -f core conftest.err conftest.
$ac_objext \
6699 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6703 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6706 ac_cv_search_dlgetmodinfo
=no
6709 LIBS
=$ac_func_search_save_LIBS
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6712 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6713 ac_res
=$ac_cv_search_dlgetmodinfo
6714 if test "$ac_res" != no
; then :
6715 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6723 # Check whether --with-libiconv-prefix was given.
6724 if test "${with_libiconv_prefix+set}" = set; then :
6725 withval
=$with_libiconv_prefix;
6726 for dir
in `echo "$withval" | tr : ' '`; do
6727 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
6728 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
6734 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
6735 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6738 $as_echo_n "checking for iconv... " >&6; }
6739 if test "${am_cv_func_iconv+set}" = set; then :
6740 $as_echo_n "(cached) " >&6
6743 am_cv_func_iconv
="no, consider installing GNU libiconv"
6745 am_cv_use_build_libiconv
=no
6746 am_cv_build_libiconv_path
=
6748 # If libiconv is part of the build tree, then try using it over
6750 if test -d ..
/libiconv
; then
6751 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
6752 am_save_LIBS
="$LIBS"
6753 am_save_CPPFLAGS
="$CPPFLAGS"
6754 LIBS
="$LIBS $lib_dir/libiconv.a"
6755 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6763 iconv_t cd = iconv_open("","");
6764 iconv(cd,NULL,NULL,NULL,NULL);
6770 if ac_fn_c_try_link
"$LINENO"; then :
6771 am_cv_use_build_libiconv
=yes
6772 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
6774 am_cv_func_iconv
=yes
6776 rm -f core conftest.err conftest.
$ac_objext \
6777 conftest
$ac_exeext conftest.
$ac_ext
6778 LIBS
="$am_save_LIBS"
6779 CPPFLAGS
="$am_save_CPPFLAGS"
6780 if test "$am_cv_use_build_libiconv" = "yes"; then
6786 # Next, try to find iconv in libc.
6787 if test "$am_cv_func_iconv" != yes; then
6788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6795 iconv_t cd = iconv_open("","");
6796 iconv(cd,NULL,NULL,NULL,NULL);
6802 if ac_fn_c_try_link
"$LINENO"; then :
6803 am_cv_func_iconv
=yes
6805 rm -f core conftest.err conftest.
$ac_objext \
6806 conftest
$ac_exeext conftest.
$ac_ext
6809 # If iconv was not in libc, try -liconv. In this case, arrange to
6810 # look in the libiconv prefix, if it was specified by the user.
6811 if test "$am_cv_func_iconv" != yes; then
6812 am_save_CPPFLAGS
="$CPPFLAGS"
6813 am_save_LIBS
="$LIBS"
6814 if test -n "$LIBICONV_INCLUDE"; then
6815 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6816 LIBS
="$LIBS $LIBICONV_LIBDIR"
6818 LIBS
="$LIBS -liconv"
6819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6826 iconv_t cd = iconv_open("","");
6827 iconv(cd,NULL,NULL,NULL,NULL);
6833 if ac_fn_c_try_link
"$LINENO"; then :
6835 am_cv_func_iconv
=yes
6837 rm -f core conftest.err conftest.
$ac_objext \
6838 conftest
$ac_exeext conftest.
$ac_ext
6839 LIBS
="$am_save_LIBS"
6840 CPPFLAGS
="$am_save_CPPFLAGS"
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6845 $as_echo "$am_cv_func_iconv" >&6; }
6847 # Set the various flags based on the cache variables. We can't rely
6848 # on the flags to remain set from the above code, due to caching.
6850 if test "$am_cv_lib_iconv" = yes; then
6856 if test "$am_cv_use_build_libiconv" = yes; then
6857 LIBICONV
="$am_cv_build_libiconv_path"
6859 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
6861 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6862 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6864 if test "$am_cv_func_iconv" = yes; then
6866 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6869 $as_echo_n "checking for iconv declaration... " >&6; }
6870 if test "${am_cv_proto_iconv+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6883 #if defined(__STDC__) || defined(__cplusplus)
6884 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6897 if ac_fn_c_try_compile
"$LINENO"; then :
6898 am_cv_proto_iconv_arg1
=""
6900 am_cv_proto_iconv_arg1
="const"
6902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6903 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);"
6906 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6908 }$am_cv_proto_iconv" >&5
6910 }$am_cv_proto_iconv" >&6; }
6912 cat >>confdefs.h
<<_ACEOF
6913 #define ICONV_CONST $am_cv_proto_iconv_arg1
6919 # GDB may fork/exec the iconv program to get the list of supported character
6920 # sets. Allow the user to specify where to find it.
6921 # There are several factors affecting the choice of option name:
6922 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6923 # the build-time location of libiconv files.
6924 # - The program we need to find is iconv, which comes with glibc. The user
6925 # doesn't necessarily have libiconv installed. Therefore naming this
6926 # --with-libiconv-foo feels wrong.
6927 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6928 # defined to work on directories not files (though it really doesn't know
6930 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6931 # with --with-libiconv-prefix.
6932 # Putting these together is why the option name is --with-iconv-bin.
6935 # Check whether --with-iconv-bin was given.
6936 if test "${with_iconv_bin+set}" = set; then :
6937 withval
=$with_iconv_bin; iconv_bin
="${withval}"
6939 cat >>confdefs.h
<<_ACEOF
6940 #define ICONV_BIN "${iconv_bin}"
6944 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6945 if test "x$prefix" = xNONE
; then
6946 test_prefix
=/usr
/local
6951 test_prefix
=$exec_prefix
6954 case ${iconv_bin} in
6955 "${test_prefix}"|
"${test_prefix}/"*|\
6956 '${exec_prefix}'|
'${exec_prefix}/'*)
6961 cat >>confdefs.h
<<_ACEOF
6962 #define ICONV_BIN_RELOCATABLE $value
6970 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6971 # There is a very specific comment in /usr/include/curses.h explaining that
6972 # termcap routines built into libcurses must not be used.
6974 # The symptoms we observed so far is GDB unexpectedly changing
6975 # the terminal settings when tgetent is called - this is particularly
6976 # visible as the output is missing carriage returns, and so rapidly
6977 # becomes very hard to read.
6979 # The readline configure script has already decided that libtermcap
6980 # was enough for its purposes, and so decided to build readline using
6981 # libtermcap. Since the TUI mode requires curses, building GDB with
6982 # TUI enabled results in both libraries to be used at the same time,
6983 # which is not allowed. This basically means that GDB with TUI is
6984 # broken on alpha-osf.
6988 if test x
"$enable_tui" = xyes
; then
6989 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6991 if test x
"$enable_tui" = xauto
; then
6997 # For the TUI, we need enhanced curses functionality.
6998 if test x
"$enable_tui" != xno
; then
7003 if test x
"$prefer_curses" = xyes
; then
7004 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7005 # curses library because the latter might not provide all the
7006 # functionality we need. However, this leads to problems on systems
7007 # where the linker searches /usr/local/lib, but the compiler doesn't
7008 # search /usr/local/include, if ncurses is installed in /usr/local. A
7009 # default installation of ncurses on alpha*-dec-osf* will lead to such
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7012 $as_echo_n "checking for library containing waddstr... " >&6; }
7013 if test "${ac_cv_search_waddstr+set}" = set; then :
7014 $as_echo_n "(cached) " >&6
7016 ac_func_search_save_LIBS
=$LIBS
7017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7020 /* Override any GCC internal prototype to avoid an error.
7021 Use char because int might match the return type of a GCC
7022 builtin and then its argument prototype would still apply. */
7035 for ac_lib
in '' ncurses cursesX curses
; do
7036 if test -z "$ac_lib"; then
7037 ac_res
="none required"
7040 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7042 if ac_fn_c_try_link
"$LINENO"; then :
7043 ac_cv_search_waddstr
=$ac_res
7045 rm -f core conftest.err conftest.
$ac_objext \
7047 if test "${ac_cv_search_waddstr+set}" = set; then :
7051 if test "${ac_cv_search_waddstr+set}" = set; then :
7054 ac_cv_search_waddstr
=no
7057 LIBS
=$ac_func_search_save_LIBS
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7060 $as_echo "$ac_cv_search_waddstr" >&6; }
7061 ac_res
=$ac_cv_search_waddstr
7062 if test "$ac_res" != no
; then :
7063 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7068 if test "$ac_cv_search_waddstr" != no
; then
7073 # Check whether we should enable the TUI, but only do so if we really
7075 if test x
"$enable_tui" != xno
; then
7076 if test -d $srcdir/tui
; then
7077 if test "$curses_found" != no
; then
7078 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7079 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7080 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7081 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7083 if test x
"$enable_tui" = xyes
; then
7084 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7087 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7093 # Since GDB uses Readline, we need termcap functionality. In many
7094 # cases this will be provided by the curses library, but some systems
7095 # have a seperate termcap library, or no curses library at all.
7099 if test -d $srcdir/libtermcap
; then
7100 LIBS
="../libtermcap/libtermcap.a $LIBS"
7101 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
7104 ac_cv_search_tgetent
="none required"
7107 ac_cv_search_tgetent
="none required"
7108 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
7112 # These are the libraries checked by Readline.
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7114 $as_echo_n "checking for library containing tgetent... " >&6; }
7115 if test "${ac_cv_search_tgetent+set}" = set; then :
7116 $as_echo_n "(cached) " >&6
7118 ac_func_search_save_LIBS
=$LIBS
7119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7122 /* Override any GCC internal prototype to avoid an error.
7123 Use char because int might match the return type of a GCC
7124 builtin and then its argument prototype would still apply. */
7137 for ac_lib
in '' termcap tinfo curses ncurses
; do
7138 if test -z "$ac_lib"; then
7139 ac_res
="none required"
7142 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7144 if ac_fn_c_try_link
"$LINENO"; then :
7145 ac_cv_search_tgetent
=$ac_res
7147 rm -f core conftest.err conftest.
$ac_objext \
7149 if test "${ac_cv_search_tgetent+set}" = set; then :
7153 if test "${ac_cv_search_tgetent+set}" = set; then :
7156 ac_cv_search_tgetent
=no
7159 LIBS
=$ac_func_search_save_LIBS
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7162 $as_echo "$ac_cv_search_tgetent" >&6; }
7163 ac_res
=$ac_cv_search_tgetent
7164 if test "$ac_res" != no
; then :
7165 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7170 if test "$ac_cv_search_tgetent" = no
; then
7171 as_fn_error
"no termcap library found" "$LINENO" 5
7175 # Check whether --with-system-readline was given.
7176 if test "${with_system_readline+set}" = set; then :
7177 withval
=$with_system_readline;
7181 if test "$with_system_readline" = yes; then
7185 READLINE_TEXI_INCFLAG
=
7187 READLINE
='$(READLINE_DIR)/libreadline.a'
7188 READLINE_DEPS
='$(READLINE)'
7189 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
7190 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
7197 # Generate jit-reader.h
7199 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7202 # The cast to long int works around a bug in the HP C Compiler
7203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7205 # This bug is HP SR number 8606223364.
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7207 $as_echo_n "checking size of unsigned long long... " >&6; }
7208 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7211 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7214 if test "$ac_cv_type_unsigned_long_long" = yes; then
7215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7217 { as_fn_set_status
77
7218 as_fn_error
"cannot compute sizeof (unsigned long long)
7219 See \`config.log' for more details." "$LINENO" 5; }; }
7221 ac_cv_sizeof_unsigned_long_long
=0
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7227 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7231 cat >>confdefs.h
<<_ACEOF
7232 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7236 # The cast to long int works around a bug in the HP C Compiler
7237 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7238 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7239 # This bug is HP SR number 8606223364.
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7241 $as_echo_n "checking size of unsigned long... " >&6; }
7242 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7245 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7248 if test "$ac_cv_type_unsigned_long" = yes; then
7249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7251 { as_fn_set_status
77
7252 as_fn_error
"cannot compute sizeof (unsigned long)
7253 See \`config.log' for more details." "$LINENO" 5; }; }
7255 ac_cv_sizeof_unsigned_long
=0
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7261 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7265 cat >>confdefs.h
<<_ACEOF
7266 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7270 # The cast to long int works around a bug in the HP C Compiler
7271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7273 # This bug is HP SR number 8606223364.
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7275 $as_echo_n "checking size of unsigned __int128... " >&6; }
7276 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7279 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7282 if test "$ac_cv_type_unsigned___int128" = yes; then
7283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7285 { as_fn_set_status
77
7286 as_fn_error
"cannot compute sizeof (unsigned __int128)
7287 See \`config.log' for more details." "$LINENO" 5; }; }
7289 ac_cv_sizeof_unsigned___int128
=0
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7295 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7299 cat >>confdefs.h
<<_ACEOF
7300 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7305 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7306 TARGET_PTR
="unsigned long"
7307 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7308 TARGET_PTR
="unsigned long long"
7309 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7310 TARGET_PTR
="unsigned __int128"
7312 TARGET_PTR
="unsigned long"
7316 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7320 $as_echo_n "checking for library containing dlopen... " >&6; }
7321 if test "${ac_cv_search_dlopen+set}" = set; then :
7322 $as_echo_n "(cached) " >&6
7324 ac_func_search_save_LIBS
=$LIBS
7325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7328 /* Override any GCC internal prototype to avoid an error.
7329 Use char because int might match the return type of a GCC
7330 builtin and then its argument prototype would still apply. */
7343 for ac_lib
in '' dl
; do
7344 if test -z "$ac_lib"; then
7345 ac_res
="none required"
7348 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7350 if ac_fn_c_try_link
"$LINENO"; then :
7351 ac_cv_search_dlopen
=$ac_res
7353 rm -f core conftest.err conftest.
$ac_objext \
7355 if test "${ac_cv_search_dlopen+set}" = set; then :
7359 if test "${ac_cv_search_dlopen+set}" = set; then :
7362 ac_cv_search_dlopen
=no
7365 LIBS
=$ac_func_search_save_LIBS
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7368 $as_echo "$ac_cv_search_dlopen" >&6; }
7369 ac_res
=$ac_cv_search_dlopen
7370 if test "$ac_res" != no
; then :
7371 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7378 # Check whether --with-jit-reader-dir was given.
7379 if test "${with_jit_reader_dir+set}" = set; then :
7380 withval
=$with_jit_reader_dir;
7381 JIT_READER_DIR
=$withval
7383 JIT_READER_DIR
=${libdir}/gdb
7387 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7388 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7389 ac_define_dir
=`eval echo $JIT_READER_DIR`
7390 ac_define_dir
=`eval echo $ac_define_dir`
7392 cat >>confdefs.h
<<_ACEOF
7393 #define JIT_READER_DIR "$ac_define_dir"
7399 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7400 if test "x$prefix" = xNONE
; then
7401 test_prefix
=/usr
/local
7406 test_prefix
=$exec_prefix
7409 case ${ac_define_dir} in
7410 "${test_prefix}"|
"${test_prefix}/"*|\
7411 '${exec_prefix}'|
'${exec_prefix}/'*)
7416 cat >>confdefs.h
<<_ACEOF
7417 #define JIT_READER_DIR_RELOCATABLE $value
7424 # Check whether --with-expat was given.
7425 if test "${with_expat+set}" = set; then :
7426 withval
=$with_expat;
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7432 $as_echo_n "checking whether to use expat... " >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7434 $as_echo "$with_expat" >&6; }
7436 if test "${with_expat}" = no
; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7438 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7442 if test "X$prefix" = "XNONE"; then
7443 acl_final_prefix
="$ac_default_prefix"
7445 acl_final_prefix
="$prefix"
7447 if test "X$exec_prefix" = "XNONE"; then
7448 acl_final_exec_prefix
='${prefix}'
7450 acl_final_exec_prefix
="$exec_prefix"
7452 acl_save_prefix
="$prefix"
7453 prefix
="$acl_final_prefix"
7454 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7455 prefix
="$acl_save_prefix"
7458 # Check whether --with-gnu-ld was given.
7459 if test "${with_gnu_ld+set}" = set; then :
7460 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7465 # Prepare PATH_SEPARATOR.
7466 # The user is always right.
7467 if test "${PATH_SEPARATOR+set}" != set; then
7468 echo "#! /bin/sh" >conf$$.sh
7469 echo "exit 0" >>conf$$.sh
7471 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7479 if test "$GCC" = yes; then
7480 # Check if gcc -print-prog-name=ld gives a path.
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7482 $as_echo_n "checking for ld used by GCC... " >&6; }
7485 # gcc leaves a trailing carriage return which upsets mingw
7486 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7488 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7491 # Accept absolute paths.
7492 [\\/]* |
[A-Za-z
]:[\\/]*)
7493 re_direlt
='/[^/][^/]*/\.\./'
7494 # Canonicalize the path of ld
7495 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7496 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7497 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7499 test -z "$LD" && LD
="$ac_prog"
7502 # If it fails, then pretend we aren't using GCC.
7506 # If it is relative, then search for the first ld in PATH.
7510 elif test "$with_gnu_ld" = yes; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7512 $as_echo_n "checking for GNU ld... " >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7515 $as_echo_n "checking for non-GNU ld... " >&6; }
7517 if test "${acl_cv_path_LD+set}" = set; then :
7518 $as_echo_n "(cached) " >&6
7520 if test -z "$LD"; then
7521 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7522 for ac_dir
in $PATH; do
7523 test -z "$ac_dir" && ac_dir
=.
7524 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7525 acl_cv_path_LD
="$ac_dir/$ac_prog"
7526 # Check to see if the program is GNU ld. I'd rather use --version,
7527 # but apparently some GNU ld's only accept -v.
7528 # Break only if it was the GNU/non-GNU ld that we prefer.
7529 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7530 test "$with_gnu_ld" != no
&& break
7532 test "$with_gnu_ld" != yes && break
7538 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7542 LD
="$acl_cv_path_LD"
7543 if test -n "$LD"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7545 $as_echo "$LD" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7550 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7552 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7553 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7556 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7557 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7558 acl_cv_prog_gnu_ld
=yes
7560 acl_cv_prog_gnu_ld
=no
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7564 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7565 with_gnu_ld
=$acl_cv_prog_gnu_ld
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7570 $as_echo_n "checking for shared library run path origin... " >&6; }
7571 if test "${acl_cv_rpath+set}" = set; then :
7572 $as_echo_n "(cached) " >&6
7575 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7576 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7583 $as_echo "$acl_cv_rpath" >&6; }
7585 libext
="$acl_cv_libext"
7586 shlibext
="$acl_cv_shlibext"
7587 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7588 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7589 hardcode_direct
="$acl_cv_hardcode_direct"
7590 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7591 # Check whether --enable-rpath was given.
7592 if test "${enable_rpath+set}" = set; then :
7593 enableval
=$enable_rpath; :
7609 acl_save_prefix
="$prefix"
7610 prefix
="$acl_final_prefix"
7611 acl_save_exec_prefix
="$exec_prefix"
7612 exec_prefix
="$acl_final_exec_prefix"
7614 eval additional_includedir
=\"$includedir\"
7615 eval additional_libdir
=\"$libdir\"
7617 exec_prefix
="$acl_save_exec_prefix"
7618 prefix
="$acl_save_prefix"
7621 # Check whether --with-libexpat-prefix was given.
7622 if test "${with_libexpat_prefix+set}" = set; then :
7623 withval
=$with_libexpat_prefix;
7624 if test "X$withval" = "Xno"; then
7627 if test "X$withval" = "X"; then
7629 acl_save_prefix
="$prefix"
7630 prefix
="$acl_final_prefix"
7631 acl_save_exec_prefix
="$exec_prefix"
7632 exec_prefix
="$acl_final_exec_prefix"
7634 eval additional_includedir
=\"$includedir\"
7635 eval additional_libdir
=\"$libdir\"
7637 exec_prefix
="$acl_save_exec_prefix"
7638 prefix
="$acl_save_prefix"
7641 additional_includedir
="$withval/include"
7642 additional_libdir
="$withval/lib"
7653 names_already_handled
=
7654 names_next_round
='expat '
7655 while test -n "$names_next_round"; do
7656 names_this_round
="$names_next_round"
7658 for name
in $names_this_round; do
7660 for n
in $names_already_handled; do
7661 if test "$n" = "$name"; then
7666 if test -z "$already_handled"; then
7667 names_already_handled
="$names_already_handled $name"
7668 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7669 eval value
=\"\
$HAVE_LIB$uppername\"
7670 if test -n "$value"; then
7671 if test "$value" = yes; then
7672 eval value
=\"\
$LIB$uppername\"
7673 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
7674 eval value
=\"\
$LTLIB$uppername\"
7675 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7684 if test $use_additional = yes; then
7685 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7686 found_dir
="$additional_libdir"
7687 found_so
="$additional_libdir/lib$name.$shlibext"
7688 if test -f "$additional_libdir/lib$name.la"; then
7689 found_la
="$additional_libdir/lib$name.la"
7692 if test -f "$additional_libdir/lib$name.$libext"; then
7693 found_dir
="$additional_libdir"
7694 found_a
="$additional_libdir/lib$name.$libext"
7695 if test -f "$additional_libdir/lib$name.la"; then
7696 found_la
="$additional_libdir/lib$name.la"
7701 if test "X$found_dir" = "X"; then
7702 for x
in $LDFLAGS $LTLIBEXPAT; do
7704 acl_save_prefix
="$prefix"
7705 prefix
="$acl_final_prefix"
7706 acl_save_exec_prefix
="$exec_prefix"
7707 exec_prefix
="$acl_final_exec_prefix"
7709 exec_prefix
="$acl_save_exec_prefix"
7710 prefix
="$acl_save_prefix"
7714 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7715 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7717 found_so
="$dir/lib$name.$shlibext"
7718 if test -f "$dir/lib$name.la"; then
7719 found_la
="$dir/lib$name.la"
7722 if test -f "$dir/lib$name.$libext"; then
7724 found_a
="$dir/lib$name.$libext"
7725 if test -f "$dir/lib$name.la"; then
7726 found_la
="$dir/lib$name.la"
7732 if test "X$found_dir" != "X"; then
7737 if test "X$found_dir" != "X"; then
7738 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7739 if test "X$found_so" != "X"; then
7740 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7741 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7744 for x
in $ltrpathdirs; do
7745 if test "X$x" = "X$found_dir"; then
7750 if test -z "$haveit"; then
7751 ltrpathdirs
="$ltrpathdirs $found_dir"
7753 if test "$hardcode_direct" = yes; then
7754 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7756 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7757 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7759 for x
in $rpathdirs; do
7760 if test "X$x" = "X$found_dir"; then
7765 if test -z "$haveit"; then
7766 rpathdirs
="$rpathdirs $found_dir"
7770 for x
in $LDFLAGS $LIBEXPAT; do
7772 acl_save_prefix
="$prefix"
7773 prefix
="$acl_final_prefix"
7774 acl_save_exec_prefix
="$exec_prefix"
7775 exec_prefix
="$acl_final_exec_prefix"
7777 exec_prefix
="$acl_save_exec_prefix"
7778 prefix
="$acl_save_prefix"
7780 if test "X$x" = "X-L$found_dir"; then
7785 if test -z "$haveit"; then
7786 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7788 if test "$hardcode_minus_L" != no
; then
7789 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7791 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7797 if test "X$found_a" != "X"; then
7798 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7800 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7803 additional_includedir
=
7804 case "$found_dir" in
7806 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7807 additional_includedir
="$basedir/include"
7810 if test "X$additional_includedir" != "X"; then
7811 if test "X$additional_includedir" != "X/usr/include"; then
7813 if test "X$additional_includedir" = "X/usr/local/include"; then
7814 if test -n "$GCC"; then
7816 linux
*) haveit
=yes;;
7820 if test -z "$haveit"; then
7821 for x
in $CPPFLAGS $INCEXPAT; do
7823 acl_save_prefix
="$prefix"
7824 prefix
="$acl_final_prefix"
7825 acl_save_exec_prefix
="$exec_prefix"
7826 exec_prefix
="$acl_final_exec_prefix"
7828 exec_prefix
="$acl_save_exec_prefix"
7829 prefix
="$acl_save_prefix"
7831 if test "X$x" = "X-I$additional_includedir"; then
7836 if test -z "$haveit"; then
7837 if test -d "$additional_includedir"; then
7838 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7844 if test -n "$found_la"; then
7845 save_libdir
="$libdir"
7847 */* |
*\\*) .
"$found_la" ;;
7848 *) .
"./$found_la" ;;
7850 libdir
="$save_libdir"
7851 for dep
in $dependency_libs; do
7854 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7855 if test "X$additional_libdir" != "X/usr/lib"; then
7857 if test "X$additional_libdir" = "X/usr/local/lib"; then
7858 if test -n "$GCC"; then
7860 linux
*) haveit
=yes;;
7864 if test -z "$haveit"; then
7866 for x
in $LDFLAGS $LIBEXPAT; do
7868 acl_save_prefix
="$prefix"
7869 prefix
="$acl_final_prefix"
7870 acl_save_exec_prefix
="$exec_prefix"
7871 exec_prefix
="$acl_final_exec_prefix"
7873 exec_prefix
="$acl_save_exec_prefix"
7874 prefix
="$acl_save_prefix"
7876 if test "X$x" = "X-L$additional_libdir"; then
7881 if test -z "$haveit"; then
7882 if test -d "$additional_libdir"; then
7883 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7887 for x
in $LDFLAGS $LTLIBEXPAT; do
7889 acl_save_prefix
="$prefix"
7890 prefix
="$acl_final_prefix"
7891 acl_save_exec_prefix
="$exec_prefix"
7892 exec_prefix
="$acl_final_exec_prefix"
7894 exec_prefix
="$acl_save_exec_prefix"
7895 prefix
="$acl_save_prefix"
7897 if test "X$x" = "X-L$additional_libdir"; then
7902 if test -z "$haveit"; then
7903 if test -d "$additional_libdir"; then
7904 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7911 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7912 if test "$enable_rpath" != no
; then
7914 for x
in $rpathdirs; do
7915 if test "X$x" = "X$dir"; then
7920 if test -z "$haveit"; then
7921 rpathdirs
="$rpathdirs $dir"
7924 for x
in $ltrpathdirs; do
7925 if test "X$x" = "X$dir"; then
7930 if test -z "$haveit"; then
7931 ltrpathdirs
="$ltrpathdirs $dir"
7936 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7939 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7942 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7943 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7949 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7950 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7956 if test "X$rpathdirs" != "X"; then
7957 if test -n "$hardcode_libdir_separator"; then
7959 for found_dir
in $rpathdirs; do
7960 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7962 acl_save_libdir
="$libdir"
7964 eval flag
=\"$hardcode_libdir_flag_spec\"
7965 libdir
="$acl_save_libdir"
7966 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7968 for found_dir
in $rpathdirs; do
7969 acl_save_libdir
="$libdir"
7971 eval flag
=\"$hardcode_libdir_flag_spec\"
7972 libdir
="$acl_save_libdir"
7973 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7977 if test "X$ltrpathdirs" != "X"; then
7978 for found_dir
in $ltrpathdirs; do
7979 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7984 ac_save_CPPFLAGS
="$CPPFLAGS"
7986 for element
in $INCEXPAT; do
7988 for x
in $CPPFLAGS; do
7990 acl_save_prefix
="$prefix"
7991 prefix
="$acl_final_prefix"
7992 acl_save_exec_prefix
="$exec_prefix"
7993 exec_prefix
="$acl_final_exec_prefix"
7995 exec_prefix
="$acl_save_exec_prefix"
7996 prefix
="$acl_save_prefix"
7998 if test "X$x" = "X$element"; then
8003 if test -z "$haveit"; then
8004 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8010 $as_echo_n "checking for libexpat... " >&6; }
8011 if test "${ac_cv_libexpat+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8015 ac_save_LIBS
="$LIBS"
8016 LIBS
="$LIBS $LIBEXPAT"
8017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8023 XML_Parser p = XML_ParserCreate (0);
8028 if ac_fn_c_try_link
"$LINENO"; then :
8033 rm -f core conftest.err conftest.
$ac_objext \
8034 conftest
$ac_exeext conftest.
$ac_ext
8035 LIBS
="$ac_save_LIBS"
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8039 $as_echo "$ac_cv_libexpat" >&6; }
8040 if test "$ac_cv_libexpat" = yes; then
8043 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8046 $as_echo_n "checking how to link with libexpat... " >&6; }
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8048 $as_echo "$LIBEXPAT" >&6; }
8051 CPPFLAGS
="$ac_save_CPPFLAGS"
8061 if test "$HAVE_LIBEXPAT" != yes; then
8062 if test "$with_expat" = yes; then
8063 as_fn_error
"expat is missing or unusable" "$LINENO" 5
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8066 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8070 LIBS
="$LIBS $LIBEXPAT"
8071 for ac_func
in XML_StopParser
8073 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8074 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
8075 cat >>confdefs.h
<<_ACEOF
8076 #define HAVE_XML_STOPPARSER 1
8086 # --------------------- #
8087 # Check for libpython. #
8088 # --------------------- #
8095 # Check whether --with-python was given.
8096 if test "${with_python+set}" = set; then :
8097 withval
=$with_python;
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8103 $as_echo_n "checking whether to use python... " >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8105 $as_echo "$with_python" >&6; }
8107 if test "${with_python}" = no
; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8109 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8112 case "${with_python}" in
8114 if test -d ${with_python}; then
8115 # Assume the python binary is ${with_python}/bin/python.
8116 python_prog
="${with_python}/bin/python"
8118 # If python does not exit ${with_python}/bin, then try in
8119 # ${with_python}. On Windows/MinGW, this is where the Python
8121 if test ! -x "${python_prog}"; then
8122 python_prog
="${with_python}/python"
8125 if test ! -x "${python_prog}"; then
8126 # Fall back to gdb 7.0/7.1 behaviour.
8128 python_prefix
=${with_python}
8130 elif test -x "${with_python}"; then
8131 # While we can't run python compiled for $host (unless host == build),
8132 # the user could write a script that provides the needed information,
8133 # so we support that.
8134 python_prog
=${with_python}
8137 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8141 # Disallow --with-python=foo/bar.
8142 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8145 # The user has either specified auto, yes, or the name of the python
8146 # program assumed to be in $PATH.
8148 case "${with_python}" in
8150 if test ${build} = ${host}; then
8151 # Extract the first word of "python", so it can be a program name with args.
8152 set dummy python
; ac_word
=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8158 case $python_prog_path in
8160 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8167 test -z "$as_dir" && as_dir
=.
8168 for ac_exec_ext
in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8182 python_prog_path
=$ac_cv_path_python_prog_path
8183 if test -n "$python_prog_path"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8185 $as_echo "$python_prog_path" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8192 if test "${python_prog_path}" = missing
; then
8195 python_prog
=${python_prog_path}
8198 # Not much we can do except assume the cross-compiler will find the
8204 # While we can't run python compiled for $host (unless host == build),
8205 # the user could write a script that provides the needed information,
8206 # so we support that.
8207 python_prog
="${with_python}"
8208 # Extract the first word of "${python_prog}", so it can be a program name with args.
8209 set dummy
${python_prog}; ac_word
=$2
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211 $as_echo_n "checking for $ac_word... " >&6; }
8212 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8215 case $python_prog_path in
8217 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8224 test -z "$as_dir" && as_dir
=.
8225 for ac_exec_ext
in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8239 python_prog_path
=$ac_cv_path_python_prog_path
8240 if test -n "$python_prog_path"; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8242 $as_echo "$python_prog_path" >&6; }
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245 $as_echo "no" >&6; }
8249 if test "${python_prog_path}" = missing
; then
8250 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
8256 if test "${python_prog}" != missing
; then
8257 # We have a python program to use, but it may be too old.
8258 # Don't flag an error for --with-python=auto (the default).
8259 have_python_config
=yes
8260 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
8261 if test $?
!= 0; then
8262 have_python_config
=failed
8263 if test "${with_python}" != auto
; then
8264 as_fn_error
"failure running python-config --includes" "$LINENO" 5
8267 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8268 if test $?
!= 0; then
8269 have_python_config
=failed
8270 if test "${with_python}" != auto
; then
8271 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
8274 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8275 if test $?
!= 0; then
8276 have_python_config
=failed
8277 if test "${with_python}" != auto
; then
8278 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
8282 # We do not have a python executable we can use to determine where
8283 # to find the Python headers and libs. We cannot guess the include
8284 # path from the python_prefix either, because that include path
8285 # depends on the Python version. So, there is nothing much we can
8286 # do except assume that the compiler will be able to find those files.
8289 have_python_config
=no
8292 # If we have python-config, only try the configuration it provides.
8293 # Otherwise fallback on the old way of trying different versions of
8297 if test "${have_python_config}" = yes; then
8298 # Determine the Python version by extracting "-lpython<version>"
8299 # part of the python_libs. <version> is usually X.Y with X and Y
8300 # being decimal numbers, but can also be XY (seen on Windows).
8302 # The extraction is performed using sed with a regular expression.
8303 # Initially, the regexp used was using the '?' quantifier to make
8304 # the dot in the version number optional. Unfortunately, this
8305 # does not work with non-GNU versions of sed because, because of
8306 # what looks like a limitation (the '?' quantifier does not work
8307 # with back-references). We work around this limitation by using
8308 # the '*' quantifier instead. It means that, in theory, we might
8309 # match unexpected version strings such as "-lpython2..7", but
8310 # this seems unlikely in practice. And even if that happens,
8311 # an error will be triggered later on, when checking that version
8313 python_version
=`echo " ${python_libs} " \
8314 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8315 case "${python_version}" in
8318 version
=${python_version}
8320 new_CPPFLAGS
=${python_includes}
8321 new_LIBS
=${python_libs}
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8323 $as_echo_n "checking for ${version}... " >&6; }
8324 save_CPPFLAGS
=$CPPFLAGS
8326 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8327 LIBS
="$LIBS $new_LIBS"
8328 found_usable_python
=no
8329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8340 if ac_fn_c_try_link
"$LINENO"; then :
8341 have_libpython
=${version}
8342 found_usable_python
=yes
8343 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8344 PYTHON_LIBS
=$new_LIBS
8346 rm -f core conftest.err conftest.
$ac_objext \
8347 conftest
$ac_exeext conftest.
$ac_ext
8348 CPPFLAGS
=$save_CPPFLAGS
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8351 $as_echo "${found_usable_python}" >&6; }
8355 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
8358 elif test "${have_python_config}" != failed
; then
8359 if test "${have_libpython}" = no
; then
8363 new_CPPFLAGS
=${python_includes}
8364 new_LIBS
="${python_libs} -lpython2.7"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8366 $as_echo_n "checking for ${version}... " >&6; }
8367 save_CPPFLAGS
=$CPPFLAGS
8369 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8370 LIBS
="$LIBS $new_LIBS"
8371 found_usable_python
=no
8372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8383 if ac_fn_c_try_link
"$LINENO"; then :
8384 have_libpython
=${version}
8385 found_usable_python
=yes
8386 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8387 PYTHON_LIBS
=$new_LIBS
8389 rm -f core conftest.err conftest.
$ac_objext \
8390 conftest
$ac_exeext conftest.
$ac_ext
8391 CPPFLAGS
=$save_CPPFLAGS
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8394 $as_echo "${found_usable_python}" >&6; }
8397 if test "${have_libpython}" = no
; then
8401 new_CPPFLAGS
=${python_includes}
8402 new_LIBS
="${python_libs} -lpython2.6"
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8404 $as_echo_n "checking for ${version}... " >&6; }
8405 save_CPPFLAGS
=$CPPFLAGS
8407 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8408 LIBS
="$LIBS $new_LIBS"
8409 found_usable_python
=no
8410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8421 if ac_fn_c_try_link
"$LINENO"; then :
8422 have_libpython
=${version}
8423 found_usable_python
=yes
8424 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8425 PYTHON_LIBS
=$new_LIBS
8427 rm -f core conftest.err conftest.
$ac_objext \
8428 conftest
$ac_exeext conftest.
$ac_ext
8429 CPPFLAGS
=$save_CPPFLAGS
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8432 $as_echo "${found_usable_python}" >&6; }
8435 if test ${have_libpython} = no
; then
8439 new_CPPFLAGS
=${python_includes}
8440 new_LIBS
="${python_libs} -lpython2.5"
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8442 $as_echo_n "checking for ${version}... " >&6; }
8443 save_CPPFLAGS
=$CPPFLAGS
8445 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8446 LIBS
="$LIBS $new_LIBS"
8447 found_usable_python
=no
8448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8459 if ac_fn_c_try_link
"$LINENO"; then :
8460 have_libpython
=${version}
8461 found_usable_python
=yes
8462 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8463 PYTHON_LIBS
=$new_LIBS
8465 rm -f core conftest.err conftest.
$ac_objext \
8466 conftest
$ac_exeext conftest.
$ac_ext
8467 CPPFLAGS
=$save_CPPFLAGS
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8470 $as_echo "${found_usable_python}" >&6; }
8473 if test ${have_libpython} = no
; then
8477 new_CPPFLAGS
=${python_includes}
8478 new_LIBS
="${python_libs} -lpython2.4"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8480 $as_echo_n "checking for ${version}... " >&6; }
8481 save_CPPFLAGS
=$CPPFLAGS
8483 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8484 LIBS
="$LIBS $new_LIBS"
8485 found_usable_python
=no
8486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8497 if ac_fn_c_try_link
"$LINENO"; then :
8498 have_libpython
=${version}
8499 found_usable_python
=yes
8500 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8501 PYTHON_LIBS
=$new_LIBS
8503 rm -f core conftest.err conftest.
$ac_objext \
8504 conftest
$ac_exeext conftest.
$ac_ext
8505 CPPFLAGS
=$save_CPPFLAGS
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8508 $as_echo "${found_usable_python}" >&6; }
8512 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
8514 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8516 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
8518 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8520 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
8522 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8524 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
8526 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8530 if test "${have_libpython}" = no
; then
8531 case "${with_python}" in
8533 as_fn_error
"python is missing or unusable" "$LINENO" 5
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8537 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8540 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
8544 if test -n "${python_prefix}"; then
8546 cat >>confdefs.h
<<_ACEOF
8547 #define WITH_PYTHON_PATH "${python_prefix}"
8551 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8552 if test "x$prefix" = xNONE
; then
8553 test_prefix
=/usr
/local
8558 test_prefix
=$exec_prefix
8561 case ${python_prefix} in
8562 "${test_prefix}"|
"${test_prefix}/"*|\
8563 '${exec_prefix}'|
'${exec_prefix}/'*)
8568 cat >>confdefs.h
<<_ACEOF
8569 #define PYTHON_PATH_RELOCATABLE $value
8577 if test "${have_libpython}" != no
; then
8579 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8581 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8582 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8583 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8584 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
8585 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8587 # Flags needed to compile Python code (taken from python-config --cflags).
8588 # We cannot call python-config directly because it will output whatever was
8589 # used when compiling the Python interpreter itself, including flags which
8590 # would make the python-related objects be compiled differently from the
8591 # rest of GDB (e.g., -O2 and -fPIC).
8592 if test "${GCC}" = yes; then
8593 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
8596 if test "x${tentative_python_cflags}" != x
; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8598 $as_echo_n "checking compiler flags for python code... " >&6; }
8599 for flag
in ${tentative_python_cflags}; do
8600 # Check that the compiler accepts it
8601 saved_CFLAGS
="$CFLAGS"
8602 CFLAGS
="$CFLAGS $flag"
8603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8614 if ac_fn_c_try_compile
"$LINENO"; then :
8615 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
8617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8618 CFLAGS
="$saved_CFLAGS"
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8621 $as_echo "${PYTHON_CFLAGS}" >&6; }
8624 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8626 # #define siginfo __siginfo
8628 # The problem is that including Python causes some XOPEN macros to be
8629 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8630 # to false. So, we work around this issue by defining siginfo ourself
8631 # though the command-line.
8633 # On x64 Windows, Python's include headers, and pyconfig.h in
8634 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8635 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8636 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8637 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8638 # The issue was reported to the Python community, but still isn't
8639 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8642 irix
*) if test "${GCC}" = yes; then
8643 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
8647 if test "${GCC}" = yes; then
8648 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
8653 # Note that "python -m threading" cannot be used to check for
8654 # threading support due to a bug in Python 2.7.3
8655 # (http://bugs.python.org/issue15567).
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8657 $as_echo_n "checking whether python supports threads... " >&6; }
8658 saved_CPPFLAGS
="${CPPFLAGS}"
8659 CPPFLAGS
="${PYTHON_CPPFLAGS}"
8660 # Note that the test is reversed so that python_has_threads=yes on
8661 # unexpected failures.
8662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8671 if ac_fn_c_try_cpp
"$LINENO"; then :
8672 python_has_threads
=no
8674 python_has_threads
=yes
8676 rm -f conftest.err conftest.
$ac_ext
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8678 $as_echo "${python_has_threads}" >&6; }
8679 CPPFLAGS
="${saved_CPPFLAGS}"
8681 # Even if Python support is not compiled in, we need to have this file
8682 # included so that the "python" command, et.al., still exists.
8683 CONFIG_OBS
="$CONFIG_OBS python.o"
8684 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
8690 # -------------------- #
8691 # Check for libguile. #
8692 # -------------------- #
8699 # Check whether --with-guile was given.
8700 if test "${with_guile+set}" = set; then :
8701 withval
=$with_guile;
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
8707 $as_echo_n "checking whether to use guile... " >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
8709 $as_echo "$with_guile" >&6; }
8711 # Extract the first word of "pkg-config", so it can be a program name with args.
8712 set dummy pkg-config
; ac_word
=$2
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 $as_echo_n "checking for $ac_word... " >&6; }
8715 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
8716 $as_echo_n "(cached) " >&6
8718 case $pkg_config_prog_path in
8720 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
8723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8727 test -z "$as_dir" && as_dir
=.
8728 for ac_exec_ext
in '' $ac_executable_extensions; do
8729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8730 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
8742 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
8743 if test -n "$pkg_config_prog_path"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
8745 $as_echo "$pkg_config_prog_path" >&6; }
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8753 try_guile_versions
="guile-2.2 guile-2.0"
8755 case "${with_guile}" in
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
8758 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
8761 if test "${pkg_config_prog_path}" = "missing"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
8763 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
8766 pkg_config
=${pkg_config_prog_path}
8767 guile_version_list
=${try_guile_versions}
8770 found_usable_guile
=checking
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8772 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8773 for guile_version
in ${guile_version_list}; do
8774 ${pkg_config} --exists ${guile_version} 2>/dev
/null
8775 if test $?
!= 0; then
8778 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
8779 if test $?
!= 0; then
8780 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8782 new_LIBS
=`${pkg_config} --libs ${guile_version}`
8783 if test $?
!= 0; then
8784 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8786 found_usable_guile
=${guile_version}
8789 if test "${found_usable_guile}" = "checking"; then
8790 if test "${flag_errors}" = "yes"; then
8791 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8793 found_usable_guile
=no
8796 if test "${found_usable_guile}" != no
; then
8797 save_CPPFLAGS
=$CPPFLAGS
8799 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8800 LIBS
="$LIBS $new_LIBS"
8801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 #include "libguile.h"
8812 if ac_fn_c_try_link
"$LINENO"; then :
8814 GUILE_CPPFLAGS
=$new_CPPFLAGS
8815 GUILE_LIBS
=$new_LIBS
8817 found_usable_guile
=no
8819 rm -f core conftest.err conftest.
$ac_objext \
8820 conftest
$ac_exeext conftest.
$ac_ext
8821 CPPFLAGS
=$save_CPPFLAGS
8823 if test "${found_usable_guile}" = no
; then
8824 if test "${flag_errors}" = yes; then
8825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8827 as_fn_error
"linking guile version ${guile_version} test program failed
8828 See \`config.log' for more details." "$LINENO" 5; }
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8833 $as_echo "${found_usable_guile}" >&6; }
8838 if test "${pkg_config_prog_path}" = "missing"; then
8839 as_fn_error
"pkg-config not found" "$LINENO" 5
8842 pkg_config
=${pkg_config_prog_path}
8843 guile_version_list
=${try_guile_versions}
8846 found_usable_guile
=checking
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8848 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8849 for guile_version
in ${guile_version_list}; do
8850 ${pkg_config} --exists ${guile_version} 2>/dev
/null
8851 if test $?
!= 0; then
8854 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
8855 if test $?
!= 0; then
8856 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8858 new_LIBS
=`${pkg_config} --libs ${guile_version}`
8859 if test $?
!= 0; then
8860 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8862 found_usable_guile
=${guile_version}
8865 if test "${found_usable_guile}" = "checking"; then
8866 if test "${flag_errors}" = "yes"; then
8867 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8869 found_usable_guile
=no
8872 if test "${found_usable_guile}" != no
; then
8873 save_CPPFLAGS
=$CPPFLAGS
8875 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8876 LIBS
="$LIBS $new_LIBS"
8877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8879 #include "libguile.h"
8888 if ac_fn_c_try_link
"$LINENO"; then :
8890 GUILE_CPPFLAGS
=$new_CPPFLAGS
8891 GUILE_LIBS
=$new_LIBS
8893 found_usable_guile
=no
8895 rm -f core conftest.err conftest.
$ac_objext \
8896 conftest
$ac_exeext conftest.
$ac_ext
8897 CPPFLAGS
=$save_CPPFLAGS
8899 if test "${found_usable_guile}" = no
; then
8900 if test "${flag_errors}" = yes; then
8901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8903 as_fn_error
"linking guile version ${guile_version} test program failed
8904 See \`config.log' for more details." "$LINENO" 5; }
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8909 $as_echo "${found_usable_guile}" >&6; }
8913 if test -x "${with_guile}"; then
8915 pkg_config
=${with_guile}
8916 guile_version_list
=${try_guile_versions}
8919 found_usable_guile
=checking
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8921 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8922 for guile_version
in ${guile_version_list}; do
8923 ${pkg_config} --exists ${guile_version} 2>/dev
/null
8924 if test $?
!= 0; then
8927 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
8928 if test $?
!= 0; then
8929 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8931 new_LIBS
=`${pkg_config} --libs ${guile_version}`
8932 if test $?
!= 0; then
8933 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8935 found_usable_guile
=${guile_version}
8938 if test "${found_usable_guile}" = "checking"; then
8939 if test "${flag_errors}" = "yes"; then
8940 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8942 found_usable_guile
=no
8945 if test "${found_usable_guile}" != no
; then
8946 save_CPPFLAGS
=$CPPFLAGS
8948 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8949 LIBS
="$LIBS $new_LIBS"
8950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h. */
8952 #include "libguile.h"
8961 if ac_fn_c_try_link
"$LINENO"; then :
8963 GUILE_CPPFLAGS
=$new_CPPFLAGS
8964 GUILE_LIBS
=$new_LIBS
8966 found_usable_guile
=no
8968 rm -f core conftest.err conftest.
$ac_objext \
8969 conftest
$ac_exeext conftest.
$ac_ext
8970 CPPFLAGS
=$save_CPPFLAGS
8972 if test "${found_usable_guile}" = no
; then
8973 if test "${flag_errors}" = yes; then
8974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8976 as_fn_error
"linking guile version ${guile_version} test program failed
8977 See \`config.log' for more details." "$LINENO" 5; }
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8982 $as_echo "${found_usable_guile}" >&6; }
8985 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
8989 # Disallow --with=guile="" and --with-guile=foo/bar.
8990 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
8993 # A space separate list of guile versions to try, in order.
8994 if test "${pkg_config_prog_path}" = "missing"; then
8995 as_fn_error
"pkg-config not found" "$LINENO" 5
8998 pkg_config
=${pkg_config_prog_path}
8999 guile_version_list
=${with_guile}
9002 found_usable_guile
=checking
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9004 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9005 for guile_version
in ${guile_version_list}; do
9006 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9007 if test $?
!= 0; then
9010 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9011 if test $?
!= 0; then
9012 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9014 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9015 if test $?
!= 0; then
9016 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9018 found_usable_guile
=${guile_version}
9021 if test "${found_usable_guile}" = "checking"; then
9022 if test "${flag_errors}" = "yes"; then
9023 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9025 found_usable_guile
=no
9028 if test "${found_usable_guile}" != no
; then
9029 save_CPPFLAGS
=$CPPFLAGS
9031 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9032 LIBS
="$LIBS $new_LIBS"
9033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035 #include "libguile.h"
9044 if ac_fn_c_try_link
"$LINENO"; then :
9046 GUILE_CPPFLAGS
=$new_CPPFLAGS
9047 GUILE_LIBS
=$new_LIBS
9049 found_usable_guile
=no
9051 rm -f core conftest.err conftest.
$ac_objext \
9052 conftest
$ac_exeext conftest.
$ac_ext
9053 CPPFLAGS
=$save_CPPFLAGS
9055 if test "${found_usable_guile}" = no
; then
9056 if test "${flag_errors}" = yes; then
9057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9059 as_fn_error
"linking guile version ${guile_version} test program failed
9060 See \`config.log' for more details." "$LINENO" 5; }
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9065 $as_echo "${found_usable_guile}" >&6; }
9070 if test "${have_libguile}" != no
; then
9072 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9074 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9075 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9076 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9077 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
9078 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9081 save_CPPFLAGS
="$CPPFLAGS"
9083 CPPFLAGS
="$GUILE_CPPFLAGS"
9084 for ac_func
in scm_new_smob
9086 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9087 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
9088 cat >>confdefs.h
<<_ACEOF
9089 #define HAVE_SCM_NEW_SMOB 1
9096 CPPFLAGS
="$save_CPPFLAGS"
9098 # Even if Guile support is not compiled in, we need to have these files
9100 CONFIG_OBS
="$CONFIG_OBS guile.o"
9101 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
9106 # PR 17185, see if we can get the libgc version to see if we need
9107 # to apply the workaround.
9108 for ac_header
in gc
/gc.h
9110 ac_fn_c_check_header_mongrel
"$LINENO" "gc/gc.h" "ac_cv_header_gc_gc_h" "$ac_includes_default"
9111 if test "x$ac_cv_header_gc_gc_h" = x
""yes; then :
9112 cat >>confdefs.h
<<_ACEOF
9113 #define HAVE_GC_GC_H 1
9120 for ac_func
in setenv
9122 ac_fn_c_check_func
"$LINENO" "setenv" "ac_cv_func_setenv"
9123 if test "x$ac_cv_func_setenv" = x
""yes; then :
9124 cat >>confdefs.h
<<_ACEOF
9125 #define HAVE_SETENV 1
9132 # --------------------- #
9133 # Check for libmcheck. #
9134 # --------------------- #
9136 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9137 # but turn it off if Python is enabled with threads, since -lmcheck is
9138 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9140 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
9141 && $development; then
9142 libmcheck_default
=yes
9144 libmcheck_default
=no
9147 # Check whether --enable-libmcheck was given.
9148 if test "${enable_libmcheck+set}" = set; then :
9149 enableval
=$enable_libmcheck; case "${enableval}" in
9150 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
9151 no | n
) ENABLE_LIBMCHECK
="no" ;;
9152 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9157 if test -z "${ENABLE_LIBMCHECK}"; then
9158 ENABLE_LIBMCHECK
=${libmcheck_default}
9161 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9163 $as_echo_n "checking for main in -lmcheck... " >&6; }
9164 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
9167 ac_check_lib_save_LIBS
=$LIBS
9168 LIBS
="-lmcheck $LIBS"
9169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9181 if ac_fn_c_try_link
"$LINENO"; then :
9182 ac_cv_lib_mcheck_main
=yes
9184 ac_cv_lib_mcheck_main
=no
9186 rm -f core conftest.err conftest.
$ac_objext \
9187 conftest
$ac_exeext conftest.
$ac_ext
9188 LIBS
=$ac_check_lib_save_LIBS
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9191 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9192 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
9193 cat >>confdefs.h
<<_ACEOF
9194 #define HAVE_LIBMCHECK 1
9197 LIBS
="-lmcheck $LIBS"
9204 if test "$ENABLE_LIBMCHECK" = "yes" \
9205 -a "${have_libpython}" != "no" \
9206 -a "${python_has_threads}" = "yes" ; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9208 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9211 # ------------------------- #
9212 # Checks for header files. #
9213 # ------------------------- #
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9216 $as_echo_n "checking for ANSI C header files... " >&6; }
9217 if test "${ac_cv_header_stdc+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9235 if ac_fn_c_try_compile
"$LINENO"; then :
9236 ac_cv_header_stdc
=yes
9238 ac_cv_header_stdc
=no
9240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9242 if test $ac_cv_header_stdc = yes; then
9243 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9250 $EGREP "memchr" >/dev
/null
2>&1; then :
9253 ac_cv_header_stdc
=no
9259 if test $ac_cv_header_stdc = yes; then
9260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9267 $EGREP "free" >/dev
/null
2>&1; then :
9270 ac_cv_header_stdc
=no
9276 if test $ac_cv_header_stdc = yes; then
9277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9278 if test "$cross_compiling" = yes; then :
9281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9285 #if ((' ' & 0x0FF) == 0x020)
9286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9289 # define ISLOWER(c) \
9290 (('a' <= (c) && (c) <= 'i') \
9291 || ('j' <= (c) && (c) <= 'r') \
9292 || ('s' <= (c) && (c) <= 'z'))
9293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9301 for (i = 0; i < 256; i++)
9302 if (XOR (islower (i), ISLOWER (i))
9303 || toupper (i) != TOUPPER (i))
9308 if ac_fn_c_try_run
"$LINENO"; then :
9311 ac_cv_header_stdc
=no
9313 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9314 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9320 $as_echo "$ac_cv_header_stdc" >&6; }
9321 if test $ac_cv_header_stdc = yes; then
9323 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9327 # elf_hp.h is for HP/UX 64-bit shared library support.
9328 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
9331 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
9332 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
9333 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
9334 termios.h termio.h \
9338 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9339 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9340 eval as_val
=\$
$as_ac_Header
9341 if test "x$as_val" = x
""yes; then :
9342 cat >>confdefs.h
<<_ACEOF
9343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9350 for ac_header
in sys
/proc.h
9352 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9353 # include <sys/param.h>
9357 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
9358 cat >>confdefs.h
<<_ACEOF
9359 #define HAVE_SYS_PROC_H 1
9366 for ac_header
in sys
/user.h
9368 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9369 # include <sys/param.h>
9373 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
9374 cat >>confdefs.h
<<_ACEOF
9375 #define HAVE_SYS_USER_H 1
9383 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9384 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9385 # think that we don't have <curses.h> if we're using GCC.
9388 if test "$GCC" = yes; then
9390 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9394 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
9396 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9397 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9398 eval as_val
=\$
$as_ac_Header
9399 if test "x$as_val" = x
""yes; then :
9400 cat >>confdefs.h
<<_ACEOF
9401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9408 for ac_header
in term.h
9410 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9411 # include <curses.h>
9415 if test "x$ac_cv_header_term_h" = x
""yes; then :
9416 cat >>confdefs.h
<<_ACEOF
9417 #define HAVE_TERM_H 1
9425 # ------------------------- #
9426 # Checks for declarations. #
9427 # ------------------------- #
9429 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9430 if test "x$ac_cv_have_decl_free" = x
""yes; then :
9436 cat >>confdefs.h
<<_ACEOF
9437 #define HAVE_DECL_FREE $ac_have_decl
9439 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9440 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
9446 cat >>confdefs.h
<<_ACEOF
9447 #define HAVE_DECL_MALLOC $ac_have_decl
9449 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9450 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
9456 cat >>confdefs.h
<<_ACEOF
9457 #define HAVE_DECL_REALLOC $ac_have_decl
9459 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9460 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
9466 cat >>confdefs.h
<<_ACEOF
9467 #define HAVE_DECL_SNPRINTF $ac_have_decl
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9472 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9473 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9487 if ac_fn_c_try_link
"$LINENO"; then :
9488 am_cv_val_LC_MESSAGES
=yes
9490 am_cv_val_LC_MESSAGES
=no
9492 rm -f core conftest.err conftest.
$ac_objext \
9493 conftest
$ac_exeext conftest.
$ac_ext
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9496 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9497 if test $am_cv_val_LC_MESSAGES = yes; then
9499 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9504 # ----------------------- #
9505 # Checks for structures. #
9506 # ----------------------- #
9508 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9509 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
9511 cat >>confdefs.h
<<_ACEOF
9512 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9517 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9518 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
9520 cat >>confdefs.h
<<_ACEOF
9521 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9528 # ------------------ #
9529 # Checks for types. #
9530 # ------------------ #
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9533 $as_echo_n "checking return type of signal handlers... " >&6; }
9534 if test "${ac_cv_type_signal+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9539 #include <sys/types.h>
9545 return *(signal (0, 0)) (0) == 1;
9550 if ac_fn_c_try_compile
"$LINENO"; then :
9551 ac_cv_type_signal
=int
9553 ac_cv_type_signal
=void
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9558 $as_echo "$ac_cv_type_signal" >&6; }
9560 cat >>confdefs.h
<<_ACEOF
9561 #define RETSIGTYPE $ac_cv_type_signal
9565 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9566 #include <sys/socket.h>
9569 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
9571 cat >>confdefs.h
<<_ACEOF
9572 #define HAVE_SOCKLEN_T 1
9579 # ------------------------------------- #
9580 # Checks for compiler characteristics. #
9581 # ------------------------------------- #
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9584 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9585 if test "${ac_cv_c_const+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9594 /* FIXME: Include the comments suggested by Paul. */
9596 /* Ultrix mips cc rejects this. */
9597 typedef int charset[2];
9599 /* SunOS 4.1.1 cc rejects this. */
9600 char const *const *pcpcc;
9602 /* NEC SVR4.0.2 mips cc rejects this. */
9603 struct point {int x, y;};
9604 static struct point const zero = {0,0};
9605 /* AIX XL C 1.02.0.0 rejects this.
9606 It does not let you subtract one const X* pointer from another in
9607 an arm of an if-expression whose if-part is not a constant
9609 const char *g = "string";
9610 pcpcc = &g + (g ? g-g : 0);
9611 /* HPUX 7.0 cc rejects these. */
9613 ppc = (char**) pcpcc;
9614 pcpcc = (char const *const *) ppc;
9615 { /* SCO 3.2v4 cc rejects this. */
9617 char const *s = 0 ? (char *) 0 : (char const *) 0;
9622 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9624 const int *foo = &x[0];
9627 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9628 typedef const int *iptr;
9632 { /* AIX XL C 1.02.0.0 rejects this saying
9633 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9634 struct s { int j; const int *ap[3]; };
9635 struct s *b; b->j = 5;
9637 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9641 return !cs[0] && !zero.x;
9648 if ac_fn_c_try_compile
"$LINENO"; then :
9653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9656 $as_echo "$ac_cv_c_const" >&6; }
9657 if test $ac_cv_c_const = no
; then
9659 $as_echo "#define const /**/" >>confdefs.h
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9664 $as_echo_n "checking for inline... " >&6; }
9665 if test "${ac_cv_c_inline+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9669 for ac_kw
in inline __inline__ __inline
; do
9670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9674 static $ac_kw foo_t static_foo () {return 0; }
9675 $ac_kw foo_t foo () {return 0; }
9679 if ac_fn_c_try_compile
"$LINENO"; then :
9680 ac_cv_c_inline
=$ac_kw
9682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9683 test "$ac_cv_c_inline" != no
&& break
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9688 $as_echo "$ac_cv_c_inline" >&6; }
9690 case $ac_cv_c_inline in
9693 case $ac_cv_c_inline in
9695 *) ac_val
=$ac_cv_c_inline;;
9697 cat >>confdefs.h
<<_ACEOF
9699 #define inline $ac_val
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9706 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9707 if test "${ac_cv_c_bigendian+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9710 ac_cv_c_bigendian
=unknown
9711 # See if we're dealing with a universal compiler.
9712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9714 #ifndef __APPLE_CC__
9715 not a universal capable compiler
9720 if ac_fn_c_try_compile
"$LINENO"; then :
9722 # Check for potential -arch flags. It is not universal unless
9723 # there are at least two -arch flags with different values.
9726 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9727 if test -n "$ac_prev"; then
9729 i?
86 | x86_64 | ppc | ppc64
)
9730 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9733 ac_cv_c_bigendian
=universal
9739 elif test "x$ac_word" = "x-arch"; then
9744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9745 if test $ac_cv_c_bigendian = unknown
; then
9746 # See if sys/param.h defines the BYTE_ORDER macro.
9747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 #include <sys/types.h>
9750 #include <sys/param.h>
9755 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9756 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9765 if ac_fn_c_try_compile
"$LINENO"; then :
9766 # It does; now see whether it defined to BIG_ENDIAN or not.
9767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 #include <sys/types.h>
9770 #include <sys/param.h>
9775 #if BYTE_ORDER != BIG_ENDIAN
9783 if ac_fn_c_try_compile
"$LINENO"; then :
9784 ac_cv_c_bigendian
=yes
9786 ac_cv_c_bigendian
=no
9788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9792 if test $ac_cv_c_bigendian = unknown
; then
9793 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9801 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9809 if ac_fn_c_try_compile
"$LINENO"; then :
9810 # It does; now see whether it defined to _BIG_ENDIAN or not.
9811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9826 if ac_fn_c_try_compile
"$LINENO"; then :
9827 ac_cv_c_bigendian
=yes
9829 ac_cv_c_bigendian
=no
9831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9835 if test $ac_cv_c_bigendian = unknown
; then
9836 # Compile a test program.
9837 if test "$cross_compiling" = yes; then :
9838 # Try to guess by grepping values from an object file.
9839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 short int ascii_mm[] =
9842 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9843 short int ascii_ii[] =
9844 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9845 int use_ascii (int i) {
9846 return ascii_mm[i] + ascii_ii[i];
9848 short int ebcdic_ii[] =
9849 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9850 short int ebcdic_mm[] =
9851 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9852 int use_ebcdic (int i) {
9853 return ebcdic_mm[i] + ebcdic_ii[i];
9860 return use_ascii (foo) == use_ebcdic (foo);
9865 if ac_fn_c_try_compile
"$LINENO"; then :
9866 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9867 ac_cv_c_bigendian
=yes
9869 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9870 if test "$ac_cv_c_bigendian" = unknown
; then
9871 ac_cv_c_bigendian
=no
9873 # finding both strings is unlikely to happen, but who knows?
9874 ac_cv_c_bigendian
=unknown
9878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9882 $ac_includes_default
9887 /* Are we little or big endian? From Harbison&Steele. */
9891 char c[sizeof (long int)];
9894 return u.c[sizeof (long int) - 1] == 1;
9900 if ac_fn_c_try_run
"$LINENO"; then :
9901 ac_cv_c_bigendian
=no
9903 ac_cv_c_bigendian
=yes
9905 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9906 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9912 $as_echo "$ac_cv_c_bigendian" >&6; }
9913 case $ac_cv_c_bigendian in #(
9915 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9921 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9925 as_fn_error
"unknown endianness
9926 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9930 # ------------------------------ #
9931 # Checks for library functions. #
9932 # ------------------------------ #
9934 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9935 # for constant arguments. Useless!
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9937 $as_echo_n "checking for working alloca.h... " >&6; }
9938 if test "${ac_cv_working_alloca_h+set}" = set; then :
9939 $as_echo_n "(cached) " >&6
9941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9947 char *p = (char *) alloca (2 * sizeof (int));
9953 if ac_fn_c_try_link
"$LINENO"; then :
9954 ac_cv_working_alloca_h
=yes
9956 ac_cv_working_alloca_h
=no
9958 rm -f core conftest.err conftest.
$ac_objext \
9959 conftest
$ac_exeext conftest.
$ac_ext
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9962 $as_echo "$ac_cv_working_alloca_h" >&6; }
9963 if test $ac_cv_working_alloca_h = yes; then
9965 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9970 $as_echo_n "checking for alloca... " >&6; }
9971 if test "${ac_cv_func_alloca_works+set}" = set; then :
9972 $as_echo_n "(cached) " >&6
9974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9977 # define alloca __builtin_alloca
9980 # include <malloc.h>
9981 # define alloca _alloca
9983 # ifdef HAVE_ALLOCA_H
9984 # include <alloca.h>
9989 # ifndef alloca /* predefined by HP cc +Olibcalls */
10000 char *p = (char *) alloca (1);
10006 if ac_fn_c_try_link
"$LINENO"; then :
10007 ac_cv_func_alloca_works
=yes
10009 ac_cv_func_alloca_works
=no
10011 rm -f core conftest.err conftest.
$ac_objext \
10012 conftest
$ac_exeext conftest.
$ac_ext
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10015 $as_echo "$ac_cv_func_alloca_works" >&6; }
10017 if test $ac_cv_func_alloca_works = yes; then
10019 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10022 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10023 # that cause trouble. Some versions do not even contain alloca or
10024 # contain a buggy version. If you still want to use their alloca,
10025 # use ar to extract alloca.o from them instead of compiling alloca.c.
10027 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10029 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10033 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10034 if test "${ac_cv_os_cray+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039 #if defined CRAY && ! defined CRAY2
10046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10047 $EGREP "webecray" >/dev
/null
2>&1; then :
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10056 $as_echo "$ac_cv_os_cray" >&6; }
10057 if test $ac_cv_os_cray = yes; then
10058 for ac_func
in _getb67 GETB67 getb67
; do
10059 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10060 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10061 eval as_val
=\$
$as_ac_var
10062 if test "x$as_val" = x
""yes; then :
10064 cat >>confdefs.h
<<_ACEOF
10065 #define CRAY_STACKSEG_END $ac_func
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10075 $as_echo_n "checking stack direction for C alloca... " >&6; }
10076 if test "${ac_cv_c_stack_direction+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
10079 if test "$cross_compiling" = yes; then :
10080 ac_cv_c_stack_direction
=0
10082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10084 $ac_includes_default
10086 find_stack_direction ()
10088 static char *addr = 0;
10093 return find_stack_direction ();
10096 return (&dummy > addr) ? 1 : -1;
10102 return find_stack_direction () < 0;
10105 if ac_fn_c_try_run
"$LINENO"; then :
10106 ac_cv_c_stack_direction
=1
10108 ac_cv_c_stack_direction
=-1
10110 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10111 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10116 $as_echo "$ac_cv_c_stack_direction" >&6; }
10117 cat >>confdefs.h
<<_ACEOF
10118 #define STACK_DIRECTION $ac_cv_c_stack_direction
10124 for ac_header
in stdlib.h unistd.h
10126 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10127 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10128 eval as_val
=\$
$as_ac_Header
10129 if test "x$as_val" = x
""yes; then :
10130 cat >>confdefs.h
<<_ACEOF
10131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10138 for ac_func
in getpagesize
10140 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10141 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10142 cat >>confdefs.h
<<_ACEOF
10143 #define HAVE_GETPAGESIZE 1
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10150 $as_echo_n "checking for working mmap... " >&6; }
10151 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10152 $as_echo_n "(cached) " >&6
10154 if test "$cross_compiling" = yes; then :
10155 ac_cv_func_mmap_fixed_mapped
=no
10157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159 $ac_includes_default
10160 /* malloc might have been renamed as rpl_malloc. */
10163 /* Thanks to Mike Haertel and Jim Avera for this test.
10164 Here is a matrix of mmap possibilities:
10165 mmap private not fixed
10166 mmap private fixed at somewhere currently unmapped
10167 mmap private fixed at somewhere already mapped
10168 mmap shared not fixed
10169 mmap shared fixed at somewhere currently unmapped
10170 mmap shared fixed at somewhere already mapped
10171 For private mappings, we should verify that changes cannot be read()
10172 back from the file, nor mmap's back from the file at a different
10173 address. (There have been systems where private was not correctly
10174 implemented like the infamous i386 svr4.0, and systems where the
10175 VM page cache was not coherent with the file system buffer cache
10176 like early versions of FreeBSD and possibly contemporary NetBSD.)
10177 For shared mappings, we should conversely verify that changes get
10178 propagated back to all the places they're supposed to be.
10180 Grep wants private fixed already mapped.
10181 The main things grep needs to know about mmap are:
10182 * does it exist and is it safe to write into the mmap'd area
10183 * how to use it (BSD variants) */
10186 #include <sys/mman.h>
10188 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10192 /* This mess was copied from the GNU getpagesize.h. */
10193 #ifndef HAVE_GETPAGESIZE
10194 /* Assume that all systems that can run configure have sys/param.h. */
10195 # ifndef HAVE_SYS_PARAM_H
10196 # define HAVE_SYS_PARAM_H 1
10199 # ifdef _SC_PAGESIZE
10200 # define getpagesize() sysconf(_SC_PAGESIZE)
10201 # else /* no _SC_PAGESIZE */
10202 # ifdef HAVE_SYS_PARAM_H
10203 # include <sys/param.h>
10204 # ifdef EXEC_PAGESIZE
10205 # define getpagesize() EXEC_PAGESIZE
10206 # else /* no EXEC_PAGESIZE */
10208 # define getpagesize() NBPG * CLSIZE
10211 # endif /* no CLSIZE */
10212 # else /* no NBPG */
10214 # define getpagesize() NBPC
10215 # else /* no NBPC */
10217 # define getpagesize() PAGESIZE
10218 # endif /* PAGESIZE */
10219 # endif /* no NBPC */
10220 # endif /* no NBPG */
10221 # endif /* no EXEC_PAGESIZE */
10222 # else /* no HAVE_SYS_PARAM_H */
10223 # define getpagesize() 8192 /* punt totally */
10224 # endif /* no HAVE_SYS_PARAM_H */
10225 # endif /* no _SC_PAGESIZE */
10227 #endif /* no HAVE_GETPAGESIZE */
10232 char *data, *data2, *data3;
10236 pagesize = getpagesize ();
10238 /* First, make a file with some known garbage in it. */
10239 data = (char *) malloc (pagesize);
10242 for (i = 0; i < pagesize; ++i)
10243 *(data + i) = rand ();
10245 fd = creat ("conftest.mmap", 0600);
10248 if (write (fd, data, pagesize) != pagesize)
10252 /* Next, try to mmap the file at a fixed address which already has
10253 something else allocated at it. If we can, also make sure that
10254 we see the same garbage. */
10255 fd = open ("conftest.mmap", O_RDWR);
10258 data2 = (char *) malloc (2 * pagesize);
10261 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10262 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10263 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10265 for (i = 0; i < pagesize; ++i)
10266 if (*(data + i) != *(data2 + i))
10269 /* Finally, make sure that changes to the mapped area do not
10270 percolate back to the file as seen by read(). (This is a bug on
10271 some variants of i386 svr4.0.) */
10272 for (i = 0; i < pagesize; ++i)
10273 *(data2 + i) = *(data2 + i) + 1;
10274 data3 = (char *) malloc (pagesize);
10277 if (read (fd, data3, pagesize) != pagesize)
10279 for (i = 0; i < pagesize; ++i)
10280 if (*(data + i) != *(data3 + i))
10286 if ac_fn_c_try_run
"$LINENO"; then :
10287 ac_cv_func_mmap_fixed_mapped
=yes
10289 ac_cv_func_mmap_fixed_mapped
=no
10291 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10292 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10297 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10300 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10303 rm -f conftest.mmap
10305 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10306 if test "x$ac_cv_type_pid_t" = x
""yes; then :
10310 cat >>confdefs.h
<<_ACEOF
10316 for ac_header
in vfork.h
10318 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10319 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
10320 cat >>confdefs.h
<<_ACEOF
10321 #define HAVE_VFORK_H 1
10328 for ac_func
in fork vfork
10330 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10331 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10332 eval as_val
=\$
$as_ac_var
10333 if test "x$as_val" = x
""yes; then :
10334 cat >>confdefs.h
<<_ACEOF
10335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10341 if test "x$ac_cv_func_fork" = xyes
; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10343 $as_echo_n "checking for working fork... " >&6; }
10344 if test "${ac_cv_func_fork_works+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10347 if test "$cross_compiling" = yes; then :
10348 ac_cv_func_fork_works
=cross
10350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 $ac_includes_default
10357 /* By Ruediger Kuhlmann. */
10358 return fork () < 0;
10364 if ac_fn_c_try_run
"$LINENO"; then :
10365 ac_cv_func_fork_works
=yes
10367 ac_cv_func_fork_works
=no
10369 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10370 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10375 $as_echo "$ac_cv_func_fork_works" >&6; }
10378 ac_cv_func_fork_works
=$ac_cv_func_fork
10380 if test "x$ac_cv_func_fork_works" = xcross
; then
10382 *-*-amigaos* |
*-*-msdosdjgpp*)
10383 # Override, as these systems have only a dummy fork() stub
10384 ac_cv_func_fork_works
=no
10387 ac_cv_func_fork_works
=yes
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10391 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10393 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10394 if test "x$ac_cv_func_vfork" = xyes
; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10396 $as_echo_n "checking for working vfork... " >&6; }
10397 if test "${ac_cv_func_vfork_works+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10400 if test "$cross_compiling" = yes; then :
10401 ac_cv_func_vfork_works
=cross
10403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405 /* Thanks to Paul Eggert for this test. */
10406 $ac_includes_default
10407 #include <sys/wait.h>
10408 #ifdef HAVE_VFORK_H
10409 # include <vfork.h>
10411 /* On some sparc systems, changes by the child to local and incoming
10412 argument registers are propagated back to the parent. The compiler
10413 is told about this with #include <vfork.h>, but some compilers
10414 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10415 static variable whose address is put into a register that is
10416 clobbered by the vfork. */
10419 sparc_address_test (int arg)
10421 sparc_address_test (arg) int arg;
10424 static pid_t child;
10442 pid_t parent = getpid ();
10445 sparc_address_test (0);
10450 /* Here is another test for sparc vfork register problems. This
10451 test uses lots of local variables, at least as many local
10452 variables as main has allocated so far including compiler
10453 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10454 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10455 reuse the register of parent for one of the local variables,
10456 since it will think that parent can't possibly be used any more
10457 in this routine. Assigning to the local variable will thus
10458 munge parent in the parent process. */
10460 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10461 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10462 /* Convince the compiler that p..p7 are live; otherwise, it might
10463 use the same hardware register for all 8 local variables. */
10464 if (p != p1 || p != p2 || p != p3 || p != p4
10465 || p != p5 || p != p6 || p != p7)
10468 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10469 from child file descriptors. If the child closes a descriptor
10470 before it execs or exits, this munges the parent's descriptor
10471 as well. Test for this by closing stdout in the child. */
10472 _exit(close(fileno(stdout)) != 0);
10477 while (wait(&status) != child)
10480 /* Was there some problem with vforking? */
10483 /* Did the child fail? (This shouldn't happen.) */
10486 /* Did the vfork/compiler bug occur? */
10487 || parent != getpid()
10489 /* Did the file descriptor bug occur? */
10490 || fstat(fileno(stdout), &st) != 0
10495 if ac_fn_c_try_run
"$LINENO"; then :
10496 ac_cv_func_vfork_works
=yes
10498 ac_cv_func_vfork_works
=no
10500 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10501 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10506 $as_echo "$ac_cv_func_vfork_works" >&6; }
10509 if test "x$ac_cv_func_fork_works" = xcross
; then
10510 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10512 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10515 if test "x$ac_cv_func_vfork_works" = xyes
; then
10517 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10521 $as_echo "#define vfork fork" >>confdefs.h
10524 if test "x$ac_cv_func_fork_works" = xyes
; then
10526 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10530 for ac_func
in canonicalize_file_name realpath getrusage getuid getgid \
10531 pipe poll pread pread64 pwrite readlink resize_term \
10532 sbrk setpgid setpgrp setsid \
10533 sigaction sigprocmask sigsetmask socketpair \
10534 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10535 setrlimit getrlimit posix_madvise waitpid lstat \
10536 ptrace64 sigaltstack
10538 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10539 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10540 eval as_val
=\$
$as_ac_var
10541 if test "x$as_val" = x
""yes; then :
10542 cat >>confdefs.h
<<_ACEOF
10543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10551 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10552 if test "${am_cv_langinfo_codeset+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557 #include <langinfo.h>
10561 char* cs = nl_langinfo(CODESET);
10566 if ac_fn_c_try_link
"$LINENO"; then :
10567 am_cv_langinfo_codeset
=yes
10569 am_cv_langinfo_codeset
=no
10571 rm -f core conftest.err conftest.
$ac_objext \
10572 conftest
$ac_exeext conftest.
$ac_ext
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10576 $as_echo "$am_cv_langinfo_codeset" >&6; }
10577 if test $am_cv_langinfo_codeset = yes; then
10579 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10585 $as_echo_n "checking for ANSI C header files... " >&6; }
10586 if test "${ac_cv_header_stdc+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
10589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 #include <stdlib.h>
10592 #include <stdarg.h>
10593 #include <string.h>
10604 if ac_fn_c_try_compile
"$LINENO"; then :
10605 ac_cv_header_stdc
=yes
10607 ac_cv_header_stdc
=no
10609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10611 if test $ac_cv_header_stdc = yes; then
10612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 #include <string.h>
10618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10619 $EGREP "memchr" >/dev
/null
2>&1; then :
10622 ac_cv_header_stdc
=no
10628 if test $ac_cv_header_stdc = yes; then
10629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632 #include <stdlib.h>
10635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10636 $EGREP "free" >/dev
/null
2>&1; then :
10639 ac_cv_header_stdc
=no
10645 if test $ac_cv_header_stdc = yes; then
10646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10647 if test "$cross_compiling" = yes; then :
10650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 #include <stdlib.h>
10654 #if ((' ' & 0x0FF) == 0x020)
10655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10658 # define ISLOWER(c) \
10659 (('a' <= (c) && (c) <= 'i') \
10660 || ('j' <= (c) && (c) <= 'r') \
10661 || ('s' <= (c) && (c) <= 'z'))
10662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10670 for (i = 0; i < 256; i++)
10671 if (XOR (islower (i), ISLOWER (i))
10672 || toupper (i) != TOUPPER (i))
10677 if ac_fn_c_try_run
"$LINENO"; then :
10680 ac_cv_header_stdc
=no
10682 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10683 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10689 $as_echo "$ac_cv_header_stdc" >&6; }
10690 if test $ac_cv_header_stdc = yes; then
10692 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10696 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10697 # for constant arguments. Useless!
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10699 $as_echo_n "checking for working alloca.h... " >&6; }
10700 if test "${ac_cv_working_alloca_h+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 #include <alloca.h>
10709 char *p = (char *) alloca (2 * sizeof (int));
10715 if ac_fn_c_try_link
"$LINENO"; then :
10716 ac_cv_working_alloca_h
=yes
10718 ac_cv_working_alloca_h
=no
10720 rm -f core conftest.err conftest.
$ac_objext \
10721 conftest
$ac_exeext conftest.
$ac_ext
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10724 $as_echo "$ac_cv_working_alloca_h" >&6; }
10725 if test $ac_cv_working_alloca_h = yes; then
10727 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10732 $as_echo_n "checking for alloca... " >&6; }
10733 if test "${ac_cv_func_alloca_works+set}" = set; then :
10734 $as_echo_n "(cached) " >&6
10736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10739 # define alloca __builtin_alloca
10742 # include <malloc.h>
10743 # define alloca _alloca
10745 # ifdef HAVE_ALLOCA_H
10746 # include <alloca.h>
10751 # ifndef alloca /* predefined by HP cc +Olibcalls */
10762 char *p = (char *) alloca (1);
10768 if ac_fn_c_try_link
"$LINENO"; then :
10769 ac_cv_func_alloca_works
=yes
10771 ac_cv_func_alloca_works
=no
10773 rm -f core conftest.err conftest.
$ac_objext \
10774 conftest
$ac_exeext conftest.
$ac_ext
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10777 $as_echo "$ac_cv_func_alloca_works" >&6; }
10779 if test $ac_cv_func_alloca_works = yes; then
10781 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10784 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10785 # that cause trouble. Some versions do not even contain alloca or
10786 # contain a buggy version. If you still want to use their alloca,
10787 # use ar to extract alloca.o from them instead of compiling alloca.c.
10789 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10791 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10795 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10796 if test "${ac_cv_os_cray+set}" = set; then :
10797 $as_echo_n "(cached) " >&6
10799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801 #if defined CRAY && ! defined CRAY2
10808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10809 $EGREP "webecray" >/dev
/null
2>&1; then :
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10818 $as_echo "$ac_cv_os_cray" >&6; }
10819 if test $ac_cv_os_cray = yes; then
10820 for ac_func
in _getb67 GETB67 getb67
; do
10821 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10822 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10823 eval as_val
=\$
$as_ac_var
10824 if test "x$as_val" = x
""yes; then :
10826 cat >>confdefs.h
<<_ACEOF
10827 #define CRAY_STACKSEG_END $ac_func
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10837 $as_echo_n "checking stack direction for C alloca... " >&6; }
10838 if test "${ac_cv_c_stack_direction+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10841 if test "$cross_compiling" = yes; then :
10842 ac_cv_c_stack_direction
=0
10844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846 $ac_includes_default
10848 find_stack_direction ()
10850 static char *addr = 0;
10855 return find_stack_direction ();
10858 return (&dummy > addr) ? 1 : -1;
10864 return find_stack_direction () < 0;
10867 if ac_fn_c_try_run
"$LINENO"; then :
10868 ac_cv_c_stack_direction
=1
10870 ac_cv_c_stack_direction
=-1
10872 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10873 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10878 $as_echo "$ac_cv_c_stack_direction" >&6; }
10879 cat >>confdefs.h
<<_ACEOF
10880 #define STACK_DIRECTION $ac_cv_c_stack_direction
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10889 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10890 if test "${am_cv_langinfo_codeset+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
10893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895 #include <langinfo.h>
10899 char* cs = nl_langinfo(CODESET);
10904 if ac_fn_c_try_link
"$LINENO"; then :
10905 am_cv_langinfo_codeset
=yes
10907 am_cv_langinfo_codeset
=no
10909 rm -f core conftest.err conftest.
$ac_objext \
10910 conftest
$ac_exeext conftest.
$ac_ext
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10914 $as_echo "$am_cv_langinfo_codeset" >&6; }
10915 if test $am_cv_langinfo_codeset = yes; then
10917 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10922 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
10924 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10925 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10926 eval as_val
=\$
$as_ac_Header
10927 if test "x$as_val" = x
""yes; then :
10928 cat >>confdefs.h
<<_ACEOF
10929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10937 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
10939 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10940 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10941 eval as_val
=\$
$as_ac_var
10942 if test "x$as_val" = x
""yes; then :
10943 cat >>confdefs.h
<<_ACEOF
10944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10951 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
10952 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
10958 cat >>confdefs.h
<<_ACEOF
10959 #define HAVE_DECL_STRERROR $ac_have_decl
10961 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
10962 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
10968 cat >>confdefs.h
<<_ACEOF
10969 #define HAVE_DECL_STRSTR $ac_have_decl
10974 # Check the return and argument types of ptrace. No canned test for
10975 # this, so roll our own.
10976 gdb_ptrace_headers
='
10977 #include <sys/types.h>
10978 #if HAVE_SYS_PTRACE_H
10979 # include <sys/ptrace.h>
10982 # include <unistd.h>
10985 # There is no point in checking if we don't have a prototype.
10986 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10988 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
10994 cat >>confdefs.h
<<_ACEOF
10995 #define HAVE_DECL_PTRACE $ac_have_decl
10997 if test $ac_have_decl = 1; then :
11001 : ${gdb_cv_func_ptrace_ret='int'}
11002 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11006 # Check return type. Varargs (used on GNU/Linux) conflict with the
11007 # empty argument list, so check for that explicitly.
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11009 $as_echo_n "checking return type of ptrace... " >&6; }
11010 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11011 $as_echo_n "(cached) " >&6
11013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11015 $gdb_ptrace_headers
11019 extern long ptrace (enum __ptrace_request, ...);
11024 if ac_fn_c_try_compile
"$LINENO"; then :
11025 gdb_cv_func_ptrace_ret
='long'
11027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11029 $gdb_ptrace_headers
11033 extern int ptrace ();
11038 if ac_fn_c_try_compile
"$LINENO"; then :
11039 gdb_cv_func_ptrace_ret
='int'
11041 gdb_cv_func_ptrace_ret
='long'
11043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11048 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11050 cat >>confdefs.h
<<_ACEOF
11051 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11054 # Check argument types.
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11056 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11057 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11058 $as_echo_n "(cached) " >&6
11061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11063 $gdb_ptrace_headers
11067 extern long ptrace (enum __ptrace_request, ...);
11072 if ac_fn_c_try_compile
"$LINENO"; then :
11073 gdb_cv_func_ptrace_args
='int,int,long,long'
11076 for gdb_arg1
in 'int' 'long'; do
11077 for gdb_arg2
in 'pid_t' 'int' 'long'; do
11078 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11079 for gdb_arg4
in 'int' 'long' 'void *'; do
11080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11082 $gdb_ptrace_headers
11087 extern $gdb_cv_func_ptrace_ret
11088 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11094 if ac_fn_c_try_compile
"$LINENO"; then :
11095 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11099 for gdb_arg5
in 'int *' 'int' 'long'; 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, $gdb_arg5);
11114 if ac_fn_c_try_compile
"$LINENO"; then :
11116 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11125 # Provide a safe default value.
11126 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11132 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11133 ac_save_IFS
=$IFS; IFS
=','
11134 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11138 cat >>confdefs.h
<<_ACEOF
11139 #define PTRACE_TYPE_ARG3 $3
11143 cat >>confdefs.h
<<_ACEOF
11144 #define PTRACE_TYPE_ARG4 $4
11147 if test -n "$5"; then
11149 cat >>confdefs.h
<<_ACEOF
11150 #define PTRACE_TYPE_ARG5 $5
11155 if test "$cross_compiling" = no
; then
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11157 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11158 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
11161 if test "$cross_compiling" = yes; then :
11162 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
11164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11166 $ac_includes_default
11170 /* If this system has a BSD-style setpgrp which takes arguments,
11171 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11172 exit successfully. */
11173 return setpgrp (1,1) != -1;
11178 if ac_fn_c_try_run
"$LINENO"; then :
11179 ac_cv_func_setpgrp_void
=no
11181 ac_cv_func_setpgrp_void
=yes
11183 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11184 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11189 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11190 if test $ac_cv_func_setpgrp_void = yes; then
11192 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11198 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11199 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11200 $as_echo_n "(cached) " >&6
11202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11205 #include <unistd.h>
11211 if (setpgrp(1,1) == -1)
11220 if ac_fn_c_try_compile
"$LINENO"; then :
11221 ac_cv_func_setpgrp_void
=no
11223 ac_cv_func_setpgrp_void
=yes
11225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11228 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11229 if test $ac_cv_func_setpgrp_void = yes; then
11230 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11235 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11236 # since sigsetjmp might only be defined as a macro.
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11238 $as_echo_n "checking for sigsetjmp... " >&6; }
11239 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11240 $as_echo_n "(cached) " >&6
11242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11245 #include <setjmp.h>
11250 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11255 if ac_fn_c_try_compile
"$LINENO"; then :
11256 gdb_cv_func_sigsetjmp
=yes
11258 gdb_cv_func_sigsetjmp
=no
11260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11263 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11264 if test $gdb_cv_func_sigsetjmp = yes; then
11266 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11270 # Assume we'll default to using the included libiberty regex.
11271 gdb_use_included_regex
=yes
11273 # However, if the system regex is GNU regex, then default to *not*
11274 # using the included regex.
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11276 $as_echo_n "checking for GNU regex... " >&6; }
11277 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11278 $as_echo_n "(cached) " >&6
11280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11282 #include <gnu-versions.h>
11286 #define REGEX_INTERFACE_VERSION 1
11287 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11288 # error "Version mismatch"
11294 if ac_fn_c_try_compile
"$LINENO"; then :
11295 gdb_cv_have_gnu_regex
=yes
11297 gdb_cv_have_gnu_regex
=no
11299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11302 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11303 if test $gdb_cv_have_gnu_regex = yes; then
11304 gdb_use_included_regex
=no
11308 # Check whether --with-included-regex was given.
11309 if test "${with_included_regex+set}" = set; then :
11310 withval
=$with_included_regex; gdb_with_regex
=$withval
11312 gdb_with_regex
=$gdb_use_included_regex
11315 if test "$gdb_with_regex" = yes; then
11317 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11321 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11322 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11323 #include <sys/proc.h>
11326 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
11328 cat >>confdefs.h
<<_ACEOF
11329 #define HAVE_STRUCT_THREAD_TD_PCB 1
11336 # See if <sys/lwp.h> defines `struct lwp`.
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11338 $as_echo_n "checking for struct lwp... " >&6; }
11339 if test "${gdb_cv_struct_lwp+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11344 #include <sys/param.h>
11345 #include <sys/lwp.h>
11354 if ac_fn_c_try_compile
"$LINENO"; then :
11355 gdb_cv_struct_lwp
=yes
11357 gdb_cv_struct_lwp
=no
11359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11362 $as_echo "$gdb_cv_struct_lwp" >&6; }
11363 if test $gdb_cv_struct_lwp = yes; then
11365 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11369 # See if <machine/reg.h> degines `struct reg'.
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11371 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11372 if test "${gdb_cv_struct_reg+set}" = set; then :
11373 $as_echo_n "(cached) " >&6
11375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11377 #include <sys/types.h>
11378 #include <machine/reg.h>
11387 if ac_fn_c_try_compile
"$LINENO"; then :
11388 gdb_cv_struct_reg
=yes
11390 gdb_cv_struct_reg
=no
11392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11395 $as_echo "$gdb_cv_struct_reg" >&6; }
11396 if test $gdb_cv_struct_reg = yes; then
11398 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11402 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11403 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11404 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11406 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
11408 cat >>confdefs.h
<<_ACEOF
11409 #define HAVE_STRUCT_REG_R_FS 1
11414 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11416 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
11418 cat >>confdefs.h
<<_ACEOF
11419 #define HAVE_STRUCT_REG_R_GS 1
11426 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
11427 # Older amd64 Linux's don't have the fs_base and gs_base members of
11428 # `struct user_regs_struct'.
11429 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>
11431 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
11433 cat >>confdefs.h
<<_ACEOF
11434 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
11439 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>
11441 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
11443 cat >>confdefs.h
<<_ACEOF
11444 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
11451 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11453 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11454 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11455 $as_echo_n "(cached) " >&6
11457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11459 #include <sys/ptrace.h>
11468 if ac_fn_c_try_compile
"$LINENO"; then :
11469 gdb_cv_have_ptrace_getregs
=yes
11471 gdb_cv_have_ptrace_getregs
=no
11473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11477 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11478 if test $gdb_cv_have_ptrace_getregs = yes; then
11480 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11484 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11486 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11487 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
11490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11492 #include <sys/ptrace.h>
11501 if ac_fn_c_try_compile
"$LINENO"; then :
11502 gdb_cv_have_ptrace_getfpxregs
=yes
11504 gdb_cv_have_ptrace_getfpxregs
=no
11506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11510 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11511 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11513 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11517 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11519 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11520 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11521 $as_echo_n "(cached) " >&6
11523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525 #include <sys/types.h>
11526 #include <sys/ptrace.h>
11535 if ac_fn_c_try_compile
"$LINENO"; then :
11536 gdb_cv_have_pt_getdbregs
=yes
11538 gdb_cv_have_pt_getdbregs
=no
11540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11544 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11545 if test $gdb_cv_have_pt_getdbregs = yes; then
11547 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11551 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11553 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11554 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 #include <sys/types.h>
11560 #include <sys/ptrace.h>
11569 if ac_fn_c_try_compile
"$LINENO"; then :
11570 gdb_cv_have_pt_getxmmregs
=yes
11572 gdb_cv_have_pt_getxmmregs
=no
11574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11578 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11579 if test $gdb_cv_have_pt_getxmmregs = yes; then
11581 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11585 # Detect which type of /proc is in use, such as for Solaris.
11587 if test "${target}" = "${host}"; then
11589 *-*-sysv4.2
* |
*-*-sysv5* )
11591 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11594 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
11596 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11600 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11602 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11608 if test "$ac_cv_header_sys_procfs_h" = yes; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11610 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11611 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11612 $as_echo_n "(cached) " >&6
11614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11618 /* Needed for new procfs interface on sparc-solaris. */
11619 #define _STRUCTURED_PROC 1
11620 #include <sys/procfs.h>
11629 if ac_fn_c_try_compile
"$LINENO"; then :
11630 bfd_cv_have_sys_procfs_type_gregset_t
=yes
11632 bfd_cv_have_sys_procfs_type_gregset_t
=no
11635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11638 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11640 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11644 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11647 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11648 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
11649 $as_echo_n "(cached) " >&6
11651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11655 /* Needed for new procfs interface on sparc-solaris. */
11656 #define _STRUCTURED_PROC 1
11657 #include <sys/procfs.h>
11666 if ac_fn_c_try_compile
"$LINENO"; then :
11667 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
11669 bfd_cv_have_sys_procfs_type_fpregset_t
=no
11672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11675 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11677 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11681 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11684 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11685 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11692 /* Needed for new procfs interface on sparc-solaris. */
11693 #define _STRUCTURED_PROC 1
11694 #include <sys/procfs.h>
11703 if ac_fn_c_try_compile
"$LINENO"; then :
11704 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
11706 bfd_cv_have_sys_procfs_type_prgregset_t
=no
11709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11712 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11714 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11718 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11721 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11722 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11723 $as_echo_n "(cached) " >&6
11725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11729 /* Needed for new procfs interface on sparc-solaris. */
11730 #define _STRUCTURED_PROC 1
11731 #include <sys/procfs.h>
11740 if ac_fn_c_try_compile
"$LINENO"; then :
11741 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
11743 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
11746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11749 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11751 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11755 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11758 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11759 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11760 $as_echo_n "(cached) " >&6
11762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11766 /* Needed for new procfs interface on sparc-solaris. */
11767 #define _STRUCTURED_PROC 1
11768 #include <sys/procfs.h>
11777 if ac_fn_c_try_compile
"$LINENO"; then :
11778 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
11780 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
11783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11786 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11788 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11792 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11795 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11796 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11797 $as_echo_n "(cached) " >&6
11799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11803 /* Needed for new procfs interface on sparc-solaris. */
11804 #define _STRUCTURED_PROC 1
11805 #include <sys/procfs.h>
11814 if ac_fn_c_try_compile
"$LINENO"; then :
11815 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
11817 bfd_cv_have_sys_procfs_type_lwpid_t
=no
11820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11823 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11825 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11829 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11832 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11833 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11834 $as_echo_n "(cached) " >&6
11836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11840 /* Needed for new procfs interface on sparc-solaris. */
11841 #define _STRUCTURED_PROC 1
11842 #include <sys/procfs.h>
11851 if ac_fn_c_try_compile
"$LINENO"; then :
11852 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
11854 bfd_cv_have_sys_procfs_type_psaddr_t
=no
11857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11860 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11862 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11866 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11869 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11870 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11871 $as_echo_n "(cached) " >&6
11873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11877 /* Needed for new procfs interface on sparc-solaris. */
11878 #define _STRUCTURED_PROC 1
11879 #include <sys/procfs.h>
11888 if ac_fn_c_try_compile
"$LINENO"; then :
11889 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
11891 bfd_cv_have_sys_procfs_type_prsysent_t
=no
11894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11897 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11899 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11903 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11906 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11907 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11908 $as_echo_n "(cached) " >&6
11910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11914 /* Needed for new procfs interface on sparc-solaris. */
11915 #define _STRUCTURED_PROC 1
11916 #include <sys/procfs.h>
11925 if ac_fn_c_try_compile
"$LINENO"; then :
11926 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
11928 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
11931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11934 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11936 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11940 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11943 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11944 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
11947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11951 /* Needed for new procfs interface on sparc-solaris. */
11952 #define _STRUCTURED_PROC 1
11953 #include <sys/procfs.h>
11957 pr_sigaction64_t avar
11962 if ac_fn_c_try_compile
"$LINENO"; then :
11963 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
11965 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
11968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11971 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11973 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11977 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11980 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11981 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11988 /* Needed for new procfs interface on sparc-solaris. */
11989 #define _STRUCTURED_PROC 1
11990 #include <sys/procfs.h>
11994 pr_siginfo64_t avar
11999 if ac_fn_c_try_compile
"$LINENO"; then :
12000 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
12002 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
12005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12008 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12010 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12014 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12020 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12022 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12023 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12026 if test "$cross_compiling" = yes; then :
12027 gdb_cv_prfpregset_t_broken
=yes
12029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12031 #include <sys/procfs.h>
12034 if (sizeof (prfpregset_t) == sizeof (void *))
12039 if ac_fn_c_try_run
"$LINENO"; then :
12040 gdb_cv_prfpregset_t_broken
=no
12042 gdb_cv_prfpregset_t_broken
=yes
12044 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12045 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12051 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12052 if test $gdb_cv_prfpregset_t_broken = yes; then
12054 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12060 # Check if the compiler supports the `long long' type.
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12063 $as_echo_n "checking for long long support in compiler... " >&6; }
12064 if test "${gdb_cv_c_long_long+set}" = set; then :
12065 $as_echo_n "(cached) " >&6
12067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069 extern long long foo;
12073 switch (foo & 2) { case 0: return 1; }
12078 if ac_fn_c_try_compile
"$LINENO"; then :
12079 gdb_cv_c_long_long
=yes
12081 gdb_cv_c_long_long
=no
12083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12086 $as_echo "$gdb_cv_c_long_long" >&6; }
12087 if test $gdb_cv_c_long_long != yes; then
12088 # libdecnumber requires long long.
12089 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
12092 # Check if the compiler and runtime support printing long longs.
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12095 $as_echo_n "checking for long long support in printf... " >&6; }
12096 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12097 $as_echo_n "(cached) " >&6
12099 if test "$cross_compiling" = yes; then :
12100 gdb_cv_printf_has_long_long
=no
12102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104 $ac_includes_default
12110 l = (l << 16) + 0x0123;
12111 l = (l << 16) + 0x4567;
12112 l = (l << 16) + 0x89ab;
12113 l = (l << 16) + 0xcdef;
12114 sprintf (buf, "0x%016llx", l);
12115 return (strcmp ("0x0123456789abcdef", buf));
12120 if ac_fn_c_try_run
"$LINENO"; then :
12121 gdb_cv_printf_has_long_long
=yes
12123 gdb_cv_printf_has_long_long
=no
12125 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12126 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12131 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12132 if test $gdb_cv_printf_has_long_long = yes; then
12134 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12138 # Check if the compiler and runtime support printing decfloats.
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12141 $as_echo_n "checking for decfloat support in printf... " >&6; }
12142 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12145 if test "$cross_compiling" = yes; then :
12146 gdb_cv_printf_has_decfloat
=no
12148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 $ac_includes_default
12155 _Decimal32 d32 = 1.2345df;
12156 _Decimal64 d64 = 1.2345dd;
12157 _Decimal128 d128 = 1.2345dl;
12158 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12159 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12164 if ac_fn_c_try_run
"$LINENO"; then :
12165 gdb_cv_printf_has_decfloat
=yes
12167 gdb_cv_printf_has_decfloat
=no
12169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12175 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12176 if test $gdb_cv_printf_has_decfloat = yes; then
12178 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12182 # Check if the compiler supports the `long double' type. We can't use
12183 # AC_C_LONG_DOUBLE because that one does additional checks on the
12184 # constants defined in <float.h> that fail on some systems,
12185 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12188 $as_echo_n "checking for long double support in compiler... " >&6; }
12189 if test "${gdb_cv_c_long_double+set}" = set; then :
12190 $as_echo_n "(cached) " >&6
12192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12196 if ac_fn_c_try_compile
"$LINENO"; then :
12197 gdb_cv_c_long_double
=yes
12199 gdb_cv_c_long_double
=no
12201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12204 $as_echo "$gdb_cv_c_long_double" >&6; }
12205 if test $gdb_cv_c_long_double = yes; then
12207 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12211 # Check if the compiler and runtime support printing long doubles.
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12214 $as_echo_n "checking for long double support in printf... " >&6; }
12215 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12216 $as_echo_n "(cached) " >&6
12218 if test "$cross_compiling" = yes; then :
12219 gdb_cv_printf_has_long_double
=no
12221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12223 $ac_includes_default
12228 long double f = 3.141592653;
12229 sprintf (buf, "%Lg", f);
12230 return (strncmp ("3.14159", buf, 7));
12235 if ac_fn_c_try_run
"$LINENO"; then :
12236 gdb_cv_printf_has_long_double
=yes
12238 gdb_cv_printf_has_long_double
=no
12240 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12241 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12246 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12247 if test $gdb_cv_printf_has_long_double = yes; then
12249 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12253 # Check if the compiler and runtime support scanning long doubles.
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12256 $as_echo_n "checking for long double support in scanf... " >&6; }
12257 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12258 $as_echo_n "(cached) " >&6
12260 if test "$cross_compiling" = yes; then :
12261 gdb_cv_scanf_has_long_double
=no
12263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12269 char *buf = "3.141592653";
12271 sscanf (buf, "%Lg", &f);
12272 return !(f > 3.14159 && f < 3.14160);
12277 if ac_fn_c_try_run
"$LINENO"; then :
12278 gdb_cv_scanf_has_long_double
=yes
12280 gdb_cv_scanf_has_long_double
=no
12282 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12283 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12288 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12289 if test $gdb_cv_scanf_has_long_double = yes; then
12291 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12298 $as_echo_n "checking for -bbigtoc option... " >&6; }
12299 if test "${gdb_cv_bigtoc+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
12303 SAVE_LDFLAGS
=$LDFLAGS
12306 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
12307 *) gdb_cv_bigtoc
=-bbigtoc ;;
12310 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
12311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12322 if ac_fn_c_try_link
"$LINENO"; then :
12327 rm -f core conftest.err conftest.
$ac_objext \
12328 conftest
$ac_exeext conftest.
$ac_ext
12329 LDFLAGS
="${SAVE_LDFLAGS}"
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12333 $as_echo "$gdb_cv_bigtoc" >&6; }
12334 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
12339 $as_echo_n "checking for the dynamic export flag... " >&6; }
12341 if test "${gdb_native}" = yes; then
12342 # The dynamically loaded libthread_db needs access to symbols in the gdb
12343 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
12344 # may not be supported there.
12345 old_LDFLAGS
="$LDFLAGS"
12346 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
12347 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
12348 LDFLAGS
="$LDFLAGS $RDYNAMIC"
12349 if test "${have_libpython}" = no
; then
12350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12361 if ac_fn_c_try_link
"$LINENO"; then :
12364 rm -f core conftest.err conftest.
$ac_objext \
12365 conftest
$ac_exeext conftest.
$ac_ext
12367 # Workaround http://bugs.python.org/issue4434 where static
12368 # libpythonX.Y.a would get its symbols required for
12369 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
12370 # Problem does not happen for the recommended libpythonX.Y.so linkage.
12371 old_CFLAGS
="$CFLAGS"
12372 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
12374 LIBS
="$LIBS $PYTHON_LIBS"
12375 if test "$cross_compiling" = yes; then :
12378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 #include "${have_libpython}/Python.h"
12386 err = PyRun_SimpleString ("import itertools\n");
12388 return err == 0 ? 0 : 1;
12393 if ac_fn_c_try_run
"$LINENO"; then :
12396 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12397 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12401 CFLAGS
="$old_CFLAGS"
12403 LDFLAGS
="$old_LDFLAGS"
12405 if $dynamic_list; then
12406 found
="-Wl,--dynamic-list"
12407 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
12410 RDYNAMIC
="-rdynamic"
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12414 $as_echo "$found" >&6; }
12417 if test ${build} = ${host} -a ${host} = ${target} ; then
12420 # See if thread_db library is around for Solaris thread debugging.
12421 # Note that we must explicitly test for version 1 of the library
12422 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12425 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12426 if test -f /usr
/lib
/libthread_db.so
.1 ; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12428 $as_echo "yes" >&6; }
12430 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12432 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
12433 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12435 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12436 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12437 $as_echo_n "(cached) " >&6
12439 ac_check_lib_save_LIBS
=$LIBS
12441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12444 /* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
12459 if ac_fn_c_try_link
"$LINENO"; then :
12460 ac_cv_lib_dl_dlopen
=yes
12462 ac_cv_lib_dl_dlopen
=no
12464 rm -f core conftest.err conftest.
$ac_objext \
12465 conftest
$ac_exeext conftest.
$ac_ext
12466 LIBS
=$ac_check_lib_save_LIBS
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12469 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12470 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12471 cat >>confdefs.h
<<_ACEOF
12472 #define HAVE_LIBDL 1
12479 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
12480 # Sun randomly tweaked the prototypes in <proc_service.h>
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12483 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12484 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12485 $as_echo_n "(cached) " >&6
12488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12491 #include <proc_service.h>
12492 ps_err_e ps_pdwrite
12493 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12503 if ac_fn_c_try_compile
"$LINENO"; then :
12504 gdb_cv_proc_service_is_old
=no
12506 gdb_cv_proc_service_is_old
=yes
12508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12513 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12514 if test $gdb_cv_proc_service_is_old = yes; then
12516 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 $as_echo "no" >&6; }
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12526 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12527 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12528 $as_echo_n "(cached) " >&6
12530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12532 #include <sys/pthdebug.h>
12536 #ifndef PTHDB_VERSION_3
12543 if ac_fn_c_try_compile
"$LINENO"; then :
12544 gdb_cv_have_aix_thread_debug
=yes
12546 gdb_cv_have_aix_thread_debug
=no
12548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12552 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12553 if test $gdb_cv_have_aix_thread_debug = yes; then
12554 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
12555 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
12556 LIBS
="$LIBS -lpthdebug"
12558 # Older versions of AIX do not provide the declaration for
12559 # the getthrds function (it appears that it was introduced
12561 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12563 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
12569 cat >>confdefs.h
<<_ACEOF
12570 #define HAVE_DECL_GETTHRDS $ac_have_decl
12579 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12581 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12582 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12583 $as_echo_n "(cached) " >&6
12585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587 #include <thread_db.h>
12591 int i = TD_NOTALLOC;
12596 if ac_fn_c_try_compile
"$LINENO"; then :
12597 gdb_cv_thread_db_h_has_td_notalloc
=yes
12599 gdb_cv_thread_db_h_has_td_notalloc
=no
12602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12606 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12608 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12609 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12610 $as_echo_n "(cached) " >&6
12612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12614 #include <thread_db.h>
12618 int i = TD_VERSION;
12623 if ac_fn_c_try_compile
"$LINENO"; then :
12624 gdb_cv_thread_db_h_has_td_version
=yes
12626 gdb_cv_thread_db_h_has_td_version
=no
12629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12633 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12635 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12636 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12637 $as_echo_n "(cached) " >&6
12639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641 #include <thread_db.h>
12650 if ac_fn_c_try_compile
"$LINENO"; then :
12651 gdb_cv_thread_db_h_has_td_notls
=yes
12653 gdb_cv_thread_db_h_has_td_notls
=no
12656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12660 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12662 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12664 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12667 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12669 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12672 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12674 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12678 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12680 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12681 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12682 $as_echo_n "(cached) " >&6
12684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686 #include <sys/syscall.h>
12690 int i = __NR_tkill;
12695 if ac_fn_c_try_compile
"$LINENO"; then :
12696 gdb_cv_sys_syscall_h_has_tkill
=yes
12698 gdb_cv_sys_syscall_h_has_tkill
=no
12701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12705 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12707 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
12708 ac_fn_c_check_func
"$LINENO" "syscall" "ac_cv_func_syscall"
12709 if test "x$ac_cv_func_syscall" = x
""yes; then :
12711 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12718 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12720 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
12726 cat >>confdefs.h
<<_ACEOF
12727 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12731 if test "$cross_compiling" = yes; then :
12732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12734 #include <sys/personality.h>
12739 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12740 # define ADDR_NO_RANDOMIZE 0x0040000
12742 /* Test the flag could be set and stays set. */
12743 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12744 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12750 if ac_fn_c_try_link
"$LINENO"; then :
12751 have_personality
=true
12753 have_personality
=false
12755 rm -f core conftest.err conftest.
$ac_objext \
12756 conftest
$ac_exeext conftest.
$ac_ext
12758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760 #include <sys/personality.h>
12765 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12766 # define ADDR_NO_RANDOMIZE 0x0040000
12768 /* Test the flag could be set and stays set. */
12769 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12770 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12776 if ac_fn_c_try_run
"$LINENO"; then :
12777 have_personality
=true
12779 have_personality
=false
12781 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12782 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12785 if $have_personality
12788 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12801 cat >>confdefs.h
<<_ACEOF
12802 #define GDBINIT "$gdbinit"
12807 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12808 # except that the argument to --with-sysroot is optional.
12809 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12810 if test "x$with_sysroot" = xyes
; then
12811 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
12814 # Check whether --with-sysroot was given.
12815 if test "${with_sysroot+set}" = set; then :
12816 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
12818 TARGET_SYSTEM_ROOT
=
12822 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12823 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12824 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
12825 ac_define_dir
=`eval echo $ac_define_dir`
12827 cat >>confdefs.h
<<_ACEOF
12828 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12834 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12835 if test "x$prefix" = xNONE
; then
12836 test_prefix
=/usr
/local
12838 test_prefix
=$prefix
12841 test_prefix
=$exec_prefix
12844 case ${ac_define_dir} in
12845 "${test_prefix}"|
"${test_prefix}/"*|\
12846 '${exec_prefix}'|
'${exec_prefix}/'*)
12851 cat >>confdefs.h
<<_ACEOF
12852 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12859 # Check whether --with-system-gdbinit was given.
12860 if test "${with_system_gdbinit+set}" = set; then :
12861 withval
=$with_system_gdbinit;
12862 SYSTEM_GDBINIT
=$withval
12868 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12869 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12870 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
12871 ac_define_dir
=`eval echo $ac_define_dir`
12873 cat >>confdefs.h
<<_ACEOF
12874 #define SYSTEM_GDBINIT "$ac_define_dir"
12880 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12881 if test "x$prefix" = xNONE
; then
12882 test_prefix
=/usr
/local
12884 test_prefix
=$prefix
12887 test_prefix
=$exec_prefix
12890 case ${ac_define_dir} in
12891 "${test_prefix}"|
"${test_prefix}/"*|\
12892 '${exec_prefix}'|
'${exec_prefix}/'*)
12897 cat >>confdefs.h
<<_ACEOF
12898 #define SYSTEM_GDBINIT_RELOCATABLE $value
12904 # Check whether --enable-werror was given.
12905 if test "${enable_werror+set}" = set; then :
12906 enableval
=$enable_werror; case "${enableval}" in
12907 yes | y
) ERROR_ON_WARNING
="yes" ;;
12908 no | n
) ERROR_ON_WARNING
="no" ;;
12909 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12914 # Enable -Werror by default when using gcc. Turn it off for releases.
12915 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12916 ERROR_ON_WARNING
=yes
12920 if test "${ERROR_ON_WARNING}" = yes ; then
12921 WERROR_CFLAGS
="-Werror"
12924 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12926 -Wno-unused -Wunused-value -Wunused-function \
12927 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
12928 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
12929 -Wold-style-declaration -Wold-style-definition"
12931 # Enable -Wno-format by default when using gcc on mingw since many
12932 # GCC versions complain about %I64.
12934 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
12935 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
12938 # Check whether --enable-build-warnings was given.
12939 if test "${enable_build_warnings+set}" = set; then :
12940 enableval
=$enable_build_warnings; case "${enableval}" in
12942 no
) build_warnings
="-w";;
12943 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12944 build_warnings
="${build_warnings} ${t}";;
12945 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12946 build_warnings
="${t} ${build_warnings}";;
12947 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12949 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12950 echo "Setting compiler warning flags = $build_warnings" 6>&1
12953 # Check whether --enable-gdb-build-warnings was given.
12954 if test "${enable_gdb_build_warnings+set}" = set; then :
12955 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
12957 no
) build_warnings
="-w";;
12958 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12959 build_warnings
="${build_warnings} ${t}";;
12960 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12961 build_warnings
="${t} ${build_warnings}";;
12962 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12964 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12965 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12969 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12972 $as_echo_n "checking compiler warning flags... " >&6; }
12973 # Separate out the -Werror flag as some files just cannot be
12974 # compiled with it enabled.
12975 for w
in ${build_warnings}; do
12977 -Werr*) WERROR_CFLAGS
=-Werror ;;
12978 *) # Check that GCC accepts it
12979 saved_CFLAGS
="$CFLAGS"
12980 CFLAGS
="$CFLAGS $w"
12981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12992 if ac_fn_c_try_compile
"$LINENO"; then :
12993 WARN_CFLAGS
="${WARN_CFLAGS} $w"
12995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12996 CFLAGS
="$saved_CFLAGS"
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13000 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13005 # In the Cygwin environment, we need some additional flags.
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
13007 $as_echo_n "checking
for cygwin...
" >&6; }
13008 if test "${gdb_cv_os_cygwin+set}" = set; then :
13009 $as_echo_n "(cached
) " >&6
13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13014 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13018 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13019 $EGREP "^lose$
" >/dev/null 2>&1; then :
13020 gdb_cv_os_cygwin=yes
13022 gdb_cv_os_cygwin=no
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
13028 $as_echo "$gdb_cv_os_cygwin" >&6; }
13031 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
13033 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13034 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13035 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
13039 # libreadline needs libuser32.a in a cygwin environment
13041 if test x$gdb_cv_os_cygwin = xyes; then
13042 WIN32LIBS="-luser32"
13043 case "${target}" in
13044 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13049 # The ser-tcp.c module requires sockets.
13053 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13055 WIN32LIBS
="$WIN32LIBS -lws2_32"
13060 # Add ELF support to GDB, but only if BFD includes ELF support.
13063 OLD_LDFLAGS
=$LDFLAGS
13065 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13066 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13067 # always want our bfd.
13068 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13069 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
13070 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13071 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13072 if test "$plugins" = "yes"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13074 $as_echo_n "checking for library containing dlopen... " >&6; }
13075 if test "${ac_cv_search_dlopen+set}" = set; then :
13076 $as_echo_n "(cached) " >&6
13078 ac_func_search_save_LIBS
=$LIBS
13079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13082 /* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply. */
13097 for ac_lib
in '' dl
; do
13098 if test -z "$ac_lib"; then
13099 ac_res
="none required"
13102 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13104 if ac_fn_c_try_link
"$LINENO"; then :
13105 ac_cv_search_dlopen
=$ac_res
13107 rm -f core conftest.err conftest.
$ac_objext \
13109 if test "${ac_cv_search_dlopen+set}" = set; then :
13113 if test "${ac_cv_search_dlopen+set}" = set; then :
13116 ac_cv_search_dlopen
=no
13118 rm conftest.
$ac_ext
13119 LIBS
=$ac_func_search_save_LIBS
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13122 $as_echo "$ac_cv_search_dlopen" >&6; }
13123 ac_res
=$ac_cv_search_dlopen
13124 if test "$ac_res" != no
; then :
13125 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13130 LIBS
="-lbfd -liberty $intl $LIBS"
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13132 $as_echo_n "checking for ELF support in BFD... " >&6; }
13133 if test "${gdb_cv_var_elf+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13138 #include <stdlib.h>
13140 #include "elf-bfd.h"
13145 return bfd_get_elf_phdr_upper_bound (NULL);
13150 if ac_fn_c_try_link
"$LINENO"; then :
13155 rm -f core conftest.err conftest.
$ac_objext \
13156 conftest
$ac_exeext conftest.
$ac_ext
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13159 $as_echo "$gdb_cv_var_elf" >&6; }
13161 LDFLAGS
=$OLD_LDFLAGS
13163 if test $gdb_cv_var_elf = yes; then
13164 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o"
13166 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13168 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13169 if test "$plugins" = "yes"; then
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13171 $as_echo_n "checking for library containing dlopen... " >&6; }
13172 if test "${ac_cv_search_dlopen+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
13175 ac_func_search_save_LIBS
=$LIBS
13176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13179 /* Override any GCC internal prototype to avoid an error.
13180 Use char because int might match the return type of a GCC
13181 builtin and then its argument prototype would still apply. */
13194 for ac_lib
in '' dl
; do
13195 if test -z "$ac_lib"; then
13196 ac_res
="none required"
13199 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13201 if ac_fn_c_try_link
"$LINENO"; then :
13202 ac_cv_search_dlopen
=$ac_res
13204 rm -f core conftest.err conftest.
$ac_objext \
13206 if test "${ac_cv_search_dlopen+set}" = set; then :
13210 if test "${ac_cv_search_dlopen+set}" = set; then :
13213 ac_cv_search_dlopen
=no
13215 rm conftest.
$ac_ext
13216 LIBS
=$ac_func_search_save_LIBS
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13219 $as_echo "$ac_cv_search_dlopen" >&6; }
13220 ac_res
=$ac_cv_search_dlopen
13221 if test "$ac_res" != no
; then :
13222 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13229 # Add macho support to GDB, but only if BFD includes it.
13232 OLD_LDFLAGS
=$LDFLAGS
13234 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13235 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13236 # always want our bfd.
13237 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13238 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
13239 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13240 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13241 if test "$plugins" = "yes"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13243 $as_echo_n "checking for library containing dlopen... " >&6; }
13244 if test "${ac_cv_search_dlopen+set}" = set; then :
13245 $as_echo_n "(cached) " >&6
13247 ac_func_search_save_LIBS
=$LIBS
13248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13251 /* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13266 for ac_lib
in '' dl
; do
13267 if test -z "$ac_lib"; then
13268 ac_res
="none required"
13271 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13273 if ac_fn_c_try_link
"$LINENO"; then :
13274 ac_cv_search_dlopen
=$ac_res
13276 rm -f core conftest.err conftest.
$ac_objext \
13278 if test "${ac_cv_search_dlopen+set}" = set; then :
13282 if test "${ac_cv_search_dlopen+set}" = set; then :
13285 ac_cv_search_dlopen
=no
13287 rm conftest.
$ac_ext
13288 LIBS
=$ac_func_search_save_LIBS
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13291 $as_echo "$ac_cv_search_dlopen" >&6; }
13292 ac_res
=$ac_cv_search_dlopen
13293 if test "$ac_res" != no
; then :
13294 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13299 LIBS
="-lbfd -liberty $intl $LIBS"
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
13301 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
13302 if test "${gdb_cv_var_macho+set}" = set; then :
13303 $as_echo_n "(cached) " >&6
13305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307 #include <stdlib.h>
13309 #include "mach-o.h"
13314 return bfd_mach_o_lookup_command (NULL, 0, NULL);
13319 if ac_fn_c_try_link
"$LINENO"; then :
13320 gdb_cv_var_macho
=yes
13322 gdb_cv_var_macho
=no
13324 rm -f core conftest.err conftest.
$ac_objext \
13325 conftest
$ac_exeext conftest.
$ac_ext
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
13328 $as_echo "$gdb_cv_var_macho" >&6; }
13330 LDFLAGS
=$OLD_LDFLAGS
13332 if test $gdb_cv_var_macho = yes; then
13333 CONFIG_OBS
="$CONFIG_OBS machoread.o"
13336 # Add SOM support to GDB, but only if BFD includes it.
13339 OLD_LDFLAGS
=$LDFLAGS
13341 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13342 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13343 # always want our bfd.
13344 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13345 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
13346 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13347 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13348 if test "$plugins" = "yes"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13350 $as_echo_n "checking for library containing dlopen... " >&6; }
13351 if test "${ac_cv_search_dlopen+set}" = set; then :
13352 $as_echo_n "(cached) " >&6
13354 ac_func_search_save_LIBS
=$LIBS
13355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13358 /* Override any GCC internal prototype to avoid an error.
13359 Use char because int might match the return type of a GCC
13360 builtin and then its argument prototype would still apply. */
13373 for ac_lib
in '' dl
; do
13374 if test -z "$ac_lib"; then
13375 ac_res
="none required"
13378 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13380 if ac_fn_c_try_link
"$LINENO"; then :
13381 ac_cv_search_dlopen
=$ac_res
13383 rm -f core conftest.err conftest.
$ac_objext \
13385 if test "${ac_cv_search_dlopen+set}" = set; then :
13389 if test "${ac_cv_search_dlopen+set}" = set; then :
13392 ac_cv_search_dlopen
=no
13394 rm conftest.
$ac_ext
13395 LIBS
=$ac_func_search_save_LIBS
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13398 $as_echo "$ac_cv_search_dlopen" >&6; }
13399 ac_res
=$ac_cv_search_dlopen
13400 if test "$ac_res" != no
; then :
13401 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13406 LIBS
="-lbfd -liberty $intl $LIBS"
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
13408 $as_echo_n "checking for SOM support in BFD... " >&6; }
13409 if test "${gdb_cv_var_som+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <stdlib.h>
13421 return bfd_som_attach_aux_hdr (NULL, 0, NULL);
13426 if ac_fn_c_try_link
"$LINENO"; then :
13431 rm -f core conftest.err conftest.
$ac_objext \
13432 conftest
$ac_exeext conftest.
$ac_ext
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
13435 $as_echo "$gdb_cv_var_som" >&6; }
13437 LDFLAGS
=$OLD_LDFLAGS
13439 if test $gdb_cv_var_som = yes; then
13440 CONFIG_OBS
="$CONFIG_OBS somread.o"
13443 # Add any host-specific objects to GDB.
13444 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
13446 # If building on ELF, look for lzma support for embedded compressed debug info.
13447 if test $gdb_cv_var_elf = yes; then
13449 # Check whether --with-lzma was given.
13450 if test "${with_lzma+set}" = set; then :
13451 withval
=$with_lzma;
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13457 $as_echo_n "checking whether to use lzma... " >&6; }
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13459 $as_echo "$with_lzma" >&6; }
13461 if test "${with_lzma}" != no
; then
13472 acl_save_prefix
="$prefix"
13473 prefix
="$acl_final_prefix"
13474 acl_save_exec_prefix
="$exec_prefix"
13475 exec_prefix
="$acl_final_exec_prefix"
13477 eval additional_includedir
=\"$includedir\"
13478 eval additional_libdir
=\"$libdir\"
13480 exec_prefix
="$acl_save_exec_prefix"
13481 prefix
="$acl_save_prefix"
13484 # Check whether --with-liblzma-prefix was given.
13485 if test "${with_liblzma_prefix+set}" = set; then :
13486 withval
=$with_liblzma_prefix;
13487 if test "X$withval" = "Xno"; then
13490 if test "X$withval" = "X"; 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 additional_includedir
="$withval/include"
13505 additional_libdir
="$withval/lib"
13516 names_already_handled
=
13517 names_next_round
='lzma '
13518 while test -n "$names_next_round"; do
13519 names_this_round
="$names_next_round"
13521 for name
in $names_this_round; do
13523 for n
in $names_already_handled; do
13524 if test "$n" = "$name"; then
13525 already_handled
=yes
13529 if test -z "$already_handled"; then
13530 names_already_handled
="$names_already_handled $name"
13531 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13532 eval value
=\"\
$HAVE_LIB$uppername\"
13533 if test -n "$value"; then
13534 if test "$value" = yes; then
13535 eval value
=\"\
$LIB$uppername\"
13536 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
13537 eval value
=\"\
$LTLIB$uppername\"
13538 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13547 if test $use_additional = yes; then
13548 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13549 found_dir
="$additional_libdir"
13550 found_so
="$additional_libdir/lib$name.$shlibext"
13551 if test -f "$additional_libdir/lib$name.la"; then
13552 found_la
="$additional_libdir/lib$name.la"
13555 if test -f "$additional_libdir/lib$name.$libext"; then
13556 found_dir
="$additional_libdir"
13557 found_a
="$additional_libdir/lib$name.$libext"
13558 if test -f "$additional_libdir/lib$name.la"; then
13559 found_la
="$additional_libdir/lib$name.la"
13564 if test "X$found_dir" = "X"; then
13565 for x
in $LDFLAGS $LTLIBLZMA; do
13567 acl_save_prefix
="$prefix"
13568 prefix
="$acl_final_prefix"
13569 acl_save_exec_prefix
="$exec_prefix"
13570 exec_prefix
="$acl_final_exec_prefix"
13572 exec_prefix
="$acl_save_exec_prefix"
13573 prefix
="$acl_save_prefix"
13577 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13578 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13580 found_so
="$dir/lib$name.$shlibext"
13581 if test -f "$dir/lib$name.la"; then
13582 found_la
="$dir/lib$name.la"
13585 if test -f "$dir/lib$name.$libext"; then
13587 found_a
="$dir/lib$name.$libext"
13588 if test -f "$dir/lib$name.la"; then
13589 found_la
="$dir/lib$name.la"
13595 if test "X$found_dir" != "X"; then
13600 if test "X$found_dir" != "X"; then
13601 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13602 if test "X$found_so" != "X"; then
13603 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13604 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13607 for x
in $ltrpathdirs; do
13608 if test "X$x" = "X$found_dir"; then
13613 if test -z "$haveit"; then
13614 ltrpathdirs
="$ltrpathdirs $found_dir"
13616 if test "$hardcode_direct" = yes; then
13617 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13619 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13620 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13622 for x
in $rpathdirs; do
13623 if test "X$x" = "X$found_dir"; then
13628 if test -z "$haveit"; then
13629 rpathdirs
="$rpathdirs $found_dir"
13633 for x
in $LDFLAGS $LIBLZMA; do
13635 acl_save_prefix
="$prefix"
13636 prefix
="$acl_final_prefix"
13637 acl_save_exec_prefix
="$exec_prefix"
13638 exec_prefix
="$acl_final_exec_prefix"
13640 exec_prefix
="$acl_save_exec_prefix"
13641 prefix
="$acl_save_prefix"
13643 if test "X$x" = "X-L$found_dir"; then
13648 if test -z "$haveit"; then
13649 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
13651 if test "$hardcode_minus_L" != no
; then
13652 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13654 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
13660 if test "X$found_a" != "X"; then
13661 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
13663 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
13666 additional_includedir
=
13667 case "$found_dir" in
13669 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13670 additional_includedir
="$basedir/include"
13673 if test "X$additional_includedir" != "X"; then
13674 if test "X$additional_includedir" != "X/usr/include"; then
13676 if test "X$additional_includedir" = "X/usr/local/include"; then
13677 if test -n "$GCC"; then
13679 linux
*) haveit
=yes;;
13683 if test -z "$haveit"; then
13684 for x
in $CPPFLAGS $INCLZMA; do
13686 acl_save_prefix
="$prefix"
13687 prefix
="$acl_final_prefix"
13688 acl_save_exec_prefix
="$exec_prefix"
13689 exec_prefix
="$acl_final_exec_prefix"
13691 exec_prefix
="$acl_save_exec_prefix"
13692 prefix
="$acl_save_prefix"
13694 if test "X$x" = "X-I$additional_includedir"; then
13699 if test -z "$haveit"; then
13700 if test -d "$additional_includedir"; then
13701 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
13707 if test -n "$found_la"; then
13708 save_libdir
="$libdir"
13709 case "$found_la" in
13710 */* |
*\\*) .
"$found_la" ;;
13711 *) .
"./$found_la" ;;
13713 libdir
="$save_libdir"
13714 for dep
in $dependency_libs; do
13717 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13718 if test "X$additional_libdir" != "X/usr/lib"; then
13720 if test "X$additional_libdir" = "X/usr/local/lib"; then
13721 if test -n "$GCC"; then
13723 linux
*) haveit
=yes;;
13727 if test -z "$haveit"; then
13729 for x
in $LDFLAGS $LIBLZMA; do
13731 acl_save_prefix
="$prefix"
13732 prefix
="$acl_final_prefix"
13733 acl_save_exec_prefix
="$exec_prefix"
13734 exec_prefix
="$acl_final_exec_prefix"
13736 exec_prefix
="$acl_save_exec_prefix"
13737 prefix
="$acl_save_prefix"
13739 if test "X$x" = "X-L$additional_libdir"; then
13744 if test -z "$haveit"; then
13745 if test -d "$additional_libdir"; then
13746 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
13750 for x
in $LDFLAGS $LTLIBLZMA; do
13752 acl_save_prefix
="$prefix"
13753 prefix
="$acl_final_prefix"
13754 acl_save_exec_prefix
="$exec_prefix"
13755 exec_prefix
="$acl_final_exec_prefix"
13757 exec_prefix
="$acl_save_exec_prefix"
13758 prefix
="$acl_save_prefix"
13760 if test "X$x" = "X-L$additional_libdir"; then
13765 if test -z "$haveit"; then
13766 if test -d "$additional_libdir"; then
13767 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
13774 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13775 if test "$enable_rpath" != no
; then
13777 for x
in $rpathdirs; do
13778 if test "X$x" = "X$dir"; then
13783 if test -z "$haveit"; then
13784 rpathdirs
="$rpathdirs $dir"
13787 for x
in $ltrpathdirs; do
13788 if test "X$x" = "X$dir"; then
13793 if test -z "$haveit"; then
13794 ltrpathdirs
="$ltrpathdirs $dir"
13799 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13802 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13805 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
13806 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
13812 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
13813 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
13819 if test "X$rpathdirs" != "X"; then
13820 if test -n "$hardcode_libdir_separator"; then
13822 for found_dir
in $rpathdirs; do
13823 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13825 acl_save_libdir
="$libdir"
13827 eval flag
=\"$hardcode_libdir_flag_spec\"
13828 libdir
="$acl_save_libdir"
13829 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
13831 for found_dir
in $rpathdirs; do
13832 acl_save_libdir
="$libdir"
13833 libdir
="$found_dir"
13834 eval flag
=\"$hardcode_libdir_flag_spec\"
13835 libdir
="$acl_save_libdir"
13836 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
13840 if test "X$ltrpathdirs" != "X"; then
13841 for found_dir
in $ltrpathdirs; do
13842 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
13847 ac_save_CPPFLAGS
="$CPPFLAGS"
13849 for element
in $INCLZMA; do
13851 for x
in $CPPFLAGS; do
13853 acl_save_prefix
="$prefix"
13854 prefix
="$acl_final_prefix"
13855 acl_save_exec_prefix
="$exec_prefix"
13856 exec_prefix
="$acl_final_exec_prefix"
13858 exec_prefix
="$acl_save_exec_prefix"
13859 prefix
="$acl_save_prefix"
13861 if test "X$x" = "X$element"; then
13866 if test -z "$haveit"; then
13867 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
13873 $as_echo_n "checking for liblzma... " >&6; }
13874 if test "${ac_cv_liblzma+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
13878 ac_save_LIBS
="$LIBS"
13879 LIBS
="$LIBS $LIBLZMA"
13880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13886 lzma_index_iter iter;
13887 lzma_index_iter_init (&iter, 0);
13888 lzma_mf_is_supported (LZMA_MF_HC3);
13893 if ac_fn_c_try_link
"$LINENO"; then :
13898 rm -f core conftest.err conftest.
$ac_objext \
13899 conftest
$ac_exeext conftest.
$ac_ext
13900 LIBS
="$ac_save_LIBS"
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
13904 $as_echo "$ac_cv_liblzma" >&6; }
13905 if test "$ac_cv_liblzma" = yes; then
13908 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
13911 $as_echo_n "checking how to link with liblzma... " >&6; }
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
13913 $as_echo "$LIBLZMA" >&6; }
13916 CPPFLAGS
="$ac_save_CPPFLAGS"
13926 if test "$HAVE_LIBLZMA" != yes; then
13927 if test "$with_lzma" = yes; then
13928 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
13934 LIBGUI
="../libgui/src/libgui.a"
13935 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
13944 *-*-cygwin* |
*-*-mingw* )
13953 if test "${enable_gdbtk}" = "yes"; then
13955 # Gdbtk must have an absolute path to srcdir in order to run
13956 # properly when not installed.
13959 GDBTK_SRC_DIR
=`pwd`
13964 # Ok, lets find the tcl configuration
13965 # First, look for one uninstalled.
13966 # the alternative search directory is invoked by --with-tcl
13969 if test x
"${no_tcl}" = x
; then
13970 # we reset no_tcl in case something fails here
13973 # Check whether --with-tcl was given.
13974 if test "${with_tcl+set}" = set; then :
13975 withval
=$with_tcl; with_tclconfig
=${withval}
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13979 $as_echo_n "checking for Tcl configuration... " >&6; }
13980 if test "${ac_cv_c_tclconfig+set}" = set; then :
13981 $as_echo_n "(cached) " >&6
13985 # First check to see if --with-tcl was specified.
13987 *-*-cygwin*) platDir
="win" ;;
13988 *) platDir
="unix" ;;
13990 if test x
"${with_tclconfig}" != x
; then
13991 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13992 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
13994 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13998 # then check for a private Tcl installation
13999 if test x
"${ac_cv_c_tclconfig}" = x
; then
14002 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14003 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14004 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14006 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14007 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14008 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14010 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14011 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14012 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14013 if test -f "$i/$platDir/tclConfig.sh" ; then
14014 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14020 # on Darwin, check in Framework installation locations
14021 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
14022 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14023 `ls -d /Library/Frameworks 2>/dev/null` \
14024 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14025 `ls -d /System/Library/Frameworks 2>/dev/null` \
14027 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14028 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
14034 # check in a few common install locations
14035 if test x
"${ac_cv_c_tclconfig}" = x
; then
14036 for i
in `ls -d ${libdir} 2>/dev/null` \
14037 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14038 `ls -d ${prefix}/lib 2>/dev/null` \
14039 `ls -d /usr/local/lib 2>/dev/null` \
14040 `ls -d /usr/contrib/lib 2>/dev/null` \
14041 `ls -d /usr/lib 2>/dev/null` \
14043 if test -f "$i/tclConfig.sh" ; then
14044 ac_cv_c_tclconfig
=`(cd $i; pwd)`
14050 # check in a few other private locations
14051 if test x
"${ac_cv_c_tclconfig}" = x
; then
14054 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14055 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14056 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14057 if test -f "$i/$platDir/tclConfig.sh" ; then
14058 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14067 if test x
"${ac_cv_c_tclconfig}" = x
; then
14068 TCL_BIN_DIR
="# no Tcl configs found"
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14070 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14073 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14075 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14080 # If $no_tk is nonempty, then we can't do Tk, and there is no
14081 # point to doing Tcl.
14084 # Ok, lets find the tk configuration
14085 # First, look for one uninstalled.
14086 # the alternative search directory is invoked by --with-tk
14089 if test x
"${no_tk}" = x
; then
14090 # we reset no_tk in case something fails here
14093 # Check whether --with-tk was given.
14094 if test "${with_tk+set}" = set; then :
14095 withval
=$with_tk; with_tkconfig
=${withval}
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14099 $as_echo_n "checking for Tk configuration... " >&6; }
14100 if test "${ac_cv_c_tkconfig+set}" = set; then :
14101 $as_echo_n "(cached) " >&6
14105 # First check to see if --with-tkconfig was specified.
14106 if test x
"${with_tkconfig}" != x
; then
14107 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14108 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
14110 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14114 # then check for a private Tk library
14116 *-*-cygwin*) platDir
="win" ;;
14117 *) platDir
="unix" ;;
14119 if test x
"${ac_cv_c_tkconfig}" = x
; then
14122 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14123 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14124 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14126 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14127 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14128 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14130 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14131 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14132 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14133 if test -f "$i/$platDir/tkConfig.sh" ; then
14134 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14140 # on Darwin, check in Framework installation locations
14141 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
14142 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14143 `ls -d /Library/Frameworks 2>/dev/null` \
14144 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14145 `ls -d /System/Library/Frameworks 2>/dev/null` \
14147 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14148 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
14154 # check in a few common install locations
14155 if test x
"${ac_cv_c_tkconfig}" = x
; then
14156 for i
in `ls -d ${libdir} 2>/dev/null` \
14157 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14158 `ls -d ${prefix}/lib 2>/dev/null` \
14159 `ls -d /usr/local/lib 2>/dev/null` \
14160 `ls -d /usr/contrib/lib 2>/dev/null` \
14161 `ls -d /usr/lib 2>/dev/null` \
14163 if test -f "$i/tkConfig.sh" ; then
14164 ac_cv_c_tkconfig
=`(cd $i; pwd)`
14169 # check in a few other private locations
14170 if test x
"${ac_cv_c_tkconfig}" = x
; then
14173 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14174 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14175 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14176 if test -f "$i/$platDir/tkConfig.sh" ; then
14177 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14186 if test x
"${ac_cv_c_tkconfig}" = x
; then
14187 TK_BIN_DIR
="# no Tk configs found"
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14189 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14192 TK_BIN_DIR
=${ac_cv_c_tkconfig}
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14194 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14199 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14202 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14204 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14206 $as_echo "loading" >&6; }
14207 .
${TCL_BIN_DIR}/tclConfig.sh
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14210 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14213 # eval is required to do the TCL_DBGX substitution
14214 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14215 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14217 # If the TCL_BIN_DIR is the build directory (not the install directory),
14218 # then set the common variable name to the value of the build variables.
14219 # For example, the variable TCL_LIB_SPEC will be set to the value
14220 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14221 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14222 # installed and uninstalled version of Tcl.
14223 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14224 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
14225 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
14226 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
14227 elif test "`uname -s`" = "Darwin"; then
14228 # If Tcl was built as a framework, attempt to use the libraries
14229 # from the framework at the given location so that linking works
14230 # against Tcl.framework installed in an arbitrary location.
14231 case ${TCL_DEFS} in
14233 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14234 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
14235 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14236 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14237 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14242 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14243 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14244 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14250 # eval is required to do the TCL_DBGX substitution
14251 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14252 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14253 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14254 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14270 # Check for in-tree tcl
14277 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14281 # Find Tcl private headers
14282 if test x
"${intree}" = xno
; then
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14285 $as_echo_n "checking for Tcl private headers... " >&6; }
14287 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14288 if test -f ${dir}/tclInt.h
; then
14292 if test x
"${private_dir}" = x
; then
14293 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
14295 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14297 $as_echo "${private_dir}" >&6; }
14300 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14301 TCL_LIBRARY
="${TCL_LIB_SPEC}"
14304 # If building tcl in the same src tree, private headers
14305 # are not needed, but we need to be sure to use the right
14307 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
14308 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
14309 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14317 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14319 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14321 $as_echo "loading" >&6; }
14322 .
${TK_BIN_DIR}/tkConfig.sh
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14325 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14328 # eval is required to do the TK_DBGX substitution
14329 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14330 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14332 # If the TK_BIN_DIR is the build directory (not the install directory),
14333 # then set the common variable name to the value of the build variables.
14334 # For example, the variable TK_LIB_SPEC will be set to the value
14335 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14336 # instead of TK_BUILD_LIB_SPEC since it will work with both an
14337 # installed and uninstalled version of Tcl.
14338 if test -f "${TK_BIN_DIR}/Makefile" ; then
14339 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
14340 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
14341 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
14342 elif test "`uname -s`" = "Darwin"; then
14343 # If Tk was built as a framework, attempt to use the libraries
14344 # from the framework at the given location so that linking works
14345 # against Tk.framework installed in an arbitrary location.
14348 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14349 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
14350 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14351 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14352 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14357 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14358 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14359 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14365 # eval is required to do the TK_DBGX substitution
14366 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14367 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14368 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14369 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14384 # Check for in-tree Tk
14386 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14390 # Find Tk private headers
14391 if test x
"${intree}" = xno
; then
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14394 $as_echo_n "checking for Tk private headers... " >&6; }
14396 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14397 if test -f ${dir}/tkInt.h
; then
14401 if test x
"${private_dir}" = x
; then
14402 as_fn_error
"could not find Tk private headers" "$LINENO" 5
14404 TK_PRIVATE_INCLUDE
="-I${private_dir}"
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14406 $as_echo "${private_dir}" >&6; }
14409 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14410 TK_LIBRARY
=${TK_LIB_SPEC}
14413 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
14414 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
14415 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
14422 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14424 # Include some libraries that Tcl and Tk want.
14425 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14426 # Yes, the ordering seems wrong here. But it isn't.
14427 # TK_LIBS is the list of libraries that need to be linked
14428 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14429 # were in LIBS then any link tests after this point would
14430 # try to include things like `$(LIBGUI)', which wouldn't work.
14431 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
14433 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14434 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14435 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14436 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
14437 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
14438 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
14439 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
14441 if test x
$gdb_cv_os_cygwin = xyes
; then
14442 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14443 WIN32LDAPP
="-Wl,--subsystem,console"
14444 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
14447 subdirs
="$subdirs gdbtk"
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14460 $as_echo_n "checking for X... " >&6; }
14463 # Check whether --with-x was given.
14464 if test "${with_x+set}" = set; then :
14468 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14469 if test "x$with_x" = xno
; then
14470 # The user explicitly disabled X.
14473 case $x_includes,$x_libraries in #(
14474 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
14475 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
14476 $as_echo_n "(cached) " >&6
14478 # One or both of the vars are not set, and there is no cached value.
14479 ac_x_includes
=no ac_x_libraries
=no
14480 rm -f -r conftest.dir
14481 if mkdir conftest.dir
; then
14483 cat >Imakefile
<<'_ACEOF'
14485 @echo incroot='${INCROOT}'
14487 @echo usrlibdir='${USRLIBDIR}'
14489 @echo libdir='${LIBDIR}'
14491 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14492 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14493 for ac_var
in incroot usrlibdir libdir
; do
14494 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14496 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14497 for ac_extension
in a so sl dylib la dll
; do
14498 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14499 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14500 ac_im_usrlibdir
=$ac_im_libdir; break
14503 # Screen out bogus values from the imake configuration. They are
14504 # bogus both because they are the default anyway, and because
14505 # using them would break gcc on systems where it needs fixed includes.
14506 case $ac_im_incroot in
14507 /usr
/include
) ac_x_includes
= ;;
14508 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14510 case $ac_im_usrlibdir in
14511 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14512 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14516 rm -f -r conftest.dir
14519 # Standard set of common directories for X headers.
14520 # Check X11 before X11Rn because it is often a symlink to the current release.
14534 /usr/local/X11/include
14535 /usr/local/X11R7/include
14536 /usr/local/X11R6/include
14537 /usr/local/X11R5/include
14538 /usr/local/X11R4/include
14540 /usr/local/include/X11
14541 /usr/local/include/X11R7
14542 /usr/local/include/X11R6
14543 /usr/local/include/X11R5
14544 /usr/local/include/X11R4
14548 /usr/XFree86/include/X11
14552 /usr/unsupported/include
14553 /usr/athena/include
14554 /usr/local/x11r5/include
14555 /usr/lpp/Xamples/include
14557 /usr/openwin/include
14558 /usr/openwin/share/include'
14560 if test "$ac_x_includes" = no
; then
14561 # Guess where to find include files, by looking for Xlib.h.
14562 # First, try using that file with no special directory specified.
14563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565 #include <X11/Xlib.h>
14567 if ac_fn_c_try_cpp
"$LINENO"; then :
14568 # We can compile using X headers with no special include directory.
14571 for ac_dir
in $ac_x_header_dirs; do
14572 if test -r "$ac_dir/X11/Xlib.h"; then
14573 ac_x_includes
=$ac_dir
14578 rm -f conftest.err conftest.
$ac_ext
14579 fi # $ac_x_includes = no
14581 if test "$ac_x_libraries" = no
; then
14582 # Check for the libraries.
14583 # See if we find them without any special options.
14584 # Don't add to $LIBS permanently.
14587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h. */
14589 #include <X11/Xlib.h>
14598 if ac_fn_c_try_link
"$LINENO"; then :
14600 # We can link X programs with no special library path.
14604 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14606 # Don't even attempt the hair of trying to link an X program!
14607 for ac_extension
in a so sl dylib la dll
; do
14608 if test -r "$ac_dir/libX11.$ac_extension"; then
14609 ac_x_libraries
=$ac_dir
14615 rm -f core conftest.err conftest.
$ac_objext \
14616 conftest
$ac_exeext conftest.
$ac_ext
14617 fi # $ac_x_libraries = no
14619 case $ac_x_includes,$ac_x_libraries in #(
14620 no
,* |
*,no |
*\'*)
14621 # Didn't find X, or a directory has "'" in its name.
14622 ac_cv_have_x
="have_x=no";; #(
14624 # Record where we found X for the cache.
14625 ac_cv_have_x
="have_x=yes\
14626 ac_x_includes='$ac_x_includes'\
14627 ac_x_libraries='$ac_x_libraries'"
14633 eval "$ac_cv_have_x"
14636 if test "$have_x" != yes; then
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14638 $as_echo "$have_x" >&6; }
14641 # If each of the values was on the command line, it overrides each guess.
14642 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14643 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14644 # Update the cache value to reflect the command line values.
14645 ac_cv_have_x
="have_x=yes\
14646 ac_x_includes='$x_includes'\
14647 ac_x_libraries='$x_libraries'"
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14649 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14653 # Unlike the sim directory, whether a simulator is linked is controlled by
14654 # presence of a gdb_sim definition in the target configure.tgt entry.
14655 # This code just checks for a few cases where we'd like to ignore those
14656 # definitions, even when they're present in the '.mt' file. These cases
14657 # are when --disable-sim is specified, or if the simulator directory is
14658 # not part of the source tree.
14660 # Check whether --enable-sim was given.
14661 if test "${enable_sim+set}" = set; then :
14662 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
14663 echo "enableval = ${enableval}";
14664 case "${enableval}" in
14665 yes) ignore_sim
=false
;;
14666 no
) ignore_sim
=true
;;
14667 *) ignore_sim
=false
;;
14674 if test ! -d "${srcdir}/../sim"; then
14680 if test "${ignore_sim}" = "false"; then
14681 if test x
"${gdb_sim}" != x
; then
14683 SIM_OBS
="remote-sim.o"
14685 $as_echo "#define WITH_SIM 1" >>confdefs.h
14703 # List of host floatformats.
14705 cat >>confdefs.h
<<_ACEOF
14706 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14710 cat >>confdefs.h
<<_ACEOF
14711 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14715 cat >>confdefs.h
<<_ACEOF
14716 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14720 # target_subdir is used by the testsuite to find the target libraries.
14722 if test "${host}" != "${target}"; then
14723 target_subdir
="${target_alias}/"
14728 if test "${gdb_native}" = "yes"; then
14729 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14730 if test ! -f ${host_makefile_frag}; then
14731 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14733 frags
="$frags $host_makefile_frag"
14735 host_makefile_frag
=/dev
/null
14741 if test "${gdb_native}" = "yes"; then
14742 # We pick this up from the host configuration file (.mh) because we
14743 # do not have a native configuration Makefile fragment.
14744 nativefile
=`sed -n '
14745 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14746 ' ${host_makefile_frag}`
14750 if test x
"${gdb_osabi}" != x
; then
14752 cat >>confdefs.h
<<_ACEOF
14753 #define GDB_OSABI_DEFAULT $gdb_osabi
14758 # Enable multi-ice-gdb-server.
14759 # Check whether --enable-multi-ice was given.
14760 if test "${enable_multi_ice+set}" = set; then :
14761 enableval
=$enable_multi_ice; case $enableval in
14764 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14768 if test "x$enable_multi_ice" = xyes
; then
14769 subdirs
="$subdirs multi-ice"
14773 # Check whether --enable-gdbserver was given.
14774 if test "${enable_gdbserver+set}" = set; then :
14775 enableval
=$enable_gdbserver; case "${enableval}" in
14777 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
14780 enable_gdbserver
=auto
14784 # We only build gdbserver automatically in a native configuration, and
14785 # only if the user did not explicitly disable its build.
14786 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14788 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14789 if test "x$build_gdbserver" = xyes
; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14791 $as_echo "yes" >&6; }
14792 subdirs
="$subdirs gdbserver"
14794 gdbserver_build_enabled
=yes
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14797 $as_echo "no" >&6; }
14801 # If the user explicitly request the gdbserver to be built, verify that
14802 # we were in fact able to enable it.
14803 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
14804 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
14807 # Check for babeltrace and babeltrace-ctf
14809 # Check whether --with-babeltrace was given.
14810 if test "${with_babeltrace+set}" = set; then :
14811 withval
=$with_babeltrace;
14813 with_babeltrace
=auto
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
14817 $as_echo_n "checking whether to use babeltrace... " >&6; }
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
14819 $as_echo "$with_babeltrace" >&6; }
14821 if test "x$with_babeltrace" = "xno"; then
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
14823 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
14825 # Append -Werror to CFLAGS so that configure can catch the warning
14826 # "assignment from incompatible pointer type", which is related to
14827 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
14828 # in GDB, while babeltrace 1.0.3 is broken.
14829 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
14830 # safe to save and restore CFLAGS here.
14831 saved_CFLAGS
=$CFLAGS
14832 CFLAGS
="$CFLAGS -Werror"
14843 acl_save_prefix
="$prefix"
14844 prefix
="$acl_final_prefix"
14845 acl_save_exec_prefix
="$exec_prefix"
14846 exec_prefix
="$acl_final_exec_prefix"
14848 eval additional_includedir
=\"$includedir\"
14849 eval additional_libdir
=\"$libdir\"
14851 exec_prefix
="$acl_save_exec_prefix"
14852 prefix
="$acl_save_prefix"
14855 # Check whether --with-libbabeltrace-prefix was given.
14856 if test "${with_libbabeltrace_prefix+set}" = set; then :
14857 withval
=$with_libbabeltrace_prefix;
14858 if test "X$withval" = "Xno"; then
14861 if test "X$withval" = "X"; then
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 additional_includedir
="$withval/include"
14876 additional_libdir
="$withval/lib"
14887 names_already_handled
=
14888 names_next_round
='babeltrace babeltrace-ctf'
14889 while test -n "$names_next_round"; do
14890 names_this_round
="$names_next_round"
14892 for name
in $names_this_round; do
14894 for n
in $names_already_handled; do
14895 if test "$n" = "$name"; then
14896 already_handled
=yes
14900 if test -z "$already_handled"; then
14901 names_already_handled
="$names_already_handled $name"
14902 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14903 eval value
=\"\
$HAVE_LIB$uppername\"
14904 if test -n "$value"; then
14905 if test "$value" = yes; then
14906 eval value
=\"\
$LIB$uppername\"
14907 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
14908 eval value
=\"\
$LTLIB$uppername\"
14909 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
14918 if test $use_additional = yes; then
14919 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14920 found_dir
="$additional_libdir"
14921 found_so
="$additional_libdir/lib$name.$shlibext"
14922 if test -f "$additional_libdir/lib$name.la"; then
14923 found_la
="$additional_libdir/lib$name.la"
14926 if test -f "$additional_libdir/lib$name.$libext"; then
14927 found_dir
="$additional_libdir"
14928 found_a
="$additional_libdir/lib$name.$libext"
14929 if test -f "$additional_libdir/lib$name.la"; then
14930 found_la
="$additional_libdir/lib$name.la"
14935 if test "X$found_dir" = "X"; then
14936 for x
in $LDFLAGS $LTLIBBABELTRACE; do
14938 acl_save_prefix
="$prefix"
14939 prefix
="$acl_final_prefix"
14940 acl_save_exec_prefix
="$exec_prefix"
14941 exec_prefix
="$acl_final_exec_prefix"
14943 exec_prefix
="$acl_save_exec_prefix"
14944 prefix
="$acl_save_prefix"
14948 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14949 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14951 found_so
="$dir/lib$name.$shlibext"
14952 if test -f "$dir/lib$name.la"; then
14953 found_la
="$dir/lib$name.la"
14956 if test -f "$dir/lib$name.$libext"; then
14958 found_a
="$dir/lib$name.$libext"
14959 if test -f "$dir/lib$name.la"; then
14960 found_la
="$dir/lib$name.la"
14966 if test "X$found_dir" != "X"; then
14971 if test "X$found_dir" != "X"; then
14972 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
14973 if test "X$found_so" != "X"; then
14974 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14975 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14978 for x
in $ltrpathdirs; do
14979 if test "X$x" = "X$found_dir"; then
14984 if test -z "$haveit"; then
14985 ltrpathdirs
="$ltrpathdirs $found_dir"
14987 if test "$hardcode_direct" = yes; then
14988 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14990 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14991 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14993 for x
in $rpathdirs; do
14994 if test "X$x" = "X$found_dir"; then
14999 if test -z "$haveit"; then
15000 rpathdirs
="$rpathdirs $found_dir"
15004 for x
in $LDFLAGS $LIBBABELTRACE; do
15006 acl_save_prefix
="$prefix"
15007 prefix
="$acl_final_prefix"
15008 acl_save_exec_prefix
="$exec_prefix"
15009 exec_prefix
="$acl_final_exec_prefix"
15011 exec_prefix
="$acl_save_exec_prefix"
15012 prefix
="$acl_save_prefix"
15014 if test "X$x" = "X-L$found_dir"; then
15019 if test -z "$haveit"; then
15020 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
15022 if test "$hardcode_minus_L" != no
; then
15023 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15025 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15031 if test "X$found_a" != "X"; then
15032 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
15034 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
15037 additional_includedir
=
15038 case "$found_dir" in
15040 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15041 additional_includedir
="$basedir/include"
15044 if test "X$additional_includedir" != "X"; then
15045 if test "X$additional_includedir" != "X/usr/include"; then
15047 if test "X$additional_includedir" = "X/usr/local/include"; then
15048 if test -n "$GCC"; then
15050 linux
*) haveit
=yes;;
15054 if test -z "$haveit"; then
15055 for x
in $CPPFLAGS $INCBABELTRACE; do
15057 acl_save_prefix
="$prefix"
15058 prefix
="$acl_final_prefix"
15059 acl_save_exec_prefix
="$exec_prefix"
15060 exec_prefix
="$acl_final_exec_prefix"
15062 exec_prefix
="$acl_save_exec_prefix"
15063 prefix
="$acl_save_prefix"
15065 if test "X$x" = "X-I$additional_includedir"; then
15070 if test -z "$haveit"; then
15071 if test -d "$additional_includedir"; then
15072 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15078 if test -n "$found_la"; then
15079 save_libdir
="$libdir"
15080 case "$found_la" in
15081 */* |
*\\*) .
"$found_la" ;;
15082 *) .
"./$found_la" ;;
15084 libdir
="$save_libdir"
15085 for dep
in $dependency_libs; do
15088 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15089 if test "X$additional_libdir" != "X/usr/lib"; then
15091 if test "X$additional_libdir" = "X/usr/local/lib"; then
15092 if test -n "$GCC"; then
15094 linux
*) haveit
=yes;;
15098 if test -z "$haveit"; then
15100 for x
in $LDFLAGS $LIBBABELTRACE; do
15102 acl_save_prefix
="$prefix"
15103 prefix
="$acl_final_prefix"
15104 acl_save_exec_prefix
="$exec_prefix"
15105 exec_prefix
="$acl_final_exec_prefix"
15107 exec_prefix
="$acl_save_exec_prefix"
15108 prefix
="$acl_save_prefix"
15110 if test "X$x" = "X-L$additional_libdir"; then
15115 if test -z "$haveit"; then
15116 if test -d "$additional_libdir"; then
15117 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15121 for x
in $LDFLAGS $LTLIBBABELTRACE; do
15123 acl_save_prefix
="$prefix"
15124 prefix
="$acl_final_prefix"
15125 acl_save_exec_prefix
="$exec_prefix"
15126 exec_prefix
="$acl_final_exec_prefix"
15128 exec_prefix
="$acl_save_exec_prefix"
15129 prefix
="$acl_save_prefix"
15131 if test "X$x" = "X-L$additional_libdir"; then
15136 if test -z "$haveit"; then
15137 if test -d "$additional_libdir"; then
15138 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15145 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15146 if test "$enable_rpath" != no
; then
15148 for x
in $rpathdirs; do
15149 if test "X$x" = "X$dir"; then
15154 if test -z "$haveit"; then
15155 rpathdirs
="$rpathdirs $dir"
15158 for x
in $ltrpathdirs; do
15159 if test "X$x" = "X$dir"; then
15164 if test -z "$haveit"; then
15165 ltrpathdirs
="$ltrpathdirs $dir"
15170 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15173 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15176 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15177 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15183 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15184 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15190 if test "X$rpathdirs" != "X"; then
15191 if test -n "$hardcode_libdir_separator"; then
15193 for found_dir
in $rpathdirs; do
15194 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15196 acl_save_libdir
="$libdir"
15198 eval flag
=\"$hardcode_libdir_flag_spec\"
15199 libdir
="$acl_save_libdir"
15200 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15202 for found_dir
in $rpathdirs; do
15203 acl_save_libdir
="$libdir"
15204 libdir
="$found_dir"
15205 eval flag
=\"$hardcode_libdir_flag_spec\"
15206 libdir
="$acl_save_libdir"
15207 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15211 if test "X$ltrpathdirs" != "X"; then
15212 for found_dir
in $ltrpathdirs; do
15213 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15218 ac_save_CPPFLAGS
="$CPPFLAGS"
15220 for element
in $INCBABELTRACE; do
15222 for x
in $CPPFLAGS; do
15224 acl_save_prefix
="$prefix"
15225 prefix
="$acl_final_prefix"
15226 acl_save_exec_prefix
="$exec_prefix"
15227 exec_prefix
="$acl_final_exec_prefix"
15229 exec_prefix
="$acl_save_exec_prefix"
15230 prefix
="$acl_save_prefix"
15232 if test "X$x" = "X$element"; then
15237 if test -z "$haveit"; then
15238 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15244 $as_echo_n "checking for libbabeltrace... " >&6; }
15245 if test "${ac_cv_libbabeltrace+set}" = set; then :
15246 $as_echo_n "(cached) " >&6
15249 ac_save_LIBS
="$LIBS"
15250 LIBS
="$LIBS $LIBBABELTRACE"
15251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h. */
15253 #include <babeltrace/babeltrace.h>
15254 #include <babeltrace/ctf/events.h>
15255 #include <babeltrace/ctf/iterator.h>
15259 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15260 struct bt_ctf_event *event = NULL;
15261 const struct bt_definition *scope;
15263 scope = bt_ctf_get_top_level_scope (event,
15264 BT_STREAM_EVENT_HEADER);
15265 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
15271 if ac_fn_c_try_link
"$LINENO"; then :
15272 ac_cv_libbabeltrace
=yes
15274 ac_cv_libbabeltrace
=no
15276 rm -f core conftest.err conftest.
$ac_objext \
15277 conftest
$ac_exeext conftest.
$ac_ext
15278 LIBS
="$ac_save_LIBS"
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
15282 $as_echo "$ac_cv_libbabeltrace" >&6; }
15283 if test "$ac_cv_libbabeltrace" = yes; then
15284 HAVE_LIBBABELTRACE
=yes
15286 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
15289 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
15291 $as_echo "$LIBBABELTRACE" >&6; }
15293 HAVE_LIBBABELTRACE
=no
15294 CPPFLAGS
="$ac_save_CPPFLAGS"
15304 CFLAGS
=$saved_CFLAGS
15306 if test "$HAVE_LIBBABELTRACE" != yes; then
15307 if test "$with_babeltrace" = yes; then
15308 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
15311 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
15316 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15317 # to an empty version.
15323 if test "${nativefile}" != ""; then
15324 case "${nativefile}" in
15325 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
15326 * ) GDB_NM_FILE
="${nativefile}"
15328 files
="${files} ${GDB_NM_FILE}"
15329 links
="${links} nm.h"
15331 cat >>confdefs.h
<<_ACEOF
15332 #define GDB_NM_FILE "${GDB_NM_FILE}"
15338 ac_sources
="$files"
15340 while test -n "$ac_sources"; do
15341 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
15342 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
15343 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
15345 ac_config_links
="$ac_config_links $ac_config_links_1"
15351 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15354 # Undo the $ec_script escaping suitable for Makefile.
15355 transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15356 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$transform"`
15357 if test "x$GDB_TRANSFORM_NAME" = x
; then
15358 GDB_TRANSFORM_NAME
=gdb
15361 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$transform"`
15362 if test "x$GCORE_TRANSFORM_NAME" = x
; then
15363 GCORE_TRANSFORM_NAME
=gcore
15366 ac_config_files
="$ac_config_files gcore"
15369 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
15371 ac_config_commands
="$ac_config_commands default"
15373 cat >confcache
<<\_ACEOF
15374 # This file is a shell script that caches the results of configure
15375 # tests run on this system so they can be shared between configure
15376 # scripts and configure runs, see configure's option --config-cache.
15377 # It is not useful on other systems. If it contains results you don't
15378 # want to keep, you may remove or edit it.
15380 # config.status only pays attention to the cache file if you give it
15381 # the --recheck option to rerun configure.
15383 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15384 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15385 # following values.
15389 # The following way of writing the cache mishandles newlines in values,
15390 # but we know of no workaround that is simple, portable, and efficient.
15391 # So, we kill variables containing newlines.
15392 # Ultrix sh set writes to stderr and can't be redirected directly,
15393 # and sets the high bit in the cache file unless we assign to the vars.
15395 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15396 eval ac_val
=\$
$ac_var
15400 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15401 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15404 _ | IFS | as_nl
) ;; #(
15405 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15406 *) { eval $ac_var=; unset $ac_var;} ;;
15412 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15413 *${as_nl}ac_space
=\
*)
15414 # `set' does not quote correctly, so add quotes: double-quote
15415 # substitution turns \\\\ into \\, and sed turns \\ into \.
15418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15421 # `set' quotes correctly as required by POSIX, so do not add quotes.
15422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15431 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15433 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15435 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15436 if test -w "$cache_file"; then
15437 test "x$cache_file" != "x/dev/null" &&
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15439 $as_echo "$as_me: updating cache $cache_file" >&6;}
15440 cat confcache
>$cache_file
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15443 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15448 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15449 # Let make expand exec_prefix.
15450 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15452 DEFS
=-DHAVE_CONFIG_H
15456 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15457 # 1. Remove the extension, and $U if already installed.
15458 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15459 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15460 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15461 # will be set to the directory where LIBOBJS objects are built.
15462 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15463 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15465 LIBOBJS
=$ac_libobjs
15467 LTLIBOBJS
=$ac_ltlibobjs
15470 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15471 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15474 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15475 as_fn_error
"conditional \"GMAKE\" was never defined.
15476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15480 : ${CONFIG_STATUS=./config.status}
15482 ac_clean_files_save
=$ac_clean_files
15483 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15485 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15487 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15489 # Generated by $as_me.
15490 # Run this file to recreate the current configuration.
15491 # Compiler output produced by configure, useful for debugging
15492 # configure, is in config.log if it exists.
15495 ac_cs_recheck=false
15498 SHELL=\${CONFIG_SHELL-$SHELL}
15501 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15502 ## -------------------- ##
15503 ## M4sh Initialization. ##
15504 ## -------------------- ##
15506 # Be more Bourne compatible
15507 DUALCASE
=1; export DUALCASE
# for MKS sh
15508 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15511 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15512 # is contrary to our usage. Disable this feature.
15513 alias -g '${1+"$@"}'='"$@"'
15514 setopt NO_GLOB_SUBST
15516 case `(set -o) 2>/dev/null` in #(
15528 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15529 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15532 # Prefer a ksh shell builtin over an external printf program on Solaris,
15533 # but without wasting forks for bash or zsh.
15534 if test -z "$BASH_VERSION$ZSH_VERSION" \
15535 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15536 as_echo='print
-r --'
15537 as_echo_n='print
-rn --'
15538 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15539 as_echo='printf %s
\n'
15540 as_echo_n='printf %s
'
15542 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15543 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15544 as_echo_n='/usr
/ucb
/echo -n'
15546 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15547 as_echo_n_body='eval
15551 expr "X$arg" : "X\\(.*\\)$as_nl";
15552 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15554 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15556 export as_echo_n_body
15557 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15559 export as_echo_body
15560 as_echo='sh
-c $as_echo_body as_echo
'
15563 # The user is always right.
15564 if test "${PATH_SEPARATOR+set}" != set; then
15566 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15567 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15574 # We need space, tab and new line, in precisely that order. Quoting is
15575 # there to prevent editors from complaining about space-tab.
15576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15577 # splitting by setting IFS to empty value.)
15580 # Find who we are. Look in the path if we contain no directory separator.
15582 *[\\/]* ) as_myself=$0 ;;
15583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15584 for as_dir in $PATH
15587 test -z "$as_dir" && as_dir=.
15588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15594 # We did not find ourselves, most probably we were run as `sh COMMAND'
15595 # in which case we are not to be found in the path.
15596 if test "x$as_myself" = x
; then
15599 if test ! -f "$as_myself"; then
15600 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15604 # Unset variables that we do not need and which cause bugs (e.g. in
15605 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15606 # suppresses any "Segmentation fault" message there. '((' could
15607 # trigger a bug in pdksh 5.2.14.
15608 for as_var
in BASH_ENV ENV MAIL MAILPATH
15609 do eval test x\
${$as_var+set} = xset \
15610 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15623 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15626 # as_fn_error ERROR [LINENO LOG_FD]
15627 # ---------------------------------
15628 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15629 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15630 # script with status $?, using 1 if that was 0.
15633 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15635 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15636 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15638 $as_echo "$as_me: error: $1" >&2
15639 as_fn_exit
$as_status
15643 # as_fn_set_status STATUS
15644 # -----------------------
15645 # Set $? to STATUS, without forking.
15646 as_fn_set_status
()
15649 } # as_fn_set_status
15651 # as_fn_exit STATUS
15652 # -----------------
15653 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15657 as_fn_set_status
$1
15663 # Portably unset VAR.
15666 { eval $1=; unset $1;}
15668 as_unset
=as_fn_unset
15669 # as_fn_append VAR VALUE
15670 # ----------------------
15671 # Append the text in VALUE to the end of the definition contained in VAR. Take
15672 # advantage of any shell optimizations that allow amortized linear growth over
15673 # repeated appends, instead of the typical quadratic growth present in naive
15675 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15676 eval 'as_fn_append ()
15687 # as_fn_arith ARG...
15688 # ------------------
15689 # Perform arithmetic evaluation on the ARGs, and store the result in the
15690 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15691 # must be portable across $(()) and expr.
15692 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15693 eval 'as_fn_arith ()
15700 as_val
=`expr "$@" || test $? -eq 1`
15705 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15706 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15712 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15713 as_basename
=basename
15718 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15724 as_me
=`$as_basename -- "$0" ||
15725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15726 X"$0" : 'X\(//\)$' \| \
15727 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15729 sed '/^.*\/\([^/][^/]*\)\/*$/{
15743 # Avoid depending upon Character Ranges.
15744 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15745 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15746 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15747 as_cr_digits
='0123456789'
15748 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15750 ECHO_C
= ECHO_N
= ECHO_T
=
15751 case `echo -n x` in #(((((
15753 case `echo 'xy\c'` in
15754 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15756 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15763 rm -f conf$$ conf$$.exe conf$$.
file
15764 if test -d conf$$.dir
; then
15765 rm -f conf$$.dir
/conf$$.
file
15768 mkdir conf$$.dir
2>/dev
/null
15770 if (echo >conf$$.
file) 2>/dev
/null
; then
15771 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15773 # ... but there are two gotchas:
15774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15776 # In both cases, we have to default to `cp -p'.
15777 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15779 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15787 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15788 rmdir conf$$.dir
2>/dev
/null
15793 # Create "$as_dir" as a directory, including parents if necessary.
15798 -*) as_dir
=.
/$as_dir;;
15800 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15804 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15805 *) as_qdir
=$as_dir;;
15807 as_dirs
="'$as_qdir' $as_dirs"
15808 as_dir
=`$as_dirname -- "$as_dir" ||
15809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15810 X"$as_dir" : 'X\(//\)[^/]' \| \
15811 X"$as_dir" : 'X\(//\)$' \| \
15812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15813 $as_echo X"$as_dir" |
15814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15818 /^X\(\/\/\)[^/].*/{
15831 test -d "$as_dir" && break
15833 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15834 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15838 if mkdir
-p .
2>/dev
/null
; then
15839 as_mkdir_p
='mkdir -p "$as_dir"'
15841 test -d .
/-p && rmdir .
/-p
15845 if test -x / >/dev
/null
2>&1; then
15846 as_test_x
='test -x'
15848 if ls -dL / >/dev
/null
2>&1; then
15855 if test -d "$1"; then
15861 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15862 ???[sx]*):;;*)false;;esac;fi
15866 as_executable_p
=$as_test_x
15868 # Sed expression to map a string onto a valid CPP name.
15869 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15871 # Sed expression to map a string onto a valid variable name.
15872 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15876 ## ----------------------------------- ##
15877 ## Main body of $CONFIG_STATUS script. ##
15878 ## ----------------------------------- ##
15880 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15883 # Save the log message, to keep $0 and so on meaningful, and to
15884 # report actual input values of CONFIG_FILES etc. instead of their
15885 # values after options handling.
15887 This file was extended by $as_me, which was
15888 generated by GNU Autoconf 2.64. Invocation command line was
15890 CONFIG_FILES = $CONFIG_FILES
15891 CONFIG_HEADERS = $CONFIG_HEADERS
15892 CONFIG_LINKS = $CONFIG_LINKS
15893 CONFIG_COMMANDS = $CONFIG_COMMANDS
15896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15901 case $ac_config_files in *"
15902 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15905 case $ac_config_headers in *"
15906 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15911 # Files that config.status was made for.
15912 config_files="$ac_config_files"
15913 config_headers="$ac_config_headers"
15914 config_links="$ac_config_links"
15915 config_commands="$ac_config_commands"
15919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15921 \`$as_me' instantiates files and other configuration actions
15922 from templates according to the current configuration. Unless the files
15923 and actions are specified as TAGs, all are instantiated by default.
15925 Usage: $0 [OPTION]... [TAG]...
15927 -h, --help print this help, then exit
15928 -V, --version print version number and configuration settings, then exit
15929 -q, --quiet, --silent
15930 do not print progress messages
15931 -d, --debug don't remove temporary files
15932 --recheck update $as_me by reconfiguring in the same conditions
15933 --file=FILE[:TEMPLATE]
15934 instantiate the configuration file FILE
15935 --header=FILE[:TEMPLATE]
15936 instantiate the configuration header FILE
15938 Configuration files:
15941 Configuration headers:
15944 Configuration links:
15947 Configuration commands:
15950 Report bugs to the package provider."
15953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956 configured by $0, generated by GNU Autoconf 2.64,
15957 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15959 Copyright (C) 2009 Free Software Foundation, Inc.
15960 This config.status script is free software; the Free Software Foundation
15961 gives unlimited permission to copy, distribute and modify it."
15967 test -n "\$AWK" || AWK=awk
15970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15971 # The default lists apply if the user does not specify any file.
15977 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15978 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15989 # Handling of the options.
15990 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15992 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15993 $as_echo "$ac_cs_version"; exit ;;
15994 --debug |
--debu |
--deb |
--de |
--d |
-d )
15996 --file |
--fil |
--fi |
--f )
15999 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16001 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16002 ac_need_defaults
=false
;;
16003 --header |
--heade |
--head |
--hea )
16006 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16008 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16009 ac_need_defaults
=false
;;
16011 # Conflict between --help and --header
16012 as_fn_error
"ambiguous option: \`$1'
16013 Try \`$0 --help' for more information.";;
16014 --help |
--hel |
-h )
16015 $as_echo "$ac_cs_usage"; exit ;;
16016 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16017 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16020 # This is an error.
16021 -*) as_fn_error
"unrecognized option: \`$1'
16022 Try \`$0 --help' for more information." ;;
16024 *) as_fn_append ac_config_targets
" $1"
16025 ac_need_defaults
=false
;;
16031 ac_configure_extra_args
=
16033 if $ac_cs_silent; then
16035 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16040 if \$ac_cs_recheck; then
16041 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16043 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16044 CONFIG_SHELL='$SHELL'
16045 export CONFIG_SHELL
16050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16054 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16055 ## Running $as_me. ##
16061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16065 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16071 # Handling of arguments.
16072 for ac_config_target
in $ac_config_targets
16074 case $ac_config_target in
16075 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16076 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16077 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16078 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16079 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
16080 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16081 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
16082 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16083 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
16084 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16086 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16091 # If the user did not use the arguments to specify the items to instantiate,
16092 # then the envvar interface is used. Set only those that are not.
16093 # We use the long form for the default assignment because of an extremely
16094 # bizarre bug on SunOS 4.1.3.
16095 if $ac_need_defaults; then
16096 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16097 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16098 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16099 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16102 # Have a temporary directory for convenience. Make it in the build tree
16103 # simply because there is no reason against having it here, and in addition,
16104 # creating and moving files from /tmp can sometimes cause problems.
16105 # Hook for its removal unless debugging.
16106 # Note that there is a small window in which the directory will not be cleaned:
16107 # after its creation but before its name has been assigned to `$tmp'.
16111 trap 'exit_status=$?
16112 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16114 trap 'as_fn_exit 1' 1 2 13 15
16116 # Create a (secure) tmp directory for tmp files.
16119 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16120 test -n "$tmp" && test -d "$tmp"
16123 tmp
=.
/conf$$
-$RANDOM
16124 (umask 077 && mkdir
"$tmp")
16125 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16127 # Set up the scripts for CONFIG_FILES section.
16128 # No need to generate them if there are no CONFIG_FILES.
16129 # This happens for instance with `./config.status config.h'.
16130 if test -n "$CONFIG_FILES"; then
16132 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16133 ac_cs_awk_getline
=:
16134 ac_cs_awk_pipe_init
=
16135 ac_cs_awk_read_file
='
16136 while ((getline aline < (F[key])) > 0)
16139 ac_cs_awk_pipe_fini
=
16141 ac_cs_awk_getline
=false
16142 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16143 ac_cs_awk_read_file
='
16145 print "cat " F[key] " &&"
16146 '$ac_cs_awk_pipe_init
16147 # The final `:' finishes the AND list.
16148 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16150 ac_cr
=`echo X | tr X '\015'`
16151 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16152 # But we know of no other shell where ac_cr would be empty at this
16153 # point, so we can use a bashism as a fallback.
16154 if test "x$ac_cr" = x
; then
16155 eval ac_cr
=\$
\'\\r
\'
16157 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16158 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16161 ac_cs_awk_cr
=$ac_cr
16164 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16167 # Create commands to substitute file output variables.
16169 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16170 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16171 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16174 } >conf$
$files.sh
&&
16175 . .
/conf$
$files.sh ||
16176 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16177 rm -f conf$
$files.sh
16180 echo "cat >conf$$subs.awk <<_ACEOF" &&
16181 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16183 } >conf$$subs.sh ||
16184 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16185 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16187 for ac_last_try in false false false false false :; do
16188 . ./conf$$subs.sh ||
16189 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16191 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16192 if test $ac_delim_n = $ac_delim_num; then
16194 elif $ac_last_try; then
16195 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16197 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16200 rm -f conf$$subs.sh
16202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16203 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16207 s/^/S["/; s
/!.
*/"]=/
16217 s/\(.\{148\}\).*/\1/
16219 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16224 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16231 s/\(.\{148\}\).*/\1/
16233 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16237 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16242 ' <conf$$subs.awk | sed '
16247 ' >>$CONFIG_STATUS || ac_write_fail=1
16248 rm -f conf$$subs.awk
16249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16251 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16252 for (key in S) S_is_set[key] = 1
16254 \$ac_cs_awk_pipe_init
16258 nfields = split(line, field, "@
")
16260 len = length(field[1])
16261 for (i = 2; i < nfields; i++) {
16263 keylen = length(key)
16264 if (S_is_set[key]) {
16266 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16267 len += length(value) + length(field[++i])
16272 if (nfields == 3 && !substed) {
16274 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16275 \$ac_cs_awk_read_file
16281 \$ac_cs_awk_pipe_fini
16284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16285 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16286 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16289 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16290 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16293 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16294 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16295 # trailing colons and then remove the whole line if VPATH becomes empty
16296 # (actually we leave an empty line to preserve line numbers).
16297 if test "x
$srcdir" = x.; then
16298 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16299 s/:*\$(srcdir):*/:/
16300 s/:*\${srcdir}:*/:/
16302 s/^\([^=]*=[ ]*\):*/\1/
16308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16309 fi # test -n "$CONFIG_FILES"
16311 # Set up the scripts for CONFIG_HEADERS section.
16312 # No need to generate them if there are no CONFIG_HEADERS.
16313 # This happens for instance with `./config.status Makefile'.
16314 if test -n "$CONFIG_HEADERS"; then
16315 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16319 # Transform confdefs.h into an awk script `defines.awk', embedded as
16320 # here-document in config.status, that substitutes the proper values into
16321 # config.h.in to produce config.h.
16323 # Create a delimiter string that does not exist in confdefs.h, to ease
16324 # handling of long lines.
16326 for ac_last_try in false false :; do
16327 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16328 if test -z "$ac_t"; then
16330 elif $ac_last_try; then
16331 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16333 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16337 # For the awk script, D is an array of macro values keyed by name,
16338 # likewise P contains macro parameters if any. Preserve backslash
16339 # newline sequences.
16341 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16343 s/.\{148\}/&'"$ac_delim"'/g
16346 s/^[ ]*#[ ]*define[ ][ ]*/ /
16353 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16355 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16360 D["\
1"]=" \
3\\\\\\n
"\\/p
16362 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16367 s/.\{148\}/&'"$ac_delim"'/g
16372 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16375 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16377 ' <confdefs.h | sed '
16378 s/'"$ac_delim"'/"\\\
16379 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16382 for (key in D) D_is_set[key] = 1
16385 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16387 split(line, arg, " ")
16388 if (arg[1] == "#") {
16392 defundef
= substr
(arg
[1], 2)
16395 split(mac1
, mac2
, "(") #)
16397 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16398 if (D_is_set
[macro
]) {
16399 # Preserve the white space surrounding the "#".
16400 print prefix
"define", macro P
[macro
] D
[macro
]
16403 # Replace #undef with comments. This is necessary, for example,
16404 # in the case of _POSIX_SOURCE, which is predefined and required
16405 # on some systems where configure will not decide to define it.
16406 if (defundef
== "undef") {
16407 print
"/*", prefix defundef
, macro
, "*/"
16415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16416 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16417 fi # test -n "$CONFIG_HEADERS"
16420 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16425 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16427 case $ac_mode$ac_tag in
16429 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16430 :[FH
]-) ac_tag
=-:-;;
16431 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16448 -) ac_f
="$tmp/stdin";;
16449 *) # Look for the file first in the build tree, then in the source tree
16450 # (if the path is not absolute). The absolute path cannot be DOS-style,
16451 # because $ac_f cannot contain `:'.
16455 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16457 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16459 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16460 as_fn_append ac_file_inputs
" '$ac_f'"
16463 # Let's still pretend it is `configure' which instantiates (i.e., don't
16464 # use $as_me), people would be surprised to read:
16465 # /* config.h. Generated by config.status. */
16466 configure_input
='Generated from '`
16467 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16469 if test x
"$ac_file" != x-
; then
16470 configure_input
="$ac_file. $configure_input"
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16472 $as_echo "$as_me: creating $ac_file" >&6;}
16474 # Neutralize special characters interpreted by sed in replacement strings.
16475 case $configure_input in #(
16476 *\
&* |
*\|
* |
*\\* )
16477 ac_sed_conf_input
=`$as_echo "$configure_input" |
16478 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16479 *) ac_sed_conf_input
=$configure_input;;
16483 *:-:* |
*:-) cat >"$tmp/stdin" \
16484 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16489 ac_dir
=`$as_dirname -- "$ac_file" ||
16490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16491 X"$ac_file" : 'X\(//\)[^/]' \| \
16492 X"$ac_file" : 'X\(//\)$' \| \
16493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16494 $as_echo X"$ac_file" |
16495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16499 /^X\(\/\/\)[^/].*/{
16512 as_dir
="$ac_dir"; as_fn_mkdir_p
16516 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16518 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16519 # A ".." for each directory in $ac_dir_suffix.
16520 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16521 case $ac_top_builddir_sub in
16522 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16523 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16526 ac_abs_top_builddir
=$ac_pwd
16527 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16528 # for backward compatibility:
16529 ac_top_builddir
=$ac_top_build_prefix
16532 .
) # We are building in place.
16534 ac_top_srcdir
=$ac_top_builddir_sub
16535 ac_abs_top_srcdir
=$ac_pwd ;;
16536 [\\/]* | ?
:[\\/]* ) # Absolute name.
16537 ac_srcdir
=$srcdir$ac_dir_suffix;
16538 ac_top_srcdir
=$srcdir
16539 ac_abs_top_srcdir
=$srcdir ;;
16540 *) # Relative name.
16541 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16542 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16543 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16545 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16555 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16556 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16561 # If the template does not know about datarootdir, expand it.
16562 # FIXME: This hack should be removed a few years after 2.60.
16563 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16574 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16575 *datarootdir
*) ac_datarootdir_seen
=yes;;
16576 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16578 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16581 ac_datarootdir_hack='
16582 s&@datadir@&$datadir&g
16583 s&@docdir@&$docdir&g
16584 s&@infodir@&$infodir&g
16585 s&@localedir@&$localedir&g
16586 s&@mandir@&$mandir&g
16587 s&\\\${datarootdir}&$datarootdir&g' ;;
16591 # Neutralize VPATH when `$srcdir' = `.'.
16592 # Shell code in configure.ac might set extrasub.
16593 # FIXME: do we really want to maintain this feature?
16594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16595 ac_sed_extra="$ac_vpsub
16598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16600 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16601 s|@configure_input@|
$ac_sed_conf_input|
;t t
16602 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16603 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16604 s
&@srcdir@
&$ac_srcdir&;t t
16605 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16606 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16607 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16608 s
&@builddir@
&$ac_builddir&;t t
16609 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16610 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16611 s
&@INSTALL@
&$ac_INSTALL&;t t
16612 $ac_datarootdir_hack
16614 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16615 if $ac_cs_awk_getline; then
16616 $AWK -f "$tmp/subs.
awk"
16618 $AWK -f "$tmp/subs.
awk" | $SHELL
16620 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16622 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16623 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16624 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16626 which seems to be undefined. Please make sure it is defined." >&5
16627 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16628 which seems to be undefined. Please make sure it is defined." >&2;}
16632 -) cat "$tmp/out" && rm -f "$tmp/out";;
16633 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16635 || as_fn_error "could not create $ac_file" "$LINENO" 5
16641 if test x"$ac_file" != x-; then
16643 $as_echo "/* $configure_input */" \
16644 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16645 } >"$tmp/config.h" \
16646 || as_fn_error "could not create $ac_file" "$LINENO" 5
16647 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16649 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16652 mv "$tmp/config.h" "$ac_file" \
16653 || as_fn_error "could not create $ac_file" "$LINENO" 5
16656 $as_echo "/* $configure_input */" \
16657 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16658 || as_fn_error "could not create -" "$LINENO" 5
16666 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
16669 # Prefer the file from the source tree if names are identical.
16670 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16671 ac_source=$srcdir/$ac_source
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16675 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16677 if test ! -r "$ac_source"; then
16678 as_fn_error "$ac_source: file not found" "$LINENO" 5
16682 # Try a relative symlink, then a hard link, then a copy.
16684 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16685 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16687 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16688 ln "$ac_source" "$ac_file" 2>/dev/null ||
16689 cp -p "$ac_source" "$ac_file" ||
16690 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16693 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16694 $as_echo "$as_me: executing $ac_file commands" >&6;}
16699 case $ac_file$ac_mode in
16700 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16701 "gcore":F) chmod +x gcore ;;
16703 case x$CONFIG_HEADERS in
16704 xconfig.h:config.in)
16715 ac_clean_files=$ac_clean_files_save
16717 test $ac_write_fail = 0 ||
16718 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16721 # configure is writing to config.log, and then calls config.status.
16722 # config.status does its own redirection, appending to config.log.
16723 # Unfortunately, on DOS this fails, as config.log is still kept open
16724 # by configure, so config.status won't be able to
write to it
; its
16725 # output is simply discarded. So we exec the FD to /dev/null,
16726 # effectively closing config.log, so it can be properly (re)opened and
16727 # appended to by config.status. When coming back to configure, we
16728 # need to make the FD available again.
16729 if test "$no_create" != yes; then
16731 ac_config_status_args
=
16732 test "$silent" = yes &&
16733 ac_config_status_args
="$ac_config_status_args --quiet"
16735 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16737 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16738 # would make configure fail if this is the last instruction.
16739 $ac_cs_success || as_fn_exit $?
16743 # CONFIG_SUBDIRS section.
16745 if test "$no_recursion" != yes; then
16747 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16748 # so they do not pile up.
16749 ac_sub_configure_args
=
16751 eval "set x $ac_configure_args"
16755 if test -n "$ac_prev"; then
16760 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
16761 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
16762 ac_prev
=cache_file
;;
16763 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
16764 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
16767 --config-cache |
-C)
16769 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
16771 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
16773 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
16775 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
16777 --disable-option-checking)
16781 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16783 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
16787 # Always prepend --prefix to ensure using the same prefix
16788 # in subdir configurations.
16789 ac_arg
="--prefix=$prefix"
16791 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16793 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
16796 if test "$silent" = yes; then
16797 ac_sub_configure_args
="--silent $ac_sub_configure_args"
16800 # Always prepend --disable-option-checking to silence warnings, since
16801 # different subdirs can have different --enable and --with options.
16802 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
16805 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
16807 # Do not complain, so a configure script can configure whichever
16808 # parts of a large source tree are present.
16809 test -d "$srcdir/$ac_dir" ||
continue
16811 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16812 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16813 $as_echo "$ac_msg" >&6
16814 as_dir
="$ac_dir"; as_fn_mkdir_p
16818 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16820 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16821 # A ".." for each directory in $ac_dir_suffix.
16822 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16823 case $ac_top_builddir_sub in
16824 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16825 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16828 ac_abs_top_builddir
=$ac_pwd
16829 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16830 # for backward compatibility:
16831 ac_top_builddir
=$ac_top_build_prefix
16834 .
) # We are building in place.
16836 ac_top_srcdir
=$ac_top_builddir_sub
16837 ac_abs_top_srcdir
=$ac_pwd ;;
16838 [\\/]* | ?
:[\\/]* ) # Absolute name.
16839 ac_srcdir
=$srcdir$ac_dir_suffix;
16840 ac_top_srcdir
=$srcdir
16841 ac_abs_top_srcdir
=$srcdir ;;
16842 *) # Relative name.
16843 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16844 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16845 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16847 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16852 # Check for guested configure; otherwise get Cygnus style configure.
16853 if test -f "$ac_srcdir/configure.gnu"; then
16854 ac_sub_configure
=$ac_srcdir/configure.gnu
16855 elif test -f "$ac_srcdir/configure"; then
16856 ac_sub_configure
=$ac_srcdir/configure
16857 elif test -f "$ac_srcdir/configure.in"; then
16858 # This should be Cygnus configure.
16859 ac_sub_configure
=$ac_aux_dir/configure
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16862 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16866 # The recursion is here.
16867 if test -n "$ac_sub_configure"; then
16868 # Make the cache file name correct relative to the subdirectory.
16869 case $cache_file in
16870 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
16871 *) # Relative name.
16872 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
16875 { $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
16876 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16877 # The eval makes quoting arguments work.
16878 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16879 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16880 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16886 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16888 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}