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
683 READLINE_TEXI_INCFLAG
706 HAVE_NATIVE_GCORE_TARGET
735 INSTALL_STRIP_PROGRAM
764 MAINTAINER_MODE_FALSE
793 program_transform_name
804 ac_subst_files='host_makefile_frag'
806 enable_option_checking
807 enable_maintainer_mode
810 with_separate_debug_dir
812 with_relocated_sources
814 with_auto_load_safe_path
844 enable_build_warnings
845 enable_gdb_build_warnings
855 with_libbabeltrace_prefix
857 ac_precious_vars='build_alias
874 ac_subdirs_all='testsuite
879 # Initialize some variables set by options.
881 ac_init_version=false
882 ac_unrecognized_opts=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
893 program_transform_name=s,x,x,
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE}'
918 infodir='${datarootdir}/info'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
939 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 # Accept the important Cygnus configure options, so we can diagnose typos.
945 case $ac_dashdash$ac_option in
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 -build | --build | --buil | --bui | --bu)
955 ac_prev=build_alias ;;
956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957 build_alias=$ac_optarg ;;
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964 cache_file=$ac_optarg ;;
967 cache_file=config.cache ;;
969 -datadir | --datadir | --datadi | --datad)
971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
972 datadir=$ac_optarg ;;
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
981 -disable-* | --disable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
995 eval enable_$ac_useropt=no ;;
997 -docdir | --docdir | --docdi | --doc | --do)
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
1007 -enable-* | --enable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error "invalid feature name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_$ac_useropt"
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1021 eval enable_$ac_useropt=\$ac_optarg ;;
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 htmldir=$ac_optarg ;;
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1066 -libdir | --libdir | --libdi | --libd)
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1157 -psdir | --psdir | --psdi | --psd | --ps)
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 sbindir=$ac_optarg ;;
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 sharedstatedir=$ac_optarg ;;
1183 -site | --site | --sit)
1185 -site=* | --site=* | --sit=*)
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1225 eval with_$ac_useropt=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1241 eval with_$ac_useropt=no ;;
1244 # Obsolete; use --with-x.
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1261 -*) as_fn_error "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information."
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1276 # FIXME: should be removed in autoconf 3.0.
1277 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error "missing argument to $ac_option"
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1294 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1295 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1312 # Be sure to have absolute directory names.
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1325 target=$target_alias
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1332 If a cross compiler is detected then cross compile mode will be used." >&2
1333 elif test "x$build_alias" != "x$host_alias"; then
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341 test "$silent" = yes && exec 6>/dev/null
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error "working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error "pwd does not report name of working directory"
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1384 ac_srcdir_defaulted=no
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures this package to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1481 --x-includes=DIR X include files are in DIR
1482 --x-libraries=DIR X library files are in DIR
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 --target=TARGET configure for building compilers for TARGET [HOST]
1491 if test -n "$ac_init_help"; then
1496 --disable-option-checking ignore unrecognized --enable/--with options
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1499 --enable-maintainer-mode enable make rules and dependencies not useful
1500 (and sometimes confusing) to the casual installer
1501 --enable-plugins Enable support for plugins
1502 --disable-largefile omit support for large files
1503 --enable-targets=TARGETS
1504 alternative target configurations
1505 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1506 --disable-gdbcli disable command-line interface (CLI)
1507 --disable-gdbmi disable machine-interface (MI)
1508 --enable-tui enable full-screen terminal user interface (TUI)
1509 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1510 --enable-profiling enable profiling of GDB
1511 --disable-rpath do not hardcode runtime library paths
1512 --enable-libmcheck Try linking with -lmcheck if available
1513 --enable-werror treat compile warnings as errors
1514 --enable-build-warnings enable build-time compiler warnings if gcc is used
1515 --enable-gdb-build-warnings
1516 enable GDB specific build-time compiler warnings if
1518 --enable-sim link gdb with simulator
1519 --enable-multi-ice build the multi-ice-gdb-server
1520 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-separate-debug-dir=PATH
1527 look for global separate debug info in this path
1529 --with-gdb-datadir=PATH look for global separate data files in this path
1531 --with-relocated-sources=PATH
1532 automatically relocate this path for source files
1533 --with-auto-load-dir=PATH
1534 directories from which to load auto-loaded scripts
1535 [$debugdir:$datadir/auto-load]
1536 --with-auto-load-safe-path=PATH
1537 directories safe to hold auto-loaded files
1538 [--with-auto-load-dir]
1539 --without-auto-load-safe-path
1540 do not restrict auto-loaded files locations
1541 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1542 --with-curses use the curses library instead of the termcap
1544 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1545 --with-bugurl=URL Direct users to URL to report a bug
1546 --with-system-zlib use installed libz
1547 --with-gnu-ld assume the C compiler uses GNU ld default=no
1548 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1549 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1550 --with-iconv-bin=PATH specify where to find the iconv program
1551 --with-system-readline use installed readline library
1552 --with-jit-reader-dir=PATH
1553 directory to load the JIT readers from
1554 --with-expat include expat support (auto/yes/no)
1555 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1556 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1557 --with-python[=PYTHON] include python support
1558 (auto/yes/no/<python-program>)
1559 --with-guile[=GUILE] include guile support
1560 (auto/yes/no/<guile-version>/<pkg-config-program>)
1561 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1562 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1563 --without-libipt-prefix don't search for libipt in includedir and libdir
1564 --without-included-regex
1565 don't use included regex; this is the default on
1566 systems with version 2 of the GNU C library (use
1567 with caution on other system)
1568 --with-sysroot[=DIR] search for usr/lib et al within DIR
1569 --with-system-gdbinit=PATH
1570 automatically load a system-wide gdbinit file
1571 --with-lzma support lzma compression (auto/yes/no)
1572 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1573 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1574 --with-tcl directory containing tcl configuration (tclConfig.sh)
1575 --with-tk directory containing tk configuration (tkConfig.sh)
1576 --with-x use the X Window System
1577 --with-babeltrace include babeltrace support (auto/yes/no)
1578 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1579 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 LIBS libraries to pass to the linker, e.g. -l<library>
1587 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1592 MAKEINFO Parent configure detects if it is of sufficient version.
1594 Parameters for MAKEINFO.
1595 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1596 the first program found out of: `bison -y', `byacc', `yacc'.
1597 YFLAGS The list of arguments that will be passed by default to $YACC.
1598 This script will default YFLAGS to the empty string to avoid a
1599 default value of `-d' given by some make applications.
1600 XMKMF Path to xmkmf, Makefile generator for X Window System
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to the package provider.
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1635 .) # We are building in place.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1669 generated by GNU Autoconf 2.64
1671 Copyright (C) 2009 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1678 ## ------------------------ ##
1679 ## Autoconf initialization. ##
1680 ## ------------------------ ##
1682 # ac_fn_c_try_compile LINENO
1683 # --------------------------
1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_compile ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext
1689 if { { ac_try="$ac_compile"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_compile") 2>conftest.err
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest.$ac_objext; then :
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 } # ac_fn_c_try_compile
1720 # ac_fn_cxx_try_compile LINENO
1721 # ----------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_cxx_try_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_cxx_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 } # ac_fn_cxx_try_compile
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } >/dev/null && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798 # the include files in INCLUDES and setting the cache variable VAR
1800 ac_fn_c_check_header_mongrel ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 $as_echo_n "(cached) " >&6
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1813 # Is the header compilable?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815 $as_echo_n "checking $2 usability... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822 ac_header_compiler=yes
1824 ac_header_compiler=no
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828 $as_echo "$ac_header_compiler" >&6; }
1830 # Is the header present?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832 $as_echo_n "checking $2 presence... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1837 if ac_fn_c_try_cpp "$LINENO"; then :
1838 ac_header_preproc=yes
1840 ac_header_preproc=no
1842 rm -f conftest.err conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844 $as_echo "$ac_header_preproc" >&6; }
1846 # So? What about this header?
1847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1858 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1862 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870 $as_echo_n "(cached) " >&6
1872 eval "$3=\$ac_header_compiler"
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 } # ac_fn_c_check_header_mongrel
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=$ac_status
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists and can be compiled using the include files in
1927 # INCLUDES, setting the cache variable VAR accordingly.
1928 ac_fn_c_check_header_compile ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1941 if ac_fn_c_try_compile "$LINENO"; then :
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_check_header_compile
1955 # ac_fn_c_try_link LINENO
1956 # -----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_c_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 $as_test_x conftest$ac_exeext
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 } # ac_fn_c_try_link
2001 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2002 # --------------------------------------------
2003 # Tries to find the compile-time value of EXPR in a program that includes
2004 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2006 ac_fn_c_compute_int ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if test "$cross_compiling" = yes; then
2010 # Depending upon the size, compute the lo and hi bounds.
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2017 static int test_array [1 - 2 * !(($2) >= 0)];
2024 if ac_fn_c_try_compile "$LINENO"; then :
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 ac_hi=$ac_mid; break
2043 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2044 if test $ac_lo -le $ac_mid; then
2048 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) < 0)];
2066 if ac_fn_c_try_compile "$LINENO"; then :
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2075 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 ac_lo=$ac_mid; break
2085 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2086 if test $ac_mid -le $ac_hi; then
2090 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 # Binary search between lo and hi bounds.
2101 while test "x$ac_lo" != "x$ac_hi"; do
2102 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116 if ac_fn_c_try_compile "$LINENO"; then :
2119 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2131 static long int longval () { return $2; }
2132 static unsigned long int ulongval () { return $2; }
2139 FILE *f = fopen ("conftest.val", "w");
2144 long int i = longval ();
2147 fprintf (f, "%ld", i);
2151 unsigned long int i = ulongval ();
2154 fprintf (f, "%lu", i);
2156 /* Do not output a trailing newline, as this causes \r\n confusion
2157 on some platforms. */
2158 return ferror (f) || fclose (f) != 0;
2164 if ac_fn_c_try_run "$LINENO"; then :
2165 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2170 conftest.$ac_objext conftest.beam conftest.$ac_ext
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2177 } # ac_fn_c_compute_int
2179 # ac_fn_c_check_func LINENO FUNC VAR
2180 # ----------------------------------
2181 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2182 ac_fn_c_check_func ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2194 #define $2 innocuous_$2
2196 /* System header to define __stub macros and hopefully few prototypes,
2197 which can conflict with char $2 (); below.
2198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2199 <limits.h> exists even on freestanding compilers. */
2202 # include <limits.h>
2204 # include <assert.h>
2209 /* Override any GCC internal prototype to avoid an error.
2210 Use char because int might match the return type of a GCC
2211 builtin and then its argument prototype would still apply. */
2216 /* The GNU C library defines this for functions which it implements
2217 to always fail with ENOSYS. Some functions are actually named
2218 something starting with __ and the normal name is an alias. */
2219 #if defined __stub_$2 || defined __stub___$2
2231 if ac_fn_c_try_link "$LINENO"; then :
2236 rm -f core conftest.err conftest.$ac_objext \
2237 conftest$ac_exeext conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 } # ac_fn_c_check_func
2246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247 # -------------------------------------------
2248 # Tests whether TYPE exists after having included INCLUDES, setting cache
2249 # variable VAR accordingly.
2250 ac_fn_c_check_type ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256 $as_echo_n "(cached) " >&6
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2284 if ac_fn_c_try_compile "$LINENO"; then :
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2298 } # ac_fn_c_check_type
2300 # ac_fn_c_check_decl LINENO SYMBOL VAR
2301 # ------------------------------------
2302 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2303 ac_fn_c_check_decl ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 as_decl_name=`echo $2|sed 's/ *(.*//'`
2307 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2309 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2310 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2311 $as_echo_n "(cached) " >&6
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2319 #ifndef $as_decl_name
2321 (void) $as_decl_use;
2323 (void) $as_decl_name;
2331 if ac_fn_c_try_compile "$LINENO"; then :
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343 } # ac_fn_c_check_decl
2345 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2346 # ----------------------------------------------------
2347 # Tries to find if the field MEMBER exists in type AGGR, after including
2348 # INCLUDES, setting cache variable VAR accordingly.
2349 ac_fn_c_check_member ()
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2353 $as_echo_n "checking for $2.$3... " >&6; }
2354 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2355 $as_echo_n "(cached) " >&6
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2370 if ac_fn_c_try_compile "$LINENO"; then :
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2380 if (sizeof ac_aggr.$3)
2386 if ac_fn_c_try_compile "$LINENO"; then :
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 } # ac_fn_c_check_member
2401 cat >config.log <<_ACEOF
2402 This file contains any messages produced by compilers while
2403 running configure, to aid debugging if configure makes a mistake.
2405 It was created by $as_me, which was
2406 generated by GNU Autoconf 2.64. Invocation command line was
2418 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2419 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2420 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2421 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2422 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2424 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2425 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2427 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2428 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2429 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2430 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2431 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2432 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2433 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 $as_echo "PATH: $as_dir"
2458 # Keep a trace of the command line.
2459 # Strip out --no-create and --no-recursion so they do not pile up.
2460 # Strip out --silent because we don't want to record it for future runs.
2461 # Also quote any args containing shell meta-characters.
2462 # Make two passes to allow for proper duplicate-argument suppression.
2466 ac_must_keep_next=false
2472 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2473 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2474 | -silent | --silent | --silen | --sile | --sil)
2477 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2480 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2482 as_fn_append ac_configure_args1 " '$ac_arg'"
2483 if test $ac_must_keep_next = true; then
2484 ac_must_keep_next=false # Got value, back to normal.
2487 *=* | --config-cache | -C | -disable-* | --disable-* \
2488 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2489 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2490 | -with-* | --with-* | -without-* | --without-* | --x)
2491 case "$ac_configure_args0 " in
2492 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2495 -* ) ac_must_keep_next=true ;;
2498 as_fn_append ac_configure_args " '$ac_arg'"
2503 { ac_configure_args0=; unset ac_configure_args0;}
2504 { ac_configure_args1=; unset ac_configure_args1;}
2506 # When interrupted or exit'd, cleanup temporary files, and complete
2507 # config.log. We remove comments because anyway the quotes in there
2508 # would cause problems or look ugly.
2509 # WARNING: Use '\'' to represent an apostrophe within the trap.
2510 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2511 trap 'exit_status=$?
2512 # Save into config.log some information that might help in debugging.
2517 ## ---------------- ##
2518 ## Cache variables. ##
2519 ## ---------------- ##
2522 # The following way of writing the cache mishandles newlines in values,
2524 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2525 eval ac_val=\$$ac_var
2529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2533 _ | IFS | as_nl) ;; #(
2534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2535 *) { eval $ac_var=; unset $ac_var;} ;;
2540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2541 *${as_nl}ac_space=\ *)
2543 "s/'\''/'\''\\\\'\'''\''/g;
2544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2555 ## ----------------- ##
2556 ## Output variables. ##
2557 ## ----------------- ##
2560 for ac_var in $ac_subst_vars
2562 eval ac_val=\$$ac_var
2564 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2566 $as_echo "$ac_var='\''$ac_val'\''"
2570 if test -n "$ac_subst_files"; then
2572 ## ------------------- ##
2573 ## File substitutions. ##
2574 ## ------------------- ##
2577 for ac_var in $ac_subst_files
2579 eval ac_val=\$$ac_var
2581 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2583 $as_echo "$ac_var='\''$ac_val'\''"
2588 if test -s confdefs.h; then
2598 test "$ac_signal" != 0 &&
2599 $as_echo "$as_me: caught signal $ac_signal"
2600 $as_echo "$as_me: exit $exit_status"
2602 rm -f core *.core core.conftest.* &&
2603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2606 for ac_signal in 1 2 13 15; do
2607 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2612 rm -f -r conftest* confdefs.h
2614 $as_echo "/* confdefs.h */" > confdefs.h
2616 # Predefined preprocessor variables.
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_NAME "$PACKAGE_NAME"
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_STRING "$PACKAGE_STRING"
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_URL "$PACKAGE_URL"
2643 # Let the site file select an alternate cache file if it wants to.
2644 # Prefer an explicitly selected file to automatically selected ones.
2647 if test -n "$CONFIG_SITE"; then
2648 ac_site_file1=$CONFIG_SITE
2649 elif test "x$prefix" != xNONE; then
2650 ac_site_file1=$prefix/share/config.site
2651 ac_site_file2=$prefix/etc/config.site
2653 ac_site_file1=$ac_default_prefix/share/config.site
2654 ac_site_file2=$ac_default_prefix/etc/config.site
2656 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2658 test "x$ac_site_file" = xNONE && continue
2659 if test -r "$ac_site_file"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2661 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2662 sed 's/^/| /' "$ac_site_file" >&5
2667 if test -r "$cache_file"; then
2668 # Some versions of bash will fail to source /dev/null (special
2669 # files actually), so we avoid doing that.
2670 if test -f "$cache_file"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2672 $as_echo "$as_me: loading cache $cache_file" >&6;}
2674 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2675 *) . "./$cache_file";;
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2680 $as_echo "$as_me: creating cache $cache_file" >&6;}
2684 # Check that the precious variables saved in the cache have kept the same
2686 ac_cache_corrupted=false
2687 for ac_var in $ac_precious_vars; do
2688 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2689 eval ac_new_set=\$ac_env_${ac_var}_set
2690 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2691 eval ac_new_val=\$ac_env_${ac_var}_value
2692 case $ac_old_set,$ac_new_set in
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2695 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2696 ac_cache_corrupted=: ;;
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2699 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2700 ac_cache_corrupted=: ;;
2703 if test "x$ac_old_val" != "x$ac_new_val"; then
2704 # differences in whitespace do not lead to failure.
2705 ac_old_val_w=`echo x $ac_old_val`
2706 ac_new_val_w=`echo x $ac_new_val`
2707 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2709 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2710 ac_cache_corrupted=:
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2713 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2714 eval $ac_var=\$ac_old_val
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2717 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2719 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2722 # Pass precious variables to config.status.
2723 if test "$ac_new_set" = set; then
2725 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2726 *) ac_arg=$ac_var=$ac_new_val ;;
2728 case " $ac_configure_args " in
2729 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2730 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2734 if $ac_cache_corrupted; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2738 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2739 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2741 ## -------------------- ##
2742 ## Main body of script. ##
2743 ## -------------------- ##
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 ac_config_headers="$ac_config_headers config.h:config.in"
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2759 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2760 # Check whether --enable-maintainer-mode was given.
2761 if test "${enable_maintainer_mode+set}" = set; then :
2762 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2764 USE_MAINTAINER_MODE=no
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2768 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2769 if test $USE_MAINTAINER_MODE = yes; then
2770 MAINTAINER_MODE_TRUE=
2771 MAINTAINER_MODE_FALSE='#'
2773 MAINTAINER_MODE_TRUE='#'
2774 MAINTAINER_MODE_FALSE=
2777 MAINT=$MAINTAINER_MODE_TRUE
2781 # Set the 'development' global.
2782 . $srcdir/../bfd/development.sh
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 if test -n "$ac_tool_prefix"; then
2790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if test "${ac_cv_prog_CC+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 if test -n "$CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820 $as_echo "$CC" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2828 if test -z "$ac_cv_prog_CC"; then
2830 # Extract the first word of "gcc", so it can be a program name with args.
2831 set dummy gcc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2837 if test -n "$ac_ct_CC"; then
2838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CC="gcc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2858 if test -n "$ac_ct_CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2860 $as_echo "$ac_ct_CC" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2866 if test "x$ac_ct_CC" = x; then
2869 case $cross_compiling:$ac_tool_warned in
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873 ac_tool_warned=yes ;;
2881 if test -z "$CC"; then
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if test "${ac_cv_prog_CC+set}" = set; then :
2888 $as_echo_n "(cached) " >&6
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_CC="${ac_tool_prefix}cc"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test -n "$CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913 $as_echo "$CC" >&6; }
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2922 if test -z "$CC"; then
2923 # Extract the first word of "cc", so it can be a program name with args.
2924 set dummy cc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if test "${ac_cv_prog_CC+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2942 ac_prog_rejected=yes
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 if test $ac_prog_rejected = yes; then
2954 # We found a bogon in the path, so make sure we never use it.
2955 set dummy $ac_cv_prog_CC
2957 if test $# != 0; then
2958 # We chose a different compiler from the bogus one.
2959 # However, it has the same basename, so the bogon will be chosen
2960 # first if we set CC to just the basename; use the full file name.
2962 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2968 if test -n "$CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 for ac_prog in cl.exe
2982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if test "${ac_cv_prog_CC+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3019 test -n "$CC" && break
3022 if test -z "$CC"; then
3024 for ac_prog in cl.exe
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$ac_ct_CC"; then
3034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043 ac_cv_prog_ac_ct_CC="$ac_prog"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054 if test -n "$ac_ct_CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056 $as_echo "$ac_ct_CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3063 test -n "$ac_ct_CC" && break
3066 if test "x$ac_ct_CC" = x; then
3069 case $cross_compiling:$ac_tool_warned in
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073 ac_tool_warned=yes ;;
3082 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 as_fn_error "no acceptable C compiler found in \$PATH
3085 See \`config.log' for more details." "$LINENO" 5; }
3087 # Provide some information about the compiler.
3088 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3091 for ac_option in --version -v -V -qversion; do
3092 { { ac_try="$ac_compiler $ac_option >&5"
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3101 if test -s conftest.err; then
3103 ... rest of stderr output deleted ...
3104 10q' conftest.err >conftest.er1
3105 cat conftest.er1 >&5
3106 rm -f conftest.er1 conftest.err
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3123 ac_clean_files_save=$ac_clean_files
3124 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3125 # Try to create an executable without -o first, disregard a.out.
3126 # It will help us diagnose broken compilers, and finding out an intuition
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3129 $as_echo_n "checking for C compiler default output file name... " >&6; }
3130 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3132 # The possible output files:
3133 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3136 for ac_file in $ac_files
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3140 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3145 if { { ac_try="$ac_link_default"
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151 $as_echo "$ac_try_echo"; } >&5
3152 (eval "$ac_link_default") 2>&5
3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155 test $ac_status = 0; }; then :
3156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3158 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3159 # so that the user can short-circuit this test for compilers unknown to
3161 for ac_file in $ac_files ''
3163 test -f "$ac_file" || continue
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3168 # We found the default executable, but exeext='' is most
3172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176 # We set ac_cv_exeext here because the later test for it is not
3177 # safe: cross compilers may not add the suffix if given an `-o'
3178 # argument, so we may need to know it at that point already.
3179 # Even if this section looks crufty: it has the advantage of
3186 test "$ac_cv_exeext" = no && ac_cv_exeext=
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3192 $as_echo "$ac_file" >&6; }
3193 if test -z "$ac_file"; then :
3194 $as_echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 { as_fn_set_status 77
3200 as_fn_error "C compiler cannot create executables
3201 See \`config.log' for more details." "$LINENO" 5; }; }
3203 ac_exeext=$ac_cv_exeext
3205 # Check that the compiler produces executables we can run. If not, either
3206 # the compiler is broken, or we cross compile.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 # If not cross compiling, check that we can run a simple program.
3210 if test "$cross_compiling" != yes; then
3211 if { ac_try='./$ac_file'
3212 { { case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_try") 2>&5
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; }; then
3224 if test "$cross_compiling" = maybe; then
3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 as_fn_error "cannot run C compiled programs.
3230 If you meant to cross compile, use \`--host'.
3231 See \`config.log' for more details." "$LINENO" 5; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236 $as_echo "yes" >&6; }
3238 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3239 ac_clean_files=$ac_clean_files_save
3240 # Check that the compiler produces executables we can run. If not, either
3241 # the compiler is broken, or we cross compile.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3243 $as_echo_n "checking whether we are cross compiling... " >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3245 $as_echo "$cross_compiling" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3248 $as_echo_n "checking for suffix of executables... " >&6; }
3249 if { { ac_try="$ac_link"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_link") 2>&5
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; then :
3260 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3261 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3262 # work properly (i.e., refer to `conftest.exe'), while it won't with
3264 for ac_file in conftest.exe conftest conftest.*; do
3265 test -f "$ac_file" || continue
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3268 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error "cannot compute suffix of executables: cannot compile and link
3277 See \`config.log' for more details." "$LINENO" 5; }
3279 rm -f conftest$ac_cv_exeext
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3281 $as_echo "$ac_cv_exeext" >&6; }
3283 rm -f conftest.$ac_ext
3284 EXEEXT=$ac_cv_exeext
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3287 $as_echo_n "checking for suffix of object files... " >&6; }
3288 if test "${ac_cv_objext+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3302 rm -f conftest.o conftest.obj
3303 if { { ac_try="$ac_compile"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_compile") 2>&5
3312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313 test $ac_status = 0; }; then :
3314 for ac_file in conftest.o conftest.obj conftest.*; do
3315 test -f "$ac_file" || continue;
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3323 $as_echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error "cannot compute suffix of object files: cannot compile
3329 See \`config.log' for more details." "$LINENO" 5; }
3331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3334 $as_echo "$ac_cv_objext" >&6; }
3335 OBJEXT=$ac_cv_objext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3338 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3339 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3356 if ac_fn_c_try_compile "$LINENO"; then :
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3366 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3367 if test $ac_compiler_gnu = yes; then
3372 ac_test_CFLAGS=${CFLAGS+set}
3373 ac_save_CFLAGS=$CFLAGS
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3375 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3376 if test "${ac_cv_prog_cc_g+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
3379 ac_save_c_werror_flag=$ac_c_werror_flag
3380 ac_c_werror_flag=yes
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3394 if ac_fn_c_try_compile "$LINENO"; then :
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3409 if ac_fn_c_try_compile "$LINENO"; then :
3412 ac_c_werror_flag=$ac_save_c_werror_flag
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3425 if ac_fn_c_try_compile "$LINENO"; then :
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3436 $as_echo "$ac_cv_prog_cc_g" >&6; }
3437 if test "$ac_test_CFLAGS" = set; then
3438 CFLAGS=$ac_save_CFLAGS
3439 elif test $ac_cv_prog_cc_g = yes; then
3440 if test "$GCC" = yes; then
3446 if test "$GCC" = yes; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3453 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3454 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3457 ac_cv_prog_cc_c89=no
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3463 #include <sys/types.h>
3464 #include <sys/stat.h>
3465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3466 struct buf { int x; };
3467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3468 static char *e (p, i)
3474 static char *f (char * (*g) (char **, int), char **p, ...)
3479 s = g (p, va_arg (v,int));
3484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3485 function prototypes and stuff, but not '\xHH' hex character constants.
3486 These don't provoke an error unfortunately, instead are silently treated
3487 as 'x'. The following induces an error, until -std is added to get
3488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3489 array size at least. It's necessary to write '\x00'==0 to get something
3490 that's true only with -std. */
3491 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3493 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3494 inside strings and character constants. */
3496 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3498 int test (int i, double x);
3499 struct s1 {int (*f) (int a);};
3500 struct s2 {int (*f) (double a);};
3501 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3507 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3512 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3513 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3515 CC="$ac_save_CC $ac_arg"
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_cv_prog_cc_c89=$ac_arg
3519 rm -f core conftest.err conftest.$ac_objext
3520 test "x$ac_cv_prog_cc_c89" != "xno" && break
3522 rm -f conftest.$ac_ext
3527 case "x$ac_cv_prog_cc_c89" in
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3530 $as_echo "none needed" >&6; } ;;
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3533 $as_echo "unsupported" >&6; } ;;
3535 CC="$CC $ac_cv_prog_cc_c89"
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3537 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3539 if test "x$ac_cv_prog_cc_c89" != xno; then :
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 ac_cpp='$CXXCPP $CPPFLAGS'
3551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3554 if test -z "$CXX"; then
3555 if test -n "$CCC"; then
3558 if test -n "$ac_tool_prefix"; then
3559 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if test "${ac_cv_prog_CXX+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$CXX"; then
3569 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 if test -n "$CXX"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3591 $as_echo "$CXX" >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3598 test -n "$CXX" && break
3601 if test -z "$CXX"; then
3603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy $ac_prog; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3612 if test -n "$ac_ct_CXX"; then
3613 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_ac_ct_CXX="$ac_prog"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3633 if test -n "$ac_ct_CXX"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3635 $as_echo "$ac_ct_CXX" >&6; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3642 test -n "$ac_ct_CXX" && break
3645 if test "x$ac_ct_CXX" = x; then
3648 case $cross_compiling:$ac_tool_warned in
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3652 ac_tool_warned=yes ;;
3660 # Provide some information about the compiler.
3661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3664 for ac_option in --version -v -V -qversion; do
3665 { { ac_try="$ac_compiler $ac_option >&5"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3674 if test -s conftest.err; then
3676 ... rest of stderr output deleted ...
3677 10q' conftest.err >conftest.er1
3678 cat conftest.er1 >&5
3679 rm -f conftest.er1 conftest.err
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3686 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3687 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3688 $as_echo_n "(cached) " >&6
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3704 if ac_fn_cxx_try_compile "$LINENO"; then :
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3714 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3715 if test $ac_compiler_gnu = yes; then
3720 ac_test_CXXFLAGS=${CXXFLAGS+set}
3721 ac_save_CXXFLAGS=$CXXFLAGS
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3723 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3724 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3727 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3728 ac_cxx_werror_flag=yes
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3742 if ac_fn_cxx_try_compile "$LINENO"; then :
3743 ac_cv_prog_cxx_g=yes
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3757 if ac_fn_cxx_try_compile "$LINENO"; then :
3760 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3773 if ac_fn_cxx_try_compile "$LINENO"; then :
3774 ac_cv_prog_cxx_g=yes
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3784 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3785 if test "$ac_test_CXXFLAGS" = set; then
3786 CXXFLAGS=$ac_save_CXXFLAGS
3787 elif test $ac_cv_prog_cxx_g = yes; then
3788 if test "$GXX" = yes; then
3794 if test "$GXX" = yes; then
3801 ac_cpp='$CPP $CPPFLAGS'
3802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3815 # On Suns, sometimes $CPP names a directory.
3816 if test -n "$CPP" && test -d "$CPP"; then
3819 if test -z "$CPP"; then
3820 if test "${ac_cv_prog_CPP+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3823 # Double quotes because CPP needs to be expanded
3824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3827 for ac_c_preproc_warn_flag in '' yes
3829 # Use a header file that comes with gcc, so configuring glibc
3830 # with a fresh cross-compiler works.
3831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3832 # <limits.h> exists even on freestanding compilers.
3833 # On the NeXT, cc -E runs the code through the compiler's parser,
3834 # not just through cpp. "Syntax error" is here to catch this case.
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3838 # include <limits.h>
3840 # include <assert.h>
3844 if ac_fn_c_try_cpp "$LINENO"; then :
3847 # Broken: fails on valid input.
3850 rm -f conftest.err conftest.$ac_ext
3852 # OK, works on sane cases. Now check whether nonexistent headers
3853 # can be detected and how.
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <ac_nonexistent.h>
3858 if ac_fn_c_try_cpp "$LINENO"; then :
3859 # Broken: success on invalid input.
3862 # Passes both tests.
3866 rm -f conftest.err conftest.$ac_ext
3869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3870 rm -f conftest.err conftest.$ac_ext
3871 if $ac_preproc_ok; then :
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3884 $as_echo "$CPP" >&6; }
3886 for ac_c_preproc_warn_flag in '' yes
3888 # Use a header file that comes with gcc, so configuring glibc
3889 # with a fresh cross-compiler works.
3890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3891 # <limits.h> exists even on freestanding compilers.
3892 # On the NeXT, cc -E runs the code through the compiler's parser,
3893 # not just through cpp. "Syntax error" is here to catch this case.
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3897 # include <limits.h>
3899 # include <assert.h>
3903 if ac_fn_c_try_cpp "$LINENO"; then :
3906 # Broken: fails on valid input.
3909 rm -f conftest.err conftest.$ac_ext
3911 # OK, works on sane cases. Now check whether nonexistent headers
3912 # can be detected and how.
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #include <ac_nonexistent.h>
3917 if ac_fn_c_try_cpp "$LINENO"; then :
3918 # Broken: success on invalid input.
3921 # Passes both tests.
3925 rm -f conftest.err conftest.$ac_ext
3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3929 rm -f conftest.err conftest.$ac_ext
3930 if $ac_preproc_ok; then :
3933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3936 See \`config.log' for more details." "$LINENO" 5; }
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3947 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3948 if test "${ac_cv_path_GREP+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3951 if test -z "$GREP"; then
3952 ac_path_GREP_found=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3958 test -z "$as_dir" && as_dir=.
3959 for ac_prog in grep ggrep; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3963 # Check for GNU ac_path_GREP and select it if it is found.
3964 # Check for GNU $ac_path_GREP
3965 case `"$ac_path_GREP" --version 2>&1` in
3967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3970 $as_echo_n 0123456789 >"conftest.in"
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 $as_echo 'GREP' >> "conftest.nl"
3977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979 as_fn_arith $ac_count + 1 && ac_count=$as_val
3980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_GREP="$ac_path_GREP"
3983 ac_path_GREP_max=$ac_count
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3991 $ac_path_GREP_found && break 3
3996 if test -z "$ac_cv_path_GREP"; then
3997 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4000 ac_cv_path_GREP=$GREP
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4005 $as_echo "$ac_cv_path_GREP" >&6; }
4006 GREP="$ac_cv_path_GREP"
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4010 $as_echo_n "checking for egrep... " >&6; }
4011 if test "${ac_cv_path_EGREP+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4014 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4015 then ac_cv_path_EGREP="$GREP -E"
4017 if test -z "$EGREP"; then
4018 ac_path_EGREP_found=false
4019 # Loop through the user's path and test for each of PROGNAME-LIST
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024 test -z "$as_dir" && as_dir=.
4025 for ac_prog in egrep; do
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4028 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4029 # Check for GNU ac_path_EGREP and select it if it is found.
4030 # Check for GNU $ac_path_EGREP
4031 case `"$ac_path_EGREP" --version 2>&1` in
4033 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4036 $as_echo_n 0123456789 >"conftest.in"
4039 cat "conftest.in" "conftest.in" >"conftest.tmp"
4040 mv "conftest.tmp" "conftest.in"
4041 cp "conftest.in" "conftest.nl"
4042 $as_echo 'EGREP' >> "conftest.nl"
4043 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045 as_fn_arith $ac_count + 1 && ac_count=$as_val
4046 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4047 # Best one so far, save it but keep looking for a better one
4048 ac_cv_path_EGREP="$ac_path_EGREP"
4049 ac_path_EGREP_max=$ac_count
4051 # 10*(2^10) chars as input seems more than enough
4052 test $ac_count -gt 10 && break
4054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057 $ac_path_EGREP_found && break 3
4062 if test -z "$ac_cv_path_EGREP"; then
4063 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4066 ac_cv_path_EGREP=$EGREP
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4072 $as_echo "$ac_cv_path_EGREP" >&6; }
4073 EGREP="$ac_cv_path_EGREP"
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4077 $as_echo_n "checking for ANSI C header files... " >&6; }
4078 if test "${ac_cv_header_stdc+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4096 if ac_fn_c_try_compile "$LINENO"; then :
4097 ac_cv_header_stdc=yes
4099 ac_cv_header_stdc=no
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 if test $ac_cv_header_stdc = yes; then
4104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4111 $EGREP "memchr" >/dev/null 2>&1; then :
4114 ac_cv_header_stdc=no
4120 if test $ac_cv_header_stdc = yes; then
4121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4128 $EGREP "free" >/dev/null 2>&1; then :
4131 ac_cv_header_stdc=no
4137 if test $ac_cv_header_stdc = yes; then
4138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4139 if test "$cross_compiling" = yes; then :
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4146 #if ((' ' & 0x0FF) == 0x020)
4147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4150 # define ISLOWER(c) \
4151 (('a' <= (c) && (c) <= 'i') \
4152 || ('j' <= (c) && (c) <= 'r') \
4153 || ('s' <= (c) && (c) <= 'z'))
4154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4162 for (i = 0; i < 256; i++)
4163 if (XOR (islower (i), ISLOWER (i))
4164 || toupper (i) != TOUPPER (i))
4169 if ac_fn_c_try_run "$LINENO"; then :
4172 ac_cv_header_stdc=no
4174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4175 conftest.$ac_objext conftest.beam conftest.$ac_ext
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4181 $as_echo "$ac_cv_header_stdc" >&6; }
4182 if test $ac_cv_header_stdc = yes; then
4184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4189 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4190 inttypes.h stdint.h unistd.h
4192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4193 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4195 eval as_val=\$$as_ac_Header
4196 if test "x$as_val" = x""yes; then :
4197 cat >>confdefs.h <<_ACEOF
4198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4207 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4208 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4215 if test "$MINIX" = yes; then
4217 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4220 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4223 $as_echo "#define _MINIX 1" >>confdefs.h
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4229 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4230 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4236 # define __EXTENSIONS__ 1
4237 $ac_includes_default
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247 ac_cv_safe_to_define___extensions__=yes
4249 ac_cv_safe_to_define___extensions__=no
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4254 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4255 test $ac_cv_safe_to_define___extensions__ = yes &&
4256 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4258 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4260 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4262 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4264 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4268 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4269 for ac_t in install-sh install.sh shtool; do
4270 if test -f "$ac_dir/$ac_t"; then
4272 ac_install_sh="$ac_aux_dir/$ac_t -c"
4277 if test -z "$ac_aux_dir"; then
4278 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4281 # These three variables are undocumented and unsupported,
4282 # and are intended to be withdrawn in a future Autoconf release.
4283 # They can cause serious problems if a builder's source tree is in a directory
4284 # whose full name contains unusual characters.
4285 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4286 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4287 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4290 # Make sure we can run config.sub.
4291 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4292 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4295 $as_echo_n "checking build system type... " >&6; }
4296 if test "${ac_cv_build+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4299 ac_build_alias=$build_alias
4300 test "x$ac_build_alias" = x &&
4301 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4302 test "x$ac_build_alias" = x &&
4303 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4304 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4305 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4309 $as_echo "$ac_cv_build" >&6; }
4310 case $ac_cv_build in
4312 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4315 ac_save_IFS=$IFS; IFS='-'
4321 # Remember, the first character of IFS is used to create $*,
4322 # except with old shells:
4325 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4329 $as_echo_n "checking host system type... " >&6; }
4330 if test "${ac_cv_host+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4333 if test "x$host_alias" = x; then
4334 ac_cv_host=$ac_cv_build
4336 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4337 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4342 $as_echo "$ac_cv_host" >&6; }
4345 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4348 ac_save_IFS=$IFS; IFS='-'
4354 # Remember, the first character of IFS is used to create $*,
4355 # except with old shells:
4358 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4362 $as_echo_n "checking target system type... " >&6; }
4363 if test "${ac_cv_target+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4366 if test "x$target_alias" = x; then
4367 ac_cv_target=$ac_cv_host
4369 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4370 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4375 $as_echo "$ac_cv_target" >&6; }
4376 case $ac_cv_target in
4378 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4380 target=$ac_cv_target
4381 ac_save_IFS=$IFS; IFS='-'
4387 # Remember, the first character of IFS is used to create $*,
4388 # except with old shells:
4391 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4394 # The aliases save the names the user supplied, while $host etc.
4395 # will get canonicalized.
4396 test -n "$target_alias" &&
4397 test "$program_prefix$program_suffix$program_transform_name" = \
4399 program_prefix=${target_alias}-
4401 # The tests for host and target for $enable_largefile require
4406 # As the $enable_largefile decision depends on --enable-plugins we must set it
4407 # even in directories otherwise not depending on the $plugins option.
4411 for ac_header in dlfcn.h
4413 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4415 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4416 cat >>confdefs.h <<_ACEOF
4417 #define HAVE_DLFCN_H 1
4424 for ac_header in windows.h
4426 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4428 if test "x$ac_cv_header_windows_h" = x""yes; then :
4429 cat >>confdefs.h <<_ACEOF
4430 #define HAVE_WINDOWS_H 1
4438 # Check whether --enable-plugins was given.
4439 if test "${enable_plugins+set}" = set; then :
4440 enableval=$enable_plugins; case "${enableval}" in
4443 if test "$maybe_plugins" != "yes" ; then
4444 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4448 plugins=$maybe_plugins
4452 if test "$plugins" = "yes"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4454 $as_echo_n "checking for library containing dlopen... " >&6; }
4455 if test "${ac_cv_search_dlopen+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4458 ac_func_search_save_LIBS=$LIBS
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4462 /* Override any GCC internal prototype to avoid an error.
4463 Use char because int might match the return type of a GCC
4464 builtin and then its argument prototype would still apply. */
4477 for ac_lib in '' dl; do
4478 if test -z "$ac_lib"; then
4479 ac_res="none required"
4482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4484 if ac_fn_c_try_link "$LINENO"; then :
4485 ac_cv_search_dlopen=$ac_res
4487 rm -f core conftest.err conftest.$ac_objext \
4489 if test "${ac_cv_search_dlopen+set}" = set; then :
4493 if test "${ac_cv_search_dlopen+set}" = set; then :
4496 ac_cv_search_dlopen=no
4499 LIBS=$ac_func_search_save_LIBS
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4502 $as_echo "$ac_cv_search_dlopen" >&6; }
4503 ac_res=$ac_cv_search_dlopen
4504 if test "$ac_res" != no; then :
4505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4513 sparc-*-solaris*|i[3-7]86-*-solaris*)
4514 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4515 # are mutually exclusive; and without procfs support, the bfd/ elf module
4516 # cannot provide certain routines such as elfcore_write_prpsinfo
4517 # or elfcore_write_prstatus. So unless the user explicitly requested
4518 # large-file support through the --enable-largefile switch, disable
4519 # large-file support in favor of procfs support.
4520 test "${target}" = "${host}" -a "x$plugins" = xno \
4521 && : ${enable_largefile="no"}
4525 # Check whether --enable-largefile was given.
4526 if test "${enable_largefile+set}" = set; then :
4527 enableval=$enable_largefile;
4530 if test "$enable_largefile" != no; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4533 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4534 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4537 ac_cv_sys_largefile_CC=no
4538 if test "$GCC" != yes; then
4541 # IRIX 6.2 and later do not support large files by default,
4542 # so use the C compiler's -n32 option if that helps.
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #include <sys/types.h>
4546 /* Check that off_t can represent 2**63 - 1 correctly.
4547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4548 since some C++ compilers masquerading as C compilers
4549 incorrectly reject 9223372036854775807. */
4550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4552 && LARGE_OFF_T % 2147483647 == 1)
4562 if ac_fn_c_try_compile "$LINENO"; then :
4565 rm -f core conftest.err conftest.$ac_objext
4567 if ac_fn_c_try_compile "$LINENO"; then :
4568 ac_cv_sys_largefile_CC=' -n32'; break
4570 rm -f core conftest.err conftest.$ac_objext
4574 rm -f conftest.$ac_ext
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4578 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4579 if test "$ac_cv_sys_largefile_CC" != no; then
4580 CC=$CC$ac_cv_sys_largefile_CC
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4584 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4585 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #include <sys/types.h>
4592 /* Check that off_t can represent 2**63 - 1 correctly.
4593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4594 since some C++ compilers masquerading as C compilers
4595 incorrectly reject 9223372036854775807. */
4596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4598 && LARGE_OFF_T % 2147483647 == 1)
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609 ac_cv_sys_file_offset_bits=no; break
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614 #define _FILE_OFFSET_BITS 64
4615 #include <sys/types.h>
4616 /* Check that off_t can represent 2**63 - 1 correctly.
4617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4618 since some C++ compilers masquerading as C compilers
4619 incorrectly reject 9223372036854775807. */
4620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4622 && LARGE_OFF_T % 2147483647 == 1)
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_sys_file_offset_bits=64; break
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 ac_cv_sys_file_offset_bits=unknown
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4641 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4642 case $ac_cv_sys_file_offset_bits in #(
4645 cat >>confdefs.h <<_ACEOF
4646 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4651 if test $ac_cv_sys_file_offset_bits = unknown; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4653 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4654 if test "${ac_cv_sys_large_files+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #include <sys/types.h>
4661 /* Check that off_t can represent 2**63 - 1 correctly.
4662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4663 since some C++ compilers masquerading as C compilers
4664 incorrectly reject 9223372036854775807. */
4665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4667 && LARGE_OFF_T % 2147483647 == 1)
4677 if ac_fn_c_try_compile "$LINENO"; then :
4678 ac_cv_sys_large_files=no; break
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 #define _LARGE_FILES 1
4684 #include <sys/types.h>
4685 /* Check that off_t can represent 2**63 - 1 correctly.
4686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4687 since some C++ compilers masquerading as C compilers
4688 incorrectly reject 9223372036854775807. */
4689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4691 && LARGE_OFF_T % 2147483647 == 1)
4701 if ac_fn_c_try_compile "$LINENO"; then :
4702 ac_cv_sys_large_files=1; break
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 ac_cv_sys_large_files=unknown
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4710 $as_echo "$ac_cv_sys_large_files" >&6; }
4711 case $ac_cv_sys_large_files in #(
4714 cat >>confdefs.h <<_ACEOF
4715 #define _LARGE_FILES $ac_cv_sys_large_files
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4728 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4729 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4732 am_cv_prog_cc_stdc=no
4734 # Don't try gcc -ansi; that turns off useful extensions and
4735 # breaks some systems' header files.
4736 # AIX -qlanglvl=ansi
4737 # Ultrix and OSF/1 -std1
4738 # HP-UX 10.20 and later -Ae
4739 # HP-UX older versions -Aa -D_HPUX_SOURCE
4740 # SVR4 -Xc -D__EXTENSIONS__
4741 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4743 CC="$ac_save_CC $ac_arg"
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4748 #include <sys/types.h>
4749 #include <sys/stat.h>
4750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4751 struct buf { int x; };
4752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4753 static char *e (p, i)
4759 static char *f (char * (*g) (char **, int), char **p, ...)
4764 s = g (p, va_arg (v,int));
4768 int test (int i, double x);
4769 struct s1 {int (*f) (int a);};
4770 struct s2 {int (*f) (double a);};
4771 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 am_cv_prog_cc_stdc="$ac_arg"; break
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 if test -z "$am_cv_prog_cc_stdc"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4796 $as_echo "none needed" >&6; }
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4799 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4801 case "x$am_cv_prog_cc_stdc" in
4803 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4806 # expand $ac_aux_dir to an absolute path
4807 am_aux_dir=`cd $ac_aux_dir && pwd`
4809 if test x"${install_sh}" != xset; then
4812 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4814 install_sh="\${SHELL} $am_aux_dir/install-sh"
4818 # Installed binaries are usually stripped using `strip' when the user
4819 # run `make install-strip'. However `strip' might not be the right
4820 # tool to use in cross-compilation environments, therefore Automake
4821 # will honor the `STRIP' environment variable to overrule this program.
4822 if test "$cross_compiling" != no; then
4823 if test -n "$ac_tool_prefix"; then
4824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4825 set dummy ${ac_tool_prefix}strip; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_STRIP+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4831 if test -n "$STRIP"; then
4832 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 STRIP=$ac_cv_prog_STRIP
4852 if test -n "$STRIP"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4854 $as_echo "$STRIP" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4862 if test -z "$ac_cv_prog_STRIP"; then
4864 # Extract the first word of "strip", so it can be a program name with args.
4865 set dummy strip; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4871 if test -n "$ac_ct_STRIP"; then
4872 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_STRIP="strip"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4892 if test -n "$ac_ct_STRIP"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4894 $as_echo "$ac_ct_STRIP" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4900 if test "x$ac_ct_STRIP" = x; then
4903 case $cross_compiling:$ac_tool_warned in
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4912 STRIP="$ac_cv_prog_STRIP"
4916 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4920 for ac_dir in .. "$srcdir"/..; do
4921 for ac_t in install-sh install.sh shtool; do
4922 if test -f "$ac_dir/$ac_t"; then
4924 ac_install_sh="$ac_aux_dir/$ac_t -c"
4929 if test -z "$ac_aux_dir"; then
4930 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4933 # These three variables are undocumented and unsupported,
4934 # and are intended to be withdrawn in a future Autoconf release.
4935 # They can cause serious problems if a builder's source tree is in a directory
4936 # whose full name contains unusual characters.
4937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4943 test "$program_prefix" != NONE &&
4944 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4945 # Use a double $ so make ignores it.
4946 test "$program_suffix" != NONE &&
4947 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4948 # Double any \ or $.
4949 # By default was `s,x,x', remove it if useless.
4950 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4951 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4954 # Dependency checking.
4955 rm -rf .tst 2>/dev/null
4956 mkdir .tst 2>/dev/null
4957 if test -d .tst; then
4962 rmdir .tst 2>/dev/null
4964 DEPDIR="${am__leading_dot}deps"
4966 ac_config_commands="$ac_config_commands depdir"
4969 depcc="$CC" am_compiler_list=
4971 am_depcomp=$ac_aux_dir/depcomp
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4973 $as_echo_n "checking dependency style of $depcc... " >&6; }
4974 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4977 if test -f "$am_depcomp"; then
4978 # We make a subdir and do the tests there. Otherwise we can end up
4979 # making bogus files that we don't know about and never remove. For
4980 # instance it was reported that on HP-UX the gcc test will end up
4981 # making a dummy file named `D' -- because `-MD' means `put the output
4984 # Copy depcomp to subdir because otherwise we won't find it if we're
4985 # using a relative directory.
4986 cp "$am_depcomp" conftest.dir
4988 # We will build objects and dependencies in a subdirectory because
4989 # it helps to detect inapplicable dependency modes. For instance
4990 # both Tru64's cc and ICC support -MD to output dependencies as a
4991 # side effect of compilation, but ICC will put the dependencies in
4992 # the current directory while Tru64 will put them in the object
4996 am_cv_CC_dependencies_compiler_type=none
4997 if test "$am_compiler_list" = ""; then
4998 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5000 for depmode in $am_compiler_list; do
5001 if test $depmode = none; then break; fi
5003 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5004 # Setup a source with many dependencies, because some compilers
5005 # like to wrap large dependency lists on column 80 (with \), and
5006 # we should not choose a depcomp mode which is confused by this.
5008 # We need to recreate these files for each test, as the compiler may
5009 # overwrite some of them when testing with obscure command lines.
5010 # This happens at least with the AIX C compiler.
5012 for i in 1 2 3 4 5 6; do
5013 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5014 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5015 # Solaris 8's {/usr,}/bin/sh.
5016 touch sub/conftst$i.h
5018 echo "include sub/conftest.Po" > confmf
5020 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5021 # mode. It turns out that the SunPro C++ compiler does not properly
5022 # handle `-M -o', and we need to detect this.
5023 depcmd="depmode=$depmode \
5024 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5025 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5026 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5027 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5028 if env $depcmd > conftest.err 2>&1 &&
5029 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5030 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5031 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5032 # icc doesn't choke on unknown options, it will just issue warnings
5033 # or remarks (even with -Werror). So we grep stderr for any message
5034 # that says an option was ignored or not supported.
5035 # When given -MP, icc 7.0 and 7.1 complain thusly:
5036 # icc: Command line warning: ignoring option '-M'; no argument required
5037 # The diagnosis changed in icc 8.0:
5038 # icc: Command line remark: option '-MP' not supported
5039 if (grep 'ignoring option' conftest.err ||
5040 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5041 am_cv_CC_dependencies_compiler_type=$depmode
5042 $as_echo "$as_me:$LINENO: success" >&5
5046 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5047 sed -e 's/^/| /' < conftest.err >&5
5053 am_cv_CC_dependencies_compiler_type=none
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5058 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5059 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
5060 then as_fn_error "no usable dependency style found" "$LINENO" 5
5061 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5066 # Check for the 'make' the user wants to use.
5069 # Extract the first word of "$ac_prog", so it can be a program name with args.
5070 set dummy $ac_prog; ac_word=$2
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if test "${ac_cv_prog_MAKE+set}" = set; then :
5074 $as_echo_n "(cached) " >&6
5076 if test -n "$MAKE"; then
5077 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_MAKE="$ac_prog"
5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 MAKE=$ac_cv_prog_MAKE
5097 if test -n "$MAKE"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5099 $as_echo "$MAKE" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5106 test -n "$MAKE" && break
5110 case "`$MAKE --version 2>&1 | sed 1q`" in
5115 if test "$MAKE_IS_GNU" = yes; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5124 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5126 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5127 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5128 $as_echo_n "(cached) " >&6
5130 cat >conftest.make <<\_ACEOF
5133 @echo '@@@%%%=$(MAKE)=@@@%%%'
5135 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5136 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5138 eval ac_cv_prog_make_${ac_make}_set=yes;;
5140 eval ac_cv_prog_make_${ac_make}_set=no;;
5144 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146 $as_echo "yes" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 SET_MAKE="MAKE=${MAKE-make}"
5155 gnulib_extra_configure_args=
5156 # If large-file support is disabled, make sure gnulib does the same.
5157 if test "$enable_largefile" = no; then
5158 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
5161 # Configure gnulib. We need to build gnulib under some other
5162 # directory not "gnulib", to avoid the problem of both GDB and
5163 # GDBserver wanting to build it in the same directory, when building
5164 # in the source dir.
5167 in_build="build-gnulib"
5168 in_extra_args="$gnulib_extra_configure_args"
5170 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5171 # so they do not pile up.
5172 ac_sub_configure_args=
5174 eval "set x $ac_configure_args"
5178 if test -n "$ac_prev"; then
5183 -cache-file | --cache-file | --cache-fil | --cache-fi \
5184 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5185 ac_prev=cache_file ;;
5186 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5187 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5190 --config-cache | -C)
5192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5200 --disable-option-checking)
5204 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5206 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5210 # Always prepend --prefix to ensure using the same prefix
5211 # in subdir configurations.
5212 ac_arg="--prefix=$prefix"
5214 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5216 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5219 if test "$silent" = yes; then
5220 ac_sub_configure_args="--silent $ac_sub_configure_args"
5223 # Always prepend --disable-option-checking to silence warnings, since
5224 # different subdirs can have different --enable and --with options.
5225 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5230 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5231 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5232 $as_echo "$ac_msg" >&6
5233 as_dir="$ac_dir"; as_fn_mkdir_p
5237 ac_srcdir=$srcdir/$in_src ;;
5239 ac_srcdir=../$srcdir/$in_src ;;
5244 ac_sub_configure=$ac_srcdir/configure
5246 # Make the cache file name correct relative to the subdirectory.
5248 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5250 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5253 if test -n "$in_extra_args"; then
5254 # Add the extra args at the end.
5255 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5258 { $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
5259 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5260 # The eval makes quoting arguments work.
5261 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5262 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5263 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5279 # If we haven't got the data from the intl directory,
5280 # assume NLS is disabled.
5289 if test -f ../intl/config.intl; then
5290 . ../intl/config.intl
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5293 $as_echo_n "checking whether NLS is requested... " >&6; }
5294 if test x"$USE_NLS" != xyes; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299 $as_echo "yes" >&6; }
5301 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5305 $as_echo_n "checking for catalogs to be installed... " >&6; }
5306 # Look for .po and .gmo files in the source directory.
5309 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5310 # If there aren't any .gmo files the shell will give us the
5311 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5313 case "$cat" in *\**)
5316 # The quadruple backslash is collapsed to a double backslash
5317 # by the backticks, then collapsed again by the double quotes,
5318 # leaving us with one backslash in the sed expression (right
5319 # before the dot that mustn't act as a wildcard).
5320 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5321 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5322 # The user is allowed to set LINGUAS to a list of languages to
5323 # install catalogs for. If it's empty that means "all of them."
5324 if test "x$LINGUAS" = x; then
5325 CATALOGS="$CATALOGS $cat"
5326 XLINGUAS="$XLINGUAS $lang"
5328 case "$LINGUAS" in *$lang*)
5329 CATALOGS="$CATALOGS $cat"
5330 XLINGUAS="$XLINGUAS $lang"
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5337 $as_echo "$LINGUAS" >&6; }
5350 localedir='${datadir}/locale'
5353 if test x"$USE_NLS" = xyes; then
5354 CONFIG_ALL="$CONFIG_ALL all-po"
5355 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5356 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5357 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5360 GNULIB=build-gnulib/import
5362 # For Makefile dependencies.
5364 if test x"$STDINT_H" != x; then
5365 GNULIB_STDINT_H=$GNULIB/$STDINT_H
5371 cat >>confdefs.h <<_ACEOF
5372 #define PACKAGE "$PACKAGE"
5377 # We never need to detect it in this sub-configure.
5378 # But preserve it for config.status --recheck.
5382 MAKEINFO_EXTRA_FLAGS=""
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5384 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5385 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5388 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5389 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5390 gdb_cv_have_makeinfo_click=yes
5392 gdb_cv_have_makeinfo_click=no
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5396 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5397 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
5398 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5404 # Check whether --with-separate-debug-dir was given.
5405 if test "${with_separate_debug_dir+set}" = set; then :
5406 withval=$with_separate_debug_dir;
5409 DEBUGDIR=${libdir}/debug
5413 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5414 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5415 ac_define_dir=`eval echo $DEBUGDIR`
5416 ac_define_dir=`eval echo $ac_define_dir`
5418 cat >>confdefs.h <<_ACEOF
5419 #define DEBUGDIR "$ac_define_dir"
5425 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5426 if test "x$prefix" = xNONE; then
5427 test_prefix=/usr/local
5432 test_prefix=$exec_prefix
5435 case ${ac_define_dir} in
5436 "${test_prefix}"|"${test_prefix}/"*|\
5437 '${exec_prefix}'|'${exec_prefix}/'*)
5442 cat >>confdefs.h <<_ACEOF
5443 #define DEBUGDIR_RELOCATABLE $value
5449 # We can't pass paths as command line arguments.
5450 # Mingw32 tries to be clever and will convert the paths for us.
5451 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5452 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5453 # This breaks GDB's relocatable path conversions since paths passed in
5454 # config.h would not get so translated, the path prefixes no longer match.
5456 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5458 ac_define_dir=`eval echo $bindir`
5459 ac_define_dir=`eval echo $ac_define_dir`
5461 cat >>confdefs.h <<_ACEOF
5462 #define BINDIR "$ac_define_dir"
5467 # GDB's datadir relocation
5471 # Check whether --with-gdb-datadir was given.
5472 if test "${with_gdb_datadir+set}" = set; then :
5473 withval=$with_gdb_datadir;
5474 GDB_DATADIR=$withval
5476 GDB_DATADIR=${datadir}/gdb
5480 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5482 ac_define_dir=`eval echo $GDB_DATADIR`
5483 ac_define_dir=`eval echo $ac_define_dir`
5485 cat >>confdefs.h <<_ACEOF
5486 #define GDB_DATADIR "$ac_define_dir"
5492 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5493 if test "x$prefix" = xNONE; then
5494 test_prefix=/usr/local
5499 test_prefix=$exec_prefix
5502 case ${ac_define_dir} in
5503 "${test_prefix}"|"${test_prefix}/"*|\
5504 '${exec_prefix}'|'${exec_prefix}/'*)
5509 cat >>confdefs.h <<_ACEOF
5510 #define GDB_DATADIR_RELOCATABLE $value
5517 # Check whether --with-relocated-sources was given.
5518 if test "${with_relocated_sources+set}" = set; then :
5519 withval=$with_relocated_sources; reloc_srcdir="${withval}"
5521 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5523 ac_define_dir=`eval echo $reloc_srcdir`
5524 ac_define_dir=`eval echo $ac_define_dir`
5526 cat >>confdefs.h <<_ACEOF
5527 #define RELOC_SRCDIR "$ac_define_dir"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5536 $as_echo_n "checking for default auto-load directory... " >&6; }
5538 # Check whether --with-auto-load-dir was given.
5539 if test "${with_auto_load_dir+set}" = set; then :
5540 withval=$with_auto_load_dir;
5542 with_auto_load_dir='$debugdir:$datadir/auto-load'
5545 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5547 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5549 ac_define_dir=`eval echo $escape_dir`
5550 ac_define_dir=`eval echo $ac_define_dir`
5552 cat >>confdefs.h <<_ACEOF
5553 #define AUTO_LOAD_DIR "$ac_define_dir"
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5558 $as_echo "$with_auto_load_dir" >&6; }
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5561 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5563 # Check whether --with-auto-load-safe-path was given.
5564 if test "${with_auto_load_safe_path+set}" = set; then :
5565 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5566 with_auto_load_safe_path="/"
5569 with_auto_load_safe_path="$with_auto_load_dir"
5572 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5574 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5575 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5576 ac_define_dir=`eval echo $escape_dir`
5577 ac_define_dir=`eval echo $ac_define_dir`
5579 cat >>confdefs.h <<_ACEOF
5580 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5585 $as_echo "$with_auto_load_safe_path" >&6; }
5589 subdirs="$subdirs testsuite"
5592 # Check whether to support alternative target configurations
5593 # Check whether --enable-targets was given.
5594 if test "${enable_targets+set}" = set; then :
5595 enableval=$enable_targets; case "${enableval}" in
5596 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5598 no) enable_targets= ;;
5599 *) enable_targets=$enableval ;;
5604 # Check whether to enable 64-bit support on 32-bit hosts
5605 # Check whether --enable-64-bit-bfd was given.
5606 if test "${enable_64_bit_bfd+set}" = set; then :
5607 enableval=$enable_64_bit_bfd; case "${enableval}" in
5610 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5616 # Provide defaults for some variables set by the per-host and per-target
5618 gdb_host_obs=posix-hdep.o
5620 if test "${target}" = "${host}"; then
5626 . $srcdir/configure.host
5628 # Add in the common host objects.
5629 . $srcdir/common/common.host
5630 gdb_host_obs="$gdb_host_obs $common_host_obs"
5632 # Accumulate some settings from configure.tgt over all enabled targets
5636 HAVE_NATIVE_GCORE_TARGET=
5638 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5640 if test "$targ_alias" = "all"; then
5643 # Canonicalize the secondary target names.
5644 result=`$ac_config_sub $targ_alias 2>/dev/null`
5645 if test -n "$result"; then
5651 . ${srcdir}/configure.tgt
5653 if test -z "${gdb_target_obs}"; then :
5654 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5657 # Target-specific object files
5658 for i in ${gdb_target_obs}; do
5659 case " $TARGET_OBS " in
5662 TARGET_OBS="$TARGET_OBS ${i}"
5667 # Check whether this target needs 64-bit CORE_ADDR
5668 if test x${want64} = xfalse; then
5669 . ${srcdir}/../bfd/config.bfd
5672 # Check whether this target is native and supports gcore.
5673 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5674 && $gdb_have_gcore; then
5675 HAVE_NATIVE_GCORE_TARGET=1
5680 if test x${all_targets} = xtrue; then
5682 # We want all 64-bit targets if we either:
5683 # - run on a 64-bit host or
5684 # - already require 64-bit support for some other target or
5685 # - the --enable-64-bit-bfd option was supplied
5686 # Otherwise we only support all 32-bit targets.
5688 # NOTE: This test must be in sync with the corresponding
5691 if test x${want64} = xfalse; then
5692 # The cast to long int works around a bug in the HP C Compiler
5693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5694 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5695 # This bug is HP SR number 8606223364.
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5697 $as_echo_n "checking size of long... " >&6; }
5698 if test "${ac_cv_sizeof_long+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5701 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5704 if test "$ac_cv_type_long" = yes; then
5705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5707 { as_fn_set_status 77
5708 as_fn_error "cannot compute sizeof (long)
5709 See \`config.log' for more details." "$LINENO" 5; }; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5717 $as_echo "$ac_cv_sizeof_long" >&6; }
5721 cat >>confdefs.h <<_ACEOF
5722 #define SIZEOF_LONG $ac_cv_sizeof_long
5726 if test "x${ac_cv_sizeof_long}" = "x8"; then
5730 if test x${want64} = xtrue; then
5731 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5733 TARGET_OBS='$(ALL_TARGET_OBS)'
5740 # For other settings, only the main target counts.
5744 targ=$target; . ${srcdir}/configure.tgt
5746 # Fetch the default architecture and default target vector from BFD.
5747 targ=$target; . $srcdir/../bfd/config.bfd
5749 # We only want the first architecture, so strip off the others if
5750 # there is more than one.
5751 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5753 if test "x$targ_archs" != x; then
5755 cat >>confdefs.h <<_ACEOF
5756 #define DEFAULT_BFD_ARCH $targ_archs
5760 if test "x$targ_defvec" != x; then
5762 cat >>confdefs.h <<_ACEOF
5763 #define DEFAULT_BFD_VEC $targ_defvec
5768 # The CLI cannot be disabled yet, but may be in the future.
5771 # Check whether --enable-gdbcli was given.
5772 if test "${enable_gdbcli+set}" = set; then :
5773 enableval=$enable_gdbcli; case $enableval in
5777 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5779 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5785 if test x"$enable_gdbcli" = xyes; then
5786 if test -d $srcdir/cli; then
5787 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5788 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5789 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5790 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5795 # Check whether --enable-gdbmi was given.
5796 if test "${enable_gdbmi+set}" = set; then :
5797 enableval=$enable_gdbmi; case $enableval in
5801 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5807 if test x"$enable_gdbmi" = xyes; then
5808 if test -d $srcdir/mi; then
5809 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5810 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5811 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5812 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5817 # Check whether --enable-tui was given.
5818 if test "${enable_tui+set}" = set; then :
5819 enableval=$enable_tui; case $enableval in
5823 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5831 # Check whether --enable-gdbtk was given.
5832 if test "${enable_gdbtk+set}" = set; then :
5833 enableval=$enable_gdbtk; case $enableval in
5837 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5840 if test -d $srcdir/gdbtk; then
5847 # We unconditionally disable gdbtk tests on selected platforms.
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5851 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5855 # Libunwind support for ia64.
5858 # Check whether --with-libunwind-ia64 was given.
5859 if test "${with_libunwind_ia64+set}" = set; then :
5860 withval=$with_libunwind_ia64;
5862 with_libunwind_ia64=auto
5866 # Backward compatibility option.
5867 if test "${with_libunwind+set}" = set; then
5868 if test x"$with_libunwind_ia64" != xauto; then
5869 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5872 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5873 with_libunwind_ia64="$with_libunwind"
5876 case "$with_libunwind_ia64" in
5880 for ac_header in libunwind-ia64.h
5882 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5883 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5884 cat >>confdefs.h <<_ACEOF
5885 #define HAVE_LIBUNWIND_IA64_H 1
5892 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5895 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5899 if test x"$with_libunwind_ia64" = xyes; then
5900 for ac_header in libunwind-ia64.h
5902 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5903 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5904 cat >>confdefs.h <<_ACEOF
5905 #define HAVE_LIBUNWIND_IA64_H 1
5912 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5913 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5915 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5916 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5917 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5922 # Check whether --with-curses was given.
5923 if test "${with_curses+set}" = set; then :
5924 withval=$with_curses; opt_curses=$withval
5929 if test "$opt_curses" = "yes"; then
5933 # Profiling support.
5934 # Check whether --enable-profiling was given.
5935 if test "${enable_profiling+set}" = set; then :
5936 enableval=$enable_profiling; case $enableval in
5940 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5947 for ac_func in monstartup _mcleanup
5949 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5950 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5951 eval as_val=\$$as_ac_var
5952 if test "x$as_val" = x""yes; then :
5953 cat >>confdefs.h <<_ACEOF
5954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5961 $as_echo_n "checking for _etext... " >&6; }
5962 if test "${ac_cv_var__etext+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5978 if ac_fn_c_try_link "$LINENO"; then :
5979 ac_cv_var__etext=yes
5983 rm -f core conftest.err conftest.$ac_objext \
5984 conftest$ac_exeext conftest.$ac_ext
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5987 $as_echo "$ac_cv_var__etext" >&6; }
5988 if test $ac_cv_var__etext = yes; then
5990 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5994 $as_echo_n "checking for etext... " >&6; }
5995 if test "${ac_cv_var_etext+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6011 if ac_fn_c_try_link "$LINENO"; then :
6016 rm -f core conftest.err conftest.$ac_objext \
6017 conftest$ac_exeext conftest.$ac_ext
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6020 $as_echo "$ac_cv_var_etext" >&6; }
6021 if test $ac_cv_var_etext = yes; then
6023 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6026 if test "$enable_profiling" = yes ; then
6027 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6028 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6031 OLD_CFLAGS="$CFLAGS"
6032 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6035 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6036 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6050 if ac_fn_c_try_compile "$LINENO"; then :
6051 ac_cv_cc_supports_pg=yes
6053 ac_cv_cc_supports_pg=no
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6058 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6060 if test $ac_cv_cc_supports_pg = no; then
6061 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6064 CFLAGS="$OLD_CFLAGS"
6069 # Check whether --with-pkgversion was given.
6070 if test "${with_pkgversion+set}" = set; then :
6071 withval=$with_pkgversion; case "$withval" in
6072 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6074 *) PKGVERSION="($withval) " ;;
6085 # Check whether --with-bugurl was given.
6086 if test "${with_bugurl+set}" = set; then :
6087 withval=$with_bugurl; case "$withval" in
6088 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6091 *) BUGURL="$withval"
6095 BUGURL="http://www.gnu.org/software/gdb/bugs/"
6105 REPORT_BUGS_TO="<$BUGURL>"
6106 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6113 cat >>confdefs.h <<_ACEOF
6114 #define PKGVERSION "$PKGVERSION"
6118 cat >>confdefs.h <<_ACEOF
6119 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6123 # --------------------- #
6124 # Checks for programs. #
6125 # --------------------- #
6127 for ac_prog in gawk mawk nawk awk
6129 # Extract the first word of "$ac_prog", so it can be a program name with args.
6130 set dummy $ac_prog; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if test "${ac_cv_prog_AWK+set}" = set; then :
6134 $as_echo_n "(cached) " >&6
6136 if test -n "$AWK"; then
6137 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_AWK="$ac_prog"
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 if test -n "$AWK"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6159 $as_echo "$AWK" >&6; }
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6166 test -n "$AWK" && break
6169 # Find a good install program. We prefer a C program (faster),
6170 # so one script is as good as another. But avoid the broken or
6171 # incompatible versions:
6172 # SysV /etc/install, /usr/sbin/install
6173 # SunOS /usr/etc/install
6174 # IRIX /sbin/install
6176 # AmigaOS /C/install, which installs bootblocks on floppy discs
6177 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6178 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6179 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6180 # OS/2's system install, which has a completely different semantic
6181 # ./install, which can be erroneously created by make from ./install.sh.
6182 # Reject install programs that cannot install multiple files.
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6184 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6185 if test -z "$INSTALL"; then
6186 if test "${ac_cv_path_install+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 # Account for people who put trailing slashes in PATH elements.
6195 case $as_dir/ in #((
6196 ./ | .// | /[cC]/* | \
6197 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6198 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6201 # OSF1 and SCO ODT 3.0 have their own names for install.
6202 # Don't use installbsd from OSF since it installs stuff as root
6204 for ac_prog in ginstall scoinst install; do
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6207 if test $ac_prog = install &&
6208 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6209 # AIX install. It has an incompatible calling convention.
6211 elif test $ac_prog = install &&
6212 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6213 # program-specific install script used by HP pwplus--don't use.
6216 rm -rf conftest.one conftest.two conftest.dir
6217 echo one > conftest.one
6218 echo two > conftest.two
6220 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6221 test -s conftest.one && test -s conftest.two &&
6222 test -s conftest.dir/conftest.one &&
6223 test -s conftest.dir/conftest.two
6225 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6238 rm -rf conftest.one conftest.two conftest.dir
6241 if test "${ac_cv_path_install+set}" = set; then
6242 INSTALL=$ac_cv_path_install
6244 # As a last resort, use the slow shell script. Don't cache a
6245 # value for INSTALL within a source directory, because that will
6246 # break other packages using the cache if that directory is
6247 # removed, or if the value is a relative name.
6248 INSTALL=$ac_install_sh
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6252 $as_echo "$INSTALL" >&6; }
6254 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6255 # It thinks the first close brace ends the variable substitution.
6256 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6258 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6260 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6263 $as_echo_n "checking whether ln -s works... " >&6; }
6265 if test "$LN_S" = "ln -s"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6267 $as_echo "yes" >&6; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6270 $as_echo "no, using $LN_S" >&6; }
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6281 if test -n "$RANLIB"; then
6282 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 RANLIB=$ac_cv_prog_RANLIB
6302 if test -n "$RANLIB"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6304 $as_echo "$RANLIB" >&6; }
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6312 if test -z "$ac_cv_prog_RANLIB"; then
6313 ac_ct_RANLIB=$RANLIB
6314 # Extract the first word of "ranlib", so it can be a program name with args.
6315 set dummy ranlib; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6321 if test -n "$ac_ct_RANLIB"; then
6322 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_ac_ct_RANLIB="ranlib"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6342 if test -n "$ac_ct_RANLIB"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6344 $as_echo "$ac_ct_RANLIB" >&6; }
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6350 if test "x$ac_ct_RANLIB" = x; then
6353 case $cross_compiling:$ac_tool_warned in
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6359 RANLIB=$ac_ct_RANLIB
6362 RANLIB="$ac_cv_prog_RANLIB"
6365 for ac_prog in 'bison -y' byacc
6367 # Extract the first word of "$ac_prog", so it can be a program name with args.
6368 set dummy $ac_prog; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if test "${ac_cv_prog_YACC+set}" = set; then :
6372 $as_echo_n "(cached) " >&6
6374 if test -n "$YACC"; then
6375 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_prog_YACC="$ac_prog"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 YACC=$ac_cv_prog_YACC
6395 if test -n "$YACC"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6397 $as_echo "$YACC" >&6; }
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6404 test -n "$YACC" && break
6406 test -n "$YACC" || YACC="yacc"
6409 if test -n "$ac_tool_prefix"; then
6410 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6411 set dummy ${ac_tool_prefix}ar; ac_word=$2
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if test "${ac_cv_prog_AR+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6417 if test -n "$AR"; then
6418 ac_cv_prog_AR="$AR" # Let the user override the test.
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6427 ac_cv_prog_AR="${ac_tool_prefix}ar"
6428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 if test -n "$AR"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6440 $as_echo "$AR" >&6; }
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6448 if test -z "$ac_cv_prog_AR"; then
6450 # Extract the first word of "ar", so it can be a program name with args.
6451 set dummy ar; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6457 if test -n "$ac_ct_AR"; then
6458 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467 ac_cv_prog_ac_ct_AR="ar"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6478 if test -n "$ac_ct_AR"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6480 $as_echo "$ac_ct_AR" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6486 if test "x$ac_ct_AR" = x; then
6489 case $cross_compiling:$ac_tool_warned in
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6493 ac_tool_warned=yes ;;
6501 if test -n "$ac_tool_prefix"; then
6502 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6509 if test -n "$DLLTOOL"; then
6510 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 DLLTOOL=$ac_cv_prog_DLLTOOL
6530 if test -n "$DLLTOOL"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6532 $as_echo "$DLLTOOL" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6540 if test -z "$ac_cv_prog_DLLTOOL"; then
6541 ac_ct_DLLTOOL=$DLLTOOL
6542 # Extract the first word of "dlltool", so it can be a program name with args.
6543 set dummy dlltool; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6549 if test -n "$ac_ct_DLLTOOL"; then
6550 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6570 if test -n "$ac_ct_DLLTOOL"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6572 $as_echo "$ac_ct_DLLTOOL" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6578 if test "x$ac_ct_DLLTOOL" = x; then
6581 case $cross_compiling:$ac_tool_warned in
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6587 DLLTOOL=$ac_ct_DLLTOOL
6590 DLLTOOL="$ac_cv_prog_DLLTOOL"
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}windres; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6599 $as_echo_n "(cached) " >&6
6601 if test -n "$WINDRES"; then
6602 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 WINDRES=$ac_cv_prog_WINDRES
6622 if test -n "$WINDRES"; then
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6624 $as_echo "$WINDRES" >&6; }
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6632 if test -z "$ac_cv_prog_WINDRES"; then
6633 ac_ct_WINDRES=$WINDRES
6634 # Extract the first word of "windres", so it can be a program name with args.
6635 set dummy windres; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6641 if test -n "$ac_ct_WINDRES"; then
6642 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_ac_ct_WINDRES="windres"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6662 if test -n "$ac_ct_WINDRES"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6664 $as_echo "$ac_ct_WINDRES" >&6; }
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6670 if test "x$ac_ct_WINDRES" = x; then
6673 case $cross_compiling:$ac_tool_warned in
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677 ac_tool_warned=yes ;;
6679 WINDRES=$ac_ct_WINDRES
6682 WINDRES="$ac_cv_prog_WINDRES"
6688 # Needed for GNU Hurd hosts.
6689 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}mig; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if test "${ac_cv_prog_MIG+set}" = set; then :
6695 $as_echo_n "(cached) " >&6
6697 if test -n "$MIG"; then
6698 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 if test -n "$MIG"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6720 $as_echo "$MIG" >&6; }
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6728 if test -z "$ac_cv_prog_MIG"; then
6730 # Extract the first word of "mig", so it can be a program name with args.
6731 set dummy mig; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6737 if test -n "$ac_ct_MIG"; then
6738 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_ac_ct_MIG="mig"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6758 if test -n "$ac_ct_MIG"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6760 $as_echo "$ac_ct_MIG" >&6; }
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6766 if test "x$ac_ct_MIG" = x; then
6769 case $cross_compiling:$ac_tool_warned in
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773 ac_tool_warned=yes ;;
6778 MIG="$ac_cv_prog_MIG"
6781 if test x"$MIG" = x; then
6782 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6787 # ---------------------- #
6788 # Checks for libraries. #
6789 # ---------------------- #
6791 # We might need to link with -lm; most simulators need it.
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6793 $as_echo_n "checking for main in -lm... " >&6; }
6794 if test "${ac_cv_lib_m_main+set}" = set; then :
6795 $as_echo_n "(cached) " >&6
6797 ac_check_lib_save_LIBS=$LIBS
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6811 if ac_fn_c_try_link "$LINENO"; then :
6812 ac_cv_lib_m_main=yes
6816 rm -f core conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
6818 LIBS=$ac_check_lib_save_LIBS
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6821 $as_echo "$ac_cv_lib_m_main" >&6; }
6822 if test "x$ac_cv_lib_m_main" = x""yes; then :
6823 cat >>confdefs.h <<_ACEOF
6832 # We need to link with -lw to get `wctype' on Solaris before Solaris
6833 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6834 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6835 # is known to have this problem). Therefore we avoid libw if we can.
6836 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6837 if test "x$ac_cv_func_wctype" = x""yes; then :
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6841 $as_echo_n "checking for wctype in -lw... " >&6; }
6842 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6845 ac_check_lib_save_LIBS=$LIBS
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6850 /* Override any GCC internal prototype to avoid an error.
6851 Use char because int might match the return type of a GCC
6852 builtin and then its argument prototype would still apply. */
6865 if ac_fn_c_try_link "$LINENO"; then :
6866 ac_cv_lib_w_wctype=yes
6868 ac_cv_lib_w_wctype=no
6870 rm -f core conftest.err conftest.$ac_objext \
6871 conftest$ac_exeext conftest.$ac_ext
6872 LIBS=$ac_check_lib_save_LIBS
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6875 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6876 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6877 cat >>confdefs.h <<_ACEOF
6888 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6890 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6891 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6894 ac_func_search_save_LIBS=$LIBS
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6898 /* Override any GCC internal prototype to avoid an error.
6899 Use char because int might match the return type of a GCC
6900 builtin and then its argument prototype would still apply. */
6904 char gethostbyname ();
6908 return gethostbyname ();
6913 for ac_lib in '' nsl; do
6914 if test -z "$ac_lib"; then
6915 ac_res="none required"
6918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6920 if ac_fn_c_try_link "$LINENO"; then :
6921 ac_cv_search_gethostbyname=$ac_res
6923 rm -f core conftest.err conftest.$ac_objext \
6925 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6929 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6932 ac_cv_search_gethostbyname=no
6935 LIBS=$ac_func_search_save_LIBS
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6938 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6939 ac_res=$ac_cv_search_gethostbyname
6940 if test "$ac_res" != no; then :
6941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6946 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6948 $as_echo_n "checking for library containing socketpair... " >&6; }
6949 if test "${ac_cv_search_socketpair+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6952 ac_func_search_save_LIBS=$LIBS
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6956 /* Override any GCC internal prototype to avoid an error.
6957 Use char because int might match the return type of a GCC
6958 builtin and then its argument prototype would still apply. */
6966 return socketpair ();
6971 for ac_lib in '' socket; do
6972 if test -z "$ac_lib"; then
6973 ac_res="none required"
6976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6978 if ac_fn_c_try_link "$LINENO"; then :
6979 ac_cv_search_socketpair=$ac_res
6981 rm -f core conftest.err conftest.$ac_objext \
6983 if test "${ac_cv_search_socketpair+set}" = set; then :
6987 if test "${ac_cv_search_socketpair+set}" = set; then :
6990 ac_cv_search_socketpair=no
6993 LIBS=$ac_func_search_save_LIBS
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6996 $as_echo "$ac_cv_search_socketpair" >&6; }
6997 ac_res=$ac_cv_search_socketpair
6998 if test "$ac_res" != no; then :
6999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7004 # Link in zlib if we can. This allows us to read compressed debug sections.
7006 # Use the system's zlib library.
7007 zlibdir="-L\$(top_builddir)/../zlib"
7008 zlibinc="-I\$(top_srcdir)/../zlib"
7010 # Check whether --with-system-zlib was given.
7011 if test "${with_system_zlib+set}" = set; then :
7012 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7023 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7024 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7026 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7027 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7028 $as_echo_n "(cached) " >&6
7030 ac_func_search_save_LIBS=$LIBS
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7034 /* Override any GCC internal prototype to avoid an error.
7035 Use char because int might match the return type of a GCC
7036 builtin and then its argument prototype would still apply. */
7040 char kinfo_getvmmap ();
7044 return kinfo_getvmmap ();
7049 for ac_lib in '' util util-freebsd; do
7050 if test -z "$ac_lib"; then
7051 ac_res="none required"
7054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7056 if ac_fn_c_try_link "$LINENO"; then :
7057 ac_cv_search_kinfo_getvmmap=$ac_res
7059 rm -f core conftest.err conftest.$ac_objext \
7061 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7065 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7068 ac_cv_search_kinfo_getvmmap=no
7071 LIBS=$ac_func_search_save_LIBS
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7074 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7075 ac_res=$ac_cv_search_kinfo_getvmmap
7076 if test "$ac_res" != no; then :
7077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7079 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7085 if test "X$prefix" = "XNONE"; then
7086 acl_final_prefix="$ac_default_prefix"
7088 acl_final_prefix="$prefix"
7090 if test "X$exec_prefix" = "XNONE"; then
7091 acl_final_exec_prefix='${prefix}'
7093 acl_final_exec_prefix="$exec_prefix"
7095 acl_save_prefix="$prefix"
7096 prefix="$acl_final_prefix"
7097 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7098 prefix="$acl_save_prefix"
7101 # Check whether --with-gnu-ld was given.
7102 if test "${with_gnu_ld+set}" = set; then :
7103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7108 # Prepare PATH_SEPARATOR.
7109 # The user is always right.
7110 if test "${PATH_SEPARATOR+set}" != set; then
7111 echo "#! /bin/sh" >conf$$.sh
7112 echo "exit 0" >>conf$$.sh
7114 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7122 if test "$GCC" = yes; then
7123 # Check if gcc -print-prog-name=ld gives a path.
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7125 $as_echo_n "checking for ld used by GCC... " >&6; }
7128 # gcc leaves a trailing carriage return which upsets mingw
7129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7134 # Accept absolute paths.
7135 [\\/]* | [A-Za-z]:[\\/]*)
7136 re_direlt='/[^/][^/]*/\.\./'
7137 # Canonicalize the path of ld
7138 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7139 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7140 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7142 test -z "$LD" && LD="$ac_prog"
7145 # If it fails, then pretend we aren't using GCC.
7149 # If it is relative, then search for the first ld in PATH.
7153 elif test "$with_gnu_ld" = yes; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7155 $as_echo_n "checking for GNU ld... " >&6; }
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7158 $as_echo_n "checking for non-GNU ld... " >&6; }
7160 if test "${acl_cv_path_LD+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7163 if test -z "$LD"; then
7164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7165 for ac_dir in $PATH; do
7166 test -z "$ac_dir" && ac_dir=.
7167 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7168 acl_cv_path_LD="$ac_dir/$ac_prog"
7169 # Check to see if the program is GNU ld. I'd rather use --version,
7170 # but apparently some GNU ld's only accept -v.
7171 # Break only if it was the GNU/non-GNU ld that we prefer.
7172 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7173 test "$with_gnu_ld" != no && break
7175 test "$with_gnu_ld" != yes && break
7181 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7185 LD="$acl_cv_path_LD"
7186 if test -n "$LD"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7188 $as_echo "$LD" >&6; }
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7193 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7195 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7196 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7199 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7200 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7201 acl_cv_prog_gnu_ld=yes
7203 acl_cv_prog_gnu_ld=no
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7207 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7208 with_gnu_ld=$acl_cv_prog_gnu_ld
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7213 $as_echo_n "checking for shared library run path origin... " >&6; }
7214 if test "${acl_cv_rpath+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7218 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7219 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7226 $as_echo "$acl_cv_rpath" >&6; }
7228 libext="$acl_cv_libext"
7229 shlibext="$acl_cv_shlibext"
7230 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7231 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7232 hardcode_direct="$acl_cv_hardcode_direct"
7233 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7234 # Check whether --enable-rpath was given.
7235 if test "${enable_rpath+set}" = set; then :
7236 enableval=$enable_rpath; :
7250 acl_save_prefix="$prefix"
7251 prefix="$acl_final_prefix"
7252 acl_save_exec_prefix="$exec_prefix"
7253 exec_prefix="$acl_final_exec_prefix"
7255 eval additional_includedir=\"$includedir\"
7256 eval additional_libdir=\"$libdir\"
7258 exec_prefix="$acl_save_exec_prefix"
7259 prefix="$acl_save_prefix"
7262 # Check whether --with-libiconv-prefix was given.
7263 if test "${with_libiconv_prefix+set}" = set; then :
7264 withval=$with_libiconv_prefix;
7265 if test "X$withval" = "Xno"; then
7268 if test "X$withval" = "X"; then
7270 acl_save_prefix="$prefix"
7271 prefix="$acl_final_prefix"
7272 acl_save_exec_prefix="$exec_prefix"
7273 exec_prefix="$acl_final_exec_prefix"
7275 eval additional_includedir=\"$includedir\"
7276 eval additional_libdir=\"$libdir\"
7278 exec_prefix="$acl_save_exec_prefix"
7279 prefix="$acl_save_prefix"
7282 additional_includedir="$withval/include"
7283 additional_libdir="$withval/lib"
7294 names_already_handled=
7295 names_next_round='iconv '
7296 while test -n "$names_next_round"; do
7297 names_this_round="$names_next_round"
7299 for name in $names_this_round; do
7301 for n in $names_already_handled; do
7302 if test "$n" = "$name"; then
7307 if test -z "$already_handled"; then
7308 names_already_handled="$names_already_handled $name"
7309 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7310 eval value=\"\$HAVE_LIB$uppername\"
7311 if test -n "$value"; then
7312 if test "$value" = yes; then
7313 eval value=\"\$LIB$uppername\"
7314 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7315 eval value=\"\$LTLIB$uppername\"
7316 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7325 if test $use_additional = yes; then
7326 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7327 found_dir="$additional_libdir"
7328 found_so="$additional_libdir/lib$name.$shlibext"
7329 if test -f "$additional_libdir/lib$name.la"; then
7330 found_la="$additional_libdir/lib$name.la"
7333 if test -f "$additional_libdir/lib$name.$libext"; then
7334 found_dir="$additional_libdir"
7335 found_a="$additional_libdir/lib$name.$libext"
7336 if test -f "$additional_libdir/lib$name.la"; then
7337 found_la="$additional_libdir/lib$name.la"
7342 if test "X$found_dir" = "X"; then
7343 for x in $LDFLAGS $LTLIBICONV; do
7345 acl_save_prefix="$prefix"
7346 prefix="$acl_final_prefix"
7347 acl_save_exec_prefix="$exec_prefix"
7348 exec_prefix="$acl_final_exec_prefix"
7350 exec_prefix="$acl_save_exec_prefix"
7351 prefix="$acl_save_prefix"
7355 dir=`echo "X$x" | sed -e 's/^X-L//'`
7356 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7358 found_so="$dir/lib$name.$shlibext"
7359 if test -f "$dir/lib$name.la"; then
7360 found_la="$dir/lib$name.la"
7363 if test -f "$dir/lib$name.$libext"; then
7365 found_a="$dir/lib$name.$libext"
7366 if test -f "$dir/lib$name.la"; then
7367 found_la="$dir/lib$name.la"
7373 if test "X$found_dir" != "X"; then
7378 if test "X$found_dir" != "X"; then
7379 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7380 if test "X$found_so" != "X"; then
7381 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7385 for x in $ltrpathdirs; do
7386 if test "X$x" = "X$found_dir"; then
7391 if test -z "$haveit"; then
7392 ltrpathdirs="$ltrpathdirs $found_dir"
7394 if test "$hardcode_direct" = yes; then
7395 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7397 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7398 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7400 for x in $rpathdirs; do
7401 if test "X$x" = "X$found_dir"; then
7406 if test -z "$haveit"; then
7407 rpathdirs="$rpathdirs $found_dir"
7411 for x in $LDFLAGS $LIBICONV; do
7413 acl_save_prefix="$prefix"
7414 prefix="$acl_final_prefix"
7415 acl_save_exec_prefix="$exec_prefix"
7416 exec_prefix="$acl_final_exec_prefix"
7418 exec_prefix="$acl_save_exec_prefix"
7419 prefix="$acl_save_prefix"
7421 if test "X$x" = "X-L$found_dir"; then
7426 if test -z "$haveit"; then
7427 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7429 if test "$hardcode_minus_L" != no; then
7430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7432 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7438 if test "X$found_a" != "X"; then
7439 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7441 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7444 additional_includedir=
7445 case "$found_dir" in
7447 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7448 additional_includedir="$basedir/include"
7451 if test "X$additional_includedir" != "X"; then
7452 if test "X$additional_includedir" != "X/usr/include"; then
7454 if test "X$additional_includedir" = "X/usr/local/include"; then
7455 if test -n "$GCC"; then
7457 linux*) haveit=yes;;
7461 if test -z "$haveit"; then
7462 for x in $CPPFLAGS $INCICONV; do
7464 acl_save_prefix="$prefix"
7465 prefix="$acl_final_prefix"
7466 acl_save_exec_prefix="$exec_prefix"
7467 exec_prefix="$acl_final_exec_prefix"
7469 exec_prefix="$acl_save_exec_prefix"
7470 prefix="$acl_save_prefix"
7472 if test "X$x" = "X-I$additional_includedir"; then
7477 if test -z "$haveit"; then
7478 if test -d "$additional_includedir"; then
7479 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7485 if test -n "$found_la"; then
7486 save_libdir="$libdir"
7488 */* | *\\*) . "$found_la" ;;
7489 *) . "./$found_la" ;;
7491 libdir="$save_libdir"
7492 for dep in $dependency_libs; do
7495 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7496 if test "X$additional_libdir" != "X/usr/lib"; then
7498 if test "X$additional_libdir" = "X/usr/local/lib"; then
7499 if test -n "$GCC"; then
7501 linux*) haveit=yes;;
7505 if test -z "$haveit"; then
7507 for x in $LDFLAGS $LIBICONV; do
7509 acl_save_prefix="$prefix"
7510 prefix="$acl_final_prefix"
7511 acl_save_exec_prefix="$exec_prefix"
7512 exec_prefix="$acl_final_exec_prefix"
7514 exec_prefix="$acl_save_exec_prefix"
7515 prefix="$acl_save_prefix"
7517 if test "X$x" = "X-L$additional_libdir"; then
7522 if test -z "$haveit"; then
7523 if test -d "$additional_libdir"; then
7524 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7528 for x in $LDFLAGS $LTLIBICONV; do
7530 acl_save_prefix="$prefix"
7531 prefix="$acl_final_prefix"
7532 acl_save_exec_prefix="$exec_prefix"
7533 exec_prefix="$acl_final_exec_prefix"
7535 exec_prefix="$acl_save_exec_prefix"
7536 prefix="$acl_save_prefix"
7538 if test "X$x" = "X-L$additional_libdir"; then
7543 if test -z "$haveit"; then
7544 if test -d "$additional_libdir"; then
7545 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7552 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7553 if test "$enable_rpath" != no; then
7555 for x in $rpathdirs; do
7556 if test "X$x" = "X$dir"; then
7561 if test -z "$haveit"; then
7562 rpathdirs="$rpathdirs $dir"
7565 for x in $ltrpathdirs; do
7566 if test "X$x" = "X$dir"; then
7571 if test -z "$haveit"; then
7572 ltrpathdirs="$ltrpathdirs $dir"
7577 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7580 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7583 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7584 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7590 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7591 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7597 if test "X$rpathdirs" != "X"; then
7598 if test -n "$hardcode_libdir_separator"; then
7600 for found_dir in $rpathdirs; do
7601 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7603 acl_save_libdir="$libdir"
7605 eval flag=\"$hardcode_libdir_flag_spec\"
7606 libdir="$acl_save_libdir"
7607 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7609 for found_dir in $rpathdirs; do
7610 acl_save_libdir="$libdir"
7612 eval flag=\"$hardcode_libdir_flag_spec\"
7613 libdir="$acl_save_libdir"
7614 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7618 if test "X$ltrpathdirs" != "X"; then
7619 for found_dir in $ltrpathdirs; do
7620 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7631 $as_echo_n "checking for iconv... " >&6; }
7632 if test "${am_cv_func_iconv+set}" = set; then :
7633 $as_echo_n "(cached) " >&6
7636 am_cv_func_iconv="no, consider installing GNU libiconv"
7638 am_save_CPPFLAGS="$CPPFLAGS"
7639 CPPFLAGS="$CPPFLAGS $INCICONV"
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7647 iconv_t cd = iconv_open("","");
7648 iconv(cd,NULL,NULL,NULL,NULL);
7654 if ac_fn_c_try_link "$LINENO"; then :
7655 am_cv_func_iconv=yes
7657 rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 CPPFLAGS="$am_save_CPPFLAGS"
7661 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
7662 for _libs in .libs _libs; do
7663 am_save_CPPFLAGS="$CPPFLAGS"
7664 am_save_LIBS="$LIBS"
7665 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
7666 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7674 iconv_t cd = iconv_open("","");
7675 iconv(cd,NULL,NULL,NULL,NULL);
7681 if ac_fn_c_try_link "$LINENO"; then :
7682 INCICONV="-I../libiconv/include"
7683 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
7684 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
7686 am_cv_func_iconv=yes
7688 rm -f core conftest.err conftest.$ac_objext \
7689 conftest$ac_exeext conftest.$ac_ext
7690 CPPFLAGS="$am_save_CPPFLAGS"
7691 LIBS="$am_save_LIBS"
7692 if test "$am_cv_func_iconv" = "yes"; then
7698 if test "$am_cv_func_iconv" != yes; then
7699 am_save_CPPFLAGS="$CPPFLAGS"
7700 am_save_LIBS="$LIBS"
7701 CPPFLAGS="$LIBS $INCICONV"
7702 LIBS="$LIBS $LIBICONV"
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7710 iconv_t cd = iconv_open("","");
7711 iconv(cd,NULL,NULL,NULL,NULL);
7717 if ac_fn_c_try_link "$LINENO"; then :
7719 am_cv_func_iconv=yes
7721 rm -f core conftest.err conftest.$ac_objext \
7722 conftest$ac_exeext conftest.$ac_ext
7723 CPPFLAGS="$am_save_CPPFLAGS"
7724 LIBS="$am_save_LIBS"
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7729 $as_echo "$am_cv_func_iconv" >&6; }
7730 if test "$am_cv_func_iconv" = yes; then
7732 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7735 if test "$am_cv_lib_iconv" = yes; then
7737 for element in $INCICONV; do
7739 for x in $CPPFLAGS; do
7741 acl_save_prefix="$prefix"
7742 prefix="$acl_final_prefix"
7743 acl_save_exec_prefix="$exec_prefix"
7744 exec_prefix="$acl_final_exec_prefix"
7746 exec_prefix="$acl_save_exec_prefix"
7747 prefix="$acl_save_prefix"
7749 if test "X$x" = "X$element"; then
7754 if test -z "$haveit"; then
7755 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7760 $as_echo_n "checking how to link with libiconv... " >&6; }
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7762 $as_echo "$LIBICONV" >&6; }
7770 if test "$am_cv_func_iconv" = yes; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7772 $as_echo_n "checking for iconv declaration... " >&6; }
7773 if test "${am_cv_proto_iconv+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7786 #if defined(__STDC__) || defined(__cplusplus)
7787 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7800 if ac_fn_c_try_compile "$LINENO"; then :
7801 am_cv_proto_iconv_arg1=""
7803 am_cv_proto_iconv_arg1="const"
7805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806 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);"
7809 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7811 }$am_cv_proto_iconv" >&5
7813 }$am_cv_proto_iconv" >&6; }
7815 cat >>confdefs.h <<_ACEOF
7816 #define ICONV_CONST $am_cv_proto_iconv_arg1
7822 # GDB may fork/exec the iconv program to get the list of supported character
7823 # sets. Allow the user to specify where to find it.
7824 # There are several factors affecting the choice of option name:
7825 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7826 # the build-time location of libiconv files.
7827 # - The program we need to find is iconv, which comes with glibc. The user
7828 # doesn't necessarily have libiconv installed. Therefore naming this
7829 # --with-libiconv-foo feels wrong.
7830 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7831 # defined to work on directories not files (though it really doesn't know
7833 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7834 # with --with-libiconv-prefix.
7835 # Putting these together is why the option name is --with-iconv-bin.
7838 # Check whether --with-iconv-bin was given.
7839 if test "${with_iconv_bin+set}" = set; then :
7840 withval=$with_iconv_bin; iconv_bin="${withval}"
7842 cat >>confdefs.h <<_ACEOF
7843 #define ICONV_BIN "${iconv_bin}"
7847 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7848 if test "x$prefix" = xNONE; then
7849 test_prefix=/usr/local
7854 test_prefix=$exec_prefix
7857 case ${iconv_bin} in
7858 "${test_prefix}"|"${test_prefix}/"*|\
7859 '${exec_prefix}'|'${exec_prefix}/'*)
7864 cat >>confdefs.h <<_ACEOF
7865 #define ICONV_BIN_RELOCATABLE $value
7873 # For the TUI, we need enhanced curses functionality.
7874 if test x"$enable_tui" != xno; then
7879 if test x"$prefer_curses" = xyes; then
7880 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7881 # curses library because the latter might not provide all the
7882 # functionality we need. However, this leads to problems on systems
7883 # where the linker searches /usr/local/lib, but the compiler doesn't
7884 # search /usr/local/include, if ncurses is installed in /usr/local. A
7885 # default installation of ncurses on alpha*-dec-osf* will lead to such
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7888 $as_echo_n "checking for library containing waddstr... " >&6; }
7889 if test "${ac_cv_search_waddstr+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7892 ac_func_search_save_LIBS=$LIBS
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7896 /* Override any GCC internal prototype to avoid an error.
7897 Use char because int might match the return type of a GCC
7898 builtin and then its argument prototype would still apply. */
7911 for ac_lib in '' ncurses cursesX curses; do
7912 if test -z "$ac_lib"; then
7913 ac_res="none required"
7916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7918 if ac_fn_c_try_link "$LINENO"; then :
7919 ac_cv_search_waddstr=$ac_res
7921 rm -f core conftest.err conftest.$ac_objext \
7923 if test "${ac_cv_search_waddstr+set}" = set; then :
7927 if test "${ac_cv_search_waddstr+set}" = set; then :
7930 ac_cv_search_waddstr=no
7933 LIBS=$ac_func_search_save_LIBS
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7936 $as_echo "$ac_cv_search_waddstr" >&6; }
7937 ac_res=$ac_cv_search_waddstr
7938 if test "$ac_res" != no; then :
7939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7944 if test "$ac_cv_search_waddstr" != no; then
7949 # Check whether we should enable the TUI, but only do so if we really
7951 if test x"$enable_tui" != xno; then
7952 if test -d $srcdir/tui; then
7953 if test "$curses_found" != no; then
7954 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7955 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7956 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7957 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7959 if test x"$enable_tui" = xyes; then
7960 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7963 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7969 # Since GDB uses Readline, we need termcap functionality. In many
7970 # cases this will be provided by the curses library, but some systems
7971 # have a seperate termcap library, or no curses library at all.
7975 if test -d $srcdir/libtermcap; then
7976 LIBS="../libtermcap/libtermcap.a $LIBS"
7977 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
7980 ac_cv_search_tgetent="none required"
7984 # These are the libraries checked by Readline.
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7986 $as_echo_n "checking for library containing tgetent... " >&6; }
7987 if test "${ac_cv_search_tgetent+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
7990 ac_func_search_save_LIBS=$LIBS
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7994 /* Override any GCC internal prototype to avoid an error.
7995 Use char because int might match the return type of a GCC
7996 builtin and then its argument prototype would still apply. */
8009 for ac_lib in '' termcap tinfo curses ncurses; do
8010 if test -z "$ac_lib"; then
8011 ac_res="none required"
8014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8016 if ac_fn_c_try_link "$LINENO"; then :
8017 ac_cv_search_tgetent=$ac_res
8019 rm -f core conftest.err conftest.$ac_objext \
8021 if test "${ac_cv_search_tgetent+set}" = set; then :
8025 if test "${ac_cv_search_tgetent+set}" = set; then :
8028 ac_cv_search_tgetent=no
8031 LIBS=$ac_func_search_save_LIBS
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8034 $as_echo "$ac_cv_search_tgetent" >&6; }
8035 ac_res=$ac_cv_search_tgetent
8036 if test "$ac_res" != no; then :
8037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8042 if test "$ac_cv_search_tgetent" = no; then
8043 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
8047 # Check whether --with-system-readline was given.
8048 if test "${with_system_readline+set}" = set; then :
8049 withval=$with_system_readline;
8053 if test "$with_system_readline" = yes; then
8057 READLINE_TEXI_INCFLAG=
8059 READLINE='$(READLINE_DIR)/libreadline.a'
8060 READLINE_DEPS='$(READLINE)'
8061 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8062 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
8069 # Generate jit-reader.h
8071 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8074 # The cast to long int works around a bug in the HP C Compiler
8075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8077 # This bug is HP SR number 8606223364.
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8079 $as_echo_n "checking size of unsigned long long... " >&6; }
8080 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8081 $as_echo_n "(cached) " >&6
8083 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8086 if test "$ac_cv_type_unsigned_long_long" = yes; then
8087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8089 { as_fn_set_status 77
8090 as_fn_error "cannot compute sizeof (unsigned long long)
8091 See \`config.log' for more details." "$LINENO" 5; }; }
8093 ac_cv_sizeof_unsigned_long_long=0
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8099 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8103 cat >>confdefs.h <<_ACEOF
8104 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8108 # The cast to long int works around a bug in the HP C Compiler
8109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8111 # This bug is HP SR number 8606223364.
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8113 $as_echo_n "checking size of unsigned long... " >&6; }
8114 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8120 if test "$ac_cv_type_unsigned_long" = yes; then
8121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8123 { as_fn_set_status 77
8124 as_fn_error "cannot compute sizeof (unsigned long)
8125 See \`config.log' for more details." "$LINENO" 5; }; }
8127 ac_cv_sizeof_unsigned_long=0
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8133 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8137 cat >>confdefs.h <<_ACEOF
8138 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8142 # The cast to long int works around a bug in the HP C Compiler
8143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8145 # This bug is HP SR number 8606223364.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
8147 $as_echo_n "checking size of unsigned __int128... " >&6; }
8148 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8151 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
8154 if test "$ac_cv_type_unsigned___int128" = yes; then
8155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8157 { as_fn_set_status 77
8158 as_fn_error "cannot compute sizeof (unsigned __int128)
8159 See \`config.log' for more details." "$LINENO" 5; }; }
8161 ac_cv_sizeof_unsigned___int128=0
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
8167 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
8171 cat >>confdefs.h <<_ACEOF
8172 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
8177 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
8178 TARGET_PTR="unsigned long"
8179 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
8180 TARGET_PTR="unsigned long long"
8181 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
8182 TARGET_PTR="unsigned __int128"
8184 TARGET_PTR="unsigned long"
8188 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8192 $as_echo_n "checking for library containing dlopen... " >&6; }
8193 if test "${ac_cv_search_dlopen+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
8196 ac_func_search_save_LIBS=$LIBS
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8200 /* Override any GCC internal prototype to avoid an error.
8201 Use char because int might match the return type of a GCC
8202 builtin and then its argument prototype would still apply. */
8215 for ac_lib in '' dl; do
8216 if test -z "$ac_lib"; then
8217 ac_res="none required"
8220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8222 if ac_fn_c_try_link "$LINENO"; then :
8223 ac_cv_search_dlopen=$ac_res
8225 rm -f core conftest.err conftest.$ac_objext \
8227 if test "${ac_cv_search_dlopen+set}" = set; then :
8231 if test "${ac_cv_search_dlopen+set}" = set; then :
8234 ac_cv_search_dlopen=no
8237 LIBS=$ac_func_search_save_LIBS
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8240 $as_echo "$ac_cv_search_dlopen" >&6; }
8241 ac_res=$ac_cv_search_dlopen
8242 if test "$ac_res" != no; then :
8243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8250 # Check whether --with-jit-reader-dir was given.
8251 if test "${with_jit_reader_dir+set}" = set; then :
8252 withval=$with_jit_reader_dir;
8253 JIT_READER_DIR=$withval
8255 JIT_READER_DIR=${libdir}/gdb
8259 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8261 ac_define_dir=`eval echo $JIT_READER_DIR`
8262 ac_define_dir=`eval echo $ac_define_dir`
8264 cat >>confdefs.h <<_ACEOF
8265 #define JIT_READER_DIR "$ac_define_dir"
8271 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8272 if test "x$prefix" = xNONE; then
8273 test_prefix=/usr/local
8278 test_prefix=$exec_prefix
8281 case ${ac_define_dir} in
8282 "${test_prefix}"|"${test_prefix}/"*|\
8283 '${exec_prefix}'|'${exec_prefix}/'*)
8288 cat >>confdefs.h <<_ACEOF
8289 #define JIT_READER_DIR_RELOCATABLE $value
8296 # Check whether --with-expat was given.
8297 if test "${with_expat+set}" = set; then :
8298 withval=$with_expat;
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8304 $as_echo_n "checking whether to use expat... " >&6; }
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8306 $as_echo "$with_expat" >&6; }
8308 if test "${with_expat}" = no; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8310 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8323 acl_save_prefix="$prefix"
8324 prefix="$acl_final_prefix"
8325 acl_save_exec_prefix="$exec_prefix"
8326 exec_prefix="$acl_final_exec_prefix"
8328 eval additional_includedir=\"$includedir\"
8329 eval additional_libdir=\"$libdir\"
8331 exec_prefix="$acl_save_exec_prefix"
8332 prefix="$acl_save_prefix"
8335 # Check whether --with-libexpat-prefix was given.
8336 if test "${with_libexpat_prefix+set}" = set; then :
8337 withval=$with_libexpat_prefix;
8338 if test "X$withval" = "Xno"; then
8341 if test "X$withval" = "X"; then
8343 acl_save_prefix="$prefix"
8344 prefix="$acl_final_prefix"
8345 acl_save_exec_prefix="$exec_prefix"
8346 exec_prefix="$acl_final_exec_prefix"
8348 eval additional_includedir=\"$includedir\"
8349 eval additional_libdir=\"$libdir\"
8351 exec_prefix="$acl_save_exec_prefix"
8352 prefix="$acl_save_prefix"
8355 additional_includedir="$withval/include"
8356 additional_libdir="$withval/lib"
8367 names_already_handled=
8368 names_next_round='expat '
8369 while test -n "$names_next_round"; do
8370 names_this_round="$names_next_round"
8372 for name in $names_this_round; do
8374 for n in $names_already_handled; do
8375 if test "$n" = "$name"; then
8380 if test -z "$already_handled"; then
8381 names_already_handled="$names_already_handled $name"
8382 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8383 eval value=\"\$HAVE_LIB$uppername\"
8384 if test -n "$value"; then
8385 if test "$value" = yes; then
8386 eval value=\"\$LIB$uppername\"
8387 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
8388 eval value=\"\$LTLIB$uppername\"
8389 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8398 if test $use_additional = yes; then
8399 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8400 found_dir="$additional_libdir"
8401 found_so="$additional_libdir/lib$name.$shlibext"
8402 if test -f "$additional_libdir/lib$name.la"; then
8403 found_la="$additional_libdir/lib$name.la"
8406 if test -f "$additional_libdir/lib$name.$libext"; then
8407 found_dir="$additional_libdir"
8408 found_a="$additional_libdir/lib$name.$libext"
8409 if test -f "$additional_libdir/lib$name.la"; then
8410 found_la="$additional_libdir/lib$name.la"
8415 if test "X$found_dir" = "X"; then
8416 for x in $LDFLAGS $LTLIBEXPAT; do
8418 acl_save_prefix="$prefix"
8419 prefix="$acl_final_prefix"
8420 acl_save_exec_prefix="$exec_prefix"
8421 exec_prefix="$acl_final_exec_prefix"
8423 exec_prefix="$acl_save_exec_prefix"
8424 prefix="$acl_save_prefix"
8428 dir=`echo "X$x" | sed -e 's/^X-L//'`
8429 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8431 found_so="$dir/lib$name.$shlibext"
8432 if test -f "$dir/lib$name.la"; then
8433 found_la="$dir/lib$name.la"
8436 if test -f "$dir/lib$name.$libext"; then
8438 found_a="$dir/lib$name.$libext"
8439 if test -f "$dir/lib$name.la"; then
8440 found_la="$dir/lib$name.la"
8446 if test "X$found_dir" != "X"; then
8451 if test "X$found_dir" != "X"; then
8452 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8453 if test "X$found_so" != "X"; then
8454 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8455 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8458 for x in $ltrpathdirs; do
8459 if test "X$x" = "X$found_dir"; then
8464 if test -z "$haveit"; then
8465 ltrpathdirs="$ltrpathdirs $found_dir"
8467 if test "$hardcode_direct" = yes; then
8468 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8470 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8471 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8473 for x in $rpathdirs; do
8474 if test "X$x" = "X$found_dir"; then
8479 if test -z "$haveit"; then
8480 rpathdirs="$rpathdirs $found_dir"
8484 for x in $LDFLAGS $LIBEXPAT; do
8486 acl_save_prefix="$prefix"
8487 prefix="$acl_final_prefix"
8488 acl_save_exec_prefix="$exec_prefix"
8489 exec_prefix="$acl_final_exec_prefix"
8491 exec_prefix="$acl_save_exec_prefix"
8492 prefix="$acl_save_prefix"
8494 if test "X$x" = "X-L$found_dir"; then
8499 if test -z "$haveit"; then
8500 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8502 if test "$hardcode_minus_L" != no; then
8503 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8505 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8511 if test "X$found_a" != "X"; then
8512 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8514 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8517 additional_includedir=
8518 case "$found_dir" in
8520 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8521 additional_includedir="$basedir/include"
8524 if test "X$additional_includedir" != "X"; then
8525 if test "X$additional_includedir" != "X/usr/include"; then
8527 if test "X$additional_includedir" = "X/usr/local/include"; then
8528 if test -n "$GCC"; then
8530 linux*) haveit=yes;;
8534 if test -z "$haveit"; then
8535 for x in $CPPFLAGS $INCEXPAT; do
8537 acl_save_prefix="$prefix"
8538 prefix="$acl_final_prefix"
8539 acl_save_exec_prefix="$exec_prefix"
8540 exec_prefix="$acl_final_exec_prefix"
8542 exec_prefix="$acl_save_exec_prefix"
8543 prefix="$acl_save_prefix"
8545 if test "X$x" = "X-I$additional_includedir"; then
8550 if test -z "$haveit"; then
8551 if test -d "$additional_includedir"; then
8552 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8558 if test -n "$found_la"; then
8559 save_libdir="$libdir"
8561 */* | *\\*) . "$found_la" ;;
8562 *) . "./$found_la" ;;
8564 libdir="$save_libdir"
8565 for dep in $dependency_libs; do
8568 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8569 if test "X$additional_libdir" != "X/usr/lib"; then
8571 if test "X$additional_libdir" = "X/usr/local/lib"; then
8572 if test -n "$GCC"; then
8574 linux*) haveit=yes;;
8578 if test -z "$haveit"; then
8580 for x in $LDFLAGS $LIBEXPAT; do
8582 acl_save_prefix="$prefix"
8583 prefix="$acl_final_prefix"
8584 acl_save_exec_prefix="$exec_prefix"
8585 exec_prefix="$acl_final_exec_prefix"
8587 exec_prefix="$acl_save_exec_prefix"
8588 prefix="$acl_save_prefix"
8590 if test "X$x" = "X-L$additional_libdir"; then
8595 if test -z "$haveit"; then
8596 if test -d "$additional_libdir"; then
8597 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8601 for x in $LDFLAGS $LTLIBEXPAT; do
8603 acl_save_prefix="$prefix"
8604 prefix="$acl_final_prefix"
8605 acl_save_exec_prefix="$exec_prefix"
8606 exec_prefix="$acl_final_exec_prefix"
8608 exec_prefix="$acl_save_exec_prefix"
8609 prefix="$acl_save_prefix"
8611 if test "X$x" = "X-L$additional_libdir"; then
8616 if test -z "$haveit"; then
8617 if test -d "$additional_libdir"; then
8618 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8625 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8626 if test "$enable_rpath" != no; then
8628 for x in $rpathdirs; do
8629 if test "X$x" = "X$dir"; then
8634 if test -z "$haveit"; then
8635 rpathdirs="$rpathdirs $dir"
8638 for x in $ltrpathdirs; do
8639 if test "X$x" = "X$dir"; then
8644 if test -z "$haveit"; then
8645 ltrpathdirs="$ltrpathdirs $dir"
8650 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8653 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8656 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8657 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8663 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8664 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8670 if test "X$rpathdirs" != "X"; then
8671 if test -n "$hardcode_libdir_separator"; then
8673 for found_dir in $rpathdirs; do
8674 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8676 acl_save_libdir="$libdir"
8678 eval flag=\"$hardcode_libdir_flag_spec\"
8679 libdir="$acl_save_libdir"
8680 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8682 for found_dir in $rpathdirs; do
8683 acl_save_libdir="$libdir"
8685 eval flag=\"$hardcode_libdir_flag_spec\"
8686 libdir="$acl_save_libdir"
8687 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8691 if test "X$ltrpathdirs" != "X"; then
8692 for found_dir in $ltrpathdirs; do
8693 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8698 ac_save_CPPFLAGS="$CPPFLAGS"
8700 for element in $INCEXPAT; do
8702 for x in $CPPFLAGS; do
8704 acl_save_prefix="$prefix"
8705 prefix="$acl_final_prefix"
8706 acl_save_exec_prefix="$exec_prefix"
8707 exec_prefix="$acl_final_exec_prefix"
8709 exec_prefix="$acl_save_exec_prefix"
8710 prefix="$acl_save_prefix"
8712 if test "X$x" = "X$element"; then
8717 if test -z "$haveit"; then
8718 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8724 $as_echo_n "checking for libexpat... " >&6; }
8725 if test "${ac_cv_libexpat+set}" = set; then :
8726 $as_echo_n "(cached) " >&6
8729 ac_save_LIBS="$LIBS"
8730 LIBS="$LIBS $LIBEXPAT"
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8737 XML_Parser p = XML_ParserCreate (0);
8742 if ac_fn_c_try_link "$LINENO"; then :
8747 rm -f core conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 LIBS="$ac_save_LIBS"
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8753 $as_echo "$ac_cv_libexpat" >&6; }
8754 if test "$ac_cv_libexpat" = yes; then
8757 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8760 $as_echo_n "checking how to link with libexpat... " >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8762 $as_echo "$LIBEXPAT" >&6; }
8765 CPPFLAGS="$ac_save_CPPFLAGS"
8775 if test "$HAVE_LIBEXPAT" != yes; then
8776 if test "$with_expat" = yes; then
8777 as_fn_error "expat is missing or unusable" "$LINENO" 5
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8780 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8784 LIBS="$LIBS $LIBEXPAT"
8785 for ac_func in XML_StopParser
8787 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8788 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
8789 cat >>confdefs.h <<_ACEOF
8790 #define HAVE_XML_STOPPARSER 1
8800 # --------------------- #
8801 # Check for libpython. #
8802 # --------------------- #
8809 # Check whether --with-python was given.
8810 if test "${with_python+set}" = set; then :
8811 withval=$with_python;
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8817 $as_echo_n "checking whether to use python... " >&6; }
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8819 $as_echo "$with_python" >&6; }
8821 if test "${with_python}" = no; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8823 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8826 case "${with_python}" in
8828 if test -d ${with_python}; then
8829 # Assume the python binary is ${with_python}/bin/python.
8830 python_prog="${with_python}/bin/python"
8832 # If python does not exit ${with_python}/bin, then try in
8833 # ${with_python}. On Windows/MinGW, this is where the Python
8835 if test ! -x "${python_prog}"; then
8836 python_prog="${with_python}/python"
8839 if test ! -x "${python_prog}"; then
8840 # Fall back to gdb 7.0/7.1 behaviour.
8842 python_prefix=${with_python}
8844 elif test -x "${with_python}"; then
8845 # While we can't run python compiled for $host (unless host == build),
8846 # the user could write a script that provides the needed information,
8847 # so we support that.
8848 python_prog=${with_python}
8851 as_fn_error "invalid value for --with-python" "$LINENO" 5
8855 # Disallow --with-python=foo/bar.
8856 as_fn_error "invalid value for --with-python" "$LINENO" 5
8859 # The user has either specified auto, yes, or the name of the python
8860 # program assumed to be in $PATH.
8862 case "${with_python}" in
8864 if test ${build} = ${host}; then
8865 # Extract the first word of "python", so it can be a program name with args.
8866 set dummy python; ac_word=$2
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8868 $as_echo_n "checking for $ac_word... " >&6; }
8869 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8870 $as_echo_n "(cached) " >&6
8872 case $python_prog_path in
8874 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881 test -z "$as_dir" && as_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8884 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8896 python_prog_path=$ac_cv_path_python_prog_path
8897 if test -n "$python_prog_path"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8899 $as_echo "$python_prog_path" >&6; }
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 $as_echo "no" >&6; }
8906 if test "${python_prog_path}" = missing; then
8909 python_prog=${python_prog_path}
8912 # Not much we can do except assume the cross-compiler will find the
8918 # While we can't run python compiled for $host (unless host == build),
8919 # the user could write a script that provides the needed information,
8920 # so we support that.
8921 python_prog="${with_python}"
8922 # Extract the first word of "${python_prog}", so it can be a program name with args.
8923 set dummy ${python_prog}; ac_word=$2
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8925 $as_echo_n "checking for $ac_word... " >&6; }
8926 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8927 $as_echo_n "(cached) " >&6
8929 case $python_prog_path in
8931 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 test -z "$as_dir" && as_dir=.
8939 for ac_exec_ext in '' $ac_executable_extensions; do
8940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8941 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8953 python_prog_path=$ac_cv_path_python_prog_path
8954 if test -n "$python_prog_path"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8956 $as_echo "$python_prog_path" >&6; }
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8963 if test "${python_prog_path}" = missing; then
8964 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8970 if test "${python_prog}" != missing; then
8971 # We have a python program to use, but it may be too old.
8972 # Don't flag an error for --with-python=auto (the default).
8973 have_python_config=yes
8974 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8975 if test $? != 0; then
8976 have_python_config=failed
8977 if test "${with_python}" != auto; then
8978 as_fn_error "failure running python-config --includes" "$LINENO" 5
8981 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8982 if test $? != 0; then
8983 have_python_config=failed
8984 if test "${with_python}" != auto; then
8985 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8988 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8989 if test $? != 0; then
8990 have_python_config=failed
8991 if test "${with_python}" != auto; then
8992 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8996 # We do not have a python executable we can use to determine where
8997 # to find the Python headers and libs. We cannot guess the include
8998 # path from the python_prefix either, because that include path
8999 # depends on the Python version. So, there is nothing much we can
9000 # do except assume that the compiler will be able to find those files.
9003 have_python_config=no
9006 # If we have python-config, only try the configuration it provides.
9007 # Otherwise fallback on the old way of trying different versions of
9011 if test "${have_python_config}" = yes; then
9012 # Determine the Python version by extracting "-lpython<version>"
9013 # part of the python_libs. <version> is usually X.Y with X and Y
9014 # being decimal numbers, but can also be XY (seen on Windows).
9016 # The extraction is performed using sed with a regular expression.
9017 # Initially, the regexp used was using the '?' quantifier to make
9018 # the dot in the version number optional. Unfortunately, this
9019 # does not work with non-GNU versions of sed because, because of
9020 # what looks like a limitation (the '?' quantifier does not work
9021 # with back-references). We work around this limitation by using
9022 # the '*' quantifier instead. It means that, in theory, we might
9023 # match unexpected version strings such as "-lpython2..7", but
9024 # this seems unlikely in practice. And even if that happens,
9025 # an error will be triggered later on, when checking that version
9027 python_version=`echo " ${python_libs} " \
9028 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
9029 case "${python_version}" in
9032 version=${python_version}
9034 new_CPPFLAGS=${python_includes}
9035 new_LIBS=${python_libs}
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9037 $as_echo_n "checking for ${version}... " >&6; }
9038 save_CPPFLAGS=$CPPFLAGS
9040 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9041 LIBS="$LIBS $new_LIBS"
9042 found_usable_python=no
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9054 if ac_fn_c_try_link "$LINENO"; then :
9055 have_libpython=${version}
9056 found_usable_python=yes
9057 PYTHON_CPPFLAGS=$new_CPPFLAGS
9058 PYTHON_LIBS=$new_LIBS
9060 rm -f core conftest.err conftest.$ac_objext \
9061 conftest$ac_exeext conftest.$ac_ext
9062 CPPFLAGS=$save_CPPFLAGS
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9065 $as_echo "${found_usable_python}" >&6; }
9069 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
9072 elif test "${have_python_config}" != failed; then
9073 if test "${have_libpython}" = no; then
9077 new_CPPFLAGS=${python_includes}
9078 new_LIBS="${python_libs} -lpython2.7"
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9080 $as_echo_n "checking for ${version}... " >&6; }
9081 save_CPPFLAGS=$CPPFLAGS
9083 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9084 LIBS="$LIBS $new_LIBS"
9085 found_usable_python=no
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9097 if ac_fn_c_try_link "$LINENO"; then :
9098 have_libpython=${version}
9099 found_usable_python=yes
9100 PYTHON_CPPFLAGS=$new_CPPFLAGS
9101 PYTHON_LIBS=$new_LIBS
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 CPPFLAGS=$save_CPPFLAGS
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9108 $as_echo "${found_usable_python}" >&6; }
9111 if test "${have_libpython}" = no; then
9115 new_CPPFLAGS=${python_includes}
9116 new_LIBS="${python_libs} -lpython2.6"
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9118 $as_echo_n "checking for ${version}... " >&6; }
9119 save_CPPFLAGS=$CPPFLAGS
9121 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9122 LIBS="$LIBS $new_LIBS"
9123 found_usable_python=no
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9135 if ac_fn_c_try_link "$LINENO"; then :
9136 have_libpython=${version}
9137 found_usable_python=yes
9138 PYTHON_CPPFLAGS=$new_CPPFLAGS
9139 PYTHON_LIBS=$new_LIBS
9141 rm -f core conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext conftest.$ac_ext
9143 CPPFLAGS=$save_CPPFLAGS
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9146 $as_echo "${found_usable_python}" >&6; }
9149 if test ${have_libpython} = no; then
9153 new_CPPFLAGS=${python_includes}
9154 new_LIBS="${python_libs} -lpython2.5"
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9156 $as_echo_n "checking for ${version}... " >&6; }
9157 save_CPPFLAGS=$CPPFLAGS
9159 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9160 LIBS="$LIBS $new_LIBS"
9161 found_usable_python=no
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9173 if ac_fn_c_try_link "$LINENO"; then :
9174 have_libpython=${version}
9175 found_usable_python=yes
9176 PYTHON_CPPFLAGS=$new_CPPFLAGS
9177 PYTHON_LIBS=$new_LIBS
9179 rm -f core conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
9181 CPPFLAGS=$save_CPPFLAGS
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9184 $as_echo "${found_usable_python}" >&6; }
9187 if test ${have_libpython} = no; then
9191 new_CPPFLAGS=${python_includes}
9192 new_LIBS="${python_libs} -lpython2.4"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9194 $as_echo_n "checking for ${version}... " >&6; }
9195 save_CPPFLAGS=$CPPFLAGS
9197 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9198 LIBS="$LIBS $new_LIBS"
9199 found_usable_python=no
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9211 if ac_fn_c_try_link "$LINENO"; then :
9212 have_libpython=${version}
9213 found_usable_python=yes
9214 PYTHON_CPPFLAGS=$new_CPPFLAGS
9215 PYTHON_LIBS=$new_LIBS
9217 rm -f core conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219 CPPFLAGS=$save_CPPFLAGS
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9222 $as_echo "${found_usable_python}" >&6; }
9226 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
9228 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
9230 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
9232 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9234 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
9236 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9238 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
9240 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9244 if test "${have_libpython}" = no; then
9245 case "${with_python}" in
9247 as_fn_error "python is missing or unusable" "$LINENO" 5
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9251 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9254 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
9258 if test -n "${python_prefix}"; then
9260 cat >>confdefs.h <<_ACEOF
9261 #define WITH_PYTHON_PATH "${python_prefix}"
9265 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9266 if test "x$prefix" = xNONE; then
9267 test_prefix=/usr/local
9272 test_prefix=$exec_prefix
9275 case ${python_prefix} in
9276 "${test_prefix}"|"${test_prefix}/"*|\
9277 '${exec_prefix}'|'${exec_prefix}/'*)
9282 cat >>confdefs.h <<_ACEOF
9283 #define PYTHON_PATH_RELOCATABLE $value
9291 if test "${have_libpython}" != no; then
9293 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9295 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9296 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9297 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9298 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
9299 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9301 # Flags needed to compile Python code (taken from python-config --cflags).
9302 # We cannot call python-config directly because it will output whatever was
9303 # used when compiling the Python interpreter itself, including flags which
9304 # would make the python-related objects be compiled differently from the
9305 # rest of GDB (e.g., -O2 and -fPIC).
9306 if test "${GCC}" = yes; then
9307 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
9310 if test "x${tentative_python_cflags}" != x; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9312 $as_echo_n "checking compiler flags for python code... " >&6; }
9313 for flag in ${tentative_python_cflags}; do
9314 # Check that the compiler accepts it
9315 saved_CFLAGS="$CFLAGS"
9316 CFLAGS="$CFLAGS $flag"
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9328 if ac_fn_c_try_compile "$LINENO"; then :
9329 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
9331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332 CFLAGS="$saved_CFLAGS"
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9335 $as_echo "${PYTHON_CFLAGS}" >&6; }
9338 # On x64 Windows, Python's include headers, and pyconfig.h in
9339 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
9340 # version of Windows. Unfortunately, MS_WIN64 is only defined if
9341 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
9342 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
9343 # The issue was reported to the Python community, but still isn't
9344 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
9348 if test "${GCC}" = yes; then
9349 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
9354 # Note that "python -m threading" cannot be used to check for
9355 # threading support due to a bug in Python 2.7.3
9356 # (http://bugs.python.org/issue15567).
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9358 $as_echo_n "checking whether python supports threads... " >&6; }
9359 saved_CPPFLAGS="${CPPFLAGS}"
9360 CPPFLAGS="${PYTHON_CPPFLAGS}"
9361 # Note that the test is reversed so that python_has_threads=yes on
9362 # unexpected failures.
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9372 if ac_fn_c_try_cpp "$LINENO"; then :
9373 python_has_threads=no
9375 python_has_threads=yes
9377 rm -f conftest.err conftest.$ac_ext
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9379 $as_echo "${python_has_threads}" >&6; }
9380 CPPFLAGS="${saved_CPPFLAGS}"
9382 # Even if Python support is not compiled in, we need to have this file
9383 # included so that the "python" command, et.al., still exists.
9384 CONFIG_OBS="$CONFIG_OBS python.o"
9385 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
9388 # Work around Python http://bugs.python.org/issue10112. See also
9389 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
9390 # no effect. Note that the only test after this that uses Python is
9391 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
9392 # run without -export-dynamic too.
9393 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
9398 if test "${have_libpython}" != no; then
9400 HAVE_PYTHON_FALSE='#'
9402 HAVE_PYTHON_TRUE='#'
9407 # -------------------- #
9408 # Check for libguile. #
9409 # -------------------- #
9416 # Check whether --with-guile was given.
9417 if test "${with_guile+set}" = set; then :
9418 withval=$with_guile;
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9424 $as_echo_n "checking whether to use guile... " >&6; }
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9426 $as_echo "$with_guile" >&6; }
9428 # Extract the first word of "pkg-config", so it can be a program name with args.
9429 set dummy pkg-config; ac_word=$2
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 $as_echo_n "checking for $ac_word... " >&6; }
9432 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9435 case $pkg_config_prog_path in
9437 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9447 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9455 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
9459 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
9460 if test -n "$pkg_config_prog_path"; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9462 $as_echo "$pkg_config_prog_path" >&6; }
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465 $as_echo "no" >&6; }
9470 try_guile_versions="guile-2.2 guile-2.0"
9472 case "${with_guile}" in
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9475 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9478 if test "${pkg_config_prog_path}" = "missing"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9480 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9483 pkg_config=${pkg_config_prog_path}
9484 guile_version_list=${try_guile_versions}
9487 found_usable_guile=checking
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9489 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9490 for guile_version in ${guile_version_list}; do
9491 ${pkg_config} --exists ${guile_version} 2>/dev/null
9492 if test $? != 0; then
9495 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9496 if test $? != 0; then
9497 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9499 new_LIBS=`${pkg_config} --libs ${guile_version}`
9500 if test $? != 0; then
9501 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9503 found_usable_guile=${guile_version}
9506 if test "${found_usable_guile}" = "checking"; then
9507 if test "${flag_errors}" = "yes"; then
9508 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9510 found_usable_guile=no
9513 if test "${found_usable_guile}" != no; then
9514 save_CPPFLAGS=$CPPFLAGS
9516 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9517 LIBS="$LIBS $new_LIBS"
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 #include "libguile.h"
9529 if ac_fn_c_try_link "$LINENO"; then :
9531 GUILE_CPPFLAGS=$new_CPPFLAGS
9532 GUILE_LIBS=$new_LIBS
9534 found_usable_guile=no
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9539 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9541 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9546 CPPFLAGS=$save_CPPFLAGS
9548 if test "${found_usable_guile}" = no; then
9549 if test "${flag_errors}" = yes; then
9550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9552 as_fn_error "linking guile version ${guile_version} test program failed
9553 See \`config.log' for more details." "$LINENO" 5; }
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9558 $as_echo "${found_usable_guile}" >&6; }
9563 if test "${pkg_config_prog_path}" = "missing"; then
9564 as_fn_error "pkg-config not found" "$LINENO" 5
9567 pkg_config=${pkg_config_prog_path}
9568 guile_version_list=${try_guile_versions}
9571 found_usable_guile=checking
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9573 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9574 for guile_version in ${guile_version_list}; do
9575 ${pkg_config} --exists ${guile_version} 2>/dev/null
9576 if test $? != 0; then
9579 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9580 if test $? != 0; then
9581 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9583 new_LIBS=`${pkg_config} --libs ${guile_version}`
9584 if test $? != 0; then
9585 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9587 found_usable_guile=${guile_version}
9590 if test "${found_usable_guile}" = "checking"; then
9591 if test "${flag_errors}" = "yes"; then
9592 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9594 found_usable_guile=no
9597 if test "${found_usable_guile}" != no; then
9598 save_CPPFLAGS=$CPPFLAGS
9600 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9601 LIBS="$LIBS $new_LIBS"
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 #include "libguile.h"
9613 if ac_fn_c_try_link "$LINENO"; then :
9615 GUILE_CPPFLAGS=$new_CPPFLAGS
9616 GUILE_LIBS=$new_LIBS
9618 found_usable_guile=no
9620 rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
9622 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9623 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9625 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9630 CPPFLAGS=$save_CPPFLAGS
9632 if test "${found_usable_guile}" = no; then
9633 if test "${flag_errors}" = yes; then
9634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9636 as_fn_error "linking guile version ${guile_version} test program failed
9637 See \`config.log' for more details." "$LINENO" 5; }
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9642 $as_echo "${found_usable_guile}" >&6; }
9646 if test -x "${with_guile}"; then
9648 pkg_config=${with_guile}
9649 guile_version_list=${try_guile_versions}
9652 found_usable_guile=checking
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9654 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9655 for guile_version in ${guile_version_list}; do
9656 ${pkg_config} --exists ${guile_version} 2>/dev/null
9657 if test $? != 0; then
9660 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9661 if test $? != 0; then
9662 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9664 new_LIBS=`${pkg_config} --libs ${guile_version}`
9665 if test $? != 0; then
9666 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9668 found_usable_guile=${guile_version}
9671 if test "${found_usable_guile}" = "checking"; then
9672 if test "${flag_errors}" = "yes"; then
9673 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9675 found_usable_guile=no
9678 if test "${found_usable_guile}" != no; then
9679 save_CPPFLAGS=$CPPFLAGS
9681 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9682 LIBS="$LIBS $new_LIBS"
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9685 #include "libguile.h"
9694 if ac_fn_c_try_link "$LINENO"; then :
9696 GUILE_CPPFLAGS=$new_CPPFLAGS
9697 GUILE_LIBS=$new_LIBS
9699 found_usable_guile=no
9701 rm -f core conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9704 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9706 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9711 CPPFLAGS=$save_CPPFLAGS
9713 if test "${found_usable_guile}" = no; then
9714 if test "${flag_errors}" = yes; then
9715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9717 as_fn_error "linking guile version ${guile_version} test program failed
9718 See \`config.log' for more details." "$LINENO" 5; }
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9723 $as_echo "${found_usable_guile}" >&6; }
9726 as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
9730 # Disallow --with=guile="" and --with-guile=foo/bar.
9731 as_fn_error "invalid value for --with-guile" "$LINENO" 5
9734 # A space separate list of guile versions to try, in order.
9735 if test "${pkg_config_prog_path}" = "missing"; then
9736 as_fn_error "pkg-config not found" "$LINENO" 5
9739 pkg_config=${pkg_config_prog_path}
9740 guile_version_list=${with_guile}
9743 found_usable_guile=checking
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9745 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9746 for guile_version in ${guile_version_list}; do
9747 ${pkg_config} --exists ${guile_version} 2>/dev/null
9748 if test $? != 0; then
9751 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9752 if test $? != 0; then
9753 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9755 new_LIBS=`${pkg_config} --libs ${guile_version}`
9756 if test $? != 0; then
9757 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9759 found_usable_guile=${guile_version}
9762 if test "${found_usable_guile}" = "checking"; then
9763 if test "${flag_errors}" = "yes"; then
9764 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9766 found_usable_guile=no
9769 if test "${found_usable_guile}" != no; then
9770 save_CPPFLAGS=$CPPFLAGS
9772 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9773 LIBS="$LIBS $new_LIBS"
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 #include "libguile.h"
9785 if ac_fn_c_try_link "$LINENO"; then :
9787 GUILE_CPPFLAGS=$new_CPPFLAGS
9788 GUILE_LIBS=$new_LIBS
9790 found_usable_guile=no
9792 rm -f core conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9795 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9797 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9802 CPPFLAGS=$save_CPPFLAGS
9804 if test "${found_usable_guile}" = no; then
9805 if test "${flag_errors}" = yes; then
9806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9808 as_fn_error "linking guile version ${guile_version} test program failed
9809 See \`config.log' for more details." "$LINENO" 5; }
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9814 $as_echo "${found_usable_guile}" >&6; }
9819 if test "${have_libguile}" != no; then
9820 case "${with_guile}" in
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9824 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9825 if test "${ac_cv_guild_program_name+set}" = set; then :
9826 $as_echo_n "(cached) " >&6
9828 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
9830 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9831 # the 'guild' and 'bindir' variables. In that case, try to guess
9832 # what the program name is, at the risk of getting it wrong if
9833 # Guile was configured with '--program-suffix' or similar.
9834 if test "x$ac_cv_guild_program_name" = "x"; then
9835 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9836 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9841 $as_echo "$ac_cv_guild_program_name" >&6; }
9843 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9844 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9847 GUILD="$ac_cv_guild_program_name"
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9854 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9855 if test "${ac_cv_guild_program_name+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9858 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9860 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9861 # the 'guild' and 'bindir' variables. In that case, try to guess
9862 # what the program name is, at the risk of getting it wrong if
9863 # Guile was configured with '--program-suffix' or similar.
9864 if test "x$ac_cv_guild_program_name" = "x"; then
9865 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9866 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9871 $as_echo "$ac_cv_guild_program_name" >&6; }
9873 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9874 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9877 GUILD="$ac_cv_guild_program_name"
9884 if test "$cross_compiling" = no; then
9887 GUILD_TARGET_FLAG="--target=$host"
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9894 $as_echo_n "checking whether guild supports this host... " >&6; }
9895 if test "${ac_cv_guild_ok+set}" = set; then :
9896 $as_echo_n "(cached) " >&6
9898 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9899 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9906 $as_echo "$ac_cv_guild_ok" >&6; }
9908 if test "$ac_cv_guild_ok" = no; then
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9911 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9915 if test "${have_libguile}" != no; then
9917 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9919 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9920 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9921 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9922 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
9923 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9926 save_CPPFLAGS="$CPPFLAGS"
9928 CPPFLAGS="$GUILE_CPPFLAGS"
9929 for ac_func in scm_new_smob
9931 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9932 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
9933 cat >>confdefs.h <<_ACEOF
9934 #define HAVE_SCM_NEW_SMOB 1
9941 CPPFLAGS="$save_CPPFLAGS"
9943 # Even if Guile support is not compiled in, we need to have these files
9945 CONFIG_OBS="$CONFIG_OBS guile.o"
9946 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
9950 if test "${have_libguile}" != no; then
9952 HAVE_GUILE_FALSE='#'
9959 # --------------------- #
9960 # Check for libmcheck. #
9961 # --------------------- #
9963 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9964 # but turn it off if Python is enabled with threads, since -lmcheck is
9965 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9967 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
9968 && $development; then
9969 libmcheck_default=yes
9971 libmcheck_default=no
9974 # Check whether --enable-libmcheck was given.
9975 if test "${enable_libmcheck+set}" = set; then :
9976 enableval=$enable_libmcheck; case "${enableval}" in
9977 yes | y) ENABLE_LIBMCHECK="yes" ;;
9978 no | n) ENABLE_LIBMCHECK="no" ;;
9979 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9984 if test -z "${ENABLE_LIBMCHECK}"; then
9985 ENABLE_LIBMCHECK=${libmcheck_default}
9988 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9990 $as_echo_n "checking for main in -lmcheck... " >&6; }
9991 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9992 $as_echo_n "(cached) " >&6
9994 ac_check_lib_save_LIBS=$LIBS
9995 LIBS="-lmcheck $LIBS"
9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
10008 if ac_fn_c_try_link "$LINENO"; then :
10009 ac_cv_lib_mcheck_main=yes
10011 ac_cv_lib_mcheck_main=no
10013 rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
10015 LIBS=$ac_check_lib_save_LIBS
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
10018 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
10019 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
10020 cat >>confdefs.h <<_ACEOF
10021 #define HAVE_LIBMCHECK 1
10024 LIBS="-lmcheck $LIBS"
10031 if test "$ENABLE_LIBMCHECK" = "yes" \
10032 -a "${have_libpython}" != "no" \
10033 -a "${python_has_threads}" = "yes" ; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
10035 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
10039 # Check whether --with-intel_pt was given.
10040 if test "${with_intel_pt+set}" = set; then :
10041 withval=$with_intel_pt;
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10047 $as_echo_n "checking whether to use intel pt... " >&6; }
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10049 $as_echo "$with_intel_pt" >&6; }
10051 if test "${with_intel_pt}" = no; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
10053 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10059 #include <linux/perf_event.h>
10060 #ifndef PERF_ATTR_SIZE_VER5
10065 if ac_fn_c_try_cpp "$LINENO"; then :
10070 rm -f conftest.err conftest.$ac_ext
10071 if test "$perf_event" != yes; then
10072 if test "$with_intel_pt" = yes; then
10073 as_fn_error "linux/perf_event.h missing or too old" "$LINENO" 5
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10076 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10090 acl_save_prefix="$prefix"
10091 prefix="$acl_final_prefix"
10092 acl_save_exec_prefix="$exec_prefix"
10093 exec_prefix="$acl_final_exec_prefix"
10095 eval additional_includedir=\"$includedir\"
10096 eval additional_libdir=\"$libdir\"
10098 exec_prefix="$acl_save_exec_prefix"
10099 prefix="$acl_save_prefix"
10102 # Check whether --with-libipt-prefix was given.
10103 if test "${with_libipt_prefix+set}" = set; then :
10104 withval=$with_libipt_prefix;
10105 if test "X$withval" = "Xno"; then
10108 if test "X$withval" = "X"; then
10110 acl_save_prefix="$prefix"
10111 prefix="$acl_final_prefix"
10112 acl_save_exec_prefix="$exec_prefix"
10113 exec_prefix="$acl_final_exec_prefix"
10115 eval additional_includedir=\"$includedir\"
10116 eval additional_libdir=\"$libdir\"
10118 exec_prefix="$acl_save_exec_prefix"
10119 prefix="$acl_save_prefix"
10122 additional_includedir="$withval/include"
10123 additional_libdir="$withval/lib"
10134 names_already_handled=
10135 names_next_round='ipt '
10136 while test -n "$names_next_round"; do
10137 names_this_round="$names_next_round"
10139 for name in $names_this_round; do
10141 for n in $names_already_handled; do
10142 if test "$n" = "$name"; then
10143 already_handled=yes
10147 if test -z "$already_handled"; then
10148 names_already_handled="$names_already_handled $name"
10149 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10150 eval value=\"\$HAVE_LIB$uppername\"
10151 if test -n "$value"; then
10152 if test "$value" = yes; then
10153 eval value=\"\$LIB$uppername\"
10154 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
10155 eval value=\"\$LTLIB$uppername\"
10156 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
10165 if test $use_additional = yes; then
10166 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10167 found_dir="$additional_libdir"
10168 found_so="$additional_libdir/lib$name.$shlibext"
10169 if test -f "$additional_libdir/lib$name.la"; then
10170 found_la="$additional_libdir/lib$name.la"
10173 if test -f "$additional_libdir/lib$name.$libext"; then
10174 found_dir="$additional_libdir"
10175 found_a="$additional_libdir/lib$name.$libext"
10176 if test -f "$additional_libdir/lib$name.la"; then
10177 found_la="$additional_libdir/lib$name.la"
10182 if test "X$found_dir" = "X"; then
10183 for x in $LDFLAGS $LTLIBIPT; do
10185 acl_save_prefix="$prefix"
10186 prefix="$acl_final_prefix"
10187 acl_save_exec_prefix="$exec_prefix"
10188 exec_prefix="$acl_final_exec_prefix"
10190 exec_prefix="$acl_save_exec_prefix"
10191 prefix="$acl_save_prefix"
10195 dir=`echo "X$x" | sed -e 's/^X-L//'`
10196 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10198 found_so="$dir/lib$name.$shlibext"
10199 if test -f "$dir/lib$name.la"; then
10200 found_la="$dir/lib$name.la"
10203 if test -f "$dir/lib$name.$libext"; then
10205 found_a="$dir/lib$name.$libext"
10206 if test -f "$dir/lib$name.la"; then
10207 found_la="$dir/lib$name.la"
10213 if test "X$found_dir" != "X"; then
10218 if test "X$found_dir" != "X"; then
10219 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
10220 if test "X$found_so" != "X"; then
10221 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10222 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10225 for x in $ltrpathdirs; do
10226 if test "X$x" = "X$found_dir"; then
10231 if test -z "$haveit"; then
10232 ltrpathdirs="$ltrpathdirs $found_dir"
10234 if test "$hardcode_direct" = yes; then
10235 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10237 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10238 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10240 for x in $rpathdirs; do
10241 if test "X$x" = "X$found_dir"; then
10246 if test -z "$haveit"; then
10247 rpathdirs="$rpathdirs $found_dir"
10251 for x in $LDFLAGS $LIBIPT; do
10253 acl_save_prefix="$prefix"
10254 prefix="$acl_final_prefix"
10255 acl_save_exec_prefix="$exec_prefix"
10256 exec_prefix="$acl_final_exec_prefix"
10258 exec_prefix="$acl_save_exec_prefix"
10259 prefix="$acl_save_prefix"
10261 if test "X$x" = "X-L$found_dir"; then
10266 if test -z "$haveit"; then
10267 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10269 if test "$hardcode_minus_L" != no; then
10270 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10272 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10278 if test "X$found_a" != "X"; then
10279 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
10281 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10284 additional_includedir=
10285 case "$found_dir" in
10287 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10288 additional_includedir="$basedir/include"
10291 if test "X$additional_includedir" != "X"; then
10292 if test "X$additional_includedir" != "X/usr/include"; then
10294 if test "X$additional_includedir" = "X/usr/local/include"; then
10295 if test -n "$GCC"; then
10297 linux*) haveit=yes;;
10301 if test -z "$haveit"; then
10302 for x in $CPPFLAGS $INCIPT; do
10304 acl_save_prefix="$prefix"
10305 prefix="$acl_final_prefix"
10306 acl_save_exec_prefix="$exec_prefix"
10307 exec_prefix="$acl_final_exec_prefix"
10309 exec_prefix="$acl_save_exec_prefix"
10310 prefix="$acl_save_prefix"
10312 if test "X$x" = "X-I$additional_includedir"; then
10317 if test -z "$haveit"; then
10318 if test -d "$additional_includedir"; then
10319 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10325 if test -n "$found_la"; then
10326 save_libdir="$libdir"
10327 case "$found_la" in
10328 */* | *\\*) . "$found_la" ;;
10329 *) . "./$found_la" ;;
10331 libdir="$save_libdir"
10332 for dep in $dependency_libs; do
10335 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10336 if test "X$additional_libdir" != "X/usr/lib"; then
10338 if test "X$additional_libdir" = "X/usr/local/lib"; then
10339 if test -n "$GCC"; then
10341 linux*) haveit=yes;;
10345 if test -z "$haveit"; then
10347 for x in $LDFLAGS $LIBIPT; do
10349 acl_save_prefix="$prefix"
10350 prefix="$acl_final_prefix"
10351 acl_save_exec_prefix="$exec_prefix"
10352 exec_prefix="$acl_final_exec_prefix"
10354 exec_prefix="$acl_save_exec_prefix"
10355 prefix="$acl_save_prefix"
10357 if test "X$x" = "X-L$additional_libdir"; then
10362 if test -z "$haveit"; then
10363 if test -d "$additional_libdir"; then
10364 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10368 for x in $LDFLAGS $LTLIBIPT; do
10370 acl_save_prefix="$prefix"
10371 prefix="$acl_final_prefix"
10372 acl_save_exec_prefix="$exec_prefix"
10373 exec_prefix="$acl_final_exec_prefix"
10375 exec_prefix="$acl_save_exec_prefix"
10376 prefix="$acl_save_prefix"
10378 if test "X$x" = "X-L$additional_libdir"; then
10383 if test -z "$haveit"; then
10384 if test -d "$additional_libdir"; then
10385 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10392 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10393 if test "$enable_rpath" != no; then
10395 for x in $rpathdirs; do
10396 if test "X$x" = "X$dir"; then
10401 if test -z "$haveit"; then
10402 rpathdirs="$rpathdirs $dir"
10405 for x in $ltrpathdirs; do
10406 if test "X$x" = "X$dir"; then
10411 if test -z "$haveit"; then
10412 ltrpathdirs="$ltrpathdirs $dir"
10417 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10420 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10423 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10424 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10430 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10431 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10437 if test "X$rpathdirs" != "X"; then
10438 if test -n "$hardcode_libdir_separator"; then
10440 for found_dir in $rpathdirs; do
10441 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10443 acl_save_libdir="$libdir"
10445 eval flag=\"$hardcode_libdir_flag_spec\"
10446 libdir="$acl_save_libdir"
10447 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10449 for found_dir in $rpathdirs; do
10450 acl_save_libdir="$libdir"
10451 libdir="$found_dir"
10452 eval flag=\"$hardcode_libdir_flag_spec\"
10453 libdir="$acl_save_libdir"
10454 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10458 if test "X$ltrpathdirs" != "X"; then
10459 for found_dir in $ltrpathdirs; do
10460 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10465 ac_save_CPPFLAGS="$CPPFLAGS"
10467 for element in $INCIPT; do
10469 for x in $CPPFLAGS; do
10471 acl_save_prefix="$prefix"
10472 prefix="$acl_final_prefix"
10473 acl_save_exec_prefix="$exec_prefix"
10474 exec_prefix="$acl_final_exec_prefix"
10476 exec_prefix="$acl_save_exec_prefix"
10477 prefix="$acl_save_prefix"
10479 if test "X$x" = "X$element"; then
10484 if test -z "$haveit"; then
10485 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10491 $as_echo_n "checking for libipt... " >&6; }
10492 if test "${ac_cv_libipt+set}" = set; then :
10493 $as_echo_n "(cached) " >&6
10496 ac_save_LIBS="$LIBS"
10497 LIBS="$LIBS $LIBIPT"
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10500 #include "intel-pt.h"
10504 pt_insn_alloc_decoder (0);
10509 if ac_fn_c_try_link "$LINENO"; then :
10514 rm -f core conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10516 LIBS="$ac_save_LIBS"
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10520 $as_echo "$ac_cv_libipt" >&6; }
10521 if test "$ac_cv_libipt" = yes; then
10524 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10527 $as_echo_n "checking how to link with libipt... " >&6; }
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10529 $as_echo "$LIBIPT" >&6; }
10532 CPPFLAGS="$ac_save_CPPFLAGS"
10542 if test "$HAVE_LIBIPT" != yes; then
10543 if test "$with_intel_pt" = yes; then
10544 as_fn_error "libipt is missing or unusable" "$LINENO" 5
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10547 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10552 # ------------------------- #
10553 # Checks for header files. #
10554 # ------------------------- #
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10557 $as_echo_n "checking for ANSI C header files... " >&6; }
10558 if test "${ac_cv_header_stdc+set}" = set; then :
10559 $as_echo_n "(cached) " >&6
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #include <stdlib.h>
10564 #include <stdarg.h>
10565 #include <string.h>
10576 if ac_fn_c_try_compile "$LINENO"; then :
10577 ac_cv_header_stdc=yes
10579 ac_cv_header_stdc=no
10581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10583 if test $ac_cv_header_stdc = yes; then
10584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10587 #include <string.h>
10590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10591 $EGREP "memchr" >/dev/null 2>&1; then :
10594 ac_cv_header_stdc=no
10600 if test $ac_cv_header_stdc = yes; then
10601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10604 #include <stdlib.h>
10607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10608 $EGREP "free" >/dev/null 2>&1; then :
10611 ac_cv_header_stdc=no
10617 if test $ac_cv_header_stdc = yes; then
10618 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10619 if test "$cross_compiling" = yes; then :
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10625 #include <stdlib.h>
10626 #if ((' ' & 0x0FF) == 0x020)
10627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10630 # define ISLOWER(c) \
10631 (('a' <= (c) && (c) <= 'i') \
10632 || ('j' <= (c) && (c) <= 'r') \
10633 || ('s' <= (c) && (c) <= 'z'))
10634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10642 for (i = 0; i < 256; i++)
10643 if (XOR (islower (i), ISLOWER (i))
10644 || toupper (i) != TOUPPER (i))
10649 if ac_fn_c_try_run "$LINENO"; then :
10652 ac_cv_header_stdc=no
10654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10655 conftest.$ac_objext conftest.beam conftest.$ac_ext
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10661 $as_echo "$ac_cv_header_stdc" >&6; }
10662 if test $ac_cv_header_stdc = yes; then
10664 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10668 # elf_hp.h is for HP/UX 64-bit shared library support.
10669 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
10672 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
10673 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
10674 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
10675 termios.h termio.h \
10679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10680 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10681 eval as_val=\$$as_ac_Header
10682 if test "x$as_val" = x""yes; then :
10683 cat >>confdefs.h <<_ACEOF
10684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10691 for ac_header in sys/proc.h
10693 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10694 # include <sys/param.h>
10698 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
10699 cat >>confdefs.h <<_ACEOF
10700 #define HAVE_SYS_PROC_H 1
10707 for ac_header in sys/user.h
10709 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10710 # include <sys/param.h>
10714 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
10715 cat >>confdefs.h <<_ACEOF
10716 #define HAVE_SYS_USER_H 1
10724 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10725 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10726 # think that we don't have <curses.h> if we're using GCC.
10729 if test "$GCC" = yes; then
10731 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10735 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
10737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10738 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10739 eval as_val=\$$as_ac_Header
10740 if test "x$as_val" = x""yes; then :
10741 cat >>confdefs.h <<_ACEOF
10742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10749 for ac_header in term.h
10751 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10752 # include <curses.h>
10756 if test "x$ac_cv_header_term_h" = x""yes; then :
10757 cat >>confdefs.h <<_ACEOF
10758 #define HAVE_TERM_H 1
10766 # ------------------------- #
10767 # Checks for declarations. #
10768 # ------------------------- #
10771 # Check for presence and size of long long.
10772 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10773 if test "x$ac_cv_type_long_long" = x""yes; then :
10775 cat >>confdefs.h <<_ACEOF
10776 #define HAVE_LONG_LONG 1
10779 # The cast to long int works around a bug in the HP C Compiler
10780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10782 # This bug is HP SR number 8606223364.
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10784 $as_echo_n "checking size of long long... " >&6; }
10785 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
10788 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10791 if test "$ac_cv_type_long_long" = yes; then
10792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10794 { as_fn_set_status 77
10795 as_fn_error "cannot compute sizeof (long long)
10796 See \`config.log' for more details." "$LINENO" 5; }; }
10798 ac_cv_sizeof_long_long=0
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10804 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10808 cat >>confdefs.h <<_ACEOF
10809 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10816 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
10817 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
10823 cat >>confdefs.h <<_ACEOF
10824 #define HAVE_DECL_BASENAME $ac_have_decl
10826 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10827 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
10833 cat >>confdefs.h <<_ACEOF
10834 #define HAVE_DECL_FFS $ac_have_decl
10836 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10837 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
10843 cat >>confdefs.h <<_ACEOF
10844 #define HAVE_DECL_ASPRINTF $ac_have_decl
10846 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10847 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
10853 cat >>confdefs.h <<_ACEOF
10854 #define HAVE_DECL_VASPRINTF $ac_have_decl
10856 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10857 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10863 cat >>confdefs.h <<_ACEOF
10864 #define HAVE_DECL_SNPRINTF $ac_have_decl
10866 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10867 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
10873 cat >>confdefs.h <<_ACEOF
10874 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10877 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10878 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
10884 cat >>confdefs.h <<_ACEOF
10885 #define HAVE_DECL_STRTOL $ac_have_decl
10887 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10888 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
10894 cat >>confdefs.h <<_ACEOF
10895 #define HAVE_DECL_STRTOUL $ac_have_decl
10897 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10898 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
10904 cat >>confdefs.h <<_ACEOF
10905 #define HAVE_DECL_STRTOLL $ac_have_decl
10907 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10908 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
10914 cat >>confdefs.h <<_ACEOF
10915 #define HAVE_DECL_STRTOULL $ac_have_decl
10918 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10919 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
10925 cat >>confdefs.h <<_ACEOF
10926 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10931 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10932 if test "x$ac_cv_have_decl_free" = x""yes; then :
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_DECL_FREE $ac_have_decl
10941 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10942 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
10948 cat >>confdefs.h <<_ACEOF
10949 #define HAVE_DECL_MALLOC $ac_have_decl
10951 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10952 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
10958 cat >>confdefs.h <<_ACEOF
10959 #define HAVE_DECL_REALLOC $ac_have_decl
10961 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10962 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10968 cat >>confdefs.h <<_ACEOF
10969 #define HAVE_DECL_SNPRINTF $ac_have_decl
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10974 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10975 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10980 #include <locale.h>
10989 if ac_fn_c_try_link "$LINENO"; then :
10990 am_cv_val_LC_MESSAGES=yes
10992 am_cv_val_LC_MESSAGES=no
10994 rm -f core conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10998 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10999 if test $am_cv_val_LC_MESSAGES = yes; then
11001 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11006 # ----------------------- #
11007 # Checks for structures. #
11008 # ----------------------- #
11010 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11011 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11013 cat >>confdefs.h <<_ACEOF
11014 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11019 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11020 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11022 cat >>confdefs.h <<_ACEOF
11023 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11030 # ------------------ #
11031 # Checks for types. #
11032 # ------------------ #
11034 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11035 #include <sys/socket.h>
11038 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11040 cat >>confdefs.h <<_ACEOF
11041 #define HAVE_SOCKLEN_T 1
11048 # ------------------------------------- #
11049 # Checks for compiler characteristics. #
11050 # ------------------------------------- #
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11053 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11054 if test "${ac_cv_c_const+set}" = set; then :
11055 $as_echo_n "(cached) " >&6
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11063 /* FIXME: Include the comments suggested by Paul. */
11064 #ifndef __cplusplus
11065 /* Ultrix mips cc rejects this. */
11066 typedef int charset[2];
11068 /* SunOS 4.1.1 cc rejects this. */
11069 char const *const *pcpcc;
11071 /* NEC SVR4.0.2 mips cc rejects this. */
11072 struct point {int x, y;};
11073 static struct point const zero = {0,0};
11074 /* AIX XL C 1.02.0.0 rejects this.
11075 It does not let you subtract one const X* pointer from another in
11076 an arm of an if-expression whose if-part is not a constant
11078 const char *g = "string";
11079 pcpcc = &g + (g ? g-g : 0);
11080 /* HPUX 7.0 cc rejects these. */
11082 ppc = (char**) pcpcc;
11083 pcpcc = (char const *const *) ppc;
11084 { /* SCO 3.2v4 cc rejects this. */
11086 char const *s = 0 ? (char *) 0 : (char const *) 0;
11091 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11092 int x[] = {25, 17};
11093 const int *foo = &x[0];
11096 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11097 typedef const int *iptr;
11101 { /* AIX XL C 1.02.0.0 rejects this saying
11102 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11103 struct s { int j; const int *ap[3]; };
11104 struct s *b; b->j = 5;
11106 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11107 const int foo = 10;
11108 if (!foo) return 0;
11110 return !cs[0] && !zero.x;
11117 if ac_fn_c_try_compile "$LINENO"; then :
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11125 $as_echo "$ac_cv_c_const" >&6; }
11126 if test $ac_cv_c_const = no; then
11128 $as_echo "#define const /**/" >>confdefs.h
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11133 $as_echo_n "checking for inline... " >&6; }
11134 if test "${ac_cv_c_inline+set}" = set; then :
11135 $as_echo_n "(cached) " >&6
11138 for ac_kw in inline __inline__ __inline; do
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11141 #ifndef __cplusplus
11143 static $ac_kw foo_t static_foo () {return 0; }
11144 $ac_kw foo_t foo () {return 0; }
11148 if ac_fn_c_try_compile "$LINENO"; then :
11149 ac_cv_c_inline=$ac_kw
11151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152 test "$ac_cv_c_inline" != no && break
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11157 $as_echo "$ac_cv_c_inline" >&6; }
11159 case $ac_cv_c_inline in
11162 case $ac_cv_c_inline in
11164 *) ac_val=$ac_cv_c_inline;;
11166 cat >>confdefs.h <<_ACEOF
11167 #ifndef __cplusplus
11168 #define inline $ac_val
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11175 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11176 if test "${ac_cv_c_bigendian+set}" = set; then :
11177 $as_echo_n "(cached) " >&6
11179 ac_cv_c_bigendian=unknown
11180 # See if we're dealing with a universal compiler.
11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11183 #ifndef __APPLE_CC__
11184 not a universal capable compiler
11189 if ac_fn_c_try_compile "$LINENO"; then :
11191 # Check for potential -arch flags. It is not universal unless
11192 # there are at least two -arch flags with different values.
11195 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11196 if test -n "$ac_prev"; then
11198 i?86 | x86_64 | ppc | ppc64)
11199 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11202 ac_cv_c_bigendian=universal
11208 elif test "x$ac_word" = "x-arch"; then
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 if test $ac_cv_c_bigendian = unknown; then
11215 # See if sys/param.h defines the BYTE_ORDER macro.
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11218 #include <sys/types.h>
11219 #include <sys/param.h>
11224 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11225 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11227 bogus endian macros
11234 if ac_fn_c_try_compile "$LINENO"; then :
11235 # It does; now see whether it defined to BIG_ENDIAN or not.
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238 #include <sys/types.h>
11239 #include <sys/param.h>
11244 #if BYTE_ORDER != BIG_ENDIAN
11252 if ac_fn_c_try_compile "$LINENO"; then :
11253 ac_cv_c_bigendian=yes
11255 ac_cv_c_bigendian=no
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11261 if test $ac_cv_c_bigendian = unknown; then
11262 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11265 #include <limits.h>
11270 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11271 bogus endian macros
11278 if ac_fn_c_try_compile "$LINENO"; then :
11279 # It does; now see whether it defined to _BIG_ENDIAN or not.
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11282 #include <limits.h>
11287 #ifndef _BIG_ENDIAN
11295 if ac_fn_c_try_compile "$LINENO"; then :
11296 ac_cv_c_bigendian=yes
11298 ac_cv_c_bigendian=no
11300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11304 if test $ac_cv_c_bigendian = unknown; then
11305 # Compile a test program.
11306 if test "$cross_compiling" = yes; then :
11307 # Try to guess by grepping values from an object file.
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11310 short int ascii_mm[] =
11311 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11312 short int ascii_ii[] =
11313 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11314 int use_ascii (int i) {
11315 return ascii_mm[i] + ascii_ii[i];
11317 short int ebcdic_ii[] =
11318 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11319 short int ebcdic_mm[] =
11320 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11321 int use_ebcdic (int i) {
11322 return ebcdic_mm[i] + ebcdic_ii[i];
11329 return use_ascii (foo) == use_ebcdic (foo);
11334 if ac_fn_c_try_compile "$LINENO"; then :
11335 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11336 ac_cv_c_bigendian=yes
11338 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11339 if test "$ac_cv_c_bigendian" = unknown; then
11340 ac_cv_c_bigendian=no
11342 # finding both strings is unlikely to happen, but who knows?
11343 ac_cv_c_bigendian=unknown
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11351 $ac_includes_default
11356 /* Are we little or big endian? From Harbison&Steele. */
11360 char c[sizeof (long int)];
11363 return u.c[sizeof (long int) - 1] == 1;
11369 if ac_fn_c_try_run "$LINENO"; then :
11370 ac_cv_c_bigendian=no
11372 ac_cv_c_bigendian=yes
11374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11375 conftest.$ac_objext conftest.beam conftest.$ac_ext
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11381 $as_echo "$ac_cv_c_bigendian" >&6; }
11382 case $ac_cv_c_bigendian in #(
11384 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11390 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11394 as_fn_error "unknown endianness
11395 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11399 # ------------------------------ #
11400 # Checks for library functions. #
11401 # ------------------------------ #
11403 for ac_header in stdlib.h unistd.h
11405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11406 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11407 eval as_val=\$$as_ac_Header
11408 if test "x$as_val" = x""yes; then :
11409 cat >>confdefs.h <<_ACEOF
11410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11417 for ac_func in getpagesize
11419 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11420 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11421 cat >>confdefs.h <<_ACEOF
11422 #define HAVE_GETPAGESIZE 1
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11429 $as_echo_n "checking for working mmap... " >&6; }
11430 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11431 $as_echo_n "(cached) " >&6
11433 if test "$cross_compiling" = yes; then :
11434 ac_cv_func_mmap_fixed_mapped=no
11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11438 $ac_includes_default
11439 /* malloc might have been renamed as rpl_malloc. */
11442 /* Thanks to Mike Haertel and Jim Avera for this test.
11443 Here is a matrix of mmap possibilities:
11444 mmap private not fixed
11445 mmap private fixed at somewhere currently unmapped
11446 mmap private fixed at somewhere already mapped
11447 mmap shared not fixed
11448 mmap shared fixed at somewhere currently unmapped
11449 mmap shared fixed at somewhere already mapped
11450 For private mappings, we should verify that changes cannot be read()
11451 back from the file, nor mmap's back from the file at a different
11452 address. (There have been systems where private was not correctly
11453 implemented like the infamous i386 svr4.0, and systems where the
11454 VM page cache was not coherent with the file system buffer cache
11455 like early versions of FreeBSD and possibly contemporary NetBSD.)
11456 For shared mappings, we should conversely verify that changes get
11457 propagated back to all the places they're supposed to be.
11459 Grep wants private fixed already mapped.
11460 The main things grep needs to know about mmap are:
11461 * does it exist and is it safe to write into the mmap'd area
11462 * how to use it (BSD variants) */
11465 #include <sys/mman.h>
11467 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11471 /* This mess was copied from the GNU getpagesize.h. */
11472 #ifndef HAVE_GETPAGESIZE
11473 /* Assume that all systems that can run configure have sys/param.h. */
11474 # ifndef HAVE_SYS_PARAM_H
11475 # define HAVE_SYS_PARAM_H 1
11478 # ifdef _SC_PAGESIZE
11479 # define getpagesize() sysconf(_SC_PAGESIZE)
11480 # else /* no _SC_PAGESIZE */
11481 # ifdef HAVE_SYS_PARAM_H
11482 # include <sys/param.h>
11483 # ifdef EXEC_PAGESIZE
11484 # define getpagesize() EXEC_PAGESIZE
11485 # else /* no EXEC_PAGESIZE */
11487 # define getpagesize() NBPG * CLSIZE
11490 # endif /* no CLSIZE */
11491 # else /* no NBPG */
11493 # define getpagesize() NBPC
11494 # else /* no NBPC */
11496 # define getpagesize() PAGESIZE
11497 # endif /* PAGESIZE */
11498 # endif /* no NBPC */
11499 # endif /* no NBPG */
11500 # endif /* no EXEC_PAGESIZE */
11501 # else /* no HAVE_SYS_PARAM_H */
11502 # define getpagesize() 8192 /* punt totally */
11503 # endif /* no HAVE_SYS_PARAM_H */
11504 # endif /* no _SC_PAGESIZE */
11506 #endif /* no HAVE_GETPAGESIZE */
11511 char *data, *data2, *data3;
11515 pagesize = getpagesize ();
11517 /* First, make a file with some known garbage in it. */
11518 data = (char *) malloc (pagesize);
11521 for (i = 0; i < pagesize; ++i)
11522 *(data + i) = rand ();
11524 fd = creat ("conftest.mmap", 0600);
11527 if (write (fd, data, pagesize) != pagesize)
11531 /* Next, try to mmap the file at a fixed address which already has
11532 something else allocated at it. If we can, also make sure that
11533 we see the same garbage. */
11534 fd = open ("conftest.mmap", O_RDWR);
11537 data2 = (char *) malloc (2 * pagesize);
11540 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11541 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11542 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11544 for (i = 0; i < pagesize; ++i)
11545 if (*(data + i) != *(data2 + i))
11548 /* Finally, make sure that changes to the mapped area do not
11549 percolate back to the file as seen by read(). (This is a bug on
11550 some variants of i386 svr4.0.) */
11551 for (i = 0; i < pagesize; ++i)
11552 *(data2 + i) = *(data2 + i) + 1;
11553 data3 = (char *) malloc (pagesize);
11556 if (read (fd, data3, pagesize) != pagesize)
11558 for (i = 0; i < pagesize; ++i)
11559 if (*(data + i) != *(data3 + i))
11565 if ac_fn_c_try_run "$LINENO"; then :
11566 ac_cv_func_mmap_fixed_mapped=yes
11568 ac_cv_func_mmap_fixed_mapped=no
11570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11571 conftest.$ac_objext conftest.beam conftest.$ac_ext
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11576 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11577 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11579 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11582 rm -f conftest.mmap
11584 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11585 if test "x$ac_cv_type_pid_t" = x""yes; then :
11589 cat >>confdefs.h <<_ACEOF
11595 for ac_header in vfork.h
11597 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11598 if test "x$ac_cv_header_vfork_h" = x""yes; then :
11599 cat >>confdefs.h <<_ACEOF
11600 #define HAVE_VFORK_H 1
11607 for ac_func in fork vfork
11609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11611 eval as_val=\$$as_ac_var
11612 if test "x$as_val" = x""yes; then :
11613 cat >>confdefs.h <<_ACEOF
11614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11620 if test "x$ac_cv_func_fork" = xyes; then
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11622 $as_echo_n "checking for working fork... " >&6; }
11623 if test "${ac_cv_func_fork_works+set}" = set; then :
11624 $as_echo_n "(cached) " >&6
11626 if test "$cross_compiling" = yes; then :
11627 ac_cv_func_fork_works=cross
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631 $ac_includes_default
11636 /* By Ruediger Kuhlmann. */
11637 return fork () < 0;
11643 if ac_fn_c_try_run "$LINENO"; then :
11644 ac_cv_func_fork_works=yes
11646 ac_cv_func_fork_works=no
11648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11649 conftest.$ac_objext conftest.beam conftest.$ac_ext
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11654 $as_echo "$ac_cv_func_fork_works" >&6; }
11657 ac_cv_func_fork_works=$ac_cv_func_fork
11659 if test "x$ac_cv_func_fork_works" = xcross; then
11661 *-*-amigaos* | *-*-msdosdjgpp*)
11662 # Override, as these systems have only a dummy fork() stub
11663 ac_cv_func_fork_works=no
11666 ac_cv_func_fork_works=yes
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11670 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11672 ac_cv_func_vfork_works=$ac_cv_func_vfork
11673 if test "x$ac_cv_func_vfork" = xyes; then
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11675 $as_echo_n "checking for working vfork... " >&6; }
11676 if test "${ac_cv_func_vfork_works+set}" = set; then :
11677 $as_echo_n "(cached) " >&6
11679 if test "$cross_compiling" = yes; then :
11680 ac_cv_func_vfork_works=cross
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684 /* Thanks to Paul Eggert for this test. */
11685 $ac_includes_default
11686 #include <sys/wait.h>
11687 #ifdef HAVE_VFORK_H
11688 # include <vfork.h>
11690 /* On some sparc systems, changes by the child to local and incoming
11691 argument registers are propagated back to the parent. The compiler
11692 is told about this with #include <vfork.h>, but some compilers
11693 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11694 static variable whose address is put into a register that is
11695 clobbered by the vfork. */
11698 sparc_address_test (int arg)
11700 sparc_address_test (arg) int arg;
11703 static pid_t child;
11721 pid_t parent = getpid ();
11724 sparc_address_test (0);
11729 /* Here is another test for sparc vfork register problems. This
11730 test uses lots of local variables, at least as many local
11731 variables as main has allocated so far including compiler
11732 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11733 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11734 reuse the register of parent for one of the local variables,
11735 since it will think that parent can't possibly be used any more
11736 in this routine. Assigning to the local variable will thus
11737 munge parent in the parent process. */
11739 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11740 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11741 /* Convince the compiler that p..p7 are live; otherwise, it might
11742 use the same hardware register for all 8 local variables. */
11743 if (p != p1 || p != p2 || p != p3 || p != p4
11744 || p != p5 || p != p6 || p != p7)
11747 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11748 from child file descriptors. If the child closes a descriptor
11749 before it execs or exits, this munges the parent's descriptor
11750 as well. Test for this by closing stdout in the child. */
11751 _exit(close(fileno(stdout)) != 0);
11756 while (wait(&status) != child)
11759 /* Was there some problem with vforking? */
11762 /* Did the child fail? (This shouldn't happen.) */
11765 /* Did the vfork/compiler bug occur? */
11766 || parent != getpid()
11768 /* Did the file descriptor bug occur? */
11769 || fstat(fileno(stdout), &st) != 0
11774 if ac_fn_c_try_run "$LINENO"; then :
11775 ac_cv_func_vfork_works=yes
11777 ac_cv_func_vfork_works=no
11779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11780 conftest.$ac_objext conftest.beam conftest.$ac_ext
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11785 $as_echo "$ac_cv_func_vfork_works" >&6; }
11788 if test "x$ac_cv_func_fork_works" = xcross; then
11789 ac_cv_func_vfork_works=$ac_cv_func_vfork
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11791 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11794 if test "x$ac_cv_func_vfork_works" = xyes; then
11796 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11800 $as_echo "#define vfork fork" >>confdefs.h
11803 if test "x$ac_cv_func_fork_works" = xyes; then
11805 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11809 for ac_func in getauxval getrusage getuid getgid \
11810 pipe poll pread pread64 pwrite resize_term \
11811 sbrk setpgid setpgrp setsid \
11812 sigaction sigprocmask sigsetmask socketpair \
11813 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11814 setrlimit getrlimit posix_madvise waitpid \
11815 ptrace64 sigaltstack mkdtemp setns
11817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11819 eval as_val=\$$as_ac_var
11820 if test "x$as_val" = x""yes; then :
11821 cat >>confdefs.h <<_ACEOF
11822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11830 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11831 if test "${am_cv_langinfo_codeset+set}" = set; then :
11832 $as_echo_n "(cached) " >&6
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11836 #include <langinfo.h>
11840 char* cs = nl_langinfo(CODESET);
11845 if ac_fn_c_try_link "$LINENO"; then :
11846 am_cv_langinfo_codeset=yes
11848 am_cv_langinfo_codeset=no
11850 rm -f core conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11855 $as_echo "$am_cv_langinfo_codeset" >&6; }
11856 if test $am_cv_langinfo_codeset = yes; then
11858 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11864 $as_echo_n "checking for ANSI C header files... " >&6; }
11865 if test "${ac_cv_header_stdc+set}" = set; then :
11866 $as_echo_n "(cached) " >&6
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11870 #include <stdlib.h>
11871 #include <stdarg.h>
11872 #include <string.h>
11883 if ac_fn_c_try_compile "$LINENO"; then :
11884 ac_cv_header_stdc=yes
11886 ac_cv_header_stdc=no
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 if test $ac_cv_header_stdc = yes; then
11891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11894 #include <string.h>
11897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11898 $EGREP "memchr" >/dev/null 2>&1; then :
11901 ac_cv_header_stdc=no
11907 if test $ac_cv_header_stdc = yes; then
11908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911 #include <stdlib.h>
11914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11915 $EGREP "free" >/dev/null 2>&1; then :
11918 ac_cv_header_stdc=no
11924 if test $ac_cv_header_stdc = yes; then
11925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11926 if test "$cross_compiling" = yes; then :
11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h. */
11932 #include <stdlib.h>
11933 #if ((' ' & 0x0FF) == 0x020)
11934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11937 # define ISLOWER(c) \
11938 (('a' <= (c) && (c) <= 'i') \
11939 || ('j' <= (c) && (c) <= 'r') \
11940 || ('s' <= (c) && (c) <= 'z'))
11941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11949 for (i = 0; i < 256; i++)
11950 if (XOR (islower (i), ISLOWER (i))
11951 || toupper (i) != TOUPPER (i))
11956 if ac_fn_c_try_run "$LINENO"; then :
11959 ac_cv_header_stdc=no
11961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11962 conftest.$ac_objext conftest.beam conftest.$ac_ext
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11968 $as_echo "$ac_cv_header_stdc" >&6; }
11969 if test $ac_cv_header_stdc = yes; then
11971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11975 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11976 # for constant arguments. Useless!
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11978 $as_echo_n "checking for working alloca.h... " >&6; }
11979 if test "${ac_cv_working_alloca_h+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984 #include <alloca.h>
11988 char *p = (char *) alloca (2 * sizeof (int));
11994 if ac_fn_c_try_link "$LINENO"; then :
11995 ac_cv_working_alloca_h=yes
11997 ac_cv_working_alloca_h=no
11999 rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12003 $as_echo "$ac_cv_working_alloca_h" >&6; }
12004 if test $ac_cv_working_alloca_h = yes; then
12006 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12011 $as_echo_n "checking for alloca... " >&6; }
12012 if test "${ac_cv_func_alloca_works+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12018 # define alloca __builtin_alloca
12021 # include <malloc.h>
12022 # define alloca _alloca
12024 # ifdef HAVE_ALLOCA_H
12025 # include <alloca.h>
12030 # ifndef alloca /* predefined by HP cc +Olibcalls */
12041 char *p = (char *) alloca (1);
12047 if ac_fn_c_try_link "$LINENO"; then :
12048 ac_cv_func_alloca_works=yes
12050 ac_cv_func_alloca_works=no
12052 rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12056 $as_echo "$ac_cv_func_alloca_works" >&6; }
12058 if test $ac_cv_func_alloca_works = yes; then
12060 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12063 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12064 # that cause trouble. Some versions do not even contain alloca or
12065 # contain a buggy version. If you still want to use their alloca,
12066 # use ar to extract alloca.o from them instead of compiling alloca.c.
12068 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12070 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12074 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12075 if test "${ac_cv_os_cray+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 #if defined CRAY && ! defined CRAY2
12087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12088 $EGREP "webecray" >/dev/null 2>&1; then :
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12097 $as_echo "$ac_cv_os_cray" >&6; }
12098 if test $ac_cv_os_cray = yes; then
12099 for ac_func in _getb67 GETB67 getb67; do
12100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12102 eval as_val=\$$as_ac_var
12103 if test "x$as_val" = x""yes; then :
12105 cat >>confdefs.h <<_ACEOF
12106 #define CRAY_STACKSEG_END $ac_func
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12116 $as_echo_n "checking stack direction for C alloca... " >&6; }
12117 if test "${ac_cv_c_stack_direction+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12120 if test "$cross_compiling" = yes; then :
12121 ac_cv_c_stack_direction=0
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 $ac_includes_default
12127 find_stack_direction ()
12129 static char *addr = 0;
12134 return find_stack_direction ();
12137 return (&dummy > addr) ? 1 : -1;
12143 return find_stack_direction () < 0;
12146 if ac_fn_c_try_run "$LINENO"; then :
12147 ac_cv_c_stack_direction=1
12149 ac_cv_c_stack_direction=-1
12151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12152 conftest.$ac_objext conftest.beam conftest.$ac_ext
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12157 $as_echo "$ac_cv_c_stack_direction" >&6; }
12158 cat >>confdefs.h <<_ACEOF
12159 #define STACK_DIRECTION $ac_cv_c_stack_direction
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12168 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12169 if test "${am_cv_langinfo_codeset+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12174 #include <langinfo.h>
12178 char* cs = nl_langinfo(CODESET);
12183 if ac_fn_c_try_link "$LINENO"; then :
12184 am_cv_langinfo_codeset=yes
12186 am_cv_langinfo_codeset=no
12188 rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12193 $as_echo "$am_cv_langinfo_codeset" >&6; }
12194 if test $am_cv_langinfo_codeset = yes; then
12196 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12201 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
12203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12204 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12205 eval as_val=\$$as_ac_Header
12206 if test "x$as_val" = x""yes; then :
12207 cat >>confdefs.h <<_ACEOF
12208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12216 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
12218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12220 eval as_val=\$$as_ac_var
12221 if test "x$as_val" = x""yes; then :
12222 cat >>confdefs.h <<_ACEOF
12223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12230 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
12231 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
12237 cat >>confdefs.h <<_ACEOF
12238 #define HAVE_DECL_STRERROR $ac_have_decl
12240 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12241 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12247 cat >>confdefs.h <<_ACEOF
12248 #define HAVE_DECL_STRSTR $ac_have_decl
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12253 $as_echo_n "checking for sigsetjmp... " >&6; }
12254 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12260 #include <setjmp.h>
12265 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12270 if ac_fn_c_try_compile "$LINENO"; then :
12271 gdb_cv_func_sigsetjmp=yes
12273 gdb_cv_func_sigsetjmp=no
12275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12278 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12279 if test $gdb_cv_func_sigsetjmp = yes; then
12281 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12286 # Check the return and argument types of ptrace.
12289 for ac_header in sys/ptrace.h ptrace.h
12291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12292 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12293 eval as_val=\$$as_ac_Header
12294 if test "x$as_val" = x""yes; then :
12295 cat >>confdefs.h <<_ACEOF
12296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12304 gdb_ptrace_headers='
12305 #include <sys/types.h>
12306 #if HAVE_SYS_PTRACE_H
12307 # include <sys/ptrace.h>
12310 # include <unistd.h>
12313 # There is no point in checking if we don't have a prototype.
12314 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12316 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12322 cat >>confdefs.h <<_ACEOF
12323 #define HAVE_DECL_PTRACE $ac_have_decl
12325 if test $ac_have_decl = 1; then :
12329 : ${gdb_cv_func_ptrace_ret='int'}
12330 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12334 # Check return type. Varargs (used on GNU/Linux) conflict with the
12335 # empty argument list, so check for that explicitly.
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12337 $as_echo_n "checking return type of ptrace... " >&6; }
12338 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343 $gdb_ptrace_headers
12347 extern long ptrace (enum __ptrace_request, ...);
12352 if ac_fn_c_try_compile "$LINENO"; then :
12353 gdb_cv_func_ptrace_ret='long'
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12357 $gdb_ptrace_headers
12361 extern int ptrace ();
12366 if ac_fn_c_try_compile "$LINENO"; then :
12367 gdb_cv_func_ptrace_ret='int'
12369 gdb_cv_func_ptrace_ret='long'
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12376 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12378 cat >>confdefs.h <<_ACEOF
12379 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12382 # Check argument types.
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12384 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12385 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12386 $as_echo_n "(cached) " >&6
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12391 $gdb_ptrace_headers
12395 extern long ptrace (enum __ptrace_request, ...);
12400 if ac_fn_c_try_compile "$LINENO"; then :
12401 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
12404 for gdb_arg1 in 'int' 'long'; do
12405 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12406 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12407 for gdb_arg4 in 'int' 'long' 'void *'; do
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12410 $gdb_ptrace_headers
12415 extern $gdb_cv_func_ptrace_ret
12416 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12422 if ac_fn_c_try_compile "$LINENO"; then :
12423 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 for gdb_arg5 in 'int *' 'int' 'long'; do
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430 $gdb_ptrace_headers
12435 extern $gdb_cv_func_ptrace_ret
12436 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12442 if ac_fn_c_try_compile "$LINENO"; then :
12444 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 # Provide a safe default value.
12454 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12460 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12461 ac_save_IFS=$IFS; IFS=','
12462 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12466 cat >>confdefs.h <<_ACEOF
12467 #define PTRACE_TYPE_ARG1 $1
12471 cat >>confdefs.h <<_ACEOF
12472 #define PTRACE_TYPE_ARG3 $3
12476 cat >>confdefs.h <<_ACEOF
12477 #define PTRACE_TYPE_ARG4 $4
12480 if test -n "$5"; then
12482 cat >>confdefs.h <<_ACEOF
12483 #define PTRACE_TYPE_ARG5 $5
12489 if test "$cross_compiling" = no; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12491 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12492 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12493 $as_echo_n "(cached) " >&6
12495 if test "$cross_compiling" = yes; then :
12496 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500 $ac_includes_default
12504 /* If this system has a BSD-style setpgrp which takes arguments,
12505 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12506 exit successfully. */
12507 return setpgrp (1,1) != -1;
12512 if ac_fn_c_try_run "$LINENO"; then :
12513 ac_cv_func_setpgrp_void=no
12515 ac_cv_func_setpgrp_void=yes
12517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12518 conftest.$ac_objext conftest.beam conftest.$ac_ext
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12523 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12524 if test $ac_cv_func_setpgrp_void = yes; then
12526 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12532 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12533 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12539 #include <unistd.h>
12545 if (setpgrp(1,1) == -1)
12554 if ac_fn_c_try_compile "$LINENO"; then :
12555 ac_cv_func_setpgrp_void=no
12557 ac_cv_func_setpgrp_void=yes
12559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12562 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12563 if test $ac_cv_func_setpgrp_void = yes; then
12564 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12569 # Assume we'll default to using the included libiberty regex.
12570 gdb_use_included_regex=yes
12572 # However, if the system regex is GNU regex, then default to *not*
12573 # using the included regex.
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12575 $as_echo_n "checking for GNU regex... " >&6; }
12576 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581 #include <gnu-versions.h>
12585 #define REGEX_INTERFACE_VERSION 1
12586 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12587 # error "Version mismatch"
12593 if ac_fn_c_try_compile "$LINENO"; then :
12594 gdb_cv_have_gnu_regex=yes
12596 gdb_cv_have_gnu_regex=no
12598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12601 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12602 if test $gdb_cv_have_gnu_regex = yes; then
12603 gdb_use_included_regex=no
12607 # Check whether --with-included-regex was given.
12608 if test "${with_included_regex+set}" = set; then :
12609 withval=$with_included_regex; gdb_with_regex=$withval
12611 gdb_with_regex=$gdb_use_included_regex
12614 if test "$gdb_with_regex" = yes; then
12616 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12620 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12621 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12622 #include <sys/proc.h>
12625 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12627 cat >>confdefs.h <<_ACEOF
12628 #define HAVE_STRUCT_THREAD_TD_PCB 1
12635 # See if <sys/lwp.h> defines `struct lwp`.
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12637 $as_echo_n "checking for struct lwp... " >&6; }
12638 if test "${gdb_cv_struct_lwp+set}" = set; then :
12639 $as_echo_n "(cached) " >&6
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 #include <sys/param.h>
12644 #include <sys/lwp.h>
12653 if ac_fn_c_try_compile "$LINENO"; then :
12654 gdb_cv_struct_lwp=yes
12656 gdb_cv_struct_lwp=no
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12661 $as_echo "$gdb_cv_struct_lwp" >&6; }
12662 if test $gdb_cv_struct_lwp = yes; then
12664 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12668 # See if <machine/reg.h> degines `struct reg'.
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12670 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12671 if test "${gdb_cv_struct_reg+set}" = set; then :
12672 $as_echo_n "(cached) " >&6
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12676 #include <sys/types.h>
12677 #include <machine/reg.h>
12686 if ac_fn_c_try_compile "$LINENO"; then :
12687 gdb_cv_struct_reg=yes
12689 gdb_cv_struct_reg=no
12691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12694 $as_echo "$gdb_cv_struct_reg" >&6; }
12695 if test $gdb_cv_struct_reg = yes; then
12697 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12701 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12702 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12703 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
12704 #include <machine/reg.h>
12706 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
12708 cat >>confdefs.h <<_ACEOF
12709 #define HAVE_STRUCT_REG_R_FS 1
12714 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
12715 #include <machine/reg.h>
12717 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
12719 cat >>confdefs.h <<_ACEOF
12720 #define HAVE_STRUCT_REG_R_GS 1
12727 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
12728 # Older amd64 Linux's don't have the fs_base and gs_base members of
12729 # `struct user_regs_struct'.
12730 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>
12732 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
12734 cat >>confdefs.h <<_ACEOF
12735 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
12740 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>
12742 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
12744 cat >>confdefs.h <<_ACEOF
12745 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
12752 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12754 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12755 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12756 $as_echo_n "(cached) " >&6
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760 #include <sys/ptrace.h>
12769 if ac_fn_c_try_compile "$LINENO"; then :
12770 gdb_cv_have_ptrace_getregs=yes
12772 gdb_cv_have_ptrace_getregs=no
12774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12778 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12779 if test $gdb_cv_have_ptrace_getregs = yes; then
12781 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12785 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12787 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12788 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793 #include <sys/ptrace.h>
12802 if ac_fn_c_try_compile "$LINENO"; then :
12803 gdb_cv_have_ptrace_getfpxregs=yes
12805 gdb_cv_have_ptrace_getfpxregs=no
12807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12811 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12812 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12814 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12818 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12820 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12821 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12826 #include <sys/types.h>
12827 #include <sys/ptrace.h>
12836 if ac_fn_c_try_compile "$LINENO"; then :
12837 gdb_cv_have_pt_getdbregs=yes
12839 gdb_cv_have_pt_getdbregs=no
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12845 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12846 if test $gdb_cv_have_pt_getdbregs = yes; then
12848 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12852 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12854 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12855 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12860 #include <sys/types.h>
12861 #include <sys/ptrace.h>
12870 if ac_fn_c_try_compile "$LINENO"; then :
12871 gdb_cv_have_pt_getxmmregs=yes
12873 gdb_cv_have_pt_getxmmregs=no
12875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12879 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12880 if test $gdb_cv_have_pt_getxmmregs = yes; then
12882 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12886 # See if <sys/ptrace.h> supports LWP names on FreeBSD
12887 # Older FreeBSD versions don't have the pl_tdname member of
12888 # `struct ptrace_lwpinfo'.
12889 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
12891 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x""yes; then :
12893 cat >>confdefs.h <<_ACEOF
12894 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
12901 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
12902 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
12904 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
12906 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = x""yes; then :
12908 cat >>confdefs.h <<_ACEOF
12909 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
12916 # Detect which type of /proc is in use, such as for Solaris.
12918 if test "${target}" = "${host}"; then
12920 *-*-sysv4.2* | *-*-sysv5* )
12922 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12925 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
12927 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12931 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12933 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12939 if test "$ac_cv_header_sys_procfs_h" = yes; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12941 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12942 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12949 /* Needed for new procfs interface on sparc-solaris. */
12950 #define _STRUCTURED_PROC 1
12951 #include <sys/procfs.h>
12960 if ac_fn_c_try_compile "$LINENO"; then :
12961 bfd_cv_have_sys_procfs_type_gregset_t=yes
12963 bfd_cv_have_sys_procfs_type_gregset_t=no
12966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12969 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
12971 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12975 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12978 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12979 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12980 $as_echo_n "(cached) " >&6
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12986 /* Needed for new procfs interface on sparc-solaris. */
12987 #define _STRUCTURED_PROC 1
12988 #include <sys/procfs.h>
12997 if ac_fn_c_try_compile "$LINENO"; then :
12998 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13000 bfd_cv_have_sys_procfs_type_fpregset_t=no
13003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13008 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13012 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13015 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13016 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13017 $as_echo_n "(cached) " >&6
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13023 /* Needed for new procfs interface on sparc-solaris. */
13024 #define _STRUCTURED_PROC 1
13025 #include <sys/procfs.h>
13034 if ac_fn_c_try_compile "$LINENO"; then :
13035 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13037 bfd_cv_have_sys_procfs_type_prgregset_t=no
13040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13045 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13049 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13052 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13053 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13060 /* Needed for new procfs interface on sparc-solaris. */
13061 #define _STRUCTURED_PROC 1
13062 #include <sys/procfs.h>
13071 if ac_fn_c_try_compile "$LINENO"; then :
13072 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13074 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13082 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13086 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13089 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13090 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13091 $as_echo_n "(cached) " >&6
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13097 /* Needed for new procfs interface on sparc-solaris. */
13098 #define _STRUCTURED_PROC 1
13099 #include <sys/procfs.h>
13108 if ac_fn_c_try_compile "$LINENO"; then :
13109 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13111 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13119 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13123 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13126 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13127 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13134 /* Needed for new procfs interface on sparc-solaris. */
13135 #define _STRUCTURED_PROC 1
13136 #include <sys/procfs.h>
13145 if ac_fn_c_try_compile "$LINENO"; then :
13146 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13148 bfd_cv_have_sys_procfs_type_lwpid_t=no
13151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13156 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13160 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13163 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13164 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13171 /* Needed for new procfs interface on sparc-solaris. */
13172 #define _STRUCTURED_PROC 1
13173 #include <sys/procfs.h>
13182 if ac_fn_c_try_compile "$LINENO"; then :
13183 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13185 bfd_cv_have_sys_procfs_type_psaddr_t=no
13188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13193 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13197 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13200 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13201 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13208 /* Needed for new procfs interface on sparc-solaris. */
13209 #define _STRUCTURED_PROC 1
13210 #include <sys/procfs.h>
13219 if ac_fn_c_try_compile "$LINENO"; then :
13220 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13222 bfd_cv_have_sys_procfs_type_prsysent_t=no
13225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13228 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13230 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13234 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13237 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13238 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13245 /* Needed for new procfs interface on sparc-solaris. */
13246 #define _STRUCTURED_PROC 1
13247 #include <sys/procfs.h>
13256 if ac_fn_c_try_compile "$LINENO"; then :
13257 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13259 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13265 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13267 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13271 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13274 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13275 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13282 /* Needed for new procfs interface on sparc-solaris. */
13283 #define _STRUCTURED_PROC 1
13284 #include <sys/procfs.h>
13288 pr_sigaction64_t avar
13293 if ac_fn_c_try_compile "$LINENO"; then :
13294 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13296 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13304 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13308 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13311 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13312 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13319 /* Needed for new procfs interface on sparc-solaris. */
13320 #define _STRUCTURED_PROC 1
13321 #include <sys/procfs.h>
13325 pr_siginfo64_t avar
13330 if ac_fn_c_try_compile "$LINENO"; then :
13331 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13333 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13339 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13341 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13345 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13351 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13353 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13354 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13355 $as_echo_n "(cached) " >&6
13357 if test "$cross_compiling" = yes; then :
13358 gdb_cv_prfpregset_t_broken=yes
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362 #include <sys/procfs.h>
13365 if (sizeof (prfpregset_t) == sizeof (void *))
13370 if ac_fn_c_try_run "$LINENO"; then :
13371 gdb_cv_prfpregset_t_broken=no
13373 gdb_cv_prfpregset_t_broken=yes
13375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13376 conftest.$ac_objext conftest.beam conftest.$ac_ext
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13382 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13383 if test $gdb_cv_prfpregset_t_broken = yes; then
13385 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13391 # Check if the compiler supports the `long long' type.
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13394 $as_echo_n "checking for long long support in compiler... " >&6; }
13395 if test "${gdb_cv_c_long_long+set}" = set; then :
13396 $as_echo_n "(cached) " >&6
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400 extern long long foo;
13404 switch (foo & 2) { case 0: return 1; }
13409 if ac_fn_c_try_compile "$LINENO"; then :
13410 gdb_cv_c_long_long=yes
13412 gdb_cv_c_long_long=no
13414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13417 $as_echo "$gdb_cv_c_long_long" >&6; }
13418 if test $gdb_cv_c_long_long != yes; then
13419 # libdecnumber requires long long.
13420 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
13423 # Check if the compiler and runtime support printing long longs.
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13426 $as_echo_n "checking for long long support in printf... " >&6; }
13427 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13430 if test "$cross_compiling" = yes; then :
13431 gdb_cv_printf_has_long_long=no
13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h. */
13435 $ac_includes_default
13441 l = (l << 16) + 0x0123;
13442 l = (l << 16) + 0x4567;
13443 l = (l << 16) + 0x89ab;
13444 l = (l << 16) + 0xcdef;
13445 sprintf (buf, "0x%016llx", l);
13446 return (strcmp ("0x0123456789abcdef", buf));
13451 if ac_fn_c_try_run "$LINENO"; then :
13452 gdb_cv_printf_has_long_long=yes
13454 gdb_cv_printf_has_long_long=no
13456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13457 conftest.$ac_objext conftest.beam conftest.$ac_ext
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13462 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13463 if test $gdb_cv_printf_has_long_long = yes; then
13465 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13469 # Check if the compiler and runtime support printing decfloats.
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13472 $as_echo_n "checking for decfloat support in printf... " >&6; }
13473 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13474 $as_echo_n "(cached) " >&6
13476 if test "$cross_compiling" = yes; then :
13477 gdb_cv_printf_has_decfloat=no
13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13481 $ac_includes_default
13486 _Decimal32 d32 = 1.2345df;
13487 _Decimal64 d64 = 1.2345dd;
13488 _Decimal128 d128 = 1.2345dl;
13489 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13490 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13495 if ac_fn_c_try_run "$LINENO"; then :
13496 gdb_cv_printf_has_decfloat=yes
13498 gdb_cv_printf_has_decfloat=no
13500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13501 conftest.$ac_objext conftest.beam conftest.$ac_ext
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13506 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13507 if test $gdb_cv_printf_has_decfloat = yes; then
13509 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13513 # Check if the compiler supports the `long double' type. We can't use
13514 # AC_C_LONG_DOUBLE because that one does additional checks on the
13515 # constants defined in <float.h> that fail on some systems,
13516 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13519 $as_echo_n "checking for long double support in compiler... " >&6; }
13520 if test "${gdb_cv_c_long_double+set}" = set; then :
13521 $as_echo_n "(cached) " >&6
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13527 if ac_fn_c_try_compile "$LINENO"; then :
13528 gdb_cv_c_long_double=yes
13530 gdb_cv_c_long_double=no
13532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13535 $as_echo "$gdb_cv_c_long_double" >&6; }
13536 if test $gdb_cv_c_long_double = yes; then
13538 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13542 # Check if the compiler and runtime support printing long doubles.
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13545 $as_echo_n "checking for long double support in printf... " >&6; }
13546 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
13549 if test "$cross_compiling" = yes; then :
13550 gdb_cv_printf_has_long_double=no
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 $ac_includes_default
13559 long double f = 3.141592653;
13560 sprintf (buf, "%Lg", f);
13561 return (strncmp ("3.14159", buf, 7));
13566 if ac_fn_c_try_run "$LINENO"; then :
13567 gdb_cv_printf_has_long_double=yes
13569 gdb_cv_printf_has_long_double=no
13571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13572 conftest.$ac_objext conftest.beam conftest.$ac_ext
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13577 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13578 if test $gdb_cv_printf_has_long_double = yes; then
13580 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13584 # Check if the compiler and runtime support scanning long doubles.
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13587 $as_echo_n "checking for long double support in scanf... " >&6; }
13588 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13589 $as_echo_n "(cached) " >&6
13591 if test "$cross_compiling" = yes; then :
13592 gdb_cv_scanf_has_long_double=no
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13600 char *buf = "3.141592653";
13602 sscanf (buf, "%Lg", &f);
13603 return !(f > 3.14159 && f < 3.14160);
13608 if ac_fn_c_try_run "$LINENO"; then :
13609 gdb_cv_scanf_has_long_double=yes
13611 gdb_cv_scanf_has_long_double=no
13613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13614 conftest.$ac_objext conftest.beam conftest.$ac_ext
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13619 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13620 if test $gdb_cv_scanf_has_long_double = yes; then
13622 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13629 $as_echo_n "checking for -bbigtoc option... " >&6; }
13630 if test "${gdb_cv_bigtoc+set}" = set; then :
13631 $as_echo_n "(cached) " >&6
13634 SAVE_LDFLAGS=$LDFLAGS
13637 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
13638 *) gdb_cv_bigtoc=-bbigtoc ;;
13641 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13653 if ac_fn_c_try_link "$LINENO"; then :
13658 rm -f core conftest.err conftest.$ac_objext \
13659 conftest$ac_exeext conftest.$ac_ext
13660 LDFLAGS="${SAVE_LDFLAGS}"
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13664 $as_echo "$gdb_cv_bigtoc" >&6; }
13665 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
13670 $as_echo_n "checking for the dynamic export flag... " >&6; }
13672 if test "${gdb_native}" = yes; then
13673 # The dynamically loaded libthread_db needs access to symbols in the gdb
13674 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
13675 # may not be supported there.
13676 old_LDFLAGS="$LDFLAGS"
13677 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
13678 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
13679 LDFLAGS="$LDFLAGS $RDYNAMIC"
13680 if test "${have_libpython}" = no; then
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13692 if ac_fn_c_try_link "$LINENO"; then :
13695 rm -f core conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13698 # Workaround http://bugs.python.org/issue4434 where static
13699 # libpythonX.Y.a would get its symbols required for
13700 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
13701 # Problem does not happen for the recommended libpythonX.Y.so linkage.
13703 # Note the workaround for Python
13704 # http://bugs.python.org/issue10112 earlier has removed
13705 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
13706 # here too, as otherwise it'd make this -Wl,--dynamic-list test
13708 old_CFLAGS="$CFLAGS"
13709 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
13711 LIBS="$LIBS $PYTHON_LIBS"
13712 old_CPPFLAGS="$CPPFLAGS"
13713 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
13714 if test "$cross_compiling" = yes; then :
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13719 #include "Python.h"
13725 err = PyRun_SimpleString ("import itertools\n");
13727 return err == 0 ? 0 : 1;
13732 if ac_fn_c_try_run "$LINENO"; then :
13735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13736 conftest.$ac_objext conftest.beam conftest.$ac_ext
13740 CFLAGS="$old_CFLAGS"
13741 CPPFLAGS="$old_CPPFLAGS"
13743 LDFLAGS="$old_LDFLAGS"
13745 if $dynamic_list; then
13746 found="-Wl,--dynamic-list"
13747 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
13750 RDYNAMIC="-rdynamic"
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13754 $as_echo "$found" >&6; }
13757 if test ${build} = ${host} -a ${host} = ${target} ; then
13760 # See if thread_db library is around for Solaris thread debugging.
13761 # Note that we must explicitly test for version 1 of the library
13762 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13765 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13766 if test -f /usr/lib/libthread_db.so.1 ; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13768 $as_echo "yes" >&6; }
13770 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13772 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
13773 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13775 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13776 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13777 $as_echo_n "(cached) " >&6
13779 ac_check_lib_save_LIBS=$LIBS
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13784 /* Override any GCC internal prototype to avoid an error.
13785 Use char because int might match the return type of a GCC
13786 builtin and then its argument prototype would still apply. */
13799 if ac_fn_c_try_link "$LINENO"; then :
13800 ac_cv_lib_dl_dlopen=yes
13802 ac_cv_lib_dl_dlopen=no
13804 rm -f core conftest.err conftest.$ac_objext \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13809 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13810 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13811 cat >>confdefs.h <<_ACEOF
13812 #define HAVE_LIBDL 1
13819 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
13820 # Sun randomly tweaked the prototypes in <proc_service.h>
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13823 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13824 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13825 $as_echo_n "(cached) " >&6
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13831 #include <proc_service.h>
13832 ps_err_e ps_pdwrite
13833 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13843 if ac_fn_c_try_compile "$LINENO"; then :
13844 gdb_cv_proc_service_is_old=no
13846 gdb_cv_proc_service_is_old=yes
13848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13853 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13854 if test $gdb_cv_proc_service_is_old = yes; then
13856 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13866 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13867 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 #include <sys/pthdebug.h>
13876 #ifndef PTHDB_VERSION_3
13883 if ac_fn_c_try_compile "$LINENO"; then :
13884 gdb_cv_have_aix_thread_debug=yes
13886 gdb_cv_have_aix_thread_debug=no
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13892 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13893 if test $gdb_cv_have_aix_thread_debug = yes; then
13894 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
13895 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
13896 LIBS="$LIBS -lpthdebug"
13898 # Older versions of AIX do not provide the declaration for
13899 # the getthrds function (it appears that it was introduced
13901 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13903 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
13909 cat >>confdefs.h <<_ACEOF
13910 #define HAVE_DECL_GETTHRDS $ac_have_decl
13919 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13921 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13922 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h. */
13927 #include <thread_db.h>
13931 int i = TD_NOTALLOC;
13936 if ac_fn_c_try_compile "$LINENO"; then :
13937 gdb_cv_thread_db_h_has_td_notalloc=yes
13939 gdb_cv_thread_db_h_has_td_notalloc=no
13942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13946 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13948 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13949 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13954 #include <thread_db.h>
13958 int i = TD_VERSION;
13963 if ac_fn_c_try_compile "$LINENO"; then :
13964 gdb_cv_thread_db_h_has_td_version=yes
13966 gdb_cv_thread_db_h_has_td_version=no
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13973 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13975 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13976 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13977 $as_echo_n "(cached) " >&6
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13981 #include <thread_db.h>
13990 if ac_fn_c_try_compile "$LINENO"; then :
13991 gdb_cv_thread_db_h_has_td_notls=yes
13993 gdb_cv_thread_db_h_has_td_notls=no
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14000 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14002 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14004 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14007 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14009 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14012 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14014 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14018 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14020 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14026 cat >>confdefs.h <<_ACEOF
14027 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14031 if test "$cross_compiling" = yes; then :
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14034 #include <sys/personality.h>
14039 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14040 # define ADDR_NO_RANDOMIZE 0x0040000
14042 /* Test the flag could be set and stays set. */
14043 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14044 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14050 if ac_fn_c_try_link "$LINENO"; then :
14051 have_personality=true
14053 have_personality=false
14055 rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14060 #include <sys/personality.h>
14065 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14066 # define ADDR_NO_RANDOMIZE 0x0040000
14068 /* Test the flag could be set and stays set. */
14069 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14070 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14076 if ac_fn_c_try_run "$LINENO"; then :
14077 have_personality=true
14079 have_personality=false
14081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14082 conftest.$ac_objext conftest.beam conftest.$ac_ext
14085 if $have_personality
14088 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14101 cat >>confdefs.h <<_ACEOF
14102 #define GDBINIT "$gdbinit"
14107 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
14108 # except that the argument to --with-sysroot is optional.
14109 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
14110 if test "x$with_sysroot" = xyes; then
14111 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
14114 # Check whether --with-sysroot was given.
14115 if test "${with_sysroot+set}" = set; then :
14116 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
14118 TARGET_SYSTEM_ROOT=
14122 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14123 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14124 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
14125 ac_define_dir=`eval echo $ac_define_dir`
14127 cat >>confdefs.h <<_ACEOF
14128 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
14134 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14135 if test "x$prefix" = xNONE; then
14136 test_prefix=/usr/local
14138 test_prefix=$prefix
14141 test_prefix=$exec_prefix
14144 case ${ac_define_dir} in
14145 "${test_prefix}"|"${test_prefix}/"*|\
14146 '${exec_prefix}'|'${exec_prefix}/'*)
14151 cat >>confdefs.h <<_ACEOF
14152 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
14159 # Check whether --with-system-gdbinit was given.
14160 if test "${with_system_gdbinit+set}" = set; then :
14161 withval=$with_system_gdbinit;
14162 SYSTEM_GDBINIT=$withval
14168 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14170 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14171 ac_define_dir=`eval echo $ac_define_dir`
14173 cat >>confdefs.h <<_ACEOF
14174 #define SYSTEM_GDBINIT "$ac_define_dir"
14180 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14181 if test "x$prefix" = xNONE; then
14182 test_prefix=/usr/local
14184 test_prefix=$prefix
14187 test_prefix=$exec_prefix
14190 case ${ac_define_dir} in
14191 "${test_prefix}"|"${test_prefix}/"*|\
14192 '${exec_prefix}'|'${exec_prefix}/'*)
14197 cat >>confdefs.h <<_ACEOF
14198 #define SYSTEM_GDBINIT_RELOCATABLE $value
14206 # Check whether --enable-werror was given.
14207 if test "${enable_werror+set}" = set; then :
14208 enableval=$enable_werror; case "${enableval}" in
14209 yes | y) ERROR_ON_WARNING="yes" ;;
14210 no | n) ERROR_ON_WARNING="no" ;;
14211 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14216 # Enable -Werror by default when using gcc. Turn it off for releases.
14217 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
14218 ERROR_ON_WARNING=yes
14222 if test "${ERROR_ON_WARNING}" = yes ; then
14223 WERROR_CFLAGS="-Werror"
14226 # The options we'll try to enable.
14227 build_warnings="-Wall -Wpointer-arith \
14228 -Wno-unused -Wunused-value -Wunused-function \
14229 -Wno-switch -Wno-char-subscripts \
14230 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
14231 -Wno-sign-compare -Wno-write-strings -Wno-narrowing"
14233 # Enable -Wno-format by default when using gcc on mingw since many
14234 # GCC versions complain about %I64.
14236 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14237 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14240 # Check whether --enable-build-warnings was given.
14241 if test "${enable_build_warnings+set}" = set; then :
14242 enableval=$enable_build_warnings; case "${enableval}" in
14244 no) build_warnings="-w";;
14245 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14246 build_warnings="${build_warnings} ${t}";;
14247 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14248 build_warnings="${t} ${build_warnings}";;
14249 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14251 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14252 echo "Setting compiler warning flags = $build_warnings" 6>&1
14255 # Check whether --enable-gdb-build-warnings was given.
14256 if test "${enable_gdb_build_warnings+set}" = set; then :
14257 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14259 no) build_warnings="-w";;
14260 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14261 build_warnings="${build_warnings} ${t}";;
14262 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14263 build_warnings="${t} ${build_warnings}";;
14264 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14266 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14267 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14271 # The set of warnings supported by a C++ compiler is not the same as
14272 # of the C compiler.
14274 ac_cpp='$CXXCPP $CPPFLAGS'
14275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14281 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14284 $as_echo_n "checking compiler warning flags... " >&6; }
14285 # Separate out the -Werror flag as some files just cannot be
14286 # compiled with it enabled.
14287 for w in ${build_warnings}; do
14288 # GCC does not complain about -Wno-unknown-warning. Invert
14289 # and test -Wunknown-warning instead.
14292 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
14298 -Werr*) WERROR_CFLAGS=-Werror ;;
14300 # Check whether GCC accepts it.
14301 saved_CFLAGS="$CFLAGS"
14302 CFLAGS="$CFLAGS $wtest"
14303 saved_CXXFLAGS="$CXXFLAGS"
14304 CXXFLAGS="$CXXFLAGS $wtest"
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14316 if ac_fn_cxx_try_compile "$LINENO"; then :
14317 WARN_CFLAGS="${WARN_CFLAGS} $w"
14319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14320 CFLAGS="$saved_CFLAGS"
14321 CXXFLAGS="$saved_CXXFLAGS"
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14325 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14331 ac_cpp='$CPP $CPPFLAGS'
14332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14338 # In the Cygwin environment, we need some additional flags.
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14340 $as_echo_n "checking for cygwin... " >&6; }
14341 if test "${gdb_cv_os_cygwin+set}" = set; then :
14342 $as_echo_n "(cached) " >&6
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14347 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14352 $EGREP "^lose$" >/dev/null 2>&1; then :
14353 gdb_cv_os_cygwin=yes
14355 gdb_cv_os_cygwin=no
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14361 $as_echo "$gdb_cv_os_cygwin" >&6; }
14364 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14366 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14367 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14368 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14372 # libreadline needs libuser32.a in a cygwin environment
14374 if test x$gdb_cv_os_cygwin = xyes; then
14375 WIN32LIBS="-luser32"
14376 case "${target}" in
14377 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14382 # The ser-tcp.c module requires sockets.
14386 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14388 WIN32LIBS="$WIN32LIBS -lws2_32"
14393 # Add ELF support to GDB, but only if BFD includes ELF support.
14396 OLD_LDFLAGS=$LDFLAGS
14398 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14399 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14400 # always want our bfd.
14401 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14402 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14403 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14404 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14405 LIBS="-lbfd -liberty -lz $intl $LIBS"
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14407 $as_echo_n "checking for ELF support in BFD... " >&6; }
14408 if test "${gdb_cv_var_elf+set}" = set; then :
14409 $as_echo_n "(cached) " >&6
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14413 #include <stdlib.h>
14415 #include "elf-bfd.h"
14420 return bfd_get_elf_phdr_upper_bound (NULL);
14425 if ac_fn_c_try_link "$LINENO"; then :
14430 rm -f core conftest.err conftest.$ac_objext \
14431 conftest$ac_exeext conftest.$ac_ext
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14434 $as_echo "$gdb_cv_var_elf" >&6; }
14436 LDFLAGS=$OLD_LDFLAGS
14438 if test $gdb_cv_var_elf = yes; then
14439 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
14441 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14443 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14444 if test "$plugins" = "yes"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14446 $as_echo_n "checking for library containing dlopen... " >&6; }
14447 if test "${ac_cv_search_dlopen+set}" = set; then :
14448 $as_echo_n "(cached) " >&6
14450 ac_func_search_save_LIBS=$LIBS
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14454 /* Override any GCC internal prototype to avoid an error.
14455 Use char because int might match the return type of a GCC
14456 builtin and then its argument prototype would still apply. */
14469 for ac_lib in '' dl; do
14470 if test -z "$ac_lib"; then
14471 ac_res="none required"
14474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14476 if ac_fn_c_try_link "$LINENO"; then :
14477 ac_cv_search_dlopen=$ac_res
14479 rm -f core conftest.err conftest.$ac_objext \
14481 if test "${ac_cv_search_dlopen+set}" = set; then :
14485 if test "${ac_cv_search_dlopen+set}" = set; then :
14488 ac_cv_search_dlopen=no
14490 rm conftest.$ac_ext
14491 LIBS=$ac_func_search_save_LIBS
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14494 $as_echo "$ac_cv_search_dlopen" >&6; }
14495 ac_res=$ac_cv_search_dlopen
14496 if test "$ac_res" != no; then :
14497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14504 # Add macho support to GDB, but only if BFD includes it.
14507 OLD_LDFLAGS=$LDFLAGS
14509 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14510 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14511 # always want our bfd.
14512 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14513 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14514 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14515 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14516 LIBS="-lbfd -liberty -lz $intl $LIBS"
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
14518 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
14519 if test "${gdb_cv_var_macho+set}" = set; then :
14520 $as_echo_n "(cached) " >&6
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524 #include <stdlib.h>
14526 #include "mach-o.h"
14531 return bfd_mach_o_lookup_command (NULL, 0, NULL);
14536 if ac_fn_c_try_link "$LINENO"; then :
14537 gdb_cv_var_macho=yes
14539 gdb_cv_var_macho=no
14541 rm -f core conftest.err conftest.$ac_objext \
14542 conftest$ac_exeext conftest.$ac_ext
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
14545 $as_echo "$gdb_cv_var_macho" >&6; }
14547 LDFLAGS=$OLD_LDFLAGS
14549 if test $gdb_cv_var_macho = yes; then
14550 CONFIG_OBS="$CONFIG_OBS machoread.o"
14553 # Add any host-specific objects to GDB.
14554 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14556 # If building on ELF, look for lzma support for embedded compressed debug info.
14557 if test $gdb_cv_var_elf = yes; then
14559 # Check whether --with-lzma was given.
14560 if test "${with_lzma+set}" = set; then :
14561 withval=$with_lzma;
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
14567 $as_echo_n "checking whether to use lzma... " >&6; }
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
14569 $as_echo "$with_lzma" >&6; }
14571 if test "${with_lzma}" != no; then
14582 acl_save_prefix="$prefix"
14583 prefix="$acl_final_prefix"
14584 acl_save_exec_prefix="$exec_prefix"
14585 exec_prefix="$acl_final_exec_prefix"
14587 eval additional_includedir=\"$includedir\"
14588 eval additional_libdir=\"$libdir\"
14590 exec_prefix="$acl_save_exec_prefix"
14591 prefix="$acl_save_prefix"
14594 # Check whether --with-liblzma-prefix was given.
14595 if test "${with_liblzma_prefix+set}" = set; then :
14596 withval=$with_liblzma_prefix;
14597 if test "X$withval" = "Xno"; then
14600 if test "X$withval" = "X"; then
14602 acl_save_prefix="$prefix"
14603 prefix="$acl_final_prefix"
14604 acl_save_exec_prefix="$exec_prefix"
14605 exec_prefix="$acl_final_exec_prefix"
14607 eval additional_includedir=\"$includedir\"
14608 eval additional_libdir=\"$libdir\"
14610 exec_prefix="$acl_save_exec_prefix"
14611 prefix="$acl_save_prefix"
14614 additional_includedir="$withval/include"
14615 additional_libdir="$withval/lib"
14626 names_already_handled=
14627 names_next_round='lzma '
14628 while test -n "$names_next_round"; do
14629 names_this_round="$names_next_round"
14631 for name in $names_this_round; do
14633 for n in $names_already_handled; do
14634 if test "$n" = "$name"; then
14635 already_handled=yes
14639 if test -z "$already_handled"; then
14640 names_already_handled="$names_already_handled $name"
14641 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14642 eval value=\"\$HAVE_LIB$uppername\"
14643 if test -n "$value"; then
14644 if test "$value" = yes; then
14645 eval value=\"\$LIB$uppername\"
14646 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
14647 eval value=\"\$LTLIB$uppername\"
14648 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
14657 if test $use_additional = yes; then
14658 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14659 found_dir="$additional_libdir"
14660 found_so="$additional_libdir/lib$name.$shlibext"
14661 if test -f "$additional_libdir/lib$name.la"; then
14662 found_la="$additional_libdir/lib$name.la"
14665 if test -f "$additional_libdir/lib$name.$libext"; then
14666 found_dir="$additional_libdir"
14667 found_a="$additional_libdir/lib$name.$libext"
14668 if test -f "$additional_libdir/lib$name.la"; then
14669 found_la="$additional_libdir/lib$name.la"
14674 if test "X$found_dir" = "X"; then
14675 for x in $LDFLAGS $LTLIBLZMA; do
14677 acl_save_prefix="$prefix"
14678 prefix="$acl_final_prefix"
14679 acl_save_exec_prefix="$exec_prefix"
14680 exec_prefix="$acl_final_exec_prefix"
14682 exec_prefix="$acl_save_exec_prefix"
14683 prefix="$acl_save_prefix"
14687 dir=`echo "X$x" | sed -e 's/^X-L//'`
14688 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14690 found_so="$dir/lib$name.$shlibext"
14691 if test -f "$dir/lib$name.la"; then
14692 found_la="$dir/lib$name.la"
14695 if test -f "$dir/lib$name.$libext"; then
14697 found_a="$dir/lib$name.$libext"
14698 if test -f "$dir/lib$name.la"; then
14699 found_la="$dir/lib$name.la"
14705 if test "X$found_dir" != "X"; then
14710 if test "X$found_dir" != "X"; then
14711 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
14712 if test "X$found_so" != "X"; then
14713 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14714 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14717 for x in $ltrpathdirs; do
14718 if test "X$x" = "X$found_dir"; then
14723 if test -z "$haveit"; then
14724 ltrpathdirs="$ltrpathdirs $found_dir"
14726 if test "$hardcode_direct" = yes; then
14727 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14729 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14730 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14732 for x in $rpathdirs; do
14733 if test "X$x" = "X$found_dir"; then
14738 if test -z "$haveit"; then
14739 rpathdirs="$rpathdirs $found_dir"
14743 for x in $LDFLAGS $LIBLZMA; do
14745 acl_save_prefix="$prefix"
14746 prefix="$acl_final_prefix"
14747 acl_save_exec_prefix="$exec_prefix"
14748 exec_prefix="$acl_final_exec_prefix"
14750 exec_prefix="$acl_save_exec_prefix"
14751 prefix="$acl_save_prefix"
14753 if test "X$x" = "X-L$found_dir"; then
14758 if test -z "$haveit"; then
14759 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14761 if test "$hardcode_minus_L" != no; then
14762 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14764 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14770 if test "X$found_a" != "X"; then
14771 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
14773 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14776 additional_includedir=
14777 case "$found_dir" in
14779 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14780 additional_includedir="$basedir/include"
14783 if test "X$additional_includedir" != "X"; then
14784 if test "X$additional_includedir" != "X/usr/include"; then
14786 if test "X$additional_includedir" = "X/usr/local/include"; then
14787 if test -n "$GCC"; then
14789 linux*) haveit=yes;;
14793 if test -z "$haveit"; then
14794 for x in $CPPFLAGS $INCLZMA; do
14796 acl_save_prefix="$prefix"
14797 prefix="$acl_final_prefix"
14798 acl_save_exec_prefix="$exec_prefix"
14799 exec_prefix="$acl_final_exec_prefix"
14801 exec_prefix="$acl_save_exec_prefix"
14802 prefix="$acl_save_prefix"
14804 if test "X$x" = "X-I$additional_includedir"; then
14809 if test -z "$haveit"; then
14810 if test -d "$additional_includedir"; then
14811 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14817 if test -n "$found_la"; then
14818 save_libdir="$libdir"
14819 case "$found_la" in
14820 */* | *\\*) . "$found_la" ;;
14821 *) . "./$found_la" ;;
14823 libdir="$save_libdir"
14824 for dep in $dependency_libs; do
14827 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14828 if test "X$additional_libdir" != "X/usr/lib"; then
14830 if test "X$additional_libdir" = "X/usr/local/lib"; then
14831 if test -n "$GCC"; then
14833 linux*) haveit=yes;;
14837 if test -z "$haveit"; then
14839 for x in $LDFLAGS $LIBLZMA; do
14841 acl_save_prefix="$prefix"
14842 prefix="$acl_final_prefix"
14843 acl_save_exec_prefix="$exec_prefix"
14844 exec_prefix="$acl_final_exec_prefix"
14846 exec_prefix="$acl_save_exec_prefix"
14847 prefix="$acl_save_prefix"
14849 if test "X$x" = "X-L$additional_libdir"; then
14854 if test -z "$haveit"; then
14855 if test -d "$additional_libdir"; then
14856 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14860 for x in $LDFLAGS $LTLIBLZMA; do
14862 acl_save_prefix="$prefix"
14863 prefix="$acl_final_prefix"
14864 acl_save_exec_prefix="$exec_prefix"
14865 exec_prefix="$acl_final_exec_prefix"
14867 exec_prefix="$acl_save_exec_prefix"
14868 prefix="$acl_save_prefix"
14870 if test "X$x" = "X-L$additional_libdir"; then
14875 if test -z "$haveit"; then
14876 if test -d "$additional_libdir"; then
14877 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14884 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14885 if test "$enable_rpath" != no; then
14887 for x in $rpathdirs; do
14888 if test "X$x" = "X$dir"; then
14893 if test -z "$haveit"; then
14894 rpathdirs="$rpathdirs $dir"
14897 for x in $ltrpathdirs; do
14898 if test "X$x" = "X$dir"; then
14903 if test -z "$haveit"; then
14904 ltrpathdirs="$ltrpathdirs $dir"
14909 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14912 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14915 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
14916 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14922 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14923 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14929 if test "X$rpathdirs" != "X"; then
14930 if test -n "$hardcode_libdir_separator"; then
14932 for found_dir in $rpathdirs; do
14933 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14935 acl_save_libdir="$libdir"
14937 eval flag=\"$hardcode_libdir_flag_spec\"
14938 libdir="$acl_save_libdir"
14939 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14941 for found_dir in $rpathdirs; do
14942 acl_save_libdir="$libdir"
14943 libdir="$found_dir"
14944 eval flag=\"$hardcode_libdir_flag_spec\"
14945 libdir="$acl_save_libdir"
14946 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14950 if test "X$ltrpathdirs" != "X"; then
14951 for found_dir in $ltrpathdirs; do
14952 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
14957 ac_save_CPPFLAGS="$CPPFLAGS"
14959 for element in $INCLZMA; do
14961 for x in $CPPFLAGS; do
14963 acl_save_prefix="$prefix"
14964 prefix="$acl_final_prefix"
14965 acl_save_exec_prefix="$exec_prefix"
14966 exec_prefix="$acl_final_exec_prefix"
14968 exec_prefix="$acl_save_exec_prefix"
14969 prefix="$acl_save_prefix"
14971 if test "X$x" = "X$element"; then
14976 if test -z "$haveit"; then
14977 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
14983 $as_echo_n "checking for liblzma... " >&6; }
14984 if test "${ac_cv_liblzma+set}" = set; then :
14985 $as_echo_n "(cached) " >&6
14988 ac_save_LIBS="$LIBS"
14989 LIBS="$LIBS $LIBLZMA"
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14996 lzma_index_iter iter;
14997 lzma_index_iter_init (&iter, 0);
14998 lzma_mf_is_supported (LZMA_MF_HC3);
15003 if ac_fn_c_try_link "$LINENO"; then :
15008 rm -f core conftest.err conftest.$ac_objext \
15009 conftest$ac_exeext conftest.$ac_ext
15010 LIBS="$ac_save_LIBS"
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
15014 $as_echo "$ac_cv_liblzma" >&6; }
15015 if test "$ac_cv_liblzma" = yes; then
15018 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
15021 $as_echo_n "checking how to link with liblzma... " >&6; }
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
15023 $as_echo "$LIBLZMA" >&6; }
15026 CPPFLAGS="$ac_save_CPPFLAGS"
15036 if test "$HAVE_LIBLZMA" != yes; then
15037 if test "$with_lzma" = yes; then
15038 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
15044 LIBGUI="../libgui/src/libgui.a"
15045 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15054 *-*-cygwin* | *-*-mingw* )
15063 if test "${enable_gdbtk}" = "yes"; then
15065 # Gdbtk must have an absolute path to srcdir in order to run
15066 # properly when not installed.
15069 GDBTK_SRC_DIR=`pwd`
15074 # Ok, lets find the tcl configuration
15075 # First, look for one uninstalled.
15076 # the alternative search directory is invoked by --with-tcl
15079 if test x"${no_tcl}" = x ; then
15080 # we reset no_tcl in case something fails here
15083 # Check whether --with-tcl was given.
15084 if test "${with_tcl+set}" = set; then :
15085 withval=$with_tcl; with_tclconfig=${withval}
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15089 $as_echo_n "checking for Tcl configuration... " >&6; }
15090 if test "${ac_cv_c_tclconfig+set}" = set; then :
15091 $as_echo_n "(cached) " >&6
15095 # First check to see if --with-tcl was specified.
15097 *-*-cygwin*) platDir="win" ;;
15098 *) platDir="unix" ;;
15100 if test x"${with_tclconfig}" != x ; then
15101 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15102 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15104 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15108 # then check for a private Tcl installation
15109 if test x"${ac_cv_c_tclconfig}" = x ; then
15112 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15113 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15114 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15116 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15117 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15118 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15120 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15121 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15122 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15123 if test -f "$i/$platDir/tclConfig.sh" ; then
15124 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15130 # on Darwin, check in Framework installation locations
15131 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15132 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15133 `ls -d /Library/Frameworks 2>/dev/null` \
15134 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15135 `ls -d /System/Library/Frameworks 2>/dev/null` \
15137 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15138 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15144 # check in a few common install locations
15145 if test x"${ac_cv_c_tclconfig}" = x ; then
15146 for i in `ls -d ${libdir} 2>/dev/null` \
15147 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15148 `ls -d ${prefix}/lib 2>/dev/null` \
15149 `ls -d /usr/local/lib 2>/dev/null` \
15150 `ls -d /usr/contrib/lib 2>/dev/null` \
15151 `ls -d /usr/lib 2>/dev/null` \
15153 if test -f "$i/tclConfig.sh" ; then
15154 ac_cv_c_tclconfig=`(cd $i; pwd)`
15160 # check in a few other private locations
15161 if test x"${ac_cv_c_tclconfig}" = x ; then
15164 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15165 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15166 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15167 if test -f "$i/$platDir/tclConfig.sh" ; then
15168 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15177 if test x"${ac_cv_c_tclconfig}" = x ; then
15178 TCL_BIN_DIR="# no Tcl configs found"
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15180 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15183 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15185 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15190 # If $no_tk is nonempty, then we can't do Tk, and there is no
15191 # point to doing Tcl.
15194 # Ok, lets find the tk configuration
15195 # First, look for one uninstalled.
15196 # the alternative search directory is invoked by --with-tk
15199 if test x"${no_tk}" = x ; then
15200 # we reset no_tk in case something fails here
15203 # Check whether --with-tk was given.
15204 if test "${with_tk+set}" = set; then :
15205 withval=$with_tk; with_tkconfig=${withval}
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15209 $as_echo_n "checking for Tk configuration... " >&6; }
15210 if test "${ac_cv_c_tkconfig+set}" = set; then :
15211 $as_echo_n "(cached) " >&6
15215 # First check to see if --with-tkconfig was specified.
15216 if test x"${with_tkconfig}" != x ; then
15217 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15218 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15220 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15224 # then check for a private Tk library
15226 *-*-cygwin*) platDir="win" ;;
15227 *) platDir="unix" ;;
15229 if test x"${ac_cv_c_tkconfig}" = x ; then
15232 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15233 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15234 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15236 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15237 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15238 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15240 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15241 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15242 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15243 if test -f "$i/$platDir/tkConfig.sh" ; then
15244 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15250 # on Darwin, check in Framework installation locations
15251 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15252 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15253 `ls -d /Library/Frameworks 2>/dev/null` \
15254 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15255 `ls -d /System/Library/Frameworks 2>/dev/null` \
15257 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15258 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15264 # check in a few common install locations
15265 if test x"${ac_cv_c_tkconfig}" = x ; then
15266 for i in `ls -d ${libdir} 2>/dev/null` \
15267 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15268 `ls -d ${prefix}/lib 2>/dev/null` \
15269 `ls -d /usr/local/lib 2>/dev/null` \
15270 `ls -d /usr/contrib/lib 2>/dev/null` \
15271 `ls -d /usr/lib 2>/dev/null` \
15273 if test -f "$i/tkConfig.sh" ; then
15274 ac_cv_c_tkconfig=`(cd $i; pwd)`
15279 # check in a few other private locations
15280 if test x"${ac_cv_c_tkconfig}" = x ; then
15283 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15284 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15285 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15286 if test -f "$i/$platDir/tkConfig.sh" ; then
15287 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15296 if test x"${ac_cv_c_tkconfig}" = x ; then
15297 TK_BIN_DIR="# no Tk configs found"
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15299 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15302 TK_BIN_DIR=${ac_cv_c_tkconfig}
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15304 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15309 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15312 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15314 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15316 $as_echo "loading" >&6; }
15317 . ${TCL_BIN_DIR}/tclConfig.sh
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15320 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15323 # eval is required to do the TCL_DBGX substitution
15324 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15325 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15327 # If the TCL_BIN_DIR is the build directory (not the install directory),
15328 # then set the common variable name to the value of the build variables.
15329 # For example, the variable TCL_LIB_SPEC will be set to the value
15330 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15331 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15332 # installed and uninstalled version of Tcl.
15333 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15334 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15335 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15336 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15337 elif test "`uname -s`" = "Darwin"; then
15338 # If Tcl was built as a framework, attempt to use the libraries
15339 # from the framework at the given location so that linking works
15340 # against Tcl.framework installed in an arbitrary location.
15341 case ${TCL_DEFS} in
15343 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15344 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15345 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15346 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15347 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15352 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15353 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15354 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15360 # eval is required to do the TCL_DBGX substitution
15361 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15362 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15363 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15364 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15380 # Check for in-tree tcl
15387 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15391 # Find Tcl private headers
15392 if test x"${intree}" = xno; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15395 $as_echo_n "checking for Tcl private headers... " >&6; }
15397 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15398 if test -f ${dir}/tclInt.h ; then
15402 if test x"${private_dir}" = x; then
15403 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15405 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15407 $as_echo "${private_dir}" >&6; }
15410 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15411 TCL_LIBRARY="${TCL_LIB_SPEC}"
15414 # If building tcl in the same src tree, private headers
15415 # are not needed, but we need to be sure to use the right
15417 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15418 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15419 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15427 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15429 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15431 $as_echo "loading" >&6; }
15432 . ${TK_BIN_DIR}/tkConfig.sh
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15435 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15438 # eval is required to do the TK_DBGX substitution
15439 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15440 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15442 # If the TK_BIN_DIR is the build directory (not the install directory),
15443 # then set the common variable name to the value of the build variables.
15444 # For example, the variable TK_LIB_SPEC will be set to the value
15445 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15446 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15447 # installed and uninstalled version of Tcl.
15448 if test -f "${TK_BIN_DIR}/Makefile" ; then
15449 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15450 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15451 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15452 elif test "`uname -s`" = "Darwin"; then
15453 # If Tk was built as a framework, attempt to use the libraries
15454 # from the framework at the given location so that linking works
15455 # against Tk.framework installed in an arbitrary location.
15458 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15459 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15460 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15461 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15462 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15467 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15468 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15469 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15475 # eval is required to do the TK_DBGX substitution
15476 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15477 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15478 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15479 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15494 # Check for in-tree Tk
15496 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15500 # Find Tk private headers
15501 if test x"${intree}" = xno; then
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15504 $as_echo_n "checking for Tk private headers... " >&6; }
15506 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15507 if test -f ${dir}/tkInt.h; then
15511 if test x"${private_dir}" = x; then
15512 as_fn_error "could not find Tk private headers" "$LINENO" 5
15514 TK_PRIVATE_INCLUDE="-I${private_dir}"
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15516 $as_echo "${private_dir}" >&6; }
15519 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15520 TK_LIBRARY=${TK_LIB_SPEC}
15523 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15524 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15525 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15532 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15534 # Include some libraries that Tcl and Tk want.
15535 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15536 # Yes, the ordering seems wrong here. But it isn't.
15537 # TK_LIBS is the list of libraries that need to be linked
15538 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15539 # were in LIBS then any link tests after this point would
15540 # try to include things like `$(LIBGUI)', which wouldn't work.
15541 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15543 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15544 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15545 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15546 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15547 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15548 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15549 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15551 if test x$gdb_cv_os_cygwin = xyes; then
15552 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15553 WIN32LDAPP="-Wl,--subsystem,console"
15554 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15557 subdirs="$subdirs gdbtk"
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15570 $as_echo_n "checking for X... " >&6; }
15573 # Check whether --with-x was given.
15574 if test "${with_x+set}" = set; then :
15578 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15579 if test "x$with_x" = xno; then
15580 # The user explicitly disabled X.
15583 case $x_includes,$x_libraries in #(
15584 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15585 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15586 $as_echo_n "(cached) " >&6
15588 # One or both of the vars are not set, and there is no cached value.
15589 ac_x_includes=no ac_x_libraries=no
15590 rm -f -r conftest.dir
15591 if mkdir conftest.dir; then
15593 cat >Imakefile <<'_ACEOF'
15595 @echo incroot='${INCROOT}'
15597 @echo usrlibdir='${USRLIBDIR}'
15599 @echo libdir='${LIBDIR}'
15601 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15602 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15603 for ac_var in incroot usrlibdir libdir; do
15604 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15606 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15607 for ac_extension in a so sl dylib la dll; do
15608 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15609 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15610 ac_im_usrlibdir=$ac_im_libdir; break
15613 # Screen out bogus values from the imake configuration. They are
15614 # bogus both because they are the default anyway, and because
15615 # using them would break gcc on systems where it needs fixed includes.
15616 case $ac_im_incroot in
15617 /usr/include) ac_x_includes= ;;
15618 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15620 case $ac_im_usrlibdir in
15621 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15622 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15626 rm -f -r conftest.dir
15629 # Standard set of common directories for X headers.
15630 # Check X11 before X11Rn because it is often a symlink to the current release.
15644 /usr/local/X11/include
15645 /usr/local/X11R7/include
15646 /usr/local/X11R6/include
15647 /usr/local/X11R5/include
15648 /usr/local/X11R4/include
15650 /usr/local/include/X11
15651 /usr/local/include/X11R7
15652 /usr/local/include/X11R6
15653 /usr/local/include/X11R5
15654 /usr/local/include/X11R4
15658 /usr/XFree86/include/X11
15662 /usr/unsupported/include
15663 /usr/athena/include
15664 /usr/local/x11r5/include
15665 /usr/lpp/Xamples/include
15667 /usr/openwin/include
15668 /usr/openwin/share/include'
15670 if test "$ac_x_includes" = no; then
15671 # Guess where to find include files, by looking for Xlib.h.
15672 # First, try using that file with no special directory specified.
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675 #include <X11/Xlib.h>
15677 if ac_fn_c_try_cpp "$LINENO"; then :
15678 # We can compile using X headers with no special include directory.
15681 for ac_dir in $ac_x_header_dirs; do
15682 if test -r "$ac_dir/X11/Xlib.h"; then
15683 ac_x_includes=$ac_dir
15688 rm -f conftest.err conftest.$ac_ext
15689 fi # $ac_x_includes = no
15691 if test "$ac_x_libraries" = no; then
15692 # Check for the libraries.
15693 # See if we find them without any special options.
15694 # Don't add to $LIBS permanently.
15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698 /* end confdefs.h. */
15699 #include <X11/Xlib.h>
15708 if ac_fn_c_try_link "$LINENO"; then :
15710 # We can link X programs with no special library path.
15714 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15716 # Don't even attempt the hair of trying to link an X program!
15717 for ac_extension in a so sl dylib la dll; do
15718 if test -r "$ac_dir/libX11.$ac_extension"; then
15719 ac_x_libraries=$ac_dir
15725 rm -f core conftest.err conftest.$ac_objext \
15726 conftest$ac_exeext conftest.$ac_ext
15727 fi # $ac_x_libraries = no
15729 case $ac_x_includes,$ac_x_libraries in #(
15730 no,* | *,no | *\'*)
15731 # Didn't find X, or a directory has "'" in its name.
15732 ac_cv_have_x="have_x=no";; #(
15734 # Record where we found X for the cache.
15735 ac_cv_have_x="have_x=yes\
15736 ac_x_includes='$ac_x_includes'\
15737 ac_x_libraries='$ac_x_libraries'"
15743 eval "$ac_cv_have_x"
15746 if test "$have_x" != yes; then
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15748 $as_echo "$have_x" >&6; }
15751 # If each of the values was on the command line, it overrides each guess.
15752 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15753 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15754 # Update the cache value to reflect the command line values.
15755 ac_cv_have_x="have_x=yes\
15756 ac_x_includes='$x_includes'\
15757 ac_x_libraries='$x_libraries'"
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15759 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15763 # Unlike the sim directory, whether a simulator is linked is controlled by
15764 # presence of a gdb_sim definition in the target configure.tgt entry.
15765 # This code just checks for a few cases where we'd like to ignore those
15766 # definitions, even when they're present in the '.mt' file. These cases
15767 # are when --disable-sim is specified, or if the simulator directory is
15768 # not part of the source tree.
15770 # Check whether --enable-sim was given.
15771 if test "${enable_sim+set}" = set; then :
15772 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15773 echo "enableval = ${enableval}";
15774 case "${enableval}" in
15775 yes) ignore_sim=false ;;
15776 no) ignore_sim=true ;;
15777 *) ignore_sim=false ;;
15784 if test ! -d "${srcdir}/../sim"; then
15790 if test "${ignore_sim}" = "false"; then
15791 if test x"${gdb_sim}" != x ; then
15793 SIM_OBS="remote-sim.o"
15795 $as_echo "#define WITH_SIM 1" >>confdefs.h
15798 # Some tdep code should only be compiled in when the ppc sim is
15799 # built. PR sim/13418.
15803 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
15823 # List of host floatformats.
15825 cat >>confdefs.h <<_ACEOF
15826 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15830 cat >>confdefs.h <<_ACEOF
15831 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15835 cat >>confdefs.h <<_ACEOF
15836 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15840 # target_subdir is used by the testsuite to find the target libraries.
15842 if test "${host}" != "${target}"; then
15843 target_subdir="${target_alias}/"
15848 if test "${gdb_native}" = "yes"; then
15849 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15850 if test ! -f ${host_makefile_frag}; then
15851 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15853 frags="$frags $host_makefile_frag"
15855 host_makefile_frag=/dev/null
15861 if test "${gdb_native}" = "yes"; then
15862 # We pick this up from the host configuration file (.mh) because we
15863 # do not have a native configuration Makefile fragment.
15864 nativefile=`sed -n '
15865 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15866 ' ${host_makefile_frag}`
15870 if test x"${gdb_osabi}" != x ; then
15872 cat >>confdefs.h <<_ACEOF
15873 #define GDB_OSABI_DEFAULT $gdb_osabi
15878 # Enable multi-ice-gdb-server.
15879 # Check whether --enable-multi-ice was given.
15880 if test "${enable_multi_ice+set}" = set; then :
15881 enableval=$enable_multi_ice; case $enableval in
15884 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15888 if test "x$enable_multi_ice" = xyes; then
15889 subdirs="$subdirs multi-ice"
15893 # Check whether --enable-gdbserver was given.
15894 if test "${enable_gdbserver+set}" = set; then :
15895 enableval=$enable_gdbserver; case "${enableval}" in
15897 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15900 enable_gdbserver=auto
15904 # We only build gdbserver automatically in a native configuration, and
15905 # only if the user did not explicitly disable its build.
15906 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15908 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15909 if test "x$build_gdbserver" = xyes; then
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15911 $as_echo "yes" >&6; }
15912 subdirs="$subdirs gdbserver"
15914 gdbserver_build_enabled=yes
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15917 $as_echo "no" >&6; }
15921 # If the user explicitly request the gdbserver to be built, verify that
15922 # we were in fact able to enable it.
15923 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15924 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15927 # Check for babeltrace and babeltrace-ctf
15929 # Check whether --with-babeltrace was given.
15930 if test "${with_babeltrace+set}" = set; then :
15931 withval=$with_babeltrace;
15933 with_babeltrace=auto
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15937 $as_echo_n "checking whether to use babeltrace... " >&6; }
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15939 $as_echo "$with_babeltrace" >&6; }
15941 if test "x$with_babeltrace" = "xno"; then
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15943 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15945 # Append -Werror to CFLAGS so that configure can catch the warning
15946 # "assignment from incompatible pointer type", which is related to
15947 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
15948 # in GDB, while babeltrace 1.0.3 is broken.
15949 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15950 # safe to save and restore CFLAGS here.
15951 saved_CFLAGS=$CFLAGS
15952 CFLAGS="$CFLAGS -Werror"
15963 acl_save_prefix="$prefix"
15964 prefix="$acl_final_prefix"
15965 acl_save_exec_prefix="$exec_prefix"
15966 exec_prefix="$acl_final_exec_prefix"
15968 eval additional_includedir=\"$includedir\"
15969 eval additional_libdir=\"$libdir\"
15971 exec_prefix="$acl_save_exec_prefix"
15972 prefix="$acl_save_prefix"
15975 # Check whether --with-libbabeltrace-prefix was given.
15976 if test "${with_libbabeltrace_prefix+set}" = set; then :
15977 withval=$with_libbabeltrace_prefix;
15978 if test "X$withval" = "Xno"; then
15981 if test "X$withval" = "X"; then
15983 acl_save_prefix="$prefix"
15984 prefix="$acl_final_prefix"
15985 acl_save_exec_prefix="$exec_prefix"
15986 exec_prefix="$acl_final_exec_prefix"
15988 eval additional_includedir=\"$includedir\"
15989 eval additional_libdir=\"$libdir\"
15991 exec_prefix="$acl_save_exec_prefix"
15992 prefix="$acl_save_prefix"
15995 additional_includedir="$withval/include"
15996 additional_libdir="$withval/lib"
16007 names_already_handled=
16008 names_next_round='babeltrace babeltrace-ctf'
16009 while test -n "$names_next_round"; do
16010 names_this_round="$names_next_round"
16012 for name in $names_this_round; do
16014 for n in $names_already_handled; do
16015 if test "$n" = "$name"; then
16016 already_handled=yes
16020 if test -z "$already_handled"; then
16021 names_already_handled="$names_already_handled $name"
16022 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16023 eval value=\"\$HAVE_LIB$uppername\"
16024 if test -n "$value"; then
16025 if test "$value" = yes; then
16026 eval value=\"\$LIB$uppername\"
16027 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
16028 eval value=\"\$LTLIB$uppername\"
16029 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
16038 if test $use_additional = yes; then
16039 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16040 found_dir="$additional_libdir"
16041 found_so="$additional_libdir/lib$name.$shlibext"
16042 if test -f "$additional_libdir/lib$name.la"; then
16043 found_la="$additional_libdir/lib$name.la"
16046 if test -f "$additional_libdir/lib$name.$libext"; then
16047 found_dir="$additional_libdir"
16048 found_a="$additional_libdir/lib$name.$libext"
16049 if test -f "$additional_libdir/lib$name.la"; then
16050 found_la="$additional_libdir/lib$name.la"
16055 if test "X$found_dir" = "X"; then
16056 for x in $LDFLAGS $LTLIBBABELTRACE; do
16058 acl_save_prefix="$prefix"
16059 prefix="$acl_final_prefix"
16060 acl_save_exec_prefix="$exec_prefix"
16061 exec_prefix="$acl_final_exec_prefix"
16063 exec_prefix="$acl_save_exec_prefix"
16064 prefix="$acl_save_prefix"
16068 dir=`echo "X$x" | sed -e 's/^X-L//'`
16069 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16071 found_so="$dir/lib$name.$shlibext"
16072 if test -f "$dir/lib$name.la"; then
16073 found_la="$dir/lib$name.la"
16076 if test -f "$dir/lib$name.$libext"; then
16078 found_a="$dir/lib$name.$libext"
16079 if test -f "$dir/lib$name.la"; then
16080 found_la="$dir/lib$name.la"
16086 if test "X$found_dir" != "X"; then
16091 if test "X$found_dir" != "X"; then
16092 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
16093 if test "X$found_so" != "X"; then
16094 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16095 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16098 for x in $ltrpathdirs; do
16099 if test "X$x" = "X$found_dir"; then
16104 if test -z "$haveit"; then
16105 ltrpathdirs="$ltrpathdirs $found_dir"
16107 if test "$hardcode_direct" = yes; then
16108 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16110 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16111 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16113 for x in $rpathdirs; do
16114 if test "X$x" = "X$found_dir"; then
16119 if test -z "$haveit"; then
16120 rpathdirs="$rpathdirs $found_dir"
16124 for x in $LDFLAGS $LIBBABELTRACE; do
16126 acl_save_prefix="$prefix"
16127 prefix="$acl_final_prefix"
16128 acl_save_exec_prefix="$exec_prefix"
16129 exec_prefix="$acl_final_exec_prefix"
16131 exec_prefix="$acl_save_exec_prefix"
16132 prefix="$acl_save_prefix"
16134 if test "X$x" = "X-L$found_dir"; then
16139 if test -z "$haveit"; then
16140 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
16142 if test "$hardcode_minus_L" != no; then
16143 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16145 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16151 if test "X$found_a" != "X"; then
16152 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
16154 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
16157 additional_includedir=
16158 case "$found_dir" in
16160 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16161 additional_includedir="$basedir/include"
16164 if test "X$additional_includedir" != "X"; then
16165 if test "X$additional_includedir" != "X/usr/include"; then
16167 if test "X$additional_includedir" = "X/usr/local/include"; then
16168 if test -n "$GCC"; then
16170 linux*) haveit=yes;;
16174 if test -z "$haveit"; then
16175 for x in $CPPFLAGS $INCBABELTRACE; do
16177 acl_save_prefix="$prefix"
16178 prefix="$acl_final_prefix"
16179 acl_save_exec_prefix="$exec_prefix"
16180 exec_prefix="$acl_final_exec_prefix"
16182 exec_prefix="$acl_save_exec_prefix"
16183 prefix="$acl_save_prefix"
16185 if test "X$x" = "X-I$additional_includedir"; then
16190 if test -z "$haveit"; then
16191 if test -d "$additional_includedir"; then
16192 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
16198 if test -n "$found_la"; then
16199 save_libdir="$libdir"
16200 case "$found_la" in
16201 */* | *\\*) . "$found_la" ;;
16202 *) . "./$found_la" ;;
16204 libdir="$save_libdir"
16205 for dep in $dependency_libs; do
16208 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16209 if test "X$additional_libdir" != "X/usr/lib"; then
16211 if test "X$additional_libdir" = "X/usr/local/lib"; then
16212 if test -n "$GCC"; then
16214 linux*) haveit=yes;;
16218 if test -z "$haveit"; then
16220 for x in $LDFLAGS $LIBBABELTRACE; do
16222 acl_save_prefix="$prefix"
16223 prefix="$acl_final_prefix"
16224 acl_save_exec_prefix="$exec_prefix"
16225 exec_prefix="$acl_final_exec_prefix"
16227 exec_prefix="$acl_save_exec_prefix"
16228 prefix="$acl_save_prefix"
16230 if test "X$x" = "X-L$additional_libdir"; then
16235 if test -z "$haveit"; then
16236 if test -d "$additional_libdir"; then
16237 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
16241 for x in $LDFLAGS $LTLIBBABELTRACE; do
16243 acl_save_prefix="$prefix"
16244 prefix="$acl_final_prefix"
16245 acl_save_exec_prefix="$exec_prefix"
16246 exec_prefix="$acl_final_exec_prefix"
16248 exec_prefix="$acl_save_exec_prefix"
16249 prefix="$acl_save_prefix"
16251 if test "X$x" = "X-L$additional_libdir"; then
16256 if test -z "$haveit"; then
16257 if test -d "$additional_libdir"; then
16258 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
16265 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16266 if test "$enable_rpath" != no; then
16268 for x in $rpathdirs; do
16269 if test "X$x" = "X$dir"; then
16274 if test -z "$haveit"; then
16275 rpathdirs="$rpathdirs $dir"
16278 for x in $ltrpathdirs; do
16279 if test "X$x" = "X$dir"; then
16284 if test -z "$haveit"; then
16285 ltrpathdirs="$ltrpathdirs $dir"
16290 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16293 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16296 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
16297 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
16303 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16304 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
16310 if test "X$rpathdirs" != "X"; then
16311 if test -n "$hardcode_libdir_separator"; then
16313 for found_dir in $rpathdirs; do
16314 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16316 acl_save_libdir="$libdir"
16318 eval flag=\"$hardcode_libdir_flag_spec\"
16319 libdir="$acl_save_libdir"
16320 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16322 for found_dir in $rpathdirs; do
16323 acl_save_libdir="$libdir"
16324 libdir="$found_dir"
16325 eval flag=\"$hardcode_libdir_flag_spec\"
16326 libdir="$acl_save_libdir"
16327 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16331 if test "X$ltrpathdirs" != "X"; then
16332 for found_dir in $ltrpathdirs; do
16333 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
16338 ac_save_CPPFLAGS="$CPPFLAGS"
16340 for element in $INCBABELTRACE; do
16342 for x in $CPPFLAGS; do
16344 acl_save_prefix="$prefix"
16345 prefix="$acl_final_prefix"
16346 acl_save_exec_prefix="$exec_prefix"
16347 exec_prefix="$acl_final_exec_prefix"
16349 exec_prefix="$acl_save_exec_prefix"
16350 prefix="$acl_save_prefix"
16352 if test "X$x" = "X$element"; then
16357 if test -z "$haveit"; then
16358 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
16364 $as_echo_n "checking for libbabeltrace... " >&6; }
16365 if test "${ac_cv_libbabeltrace+set}" = set; then :
16366 $as_echo_n "(cached) " >&6
16369 ac_save_LIBS="$LIBS"
16370 LIBS="$LIBS $LIBBABELTRACE"
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h. */
16373 #include <babeltrace/babeltrace.h>
16374 #include <babeltrace/ctf/events.h>
16375 #include <babeltrace/ctf/iterator.h>
16379 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
16380 struct bt_ctf_event *event = NULL;
16381 const struct bt_definition *scope;
16383 pos->type = BT_SEEK_BEGIN;
16384 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
16385 scope = bt_ctf_get_top_level_scope (event,
16386 BT_STREAM_EVENT_HEADER);
16387 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
16393 if ac_fn_c_try_link "$LINENO"; then :
16394 ac_cv_libbabeltrace=yes
16396 ac_cv_libbabeltrace=no
16398 rm -f core conftest.err conftest.$ac_objext \
16399 conftest$ac_exeext conftest.$ac_ext
16400 LIBS="$ac_save_LIBS"
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
16404 $as_echo "$ac_cv_libbabeltrace" >&6; }
16405 if test "$ac_cv_libbabeltrace" = yes; then
16406 HAVE_LIBBABELTRACE=yes
16408 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
16411 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
16413 $as_echo "$LIBBABELTRACE" >&6; }
16415 HAVE_LIBBABELTRACE=no
16416 CPPFLAGS="$ac_save_CPPFLAGS"
16426 CFLAGS=$saved_CFLAGS
16428 if test "$HAVE_LIBBABELTRACE" != yes; then
16429 if test "$with_babeltrace" = yes; then
16430 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
16433 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
16438 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16439 # to an empty version.
16445 if test "${nativefile}" != ""; then
16446 case "${nativefile}" in
16447 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
16448 * ) GDB_NM_FILE="${nativefile}"
16450 files="${files} ${GDB_NM_FILE}"
16451 links="${links} nm.h"
16453 cat >>confdefs.h <<_ACEOF
16454 #define GDB_NM_FILE "${GDB_NM_FILE}"
16460 for ac_prog in xsltproc
16462 # Extract the first word of "$ac_prog", so it can be a program name with args.
16463 set dummy $ac_prog; ac_word=$2
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16465 $as_echo_n "checking for $ac_word... " >&6; }
16466 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
16467 $as_echo_n "(cached) " >&6
16471 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
16474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16475 for as_dir in $PATH
16478 test -z "$as_dir" && as_dir=.
16479 for ac_exec_ext in '' $ac_executable_extensions; do
16480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16481 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
16482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16492 XSLTPROC=$ac_cv_path_XSLTPROC
16493 if test -n "$XSLTPROC"; then
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
16495 $as_echo "$XSLTPROC" >&6; }
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16498 $as_echo "no" >&6; }
16502 test -n "$XSLTPROC" && break
16504 test -n "$XSLTPROC" || XSLTPROC="missing"
16506 if test "x$USE_MAINTAINER_MODE" = xyes; then
16507 if test "${XSLTPROC}" = missing; then
16508 as_fn_error "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
16513 ac_sources="$files"
16515 while test -n "$ac_sources"; do
16516 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16517 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16518 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
16520 ac_config_links="$ac_config_links $ac_config_links_1"
16526 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16529 if $development; then
16531 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
16536 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16537 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
16538 if test "x$GDB_TRANSFORM_NAME" = x; then
16539 GDB_TRANSFORM_NAME=gdb
16544 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16545 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
16546 if test "x$GCORE_TRANSFORM_NAME" = x; then
16547 GCORE_TRANSFORM_NAME=gcore
16551 ac_config_files="$ac_config_files gcore"
16553 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
16556 cat >confcache <<\_ACEOF
16557 # This file is a shell script that caches the results of configure
16558 # tests run on this system so they can be shared between configure
16559 # scripts and configure runs, see configure's option --config-cache.
16560 # It is not useful on other systems. If it contains results you don't
16561 # want to keep, you may remove or edit it.
16563 # config.status only pays attention to the cache file if you give it
16564 # the --recheck option to rerun configure.
16566 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16567 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16568 # following values.
16572 # The following way of writing the cache mishandles newlines in values,
16573 # but we know of no workaround that is simple, portable, and efficient.
16574 # So, we kill variables containing newlines.
16575 # Ultrix sh set writes to stderr and can't be redirected directly,
16576 # and sets the high bit in the cache file unless we assign to the vars.
16578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16579 eval ac_val=\$$ac_var
16583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16584 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16587 _ | IFS | as_nl) ;; #(
16588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16589 *) { eval $ac_var=; unset $ac_var;} ;;
16595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16596 *${as_nl}ac_space=\ *)
16597 # `set' does not quote correctly, so add quotes: double-quote
16598 # substitution turns \\\\ into \\, and sed turns \\ into \.
16601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16604 # `set' quotes correctly as required by POSIX, so do not add quotes.
16605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16619 if test -w "$cache_file"; then
16620 test "x$cache_file" != "x/dev/null" &&
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16622 $as_echo "$as_me: updating cache $cache_file" >&6;}
16623 cat confcache >$cache_file
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16626 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16631 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16632 # Let make expand exec_prefix.
16633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16635 DEFS=-DHAVE_CONFIG_H
16639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16640 # 1. Remove the extension, and $U if already installed.
16641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16642 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16644 # will be set to the directory where LIBOBJS objects are built.
16645 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16646 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16648 LIBOBJS=$ac_libobjs
16650 LTLIBOBJS=$ac_ltlibobjs
16653 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16654 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16657 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16658 as_fn_error "conditional \"GMAKE\" was never defined.
16659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16661 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16662 as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
16663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16665 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
16666 as_fn_error "conditional \"HAVE_GUILE\" was never defined.
16667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16671 : ${CONFIG_STATUS=./config.status}
16673 ac_clean_files_save=$ac_clean_files
16674 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16676 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16678 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16680 # Generated by $as_me.
16681 # Run this file to recreate the current configuration.
16682 # Compiler output produced by configure, useful for debugging
16683 # configure, is in config.log if it exists.
16686 ac_cs_recheck=false
16689 SHELL=\${CONFIG_SHELL-$SHELL}
16692 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16693 ## -------------------- ##
16694 ## M4sh Initialization. ##
16695 ## -------------------- ##
16697 # Be more Bourne compatible
16698 DUALCASE=1; export DUALCASE # for MKS sh
16699 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16702 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16703 # is contrary to our usage. Disable this feature.
16704 alias -g '${1+"$@"}'='"$@"'
16705 setopt NO_GLOB_SUBST
16707 case `(set -o) 2>/dev/null` in #(
16719 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16720 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16723 # Prefer a ksh shell builtin over an external printf program on Solaris,
16724 # but without wasting forks for bash or zsh.
16725 if test -z "$BASH_VERSION$ZSH_VERSION" \
16726 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16727 as_echo='print -r --'
16728 as_echo_n='print -rn --'
16729 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16730 as_echo='printf %s\n'
16731 as_echo_n='printf %s'
16733 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16734 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16735 as_echo_n='/usr/ucb/echo -n'
16737 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16738 as_echo_n_body='eval
16742 expr "X$arg" : "X\\(.*\\)$as_nl";
16743 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16745 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16747 export as_echo_n_body
16748 as_echo_n='sh -c $as_echo_n_body as_echo'
16750 export as_echo_body
16751 as_echo='sh -c $as_echo_body as_echo'
16754 # The user is always right.
16755 if test "${PATH_SEPARATOR+set}" != set; then
16757 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16758 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16765 # We need space, tab and new line, in precisely that order. Quoting is
16766 # there to prevent editors from complaining about space-tab.
16767 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16768 # splitting by setting IFS to empty value.)
16771 # Find who we are. Look in the path if we contain no directory separator.
16773 *[\\/]* ) as_myself=$0 ;;
16774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16775 for as_dir in $PATH
16778 test -z "$as_dir" && as_dir=.
16779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16785 # We did not find ourselves, most probably we were run as `sh COMMAND'
16786 # in which case we are not to be found in the path.
16787 if test "x$as_myself" = x; then
16790 if test ! -f "$as_myself"; then
16791 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16795 # Unset variables that we do not need and which cause bugs (e.g. in
16796 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16797 # suppresses any "Segmentation fault" message there. '((' could
16798 # trigger a bug in pdksh 5.2.14.
16799 for as_var in BASH_ENV ENV MAIL MAILPATH
16800 do eval test x\${$as_var+set} = xset \
16801 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16814 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16817 # as_fn_error ERROR [LINENO LOG_FD]
16818 # ---------------------------------
16819 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16820 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16821 # script with status $?, using 1 if that was 0.
16824 as_status=$?; test $as_status -eq 0 && as_status=1
16826 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16827 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16829 $as_echo "$as_me: error: $1" >&2
16830 as_fn_exit $as_status
16834 # as_fn_set_status STATUS
16835 # -----------------------
16836 # Set $? to STATUS, without forking.
16837 as_fn_set_status ()
16840 } # as_fn_set_status
16842 # as_fn_exit STATUS
16843 # -----------------
16844 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16848 as_fn_set_status $1
16854 # Portably unset VAR.
16857 { eval $1=; unset $1;}
16859 as_unset=as_fn_unset
16860 # as_fn_append VAR VALUE
16861 # ----------------------
16862 # Append the text in VALUE to the end of the definition contained in VAR. Take
16863 # advantage of any shell optimizations that allow amortized linear growth over
16864 # repeated appends, instead of the typical quadratic growth present in naive
16866 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16867 eval 'as_fn_append ()
16878 # as_fn_arith ARG...
16879 # ------------------
16880 # Perform arithmetic evaluation on the ARGs, and store the result in the
16881 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16882 # must be portable across $(()) and expr.
16883 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16884 eval 'as_fn_arith ()
16891 as_val=`expr "$@" || test $? -eq 1`
16896 if expr a : '\(a\)' >/dev/null 2>&1 &&
16897 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16903 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16904 as_basename=basename
16909 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16915 as_me=`$as_basename -- "$0" ||
16916 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16917 X"$0" : 'X\(//\)$' \| \
16918 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16920 sed '/^.*\/\([^/][^/]*\)\/*$/{
16934 # Avoid depending upon Character Ranges.
16935 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16936 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16937 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16938 as_cr_digits='0123456789'
16939 as_cr_alnum=$as_cr_Letters$as_cr_digits
16941 ECHO_C= ECHO_N= ECHO_T=
16942 case `echo -n x` in #(((((
16944 case `echo 'xy\c'` in
16945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16947 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16954 rm -f conf$$ conf$$.exe conf$$.file
16955 if test -d conf$$.dir; then
16956 rm -f conf$$.dir/conf$$.file
16959 mkdir conf$$.dir 2>/dev/null
16961 if (echo >conf$$.file) 2>/dev/null; then
16962 if ln -s conf$$.file conf$$ 2>/dev/null; then
16964 # ... but there are two gotchas:
16965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16967 # In both cases, we have to default to `cp -p'.
16968 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16970 elif ln conf$$.file conf$$ 2>/dev/null; then
16978 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16979 rmdir conf$$.dir 2>/dev/null
16984 # Create "$as_dir" as a directory, including parents if necessary.
16989 -*) as_dir=./$as_dir;;
16991 test -d "$as_dir" || eval $as_mkdir_p || {
16995 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16996 *) as_qdir=$as_dir;;
16998 as_dirs="'$as_qdir' $as_dirs"
16999 as_dir=`$as_dirname -- "$as_dir" ||
17000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17001 X"$as_dir" : 'X\(//\)[^/]' \| \
17002 X"$as_dir" : 'X\(//\)$' \| \
17003 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17004 $as_echo X"$as_dir" |
17005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17009 /^X\(\/\/\)[^/].*/{
17022 test -d "$as_dir" && break
17024 test -z "$as_dirs" || eval "mkdir $as_dirs"
17025 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17029 if mkdir -p . 2>/dev/null; then
17030 as_mkdir_p='mkdir -p "$as_dir"'
17032 test -d ./-p && rmdir ./-p
17036 if test -x / >/dev/null 2>&1; then
17037 as_test_x='test -x'
17039 if ls -dL / >/dev/null 2>&1; then
17046 if test -d "$1"; then
17052 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17053 ???[sx]*):;;*)false;;esac;fi
17057 as_executable_p=$as_test_x
17059 # Sed expression to map a string onto a valid CPP name.
17060 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17062 # Sed expression to map a string onto a valid variable name.
17063 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17067 ## ----------------------------------- ##
17068 ## Main body of $CONFIG_STATUS script. ##
17069 ## ----------------------------------- ##
17071 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074 # Save the log message, to keep $0 and so on meaningful, and to
17075 # report actual input values of CONFIG_FILES etc. instead of their
17076 # values after options handling.
17078 This file was extended by $as_me, which was
17079 generated by GNU Autoconf 2.64. Invocation command line was
17081 CONFIG_FILES = $CONFIG_FILES
17082 CONFIG_HEADERS = $CONFIG_HEADERS
17083 CONFIG_LINKS = $CONFIG_LINKS
17084 CONFIG_COMMANDS = $CONFIG_COMMANDS
17087 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17092 case $ac_config_files in *"
17093 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17096 case $ac_config_headers in *"
17097 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17102 # Files that config.status was made for.
17103 config_files="$ac_config_files"
17104 config_headers="$ac_config_headers"
17105 config_links="$ac_config_links"
17106 config_commands="$ac_config_commands"
17110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17112 \`$as_me' instantiates files and other configuration actions
17113 from templates according to the current configuration. Unless the files
17114 and actions are specified as TAGs, all are instantiated by default.
17116 Usage: $0 [OPTION]... [TAG]...
17118 -h, --help print this help, then exit
17119 -V, --version print version number and configuration settings, then exit
17120 -q, --quiet, --silent
17121 do not print progress messages
17122 -d, --debug don't remove temporary files
17123 --recheck update $as_me by reconfiguring in the same conditions
17124 --file=FILE[:TEMPLATE]
17125 instantiate the configuration file FILE
17126 --header=FILE[:TEMPLATE]
17127 instantiate the configuration header FILE
17129 Configuration files:
17132 Configuration headers:
17135 Configuration links:
17138 Configuration commands:
17141 Report bugs to the package provider."
17144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17147 configured by $0, generated by GNU Autoconf 2.64,
17148 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17150 Copyright (C) 2009 Free Software Foundation, Inc.
17151 This config.status script is free software; the Free Software Foundation
17152 gives unlimited permission to copy, distribute and modify it."
17158 test -n "\$AWK" || AWK=awk
17161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17162 # The default lists apply if the user does not specify any file.
17168 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17169 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17180 # Handling of the options.
17181 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17183 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17184 $as_echo "$ac_cs_version"; exit ;;
17185 --debug | --debu | --deb | --de | --d | -d )
17187 --file | --fil | --fi | --f )
17190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17192 as_fn_append CONFIG_FILES " '$ac_optarg'"
17193 ac_need_defaults=false;;
17194 --header | --heade | --head | --hea )
17197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17199 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17200 ac_need_defaults=false;;
17202 # Conflict between --help and --header
17203 as_fn_error "ambiguous option: \`$1'
17204 Try \`$0 --help' for more information.";;
17205 --help | --hel | -h )
17206 $as_echo "$ac_cs_usage"; exit ;;
17207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17211 # This is an error.
17212 -*) as_fn_error "unrecognized option: \`$1'
17213 Try \`$0 --help' for more information." ;;
17215 *) as_fn_append ac_config_targets " $1"
17216 ac_need_defaults=false ;;
17222 ac_configure_extra_args=
17224 if $ac_cs_silent; then
17226 ac_configure_extra_args="$ac_configure_extra_args --silent"
17230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17231 if \$ac_cs_recheck; then
17232 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17235 CONFIG_SHELL='$SHELL'
17236 export CONFIG_SHELL
17241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17246 ## Running $as_me. ##
17252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17256 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17262 # Handling of arguments.
17263 for ac_config_target in $ac_config_targets
17265 case $ac_config_target in
17266 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17267 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
17268 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17269 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
17270 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
17271 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17272 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
17273 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17274 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
17276 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17281 # If the user did not use the arguments to specify the items to instantiate,
17282 # then the envvar interface is used. Set only those that are not.
17283 # We use the long form for the default assignment because of an extremely
17284 # bizarre bug on SunOS 4.1.3.
17285 if $ac_need_defaults; then
17286 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17287 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17288 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17289 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17292 # Have a temporary directory for convenience. Make it in the build tree
17293 # simply because there is no reason against having it here, and in addition,
17294 # creating and moving files from /tmp can sometimes cause problems.
17295 # Hook for its removal unless debugging.
17296 # Note that there is a small window in which the directory will not be cleaned:
17297 # after its creation but before its name has been assigned to `$tmp'.
17301 trap 'exit_status=$?
17302 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17304 trap 'as_fn_exit 1' 1 2 13 15
17306 # Create a (secure) tmp directory for tmp files.
17309 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17310 test -n "$tmp" && test -d "$tmp"
17313 tmp=./conf$$-$RANDOM
17314 (umask 077 && mkdir "$tmp")
17315 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17317 # Set up the scripts for CONFIG_FILES section.
17318 # No need to generate them if there are no CONFIG_FILES.
17319 # This happens for instance with `./config.status config.h'.
17320 if test -n "$CONFIG_FILES"; then
17322 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17323 ac_cs_awk_getline=:
17324 ac_cs_awk_pipe_init=
17325 ac_cs_awk_read_file='
17326 while ((getline aline < (F[key])) > 0)
17329 ac_cs_awk_pipe_fini=
17331 ac_cs_awk_getline=false
17332 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17333 ac_cs_awk_read_file='
17335 print "cat " F[key] " &&"
17336 '$ac_cs_awk_pipe_init
17337 # The final `:' finishes the AND list.
17338 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17340 ac_cr=`echo X | tr X '\015'`
17341 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17342 # But we know of no other shell where ac_cr would be empty at this
17343 # point, so we can use a bashism as a fallback.
17344 if test "x$ac_cr" = x; then
17345 eval ac_cr=\$\'\\r\'
17347 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17348 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17351 ac_cs_awk_cr=$ac_cr
17354 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17357 # Create commands to substitute file output variables.
17359 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17360 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17361 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17364 } >conf$$files.sh &&
17365 . ./conf$$files.sh ||
17366 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17367 rm -f conf$$files.sh
17370 echo "cat >conf$$subs.awk <<_ACEOF" &&
17371 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17373 } >conf$$subs.sh ||
17374 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17375 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17377 for ac_last_try in false false false false false :; do
17378 . ./conf$$subs.sh ||
17379 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17381 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17382 if test $ac_delim_n = $ac_delim_num; then
17384 elif $ac_last_try; then
17385 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17390 rm -f conf$$subs.sh
17392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17393 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17397 s/^/S["/; s/!.*/"]=/
17407 s/\(.\{148\}\).*/\1/
17409 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17414 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17421 s/\(.\{148\}\).*/\1/
17423 s/["\\]/\\&/g; s/^/"/; s/$/"/
17427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17432 ' <conf$$subs.awk | sed '
17437 ' >>$CONFIG_STATUS || ac_write_fail=1
17438 rm -f conf$$subs.awk
17439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17441 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17442 for (key in S) S_is_set[key] = 1
17444 \$ac_cs_awk_pipe_init
17448 nfields = split(line, field, "@")
17450 len = length(field[1])
17451 for (i = 2; i < nfields; i++) {
17453 keylen = length(key)
17454 if (S_is_set[key]) {
17456 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17457 len += length(value) + length(field[++i])
17462 if (nfields == 3 && !substed) {
17464 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17465 \$ac_cs_awk_read_file
17471 \$ac_cs_awk_pipe_fini
17474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17475 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17476 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17479 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17480 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17485 # trailing colons and then remove the whole line if VPATH becomes empty
17486 # (actually we leave an empty line to preserve line numbers).
17487 if test "x$srcdir" = x.; then
17488 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17489 s/:*\$(srcdir):*/:/
17490 s/:*\${srcdir}:*/:/
17492 s/^\([^=]*=[ ]*\):*/\1/
17498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17499 fi # test -n "$CONFIG_FILES"
17501 # Set up the scripts for CONFIG_HEADERS section.
17502 # No need to generate them if there are no CONFIG_HEADERS.
17503 # This happens for instance with `./config.status Makefile'.
17504 if test -n "$CONFIG_HEADERS"; then
17505 cat >"$tmp/defines.awk" <<\_ACAWK ||
17509 # Transform confdefs.h into an awk script `defines.awk', embedded as
17510 # here-document in config.status, that substitutes the proper values into
17511 # config.h.in to produce config.h.
17513 # Create a delimiter string that does not exist in confdefs.h, to ease
17514 # handling of long lines.
17516 for ac_last_try in false false :; do
17517 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17518 if test -z "$ac_t"; then
17520 elif $ac_last_try; then
17521 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17527 # For the awk script, D is an array of macro values keyed by name,
17528 # likewise P contains macro parameters if any. Preserve backslash
17529 # newline sequences.
17531 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17533 s/.\{148\}/&'"$ac_delim"'/g
17536 s/^[ ]*#[ ]*define[ ][ ]*/ /
17543 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17545 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17549 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17550 D["\1"]=" \3\\\\\\n"\\/p
17552 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17557 s/.\{148\}/&'"$ac_delim"'/g
17562 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17565 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17567 ' <confdefs.h | sed '
17568 s/'"$ac_delim"'/"\\\
17569 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17572 for (key in D) D_is_set[key] = 1
17575 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17577 split(line, arg, " ")
17578 if (arg[1] == "#") {
17582 defundef = substr(arg[1], 2)
17585 split(mac1, mac2, "(") #)
17587 prefix = substr(line, 1, index(line, defundef) - 1)
17588 if (D_is_set[macro]) {
17589 # Preserve the white space surrounding the "#".
17590 print prefix "define", macro P[macro] D[macro]
17593 # Replace #undef with comments. This is necessary, for example,
17594 # in the case of _POSIX_SOURCE, which is predefined and required
17595 # on some systems where configure will not decide to define it.
17596 if (defundef == "undef") {
17597 print "/*", prefix defundef, macro, "*/"
17605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17606 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17607 fi # test -n "$CONFIG_HEADERS"
17610 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17615 :[FHLC]) ac_mode=$ac_tag; continue;;
17617 case $ac_mode$ac_tag in
17619 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17620 :[FH]-) ac_tag=-:-;;
17621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17638 -) ac_f="$tmp/stdin";;
17639 *) # Look for the file first in the build tree, then in the source tree
17640 # (if the path is not absolute). The absolute path cannot be DOS-style,
17641 # because $ac_f cannot contain `:'.
17645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17647 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17649 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17650 as_fn_append ac_file_inputs " '$ac_f'"
17653 # Let's still pretend it is `configure' which instantiates (i.e., don't
17654 # use $as_me), people would be surprised to read:
17655 # /* config.h. Generated by config.status. */
17656 configure_input='Generated from '`
17657 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17659 if test x"$ac_file" != x-; then
17660 configure_input="$ac_file. $configure_input"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17662 $as_echo "$as_me: creating $ac_file" >&6;}
17664 # Neutralize special characters interpreted by sed in replacement strings.
17665 case $configure_input in #(
17666 *\&* | *\|* | *\\* )
17667 ac_sed_conf_input=`$as_echo "$configure_input" |
17668 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17669 *) ac_sed_conf_input=$configure_input;;
17673 *:-:* | *:-) cat >"$tmp/stdin" \
17674 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17679 ac_dir=`$as_dirname -- "$ac_file" ||
17680 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17681 X"$ac_file" : 'X\(//\)[^/]' \| \
17682 X"$ac_file" : 'X\(//\)$' \| \
17683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17684 $as_echo X"$ac_file" |
17685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17689 /^X\(\/\/\)[^/].*/{
17702 as_dir="$ac_dir"; as_fn_mkdir_p
17706 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17709 # A ".." for each directory in $ac_dir_suffix.
17710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17711 case $ac_top_builddir_sub in
17712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17716 ac_abs_top_builddir=$ac_pwd
17717 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17718 # for backward compatibility:
17719 ac_top_builddir=$ac_top_build_prefix
17722 .) # We are building in place.
17724 ac_top_srcdir=$ac_top_builddir_sub
17725 ac_abs_top_srcdir=$ac_pwd ;;
17726 [\\/]* | ?:[\\/]* ) # Absolute name.
17727 ac_srcdir=$srcdir$ac_dir_suffix;
17728 ac_top_srcdir=$srcdir
17729 ac_abs_top_srcdir=$srcdir ;;
17730 *) # Relative name.
17731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17732 ac_top_srcdir=$ac_top_build_prefix$srcdir
17733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17735 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17745 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17746 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17751 # If the template does not know about datarootdir, expand it.
17752 # FIXME: This hack should be removed a few years after 2.60.
17753 ac_datarootdir_hack=; ac_datarootdir_seen=
17764 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17765 *datarootdir*) ac_datarootdir_seen=yes;;
17766 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17768 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17771 ac_datarootdir_hack='
17772 s&@datadir@&$datadir&g
17773 s&@docdir@&$docdir&g
17774 s&@infodir@&$infodir&g
17775 s&@localedir@&$localedir&g
17776 s&@mandir@&$mandir&g
17777 s&\\\${datarootdir}&$datarootdir&g' ;;
17781 # Neutralize VPATH when `$srcdir' = `.'.
17782 # Shell code in configure.ac might set extrasub.
17783 # FIXME: do we really want to maintain this feature?
17784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17785 ac_sed_extra="$ac_vpsub
17788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17791 s|@configure_input@|$ac_sed_conf_input|;t t
17792 s&@top_builddir@&$ac_top_builddir_sub&;t t
17793 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17794 s&@srcdir@&$ac_srcdir&;t t
17795 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17796 s&@top_srcdir@&$ac_top_srcdir&;t t
17797 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17798 s&@builddir@&$ac_builddir&;t t
17799 s&@abs_builddir@&$ac_abs_builddir&;t t
17800 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17801 s&@INSTALL@&$ac_INSTALL&;t t
17802 $ac_datarootdir_hack
17804 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17805 if $ac_cs_awk_getline; then
17806 $AWK -f "$tmp/subs.awk"
17808 $AWK -f "$tmp/subs.awk" | $SHELL
17810 || as_fn_error "could not create $ac_file" "$LINENO" 5
17812 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17813 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17814 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17816 which seems to be undefined. Please make sure it is defined." >&5
17817 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17818 which seems to be undefined. Please make sure it is defined." >&2;}
17822 -) cat "$tmp/out" && rm -f "$tmp/out";;
17823 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17825 || as_fn_error "could not create $ac_file" "$LINENO" 5
17831 if test x"$ac_file" != x-; then
17833 $as_echo "/* $configure_input */" \
17834 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17835 } >"$tmp/config.h" \
17836 || as_fn_error "could not create $ac_file" "$LINENO" 5
17837 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17839 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17842 mv "$tmp/config.h" "$ac_file" \
17843 || as_fn_error "could not create $ac_file" "$LINENO" 5
17846 $as_echo "/* $configure_input */" \
17847 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17848 || as_fn_error "could not create -" "$LINENO" 5
17856 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17859 # Prefer the file from the source tree if names are identical.
17860 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17861 ac_source=$srcdir/$ac_source
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17865 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17867 if test ! -r "$ac_source"; then
17868 as_fn_error "$ac_source: file not found" "$LINENO" 5
17872 # Try a relative symlink, then a hard link, then a copy.
17874 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17875 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17877 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17878 ln "$ac_source" "$ac_file" 2>/dev/null ||
17879 cp -p "$ac_source" "$ac_file" ||
17880 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17883 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17884 $as_echo "$as_me: executing $ac_file commands" >&6;}
17889 case $ac_file$ac_mode in
17890 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17891 "gcore":F) chmod +x gcore ;;
17893 case x$CONFIG_HEADERS in
17894 xconfig.h:config.in)
17899 case x$CONFIG_HEADERS in
17900 xconfig.h:config.in)
17905 case x$CONFIG_HEADERS in
17906 xconfig.h:config.in)
17910 "data-directory/Makefile":F)
17911 case x$CONFIG_HEADERS in
17912 xconfig.h:config.in)
17923 ac_clean_files=$ac_clean_files_save
17925 test $ac_write_fail = 0 ||
17926 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17929 # configure is writing to config.log, and then calls config.status.
17930 # config.status does its own redirection, appending to config.log.
17931 # Unfortunately, on DOS this fails, as config.log is still kept open
17932 # by configure, so config.status won't be able to write to it; its
17933 # output is simply discarded. So we exec the FD to /dev/null,
17934 # effectively closing config.log, so it can be properly (re)opened and
17935 # appended to by config.status. When coming back to configure, we
17936 # need to make the FD available again.
17937 if test "$no_create" != yes; then
17939 ac_config_status_args=
17940 test "$silent" = yes &&
17941 ac_config_status_args="$ac_config_status_args --quiet"
17943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17946 # would make configure fail if this is the last instruction.
17947 $ac_cs_success || as_fn_exit $?
17951 # CONFIG_SUBDIRS section.
17953 if test "$no_recursion" != yes; then
17955 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17956 # so they do not pile up.
17957 ac_sub_configure_args=
17959 eval "set x $ac_configure_args"
17963 if test -n "$ac_prev"; then
17968 -cache-file | --cache-file | --cache-fil | --cache-fi \
17969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17970 ac_prev=cache_file ;;
17971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17975 --config-cache | -C)
17977 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17979 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17981 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17983 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17985 --disable-option-checking)
17989 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17991 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17995 # Always prepend --prefix to ensure using the same prefix
17996 # in subdir configurations.
17997 ac_arg="--prefix=$prefix"
17999 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18001 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18004 if test "$silent" = yes; then
18005 ac_sub_configure_args="--silent $ac_sub_configure_args"
18008 # Always prepend --disable-option-checking to silence warnings, since
18009 # different subdirs can have different --enable and --with options.
18010 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18013 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18015 # Do not complain, so a configure script can configure whichever
18016 # parts of a large source tree are present.
18017 test -d "$srcdir/$ac_dir" || continue
18019 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18020 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18021 $as_echo "$ac_msg" >&6
18022 as_dir="$ac_dir"; as_fn_mkdir_p
18026 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18028 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18029 # A ".." for each directory in $ac_dir_suffix.
18030 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18031 case $ac_top_builddir_sub in
18032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18036 ac_abs_top_builddir=$ac_pwd
18037 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18038 # for backward compatibility:
18039 ac_top_builddir=$ac_top_build_prefix
18042 .) # We are building in place.
18044 ac_top_srcdir=$ac_top_builddir_sub
18045 ac_abs_top_srcdir=$ac_pwd ;;
18046 [\\/]* | ?:[\\/]* ) # Absolute name.
18047 ac_srcdir=$srcdir$ac_dir_suffix;
18048 ac_top_srcdir=$srcdir
18049 ac_abs_top_srcdir=$srcdir ;;
18050 *) # Relative name.
18051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18052 ac_top_srcdir=$ac_top_build_prefix$srcdir
18053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18055 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18060 # Check for guested configure; otherwise get Cygnus style configure.
18061 if test -f "$ac_srcdir/configure.gnu"; then
18062 ac_sub_configure=$ac_srcdir/configure.gnu
18063 elif test -f "$ac_srcdir/configure"; then
18064 ac_sub_configure=$ac_srcdir/configure
18065 elif test -f "$ac_srcdir/configure.in"; then
18066 # This should be Cygnus configure.
18067 ac_sub_configure=$ac_aux_dir/configure
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18070 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18074 # The recursion is here.
18075 if test -n "$ac_sub_configure"; then
18076 # Make the cache file name correct relative to the subdirectory.
18077 case $cache_file in
18078 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18079 *) # Relative name.
18080 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18084 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18085 # The eval makes quoting arguments work.
18086 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18087 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18088 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18094 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18096 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}