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
737 INSTALL_STRIP_PROGRAM
766 MAINTAINER_MODE_FALSE
795 program_transform_name
806 ac_subst_files='host_makefile_frag'
808 enable_option_checking
809 enable_maintainer_mode
812 enable_build_with_cxx
813 with_separate_debug_dir
815 with_relocated_sources
817 with_auto_load_safe_path
847 enable_build_warnings
848 enable_gdb_build_warnings
858 with_libbabeltrace_prefix
860 ac_precious_vars='build_alias
877 ac_subdirs_all='testsuite
882 # Initialize some variables set by options.
884 ac_init_version=false
885 ac_unrecognized_opts=
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
896 program_transform_name=s,x,x,
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir='${exec_prefix}/bin'
911 sbindir='${exec_prefix}/sbin'
912 libexecdir='${exec_prefix}/libexec'
913 datarootdir='${prefix}/share'
914 datadir='${datarootdir}'
915 sysconfdir='${prefix}/etc'
916 sharedstatedir='${prefix}/com'
917 localstatedir='${prefix}/var'
918 includedir='${prefix}/include'
919 oldincludedir='/usr/include'
920 docdir='${datarootdir}/doc/${PACKAGE}'
921 infodir='${datarootdir}/info'
926 libdir='${exec_prefix}/lib'
927 localedir='${datarootdir}/locale'
928 mandir='${datarootdir}/man'
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
936 eval $ac_prev=\$ac_option
942 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 # Accept the important Cygnus configure options, so we can diagnose typos.
948 case $ac_dashdash$ac_option in
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 -build | --build | --buil | --bui | --bu)
958 ac_prev=build_alias ;;
959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960 build_alias=$ac_optarg ;;
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967 cache_file=$ac_optarg ;;
970 cache_file=config.cache ;;
972 -datadir | --datadir | --datadi | --datad)
974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
975 datadir=$ac_optarg ;;
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
984 -disable-* | --disable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
998 eval enable_$ac_useropt=no ;;
1000 -docdir | --docdir | --docdi | --doc | --do)
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1010 -enable-* | --enable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_$ac_useropt"
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 htmldir=$ac_optarg ;;
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1069 -libdir | --libdir | --libdi | --libd)
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1160 -psdir | --psdir | --psdi | --psd | --ps)
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 sbindir=$ac_optarg ;;
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 sharedstatedir=$ac_optarg ;;
1186 -site | --site | --sit)
1188 -site=* | --site=* | --sit=*)
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1228 eval with_$ac_useropt=\$ac_optarg ;;
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1244 eval with_$ac_useropt=no ;;
1247 # Obsolete; use --with-x.
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1264 -*) as_fn_error "unrecognized option: \`$ac_option'
1265 Try \`$0 --help' for more information."
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
1273 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289 if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 as_fn_error "missing argument to $ac_option"
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1297 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302 # Check all directory arguments for consistency.
1303 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1315 # Be sure to have absolute directory names.
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1328 target=$target_alias
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
1334 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1335 If a cross compiler is detected then cross compile mode will be used." >&2
1336 elif test "x$build_alias" != "x$host_alias"; then
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344 test "$silent" = yes && exec 6>/dev/null
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350 as_fn_error "working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 as_fn_error "pwd does not report name of working directory"
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$as_myself" : 'X\(//\)[^/]' \| \
1362 X"$as_myself" : 'X\(//\)$' \| \
1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1387 ac_srcdir_defaulted=no
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 # Report the --help message.
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1421 \`configure' configures this package to adapt to many kinds of systems.
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1428 Defaults for the options are specified in brackets.
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1452 For better control, use the options below.
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1484 --x-includes=DIR X include files are in DIR
1485 --x-libraries=DIR X library files are in DIR
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 --target=TARGET configure for building compilers for TARGET [HOST]
1494 if test -n "$ac_init_help"; then
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-maintainer-mode enable make rules and dependencies not useful
1503 (and sometimes confusing) to the casual installer
1504 --enable-plugins Enable support for plugins
1505 --disable-largefile omit support for large files
1506 --disable-build-with-cxx
1507 build with C compiler instead of C++ compiler
1508 --enable-targets=TARGETS
1509 alternative target configurations
1510 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1511 --disable-gdbcli disable command-line interface (CLI)
1512 --disable-gdbmi disable machine-interface (MI)
1513 --enable-tui enable full-screen terminal user interface (TUI)
1514 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1515 --enable-profiling enable profiling of GDB
1516 --disable-rpath do not hardcode runtime library paths
1517 --enable-libmcheck Try linking with -lmcheck if available
1518 --enable-werror treat compile warnings as errors
1519 --enable-build-warnings enable build-time compiler warnings if gcc is used
1520 --enable-gdb-build-warnings
1521 enable GDB specific build-time compiler warnings if
1523 --enable-sim link gdb with simulator
1524 --enable-multi-ice build the multi-ice-gdb-server
1525 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531 --with-separate-debug-dir=PATH
1532 look for global separate debug info in this path
1534 --with-gdb-datadir=PATH look for global separate data files in this path
1536 --with-relocated-sources=PATH
1537 automatically relocate this path for source files
1538 --with-auto-load-dir=PATH
1539 directories from which to load auto-loaded scripts
1540 [$debugdir:$datadir/auto-load]
1541 --with-auto-load-safe-path=PATH
1542 directories safe to hold auto-loaded files
1543 [--with-auto-load-dir]
1544 --without-auto-load-safe-path
1545 do not restrict auto-loaded files locations
1546 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1547 --with-curses use the curses library instead of the termcap
1549 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1550 --with-bugurl=URL Direct users to URL to report a bug
1551 --with-system-zlib use installed libz
1552 --with-gnu-ld assume the C compiler uses GNU ld default=no
1553 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1554 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1555 --with-iconv-bin=PATH specify where to find the iconv program
1556 --with-system-readline use installed readline library
1557 --with-jit-reader-dir=PATH
1558 directory to load the JIT readers from
1559 --with-expat include expat support (auto/yes/no)
1560 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1561 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1562 --with-python[=PYTHON] include python support
1563 (auto/yes/no/<python-program>)
1564 --with-guile[=GUILE] include guile support
1565 (auto/yes/no/<guile-version>/<pkg-config-program>)
1566 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1567 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1568 --without-libipt-prefix don't search for libipt in includedir and libdir
1569 --without-included-regex
1570 don't use included regex; this is the default on
1571 systems with version 2 of the GNU C library (use
1572 with caution on other system)
1573 --with-sysroot[=DIR] search for usr/lib et al within DIR
1574 --with-system-gdbinit=PATH
1575 automatically load a system-wide gdbinit file
1576 --with-lzma support lzma compression (auto/yes/no)
1577 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1578 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1579 --with-tcl directory containing tcl configuration (tclConfig.sh)
1580 --with-tk directory containing tk configuration (tkConfig.sh)
1581 --with-x use the X Window System
1582 --with-babeltrace include babeltrace support (auto/yes/no)
1583 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1584 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1586 Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
1591 LIBS libraries to pass to the linker, e.g. -l<library>
1592 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1593 you have headers in a nonstandard directory <include dir>
1594 CXX C++ compiler command
1595 CXXFLAGS C++ compiler flags
1597 MAKEINFO Parent configure detects if it is of sufficient version.
1599 Parameters for MAKEINFO.
1600 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1601 the first program found out of: `bison -y', `byacc', `yacc'.
1602 YFLAGS The list of arguments that will be passed by default to $YACC.
1603 This script will default YFLAGS to the empty string to avoid a
1604 default value of `-d' given by some make applications.
1605 XMKMF Path to xmkmf, Makefile generator for X Window System
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1610 Report bugs to the package provider.
1615 if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634 ac_abs_top_builddir=$ac_pwd
1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir=$ac_top_build_prefix
1640 .) # We are building in place.
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
1645 ac_srcdir=$srcdir$ac_dir_suffix;
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1662 $SHELL "$ac_srcdir/configure" --help=recursive
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 cd "$ac_pwd" || { ac_status=$?; break; }
1670 test -n "$ac_init_help" && exit $ac_status
1671 if $ac_init_version; then
1674 generated by GNU Autoconf 2.64
1676 Copyright (C) 2009 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1683 ## ------------------------ ##
1684 ## Autoconf initialization. ##
1685 ## ------------------------ ##
1687 # ac_fn_c_try_compile LINENO
1688 # --------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_compile ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 } # ac_fn_c_try_compile
1725 # ac_fn_cxx_try_compile LINENO
1726 # ----------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_cxx_try_compile ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_cxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 } # ac_fn_cxx_try_compile
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } >/dev/null && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803 # the include files in INCLUDES and setting the cache variable VAR
1805 ac_fn_c_check_header_mongrel ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1812 $as_echo_n "(cached) " >&6
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 # Is the header compilable?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820 $as_echo_n "checking $2 usability... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_header_compiler=yes
1829 ac_header_compiler=no
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833 $as_echo "$ac_header_compiler" >&6; }
1835 # Is the header present?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837 $as_echo_n "checking $2 presence... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1842 if ac_fn_c_try_cpp "$LINENO"; then :
1843 ac_header_preproc=yes
1845 ac_header_preproc=no
1847 rm -f conftest.err conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849 $as_echo "$ac_header_preproc" >&6; }
1851 # So? What about this header?
1852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1863 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1867 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1877 eval "$3=\$ac_header_compiler"
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 } # ac_fn_c_check_header_mongrel
1887 # ac_fn_c_try_run LINENO
1888 # ----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1890 # that executables *can* be run.
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_link"
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>&5
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1905 { { case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_try") 2>&5
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; }; }; then :
1917 $as_echo "$as_me: program exited with status $ac_status" >&5
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=$ac_status
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1930 # -------------------------------------------------------
1931 # Tests whether HEADER exists and can be compiled using the include files in
1932 # INCLUDES, setting the cache variable VAR accordingly.
1933 ac_fn_c_check_header_compile ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939 $as_echo_n "(cached) " >&6
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1946 if ac_fn_c_try_compile "$LINENO"; then :
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 } # ac_fn_c_check_header_compile
1960 # ac_fn_c_try_link LINENO
1961 # -----------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 rm -f conftest.$ac_objext conftest$ac_exeext
1967 if { { ac_try="$ac_link"
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_link") 2>conftest.err
1976 if test -s conftest.err; then
1977 grep -v '^ *+' conftest.err >conftest.er1
1978 cat conftest.er1 >&5
1979 mv -f conftest.er1 conftest.err
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && {
1983 test -z "$ac_c_werror_flag" ||
1984 test ! -s conftest.err
1985 } && test -s conftest$ac_exeext && {
1986 test "$cross_compiling" = yes ||
1987 $as_test_x conftest$ac_exeext
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1996 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998 # interfere with the next link command; also delete a directory that is
1999 # left behind by Apple's compiler. We do this before executing the actions.
2000 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 } # ac_fn_c_try_link
2006 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2007 # --------------------------------------------
2008 # Tries to find the compile-time value of EXPR in a program that includes
2009 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2011 ac_fn_c_compute_int ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if test "$cross_compiling" = yes; then
2015 # Depending upon the size, compute the lo and hi bounds.
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2022 static int test_array [1 - 2 * !(($2) >= 0)];
2029 if ac_fn_c_try_compile "$LINENO"; then :
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2038 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_hi=$ac_mid; break
2048 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2049 if test $ac_lo -le $ac_mid; then
2053 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2064 static int test_array [1 - 2 * !(($2) < 0)];
2071 if ac_fn_c_try_compile "$LINENO"; then :
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2080 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_lo=$ac_mid; break
2090 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2091 if test $ac_mid -le $ac_hi; then
2095 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 # Binary search between lo and hi bounds.
2106 while test "x$ac_lo" != "x$ac_hi"; do
2107 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121 if ac_fn_c_try_compile "$LINENO"; then :
2124 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2136 static long int longval () { return $2; }
2137 static unsigned long int ulongval () { return $2; }
2144 FILE *f = fopen ("conftest.val", "w");
2149 long int i = longval ();
2152 fprintf (f, "%ld", i);
2156 unsigned long int i = ulongval ();
2159 fprintf (f, "%lu", i);
2161 /* Do not output a trailing newline, as this causes \r\n confusion
2162 on some platforms. */
2163 return ferror (f) || fclose (f) != 0;
2169 if ac_fn_c_try_run "$LINENO"; then :
2170 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2175 conftest.$ac_objext conftest.beam conftest.$ac_ext
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2182 } # ac_fn_c_compute_int
2184 # ac_fn_c_check_func LINENO FUNC VAR
2185 # ----------------------------------
2186 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2187 ac_fn_c_check_func ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2193 $as_echo_n "(cached) " >&6
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2199 #define $2 innocuous_$2
2201 /* System header to define __stub macros and hopefully few prototypes,
2202 which can conflict with char $2 (); below.
2203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2204 <limits.h> exists even on freestanding compilers. */
2207 # include <limits.h>
2209 # include <assert.h>
2214 /* Override any GCC internal prototype to avoid an error.
2215 Use char because int might match the return type of a GCC
2216 builtin and then its argument prototype would still apply. */
2221 /* The GNU C library defines this for functions which it implements
2222 to always fail with ENOSYS. Some functions are actually named
2223 something starting with __ and the normal name is an alias. */
2224 #if defined __stub_$2 || defined __stub___$2
2236 if ac_fn_c_try_link "$LINENO"; then :
2241 rm -f core conftest.err conftest.$ac_objext \
2242 conftest$ac_exeext conftest.$ac_ext
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 } # ac_fn_c_check_func
2251 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2252 # -------------------------------------------
2253 # Tests whether TYPE exists after having included INCLUDES, setting cache
2254 # variable VAR accordingly.
2255 ac_fn_c_check_type ()
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2261 $as_echo_n "(cached) " >&6
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2276 if ac_fn_c_try_compile "$LINENO"; then :
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2289 if ac_fn_c_try_compile "$LINENO"; then :
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2303 } # ac_fn_c_check_type
2305 # ac_fn_c_check_decl LINENO SYMBOL VAR
2306 # ------------------------------------
2307 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2308 ac_fn_c_check_decl ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 as_decl_name=`echo $2|sed 's/ *(.*//'`
2312 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2314 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2315 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2316 $as_echo_n "(cached) " >&6
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2324 #ifndef $as_decl_name
2326 (void) $as_decl_use;
2328 (void) $as_decl_name;
2336 if ac_fn_c_try_compile "$LINENO"; then :
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348 } # ac_fn_c_check_decl
2350 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2351 # ----------------------------------------------------
2352 # Tries to find if the field MEMBER exists in type AGGR, after including
2353 # INCLUDES, setting cache variable VAR accordingly.
2354 ac_fn_c_check_member ()
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2358 $as_echo_n "checking for $2.$3... " >&6; }
2359 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2360 $as_echo_n "(cached) " >&6
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2375 if ac_fn_c_try_compile "$LINENO"; then :
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2385 if (sizeof ac_aggr.$3)
2391 if ac_fn_c_try_compile "$LINENO"; then :
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2403 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2405 } # ac_fn_c_check_member
2406 cat >config.log <<_ACEOF
2407 This file contains any messages produced by compilers while
2408 running configure, to aid debugging if configure makes a mistake.
2410 It was created by $as_me, which was
2411 generated by GNU Autoconf 2.64. Invocation command line was
2423 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2424 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2425 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2426 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2427 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2429 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2430 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2432 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2433 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2434 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2435 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2436 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2437 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2438 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 $as_echo "PATH: $as_dir"
2463 # Keep a trace of the command line.
2464 # Strip out --no-create and --no-recursion so they do not pile up.
2465 # Strip out --silent because we don't want to record it for future runs.
2466 # Also quote any args containing shell meta-characters.
2467 # Make two passes to allow for proper duplicate-argument suppression.
2471 ac_must_keep_next=false
2477 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2479 | -silent | --silent | --silen | --sile | --sil)
2482 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2487 as_fn_append ac_configure_args1 " '$ac_arg'"
2488 if test $ac_must_keep_next = true; then
2489 ac_must_keep_next=false # Got value, back to normal.
2492 *=* | --config-cache | -C | -disable-* | --disable-* \
2493 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2494 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2495 | -with-* | --with-* | -without-* | --without-* | --x)
2496 case "$ac_configure_args0 " in
2497 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2500 -* ) ac_must_keep_next=true ;;
2503 as_fn_append ac_configure_args " '$ac_arg'"
2508 { ac_configure_args0=; unset ac_configure_args0;}
2509 { ac_configure_args1=; unset ac_configure_args1;}
2511 # When interrupted or exit'd, cleanup temporary files, and complete
2512 # config.log. We remove comments because anyway the quotes in there
2513 # would cause problems or look ugly.
2514 # WARNING: Use '\'' to represent an apostrophe within the trap.
2515 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2516 trap 'exit_status=$?
2517 # Save into config.log some information that might help in debugging.
2522 ## ---------------- ##
2523 ## Cache variables. ##
2524 ## ---------------- ##
2527 # The following way of writing the cache mishandles newlines in values,
2529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2530 eval ac_val=\$$ac_var
2534 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2538 _ | IFS | as_nl) ;; #(
2539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2540 *) { eval $ac_var=; unset $ac_var;} ;;
2545 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2546 *${as_nl}ac_space=\ *)
2548 "s/'\''/'\''\\\\'\'''\''/g;
2549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2560 ## ----------------- ##
2561 ## Output variables. ##
2562 ## ----------------- ##
2565 for ac_var in $ac_subst_vars
2567 eval ac_val=\$$ac_var
2569 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571 $as_echo "$ac_var='\''$ac_val'\''"
2575 if test -n "$ac_subst_files"; then
2577 ## ------------------- ##
2578 ## File substitutions. ##
2579 ## ------------------- ##
2582 for ac_var in $ac_subst_files
2584 eval ac_val=\$$ac_var
2586 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2588 $as_echo "$ac_var='\''$ac_val'\''"
2593 if test -s confdefs.h; then
2603 test "$ac_signal" != 0 &&
2604 $as_echo "$as_me: caught signal $ac_signal"
2605 $as_echo "$as_me: exit $exit_status"
2607 rm -f core *.core core.conftest.* &&
2608 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2611 for ac_signal in 1 2 13 15; do
2612 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2616 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2617 rm -f -r conftest* confdefs.h
2619 $as_echo "/* confdefs.h */" > confdefs.h
2621 # Predefined preprocessor variables.
2623 cat >>confdefs.h <<_ACEOF
2624 #define PACKAGE_NAME "$PACKAGE_NAME"
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_STRING "$PACKAGE_STRING"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_URL "$PACKAGE_URL"
2648 # Let the site file select an alternate cache file if it wants to.
2649 # Prefer an explicitly selected file to automatically selected ones.
2652 if test -n "$CONFIG_SITE"; then
2653 ac_site_file1=$CONFIG_SITE
2654 elif test "x$prefix" != xNONE; then
2655 ac_site_file1=$prefix/share/config.site
2656 ac_site_file2=$prefix/etc/config.site
2658 ac_site_file1=$ac_default_prefix/share/config.site
2659 ac_site_file2=$ac_default_prefix/etc/config.site
2661 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2663 test "x$ac_site_file" = xNONE && continue
2664 if test -r "$ac_site_file"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2666 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2667 sed 's/^/| /' "$ac_site_file" >&5
2672 if test -r "$cache_file"; then
2673 # Some versions of bash will fail to source /dev/null (special
2674 # files actually), so we avoid doing that.
2675 if test -f "$cache_file"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2677 $as_echo "$as_me: loading cache $cache_file" >&6;}
2679 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2680 *) . "./$cache_file";;
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2685 $as_echo "$as_me: creating cache $cache_file" >&6;}
2689 # Check that the precious variables saved in the cache have kept the same
2691 ac_cache_corrupted=false
2692 for ac_var in $ac_precious_vars; do
2693 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2694 eval ac_new_set=\$ac_env_${ac_var}_set
2695 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2696 eval ac_new_val=\$ac_env_${ac_var}_value
2697 case $ac_old_set,$ac_new_set in
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2700 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2701 ac_cache_corrupted=: ;;
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2704 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2705 ac_cache_corrupted=: ;;
2708 if test "x$ac_old_val" != "x$ac_new_val"; then
2709 # differences in whitespace do not lead to failure.
2710 ac_old_val_w=`echo x $ac_old_val`
2711 ac_new_val_w=`echo x $ac_new_val`
2712 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2714 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2715 ac_cache_corrupted=:
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2718 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2719 eval $ac_var=\$ac_old_val
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2722 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2724 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2727 # Pass precious variables to config.status.
2728 if test "$ac_new_set" = set; then
2730 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2731 *) ac_arg=$ac_var=$ac_new_val ;;
2733 case " $ac_configure_args " in
2734 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2735 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2739 if $ac_cache_corrupted; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2743 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2744 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2746 ## -------------------- ##
2747 ## Main body of script. ##
2748 ## -------------------- ##
2751 ac_cpp='$CPP $CPPFLAGS'
2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760 ac_config_headers="$ac_config_headers config.h:config.in"
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2764 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2765 # Check whether --enable-maintainer-mode was given.
2766 if test "${enable_maintainer_mode+set}" = set; then :
2767 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2769 USE_MAINTAINER_MODE=no
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2773 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2774 if test $USE_MAINTAINER_MODE = yes; then
2775 MAINTAINER_MODE_TRUE=
2776 MAINTAINER_MODE_FALSE='#'
2778 MAINTAINER_MODE_TRUE='#'
2779 MAINTAINER_MODE_FALSE=
2782 MAINT=$MAINTAINER_MODE_TRUE
2786 # Set the 'development' global.
2787 . $srcdir/../bfd/development.sh
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if test "${ac_cv_prog_CC+set}" = set; then :
2800 $as_echo_n "(cached) " >&6
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2833 if test -z "$ac_cv_prog_CC"; then
2835 # Extract the first word of "gcc", so it can be a program name with args.
2836 set dummy gcc; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2840 $as_echo_n "(cached) " >&6
2842 if test -n "$ac_ct_CC"; then
2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_ac_ct_CC="gcc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2865 $as_echo "$ac_ct_CC" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2871 if test "x$ac_ct_CC" = x; then
2874 case $cross_compiling:$ac_tool_warned in
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned=yes ;;
2886 if test -z "$CC"; then
2887 if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2889 set dummy ${ac_tool_prefix}cc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if test "${ac_cv_prog_CC+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC="$CC" # Let the user override the test.
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 ac_cv_prog_CC="${ac_tool_prefix}cc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2927 if test -z "$CC"; then
2928 # Extract the first word of "cc", so it can be a program name with args.
2929 set dummy cc; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_CC+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2947 ac_prog_rejected=yes
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 if test $ac_prog_rejected = yes; then
2959 # We found a bogon in the path, so make sure we never use it.
2960 set dummy $ac_cv_prog_CC
2962 if test $# != 0; then
2963 # We chose a different compiler from the bogus one.
2964 # However, it has the same basename, so the bogon will be chosen
2965 # first if we set CC to just the basename; use the full file name.
2967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2983 if test -z "$CC"; then
2984 if test -n "$ac_tool_prefix"; then
2985 for ac_prog in cl.exe
2987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if test "${ac_cv_prog_CC+set}" = set; then :
2992 $as_echo_n "(cached) " >&6
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3024 test -n "$CC" && break
3027 if test -z "$CC"; then
3029 for ac_prog in cl.exe
3031 # Extract the first word of "$ac_prog", so it can be a program name with args.
3032 set dummy $ac_prog; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3036 $as_echo_n "(cached) " >&6
3038 if test -n "$ac_ct_CC"; then
3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_ac_ct_CC="$ac_prog"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3059 if test -n "$ac_ct_CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3061 $as_echo "$ac_ct_CC" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3068 test -n "$ac_ct_CC" && break
3071 if test "x$ac_ct_CC" = x; then
3074 case $cross_compiling:$ac_tool_warned in
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 ac_tool_warned=yes ;;
3087 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 as_fn_error "no acceptable C compiler found in \$PATH
3090 See \`config.log' for more details." "$LINENO" 5; }
3092 # Provide some information about the compiler.
3093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3096 for ac_option in --version -v -V -qversion; do
3097 { { ac_try="$ac_compiler $ac_option >&5"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3106 if test -s conftest.err; then
3108 ... rest of stderr output deleted ...
3109 10q' conftest.err >conftest.er1
3110 cat conftest.er1 >&5
3111 rm -f conftest.er1 conftest.err
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h. */
3128 ac_clean_files_save=$ac_clean_files
3129 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3130 # Try to create an executable without -o first, disregard a.out.
3131 # It will help us diagnose broken compilers, and finding out an intuition
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3134 $as_echo_n "checking for C compiler default output file name... " >&6; }
3135 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3137 # The possible output files:
3138 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3141 for ac_file in $ac_files
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3150 if { { ac_try="$ac_link_default"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_link_default") 2>&5
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }; then :
3161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3163 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3164 # so that the user can short-circuit this test for compilers unknown to
3166 for ac_file in $ac_files ''
3168 test -f "$ac_file" || continue
3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3173 # We found the default executable, but exeext='' is most
3177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3181 # We set ac_cv_exeext here because the later test for it is not
3182 # safe: cross compilers may not add the suffix if given an `-o'
3183 # argument, so we may need to know it at that point already.
3184 # Even if this section looks crufty: it has the advantage of
3191 test "$ac_cv_exeext" = no && ac_cv_exeext=
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3197 $as_echo "$ac_file" >&6; }
3198 if test -z "$ac_file"; then :
3199 $as_echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 { as_fn_set_status 77
3205 as_fn_error "C compiler cannot create executables
3206 See \`config.log' for more details." "$LINENO" 5; }; }
3208 ac_exeext=$ac_cv_exeext
3210 # Check that the compiler produces executables we can run. If not, either
3211 # the compiler is broken, or we cross compile.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3213 $as_echo_n "checking whether the C compiler works... " >&6; }
3214 # If not cross compiling, check that we can run a simple program.
3215 if test "$cross_compiling" != yes; then
3216 if { ac_try='./$ac_file'
3217 { { case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_try") 2>&5
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }; }; then
3229 if test "$cross_compiling" = maybe; then
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error "cannot run C compiled programs.
3235 If you meant to cross compile, use \`--host'.
3236 See \`config.log' for more details." "$LINENO" 5; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3243 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3244 ac_clean_files=$ac_clean_files_save
3245 # Check that the compiler produces executables we can run. If not, either
3246 # the compiler is broken, or we cross compile.
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3248 $as_echo_n "checking whether we are cross compiling... " >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3250 $as_echo "$cross_compiling" >&6; }
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3253 $as_echo_n "checking for suffix of executables... " >&6; }
3254 if { { ac_try="$ac_link"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_link") 2>&5
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; then :
3265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3266 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3267 # work properly (i.e., refer to `conftest.exe'), while it won't with
3269 for ac_file in conftest.exe conftest conftest.*; do
3270 test -f "$ac_file" || continue
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error "cannot compute suffix of executables: cannot compile and link
3282 See \`config.log' for more details." "$LINENO" 5; }
3284 rm -f conftest$ac_cv_exeext
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3286 $as_echo "$ac_cv_exeext" >&6; }
3288 rm -f conftest.$ac_ext
3289 EXEEXT=$ac_cv_exeext
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3292 $as_echo_n "checking for suffix of object files... " >&6; }
3293 if test "${ac_cv_objext+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3307 rm -f conftest.o conftest.obj
3308 if { { ac_try="$ac_compile"
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_compile") 2>&5
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3319 for ac_file in conftest.o conftest.obj conftest.*; do
3320 test -f "$ac_file" || continue;
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3323 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3328 $as_echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error "cannot compute suffix of object files: cannot compile
3334 See \`config.log' for more details." "$LINENO" 5; }
3336 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3339 $as_echo "$ac_cv_objext" >&6; }
3340 OBJEXT=$ac_cv_objext
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3343 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3344 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3345 $as_echo_n "(cached) " >&6
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3361 if ac_fn_c_try_compile "$LINENO"; then :
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3371 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3372 if test $ac_compiler_gnu = yes; then
3377 ac_test_CFLAGS=${CFLAGS+set}
3378 ac_save_CFLAGS=$CFLAGS
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3380 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3381 if test "${ac_cv_prog_cc_g+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3384 ac_save_c_werror_flag=$ac_c_werror_flag
3385 ac_c_werror_flag=yes
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3399 if ac_fn_c_try_compile "$LINENO"; then :
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3414 if ac_fn_c_try_compile "$LINENO"; then :
3417 ac_c_werror_flag=$ac_save_c_werror_flag
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3430 if ac_fn_c_try_compile "$LINENO"; then :
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 ac_c_werror_flag=$ac_save_c_werror_flag
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3441 $as_echo "$ac_cv_prog_cc_g" >&6; }
3442 if test "$ac_test_CFLAGS" = set; then
3443 CFLAGS=$ac_save_CFLAGS
3444 elif test $ac_cv_prog_cc_g = yes; then
3445 if test "$GCC" = yes; then
3451 if test "$GCC" = yes; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3458 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3459 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3462 ac_cv_prog_cc_c89=no
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3468 #include <sys/types.h>
3469 #include <sys/stat.h>
3470 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3471 struct buf { int x; };
3472 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3473 static char *e (p, i)
3479 static char *f (char * (*g) (char **, int), char **p, ...)
3484 s = g (p, va_arg (v,int));
3489 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3490 function prototypes and stuff, but not '\xHH' hex character constants.
3491 These don't provoke an error unfortunately, instead are silently treated
3492 as 'x'. The following induces an error, until -std is added to get
3493 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3494 array size at least. It's necessary to write '\x00'==0 to get something
3495 that's true only with -std. */
3496 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3498 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3499 inside strings and character constants. */
3501 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3503 int test (int i, double x);
3504 struct s1 {int (*f) (int a);};
3505 struct s2 {int (*f) (double a);};
3506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3512 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3517 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3518 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3520 CC="$ac_save_CC $ac_arg"
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522 ac_cv_prog_cc_c89=$ac_arg
3524 rm -f core conftest.err conftest.$ac_objext
3525 test "x$ac_cv_prog_cc_c89" != "xno" && break
3527 rm -f conftest.$ac_ext
3532 case "x$ac_cv_prog_cc_c89" in
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3535 $as_echo "none needed" >&6; } ;;
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3538 $as_echo "unsupported" >&6; } ;;
3540 CC="$CC $ac_cv_prog_cc_c89"
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3542 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3544 if test "x$ac_cv_prog_cc_c89" != xno; then :
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 ac_cpp='$CXXCPP $CPPFLAGS'
3556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3559 if test -z "$CXX"; then
3560 if test -n "$CCC"; then
3563 if test -n "$ac_tool_prefix"; then
3564 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_CXX+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3573 if test -n "$CXX"; then
3574 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 if test -n "$CXX"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3596 $as_echo "$CXX" >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3603 test -n "$CXX" && break
3606 if test -z "$CXX"; then
3608 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy $ac_prog; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3617 if test -n "$ac_ct_CXX"; then
3618 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627 ac_cv_prog_ac_ct_CXX="$ac_prog"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3638 if test -n "$ac_ct_CXX"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3640 $as_echo "$ac_ct_CXX" >&6; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3647 test -n "$ac_ct_CXX" && break
3650 if test "x$ac_ct_CXX" = x; then
3653 case $cross_compiling:$ac_tool_warned in
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3665 # Provide some information about the compiler.
3666 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3669 for ac_option in --version -v -V -qversion; do
3670 { { ac_try="$ac_compiler $ac_option >&5"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3679 if test -s conftest.err; then
3681 ... rest of stderr output deleted ...
3682 10q' conftest.err >conftest.er1
3683 cat conftest.er1 >&5
3684 rm -f conftest.er1 conftest.err
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3691 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3692 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3709 if ac_fn_cxx_try_compile "$LINENO"; then :
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3719 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3720 if test $ac_compiler_gnu = yes; then
3725 ac_test_CXXFLAGS=${CXXFLAGS+set}
3726 ac_save_CXXFLAGS=$CXXFLAGS
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3728 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3729 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3732 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3733 ac_cxx_werror_flag=yes
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3747 if ac_fn_cxx_try_compile "$LINENO"; then :
3748 ac_cv_prog_cxx_g=yes
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3762 if ac_fn_cxx_try_compile "$LINENO"; then :
3765 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3778 if ac_fn_cxx_try_compile "$LINENO"; then :
3779 ac_cv_prog_cxx_g=yes
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3789 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3790 if test "$ac_test_CXXFLAGS" = set; then
3791 CXXFLAGS=$ac_save_CXXFLAGS
3792 elif test $ac_cv_prog_cxx_g = yes; then
3793 if test "$GXX" = yes; then
3799 if test "$GXX" = yes; then
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3819 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3820 # On Suns, sometimes $CPP names a directory.
3821 if test -n "$CPP" && test -d "$CPP"; then
3824 if test -z "$CPP"; then
3825 if test "${ac_cv_prog_CPP+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3828 # Double quotes because CPP needs to be expanded
3829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3832 for ac_c_preproc_warn_flag in '' yes
3834 # Use a header file that comes with gcc, so configuring glibc
3835 # with a fresh cross-compiler works.
3836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3837 # <limits.h> exists even on freestanding compilers.
3838 # On the NeXT, cc -E runs the code through the compiler's parser,
3839 # not just through cpp. "Syntax error" is here to catch this case.
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3843 # include <limits.h>
3845 # include <assert.h>
3849 if ac_fn_c_try_cpp "$LINENO"; then :
3852 # Broken: fails on valid input.
3855 rm -f conftest.err conftest.$ac_ext
3857 # OK, works on sane cases. Now check whether nonexistent headers
3858 # can be detected and how.
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861 #include <ac_nonexistent.h>
3863 if ac_fn_c_try_cpp "$LINENO"; then :
3864 # Broken: success on invalid input.
3867 # Passes both tests.
3871 rm -f conftest.err conftest.$ac_ext
3874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875 rm -f conftest.err conftest.$ac_ext
3876 if $ac_preproc_ok; then :
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3889 $as_echo "$CPP" >&6; }
3891 for ac_c_preproc_warn_flag in '' yes
3893 # Use a header file that comes with gcc, so configuring glibc
3894 # with a fresh cross-compiler works.
3895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3896 # <limits.h> exists even on freestanding compilers.
3897 # On the NeXT, cc -E runs the code through the compiler's parser,
3898 # not just through cpp. "Syntax error" is here to catch this case.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3902 # include <limits.h>
3904 # include <assert.h>
3908 if ac_fn_c_try_cpp "$LINENO"; then :
3911 # Broken: fails on valid input.
3914 rm -f conftest.err conftest.$ac_ext
3916 # OK, works on sane cases. Now check whether nonexistent headers
3917 # can be detected and how.
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <ac_nonexistent.h>
3922 if ac_fn_c_try_cpp "$LINENO"; then :
3923 # Broken: success on invalid input.
3926 # Passes both tests.
3930 rm -f conftest.err conftest.$ac_ext
3933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3934 rm -f conftest.err conftest.$ac_ext
3935 if $ac_preproc_ok; then :
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3941 See \`config.log' for more details." "$LINENO" 5; }
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3952 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3953 if test "${ac_cv_path_GREP+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3956 if test -z "$GREP"; then
3957 ac_path_GREP_found=false
3958 # Loop through the user's path and test for each of PROGNAME-LIST
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3963 test -z "$as_dir" && as_dir=.
3964 for ac_prog in grep ggrep; do
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3967 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3968 # Check for GNU ac_path_GREP and select it if it is found.
3969 # Check for GNU $ac_path_GREP
3970 case `"$ac_path_GREP" --version 2>&1` in
3972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3975 $as_echo_n 0123456789 >"conftest.in"
3978 cat "conftest.in" "conftest.in" >"conftest.tmp"
3979 mv "conftest.tmp" "conftest.in"
3980 cp "conftest.in" "conftest.nl"
3981 $as_echo 'GREP' >> "conftest.nl"
3982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984 as_fn_arith $ac_count + 1 && ac_count=$as_val
3985 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3986 # Best one so far, save it but keep looking for a better one
3987 ac_cv_path_GREP="$ac_path_GREP"
3988 ac_path_GREP_max=$ac_count
3990 # 10*(2^10) chars as input seems more than enough
3991 test $ac_count -gt 10 && break
3993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3996 $ac_path_GREP_found && break 3
4001 if test -z "$ac_cv_path_GREP"; then
4002 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4005 ac_cv_path_GREP=$GREP
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4010 $as_echo "$ac_cv_path_GREP" >&6; }
4011 GREP="$ac_cv_path_GREP"
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4015 $as_echo_n "checking for egrep... " >&6; }
4016 if test "${ac_cv_path_EGREP+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020 then ac_cv_path_EGREP="$GREP -E"
4022 if test -z "$EGREP"; then
4023 ac_path_EGREP_found=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in egrep; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4033 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4034 # Check for GNU ac_path_EGREP and select it if it is found.
4035 # Check for GNU $ac_path_EGREP
4036 case `"$ac_path_EGREP" --version 2>&1` in
4038 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4041 $as_echo_n 0123456789 >"conftest.in"
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 $as_echo 'EGREP' >> "conftest.nl"
4048 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050 as_fn_arith $ac_count + 1 && ac_count=$as_val
4051 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_EGREP="$ac_path_EGREP"
4054 ac_path_EGREP_max=$ac_count
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062 $ac_path_EGREP_found && break 3
4067 if test -z "$ac_cv_path_EGREP"; then
4068 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4071 ac_cv_path_EGREP=$EGREP
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4077 $as_echo "$ac_cv_path_EGREP" >&6; }
4078 EGREP="$ac_cv_path_EGREP"
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4082 $as_echo_n "checking for ANSI C header files... " >&6; }
4083 if test "${ac_cv_header_stdc+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_cv_header_stdc=yes
4104 ac_cv_header_stdc=no
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 if test $ac_cv_header_stdc = yes; then
4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 $EGREP "memchr" >/dev/null 2>&1; then :
4119 ac_cv_header_stdc=no
4125 if test $ac_cv_header_stdc = yes; then
4126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "free" >/dev/null 2>&1; then :
4136 ac_cv_header_stdc=no
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then :
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4151 #if ((' ' & 0x0FF) == 0x020)
4152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4155 # define ISLOWER(c) \
4156 (('a' <= (c) && (c) <= 'i') \
4157 || ('j' <= (c) && (c) <= 'r') \
4158 || ('s' <= (c) && (c) <= 'z'))
4159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4167 for (i = 0; i < 256; i++)
4168 if (XOR (islower (i), ISLOWER (i))
4169 || toupper (i) != TOUPPER (i))
4174 if ac_fn_c_try_run "$LINENO"; then :
4177 ac_cv_header_stdc=no
4179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4180 conftest.$ac_objext conftest.beam conftest.$ac_ext
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4186 $as_echo "$ac_cv_header_stdc" >&6; }
4187 if test $ac_cv_header_stdc = yes; then
4189 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4193 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4194 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4195 inttypes.h stdint.h unistd.h
4197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4200 eval as_val=\$$as_ac_Header
4201 if test "x$as_val" = x""yes; then :
4202 cat >>confdefs.h <<_ACEOF
4203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4212 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4213 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4220 if test "$MINIX" = yes; then
4222 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4225 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4228 $as_echo "#define _MINIX 1" >>confdefs.h
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4234 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4235 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4241 # define __EXTENSIONS__ 1
4242 $ac_includes_default
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_safe_to_define___extensions__=yes
4254 ac_cv_safe_to_define___extensions__=no
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4259 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4260 test $ac_cv_safe_to_define___extensions__ = yes &&
4261 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4263 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4265 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4267 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4269 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4273 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4274 for ac_t in install-sh install.sh shtool; do
4275 if test -f "$ac_dir/$ac_t"; then
4277 ac_install_sh="$ac_aux_dir/$ac_t -c"
4282 if test -z "$ac_aux_dir"; then
4283 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4286 # These three variables are undocumented and unsupported,
4287 # and are intended to be withdrawn in a future Autoconf release.
4288 # They can cause serious problems if a builder's source tree is in a directory
4289 # whose full name contains unusual characters.
4290 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4291 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4292 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4295 # Make sure we can run config.sub.
4296 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4297 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4300 $as_echo_n "checking build system type... " >&6; }
4301 if test "${ac_cv_build+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4304 ac_build_alias=$build_alias
4305 test "x$ac_build_alias" = x &&
4306 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4307 test "x$ac_build_alias" = x &&
4308 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4309 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4310 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4314 $as_echo "$ac_cv_build" >&6; }
4315 case $ac_cv_build in
4317 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4320 ac_save_IFS=$IFS; IFS='-'
4326 # Remember, the first character of IFS is used to create $*,
4327 # except with old shells:
4330 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4334 $as_echo_n "checking host system type... " >&6; }
4335 if test "${ac_cv_host+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4338 if test "x$host_alias" = x; then
4339 ac_cv_host=$ac_cv_build
4341 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4342 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4347 $as_echo "$ac_cv_host" >&6; }
4350 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4353 ac_save_IFS=$IFS; IFS='-'
4359 # Remember, the first character of IFS is used to create $*,
4360 # except with old shells:
4363 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4367 $as_echo_n "checking target system type... " >&6; }
4368 if test "${ac_cv_target+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4371 if test "x$target_alias" = x; then
4372 ac_cv_target=$ac_cv_host
4374 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4375 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4380 $as_echo "$ac_cv_target" >&6; }
4381 case $ac_cv_target in
4383 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4385 target=$ac_cv_target
4386 ac_save_IFS=$IFS; IFS='-'
4392 # Remember, the first character of IFS is used to create $*,
4393 # except with old shells:
4396 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4399 # The aliases save the names the user supplied, while $host etc.
4400 # will get canonicalized.
4401 test -n "$target_alias" &&
4402 test "$program_prefix$program_suffix$program_transform_name" = \
4404 program_prefix=${target_alias}-
4406 # The tests for host and target for $enable_largefile require
4411 # As the $enable_largefile decision depends on --enable-plugins we must set it
4412 # even in directories otherwise not depending on the $plugins option.
4416 for ac_header in dlfcn.h
4418 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4420 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4421 cat >>confdefs.h <<_ACEOF
4422 #define HAVE_DLFCN_H 1
4429 for ac_header in windows.h
4431 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4433 if test "x$ac_cv_header_windows_h" = x""yes; then :
4434 cat >>confdefs.h <<_ACEOF
4435 #define HAVE_WINDOWS_H 1
4443 # Check whether --enable-plugins was given.
4444 if test "${enable_plugins+set}" = set; then :
4445 enableval=$enable_plugins; case "${enableval}" in
4448 if test "$maybe_plugins" != "yes" ; then
4449 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4453 plugins=$maybe_plugins
4457 if test "$plugins" = "yes"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4459 $as_echo_n "checking for library containing dlopen... " >&6; }
4460 if test "${ac_cv_search_dlopen+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4463 ac_func_search_save_LIBS=$LIBS
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4467 /* Override any GCC internal prototype to avoid an error.
4468 Use char because int might match the return type of a GCC
4469 builtin and then its argument prototype would still apply. */
4482 for ac_lib in '' dl; do
4483 if test -z "$ac_lib"; then
4484 ac_res="none required"
4487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4489 if ac_fn_c_try_link "$LINENO"; then :
4490 ac_cv_search_dlopen=$ac_res
4492 rm -f core conftest.err conftest.$ac_objext \
4494 if test "${ac_cv_search_dlopen+set}" = set; then :
4498 if test "${ac_cv_search_dlopen+set}" = set; then :
4501 ac_cv_search_dlopen=no
4504 LIBS=$ac_func_search_save_LIBS
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4507 $as_echo "$ac_cv_search_dlopen" >&6; }
4508 ac_res=$ac_cv_search_dlopen
4509 if test "$ac_res" != no; then :
4510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4518 sparc-*-solaris*|i[3-7]86-*-solaris*)
4519 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4520 # are mutually exclusive; and without procfs support, the bfd/ elf module
4521 # cannot provide certain routines such as elfcore_write_prpsinfo
4522 # or elfcore_write_prstatus. So unless the user explicitly requested
4523 # large-file support through the --enable-largefile switch, disable
4524 # large-file support in favor of procfs support.
4525 test "${target}" = "${host}" -a "x$plugins" = xno \
4526 && : ${enable_largefile="no"}
4530 # Check whether --enable-largefile was given.
4531 if test "${enable_largefile+set}" = set; then :
4532 enableval=$enable_largefile;
4535 if test "$enable_largefile" != no; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4538 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4539 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4542 ac_cv_sys_largefile_CC=no
4543 if test "$GCC" != yes; then
4546 # IRIX 6.2 and later do not support large files by default,
4547 # so use the C compiler's -n32 option if that helps.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #include <sys/types.h>
4551 /* Check that off_t can represent 2**63 - 1 correctly.
4552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4553 since some C++ compilers masquerading as C compilers
4554 incorrectly reject 9223372036854775807. */
4555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4557 && LARGE_OFF_T % 2147483647 == 1)
4567 if ac_fn_c_try_compile "$LINENO"; then :
4570 rm -f core conftest.err conftest.$ac_objext
4572 if ac_fn_c_try_compile "$LINENO"; then :
4573 ac_cv_sys_largefile_CC=' -n32'; break
4575 rm -f core conftest.err conftest.$ac_objext
4579 rm -f conftest.$ac_ext
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4583 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4584 if test "$ac_cv_sys_largefile_CC" != no; then
4585 CC=$CC$ac_cv_sys_largefile_CC
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4589 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4590 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 #include <sys/types.h>
4597 /* Check that off_t can represent 2**63 - 1 correctly.
4598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4599 since some C++ compilers masquerading as C compilers
4600 incorrectly reject 9223372036854775807. */
4601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4603 && LARGE_OFF_T % 2147483647 == 1)
4613 if ac_fn_c_try_compile "$LINENO"; then :
4614 ac_cv_sys_file_offset_bits=no; break
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #define _FILE_OFFSET_BITS 64
4620 #include <sys/types.h>
4621 /* Check that off_t can represent 2**63 - 1 correctly.
4622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4623 since some C++ compilers masquerading as C compilers
4624 incorrectly reject 9223372036854775807. */
4625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4627 && LARGE_OFF_T % 2147483647 == 1)
4637 if ac_fn_c_try_compile "$LINENO"; then :
4638 ac_cv_sys_file_offset_bits=64; break
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 ac_cv_sys_file_offset_bits=unknown
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4646 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4647 case $ac_cv_sys_file_offset_bits in #(
4650 cat >>confdefs.h <<_ACEOF
4651 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4656 if test $ac_cv_sys_file_offset_bits = unknown; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4658 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4659 if test "${ac_cv_sys_large_files+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 #include <sys/types.h>
4666 /* Check that off_t can represent 2**63 - 1 correctly.
4667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4668 since some C++ compilers masquerading as C compilers
4669 incorrectly reject 9223372036854775807. */
4670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4672 && LARGE_OFF_T % 2147483647 == 1)
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 ac_cv_sys_large_files=no; break
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 #define _LARGE_FILES 1
4689 #include <sys/types.h>
4690 /* Check that off_t can represent 2**63 - 1 correctly.
4691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4692 since some C++ compilers masquerading as C compilers
4693 incorrectly reject 9223372036854775807. */
4694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4696 && LARGE_OFF_T % 2147483647 == 1)
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_sys_large_files=1; break
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 ac_cv_sys_large_files=unknown
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4715 $as_echo "$ac_cv_sys_large_files" >&6; }
4716 case $ac_cv_sys_large_files in #(
4719 cat >>confdefs.h <<_ACEOF
4720 #define _LARGE_FILES $ac_cv_sys_large_files
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4733 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4734 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4737 am_cv_prog_cc_stdc=no
4739 # Don't try gcc -ansi; that turns off useful extensions and
4740 # breaks some systems' header files.
4741 # AIX -qlanglvl=ansi
4742 # Ultrix and OSF/1 -std1
4743 # HP-UX 10.20 and later -Ae
4744 # HP-UX older versions -Aa -D_HPUX_SOURCE
4745 # SVR4 -Xc -D__EXTENSIONS__
4746 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4748 CC="$ac_save_CC $ac_arg"
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4753 #include <sys/types.h>
4754 #include <sys/stat.h>
4755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4756 struct buf { int x; };
4757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4758 static char *e (p, i)
4764 static char *f (char * (*g) (char **, int), char **p, ...)
4769 s = g (p, va_arg (v,int));
4773 int test (int i, double x);
4774 struct s1 {int (*f) (int a);};
4775 struct s2 {int (*f) (double a);};
4776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791 am_cv_prog_cc_stdc="$ac_arg"; break
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 if test -z "$am_cv_prog_cc_stdc"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4801 $as_echo "none needed" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4804 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4806 case "x$am_cv_prog_cc_stdc" in
4808 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4811 # expand $ac_aux_dir to an absolute path
4812 am_aux_dir=`cd $ac_aux_dir && pwd`
4814 if test x"${install_sh}" != xset; then
4817 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4819 install_sh="\${SHELL} $am_aux_dir/install-sh"
4823 # Installed binaries are usually stripped using `strip' when the user
4824 # run `make install-strip'. However `strip' might not be the right
4825 # tool to use in cross-compilation environments, therefore Automake
4826 # will honor the `STRIP' environment variable to overrule this program.
4827 if test "$cross_compiling" != no; then
4828 if test -n "$ac_tool_prefix"; then
4829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4830 set dummy ${ac_tool_prefix}strip; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if test "${ac_cv_prog_STRIP+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4836 if test -n "$STRIP"; then
4837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 STRIP=$ac_cv_prog_STRIP
4857 if test -n "$STRIP"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4859 $as_echo "$STRIP" >&6; }
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4867 if test -z "$ac_cv_prog_STRIP"; then
4869 # Extract the first word of "strip", so it can be a program name with args.
4870 set dummy strip; ac_word=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4876 if test -n "$ac_ct_STRIP"; then
4877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_ac_ct_STRIP="strip"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4897 if test -n "$ac_ct_STRIP"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4899 $as_echo "$ac_ct_STRIP" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4905 if test "x$ac_ct_STRIP" = x; then
4908 case $cross_compiling:$ac_tool_warned in
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4912 ac_tool_warned=yes ;;
4917 STRIP="$ac_cv_prog_STRIP"
4921 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4925 for ac_dir in .. "$srcdir"/..; do
4926 for ac_t in install-sh install.sh shtool; do
4927 if test -f "$ac_dir/$ac_t"; then
4929 ac_install_sh="$ac_aux_dir/$ac_t -c"
4934 if test -z "$ac_aux_dir"; then
4935 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4938 # These three variables are undocumented and unsupported,
4939 # and are intended to be withdrawn in a future Autoconf release.
4940 # They can cause serious problems if a builder's source tree is in a directory
4941 # whose full name contains unusual characters.
4942 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4943 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4944 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4948 test "$program_prefix" != NONE &&
4949 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4950 # Use a double $ so make ignores it.
4951 test "$program_suffix" != NONE &&
4952 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4953 # Double any \ or $.
4954 # By default was `s,x,x', remove it if useless.
4955 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4956 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4959 # See if we are building with C++, and substitute COMPILER.
4961 # Check whether --enable-build-with-cxx was given.
4962 if test "${enable_build_with_cxx+set}" = set; then :
4963 enableval=$enable_build_with_cxx; case $enableval in
4967 as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4970 enable_build_with_cxx=yes
4974 if test "$enable_build_with_cxx" = "yes"; then
4976 COMPILER_CFLAGS='$(CXXFLAGS)'
4979 COMPILER_CFLAGS='$(CFLAGS)'
4985 # Dependency checking.
4986 rm -rf .tst 2>/dev/null
4987 mkdir .tst 2>/dev/null
4988 if test -d .tst; then
4993 rmdir .tst 2>/dev/null
4995 DEPDIR="${am__leading_dot}deps"
4997 ac_config_commands="$ac_config_commands depdir"
5000 depcc="$CC" am_compiler_list=
5002 am_depcomp=$ac_aux_dir/depcomp
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5004 $as_echo_n "checking dependency style of $depcc... " >&6; }
5005 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5008 if test -f "$am_depcomp"; then
5009 # We make a subdir and do the tests there. Otherwise we can end up
5010 # making bogus files that we don't know about and never remove. For
5011 # instance it was reported that on HP-UX the gcc test will end up
5012 # making a dummy file named `D' -- because `-MD' means `put the output
5015 # Copy depcomp to subdir because otherwise we won't find it if we're
5016 # using a relative directory.
5017 cp "$am_depcomp" conftest.dir
5019 # We will build objects and dependencies in a subdirectory because
5020 # it helps to detect inapplicable dependency modes. For instance
5021 # both Tru64's cc and ICC support -MD to output dependencies as a
5022 # side effect of compilation, but ICC will put the dependencies in
5023 # the current directory while Tru64 will put them in the object
5027 am_cv_CC_dependencies_compiler_type=none
5028 if test "$am_compiler_list" = ""; then
5029 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5031 for depmode in $am_compiler_list; do
5032 if test $depmode = none; then break; fi
5034 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5035 # Setup a source with many dependencies, because some compilers
5036 # like to wrap large dependency lists on column 80 (with \), and
5037 # we should not choose a depcomp mode which is confused by this.
5039 # We need to recreate these files for each test, as the compiler may
5040 # overwrite some of them when testing with obscure command lines.
5041 # This happens at least with the AIX C compiler.
5043 for i in 1 2 3 4 5 6; do
5044 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5045 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5046 # Solaris 8's {/usr,}/bin/sh.
5047 touch sub/conftst$i.h
5049 echo "include sub/conftest.Po" > confmf
5051 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5052 # mode. It turns out that the SunPro C++ compiler does not properly
5053 # handle `-M -o', and we need to detect this.
5054 depcmd="depmode=$depmode \
5055 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5057 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5058 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5059 if env $depcmd > conftest.err 2>&1 &&
5060 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5061 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5062 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5063 # icc doesn't choke on unknown options, it will just issue warnings
5064 # or remarks (even with -Werror). So we grep stderr for any message
5065 # that says an option was ignored or not supported.
5066 # When given -MP, icc 7.0 and 7.1 complain thusly:
5067 # icc: Command line warning: ignoring option '-M'; no argument required
5068 # The diagnosis changed in icc 8.0:
5069 # icc: Command line remark: option '-MP' not supported
5070 if (grep 'ignoring option' conftest.err ||
5071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5072 am_cv_CC_dependencies_compiler_type=$depmode
5073 $as_echo "$as_me:$LINENO: success" >&5
5077 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5078 sed -e 's/^/| /' < conftest.err >&5
5084 am_cv_CC_dependencies_compiler_type=none
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5089 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5090 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
5091 then as_fn_error "no usable dependency style found" "$LINENO" 5
5092 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5097 # Check for the 'make' the user wants to use.
5100 # Extract the first word of "$ac_prog", so it can be a program name with args.
5101 set dummy $ac_prog; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_prog_MAKE+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5107 if test -n "$MAKE"; then
5108 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_prog_MAKE="$ac_prog"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 MAKE=$ac_cv_prog_MAKE
5128 if test -n "$MAKE"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5130 $as_echo "$MAKE" >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137 test -n "$MAKE" && break
5141 case "`$MAKE --version 2>&1 | sed 1q`" in
5146 if test "$MAKE_IS_GNU" = yes; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5155 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5157 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5158 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5159 $as_echo_n "(cached) " >&6
5161 cat >conftest.make <<\_ACEOF
5164 @echo '@@@%%%=$(MAKE)=@@@%%%'
5166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5167 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5169 eval ac_cv_prog_make_${ac_make}_set=yes;;
5171 eval ac_cv_prog_make_${ac_make}_set=no;;
5175 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177 $as_echo "yes" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 SET_MAKE="MAKE=${MAKE-make}"
5186 gnulib_extra_configure_args=
5187 # If large-file support is disabled, make sure gnulib does the same.
5188 if test "$enable_largefile" = no; then
5189 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
5192 # Configure gnulib. We need to build gnulib under some other
5193 # directory not "gnulib", to avoid the problem of both GDB and
5194 # GDBserver wanting to build it in the same directory, when building
5195 # in the source dir.
5198 in_build="build-gnulib"
5199 in_extra_args="$gnulib_extra_configure_args"
5201 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5202 # so they do not pile up.
5203 ac_sub_configure_args=
5205 eval "set x $ac_configure_args"
5209 if test -n "$ac_prev"; then
5214 -cache-file | --cache-file | --cache-fil | --cache-fi \
5215 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5216 ac_prev=cache_file ;;
5217 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5218 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5221 --config-cache | -C)
5223 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5225 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5231 --disable-option-checking)
5235 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5237 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5241 # Always prepend --prefix to ensure using the same prefix
5242 # in subdir configurations.
5243 ac_arg="--prefix=$prefix"
5245 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5247 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5250 if test "$silent" = yes; then
5251 ac_sub_configure_args="--silent $ac_sub_configure_args"
5254 # Always prepend --disable-option-checking to silence warnings, since
5255 # different subdirs can have different --enable and --with options.
5256 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5261 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5263 $as_echo "$ac_msg" >&6
5264 as_dir="$ac_dir"; as_fn_mkdir_p
5268 ac_srcdir=$srcdir/$in_src ;;
5270 ac_srcdir=../$srcdir/$in_src ;;
5275 ac_sub_configure=$ac_srcdir/configure
5277 # Make the cache file name correct relative to the subdirectory.
5279 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5281 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5284 if test -n "$in_extra_args"; then
5285 # Add the extra args at the end.
5286 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5289 { $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
5290 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5291 # The eval makes quoting arguments work.
5292 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5293 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5294 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5310 # If we haven't got the data from the intl directory,
5311 # assume NLS is disabled.
5320 if test -f ../intl/config.intl; then
5321 . ../intl/config.intl
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5324 $as_echo_n "checking whether NLS is requested... " >&6; }
5325 if test x"$USE_NLS" != xyes; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330 $as_echo "yes" >&6; }
5332 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5336 $as_echo_n "checking for catalogs to be installed... " >&6; }
5337 # Look for .po and .gmo files in the source directory.
5340 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5341 # If there aren't any .gmo files the shell will give us the
5342 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5344 case "$cat" in *\**)
5347 # The quadruple backslash is collapsed to a double backslash
5348 # by the backticks, then collapsed again by the double quotes,
5349 # leaving us with one backslash in the sed expression (right
5350 # before the dot that mustn't act as a wildcard).
5351 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5352 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5353 # The user is allowed to set LINGUAS to a list of languages to
5354 # install catalogs for. If it's empty that means "all of them."
5355 if test "x$LINGUAS" = x; then
5356 CATALOGS="$CATALOGS $cat"
5357 XLINGUAS="$XLINGUAS $lang"
5359 case "$LINGUAS" in *$lang*)
5360 CATALOGS="$CATALOGS $cat"
5361 XLINGUAS="$XLINGUAS $lang"
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5368 $as_echo "$LINGUAS" >&6; }
5381 localedir='${datadir}/locale'
5384 if test x"$USE_NLS" = xyes; then
5385 CONFIG_ALL="$CONFIG_ALL all-po"
5386 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5387 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5388 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5391 GNULIB=build-gnulib/import
5393 # For Makefile dependencies.
5395 if test x"$STDINT_H" != x; then
5396 GNULIB_STDINT_H=$GNULIB/$STDINT_H
5402 cat >>confdefs.h <<_ACEOF
5403 #define PACKAGE "$PACKAGE"
5408 # We never need to detect it in this sub-configure.
5409 # But preserve it for config.status --recheck.
5413 MAKEINFO_EXTRA_FLAGS=""
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5415 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5416 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5417 $as_echo_n "(cached) " >&6
5419 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5420 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5421 gdb_cv_have_makeinfo_click=yes
5423 gdb_cv_have_makeinfo_click=no
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5427 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5428 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
5429 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5435 # Check whether --with-separate-debug-dir was given.
5436 if test "${with_separate_debug_dir+set}" = set; then :
5437 withval=$with_separate_debug_dir;
5440 DEBUGDIR=${libdir}/debug
5444 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5446 ac_define_dir=`eval echo $DEBUGDIR`
5447 ac_define_dir=`eval echo $ac_define_dir`
5449 cat >>confdefs.h <<_ACEOF
5450 #define DEBUGDIR "$ac_define_dir"
5456 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5457 if test "x$prefix" = xNONE; then
5458 test_prefix=/usr/local
5463 test_prefix=$exec_prefix
5466 case ${ac_define_dir} in
5467 "${test_prefix}"|"${test_prefix}/"*|\
5468 '${exec_prefix}'|'${exec_prefix}/'*)
5473 cat >>confdefs.h <<_ACEOF
5474 #define DEBUGDIR_RELOCATABLE $value
5480 # We can't pass paths as command line arguments.
5481 # Mingw32 tries to be clever and will convert the paths for us.
5482 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5483 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5484 # This breaks GDB's relocatable path conversions since paths passed in
5485 # config.h would not get so translated, the path prefixes no longer match.
5487 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5488 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5489 ac_define_dir=`eval echo $bindir`
5490 ac_define_dir=`eval echo $ac_define_dir`
5492 cat >>confdefs.h <<_ACEOF
5493 #define BINDIR "$ac_define_dir"
5498 # GDB's datadir relocation
5502 # Check whether --with-gdb-datadir was given.
5503 if test "${with_gdb_datadir+set}" = set; then :
5504 withval=$with_gdb_datadir;
5505 GDB_DATADIR=$withval
5507 GDB_DATADIR=${datadir}/gdb
5511 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5513 ac_define_dir=`eval echo $GDB_DATADIR`
5514 ac_define_dir=`eval echo $ac_define_dir`
5516 cat >>confdefs.h <<_ACEOF
5517 #define GDB_DATADIR "$ac_define_dir"
5523 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5524 if test "x$prefix" = xNONE; then
5525 test_prefix=/usr/local
5530 test_prefix=$exec_prefix
5533 case ${ac_define_dir} in
5534 "${test_prefix}"|"${test_prefix}/"*|\
5535 '${exec_prefix}'|'${exec_prefix}/'*)
5540 cat >>confdefs.h <<_ACEOF
5541 #define GDB_DATADIR_RELOCATABLE $value
5548 # Check whether --with-relocated-sources was given.
5549 if test "${with_relocated_sources+set}" = set; then :
5550 withval=$with_relocated_sources; reloc_srcdir="${withval}"
5552 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5554 ac_define_dir=`eval echo $reloc_srcdir`
5555 ac_define_dir=`eval echo $ac_define_dir`
5557 cat >>confdefs.h <<_ACEOF
5558 #define RELOC_SRCDIR "$ac_define_dir"
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5567 $as_echo_n "checking for default auto-load directory... " >&6; }
5569 # Check whether --with-auto-load-dir was given.
5570 if test "${with_auto_load_dir+set}" = set; then :
5571 withval=$with_auto_load_dir;
5573 with_auto_load_dir='$debugdir:$datadir/auto-load'
5576 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5578 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5580 ac_define_dir=`eval echo $escape_dir`
5581 ac_define_dir=`eval echo $ac_define_dir`
5583 cat >>confdefs.h <<_ACEOF
5584 #define AUTO_LOAD_DIR "$ac_define_dir"
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5589 $as_echo "$with_auto_load_dir" >&6; }
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5592 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5594 # Check whether --with-auto-load-safe-path was given.
5595 if test "${with_auto_load_safe_path+set}" = set; then :
5596 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5597 with_auto_load_safe_path="/"
5600 with_auto_load_safe_path="$with_auto_load_dir"
5603 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5605 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5607 ac_define_dir=`eval echo $escape_dir`
5608 ac_define_dir=`eval echo $ac_define_dir`
5610 cat >>confdefs.h <<_ACEOF
5611 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5616 $as_echo "$with_auto_load_safe_path" >&6; }
5620 subdirs="$subdirs testsuite"
5623 # Check whether to support alternative target configurations
5624 # Check whether --enable-targets was given.
5625 if test "${enable_targets+set}" = set; then :
5626 enableval=$enable_targets; case "${enableval}" in
5627 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5629 no) enable_targets= ;;
5630 *) enable_targets=$enableval ;;
5635 # Check whether to enable 64-bit support on 32-bit hosts
5636 # Check whether --enable-64-bit-bfd was given.
5637 if test "${enable_64_bit_bfd+set}" = set; then :
5638 enableval=$enable_64_bit_bfd; case "${enableval}" in
5641 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5647 # Provide defaults for some variables set by the per-host and per-target
5649 gdb_host_obs=posix-hdep.o
5651 if test "${target}" = "${host}"; then
5657 . $srcdir/configure.host
5659 # Add in the common host objects.
5660 . $srcdir/common/common.host
5661 gdb_host_obs="$gdb_host_obs $common_host_obs"
5663 # Accumulate some settings from configure.tgt over all enabled targets
5667 HAVE_NATIVE_GCORE_TARGET=
5669 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5671 if test "$targ_alias" = "all"; then
5674 # Canonicalize the secondary target names.
5675 result=`$ac_config_sub $targ_alias 2>/dev/null`
5676 if test -n "$result"; then
5682 . ${srcdir}/configure.tgt
5684 if test -z "${gdb_target_obs}"; then :
5685 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5688 # Target-specific object files
5689 for i in ${gdb_target_obs}; do
5690 case " $TARGET_OBS " in
5693 TARGET_OBS="$TARGET_OBS ${i}"
5698 # Check whether this target needs 64-bit CORE_ADDR
5699 if test x${want64} = xfalse; then
5700 . ${srcdir}/../bfd/config.bfd
5703 # Check whether this target is native and supports gcore.
5704 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5705 && $gdb_have_gcore; then
5706 HAVE_NATIVE_GCORE_TARGET=1
5711 if test x${all_targets} = xtrue; then
5713 # We want all 64-bit targets if we either:
5714 # - run on a 64-bit host or
5715 # - already require 64-bit support for some other target or
5716 # - the --enable-64-bit-bfd option was supplied
5717 # Otherwise we only support all 32-bit targets.
5719 # NOTE: This test must be in sync with the corresponding
5722 if test x${want64} = xfalse; then
5723 # The cast to long int works around a bug in the HP C Compiler
5724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5726 # This bug is HP SR number 8606223364.
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5728 $as_echo_n "checking size of long... " >&6; }
5729 if test "${ac_cv_sizeof_long+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5732 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5735 if test "$ac_cv_type_long" = yes; then
5736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5738 { as_fn_set_status 77
5739 as_fn_error "cannot compute sizeof (long)
5740 See \`config.log' for more details." "$LINENO" 5; }; }
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5748 $as_echo "$ac_cv_sizeof_long" >&6; }
5752 cat >>confdefs.h <<_ACEOF
5753 #define SIZEOF_LONG $ac_cv_sizeof_long
5757 if test "x${ac_cv_sizeof_long}" = "x8"; then
5761 if test x${want64} = xtrue; then
5762 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5764 TARGET_OBS='$(ALL_TARGET_OBS)'
5771 # For other settings, only the main target counts.
5775 targ=$target; . ${srcdir}/configure.tgt
5777 # Fetch the default architecture and default target vector from BFD.
5778 targ=$target; . $srcdir/../bfd/config.bfd
5780 # We only want the first architecture, so strip off the others if
5781 # there is more than one.
5782 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5784 if test "x$targ_archs" != x; then
5786 cat >>confdefs.h <<_ACEOF
5787 #define DEFAULT_BFD_ARCH $targ_archs
5791 if test "x$targ_defvec" != x; then
5793 cat >>confdefs.h <<_ACEOF
5794 #define DEFAULT_BFD_VEC $targ_defvec
5799 # The CLI cannot be disabled yet, but may be in the future.
5802 # Check whether --enable-gdbcli was given.
5803 if test "${enable_gdbcli+set}" = set; then :
5804 enableval=$enable_gdbcli; case $enableval in
5808 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5810 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5816 if test x"$enable_gdbcli" = xyes; then
5817 if test -d $srcdir/cli; then
5818 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5819 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5820 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5821 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5826 # Check whether --enable-gdbmi was given.
5827 if test "${enable_gdbmi+set}" = set; then :
5828 enableval=$enable_gdbmi; case $enableval in
5832 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5838 if test x"$enable_gdbmi" = xyes; then
5839 if test -d $srcdir/mi; then
5840 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5841 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5842 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5843 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5848 # Check whether --enable-tui was given.
5849 if test "${enable_tui+set}" = set; then :
5850 enableval=$enable_tui; case $enableval in
5854 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5862 # Check whether --enable-gdbtk was given.
5863 if test "${enable_gdbtk+set}" = set; then :
5864 enableval=$enable_gdbtk; case $enableval in
5868 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5871 if test -d $srcdir/gdbtk; then
5878 # We unconditionally disable gdbtk tests on selected platforms.
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5882 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5886 # Libunwind support for ia64.
5889 # Check whether --with-libunwind-ia64 was given.
5890 if test "${with_libunwind_ia64+set}" = set; then :
5891 withval=$with_libunwind_ia64;
5893 with_libunwind_ia64=auto
5897 # Backward compatibility option.
5898 if test "${with_libunwind+set}" = set; then
5899 if test x"$with_libunwind_ia64" != xauto; then
5900 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5903 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5904 with_libunwind_ia64="$with_libunwind"
5907 case "$with_libunwind_ia64" in
5911 for ac_header in libunwind-ia64.h
5913 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5914 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5915 cat >>confdefs.h <<_ACEOF
5916 #define HAVE_LIBUNWIND_IA64_H 1
5923 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5926 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5930 if test x"$with_libunwind_ia64" = xyes; then
5931 for ac_header in libunwind-ia64.h
5933 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5934 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5935 cat >>confdefs.h <<_ACEOF
5936 #define HAVE_LIBUNWIND_IA64_H 1
5943 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5944 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5946 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5947 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5948 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5953 # Check whether --with-curses was given.
5954 if test "${with_curses+set}" = set; then :
5955 withval=$with_curses; opt_curses=$withval
5960 if test "$opt_curses" = "yes"; then
5964 # Profiling support.
5965 # Check whether --enable-profiling was given.
5966 if test "${enable_profiling+set}" = set; then :
5967 enableval=$enable_profiling; case $enableval in
5971 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5978 for ac_func in monstartup _mcleanup
5980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5981 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5982 eval as_val=\$$as_ac_var
5983 if test "x$as_val" = x""yes; then :
5984 cat >>confdefs.h <<_ACEOF
5985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5992 $as_echo_n "checking for _etext... " >&6; }
5993 if test "${ac_cv_var__etext+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
6009 if ac_fn_c_try_link "$LINENO"; then :
6010 ac_cv_var__etext=yes
6014 rm -f core conftest.err conftest.$ac_objext \
6015 conftest$ac_exeext conftest.$ac_ext
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6018 $as_echo "$ac_cv_var__etext" >&6; }
6019 if test $ac_cv_var__etext = yes; then
6021 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6025 $as_echo_n "checking for etext... " >&6; }
6026 if test "${ac_cv_var_etext+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6042 if ac_fn_c_try_link "$LINENO"; then :
6047 rm -f core conftest.err conftest.$ac_objext \
6048 conftest$ac_exeext conftest.$ac_ext
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6051 $as_echo "$ac_cv_var_etext" >&6; }
6052 if test $ac_cv_var_etext = yes; then
6054 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6057 if test "$enable_profiling" = yes ; then
6058 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6059 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6062 OLD_CFLAGS="$CFLAGS"
6063 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6066 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6067 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6081 if ac_fn_c_try_compile "$LINENO"; then :
6082 ac_cv_cc_supports_pg=yes
6084 ac_cv_cc_supports_pg=no
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6089 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6091 if test $ac_cv_cc_supports_pg = no; then
6092 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6095 CFLAGS="$OLD_CFLAGS"
6100 # Check whether --with-pkgversion was given.
6101 if test "${with_pkgversion+set}" = set; then :
6102 withval=$with_pkgversion; case "$withval" in
6103 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6105 *) PKGVERSION="($withval) " ;;
6116 # Check whether --with-bugurl was given.
6117 if test "${with_bugurl+set}" = set; then :
6118 withval=$with_bugurl; case "$withval" in
6119 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6122 *) BUGURL="$withval"
6126 BUGURL="http://www.gnu.org/software/gdb/bugs/"
6136 REPORT_BUGS_TO="<$BUGURL>"
6137 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6144 cat >>confdefs.h <<_ACEOF
6145 #define PKGVERSION "$PKGVERSION"
6149 cat >>confdefs.h <<_ACEOF
6150 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6154 # --------------------- #
6155 # Checks for programs. #
6156 # --------------------- #
6158 for ac_prog in gawk mawk nawk awk
6160 # Extract the first word of "$ac_prog", so it can be a program name with args.
6161 set dummy $ac_prog; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_AWK+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6167 if test -n "$AWK"; then
6168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_AWK="$ac_prog"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 if test -n "$AWK"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6190 $as_echo "$AWK" >&6; }
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6197 test -n "$AWK" && break
6200 # Find a good install program. We prefer a C program (faster),
6201 # so one script is as good as another. But avoid the broken or
6202 # incompatible versions:
6203 # SysV /etc/install, /usr/sbin/install
6204 # SunOS /usr/etc/install
6205 # IRIX /sbin/install
6207 # AmigaOS /C/install, which installs bootblocks on floppy discs
6208 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6209 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6210 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6211 # OS/2's system install, which has a completely different semantic
6212 # ./install, which can be erroneously created by make from ./install.sh.
6213 # Reject install programs that cannot install multiple files.
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6215 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6216 if test -z "$INSTALL"; then
6217 if test "${ac_cv_path_install+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 # Account for people who put trailing slashes in PATH elements.
6226 case $as_dir/ in #((
6227 ./ | .// | /[cC]/* | \
6228 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6229 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6232 # OSF1 and SCO ODT 3.0 have their own names for install.
6233 # Don't use installbsd from OSF since it installs stuff as root
6235 for ac_prog in ginstall scoinst install; do
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6238 if test $ac_prog = install &&
6239 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6240 # AIX install. It has an incompatible calling convention.
6242 elif test $ac_prog = install &&
6243 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6244 # program-specific install script used by HP pwplus--don't use.
6247 rm -rf conftest.one conftest.two conftest.dir
6248 echo one > conftest.one
6249 echo two > conftest.two
6251 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6252 test -s conftest.one && test -s conftest.two &&
6253 test -s conftest.dir/conftest.one &&
6254 test -s conftest.dir/conftest.two
6256 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6269 rm -rf conftest.one conftest.two conftest.dir
6272 if test "${ac_cv_path_install+set}" = set; then
6273 INSTALL=$ac_cv_path_install
6275 # As a last resort, use the slow shell script. Don't cache a
6276 # value for INSTALL within a source directory, because that will
6277 # break other packages using the cache if that directory is
6278 # removed, or if the value is a relative name.
6279 INSTALL=$ac_install_sh
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6283 $as_echo "$INSTALL" >&6; }
6285 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6286 # It thinks the first close brace ends the variable substitution.
6287 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6289 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6291 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6294 $as_echo_n "checking whether ln -s works... " >&6; }
6296 if test "$LN_S" = "ln -s"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6298 $as_echo "yes" >&6; }
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6301 $as_echo "no, using $LN_S" >&6; }
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6312 if test -n "$RANLIB"; then
6313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 RANLIB=$ac_cv_prog_RANLIB
6333 if test -n "$RANLIB"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6335 $as_echo "$RANLIB" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6343 if test -z "$ac_cv_prog_RANLIB"; then
6344 ac_ct_RANLIB=$RANLIB
6345 # Extract the first word of "ranlib", so it can be a program name with args.
6346 set dummy ranlib; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6352 if test -n "$ac_ct_RANLIB"; then
6353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_ac_ct_RANLIB="ranlib"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6373 if test -n "$ac_ct_RANLIB"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6375 $as_echo "$ac_ct_RANLIB" >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6381 if test "x$ac_ct_RANLIB" = x; then
6384 case $cross_compiling:$ac_tool_warned in
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6390 RANLIB=$ac_ct_RANLIB
6393 RANLIB="$ac_cv_prog_RANLIB"
6396 for ac_prog in 'bison -y' byacc
6398 # Extract the first word of "$ac_prog", so it can be a program name with args.
6399 set dummy $ac_prog; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_YACC+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6405 if test -n "$YACC"; then
6406 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415 ac_cv_prog_YACC="$ac_prog"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 YACC=$ac_cv_prog_YACC
6426 if test -n "$YACC"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6428 $as_echo "$YACC" >&6; }
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6435 test -n "$YACC" && break
6437 test -n "$YACC" || YACC="yacc"
6440 if test -n "$ac_tool_prefix"; then
6441 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6442 set dummy ${ac_tool_prefix}ar; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_AR+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6448 if test -n "$AR"; then
6449 ac_cv_prog_AR="$AR" # Let the user override the test.
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_AR="${ac_tool_prefix}ar"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 if test -n "$AR"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6471 $as_echo "$AR" >&6; }
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6479 if test -z "$ac_cv_prog_AR"; then
6481 # Extract the first word of "ar", so it can be a program name with args.
6482 set dummy ar; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6488 if test -n "$ac_ct_AR"; then
6489 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_ac_ct_AR="ar"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6509 if test -n "$ac_ct_AR"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6511 $as_echo "$ac_ct_AR" >&6; }
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6517 if test "x$ac_ct_AR" = x; then
6520 case $cross_compiling:$ac_tool_warned in
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6540 if test -n "$DLLTOOL"; then
6541 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 DLLTOOL=$ac_cv_prog_DLLTOOL
6561 if test -n "$DLLTOOL"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6563 $as_echo "$DLLTOOL" >&6; }
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6571 if test -z "$ac_cv_prog_DLLTOOL"; then
6572 ac_ct_DLLTOOL=$DLLTOOL
6573 # Extract the first word of "dlltool", so it can be a program name with args.
6574 set dummy dlltool; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6580 if test -n "$ac_ct_DLLTOOL"; then
6581 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6601 if test -n "$ac_ct_DLLTOOL"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6603 $as_echo "$ac_ct_DLLTOOL" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6609 if test "x$ac_ct_DLLTOOL" = x; then
6612 case $cross_compiling:$ac_tool_warned in
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6618 DLLTOOL=$ac_ct_DLLTOOL
6621 DLLTOOL="$ac_cv_prog_DLLTOOL"
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}windres; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6632 if test -n "$WINDRES"; then
6633 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 WINDRES=$ac_cv_prog_WINDRES
6653 if test -n "$WINDRES"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6655 $as_echo "$WINDRES" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6663 if test -z "$ac_cv_prog_WINDRES"; then
6664 ac_ct_WINDRES=$WINDRES
6665 # Extract the first word of "windres", so it can be a program name with args.
6666 set dummy windres; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6672 if test -n "$ac_ct_WINDRES"; then
6673 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_WINDRES="windres"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6693 if test -n "$ac_ct_WINDRES"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6695 $as_echo "$ac_ct_WINDRES" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6701 if test "x$ac_ct_WINDRES" = x; then
6704 case $cross_compiling:$ac_tool_warned in
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6710 WINDRES=$ac_ct_WINDRES
6713 WINDRES="$ac_cv_prog_WINDRES"
6719 # Needed for GNU Hurd hosts.
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}mig; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if test "${ac_cv_prog_MIG+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6728 if test -n "$MIG"; then
6729 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 if test -n "$MIG"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6751 $as_echo "$MIG" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6759 if test -z "$ac_cv_prog_MIG"; then
6761 # Extract the first word of "mig", so it can be a program name with args.
6762 set dummy mig; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6766 $as_echo_n "(cached) " >&6
6768 if test -n "$ac_ct_MIG"; then
6769 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_MIG="mig"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6789 if test -n "$ac_ct_MIG"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6791 $as_echo "$ac_ct_MIG" >&6; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6797 if test "x$ac_ct_MIG" = x; then
6800 case $cross_compiling:$ac_tool_warned in
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804 ac_tool_warned=yes ;;
6809 MIG="$ac_cv_prog_MIG"
6812 if test x"$MIG" = x; then
6813 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6818 # ---------------------- #
6819 # Checks for libraries. #
6820 # ---------------------- #
6822 # We might need to link with -lm; most simulators need it.
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6824 $as_echo_n "checking for main in -lm... " >&6; }
6825 if test "${ac_cv_lib_m_main+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6828 ac_check_lib_save_LIBS=$LIBS
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6842 if ac_fn_c_try_link "$LINENO"; then :
6843 ac_cv_lib_m_main=yes
6847 rm -f core conftest.err conftest.$ac_objext \
6848 conftest$ac_exeext conftest.$ac_ext
6849 LIBS=$ac_check_lib_save_LIBS
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6852 $as_echo "$ac_cv_lib_m_main" >&6; }
6853 if test "x$ac_cv_lib_m_main" = x""yes; then :
6854 cat >>confdefs.h <<_ACEOF
6863 # We need to link with -lw to get `wctype' on Solaris before Solaris
6864 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6865 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6866 # is known to have this problem). Therefore we avoid libw if we can.
6867 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6868 if test "x$ac_cv_func_wctype" = x""yes; then :
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6872 $as_echo_n "checking for wctype in -lw... " >&6; }
6873 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6876 ac_check_lib_save_LIBS=$LIBS
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6881 /* Override any GCC internal prototype to avoid an error.
6882 Use char because int might match the return type of a GCC
6883 builtin and then its argument prototype would still apply. */
6896 if ac_fn_c_try_link "$LINENO"; then :
6897 ac_cv_lib_w_wctype=yes
6899 ac_cv_lib_w_wctype=no
6901 rm -f core conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6903 LIBS=$ac_check_lib_save_LIBS
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6906 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6907 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6908 cat >>confdefs.h <<_ACEOF
6919 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6921 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6922 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6925 ac_func_search_save_LIBS=$LIBS
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6929 /* Override any GCC internal prototype to avoid an error.
6930 Use char because int might match the return type of a GCC
6931 builtin and then its argument prototype would still apply. */
6935 char gethostbyname ();
6939 return gethostbyname ();
6944 for ac_lib in '' nsl; do
6945 if test -z "$ac_lib"; then
6946 ac_res="none required"
6949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6951 if ac_fn_c_try_link "$LINENO"; then :
6952 ac_cv_search_gethostbyname=$ac_res
6954 rm -f core conftest.err conftest.$ac_objext \
6956 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6960 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6963 ac_cv_search_gethostbyname=no
6966 LIBS=$ac_func_search_save_LIBS
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6969 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6970 ac_res=$ac_cv_search_gethostbyname
6971 if test "$ac_res" != no; then :
6972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6977 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6979 $as_echo_n "checking for library containing socketpair... " >&6; }
6980 if test "${ac_cv_search_socketpair+set}" = set; then :
6981 $as_echo_n "(cached) " >&6
6983 ac_func_search_save_LIBS=$LIBS
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6987 /* Override any GCC internal prototype to avoid an error.
6988 Use char because int might match the return type of a GCC
6989 builtin and then its argument prototype would still apply. */
6997 return socketpair ();
7002 for ac_lib in '' socket; do
7003 if test -z "$ac_lib"; then
7004 ac_res="none required"
7007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7009 if ac_fn_c_try_link "$LINENO"; then :
7010 ac_cv_search_socketpair=$ac_res
7012 rm -f core conftest.err conftest.$ac_objext \
7014 if test "${ac_cv_search_socketpair+set}" = set; then :
7018 if test "${ac_cv_search_socketpair+set}" = set; then :
7021 ac_cv_search_socketpair=no
7024 LIBS=$ac_func_search_save_LIBS
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7027 $as_echo "$ac_cv_search_socketpair" >&6; }
7028 ac_res=$ac_cv_search_socketpair
7029 if test "$ac_res" != no; then :
7030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7035 # Link in zlib if we can. This allows us to read compressed debug sections.
7037 # Use the system's zlib library.
7038 zlibdir="-L\$(top_builddir)/../zlib"
7039 zlibinc="-I\$(top_srcdir)/../zlib"
7041 # Check whether --with-system-zlib was given.
7042 if test "${with_system_zlib+set}" = set; then :
7043 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7054 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7055 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7057 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7058 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7061 ac_func_search_save_LIBS=$LIBS
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7065 /* Override any GCC internal prototype to avoid an error.
7066 Use char because int might match the return type of a GCC
7067 builtin and then its argument prototype would still apply. */
7071 char kinfo_getvmmap ();
7075 return kinfo_getvmmap ();
7080 for ac_lib in '' util util-freebsd; do
7081 if test -z "$ac_lib"; then
7082 ac_res="none required"
7085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7087 if ac_fn_c_try_link "$LINENO"; then :
7088 ac_cv_search_kinfo_getvmmap=$ac_res
7090 rm -f core conftest.err conftest.$ac_objext \
7092 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7096 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7099 ac_cv_search_kinfo_getvmmap=no
7102 LIBS=$ac_func_search_save_LIBS
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7105 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7106 ac_res=$ac_cv_search_kinfo_getvmmap
7107 if test "$ac_res" != no; then :
7108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7110 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7116 if test "X$prefix" = "XNONE"; then
7117 acl_final_prefix="$ac_default_prefix"
7119 acl_final_prefix="$prefix"
7121 if test "X$exec_prefix" = "XNONE"; then
7122 acl_final_exec_prefix='${prefix}'
7124 acl_final_exec_prefix="$exec_prefix"
7126 acl_save_prefix="$prefix"
7127 prefix="$acl_final_prefix"
7128 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7129 prefix="$acl_save_prefix"
7132 # Check whether --with-gnu-ld was given.
7133 if test "${with_gnu_ld+set}" = set; then :
7134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7139 # Prepare PATH_SEPARATOR.
7140 # The user is always right.
7141 if test "${PATH_SEPARATOR+set}" != set; then
7142 echo "#! /bin/sh" >conf$$.sh
7143 echo "exit 0" >>conf$$.sh
7145 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7153 if test "$GCC" = yes; then
7154 # Check if gcc -print-prog-name=ld gives a path.
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7156 $as_echo_n "checking for ld used by GCC... " >&6; }
7159 # gcc leaves a trailing carriage return which upsets mingw
7160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7165 # Accept absolute paths.
7166 [\\/]* | [A-Za-z]:[\\/]*)
7167 re_direlt='/[^/][^/]*/\.\./'
7168 # Canonicalize the path of ld
7169 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7170 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7171 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7173 test -z "$LD" && LD="$ac_prog"
7176 # If it fails, then pretend we aren't using GCC.
7180 # If it is relative, then search for the first ld in PATH.
7184 elif test "$with_gnu_ld" = yes; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7186 $as_echo_n "checking for GNU ld... " >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7189 $as_echo_n "checking for non-GNU ld... " >&6; }
7191 if test "${acl_cv_path_LD+set}" = set; then :
7192 $as_echo_n "(cached) " >&6
7194 if test -z "$LD"; then
7195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7196 for ac_dir in $PATH; do
7197 test -z "$ac_dir" && ac_dir=.
7198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7199 acl_cv_path_LD="$ac_dir/$ac_prog"
7200 # Check to see if the program is GNU ld. I'd rather use --version,
7201 # but apparently some GNU ld's only accept -v.
7202 # Break only if it was the GNU/non-GNU ld that we prefer.
7203 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7204 test "$with_gnu_ld" != no && break
7206 test "$with_gnu_ld" != yes && break
7212 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7216 LD="$acl_cv_path_LD"
7217 if test -n "$LD"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7219 $as_echo "$LD" >&6; }
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7224 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7226 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7227 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7228 $as_echo_n "(cached) " >&6
7230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7231 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7232 acl_cv_prog_gnu_ld=yes
7234 acl_cv_prog_gnu_ld=no
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7238 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7239 with_gnu_ld=$acl_cv_prog_gnu_ld
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7244 $as_echo_n "checking for shared library run path origin... " >&6; }
7245 if test "${acl_cv_rpath+set}" = set; then :
7246 $as_echo_n "(cached) " >&6
7249 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7250 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7257 $as_echo "$acl_cv_rpath" >&6; }
7259 libext="$acl_cv_libext"
7260 shlibext="$acl_cv_shlibext"
7261 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7262 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7263 hardcode_direct="$acl_cv_hardcode_direct"
7264 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7265 # Check whether --enable-rpath was given.
7266 if test "${enable_rpath+set}" = set; then :
7267 enableval=$enable_rpath; :
7281 acl_save_prefix="$prefix"
7282 prefix="$acl_final_prefix"
7283 acl_save_exec_prefix="$exec_prefix"
7284 exec_prefix="$acl_final_exec_prefix"
7286 eval additional_includedir=\"$includedir\"
7287 eval additional_libdir=\"$libdir\"
7289 exec_prefix="$acl_save_exec_prefix"
7290 prefix="$acl_save_prefix"
7293 # Check whether --with-libiconv-prefix was given.
7294 if test "${with_libiconv_prefix+set}" = set; then :
7295 withval=$with_libiconv_prefix;
7296 if test "X$withval" = "Xno"; then
7299 if test "X$withval" = "X"; then
7301 acl_save_prefix="$prefix"
7302 prefix="$acl_final_prefix"
7303 acl_save_exec_prefix="$exec_prefix"
7304 exec_prefix="$acl_final_exec_prefix"
7306 eval additional_includedir=\"$includedir\"
7307 eval additional_libdir=\"$libdir\"
7309 exec_prefix="$acl_save_exec_prefix"
7310 prefix="$acl_save_prefix"
7313 additional_includedir="$withval/include"
7314 additional_libdir="$withval/lib"
7325 names_already_handled=
7326 names_next_round='iconv '
7327 while test -n "$names_next_round"; do
7328 names_this_round="$names_next_round"
7330 for name in $names_this_round; do
7332 for n in $names_already_handled; do
7333 if test "$n" = "$name"; then
7338 if test -z "$already_handled"; then
7339 names_already_handled="$names_already_handled $name"
7340 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7341 eval value=\"\$HAVE_LIB$uppername\"
7342 if test -n "$value"; then
7343 if test "$value" = yes; then
7344 eval value=\"\$LIB$uppername\"
7345 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7346 eval value=\"\$LTLIB$uppername\"
7347 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7356 if test $use_additional = yes; then
7357 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7358 found_dir="$additional_libdir"
7359 found_so="$additional_libdir/lib$name.$shlibext"
7360 if test -f "$additional_libdir/lib$name.la"; then
7361 found_la="$additional_libdir/lib$name.la"
7364 if test -f "$additional_libdir/lib$name.$libext"; then
7365 found_dir="$additional_libdir"
7366 found_a="$additional_libdir/lib$name.$libext"
7367 if test -f "$additional_libdir/lib$name.la"; then
7368 found_la="$additional_libdir/lib$name.la"
7373 if test "X$found_dir" = "X"; then
7374 for x in $LDFLAGS $LTLIBICONV; do
7376 acl_save_prefix="$prefix"
7377 prefix="$acl_final_prefix"
7378 acl_save_exec_prefix="$exec_prefix"
7379 exec_prefix="$acl_final_exec_prefix"
7381 exec_prefix="$acl_save_exec_prefix"
7382 prefix="$acl_save_prefix"
7386 dir=`echo "X$x" | sed -e 's/^X-L//'`
7387 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7389 found_so="$dir/lib$name.$shlibext"
7390 if test -f "$dir/lib$name.la"; then
7391 found_la="$dir/lib$name.la"
7394 if test -f "$dir/lib$name.$libext"; then
7396 found_a="$dir/lib$name.$libext"
7397 if test -f "$dir/lib$name.la"; then
7398 found_la="$dir/lib$name.la"
7404 if test "X$found_dir" != "X"; then
7409 if test "X$found_dir" != "X"; then
7410 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7411 if test "X$found_so" != "X"; then
7412 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7416 for x in $ltrpathdirs; do
7417 if test "X$x" = "X$found_dir"; then
7422 if test -z "$haveit"; then
7423 ltrpathdirs="$ltrpathdirs $found_dir"
7425 if test "$hardcode_direct" = yes; then
7426 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7428 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7429 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7431 for x in $rpathdirs; do
7432 if test "X$x" = "X$found_dir"; then
7437 if test -z "$haveit"; then
7438 rpathdirs="$rpathdirs $found_dir"
7442 for x in $LDFLAGS $LIBICONV; do
7444 acl_save_prefix="$prefix"
7445 prefix="$acl_final_prefix"
7446 acl_save_exec_prefix="$exec_prefix"
7447 exec_prefix="$acl_final_exec_prefix"
7449 exec_prefix="$acl_save_exec_prefix"
7450 prefix="$acl_save_prefix"
7452 if test "X$x" = "X-L$found_dir"; then
7457 if test -z "$haveit"; then
7458 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7460 if test "$hardcode_minus_L" != no; then
7461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7463 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7469 if test "X$found_a" != "X"; then
7470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7472 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7475 additional_includedir=
7476 case "$found_dir" in
7478 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7479 additional_includedir="$basedir/include"
7482 if test "X$additional_includedir" != "X"; then
7483 if test "X$additional_includedir" != "X/usr/include"; then
7485 if test "X$additional_includedir" = "X/usr/local/include"; then
7486 if test -n "$GCC"; then
7488 linux*) haveit=yes;;
7492 if test -z "$haveit"; then
7493 for x in $CPPFLAGS $INCICONV; do
7495 acl_save_prefix="$prefix"
7496 prefix="$acl_final_prefix"
7497 acl_save_exec_prefix="$exec_prefix"
7498 exec_prefix="$acl_final_exec_prefix"
7500 exec_prefix="$acl_save_exec_prefix"
7501 prefix="$acl_save_prefix"
7503 if test "X$x" = "X-I$additional_includedir"; then
7508 if test -z "$haveit"; then
7509 if test -d "$additional_includedir"; then
7510 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7516 if test -n "$found_la"; then
7517 save_libdir="$libdir"
7519 */* | *\\*) . "$found_la" ;;
7520 *) . "./$found_la" ;;
7522 libdir="$save_libdir"
7523 for dep in $dependency_libs; do
7526 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7527 if test "X$additional_libdir" != "X/usr/lib"; then
7529 if test "X$additional_libdir" = "X/usr/local/lib"; then
7530 if test -n "$GCC"; then
7532 linux*) haveit=yes;;
7536 if test -z "$haveit"; then
7538 for x in $LDFLAGS $LIBICONV; do
7540 acl_save_prefix="$prefix"
7541 prefix="$acl_final_prefix"
7542 acl_save_exec_prefix="$exec_prefix"
7543 exec_prefix="$acl_final_exec_prefix"
7545 exec_prefix="$acl_save_exec_prefix"
7546 prefix="$acl_save_prefix"
7548 if test "X$x" = "X-L$additional_libdir"; then
7553 if test -z "$haveit"; then
7554 if test -d "$additional_libdir"; then
7555 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7559 for x in $LDFLAGS $LTLIBICONV; do
7561 acl_save_prefix="$prefix"
7562 prefix="$acl_final_prefix"
7563 acl_save_exec_prefix="$exec_prefix"
7564 exec_prefix="$acl_final_exec_prefix"
7566 exec_prefix="$acl_save_exec_prefix"
7567 prefix="$acl_save_prefix"
7569 if test "X$x" = "X-L$additional_libdir"; then
7574 if test -z "$haveit"; then
7575 if test -d "$additional_libdir"; then
7576 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7583 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7584 if test "$enable_rpath" != no; then
7586 for x in $rpathdirs; do
7587 if test "X$x" = "X$dir"; then
7592 if test -z "$haveit"; then
7593 rpathdirs="$rpathdirs $dir"
7596 for x in $ltrpathdirs; do
7597 if test "X$x" = "X$dir"; then
7602 if test -z "$haveit"; then
7603 ltrpathdirs="$ltrpathdirs $dir"
7608 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7611 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7614 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7621 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7628 if test "X$rpathdirs" != "X"; then
7629 if test -n "$hardcode_libdir_separator"; then
7631 for found_dir in $rpathdirs; do
7632 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7634 acl_save_libdir="$libdir"
7636 eval flag=\"$hardcode_libdir_flag_spec\"
7637 libdir="$acl_save_libdir"
7638 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7640 for found_dir in $rpathdirs; do
7641 acl_save_libdir="$libdir"
7643 eval flag=\"$hardcode_libdir_flag_spec\"
7644 libdir="$acl_save_libdir"
7645 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7649 if test "X$ltrpathdirs" != "X"; then
7650 for found_dir in $ltrpathdirs; do
7651 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7662 $as_echo_n "checking for iconv... " >&6; }
7663 if test "${am_cv_func_iconv+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
7667 am_cv_func_iconv="no, consider installing GNU libiconv"
7669 am_save_CPPFLAGS="$CPPFLAGS"
7670 CPPFLAGS="$CPPFLAGS $INCICONV"
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7678 iconv_t cd = iconv_open("","");
7679 iconv(cd,NULL,NULL,NULL,NULL);
7685 if ac_fn_c_try_link "$LINENO"; then :
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"
7692 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
7693 for _libs in .libs _libs; do
7694 am_save_CPPFLAGS="$CPPFLAGS"
7695 am_save_LIBS="$LIBS"
7696 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
7697 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7705 iconv_t cd = iconv_open("","");
7706 iconv(cd,NULL,NULL,NULL,NULL);
7712 if ac_fn_c_try_link "$LINENO"; then :
7713 INCICONV="-I../libiconv/include"
7714 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
7715 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
7717 am_cv_func_iconv=yes
7719 rm -f core conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721 CPPFLAGS="$am_save_CPPFLAGS"
7722 LIBS="$am_save_LIBS"
7723 if test "$am_cv_func_iconv" = "yes"; then
7729 if test "$am_cv_func_iconv" != yes; then
7730 am_save_CPPFLAGS="$CPPFLAGS"
7731 am_save_LIBS="$LIBS"
7732 CPPFLAGS="$LIBS $INCICONV"
7733 LIBS="$LIBS $LIBICONV"
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7741 iconv_t cd = iconv_open("","");
7742 iconv(cd,NULL,NULL,NULL,NULL);
7748 if ac_fn_c_try_link "$LINENO"; then :
7750 am_cv_func_iconv=yes
7752 rm -f core conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754 CPPFLAGS="$am_save_CPPFLAGS"
7755 LIBS="$am_save_LIBS"
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7760 $as_echo "$am_cv_func_iconv" >&6; }
7761 if test "$am_cv_func_iconv" = yes; then
7763 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7766 if test "$am_cv_lib_iconv" = yes; then
7768 for element in $INCICONV; do
7770 for x in $CPPFLAGS; do
7772 acl_save_prefix="$prefix"
7773 prefix="$acl_final_prefix"
7774 acl_save_exec_prefix="$exec_prefix"
7775 exec_prefix="$acl_final_exec_prefix"
7777 exec_prefix="$acl_save_exec_prefix"
7778 prefix="$acl_save_prefix"
7780 if test "X$x" = "X$element"; then
7785 if test -z "$haveit"; then
7786 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7791 $as_echo_n "checking how to link with libiconv... " >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7793 $as_echo "$LIBICONV" >&6; }
7801 if test "$am_cv_func_iconv" = yes; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7803 $as_echo_n "checking for iconv declaration... " >&6; }
7804 if test "${am_cv_proto_iconv+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7817 #if defined(__STDC__) || defined(__cplusplus)
7818 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7831 if ac_fn_c_try_compile "$LINENO"; then :
7832 am_cv_proto_iconv_arg1=""
7834 am_cv_proto_iconv_arg1="const"
7836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837 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);"
7840 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7842 }$am_cv_proto_iconv" >&5
7844 }$am_cv_proto_iconv" >&6; }
7846 cat >>confdefs.h <<_ACEOF
7847 #define ICONV_CONST $am_cv_proto_iconv_arg1
7853 # GDB may fork/exec the iconv program to get the list of supported character
7854 # sets. Allow the user to specify where to find it.
7855 # There are several factors affecting the choice of option name:
7856 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7857 # the build-time location of libiconv files.
7858 # - The program we need to find is iconv, which comes with glibc. The user
7859 # doesn't necessarily have libiconv installed. Therefore naming this
7860 # --with-libiconv-foo feels wrong.
7861 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7862 # defined to work on directories not files (though it really doesn't know
7864 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7865 # with --with-libiconv-prefix.
7866 # Putting these together is why the option name is --with-iconv-bin.
7869 # Check whether --with-iconv-bin was given.
7870 if test "${with_iconv_bin+set}" = set; then :
7871 withval=$with_iconv_bin; iconv_bin="${withval}"
7873 cat >>confdefs.h <<_ACEOF
7874 #define ICONV_BIN "${iconv_bin}"
7878 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7879 if test "x$prefix" = xNONE; then
7880 test_prefix=/usr/local
7885 test_prefix=$exec_prefix
7888 case ${iconv_bin} in
7889 "${test_prefix}"|"${test_prefix}/"*|\
7890 '${exec_prefix}'|'${exec_prefix}/'*)
7895 cat >>confdefs.h <<_ACEOF
7896 #define ICONV_BIN_RELOCATABLE $value
7904 # For the TUI, we need enhanced curses functionality.
7905 if test x"$enable_tui" != xno; then
7910 if test x"$prefer_curses" = xyes; then
7911 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7912 # curses library because the latter might not provide all the
7913 # functionality we need. However, this leads to problems on systems
7914 # where the linker searches /usr/local/lib, but the compiler doesn't
7915 # search /usr/local/include, if ncurses is installed in /usr/local. A
7916 # default installation of ncurses on alpha*-dec-osf* will lead to such
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7919 $as_echo_n "checking for library containing waddstr... " >&6; }
7920 if test "${ac_cv_search_waddstr+set}" = set; then :
7921 $as_echo_n "(cached) " >&6
7923 ac_func_search_save_LIBS=$LIBS
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7927 /* Override any GCC internal prototype to avoid an error.
7928 Use char because int might match the return type of a GCC
7929 builtin and then its argument prototype would still apply. */
7942 for ac_lib in '' ncurses cursesX curses; do
7943 if test -z "$ac_lib"; then
7944 ac_res="none required"
7947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7949 if ac_fn_c_try_link "$LINENO"; then :
7950 ac_cv_search_waddstr=$ac_res
7952 rm -f core conftest.err conftest.$ac_objext \
7954 if test "${ac_cv_search_waddstr+set}" = set; then :
7958 if test "${ac_cv_search_waddstr+set}" = set; then :
7961 ac_cv_search_waddstr=no
7964 LIBS=$ac_func_search_save_LIBS
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7967 $as_echo "$ac_cv_search_waddstr" >&6; }
7968 ac_res=$ac_cv_search_waddstr
7969 if test "$ac_res" != no; then :
7970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7975 if test "$ac_cv_search_waddstr" != no; then
7980 # Check whether we should enable the TUI, but only do so if we really
7982 if test x"$enable_tui" != xno; then
7983 if test -d $srcdir/tui; then
7984 if test "$curses_found" != no; then
7985 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7986 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7987 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7988 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7990 if test x"$enable_tui" = xyes; then
7991 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7994 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8000 # Since GDB uses Readline, we need termcap functionality. In many
8001 # cases this will be provided by the curses library, but some systems
8002 # have a seperate termcap library, or no curses library at all.
8006 if test -d $srcdir/libtermcap; then
8007 LIBS="../libtermcap/libtermcap.a $LIBS"
8008 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8011 ac_cv_search_tgetent="none required"
8015 # These are the libraries checked by Readline.
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8017 $as_echo_n "checking for library containing tgetent... " >&6; }
8018 if test "${ac_cv_search_tgetent+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8021 ac_func_search_save_LIBS=$LIBS
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8025 /* Override any GCC internal prototype to avoid an error.
8026 Use char because int might match the return type of a GCC
8027 builtin and then its argument prototype would still apply. */
8040 for ac_lib in '' termcap tinfo curses ncurses; do
8041 if test -z "$ac_lib"; then
8042 ac_res="none required"
8045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8047 if ac_fn_c_try_link "$LINENO"; then :
8048 ac_cv_search_tgetent=$ac_res
8050 rm -f core conftest.err conftest.$ac_objext \
8052 if test "${ac_cv_search_tgetent+set}" = set; then :
8056 if test "${ac_cv_search_tgetent+set}" = set; then :
8059 ac_cv_search_tgetent=no
8062 LIBS=$ac_func_search_save_LIBS
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8065 $as_echo "$ac_cv_search_tgetent" >&6; }
8066 ac_res=$ac_cv_search_tgetent
8067 if test "$ac_res" != no; then :
8068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8073 if test "$ac_cv_search_tgetent" = no; then
8074 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
8078 # Check whether --with-system-readline was given.
8079 if test "${with_system_readline+set}" = set; then :
8080 withval=$with_system_readline;
8084 if test "$with_system_readline" = yes; then
8088 READLINE_TEXI_INCFLAG=
8090 READLINE='$(READLINE_DIR)/libreadline.a'
8091 READLINE_DEPS='$(READLINE)'
8092 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8093 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
8100 # Generate jit-reader.h
8102 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8105 # The cast to long int works around a bug in the HP C Compiler
8106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8108 # This bug is HP SR number 8606223364.
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8110 $as_echo_n "checking size of unsigned long long... " >&6; }
8111 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8114 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8117 if test "$ac_cv_type_unsigned_long_long" = yes; then
8118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8120 { as_fn_set_status 77
8121 as_fn_error "cannot compute sizeof (unsigned long long)
8122 See \`config.log' for more details." "$LINENO" 5; }; }
8124 ac_cv_sizeof_unsigned_long_long=0
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8130 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8134 cat >>confdefs.h <<_ACEOF
8135 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8139 # The cast to long int works around a bug in the HP C Compiler
8140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8141 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8142 # This bug is HP SR number 8606223364.
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8144 $as_echo_n "checking size of unsigned long... " >&6; }
8145 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8148 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8151 if test "$ac_cv_type_unsigned_long" = yes; then
8152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8154 { as_fn_set_status 77
8155 as_fn_error "cannot compute sizeof (unsigned long)
8156 See \`config.log' for more details." "$LINENO" 5; }; }
8158 ac_cv_sizeof_unsigned_long=0
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8164 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8168 cat >>confdefs.h <<_ACEOF
8169 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8173 # The cast to long int works around a bug in the HP C Compiler
8174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8176 # This bug is HP SR number 8606223364.
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
8178 $as_echo_n "checking size of unsigned __int128... " >&6; }
8179 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8182 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
8185 if test "$ac_cv_type_unsigned___int128" = yes; then
8186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8188 { as_fn_set_status 77
8189 as_fn_error "cannot compute sizeof (unsigned __int128)
8190 See \`config.log' for more details." "$LINENO" 5; }; }
8192 ac_cv_sizeof_unsigned___int128=0
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
8198 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
8202 cat >>confdefs.h <<_ACEOF
8203 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
8208 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
8209 TARGET_PTR="unsigned long"
8210 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
8211 TARGET_PTR="unsigned long long"
8212 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
8213 TARGET_PTR="unsigned __int128"
8215 TARGET_PTR="unsigned long"
8219 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8223 $as_echo_n "checking for library containing dlopen... " >&6; }
8224 if test "${ac_cv_search_dlopen+set}" = set; then :
8225 $as_echo_n "(cached) " >&6
8227 ac_func_search_save_LIBS=$LIBS
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8231 /* Override any GCC internal prototype to avoid an error.
8232 Use char because int might match the return type of a GCC
8233 builtin and then its argument prototype would still apply. */
8246 for ac_lib in '' dl; do
8247 if test -z "$ac_lib"; then
8248 ac_res="none required"
8251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8253 if ac_fn_c_try_link "$LINENO"; then :
8254 ac_cv_search_dlopen=$ac_res
8256 rm -f core conftest.err conftest.$ac_objext \
8258 if test "${ac_cv_search_dlopen+set}" = set; then :
8262 if test "${ac_cv_search_dlopen+set}" = set; then :
8265 ac_cv_search_dlopen=no
8268 LIBS=$ac_func_search_save_LIBS
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8271 $as_echo "$ac_cv_search_dlopen" >&6; }
8272 ac_res=$ac_cv_search_dlopen
8273 if test "$ac_res" != no; then :
8274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8281 # Check whether --with-jit-reader-dir was given.
8282 if test "${with_jit_reader_dir+set}" = set; then :
8283 withval=$with_jit_reader_dir;
8284 JIT_READER_DIR=$withval
8286 JIT_READER_DIR=${libdir}/gdb
8290 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
8291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8292 ac_define_dir=`eval echo $JIT_READER_DIR`
8293 ac_define_dir=`eval echo $ac_define_dir`
8295 cat >>confdefs.h <<_ACEOF
8296 #define JIT_READER_DIR "$ac_define_dir"
8302 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8303 if test "x$prefix" = xNONE; then
8304 test_prefix=/usr/local
8309 test_prefix=$exec_prefix
8312 case ${ac_define_dir} in
8313 "${test_prefix}"|"${test_prefix}/"*|\
8314 '${exec_prefix}'|'${exec_prefix}/'*)
8319 cat >>confdefs.h <<_ACEOF
8320 #define JIT_READER_DIR_RELOCATABLE $value
8327 # Check whether --with-expat was given.
8328 if test "${with_expat+set}" = set; then :
8329 withval=$with_expat;
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8335 $as_echo_n "checking whether to use expat... " >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8337 $as_echo "$with_expat" >&6; }
8339 if test "${with_expat}" = no; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8341 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8354 acl_save_prefix="$prefix"
8355 prefix="$acl_final_prefix"
8356 acl_save_exec_prefix="$exec_prefix"
8357 exec_prefix="$acl_final_exec_prefix"
8359 eval additional_includedir=\"$includedir\"
8360 eval additional_libdir=\"$libdir\"
8362 exec_prefix="$acl_save_exec_prefix"
8363 prefix="$acl_save_prefix"
8366 # Check whether --with-libexpat-prefix was given.
8367 if test "${with_libexpat_prefix+set}" = set; then :
8368 withval=$with_libexpat_prefix;
8369 if test "X$withval" = "Xno"; then
8372 if test "X$withval" = "X"; then
8374 acl_save_prefix="$prefix"
8375 prefix="$acl_final_prefix"
8376 acl_save_exec_prefix="$exec_prefix"
8377 exec_prefix="$acl_final_exec_prefix"
8379 eval additional_includedir=\"$includedir\"
8380 eval additional_libdir=\"$libdir\"
8382 exec_prefix="$acl_save_exec_prefix"
8383 prefix="$acl_save_prefix"
8386 additional_includedir="$withval/include"
8387 additional_libdir="$withval/lib"
8398 names_already_handled=
8399 names_next_round='expat '
8400 while test -n "$names_next_round"; do
8401 names_this_round="$names_next_round"
8403 for name in $names_this_round; do
8405 for n in $names_already_handled; do
8406 if test "$n" = "$name"; then
8411 if test -z "$already_handled"; then
8412 names_already_handled="$names_already_handled $name"
8413 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8414 eval value=\"\$HAVE_LIB$uppername\"
8415 if test -n "$value"; then
8416 if test "$value" = yes; then
8417 eval value=\"\$LIB$uppername\"
8418 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
8419 eval value=\"\$LTLIB$uppername\"
8420 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8429 if test $use_additional = yes; then
8430 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8431 found_dir="$additional_libdir"
8432 found_so="$additional_libdir/lib$name.$shlibext"
8433 if test -f "$additional_libdir/lib$name.la"; then
8434 found_la="$additional_libdir/lib$name.la"
8437 if test -f "$additional_libdir/lib$name.$libext"; then
8438 found_dir="$additional_libdir"
8439 found_a="$additional_libdir/lib$name.$libext"
8440 if test -f "$additional_libdir/lib$name.la"; then
8441 found_la="$additional_libdir/lib$name.la"
8446 if test "X$found_dir" = "X"; then
8447 for x in $LDFLAGS $LTLIBEXPAT; do
8449 acl_save_prefix="$prefix"
8450 prefix="$acl_final_prefix"
8451 acl_save_exec_prefix="$exec_prefix"
8452 exec_prefix="$acl_final_exec_prefix"
8454 exec_prefix="$acl_save_exec_prefix"
8455 prefix="$acl_save_prefix"
8459 dir=`echo "X$x" | sed -e 's/^X-L//'`
8460 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8462 found_so="$dir/lib$name.$shlibext"
8463 if test -f "$dir/lib$name.la"; then
8464 found_la="$dir/lib$name.la"
8467 if test -f "$dir/lib$name.$libext"; then
8469 found_a="$dir/lib$name.$libext"
8470 if test -f "$dir/lib$name.la"; then
8471 found_la="$dir/lib$name.la"
8477 if test "X$found_dir" != "X"; then
8482 if test "X$found_dir" != "X"; then
8483 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8484 if test "X$found_so" != "X"; then
8485 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8486 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8489 for x in $ltrpathdirs; do
8490 if test "X$x" = "X$found_dir"; then
8495 if test -z "$haveit"; then
8496 ltrpathdirs="$ltrpathdirs $found_dir"
8498 if test "$hardcode_direct" = yes; then
8499 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8501 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8502 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8504 for x in $rpathdirs; do
8505 if test "X$x" = "X$found_dir"; then
8510 if test -z "$haveit"; then
8511 rpathdirs="$rpathdirs $found_dir"
8515 for x in $LDFLAGS $LIBEXPAT; do
8517 acl_save_prefix="$prefix"
8518 prefix="$acl_final_prefix"
8519 acl_save_exec_prefix="$exec_prefix"
8520 exec_prefix="$acl_final_exec_prefix"
8522 exec_prefix="$acl_save_exec_prefix"
8523 prefix="$acl_save_prefix"
8525 if test "X$x" = "X-L$found_dir"; then
8530 if test -z "$haveit"; then
8531 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8533 if test "$hardcode_minus_L" != no; then
8534 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8536 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8542 if test "X$found_a" != "X"; then
8543 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8545 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8548 additional_includedir=
8549 case "$found_dir" in
8551 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8552 additional_includedir="$basedir/include"
8555 if test "X$additional_includedir" != "X"; then
8556 if test "X$additional_includedir" != "X/usr/include"; then
8558 if test "X$additional_includedir" = "X/usr/local/include"; then
8559 if test -n "$GCC"; then
8561 linux*) haveit=yes;;
8565 if test -z "$haveit"; then
8566 for x in $CPPFLAGS $INCEXPAT; do
8568 acl_save_prefix="$prefix"
8569 prefix="$acl_final_prefix"
8570 acl_save_exec_prefix="$exec_prefix"
8571 exec_prefix="$acl_final_exec_prefix"
8573 exec_prefix="$acl_save_exec_prefix"
8574 prefix="$acl_save_prefix"
8576 if test "X$x" = "X-I$additional_includedir"; then
8581 if test -z "$haveit"; then
8582 if test -d "$additional_includedir"; then
8583 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8589 if test -n "$found_la"; then
8590 save_libdir="$libdir"
8592 */* | *\\*) . "$found_la" ;;
8593 *) . "./$found_la" ;;
8595 libdir="$save_libdir"
8596 for dep in $dependency_libs; do
8599 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8600 if test "X$additional_libdir" != "X/usr/lib"; then
8602 if test "X$additional_libdir" = "X/usr/local/lib"; then
8603 if test -n "$GCC"; then
8605 linux*) haveit=yes;;
8609 if test -z "$haveit"; then
8611 for x in $LDFLAGS $LIBEXPAT; do
8613 acl_save_prefix="$prefix"
8614 prefix="$acl_final_prefix"
8615 acl_save_exec_prefix="$exec_prefix"
8616 exec_prefix="$acl_final_exec_prefix"
8618 exec_prefix="$acl_save_exec_prefix"
8619 prefix="$acl_save_prefix"
8621 if test "X$x" = "X-L$additional_libdir"; then
8626 if test -z "$haveit"; then
8627 if test -d "$additional_libdir"; then
8628 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8632 for x in $LDFLAGS $LTLIBEXPAT; do
8634 acl_save_prefix="$prefix"
8635 prefix="$acl_final_prefix"
8636 acl_save_exec_prefix="$exec_prefix"
8637 exec_prefix="$acl_final_exec_prefix"
8639 exec_prefix="$acl_save_exec_prefix"
8640 prefix="$acl_save_prefix"
8642 if test "X$x" = "X-L$additional_libdir"; then
8647 if test -z "$haveit"; then
8648 if test -d "$additional_libdir"; then
8649 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8656 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8657 if test "$enable_rpath" != no; then
8659 for x in $rpathdirs; do
8660 if test "X$x" = "X$dir"; then
8665 if test -z "$haveit"; then
8666 rpathdirs="$rpathdirs $dir"
8669 for x in $ltrpathdirs; do
8670 if test "X$x" = "X$dir"; then
8675 if test -z "$haveit"; then
8676 ltrpathdirs="$ltrpathdirs $dir"
8681 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8687 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8688 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8694 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8695 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8701 if test "X$rpathdirs" != "X"; then
8702 if test -n "$hardcode_libdir_separator"; then
8704 for found_dir in $rpathdirs; do
8705 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8707 acl_save_libdir="$libdir"
8709 eval flag=\"$hardcode_libdir_flag_spec\"
8710 libdir="$acl_save_libdir"
8711 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8713 for found_dir in $rpathdirs; do
8714 acl_save_libdir="$libdir"
8716 eval flag=\"$hardcode_libdir_flag_spec\"
8717 libdir="$acl_save_libdir"
8718 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8722 if test "X$ltrpathdirs" != "X"; then
8723 for found_dir in $ltrpathdirs; do
8724 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8729 ac_save_CPPFLAGS="$CPPFLAGS"
8731 for element in $INCEXPAT; do
8733 for x in $CPPFLAGS; do
8735 acl_save_prefix="$prefix"
8736 prefix="$acl_final_prefix"
8737 acl_save_exec_prefix="$exec_prefix"
8738 exec_prefix="$acl_final_exec_prefix"
8740 exec_prefix="$acl_save_exec_prefix"
8741 prefix="$acl_save_prefix"
8743 if test "X$x" = "X$element"; then
8748 if test -z "$haveit"; then
8749 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8755 $as_echo_n "checking for libexpat... " >&6; }
8756 if test "${ac_cv_libexpat+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8760 ac_save_LIBS="$LIBS"
8761 LIBS="$LIBS $LIBEXPAT"
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8768 XML_Parser p = XML_ParserCreate (0);
8773 if ac_fn_c_try_link "$LINENO"; then :
8778 rm -f core conftest.err conftest.$ac_objext \
8779 conftest$ac_exeext conftest.$ac_ext
8780 LIBS="$ac_save_LIBS"
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8784 $as_echo "$ac_cv_libexpat" >&6; }
8785 if test "$ac_cv_libexpat" = yes; then
8788 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8791 $as_echo_n "checking how to link with libexpat... " >&6; }
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8793 $as_echo "$LIBEXPAT" >&6; }
8796 CPPFLAGS="$ac_save_CPPFLAGS"
8806 if test "$HAVE_LIBEXPAT" != yes; then
8807 if test "$with_expat" = yes; then
8808 as_fn_error "expat is missing or unusable" "$LINENO" 5
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8811 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8815 LIBS="$LIBS $LIBEXPAT"
8816 for ac_func in XML_StopParser
8818 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8819 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
8820 cat >>confdefs.h <<_ACEOF
8821 #define HAVE_XML_STOPPARSER 1
8831 # --------------------- #
8832 # Check for libpython. #
8833 # --------------------- #
8840 # Check whether --with-python was given.
8841 if test "${with_python+set}" = set; then :
8842 withval=$with_python;
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8848 $as_echo_n "checking whether to use python... " >&6; }
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8850 $as_echo "$with_python" >&6; }
8852 if test "${with_python}" = no; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8854 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8857 case "${with_python}" in
8859 if test -d ${with_python}; then
8860 # Assume the python binary is ${with_python}/bin/python.
8861 python_prog="${with_python}/bin/python"
8863 # If python does not exit ${with_python}/bin, then try in
8864 # ${with_python}. On Windows/MinGW, this is where the Python
8866 if test ! -x "${python_prog}"; then
8867 python_prog="${with_python}/python"
8870 if test ! -x "${python_prog}"; then
8871 # Fall back to gdb 7.0/7.1 behaviour.
8873 python_prefix=${with_python}
8875 elif test -x "${with_python}"; then
8876 # While we can't run python compiled for $host (unless host == build),
8877 # the user could write a script that provides the needed information,
8878 # so we support that.
8879 python_prog=${with_python}
8882 as_fn_error "invalid value for --with-python" "$LINENO" 5
8886 # Disallow --with-python=foo/bar.
8887 as_fn_error "invalid value for --with-python" "$LINENO" 5
8890 # The user has either specified auto, yes, or the name of the python
8891 # program assumed to be in $PATH.
8893 case "${with_python}" in
8895 if test ${build} = ${host}; then
8896 # Extract the first word of "python", so it can be a program name with args.
8897 set dummy python; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8903 case $python_prog_path in
8905 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8915 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8927 python_prog_path=$ac_cv_path_python_prog_path
8928 if test -n "$python_prog_path"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8930 $as_echo "$python_prog_path" >&6; }
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8937 if test "${python_prog_path}" = missing; then
8940 python_prog=${python_prog_path}
8943 # Not much we can do except assume the cross-compiler will find the
8949 # While we can't run python compiled for $host (unless host == build),
8950 # the user could write a script that provides the needed information,
8951 # so we support that.
8952 python_prog="${with_python}"
8953 # Extract the first word of "${python_prog}", so it can be a program name with args.
8954 set dummy ${python_prog}; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8958 $as_echo_n "(cached) " >&6
8960 case $python_prog_path in
8962 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8984 python_prog_path=$ac_cv_path_python_prog_path
8985 if test -n "$python_prog_path"; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8987 $as_echo "$python_prog_path" >&6; }
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 $as_echo "no" >&6; }
8994 if test "${python_prog_path}" = missing; then
8995 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
9001 if test "${python_prog}" != missing; then
9002 # We have a python program to use, but it may be too old.
9003 # Don't flag an error for --with-python=auto (the default).
9004 have_python_config=yes
9005 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
9006 if test $? != 0; then
9007 have_python_config=failed
9008 if test "${with_python}" != auto; then
9009 as_fn_error "failure running python-config --includes" "$LINENO" 5
9012 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
9013 if test $? != 0; then
9014 have_python_config=failed
9015 if test "${with_python}" != auto; then
9016 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
9019 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
9020 if test $? != 0; then
9021 have_python_config=failed
9022 if test "${with_python}" != auto; then
9023 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
9027 # We do not have a python executable we can use to determine where
9028 # to find the Python headers and libs. We cannot guess the include
9029 # path from the python_prefix either, because that include path
9030 # depends on the Python version. So, there is nothing much we can
9031 # do except assume that the compiler will be able to find those files.
9034 have_python_config=no
9037 # If we have python-config, only try the configuration it provides.
9038 # Otherwise fallback on the old way of trying different versions of
9042 if test "${have_python_config}" = yes; then
9043 # Determine the Python version by extracting "-lpython<version>"
9044 # part of the python_libs. <version> is usually X.Y with X and Y
9045 # being decimal numbers, but can also be XY (seen on Windows).
9047 # The extraction is performed using sed with a regular expression.
9048 # Initially, the regexp used was using the '?' quantifier to make
9049 # the dot in the version number optional. Unfortunately, this
9050 # does not work with non-GNU versions of sed because, because of
9051 # what looks like a limitation (the '?' quantifier does not work
9052 # with back-references). We work around this limitation by using
9053 # the '*' quantifier instead. It means that, in theory, we might
9054 # match unexpected version strings such as "-lpython2..7", but
9055 # this seems unlikely in practice. And even if that happens,
9056 # an error will be triggered later on, when checking that version
9058 python_version=`echo " ${python_libs} " \
9059 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
9060 case "${python_version}" in
9063 version=${python_version}
9065 new_CPPFLAGS=${python_includes}
9066 new_LIBS=${python_libs}
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9068 $as_echo_n "checking for ${version}... " >&6; }
9069 save_CPPFLAGS=$CPPFLAGS
9071 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9072 LIBS="$LIBS $new_LIBS"
9073 found_usable_python=no
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9085 if ac_fn_c_try_link "$LINENO"; then :
9086 have_libpython=${version}
9087 found_usable_python=yes
9088 PYTHON_CPPFLAGS=$new_CPPFLAGS
9089 PYTHON_LIBS=$new_LIBS
9091 rm -f core conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093 CPPFLAGS=$save_CPPFLAGS
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9096 $as_echo "${found_usable_python}" >&6; }
9100 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
9103 elif test "${have_python_config}" != failed; then
9104 if test "${have_libpython}" = no; then
9108 new_CPPFLAGS=${python_includes}
9109 new_LIBS="${python_libs} -lpython2.7"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9111 $as_echo_n "checking for ${version}... " >&6; }
9112 save_CPPFLAGS=$CPPFLAGS
9114 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9115 LIBS="$LIBS $new_LIBS"
9116 found_usable_python=no
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9128 if ac_fn_c_try_link "$LINENO"; then :
9129 have_libpython=${version}
9130 found_usable_python=yes
9131 PYTHON_CPPFLAGS=$new_CPPFLAGS
9132 PYTHON_LIBS=$new_LIBS
9134 rm -f core conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext conftest.$ac_ext
9136 CPPFLAGS=$save_CPPFLAGS
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9139 $as_echo "${found_usable_python}" >&6; }
9142 if test "${have_libpython}" = no; then
9146 new_CPPFLAGS=${python_includes}
9147 new_LIBS="${python_libs} -lpython2.6"
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9149 $as_echo_n "checking for ${version}... " >&6; }
9150 save_CPPFLAGS=$CPPFLAGS
9152 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9153 LIBS="$LIBS $new_LIBS"
9154 found_usable_python=no
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9166 if ac_fn_c_try_link "$LINENO"; then :
9167 have_libpython=${version}
9168 found_usable_python=yes
9169 PYTHON_CPPFLAGS=$new_CPPFLAGS
9170 PYTHON_LIBS=$new_LIBS
9172 rm -f core conftest.err conftest.$ac_objext \
9173 conftest$ac_exeext conftest.$ac_ext
9174 CPPFLAGS=$save_CPPFLAGS
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9177 $as_echo "${found_usable_python}" >&6; }
9180 if test ${have_libpython} = no; then
9184 new_CPPFLAGS=${python_includes}
9185 new_LIBS="${python_libs} -lpython2.5"
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9187 $as_echo_n "checking for ${version}... " >&6; }
9188 save_CPPFLAGS=$CPPFLAGS
9190 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9191 LIBS="$LIBS $new_LIBS"
9192 found_usable_python=no
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9204 if ac_fn_c_try_link "$LINENO"; then :
9205 have_libpython=${version}
9206 found_usable_python=yes
9207 PYTHON_CPPFLAGS=$new_CPPFLAGS
9208 PYTHON_LIBS=$new_LIBS
9210 rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212 CPPFLAGS=$save_CPPFLAGS
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9215 $as_echo "${found_usable_python}" >&6; }
9218 if test ${have_libpython} = no; then
9222 new_CPPFLAGS=${python_includes}
9223 new_LIBS="${python_libs} -lpython2.4"
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9225 $as_echo_n "checking for ${version}... " >&6; }
9226 save_CPPFLAGS=$CPPFLAGS
9228 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9229 LIBS="$LIBS $new_LIBS"
9230 found_usable_python=no
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9242 if ac_fn_c_try_link "$LINENO"; then :
9243 have_libpython=${version}
9244 found_usable_python=yes
9245 PYTHON_CPPFLAGS=$new_CPPFLAGS
9246 PYTHON_LIBS=$new_LIBS
9248 rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 CPPFLAGS=$save_CPPFLAGS
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9253 $as_echo "${found_usable_python}" >&6; }
9257 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
9259 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
9261 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
9263 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9265 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
9267 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9269 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
9271 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9275 if test "${have_libpython}" = no; then
9276 case "${with_python}" in
9278 as_fn_error "python is missing or unusable" "$LINENO" 5
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9282 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9285 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
9289 if test -n "${python_prefix}"; then
9291 cat >>confdefs.h <<_ACEOF
9292 #define WITH_PYTHON_PATH "${python_prefix}"
9296 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9297 if test "x$prefix" = xNONE; then
9298 test_prefix=/usr/local
9303 test_prefix=$exec_prefix
9306 case ${python_prefix} in
9307 "${test_prefix}"|"${test_prefix}/"*|\
9308 '${exec_prefix}'|'${exec_prefix}/'*)
9313 cat >>confdefs.h <<_ACEOF
9314 #define PYTHON_PATH_RELOCATABLE $value
9322 if test "${have_libpython}" != no; then
9324 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9326 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9327 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9328 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9329 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
9330 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9332 # Flags needed to compile Python code (taken from python-config --cflags).
9333 # We cannot call python-config directly because it will output whatever was
9334 # used when compiling the Python interpreter itself, including flags which
9335 # would make the python-related objects be compiled differently from the
9336 # rest of GDB (e.g., -O2 and -fPIC).
9337 if test "${GCC}" = yes; then
9338 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
9341 if test "x${tentative_python_cflags}" != x; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9343 $as_echo_n "checking compiler flags for python code... " >&6; }
9344 for flag in ${tentative_python_cflags}; do
9345 # Check that the compiler accepts it
9346 saved_CFLAGS="$CFLAGS"
9347 CFLAGS="$CFLAGS $flag"
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9359 if ac_fn_c_try_compile "$LINENO"; then :
9360 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363 CFLAGS="$saved_CFLAGS"
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9366 $as_echo "${PYTHON_CFLAGS}" >&6; }
9369 # On x64 Windows, Python's include headers, and pyconfig.h in
9370 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
9371 # version of Windows. Unfortunately, MS_WIN64 is only defined if
9372 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
9373 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
9374 # The issue was reported to the Python community, but still isn't
9375 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
9379 if test "${GCC}" = yes; then
9380 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
9385 # Note that "python -m threading" cannot be used to check for
9386 # threading support due to a bug in Python 2.7.3
9387 # (http://bugs.python.org/issue15567).
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9389 $as_echo_n "checking whether python supports threads... " >&6; }
9390 saved_CPPFLAGS="${CPPFLAGS}"
9391 CPPFLAGS="${PYTHON_CPPFLAGS}"
9392 # Note that the test is reversed so that python_has_threads=yes on
9393 # unexpected failures.
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9403 if ac_fn_c_try_cpp "$LINENO"; then :
9404 python_has_threads=no
9406 python_has_threads=yes
9408 rm -f conftest.err conftest.$ac_ext
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9410 $as_echo "${python_has_threads}" >&6; }
9411 CPPFLAGS="${saved_CPPFLAGS}"
9413 # Even if Python support is not compiled in, we need to have this file
9414 # included so that the "python" command, et.al., still exists.
9415 CONFIG_OBS="$CONFIG_OBS python.o"
9416 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
9419 # Work around Python http://bugs.python.org/issue10112. See also
9420 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
9421 # no effect. Note that the only test after this that uses Python is
9422 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
9423 # run without -export-dynamic too.
9424 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
9429 if test "${have_libpython}" != no; then
9431 HAVE_PYTHON_FALSE='#'
9433 HAVE_PYTHON_TRUE='#'
9438 # -------------------- #
9439 # Check for libguile. #
9440 # -------------------- #
9447 # Check whether --with-guile was given.
9448 if test "${with_guile+set}" = set; then :
9449 withval=$with_guile;
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9455 $as_echo_n "checking whether to use guile... " >&6; }
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9457 $as_echo "$with_guile" >&6; }
9459 # Extract the first word of "pkg-config", so it can be a program name with args.
9460 set dummy pkg-config; ac_word=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9466 case $pkg_config_prog_path in
9468 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9478 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
9490 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
9491 if test -n "$pkg_config_prog_path"; then
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9493 $as_echo "$pkg_config_prog_path" >&6; }
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496 $as_echo "no" >&6; }
9501 try_guile_versions="guile-2.2 guile-2.0"
9503 case "${with_guile}" in
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9506 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9509 if test "${pkg_config_prog_path}" = "missing"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9511 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9514 pkg_config=${pkg_config_prog_path}
9515 guile_version_list=${try_guile_versions}
9518 found_usable_guile=checking
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9520 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9521 for guile_version in ${guile_version_list}; do
9522 ${pkg_config} --exists ${guile_version} 2>/dev/null
9523 if test $? != 0; then
9526 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9527 if test $? != 0; then
9528 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9530 new_LIBS=`${pkg_config} --libs ${guile_version}`
9531 if test $? != 0; then
9532 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9534 found_usable_guile=${guile_version}
9537 if test "${found_usable_guile}" = "checking"; then
9538 if test "${flag_errors}" = "yes"; then
9539 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9541 found_usable_guile=no
9544 if test "${found_usable_guile}" != no; then
9545 save_CPPFLAGS=$CPPFLAGS
9547 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9548 LIBS="$LIBS $new_LIBS"
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551 #include "libguile.h"
9560 if ac_fn_c_try_link "$LINENO"; then :
9562 GUILE_CPPFLAGS=$new_CPPFLAGS
9563 GUILE_LIBS=$new_LIBS
9565 found_usable_guile=no
9567 rm -f core conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9569 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9570 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9572 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9577 CPPFLAGS=$save_CPPFLAGS
9579 if test "${found_usable_guile}" = no; then
9580 if test "${flag_errors}" = yes; then
9581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9583 as_fn_error "linking guile version ${guile_version} test program failed
9584 See \`config.log' for more details." "$LINENO" 5; }
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9589 $as_echo "${found_usable_guile}" >&6; }
9594 if test "${pkg_config_prog_path}" = "missing"; then
9595 as_fn_error "pkg-config not found" "$LINENO" 5
9598 pkg_config=${pkg_config_prog_path}
9599 guile_version_list=${try_guile_versions}
9602 found_usable_guile=checking
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9604 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9605 for guile_version in ${guile_version_list}; do
9606 ${pkg_config} --exists ${guile_version} 2>/dev/null
9607 if test $? != 0; then
9610 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9611 if test $? != 0; then
9612 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9614 new_LIBS=`${pkg_config} --libs ${guile_version}`
9615 if test $? != 0; then
9616 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9618 found_usable_guile=${guile_version}
9621 if test "${found_usable_guile}" = "checking"; then
9622 if test "${flag_errors}" = "yes"; then
9623 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9625 found_usable_guile=no
9628 if test "${found_usable_guile}" != no; then
9629 save_CPPFLAGS=$CPPFLAGS
9631 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9632 LIBS="$LIBS $new_LIBS"
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 #include "libguile.h"
9644 if ac_fn_c_try_link "$LINENO"; then :
9646 GUILE_CPPFLAGS=$new_CPPFLAGS
9647 GUILE_LIBS=$new_LIBS
9649 found_usable_guile=no
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9654 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9656 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9661 CPPFLAGS=$save_CPPFLAGS
9663 if test "${found_usable_guile}" = no; then
9664 if test "${flag_errors}" = yes; then
9665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9667 as_fn_error "linking guile version ${guile_version} test program failed
9668 See \`config.log' for more details." "$LINENO" 5; }
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9673 $as_echo "${found_usable_guile}" >&6; }
9677 if test -x "${with_guile}"; then
9679 pkg_config=${with_guile}
9680 guile_version_list=${try_guile_versions}
9683 found_usable_guile=checking
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9685 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9686 for guile_version in ${guile_version_list}; do
9687 ${pkg_config} --exists ${guile_version} 2>/dev/null
9688 if test $? != 0; then
9691 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9692 if test $? != 0; then
9693 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9695 new_LIBS=`${pkg_config} --libs ${guile_version}`
9696 if test $? != 0; then
9697 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9699 found_usable_guile=${guile_version}
9702 if test "${found_usable_guile}" = "checking"; then
9703 if test "${flag_errors}" = "yes"; then
9704 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9706 found_usable_guile=no
9709 if test "${found_usable_guile}" != no; then
9710 save_CPPFLAGS=$CPPFLAGS
9712 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9713 LIBS="$LIBS $new_LIBS"
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 #include "libguile.h"
9725 if ac_fn_c_try_link "$LINENO"; then :
9727 GUILE_CPPFLAGS=$new_CPPFLAGS
9728 GUILE_LIBS=$new_LIBS
9730 found_usable_guile=no
9732 rm -f core conftest.err conftest.$ac_objext \
9733 conftest$ac_exeext conftest.$ac_ext
9734 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9735 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9737 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9742 CPPFLAGS=$save_CPPFLAGS
9744 if test "${found_usable_guile}" = no; then
9745 if test "${flag_errors}" = yes; then
9746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9748 as_fn_error "linking guile version ${guile_version} test program failed
9749 See \`config.log' for more details." "$LINENO" 5; }
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9754 $as_echo "${found_usable_guile}" >&6; }
9757 as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
9761 # Disallow --with=guile="" and --with-guile=foo/bar.
9762 as_fn_error "invalid value for --with-guile" "$LINENO" 5
9765 # A space separate list of guile versions to try, in order.
9766 if test "${pkg_config_prog_path}" = "missing"; then
9767 as_fn_error "pkg-config not found" "$LINENO" 5
9770 pkg_config=${pkg_config_prog_path}
9771 guile_version_list=${with_guile}
9774 found_usable_guile=checking
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9776 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9777 for guile_version in ${guile_version_list}; do
9778 ${pkg_config} --exists ${guile_version} 2>/dev/null
9779 if test $? != 0; then
9782 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9783 if test $? != 0; then
9784 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9786 new_LIBS=`${pkg_config} --libs ${guile_version}`
9787 if test $? != 0; then
9788 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9790 found_usable_guile=${guile_version}
9793 if test "${found_usable_guile}" = "checking"; then
9794 if test "${flag_errors}" = "yes"; then
9795 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9797 found_usable_guile=no
9800 if test "${found_usable_guile}" != no; then
9801 save_CPPFLAGS=$CPPFLAGS
9803 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9804 LIBS="$LIBS $new_LIBS"
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807 #include "libguile.h"
9816 if ac_fn_c_try_link "$LINENO"; then :
9818 GUILE_CPPFLAGS=$new_CPPFLAGS
9819 GUILE_LIBS=$new_LIBS
9821 found_usable_guile=no
9823 rm -f core conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
9825 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9826 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9828 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9833 CPPFLAGS=$save_CPPFLAGS
9835 if test "${found_usable_guile}" = no; then
9836 if test "${flag_errors}" = yes; then
9837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9839 as_fn_error "linking guile version ${guile_version} test program failed
9840 See \`config.log' for more details." "$LINENO" 5; }
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9845 $as_echo "${found_usable_guile}" >&6; }
9850 if test "${have_libguile}" != no; then
9851 case "${with_guile}" in
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9855 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9856 if test "${ac_cv_guild_program_name+set}" = set; then :
9857 $as_echo_n "(cached) " >&6
9859 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
9861 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9862 # the 'guild' and 'bindir' variables. In that case, try to guess
9863 # what the program name is, at the risk of getting it wrong if
9864 # Guile was configured with '--program-suffix' or similar.
9865 if test "x$ac_cv_guild_program_name" = "x"; then
9866 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9867 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9872 $as_echo "$ac_cv_guild_program_name" >&6; }
9874 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9875 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9878 GUILD="$ac_cv_guild_program_name"
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9885 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9886 if test "${ac_cv_guild_program_name+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9889 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9891 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9892 # the 'guild' and 'bindir' variables. In that case, try to guess
9893 # what the program name is, at the risk of getting it wrong if
9894 # Guile was configured with '--program-suffix' or similar.
9895 if test "x$ac_cv_guild_program_name" = "x"; then
9896 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9897 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9902 $as_echo "$ac_cv_guild_program_name" >&6; }
9904 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9905 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9908 GUILD="$ac_cv_guild_program_name"
9915 if test "$cross_compiling" = no; then
9918 GUILD_TARGET_FLAG="--target=$host"
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9925 $as_echo_n "checking whether guild supports this host... " >&6; }
9926 if test "${ac_cv_guild_ok+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9929 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9930 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9937 $as_echo "$ac_cv_guild_ok" >&6; }
9939 if test "$ac_cv_guild_ok" = no; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9942 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9946 if test "${have_libguile}" != no; then
9948 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9950 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9951 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9952 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9953 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
9954 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9957 save_CPPFLAGS="$CPPFLAGS"
9959 CPPFLAGS="$GUILE_CPPFLAGS"
9960 for ac_func in scm_new_smob
9962 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9963 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
9964 cat >>confdefs.h <<_ACEOF
9965 #define HAVE_SCM_NEW_SMOB 1
9972 CPPFLAGS="$save_CPPFLAGS"
9974 # Even if Guile support is not compiled in, we need to have these files
9976 CONFIG_OBS="$CONFIG_OBS guile.o"
9977 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
9981 if test "${have_libguile}" != no; then
9983 HAVE_GUILE_FALSE='#'
9990 # --------------------- #
9991 # Check for libmcheck. #
9992 # --------------------- #
9994 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9995 # but turn it off if Python is enabled with threads, since -lmcheck is
9996 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9998 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
9999 && $development; then
10000 libmcheck_default=yes
10002 libmcheck_default=no
10005 # Check whether --enable-libmcheck was given.
10006 if test "${enable_libmcheck+set}" = set; then :
10007 enableval=$enable_libmcheck; case "${enableval}" in
10008 yes | y) ENABLE_LIBMCHECK="yes" ;;
10009 no | n) ENABLE_LIBMCHECK="no" ;;
10010 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
10015 if test -z "${ENABLE_LIBMCHECK}"; then
10016 ENABLE_LIBMCHECK=${libmcheck_default}
10019 if test "$ENABLE_LIBMCHECK" = "yes" ; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
10021 $as_echo_n "checking for main in -lmcheck... " >&6; }
10022 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
10023 $as_echo_n "(cached) " >&6
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lmcheck $LIBS"
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10039 if ac_fn_c_try_link "$LINENO"; then :
10040 ac_cv_lib_mcheck_main=yes
10042 ac_cv_lib_mcheck_main=no
10044 rm -f core conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10046 LIBS=$ac_check_lib_save_LIBS
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
10049 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
10050 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
10051 cat >>confdefs.h <<_ACEOF
10052 #define HAVE_LIBMCHECK 1
10055 LIBS="-lmcheck $LIBS"
10062 if test "$ENABLE_LIBMCHECK" = "yes" \
10063 -a "${have_libpython}" != "no" \
10064 -a "${python_has_threads}" = "yes" ; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
10066 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
10070 # Check whether --with-intel_pt was given.
10071 if test "${with_intel_pt+set}" = set; then :
10072 withval=$with_intel_pt;
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10078 $as_echo_n "checking whether to use intel pt... " >&6; }
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10080 $as_echo "$with_intel_pt" >&6; }
10082 if test "${with_intel_pt}" = no; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
10084 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10090 #include <linux/perf_event.h>
10091 #ifndef PERF_ATTR_SIZE_VER5
10096 if ac_fn_c_try_cpp "$LINENO"; then :
10101 rm -f conftest.err conftest.$ac_ext
10102 if test "$perf_event" != yes; then
10103 if test "$with_intel_pt" = yes; then
10104 as_fn_error "linux/perf_event.h missing or too old" "$LINENO" 5
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10107 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10121 acl_save_prefix="$prefix"
10122 prefix="$acl_final_prefix"
10123 acl_save_exec_prefix="$exec_prefix"
10124 exec_prefix="$acl_final_exec_prefix"
10126 eval additional_includedir=\"$includedir\"
10127 eval additional_libdir=\"$libdir\"
10129 exec_prefix="$acl_save_exec_prefix"
10130 prefix="$acl_save_prefix"
10133 # Check whether --with-libipt-prefix was given.
10134 if test "${with_libipt_prefix+set}" = set; then :
10135 withval=$with_libipt_prefix;
10136 if test "X$withval" = "Xno"; then
10139 if test "X$withval" = "X"; then
10141 acl_save_prefix="$prefix"
10142 prefix="$acl_final_prefix"
10143 acl_save_exec_prefix="$exec_prefix"
10144 exec_prefix="$acl_final_exec_prefix"
10146 eval additional_includedir=\"$includedir\"
10147 eval additional_libdir=\"$libdir\"
10149 exec_prefix="$acl_save_exec_prefix"
10150 prefix="$acl_save_prefix"
10153 additional_includedir="$withval/include"
10154 additional_libdir="$withval/lib"
10165 names_already_handled=
10166 names_next_round='ipt '
10167 while test -n "$names_next_round"; do
10168 names_this_round="$names_next_round"
10170 for name in $names_this_round; do
10172 for n in $names_already_handled; do
10173 if test "$n" = "$name"; then
10174 already_handled=yes
10178 if test -z "$already_handled"; then
10179 names_already_handled="$names_already_handled $name"
10180 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10181 eval value=\"\$HAVE_LIB$uppername\"
10182 if test -n "$value"; then
10183 if test "$value" = yes; then
10184 eval value=\"\$LIB$uppername\"
10185 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
10186 eval value=\"\$LTLIB$uppername\"
10187 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
10196 if test $use_additional = yes; then
10197 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10198 found_dir="$additional_libdir"
10199 found_so="$additional_libdir/lib$name.$shlibext"
10200 if test -f "$additional_libdir/lib$name.la"; then
10201 found_la="$additional_libdir/lib$name.la"
10204 if test -f "$additional_libdir/lib$name.$libext"; then
10205 found_dir="$additional_libdir"
10206 found_a="$additional_libdir/lib$name.$libext"
10207 if test -f "$additional_libdir/lib$name.la"; then
10208 found_la="$additional_libdir/lib$name.la"
10213 if test "X$found_dir" = "X"; then
10214 for x in $LDFLAGS $LTLIBIPT; do
10216 acl_save_prefix="$prefix"
10217 prefix="$acl_final_prefix"
10218 acl_save_exec_prefix="$exec_prefix"
10219 exec_prefix="$acl_final_exec_prefix"
10221 exec_prefix="$acl_save_exec_prefix"
10222 prefix="$acl_save_prefix"
10226 dir=`echo "X$x" | sed -e 's/^X-L//'`
10227 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10229 found_so="$dir/lib$name.$shlibext"
10230 if test -f "$dir/lib$name.la"; then
10231 found_la="$dir/lib$name.la"
10234 if test -f "$dir/lib$name.$libext"; then
10236 found_a="$dir/lib$name.$libext"
10237 if test -f "$dir/lib$name.la"; then
10238 found_la="$dir/lib$name.la"
10244 if test "X$found_dir" != "X"; then
10249 if test "X$found_dir" != "X"; then
10250 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
10251 if test "X$found_so" != "X"; then
10252 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10253 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10256 for x in $ltrpathdirs; do
10257 if test "X$x" = "X$found_dir"; then
10262 if test -z "$haveit"; then
10263 ltrpathdirs="$ltrpathdirs $found_dir"
10265 if test "$hardcode_direct" = yes; then
10266 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10268 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10269 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10271 for x in $rpathdirs; do
10272 if test "X$x" = "X$found_dir"; then
10277 if test -z "$haveit"; then
10278 rpathdirs="$rpathdirs $found_dir"
10282 for x in $LDFLAGS $LIBIPT; do
10284 acl_save_prefix="$prefix"
10285 prefix="$acl_final_prefix"
10286 acl_save_exec_prefix="$exec_prefix"
10287 exec_prefix="$acl_final_exec_prefix"
10289 exec_prefix="$acl_save_exec_prefix"
10290 prefix="$acl_save_prefix"
10292 if test "X$x" = "X-L$found_dir"; then
10297 if test -z "$haveit"; then
10298 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10300 if test "$hardcode_minus_L" != no; then
10301 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10303 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10309 if test "X$found_a" != "X"; then
10310 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
10312 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10315 additional_includedir=
10316 case "$found_dir" in
10318 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10319 additional_includedir="$basedir/include"
10322 if test "X$additional_includedir" != "X"; then
10323 if test "X$additional_includedir" != "X/usr/include"; then
10325 if test "X$additional_includedir" = "X/usr/local/include"; then
10326 if test -n "$GCC"; then
10328 linux*) haveit=yes;;
10332 if test -z "$haveit"; then
10333 for x in $CPPFLAGS $INCIPT; do
10335 acl_save_prefix="$prefix"
10336 prefix="$acl_final_prefix"
10337 acl_save_exec_prefix="$exec_prefix"
10338 exec_prefix="$acl_final_exec_prefix"
10340 exec_prefix="$acl_save_exec_prefix"
10341 prefix="$acl_save_prefix"
10343 if test "X$x" = "X-I$additional_includedir"; then
10348 if test -z "$haveit"; then
10349 if test -d "$additional_includedir"; then
10350 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10356 if test -n "$found_la"; then
10357 save_libdir="$libdir"
10358 case "$found_la" in
10359 */* | *\\*) . "$found_la" ;;
10360 *) . "./$found_la" ;;
10362 libdir="$save_libdir"
10363 for dep in $dependency_libs; do
10366 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10367 if test "X$additional_libdir" != "X/usr/lib"; then
10369 if test "X$additional_libdir" = "X/usr/local/lib"; then
10370 if test -n "$GCC"; then
10372 linux*) haveit=yes;;
10376 if test -z "$haveit"; then
10378 for x in $LDFLAGS $LIBIPT; do
10380 acl_save_prefix="$prefix"
10381 prefix="$acl_final_prefix"
10382 acl_save_exec_prefix="$exec_prefix"
10383 exec_prefix="$acl_final_exec_prefix"
10385 exec_prefix="$acl_save_exec_prefix"
10386 prefix="$acl_save_prefix"
10388 if test "X$x" = "X-L$additional_libdir"; then
10393 if test -z "$haveit"; then
10394 if test -d "$additional_libdir"; then
10395 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10399 for x in $LDFLAGS $LTLIBIPT; do
10401 acl_save_prefix="$prefix"
10402 prefix="$acl_final_prefix"
10403 acl_save_exec_prefix="$exec_prefix"
10404 exec_prefix="$acl_final_exec_prefix"
10406 exec_prefix="$acl_save_exec_prefix"
10407 prefix="$acl_save_prefix"
10409 if test "X$x" = "X-L$additional_libdir"; then
10414 if test -z "$haveit"; then
10415 if test -d "$additional_libdir"; then
10416 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10423 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10424 if test "$enable_rpath" != no; then
10426 for x in $rpathdirs; do
10427 if test "X$x" = "X$dir"; then
10432 if test -z "$haveit"; then
10433 rpathdirs="$rpathdirs $dir"
10436 for x in $ltrpathdirs; do
10437 if test "X$x" = "X$dir"; then
10442 if test -z "$haveit"; then
10443 ltrpathdirs="$ltrpathdirs $dir"
10448 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10451 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10454 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10455 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10461 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10462 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10468 if test "X$rpathdirs" != "X"; then
10469 if test -n "$hardcode_libdir_separator"; then
10471 for found_dir in $rpathdirs; do
10472 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10474 acl_save_libdir="$libdir"
10476 eval flag=\"$hardcode_libdir_flag_spec\"
10477 libdir="$acl_save_libdir"
10478 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10480 for found_dir in $rpathdirs; do
10481 acl_save_libdir="$libdir"
10482 libdir="$found_dir"
10483 eval flag=\"$hardcode_libdir_flag_spec\"
10484 libdir="$acl_save_libdir"
10485 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10489 if test "X$ltrpathdirs" != "X"; then
10490 for found_dir in $ltrpathdirs; do
10491 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10496 ac_save_CPPFLAGS="$CPPFLAGS"
10498 for element in $INCIPT; do
10500 for x in $CPPFLAGS; do
10502 acl_save_prefix="$prefix"
10503 prefix="$acl_final_prefix"
10504 acl_save_exec_prefix="$exec_prefix"
10505 exec_prefix="$acl_final_exec_prefix"
10507 exec_prefix="$acl_save_exec_prefix"
10508 prefix="$acl_save_prefix"
10510 if test "X$x" = "X$element"; then
10515 if test -z "$haveit"; then
10516 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10522 $as_echo_n "checking for libipt... " >&6; }
10523 if test "${ac_cv_libipt+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10527 ac_save_LIBS="$LIBS"
10528 LIBS="$LIBS $LIBIPT"
10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10531 #include "intel-pt.h"
10535 pt_insn_alloc_decoder (0);
10540 if ac_fn_c_try_link "$LINENO"; then :
10545 rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
10547 LIBS="$ac_save_LIBS"
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10551 $as_echo "$ac_cv_libipt" >&6; }
10552 if test "$ac_cv_libipt" = yes; then
10555 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10558 $as_echo_n "checking how to link with libipt... " >&6; }
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10560 $as_echo "$LIBIPT" >&6; }
10563 CPPFLAGS="$ac_save_CPPFLAGS"
10573 if test "$HAVE_LIBIPT" != yes; then
10574 if test "$with_intel_pt" = yes; then
10575 as_fn_error "libipt is missing or unusable" "$LINENO" 5
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10578 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10583 # ------------------------- #
10584 # Checks for header files. #
10585 # ------------------------- #
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10588 $as_echo_n "checking for ANSI C header files... " >&6; }
10589 if test "${ac_cv_header_stdc+set}" = set; then :
10590 $as_echo_n "(cached) " >&6
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10594 #include <stdlib.h>
10595 #include <stdarg.h>
10596 #include <string.h>
10607 if ac_fn_c_try_compile "$LINENO"; then :
10608 ac_cv_header_stdc=yes
10610 ac_cv_header_stdc=no
10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614 if test $ac_cv_header_stdc = yes; then
10615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10618 #include <string.h>
10621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10622 $EGREP "memchr" >/dev/null 2>&1; then :
10625 ac_cv_header_stdc=no
10631 if test $ac_cv_header_stdc = yes; then
10632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 #include <stdlib.h>
10638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10639 $EGREP "free" >/dev/null 2>&1; then :
10642 ac_cv_header_stdc=no
10648 if test $ac_cv_header_stdc = yes; then
10649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10650 if test "$cross_compiling" = yes; then :
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h. */
10656 #include <stdlib.h>
10657 #if ((' ' & 0x0FF) == 0x020)
10658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10661 # define ISLOWER(c) \
10662 (('a' <= (c) && (c) <= 'i') \
10663 || ('j' <= (c) && (c) <= 'r') \
10664 || ('s' <= (c) && (c) <= 'z'))
10665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10673 for (i = 0; i < 256; i++)
10674 if (XOR (islower (i), ISLOWER (i))
10675 || toupper (i) != TOUPPER (i))
10680 if ac_fn_c_try_run "$LINENO"; then :
10683 ac_cv_header_stdc=no
10685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10686 conftest.$ac_objext conftest.beam conftest.$ac_ext
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10692 $as_echo "$ac_cv_header_stdc" >&6; }
10693 if test $ac_cv_header_stdc = yes; then
10695 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10699 # elf_hp.h is for HP/UX 64-bit shared library support.
10700 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
10703 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
10704 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
10705 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
10706 termios.h termio.h \
10710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10711 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10712 eval as_val=\$$as_ac_Header
10713 if test "x$as_val" = x""yes; then :
10714 cat >>confdefs.h <<_ACEOF
10715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10722 for ac_header in sys/proc.h
10724 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10725 # include <sys/param.h>
10729 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
10730 cat >>confdefs.h <<_ACEOF
10731 #define HAVE_SYS_PROC_H 1
10738 for ac_header in sys/user.h
10740 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10741 # include <sys/param.h>
10745 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
10746 cat >>confdefs.h <<_ACEOF
10747 #define HAVE_SYS_USER_H 1
10755 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10756 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10757 # think that we don't have <curses.h> if we're using GCC.
10760 if test "$GCC" = yes; then
10762 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10766 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
10768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10769 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10770 eval as_val=\$$as_ac_Header
10771 if test "x$as_val" = x""yes; then :
10772 cat >>confdefs.h <<_ACEOF
10773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10780 for ac_header in term.h
10782 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10783 # include <curses.h>
10787 if test "x$ac_cv_header_term_h" = x""yes; then :
10788 cat >>confdefs.h <<_ACEOF
10789 #define HAVE_TERM_H 1
10797 # ------------------------- #
10798 # Checks for declarations. #
10799 # ------------------------- #
10802 # Check for presence and size of long long.
10803 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10804 if test "x$ac_cv_type_long_long" = x""yes; then :
10806 cat >>confdefs.h <<_ACEOF
10807 #define HAVE_LONG_LONG 1
10810 # The cast to long int works around a bug in the HP C Compiler
10811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10813 # This bug is HP SR number 8606223364.
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10815 $as_echo_n "checking size of long long... " >&6; }
10816 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10817 $as_echo_n "(cached) " >&6
10819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10822 if test "$ac_cv_type_long_long" = yes; then
10823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10825 { as_fn_set_status 77
10826 as_fn_error "cannot compute sizeof (long long)
10827 See \`config.log' for more details." "$LINENO" 5; }; }
10829 ac_cv_sizeof_long_long=0
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10835 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10839 cat >>confdefs.h <<_ACEOF
10840 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10847 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
10848 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
10854 cat >>confdefs.h <<_ACEOF
10855 #define HAVE_DECL_BASENAME $ac_have_decl
10857 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10858 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
10864 cat >>confdefs.h <<_ACEOF
10865 #define HAVE_DECL_FFS $ac_have_decl
10867 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10868 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
10874 cat >>confdefs.h <<_ACEOF
10875 #define HAVE_DECL_ASPRINTF $ac_have_decl
10877 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10878 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
10884 cat >>confdefs.h <<_ACEOF
10885 #define HAVE_DECL_VASPRINTF $ac_have_decl
10887 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10888 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10894 cat >>confdefs.h <<_ACEOF
10895 #define HAVE_DECL_SNPRINTF $ac_have_decl
10897 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10898 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
10904 cat >>confdefs.h <<_ACEOF
10905 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10908 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10909 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
10915 cat >>confdefs.h <<_ACEOF
10916 #define HAVE_DECL_STRTOL $ac_have_decl
10918 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10919 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
10925 cat >>confdefs.h <<_ACEOF
10926 #define HAVE_DECL_STRTOUL $ac_have_decl
10928 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10929 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
10935 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_DECL_STRTOLL $ac_have_decl
10938 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10939 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
10945 cat >>confdefs.h <<_ACEOF
10946 #define HAVE_DECL_STRTOULL $ac_have_decl
10949 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10950 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
10956 cat >>confdefs.h <<_ACEOF
10957 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10962 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10963 if test "x$ac_cv_have_decl_free" = x""yes; then :
10969 cat >>confdefs.h <<_ACEOF
10970 #define HAVE_DECL_FREE $ac_have_decl
10972 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10973 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
10979 cat >>confdefs.h <<_ACEOF
10980 #define HAVE_DECL_MALLOC $ac_have_decl
10982 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10983 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
10989 cat >>confdefs.h <<_ACEOF
10990 #define HAVE_DECL_REALLOC $ac_have_decl
10992 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10993 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10999 cat >>confdefs.h <<_ACEOF
11000 #define HAVE_DECL_SNPRINTF $ac_have_decl
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11005 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11006 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11011 #include <locale.h>
11020 if ac_fn_c_try_link "$LINENO"; then :
11021 am_cv_val_LC_MESSAGES=yes
11023 am_cv_val_LC_MESSAGES=no
11025 rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11029 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11030 if test $am_cv_val_LC_MESSAGES = yes; then
11032 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11037 # ----------------------- #
11038 # Checks for structures. #
11039 # ----------------------- #
11041 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11042 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11044 cat >>confdefs.h <<_ACEOF
11045 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11050 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11051 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11053 cat >>confdefs.h <<_ACEOF
11054 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11061 # ------------------ #
11062 # Checks for types. #
11063 # ------------------ #
11065 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11066 #include <sys/socket.h>
11069 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11071 cat >>confdefs.h <<_ACEOF
11072 #define HAVE_SOCKLEN_T 1
11079 # ------------------------------------- #
11080 # Checks for compiler characteristics. #
11081 # ------------------------------------- #
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11084 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11085 if test "${ac_cv_c_const+set}" = set; then :
11086 $as_echo_n "(cached) " >&6
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11094 /* FIXME: Include the comments suggested by Paul. */
11095 #ifndef __cplusplus
11096 /* Ultrix mips cc rejects this. */
11097 typedef int charset[2];
11099 /* SunOS 4.1.1 cc rejects this. */
11100 char const *const *pcpcc;
11102 /* NEC SVR4.0.2 mips cc rejects this. */
11103 struct point {int x, y;};
11104 static struct point const zero = {0,0};
11105 /* AIX XL C 1.02.0.0 rejects this.
11106 It does not let you subtract one const X* pointer from another in
11107 an arm of an if-expression whose if-part is not a constant
11109 const char *g = "string";
11110 pcpcc = &g + (g ? g-g : 0);
11111 /* HPUX 7.0 cc rejects these. */
11113 ppc = (char**) pcpcc;
11114 pcpcc = (char const *const *) ppc;
11115 { /* SCO 3.2v4 cc rejects this. */
11117 char const *s = 0 ? (char *) 0 : (char const *) 0;
11122 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11123 int x[] = {25, 17};
11124 const int *foo = &x[0];
11127 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11128 typedef const int *iptr;
11132 { /* AIX XL C 1.02.0.0 rejects this saying
11133 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11134 struct s { int j; const int *ap[3]; };
11135 struct s *b; b->j = 5;
11137 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11138 const int foo = 10;
11139 if (!foo) return 0;
11141 return !cs[0] && !zero.x;
11148 if ac_fn_c_try_compile "$LINENO"; then :
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11156 $as_echo "$ac_cv_c_const" >&6; }
11157 if test $ac_cv_c_const = no; then
11159 $as_echo "#define const /**/" >>confdefs.h
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11164 $as_echo_n "checking for inline... " >&6; }
11165 if test "${ac_cv_c_inline+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
11169 for ac_kw in inline __inline__ __inline; do
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11172 #ifndef __cplusplus
11174 static $ac_kw foo_t static_foo () {return 0; }
11175 $ac_kw foo_t foo () {return 0; }
11179 if ac_fn_c_try_compile "$LINENO"; then :
11180 ac_cv_c_inline=$ac_kw
11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183 test "$ac_cv_c_inline" != no && break
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11188 $as_echo "$ac_cv_c_inline" >&6; }
11190 case $ac_cv_c_inline in
11193 case $ac_cv_c_inline in
11195 *) ac_val=$ac_cv_c_inline;;
11197 cat >>confdefs.h <<_ACEOF
11198 #ifndef __cplusplus
11199 #define inline $ac_val
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11206 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11207 if test "${ac_cv_c_bigendian+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11210 ac_cv_c_bigendian=unknown
11211 # See if we're dealing with a universal compiler.
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11214 #ifndef __APPLE_CC__
11215 not a universal capable compiler
11220 if ac_fn_c_try_compile "$LINENO"; then :
11222 # Check for potential -arch flags. It is not universal unless
11223 # there are at least two -arch flags with different values.
11226 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11227 if test -n "$ac_prev"; then
11229 i?86 | x86_64 | ppc | ppc64)
11230 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11233 ac_cv_c_bigendian=universal
11239 elif test "x$ac_word" = "x-arch"; then
11244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11245 if test $ac_cv_c_bigendian = unknown; then
11246 # See if sys/param.h defines the BYTE_ORDER macro.
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <sys/types.h>
11250 #include <sys/param.h>
11255 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11256 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11258 bogus endian macros
11265 if ac_fn_c_try_compile "$LINENO"; then :
11266 # It does; now see whether it defined to BIG_ENDIAN or not.
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11269 #include <sys/types.h>
11270 #include <sys/param.h>
11275 #if BYTE_ORDER != BIG_ENDIAN
11283 if ac_fn_c_try_compile "$LINENO"; then :
11284 ac_cv_c_bigendian=yes
11286 ac_cv_c_bigendian=no
11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292 if test $ac_cv_c_bigendian = unknown; then
11293 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296 #include <limits.h>
11301 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11302 bogus endian macros
11309 if ac_fn_c_try_compile "$LINENO"; then :
11310 # It does; now see whether it defined to _BIG_ENDIAN or not.
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11313 #include <limits.h>
11318 #ifndef _BIG_ENDIAN
11326 if ac_fn_c_try_compile "$LINENO"; then :
11327 ac_cv_c_bigendian=yes
11329 ac_cv_c_bigendian=no
11331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11335 if test $ac_cv_c_bigendian = unknown; then
11336 # Compile a test program.
11337 if test "$cross_compiling" = yes; then :
11338 # Try to guess by grepping values from an object file.
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11341 short int ascii_mm[] =
11342 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11343 short int ascii_ii[] =
11344 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11345 int use_ascii (int i) {
11346 return ascii_mm[i] + ascii_ii[i];
11348 short int ebcdic_ii[] =
11349 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11350 short int ebcdic_mm[] =
11351 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11352 int use_ebcdic (int i) {
11353 return ebcdic_mm[i] + ebcdic_ii[i];
11360 return use_ascii (foo) == use_ebcdic (foo);
11365 if ac_fn_c_try_compile "$LINENO"; then :
11366 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11367 ac_cv_c_bigendian=yes
11369 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11370 if test "$ac_cv_c_bigendian" = unknown; then
11371 ac_cv_c_bigendian=no
11373 # finding both strings is unlikely to happen, but who knows?
11374 ac_cv_c_bigendian=unknown
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 $ac_includes_default
11387 /* Are we little or big endian? From Harbison&Steele. */
11391 char c[sizeof (long int)];
11394 return u.c[sizeof (long int) - 1] == 1;
11400 if ac_fn_c_try_run "$LINENO"; then :
11401 ac_cv_c_bigendian=no
11403 ac_cv_c_bigendian=yes
11405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11406 conftest.$ac_objext conftest.beam conftest.$ac_ext
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11412 $as_echo "$ac_cv_c_bigendian" >&6; }
11413 case $ac_cv_c_bigendian in #(
11415 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11421 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11425 as_fn_error "unknown endianness
11426 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11430 # ------------------------------ #
11431 # Checks for library functions. #
11432 # ------------------------------ #
11434 for ac_header in stdlib.h unistd.h
11436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11437 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11438 eval as_val=\$$as_ac_Header
11439 if test "x$as_val" = x""yes; then :
11440 cat >>confdefs.h <<_ACEOF
11441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11448 for ac_func in getpagesize
11450 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11451 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11452 cat >>confdefs.h <<_ACEOF
11453 #define HAVE_GETPAGESIZE 1
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11460 $as_echo_n "checking for working mmap... " >&6; }
11461 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
11464 if test "$cross_compiling" = yes; then :
11465 ac_cv_func_mmap_fixed_mapped=no
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469 $ac_includes_default
11470 /* malloc might have been renamed as rpl_malloc. */
11473 /* Thanks to Mike Haertel and Jim Avera for this test.
11474 Here is a matrix of mmap possibilities:
11475 mmap private not fixed
11476 mmap private fixed at somewhere currently unmapped
11477 mmap private fixed at somewhere already mapped
11478 mmap shared not fixed
11479 mmap shared fixed at somewhere currently unmapped
11480 mmap shared fixed at somewhere already mapped
11481 For private mappings, we should verify that changes cannot be read()
11482 back from the file, nor mmap's back from the file at a different
11483 address. (There have been systems where private was not correctly
11484 implemented like the infamous i386 svr4.0, and systems where the
11485 VM page cache was not coherent with the file system buffer cache
11486 like early versions of FreeBSD and possibly contemporary NetBSD.)
11487 For shared mappings, we should conversely verify that changes get
11488 propagated back to all the places they're supposed to be.
11490 Grep wants private fixed already mapped.
11491 The main things grep needs to know about mmap are:
11492 * does it exist and is it safe to write into the mmap'd area
11493 * how to use it (BSD variants) */
11496 #include <sys/mman.h>
11498 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11502 /* This mess was copied from the GNU getpagesize.h. */
11503 #ifndef HAVE_GETPAGESIZE
11504 /* Assume that all systems that can run configure have sys/param.h. */
11505 # ifndef HAVE_SYS_PARAM_H
11506 # define HAVE_SYS_PARAM_H 1
11509 # ifdef _SC_PAGESIZE
11510 # define getpagesize() sysconf(_SC_PAGESIZE)
11511 # else /* no _SC_PAGESIZE */
11512 # ifdef HAVE_SYS_PARAM_H
11513 # include <sys/param.h>
11514 # ifdef EXEC_PAGESIZE
11515 # define getpagesize() EXEC_PAGESIZE
11516 # else /* no EXEC_PAGESIZE */
11518 # define getpagesize() NBPG * CLSIZE
11521 # endif /* no CLSIZE */
11522 # else /* no NBPG */
11524 # define getpagesize() NBPC
11525 # else /* no NBPC */
11527 # define getpagesize() PAGESIZE
11528 # endif /* PAGESIZE */
11529 # endif /* no NBPC */
11530 # endif /* no NBPG */
11531 # endif /* no EXEC_PAGESIZE */
11532 # else /* no HAVE_SYS_PARAM_H */
11533 # define getpagesize() 8192 /* punt totally */
11534 # endif /* no HAVE_SYS_PARAM_H */
11535 # endif /* no _SC_PAGESIZE */
11537 #endif /* no HAVE_GETPAGESIZE */
11542 char *data, *data2, *data3;
11546 pagesize = getpagesize ();
11548 /* First, make a file with some known garbage in it. */
11549 data = (char *) malloc (pagesize);
11552 for (i = 0; i < pagesize; ++i)
11553 *(data + i) = rand ();
11555 fd = creat ("conftest.mmap", 0600);
11558 if (write (fd, data, pagesize) != pagesize)
11562 /* Next, try to mmap the file at a fixed address which already has
11563 something else allocated at it. If we can, also make sure that
11564 we see the same garbage. */
11565 fd = open ("conftest.mmap", O_RDWR);
11568 data2 = (char *) malloc (2 * pagesize);
11571 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11572 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11573 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11575 for (i = 0; i < pagesize; ++i)
11576 if (*(data + i) != *(data2 + i))
11579 /* Finally, make sure that changes to the mapped area do not
11580 percolate back to the file as seen by read(). (This is a bug on
11581 some variants of i386 svr4.0.) */
11582 for (i = 0; i < pagesize; ++i)
11583 *(data2 + i) = *(data2 + i) + 1;
11584 data3 = (char *) malloc (pagesize);
11587 if (read (fd, data3, pagesize) != pagesize)
11589 for (i = 0; i < pagesize; ++i)
11590 if (*(data + i) != *(data3 + i))
11596 if ac_fn_c_try_run "$LINENO"; then :
11597 ac_cv_func_mmap_fixed_mapped=yes
11599 ac_cv_func_mmap_fixed_mapped=no
11601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11602 conftest.$ac_objext conftest.beam conftest.$ac_ext
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11607 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11608 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11610 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11613 rm -f conftest.mmap
11615 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11616 if test "x$ac_cv_type_pid_t" = x""yes; then :
11620 cat >>confdefs.h <<_ACEOF
11626 for ac_header in vfork.h
11628 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11629 if test "x$ac_cv_header_vfork_h" = x""yes; then :
11630 cat >>confdefs.h <<_ACEOF
11631 #define HAVE_VFORK_H 1
11638 for ac_func in fork vfork
11640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11642 eval as_val=\$$as_ac_var
11643 if test "x$as_val" = x""yes; then :
11644 cat >>confdefs.h <<_ACEOF
11645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11651 if test "x$ac_cv_func_fork" = xyes; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11653 $as_echo_n "checking for working fork... " >&6; }
11654 if test "${ac_cv_func_fork_works+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
11657 if test "$cross_compiling" = yes; then :
11658 ac_cv_func_fork_works=cross
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11662 $ac_includes_default
11667 /* By Ruediger Kuhlmann. */
11668 return fork () < 0;
11674 if ac_fn_c_try_run "$LINENO"; then :
11675 ac_cv_func_fork_works=yes
11677 ac_cv_func_fork_works=no
11679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11680 conftest.$ac_objext conftest.beam conftest.$ac_ext
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11685 $as_echo "$ac_cv_func_fork_works" >&6; }
11688 ac_cv_func_fork_works=$ac_cv_func_fork
11690 if test "x$ac_cv_func_fork_works" = xcross; then
11692 *-*-amigaos* | *-*-msdosdjgpp*)
11693 # Override, as these systems have only a dummy fork() stub
11694 ac_cv_func_fork_works=no
11697 ac_cv_func_fork_works=yes
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11701 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11703 ac_cv_func_vfork_works=$ac_cv_func_vfork
11704 if test "x$ac_cv_func_vfork" = xyes; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11706 $as_echo_n "checking for working vfork... " >&6; }
11707 if test "${ac_cv_func_vfork_works+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11710 if test "$cross_compiling" = yes; then :
11711 ac_cv_func_vfork_works=cross
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11715 /* Thanks to Paul Eggert for this test. */
11716 $ac_includes_default
11717 #include <sys/wait.h>
11718 #ifdef HAVE_VFORK_H
11719 # include <vfork.h>
11721 /* On some sparc systems, changes by the child to local and incoming
11722 argument registers are propagated back to the parent. The compiler
11723 is told about this with #include <vfork.h>, but some compilers
11724 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11725 static variable whose address is put into a register that is
11726 clobbered by the vfork. */
11729 sparc_address_test (int arg)
11731 sparc_address_test (arg) int arg;
11734 static pid_t child;
11752 pid_t parent = getpid ();
11755 sparc_address_test (0);
11760 /* Here is another test for sparc vfork register problems. This
11761 test uses lots of local variables, at least as many local
11762 variables as main has allocated so far including compiler
11763 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11764 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11765 reuse the register of parent for one of the local variables,
11766 since it will think that parent can't possibly be used any more
11767 in this routine. Assigning to the local variable will thus
11768 munge parent in the parent process. */
11770 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11771 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11772 /* Convince the compiler that p..p7 are live; otherwise, it might
11773 use the same hardware register for all 8 local variables. */
11774 if (p != p1 || p != p2 || p != p3 || p != p4
11775 || p != p5 || p != p6 || p != p7)
11778 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11779 from child file descriptors. If the child closes a descriptor
11780 before it execs or exits, this munges the parent's descriptor
11781 as well. Test for this by closing stdout in the child. */
11782 _exit(close(fileno(stdout)) != 0);
11787 while (wait(&status) != child)
11790 /* Was there some problem with vforking? */
11793 /* Did the child fail? (This shouldn't happen.) */
11796 /* Did the vfork/compiler bug occur? */
11797 || parent != getpid()
11799 /* Did the file descriptor bug occur? */
11800 || fstat(fileno(stdout), &st) != 0
11805 if ac_fn_c_try_run "$LINENO"; then :
11806 ac_cv_func_vfork_works=yes
11808 ac_cv_func_vfork_works=no
11810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11811 conftest.$ac_objext conftest.beam conftest.$ac_ext
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11816 $as_echo "$ac_cv_func_vfork_works" >&6; }
11819 if test "x$ac_cv_func_fork_works" = xcross; then
11820 ac_cv_func_vfork_works=$ac_cv_func_vfork
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11822 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11825 if test "x$ac_cv_func_vfork_works" = xyes; then
11827 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11831 $as_echo "#define vfork fork" >>confdefs.h
11834 if test "x$ac_cv_func_fork_works" = xyes; then
11836 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11840 for ac_func in getauxval getrusage getuid getgid \
11841 pipe poll pread pread64 pwrite resize_term \
11842 sbrk setpgid setpgrp setsid \
11843 sigaction sigprocmask sigsetmask socketpair \
11844 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11845 setrlimit getrlimit posix_madvise waitpid \
11846 ptrace64 sigaltstack mkdtemp setns
11848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11850 eval as_val=\$$as_ac_var
11851 if test "x$as_val" = x""yes; then :
11852 cat >>confdefs.h <<_ACEOF
11853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11861 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11862 if test "${am_cv_langinfo_codeset+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867 #include <langinfo.h>
11871 char* cs = nl_langinfo(CODESET);
11876 if ac_fn_c_try_link "$LINENO"; then :
11877 am_cv_langinfo_codeset=yes
11879 am_cv_langinfo_codeset=no
11881 rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11886 $as_echo "$am_cv_langinfo_codeset" >&6; }
11887 if test $am_cv_langinfo_codeset = yes; then
11889 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11895 $as_echo_n "checking for ANSI C header files... " >&6; }
11896 if test "${ac_cv_header_stdc+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11901 #include <stdlib.h>
11902 #include <stdarg.h>
11903 #include <string.h>
11914 if ac_fn_c_try_compile "$LINENO"; then :
11915 ac_cv_header_stdc=yes
11917 ac_cv_header_stdc=no
11919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 if test $ac_cv_header_stdc = yes; then
11922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925 #include <string.h>
11928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11929 $EGREP "memchr" >/dev/null 2>&1; then :
11932 ac_cv_header_stdc=no
11938 if test $ac_cv_header_stdc = yes; then
11939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11942 #include <stdlib.h>
11945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11946 $EGREP "free" >/dev/null 2>&1; then :
11949 ac_cv_header_stdc=no
11955 if test $ac_cv_header_stdc = yes; then
11956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11957 if test "$cross_compiling" = yes; then :
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11963 #include <stdlib.h>
11964 #if ((' ' & 0x0FF) == 0x020)
11965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11968 # define ISLOWER(c) \
11969 (('a' <= (c) && (c) <= 'i') \
11970 || ('j' <= (c) && (c) <= 'r') \
11971 || ('s' <= (c) && (c) <= 'z'))
11972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11980 for (i = 0; i < 256; i++)
11981 if (XOR (islower (i), ISLOWER (i))
11982 || toupper (i) != TOUPPER (i))
11987 if ac_fn_c_try_run "$LINENO"; then :
11990 ac_cv_header_stdc=no
11992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11993 conftest.$ac_objext conftest.beam conftest.$ac_ext
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11999 $as_echo "$ac_cv_header_stdc" >&6; }
12000 if test $ac_cv_header_stdc = yes; then
12002 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12006 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12007 # for constant arguments. Useless!
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12009 $as_echo_n "checking for working alloca.h... " >&6; }
12010 if test "${ac_cv_working_alloca_h+set}" = set; then :
12011 $as_echo_n "(cached) " >&6
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h. */
12015 #include <alloca.h>
12019 char *p = (char *) alloca (2 * sizeof (int));
12025 if ac_fn_c_try_link "$LINENO"; then :
12026 ac_cv_working_alloca_h=yes
12028 ac_cv_working_alloca_h=no
12030 rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12034 $as_echo "$ac_cv_working_alloca_h" >&6; }
12035 if test $ac_cv_working_alloca_h = yes; then
12037 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12042 $as_echo_n "checking for alloca... " >&6; }
12043 if test "${ac_cv_func_alloca_works+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12049 # define alloca __builtin_alloca
12052 # include <malloc.h>
12053 # define alloca _alloca
12055 # ifdef HAVE_ALLOCA_H
12056 # include <alloca.h>
12061 # ifndef alloca /* predefined by HP cc +Olibcalls */
12072 char *p = (char *) alloca (1);
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_func_alloca_works=yes
12081 ac_cv_func_alloca_works=no
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12087 $as_echo "$ac_cv_func_alloca_works" >&6; }
12089 if test $ac_cv_func_alloca_works = yes; then
12091 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12094 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12095 # that cause trouble. Some versions do not even contain alloca or
12096 # contain a buggy version. If you still want to use their alloca,
12097 # use ar to extract alloca.o from them instead of compiling alloca.c.
12099 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12101 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12105 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12106 if test "${ac_cv_os_cray+set}" = set; then :
12107 $as_echo_n "(cached) " >&6
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111 #if defined CRAY && ! defined CRAY2
12118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12119 $EGREP "webecray" >/dev/null 2>&1; then :
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12128 $as_echo "$ac_cv_os_cray" >&6; }
12129 if test $ac_cv_os_cray = yes; then
12130 for ac_func in _getb67 GETB67 getb67; do
12131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12133 eval as_val=\$$as_ac_var
12134 if test "x$as_val" = x""yes; then :
12136 cat >>confdefs.h <<_ACEOF
12137 #define CRAY_STACKSEG_END $ac_func
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12147 $as_echo_n "checking stack direction for C alloca... " >&6; }
12148 if test "${ac_cv_c_stack_direction+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
12151 if test "$cross_compiling" = yes; then :
12152 ac_cv_c_stack_direction=0
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12156 $ac_includes_default
12158 find_stack_direction ()
12160 static char *addr = 0;
12165 return find_stack_direction ();
12168 return (&dummy > addr) ? 1 : -1;
12174 return find_stack_direction () < 0;
12177 if ac_fn_c_try_run "$LINENO"; then :
12178 ac_cv_c_stack_direction=1
12180 ac_cv_c_stack_direction=-1
12182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12183 conftest.$ac_objext conftest.beam conftest.$ac_ext
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12188 $as_echo "$ac_cv_c_stack_direction" >&6; }
12189 cat >>confdefs.h <<_ACEOF
12190 #define STACK_DIRECTION $ac_cv_c_stack_direction
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12199 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12200 if test "${am_cv_langinfo_codeset+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205 #include <langinfo.h>
12209 char* cs = nl_langinfo(CODESET);
12214 if ac_fn_c_try_link "$LINENO"; then :
12215 am_cv_langinfo_codeset=yes
12217 am_cv_langinfo_codeset=no
12219 rm -f core conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12224 $as_echo "$am_cv_langinfo_codeset" >&6; }
12225 if test $am_cv_langinfo_codeset = yes; then
12227 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12232 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
12234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12235 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12236 eval as_val=\$$as_ac_Header
12237 if test "x$as_val" = x""yes; then :
12238 cat >>confdefs.h <<_ACEOF
12239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12247 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
12249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12251 eval as_val=\$$as_ac_var
12252 if test "x$as_val" = x""yes; then :
12253 cat >>confdefs.h <<_ACEOF
12254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12261 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
12262 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
12268 cat >>confdefs.h <<_ACEOF
12269 #define HAVE_DECL_STRERROR $ac_have_decl
12271 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12272 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12278 cat >>confdefs.h <<_ACEOF
12279 #define HAVE_DECL_STRSTR $ac_have_decl
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12284 $as_echo_n "checking for sigsetjmp... " >&6; }
12285 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12291 #include <setjmp.h>
12296 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12301 if ac_fn_c_try_compile "$LINENO"; then :
12302 gdb_cv_func_sigsetjmp=yes
12304 gdb_cv_func_sigsetjmp=no
12306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12309 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12310 if test $gdb_cv_func_sigsetjmp = yes; then
12312 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12317 # Check the return and argument types of ptrace.
12320 for ac_header in sys/ptrace.h ptrace.h
12322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12324 eval as_val=\$$as_ac_Header
12325 if test "x$as_val" = x""yes; then :
12326 cat >>confdefs.h <<_ACEOF
12327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12335 gdb_ptrace_headers='
12336 #include <sys/types.h>
12337 #if HAVE_SYS_PTRACE_H
12338 # include <sys/ptrace.h>
12341 # include <unistd.h>
12344 # There is no point in checking if we don't have a prototype.
12345 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12347 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12353 cat >>confdefs.h <<_ACEOF
12354 #define HAVE_DECL_PTRACE $ac_have_decl
12356 if test $ac_have_decl = 1; then :
12360 : ${gdb_cv_func_ptrace_ret='int'}
12361 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12365 # Check return type. Varargs (used on GNU/Linux) conflict with the
12366 # empty argument list, so check for that explicitly.
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12368 $as_echo_n "checking return type of ptrace... " >&6; }
12369 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374 $gdb_ptrace_headers
12378 extern long ptrace (enum __ptrace_request, ...);
12383 if ac_fn_c_try_compile "$LINENO"; then :
12384 gdb_cv_func_ptrace_ret='long'
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388 $gdb_ptrace_headers
12392 extern int ptrace ();
12397 if ac_fn_c_try_compile "$LINENO"; then :
12398 gdb_cv_func_ptrace_ret='int'
12400 gdb_cv_func_ptrace_ret='long'
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12407 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12409 cat >>confdefs.h <<_ACEOF
12410 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12413 # Check argument types.
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12415 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12416 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422 $gdb_ptrace_headers
12426 extern long ptrace (enum __ptrace_request, ...);
12431 if ac_fn_c_try_compile "$LINENO"; then :
12432 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
12435 for gdb_arg1 in 'int' 'long'; do
12436 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12437 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12438 for gdb_arg4 in 'int' 'long' 'void *'; do
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 $gdb_ptrace_headers
12446 extern $gdb_cv_func_ptrace_ret
12447 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12453 if ac_fn_c_try_compile "$LINENO"; then :
12454 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458 for gdb_arg5 in 'int *' 'int' 'long'; do
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461 $gdb_ptrace_headers
12466 extern $gdb_cv_func_ptrace_ret
12467 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12473 if ac_fn_c_try_compile "$LINENO"; then :
12475 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 # Provide a safe default value.
12485 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12491 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12492 ac_save_IFS=$IFS; IFS=','
12493 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12497 cat >>confdefs.h <<_ACEOF
12498 #define PTRACE_TYPE_ARG1 $1
12502 cat >>confdefs.h <<_ACEOF
12503 #define PTRACE_TYPE_ARG3 $3
12507 cat >>confdefs.h <<_ACEOF
12508 #define PTRACE_TYPE_ARG4 $4
12511 if test -n "$5"; then
12513 cat >>confdefs.h <<_ACEOF
12514 #define PTRACE_TYPE_ARG5 $5
12520 if test "$cross_compiling" = no; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12522 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12523 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12526 if test "$cross_compiling" = yes; then :
12527 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12531 $ac_includes_default
12535 /* If this system has a BSD-style setpgrp which takes arguments,
12536 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12537 exit successfully. */
12538 return setpgrp (1,1) != -1;
12543 if ac_fn_c_try_run "$LINENO"; then :
12544 ac_cv_func_setpgrp_void=no
12546 ac_cv_func_setpgrp_void=yes
12548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12549 conftest.$ac_objext conftest.beam conftest.$ac_ext
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12554 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12555 if test $ac_cv_func_setpgrp_void = yes; then
12557 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12563 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12564 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12565 $as_echo_n "(cached) " >&6
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12570 #include <unistd.h>
12576 if (setpgrp(1,1) == -1)
12585 if ac_fn_c_try_compile "$LINENO"; then :
12586 ac_cv_func_setpgrp_void=no
12588 ac_cv_func_setpgrp_void=yes
12590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12593 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12594 if test $ac_cv_func_setpgrp_void = yes; then
12595 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12600 # Assume we'll default to using the included libiberty regex.
12601 gdb_use_included_regex=yes
12603 # However, if the system regex is GNU regex, then default to *not*
12604 # using the included regex.
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12606 $as_echo_n "checking for GNU regex... " >&6; }
12607 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12608 $as_echo_n "(cached) " >&6
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612 #include <gnu-versions.h>
12616 #define REGEX_INTERFACE_VERSION 1
12617 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12618 # error "Version mismatch"
12624 if ac_fn_c_try_compile "$LINENO"; then :
12625 gdb_cv_have_gnu_regex=yes
12627 gdb_cv_have_gnu_regex=no
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12632 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12633 if test $gdb_cv_have_gnu_regex = yes; then
12634 gdb_use_included_regex=no
12638 # Check whether --with-included-regex was given.
12639 if test "${with_included_regex+set}" = set; then :
12640 withval=$with_included_regex; gdb_with_regex=$withval
12642 gdb_with_regex=$gdb_use_included_regex
12645 if test "$gdb_with_regex" = yes; then
12647 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12651 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12652 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12653 #include <sys/proc.h>
12656 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12658 cat >>confdefs.h <<_ACEOF
12659 #define HAVE_STRUCT_THREAD_TD_PCB 1
12666 # See if <sys/lwp.h> defines `struct lwp`.
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12668 $as_echo_n "checking for struct lwp... " >&6; }
12669 if test "${gdb_cv_struct_lwp+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12674 #include <sys/param.h>
12675 #include <sys/lwp.h>
12684 if ac_fn_c_try_compile "$LINENO"; then :
12685 gdb_cv_struct_lwp=yes
12687 gdb_cv_struct_lwp=no
12689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12692 $as_echo "$gdb_cv_struct_lwp" >&6; }
12693 if test $gdb_cv_struct_lwp = yes; then
12695 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12699 # See if <machine/reg.h> degines `struct reg'.
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12701 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12702 if test "${gdb_cv_struct_reg+set}" = set; then :
12703 $as_echo_n "(cached) " >&6
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12707 #include <sys/types.h>
12708 #include <machine/reg.h>
12717 if ac_fn_c_try_compile "$LINENO"; then :
12718 gdb_cv_struct_reg=yes
12720 gdb_cv_struct_reg=no
12722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12725 $as_echo "$gdb_cv_struct_reg" >&6; }
12726 if test $gdb_cv_struct_reg = yes; then
12728 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12732 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12733 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12734 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
12735 #include <machine/reg.h>
12737 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
12739 cat >>confdefs.h <<_ACEOF
12740 #define HAVE_STRUCT_REG_R_FS 1
12745 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
12746 #include <machine/reg.h>
12748 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
12750 cat >>confdefs.h <<_ACEOF
12751 #define HAVE_STRUCT_REG_R_GS 1
12758 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
12759 # Older amd64 Linux's don't have the fs_base and gs_base members of
12760 # `struct user_regs_struct'.
12761 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>
12763 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
12765 cat >>confdefs.h <<_ACEOF
12766 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
12771 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>
12773 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
12775 cat >>confdefs.h <<_ACEOF
12776 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
12783 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12785 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12786 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12787 $as_echo_n "(cached) " >&6
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12791 #include <sys/ptrace.h>
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801 gdb_cv_have_ptrace_getregs=yes
12803 gdb_cv_have_ptrace_getregs=no
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12809 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12810 if test $gdb_cv_have_ptrace_getregs = yes; then
12812 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12816 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12818 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12819 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824 #include <sys/ptrace.h>
12833 if ac_fn_c_try_compile "$LINENO"; then :
12834 gdb_cv_have_ptrace_getfpxregs=yes
12836 gdb_cv_have_ptrace_getfpxregs=no
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12842 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12843 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12845 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12849 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12851 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12852 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12857 #include <sys/types.h>
12858 #include <sys/ptrace.h>
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868 gdb_cv_have_pt_getdbregs=yes
12870 gdb_cv_have_pt_getdbregs=no
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12876 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12877 if test $gdb_cv_have_pt_getdbregs = yes; then
12879 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12883 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12885 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12886 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12887 $as_echo_n "(cached) " >&6
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12891 #include <sys/types.h>
12892 #include <sys/ptrace.h>
12901 if ac_fn_c_try_compile "$LINENO"; then :
12902 gdb_cv_have_pt_getxmmregs=yes
12904 gdb_cv_have_pt_getxmmregs=no
12906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12910 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12911 if test $gdb_cv_have_pt_getxmmregs = yes; then
12913 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12917 # See if <sys/ptrace.h> supports LWP names on FreeBSD
12918 # Older FreeBSD versions don't have the pl_tdname member of
12919 # `struct ptrace_lwpinfo'.
12920 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
12922 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x""yes; then :
12924 cat >>confdefs.h <<_ACEOF
12925 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
12932 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
12933 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
12935 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>
12937 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = x""yes; then :
12939 cat >>confdefs.h <<_ACEOF
12940 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
12947 # Detect which type of /proc is in use, such as for Solaris.
12949 if test "${target}" = "${host}"; then
12951 *-*-sysv4.2* | *-*-sysv5* )
12953 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12956 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
12958 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12962 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12964 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12970 if test "$ac_cv_header_sys_procfs_h" = yes; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12972 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12973 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12974 $as_echo_n "(cached) " >&6
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12980 /* Needed for new procfs interface on sparc-solaris. */
12981 #define _STRUCTURED_PROC 1
12982 #include <sys/procfs.h>
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992 bfd_cv_have_sys_procfs_type_gregset_t=yes
12994 bfd_cv_have_sys_procfs_type_gregset_t=no
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13002 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13006 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13009 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13010 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13011 $as_echo_n "(cached) " >&6
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13017 /* Needed for new procfs interface on sparc-solaris. */
13018 #define _STRUCTURED_PROC 1
13019 #include <sys/procfs.h>
13028 if ac_fn_c_try_compile "$LINENO"; then :
13029 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13031 bfd_cv_have_sys_procfs_type_fpregset_t=no
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13039 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13043 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13046 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13047 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13054 /* Needed for new procfs interface on sparc-solaris. */
13055 #define _STRUCTURED_PROC 1
13056 #include <sys/procfs.h>
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13068 bfd_cv_have_sys_procfs_type_prgregset_t=no
13071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13074 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13076 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13080 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13083 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13084 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13085 $as_echo_n "(cached) " >&6
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13091 /* Needed for new procfs interface on sparc-solaris. */
13092 #define _STRUCTURED_PROC 1
13093 #include <sys/procfs.h>
13102 if ac_fn_c_try_compile "$LINENO"; then :
13103 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13105 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13113 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13117 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13120 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13121 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13128 /* Needed for new procfs interface on sparc-solaris. */
13129 #define _STRUCTURED_PROC 1
13130 #include <sys/procfs.h>
13139 if ac_fn_c_try_compile "$LINENO"; then :
13140 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13142 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13150 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13154 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13157 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13158 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13165 /* Needed for new procfs interface on sparc-solaris. */
13166 #define _STRUCTURED_PROC 1
13167 #include <sys/procfs.h>
13176 if ac_fn_c_try_compile "$LINENO"; then :
13177 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13179 bfd_cv_have_sys_procfs_type_lwpid_t=no
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13187 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13191 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13194 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13195 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13196 $as_echo_n "(cached) " >&6
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13202 /* Needed for new procfs interface on sparc-solaris. */
13203 #define _STRUCTURED_PROC 1
13204 #include <sys/procfs.h>
13213 if ac_fn_c_try_compile "$LINENO"; then :
13214 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13216 bfd_cv_have_sys_procfs_type_psaddr_t=no
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13224 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13228 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13231 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13232 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13239 /* Needed for new procfs interface on sparc-solaris. */
13240 #define _STRUCTURED_PROC 1
13241 #include <sys/procfs.h>
13250 if ac_fn_c_try_compile "$LINENO"; then :
13251 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13253 bfd_cv_have_sys_procfs_type_prsysent_t=no
13256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13261 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13265 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13268 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13269 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13270 $as_echo_n "(cached) " >&6
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13276 /* Needed for new procfs interface on sparc-solaris. */
13277 #define _STRUCTURED_PROC 1
13278 #include <sys/procfs.h>
13287 if ac_fn_c_try_compile "$LINENO"; then :
13288 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13290 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13298 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13302 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13305 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13306 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13313 /* Needed for new procfs interface on sparc-solaris. */
13314 #define _STRUCTURED_PROC 1
13315 #include <sys/procfs.h>
13319 pr_sigaction64_t avar
13324 if ac_fn_c_try_compile "$LINENO"; then :
13325 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13327 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13333 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13335 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13339 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13342 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13343 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13344 $as_echo_n "(cached) " >&6
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13350 /* Needed for new procfs interface on sparc-solaris. */
13351 #define _STRUCTURED_PROC 1
13352 #include <sys/procfs.h>
13356 pr_siginfo64_t avar
13361 if ac_fn_c_try_compile "$LINENO"; then :
13362 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13364 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13372 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13376 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13382 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13384 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13385 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13388 if test "$cross_compiling" = yes; then :
13389 gdb_cv_prfpregset_t_broken=yes
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13393 #include <sys/procfs.h>
13396 if (sizeof (prfpregset_t) == sizeof (void *))
13401 if ac_fn_c_try_run "$LINENO"; then :
13402 gdb_cv_prfpregset_t_broken=no
13404 gdb_cv_prfpregset_t_broken=yes
13406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13407 conftest.$ac_objext conftest.beam conftest.$ac_ext
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13413 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13414 if test $gdb_cv_prfpregset_t_broken = yes; then
13416 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13422 # Check if the compiler supports the `long long' type.
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13425 $as_echo_n "checking for long long support in compiler... " >&6; }
13426 if test "${gdb_cv_c_long_long+set}" = set; then :
13427 $as_echo_n "(cached) " >&6
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13431 extern long long foo;
13435 switch (foo & 2) { case 0: return 1; }
13440 if ac_fn_c_try_compile "$LINENO"; then :
13441 gdb_cv_c_long_long=yes
13443 gdb_cv_c_long_long=no
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13448 $as_echo "$gdb_cv_c_long_long" >&6; }
13449 if test $gdb_cv_c_long_long != yes; then
13450 # libdecnumber requires long long.
13451 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
13454 # Check if the compiler and runtime support printing long longs.
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13457 $as_echo_n "checking for long long support in printf... " >&6; }
13458 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
13461 if test "$cross_compiling" = yes; then :
13462 gdb_cv_printf_has_long_long=no
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13466 $ac_includes_default
13472 l = (l << 16) + 0x0123;
13473 l = (l << 16) + 0x4567;
13474 l = (l << 16) + 0x89ab;
13475 l = (l << 16) + 0xcdef;
13476 sprintf (buf, "0x%016llx", l);
13477 return (strcmp ("0x0123456789abcdef", buf));
13482 if ac_fn_c_try_run "$LINENO"; then :
13483 gdb_cv_printf_has_long_long=yes
13485 gdb_cv_printf_has_long_long=no
13487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13488 conftest.$ac_objext conftest.beam conftest.$ac_ext
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13493 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13494 if test $gdb_cv_printf_has_long_long = yes; then
13496 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13500 # Check if the compiler and runtime support printing decfloats.
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13503 $as_echo_n "checking for decfloat support in printf... " >&6; }
13504 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13505 $as_echo_n "(cached) " >&6
13507 if test "$cross_compiling" = yes; then :
13508 gdb_cv_printf_has_decfloat=no
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 $ac_includes_default
13517 _Decimal32 d32 = 1.2345df;
13518 _Decimal64 d64 = 1.2345dd;
13519 _Decimal128 d128 = 1.2345dl;
13520 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13521 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13526 if ac_fn_c_try_run "$LINENO"; then :
13527 gdb_cv_printf_has_decfloat=yes
13529 gdb_cv_printf_has_decfloat=no
13531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13532 conftest.$ac_objext conftest.beam conftest.$ac_ext
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13537 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13538 if test $gdb_cv_printf_has_decfloat = yes; then
13540 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13544 # Check if the compiler supports the `long double' type. We can't use
13545 # AC_C_LONG_DOUBLE because that one does additional checks on the
13546 # constants defined in <float.h> that fail on some systems,
13547 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13550 $as_echo_n "checking for long double support in compiler... " >&6; }
13551 if test "${gdb_cv_c_long_double+set}" = set; then :
13552 $as_echo_n "(cached) " >&6
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13558 if ac_fn_c_try_compile "$LINENO"; then :
13559 gdb_cv_c_long_double=yes
13561 gdb_cv_c_long_double=no
13563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13566 $as_echo "$gdb_cv_c_long_double" >&6; }
13567 if test $gdb_cv_c_long_double = yes; then
13569 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13573 # Check if the compiler and runtime support printing long doubles.
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13576 $as_echo_n "checking for long double support in printf... " >&6; }
13577 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
13580 if test "$cross_compiling" = yes; then :
13581 gdb_cv_printf_has_long_double=no
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 $ac_includes_default
13590 long double f = 3.141592653;
13591 sprintf (buf, "%Lg", f);
13592 return (strncmp ("3.14159", buf, 7));
13597 if ac_fn_c_try_run "$LINENO"; then :
13598 gdb_cv_printf_has_long_double=yes
13600 gdb_cv_printf_has_long_double=no
13602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13603 conftest.$ac_objext conftest.beam conftest.$ac_ext
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13608 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13609 if test $gdb_cv_printf_has_long_double = yes; then
13611 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13615 # Check if the compiler and runtime support scanning long doubles.
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13618 $as_echo_n "checking for long double support in scanf... " >&6; }
13619 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13620 $as_echo_n "(cached) " >&6
13622 if test "$cross_compiling" = yes; then :
13623 gdb_cv_scanf_has_long_double=no
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13631 char *buf = "3.141592653";
13633 sscanf (buf, "%Lg", &f);
13634 return !(f > 3.14159 && f < 3.14160);
13639 if ac_fn_c_try_run "$LINENO"; then :
13640 gdb_cv_scanf_has_long_double=yes
13642 gdb_cv_scanf_has_long_double=no
13644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13645 conftest.$ac_objext conftest.beam conftest.$ac_ext
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13650 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13651 if test $gdb_cv_scanf_has_long_double = yes; then
13653 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13660 $as_echo_n "checking for -bbigtoc option... " >&6; }
13661 if test "${gdb_cv_bigtoc+set}" = set; then :
13662 $as_echo_n "(cached) " >&6
13665 SAVE_LDFLAGS=$LDFLAGS
13668 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
13669 *) gdb_cv_bigtoc=-bbigtoc ;;
13672 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13684 if ac_fn_c_try_link "$LINENO"; then :
13689 rm -f core conftest.err conftest.$ac_objext \
13690 conftest$ac_exeext conftest.$ac_ext
13691 LDFLAGS="${SAVE_LDFLAGS}"
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13695 $as_echo "$gdb_cv_bigtoc" >&6; }
13696 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
13701 $as_echo_n "checking for the dynamic export flag... " >&6; }
13703 if test "${gdb_native}" = yes; then
13704 # The dynamically loaded libthread_db needs access to symbols in the gdb
13705 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
13706 # may not be supported there.
13707 old_LDFLAGS="$LDFLAGS"
13708 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
13709 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
13710 LDFLAGS="$LDFLAGS $RDYNAMIC"
13711 if test "${have_libpython}" = no; then
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13723 if ac_fn_c_try_link "$LINENO"; then :
13726 rm -f core conftest.err conftest.$ac_objext \
13727 conftest$ac_exeext conftest.$ac_ext
13729 # Workaround http://bugs.python.org/issue4434 where static
13730 # libpythonX.Y.a would get its symbols required for
13731 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
13732 # Problem does not happen for the recommended libpythonX.Y.so linkage.
13734 # Note the workaround for Python
13735 # http://bugs.python.org/issue10112 earlier has removed
13736 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
13737 # here too, as otherwise it'd make this -Wl,--dynamic-list test
13739 old_CFLAGS="$CFLAGS"
13740 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
13742 LIBS="$LIBS $PYTHON_LIBS"
13743 old_CPPFLAGS="$CPPFLAGS"
13744 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
13745 if test "$cross_compiling" = yes; then :
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 #include "Python.h"
13756 err = PyRun_SimpleString ("import itertools\n");
13758 return err == 0 ? 0 : 1;
13763 if ac_fn_c_try_run "$LINENO"; then :
13766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13767 conftest.$ac_objext conftest.beam conftest.$ac_ext
13771 CFLAGS="$old_CFLAGS"
13772 CPPFLAGS="$old_CPPFLAGS"
13774 LDFLAGS="$old_LDFLAGS"
13776 if $dynamic_list; then
13777 found="-Wl,--dynamic-list"
13778 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
13781 RDYNAMIC="-rdynamic"
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13785 $as_echo "$found" >&6; }
13788 if test ${build} = ${host} -a ${host} = ${target} ; then
13791 # See if thread_db library is around for Solaris thread debugging.
13792 # Note that we must explicitly test for version 1 of the library
13793 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13796 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13797 if test -f /usr/lib/libthread_db.so.1 ; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13799 $as_echo "yes" >&6; }
13801 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13803 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
13804 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13806 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13807 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13808 $as_echo_n "(cached) " >&6
13810 ac_check_lib_save_LIBS=$LIBS
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13815 /* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13830 if ac_fn_c_try_link "$LINENO"; then :
13831 ac_cv_lib_dl_dlopen=yes
13833 ac_cv_lib_dl_dlopen=no
13835 rm -f core conftest.err conftest.$ac_objext \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13840 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13841 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13842 cat >>confdefs.h <<_ACEOF
13843 #define HAVE_LIBDL 1
13850 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
13851 # Sun randomly tweaked the prototypes in <proc_service.h>
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13854 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13855 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13856 $as_echo_n "(cached) " >&6
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13862 #include <proc_service.h>
13863 ps_err_e ps_pdwrite
13864 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13874 if ac_fn_c_try_compile "$LINENO"; then :
13875 gdb_cv_proc_service_is_old=no
13877 gdb_cv_proc_service_is_old=yes
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13884 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13885 if test $gdb_cv_proc_service_is_old = yes; then
13887 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 $as_echo "no" >&6; }
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13897 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13898 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13899 $as_echo_n "(cached) " >&6
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 #include <sys/pthdebug.h>
13907 #ifndef PTHDB_VERSION_3
13914 if ac_fn_c_try_compile "$LINENO"; then :
13915 gdb_cv_have_aix_thread_debug=yes
13917 gdb_cv_have_aix_thread_debug=no
13919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13923 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13924 if test $gdb_cv_have_aix_thread_debug = yes; then
13925 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
13926 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
13927 LIBS="$LIBS -lpthdebug"
13929 # Older versions of AIX do not provide the declaration for
13930 # the getthrds function (it appears that it was introduced
13932 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13934 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
13940 cat >>confdefs.h <<_ACEOF
13941 #define HAVE_DECL_GETTHRDS $ac_have_decl
13950 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13952 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13953 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13958 #include <thread_db.h>
13962 int i = TD_NOTALLOC;
13967 if ac_fn_c_try_compile "$LINENO"; then :
13968 gdb_cv_thread_db_h_has_td_notalloc=yes
13970 gdb_cv_thread_db_h_has_td_notalloc=no
13973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13977 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13979 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13980 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13981 $as_echo_n "(cached) " >&6
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985 #include <thread_db.h>
13989 int i = TD_VERSION;
13994 if ac_fn_c_try_compile "$LINENO"; then :
13995 gdb_cv_thread_db_h_has_td_version=yes
13997 gdb_cv_thread_db_h_has_td_version=no
14000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14004 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14006 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14007 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14008 $as_echo_n "(cached) " >&6
14010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h. */
14012 #include <thread_db.h>
14021 if ac_fn_c_try_compile "$LINENO"; then :
14022 gdb_cv_thread_db_h_has_td_notls=yes
14024 gdb_cv_thread_db_h_has_td_notls=no
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14031 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14033 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14035 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14038 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14040 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14043 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14045 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14049 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14051 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14057 cat >>confdefs.h <<_ACEOF
14058 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14062 if test "$cross_compiling" = yes; then :
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14065 #include <sys/personality.h>
14070 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14071 # define ADDR_NO_RANDOMIZE 0x0040000
14073 /* Test the flag could be set and stays set. */
14074 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14075 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14081 if ac_fn_c_try_link "$LINENO"; then :
14082 have_personality=true
14084 have_personality=false
14086 rm -f core conftest.err conftest.$ac_objext \
14087 conftest$ac_exeext conftest.$ac_ext
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 #include <sys/personality.h>
14096 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14097 # define ADDR_NO_RANDOMIZE 0x0040000
14099 /* Test the flag could be set and stays set. */
14100 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14101 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14107 if ac_fn_c_try_run "$LINENO"; then :
14108 have_personality=true
14110 have_personality=false
14112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14113 conftest.$ac_objext conftest.beam conftest.$ac_ext
14116 if $have_personality
14119 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14132 cat >>confdefs.h <<_ACEOF
14133 #define GDBINIT "$gdbinit"
14138 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
14139 # except that the argument to --with-sysroot is optional.
14140 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
14141 if test "x$with_sysroot" = xyes; then
14142 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
14145 # Check whether --with-sysroot was given.
14146 if test "${with_sysroot+set}" = set; then :
14147 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
14149 TARGET_SYSTEM_ROOT=
14153 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14154 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14155 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
14156 ac_define_dir=`eval echo $ac_define_dir`
14158 cat >>confdefs.h <<_ACEOF
14159 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
14165 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14166 if test "x$prefix" = xNONE; then
14167 test_prefix=/usr/local
14169 test_prefix=$prefix
14172 test_prefix=$exec_prefix
14175 case ${ac_define_dir} in
14176 "${test_prefix}"|"${test_prefix}/"*|\
14177 '${exec_prefix}'|'${exec_prefix}/'*)
14182 cat >>confdefs.h <<_ACEOF
14183 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
14190 # Check whether --with-system-gdbinit was given.
14191 if test "${with_system_gdbinit+set}" = set; then :
14192 withval=$with_system_gdbinit;
14193 SYSTEM_GDBINIT=$withval
14199 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14201 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14202 ac_define_dir=`eval echo $ac_define_dir`
14204 cat >>confdefs.h <<_ACEOF
14205 #define SYSTEM_GDBINIT "$ac_define_dir"
14211 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14212 if test "x$prefix" = xNONE; then
14213 test_prefix=/usr/local
14215 test_prefix=$prefix
14218 test_prefix=$exec_prefix
14221 case ${ac_define_dir} in
14222 "${test_prefix}"|"${test_prefix}/"*|\
14223 '${exec_prefix}'|'${exec_prefix}/'*)
14228 cat >>confdefs.h <<_ACEOF
14229 #define SYSTEM_GDBINIT_RELOCATABLE $value
14237 # Check whether --enable-werror was given.
14238 if test "${enable_werror+set}" = set; then :
14239 enableval=$enable_werror; case "${enableval}" in
14240 yes | y) ERROR_ON_WARNING="yes" ;;
14241 no | n) ERROR_ON_WARNING="no" ;;
14242 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14247 # Enable -Werror by default when using gcc. Turn it off for releases.
14248 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
14249 ERROR_ON_WARNING=yes
14253 if test "${ERROR_ON_WARNING}" = yes ; then
14254 WERROR_CFLAGS="-Werror"
14257 # These options work in either C or C++ modes.
14258 build_warnings="-Wall -Wpointer-arith \
14259 -Wno-unused -Wunused-value -Wunused-function \
14260 -Wno-switch -Wno-char-subscripts \
14261 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable"
14263 # Now add in C and C++ specific options, depending on mode.
14264 if test "$enable_build_with_cxx" = "yes"; then
14265 build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \
14268 build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \
14269 -Wdeclaration-after-statement -Wmissing-parameter-type \
14270 -Wold-style-declaration -Wold-style-definition"
14273 # Enable -Wno-format by default when using gcc on mingw since many
14274 # GCC versions complain about %I64.
14276 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14277 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14280 # Check whether --enable-build-warnings was given.
14281 if test "${enable_build_warnings+set}" = set; then :
14282 enableval=$enable_build_warnings; case "${enableval}" in
14284 no) build_warnings="-w";;
14285 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14286 build_warnings="${build_warnings} ${t}";;
14287 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14288 build_warnings="${t} ${build_warnings}";;
14289 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14291 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14292 echo "Setting compiler warning flags = $build_warnings" 6>&1
14295 # Check whether --enable-gdb-build-warnings was given.
14296 if test "${enable_gdb_build_warnings+set}" = set; then :
14297 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14299 no) build_warnings="-w";;
14300 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14301 build_warnings="${build_warnings} ${t}";;
14302 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14303 build_warnings="${t} ${build_warnings}";;
14304 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14306 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14307 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14311 # The set of warnings supported by a C++ compiler is not the same as
14312 # of the C compiler.
14313 if test "$enable_build_with_cxx" = "yes"; then
14315 ac_cpp='$CXXCPP $CPPFLAGS'
14316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14323 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14326 $as_echo_n "checking compiler warning flags... " >&6; }
14327 # Separate out the -Werror flag as some files just cannot be
14328 # compiled with it enabled.
14329 for w in ${build_warnings}; do
14330 # GCC does not complain about -Wno-unknown-warning. Invert
14331 # and test -Wunknown-warning instead.
14334 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
14340 -Werr*) WERROR_CFLAGS=-Werror ;;
14342 # Check whether GCC accepts it.
14343 saved_CFLAGS="$CFLAGS"
14344 CFLAGS="$CFLAGS $wtest"
14345 saved_CXXFLAGS="$CXXFLAGS"
14346 CXXFLAGS="$CXXFLAGS $wtest"
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14358 if ac_fn_cxx_try_compile "$LINENO"; then :
14359 WARN_CFLAGS="${WARN_CFLAGS} $w"
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 CFLAGS="$saved_CFLAGS"
14363 CXXFLAGS="$saved_CXXFLAGS"
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14367 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14372 if test "$enable_build_with_cxx" = "yes"; then
14374 ac_cpp='$CPP $CPPFLAGS'
14375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14382 # In the Cygwin environment, we need some additional flags.
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14384 $as_echo_n "checking for cygwin... " >&6; }
14385 if test "${gdb_cv_os_cygwin+set}" = set; then :
14386 $as_echo_n "(cached) " >&6
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14391 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14396 $EGREP "^lose$" >/dev/null 2>&1; then :
14397 gdb_cv_os_cygwin=yes
14399 gdb_cv_os_cygwin=no
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14405 $as_echo "$gdb_cv_os_cygwin" >&6; }
14408 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14410 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14411 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14412 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14416 # libreadline needs libuser32.a in a cygwin environment
14418 if test x$gdb_cv_os_cygwin = xyes; then
14419 WIN32LIBS="-luser32"
14420 case "${target}" in
14421 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14426 # The ser-tcp.c module requires sockets.
14430 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14432 WIN32LIBS="$WIN32LIBS -lws2_32"
14437 # Add ELF support to GDB, but only if BFD includes ELF support.
14440 OLD_LDFLAGS=$LDFLAGS
14442 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14443 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14444 # always want our bfd.
14445 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14446 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14447 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14448 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14449 LIBS="-lbfd -liberty -lz $intl $LIBS"
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14451 $as_echo_n "checking for ELF support in BFD... " >&6; }
14452 if test "${gdb_cv_var_elf+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457 #include <stdlib.h>
14459 #include "elf-bfd.h"
14464 return bfd_get_elf_phdr_upper_bound (NULL);
14469 if ac_fn_c_try_link "$LINENO"; then :
14474 rm -f core conftest.err conftest.$ac_objext \
14475 conftest$ac_exeext conftest.$ac_ext
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14478 $as_echo "$gdb_cv_var_elf" >&6; }
14480 LDFLAGS=$OLD_LDFLAGS
14482 if test $gdb_cv_var_elf = yes; then
14483 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
14485 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14487 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14488 if test "$plugins" = "yes"; then
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14490 $as_echo_n "checking for library containing dlopen... " >&6; }
14491 if test "${ac_cv_search_dlopen+set}" = set; then :
14492 $as_echo_n "(cached) " >&6
14494 ac_func_search_save_LIBS=$LIBS
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14498 /* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
14513 for ac_lib in '' dl; do
14514 if test -z "$ac_lib"; then
14515 ac_res="none required"
14518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14520 if ac_fn_c_try_link "$LINENO"; then :
14521 ac_cv_search_dlopen=$ac_res
14523 rm -f core conftest.err conftest.$ac_objext \
14525 if test "${ac_cv_search_dlopen+set}" = set; then :
14529 if test "${ac_cv_search_dlopen+set}" = set; then :
14532 ac_cv_search_dlopen=no
14534 rm conftest.$ac_ext
14535 LIBS=$ac_func_search_save_LIBS
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14538 $as_echo "$ac_cv_search_dlopen" >&6; }
14539 ac_res=$ac_cv_search_dlopen
14540 if test "$ac_res" != no; then :
14541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14548 # Add macho support to GDB, but only if BFD includes it.
14551 OLD_LDFLAGS=$LDFLAGS
14553 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14554 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14555 # always want our bfd.
14556 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14557 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14558 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14559 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14560 LIBS="-lbfd -liberty -lz $intl $LIBS"
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
14562 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
14563 if test "${gdb_cv_var_macho+set}" = set; then :
14564 $as_echo_n "(cached) " >&6
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 #include <stdlib.h>
14570 #include "mach-o.h"
14575 return bfd_mach_o_lookup_command (NULL, 0, NULL);
14580 if ac_fn_c_try_link "$LINENO"; then :
14581 gdb_cv_var_macho=yes
14583 gdb_cv_var_macho=no
14585 rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
14589 $as_echo "$gdb_cv_var_macho" >&6; }
14591 LDFLAGS=$OLD_LDFLAGS
14593 if test $gdb_cv_var_macho = yes; then
14594 CONFIG_OBS="$CONFIG_OBS machoread.o"
14597 # Add any host-specific objects to GDB.
14598 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14600 # If building on ELF, look for lzma support for embedded compressed debug info.
14601 if test $gdb_cv_var_elf = yes; then
14603 # Check whether --with-lzma was given.
14604 if test "${with_lzma+set}" = set; then :
14605 withval=$with_lzma;
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
14611 $as_echo_n "checking whether to use lzma... " >&6; }
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
14613 $as_echo "$with_lzma" >&6; }
14615 if test "${with_lzma}" != no; then
14626 acl_save_prefix="$prefix"
14627 prefix="$acl_final_prefix"
14628 acl_save_exec_prefix="$exec_prefix"
14629 exec_prefix="$acl_final_exec_prefix"
14631 eval additional_includedir=\"$includedir\"
14632 eval additional_libdir=\"$libdir\"
14634 exec_prefix="$acl_save_exec_prefix"
14635 prefix="$acl_save_prefix"
14638 # Check whether --with-liblzma-prefix was given.
14639 if test "${with_liblzma_prefix+set}" = set; then :
14640 withval=$with_liblzma_prefix;
14641 if test "X$withval" = "Xno"; then
14644 if test "X$withval" = "X"; then
14646 acl_save_prefix="$prefix"
14647 prefix="$acl_final_prefix"
14648 acl_save_exec_prefix="$exec_prefix"
14649 exec_prefix="$acl_final_exec_prefix"
14651 eval additional_includedir=\"$includedir\"
14652 eval additional_libdir=\"$libdir\"
14654 exec_prefix="$acl_save_exec_prefix"
14655 prefix="$acl_save_prefix"
14658 additional_includedir="$withval/include"
14659 additional_libdir="$withval/lib"
14670 names_already_handled=
14671 names_next_round='lzma '
14672 while test -n "$names_next_round"; do
14673 names_this_round="$names_next_round"
14675 for name in $names_this_round; do
14677 for n in $names_already_handled; do
14678 if test "$n" = "$name"; then
14679 already_handled=yes
14683 if test -z "$already_handled"; then
14684 names_already_handled="$names_already_handled $name"
14685 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14686 eval value=\"\$HAVE_LIB$uppername\"
14687 if test -n "$value"; then
14688 if test "$value" = yes; then
14689 eval value=\"\$LIB$uppername\"
14690 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
14691 eval value=\"\$LTLIB$uppername\"
14692 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
14701 if test $use_additional = yes; then
14702 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14703 found_dir="$additional_libdir"
14704 found_so="$additional_libdir/lib$name.$shlibext"
14705 if test -f "$additional_libdir/lib$name.la"; then
14706 found_la="$additional_libdir/lib$name.la"
14709 if test -f "$additional_libdir/lib$name.$libext"; then
14710 found_dir="$additional_libdir"
14711 found_a="$additional_libdir/lib$name.$libext"
14712 if test -f "$additional_libdir/lib$name.la"; then
14713 found_la="$additional_libdir/lib$name.la"
14718 if test "X$found_dir" = "X"; then
14719 for x in $LDFLAGS $LTLIBLZMA; do
14721 acl_save_prefix="$prefix"
14722 prefix="$acl_final_prefix"
14723 acl_save_exec_prefix="$exec_prefix"
14724 exec_prefix="$acl_final_exec_prefix"
14726 exec_prefix="$acl_save_exec_prefix"
14727 prefix="$acl_save_prefix"
14731 dir=`echo "X$x" | sed -e 's/^X-L//'`
14732 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14734 found_so="$dir/lib$name.$shlibext"
14735 if test -f "$dir/lib$name.la"; then
14736 found_la="$dir/lib$name.la"
14739 if test -f "$dir/lib$name.$libext"; then
14741 found_a="$dir/lib$name.$libext"
14742 if test -f "$dir/lib$name.la"; then
14743 found_la="$dir/lib$name.la"
14749 if test "X$found_dir" != "X"; then
14754 if test "X$found_dir" != "X"; then
14755 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
14756 if test "X$found_so" != "X"; then
14757 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14758 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14761 for x in $ltrpathdirs; do
14762 if test "X$x" = "X$found_dir"; then
14767 if test -z "$haveit"; then
14768 ltrpathdirs="$ltrpathdirs $found_dir"
14770 if test "$hardcode_direct" = yes; then
14771 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14773 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14774 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14776 for x in $rpathdirs; do
14777 if test "X$x" = "X$found_dir"; then
14782 if test -z "$haveit"; then
14783 rpathdirs="$rpathdirs $found_dir"
14787 for x in $LDFLAGS $LIBLZMA; do
14789 acl_save_prefix="$prefix"
14790 prefix="$acl_final_prefix"
14791 acl_save_exec_prefix="$exec_prefix"
14792 exec_prefix="$acl_final_exec_prefix"
14794 exec_prefix="$acl_save_exec_prefix"
14795 prefix="$acl_save_prefix"
14797 if test "X$x" = "X-L$found_dir"; then
14802 if test -z "$haveit"; then
14803 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14805 if test "$hardcode_minus_L" != no; then
14806 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14808 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14814 if test "X$found_a" != "X"; then
14815 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
14817 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14820 additional_includedir=
14821 case "$found_dir" in
14823 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14824 additional_includedir="$basedir/include"
14827 if test "X$additional_includedir" != "X"; then
14828 if test "X$additional_includedir" != "X/usr/include"; then
14830 if test "X$additional_includedir" = "X/usr/local/include"; then
14831 if test -n "$GCC"; then
14833 linux*) haveit=yes;;
14837 if test -z "$haveit"; then
14838 for x in $CPPFLAGS $INCLZMA; do
14840 acl_save_prefix="$prefix"
14841 prefix="$acl_final_prefix"
14842 acl_save_exec_prefix="$exec_prefix"
14843 exec_prefix="$acl_final_exec_prefix"
14845 exec_prefix="$acl_save_exec_prefix"
14846 prefix="$acl_save_prefix"
14848 if test "X$x" = "X-I$additional_includedir"; then
14853 if test -z "$haveit"; then
14854 if test -d "$additional_includedir"; then
14855 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14861 if test -n "$found_la"; then
14862 save_libdir="$libdir"
14863 case "$found_la" in
14864 */* | *\\*) . "$found_la" ;;
14865 *) . "./$found_la" ;;
14867 libdir="$save_libdir"
14868 for dep in $dependency_libs; do
14871 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14872 if test "X$additional_libdir" != "X/usr/lib"; then
14874 if test "X$additional_libdir" = "X/usr/local/lib"; then
14875 if test -n "$GCC"; then
14877 linux*) haveit=yes;;
14881 if test -z "$haveit"; then
14883 for x in $LDFLAGS $LIBLZMA; do
14885 acl_save_prefix="$prefix"
14886 prefix="$acl_final_prefix"
14887 acl_save_exec_prefix="$exec_prefix"
14888 exec_prefix="$acl_final_exec_prefix"
14890 exec_prefix="$acl_save_exec_prefix"
14891 prefix="$acl_save_prefix"
14893 if test "X$x" = "X-L$additional_libdir"; then
14898 if test -z "$haveit"; then
14899 if test -d "$additional_libdir"; then
14900 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14904 for x in $LDFLAGS $LTLIBLZMA; do
14906 acl_save_prefix="$prefix"
14907 prefix="$acl_final_prefix"
14908 acl_save_exec_prefix="$exec_prefix"
14909 exec_prefix="$acl_final_exec_prefix"
14911 exec_prefix="$acl_save_exec_prefix"
14912 prefix="$acl_save_prefix"
14914 if test "X$x" = "X-L$additional_libdir"; then
14919 if test -z "$haveit"; then
14920 if test -d "$additional_libdir"; then
14921 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14928 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14929 if test "$enable_rpath" != no; then
14931 for x in $rpathdirs; do
14932 if test "X$x" = "X$dir"; then
14937 if test -z "$haveit"; then
14938 rpathdirs="$rpathdirs $dir"
14941 for x in $ltrpathdirs; do
14942 if test "X$x" = "X$dir"; then
14947 if test -z "$haveit"; then
14948 ltrpathdirs="$ltrpathdirs $dir"
14953 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14956 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14959 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
14960 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14966 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14967 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14973 if test "X$rpathdirs" != "X"; then
14974 if test -n "$hardcode_libdir_separator"; then
14976 for found_dir in $rpathdirs; do
14977 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14979 acl_save_libdir="$libdir"
14981 eval flag=\"$hardcode_libdir_flag_spec\"
14982 libdir="$acl_save_libdir"
14983 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14985 for found_dir in $rpathdirs; do
14986 acl_save_libdir="$libdir"
14987 libdir="$found_dir"
14988 eval flag=\"$hardcode_libdir_flag_spec\"
14989 libdir="$acl_save_libdir"
14990 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14994 if test "X$ltrpathdirs" != "X"; then
14995 for found_dir in $ltrpathdirs; do
14996 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
15001 ac_save_CPPFLAGS="$CPPFLAGS"
15003 for element in $INCLZMA; do
15005 for x in $CPPFLAGS; do
15007 acl_save_prefix="$prefix"
15008 prefix="$acl_final_prefix"
15009 acl_save_exec_prefix="$exec_prefix"
15010 exec_prefix="$acl_final_exec_prefix"
15012 exec_prefix="$acl_save_exec_prefix"
15013 prefix="$acl_save_prefix"
15015 if test "X$x" = "X$element"; then
15020 if test -z "$haveit"; then
15021 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
15027 $as_echo_n "checking for liblzma... " >&6; }
15028 if test "${ac_cv_liblzma+set}" = set; then :
15029 $as_echo_n "(cached) " >&6
15032 ac_save_LIBS="$LIBS"
15033 LIBS="$LIBS $LIBLZMA"
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15040 lzma_index_iter iter;
15041 lzma_index_iter_init (&iter, 0);
15042 lzma_mf_is_supported (LZMA_MF_HC3);
15047 if ac_fn_c_try_link "$LINENO"; then :
15052 rm -f core conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext conftest.$ac_ext
15054 LIBS="$ac_save_LIBS"
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
15058 $as_echo "$ac_cv_liblzma" >&6; }
15059 if test "$ac_cv_liblzma" = yes; then
15062 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
15065 $as_echo_n "checking how to link with liblzma... " >&6; }
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
15067 $as_echo "$LIBLZMA" >&6; }
15070 CPPFLAGS="$ac_save_CPPFLAGS"
15080 if test "$HAVE_LIBLZMA" != yes; then
15081 if test "$with_lzma" = yes; then
15082 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
15088 LIBGUI="../libgui/src/libgui.a"
15089 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15098 *-*-cygwin* | *-*-mingw* )
15107 if test "${enable_gdbtk}" = "yes"; then
15109 # Gdbtk must have an absolute path to srcdir in order to run
15110 # properly when not installed.
15113 GDBTK_SRC_DIR=`pwd`
15118 # Ok, lets find the tcl configuration
15119 # First, look for one uninstalled.
15120 # the alternative search directory is invoked by --with-tcl
15123 if test x"${no_tcl}" = x ; then
15124 # we reset no_tcl in case something fails here
15127 # Check whether --with-tcl was given.
15128 if test "${with_tcl+set}" = set; then :
15129 withval=$with_tcl; with_tclconfig=${withval}
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15133 $as_echo_n "checking for Tcl configuration... " >&6; }
15134 if test "${ac_cv_c_tclconfig+set}" = set; then :
15135 $as_echo_n "(cached) " >&6
15139 # First check to see if --with-tcl was specified.
15141 *-*-cygwin*) platDir="win" ;;
15142 *) platDir="unix" ;;
15144 if test x"${with_tclconfig}" != x ; then
15145 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15146 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15148 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15152 # then check for a private Tcl installation
15153 if test x"${ac_cv_c_tclconfig}" = x ; then
15156 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15157 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15158 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15160 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15161 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15162 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15164 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15165 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15166 `ls -dr ../../../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)`
15174 # on Darwin, check in Framework installation locations
15175 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15176 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15177 `ls -d /Library/Frameworks 2>/dev/null` \
15178 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15179 `ls -d /System/Library/Frameworks 2>/dev/null` \
15181 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15182 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15188 # check in a few common install locations
15189 if test x"${ac_cv_c_tclconfig}" = x ; then
15190 for i in `ls -d ${libdir} 2>/dev/null` \
15191 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15192 `ls -d ${prefix}/lib 2>/dev/null` \
15193 `ls -d /usr/local/lib 2>/dev/null` \
15194 `ls -d /usr/contrib/lib 2>/dev/null` \
15195 `ls -d /usr/lib 2>/dev/null` \
15197 if test -f "$i/tclConfig.sh" ; then
15198 ac_cv_c_tclconfig=`(cd $i; pwd)`
15204 # check in a few other private locations
15205 if test x"${ac_cv_c_tclconfig}" = x ; then
15208 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15209 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15210 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15211 if test -f "$i/$platDir/tclConfig.sh" ; then
15212 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15221 if test x"${ac_cv_c_tclconfig}" = x ; then
15222 TCL_BIN_DIR="# no Tcl configs found"
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15224 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15227 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15229 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15234 # If $no_tk is nonempty, then we can't do Tk, and there is no
15235 # point to doing Tcl.
15238 # Ok, lets find the tk configuration
15239 # First, look for one uninstalled.
15240 # the alternative search directory is invoked by --with-tk
15243 if test x"${no_tk}" = x ; then
15244 # we reset no_tk in case something fails here
15247 # Check whether --with-tk was given.
15248 if test "${with_tk+set}" = set; then :
15249 withval=$with_tk; with_tkconfig=${withval}
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15253 $as_echo_n "checking for Tk configuration... " >&6; }
15254 if test "${ac_cv_c_tkconfig+set}" = set; then :
15255 $as_echo_n "(cached) " >&6
15259 # First check to see if --with-tkconfig was specified.
15260 if test x"${with_tkconfig}" != x ; then
15261 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15262 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15264 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15268 # then check for a private Tk library
15270 *-*-cygwin*) platDir="win" ;;
15271 *) platDir="unix" ;;
15273 if test x"${ac_cv_c_tkconfig}" = x ; then
15276 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15277 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15278 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15280 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15281 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15282 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15284 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15285 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15286 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15287 if test -f "$i/$platDir/tkConfig.sh" ; then
15288 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15294 # on Darwin, check in Framework installation locations
15295 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15296 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15297 `ls -d /Library/Frameworks 2>/dev/null` \
15298 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15299 `ls -d /System/Library/Frameworks 2>/dev/null` \
15301 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15302 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15308 # check in a few common install locations
15309 if test x"${ac_cv_c_tkconfig}" = x ; then
15310 for i in `ls -d ${libdir} 2>/dev/null` \
15311 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15312 `ls -d ${prefix}/lib 2>/dev/null` \
15313 `ls -d /usr/local/lib 2>/dev/null` \
15314 `ls -d /usr/contrib/lib 2>/dev/null` \
15315 `ls -d /usr/lib 2>/dev/null` \
15317 if test -f "$i/tkConfig.sh" ; then
15318 ac_cv_c_tkconfig=`(cd $i; pwd)`
15323 # check in a few other private locations
15324 if test x"${ac_cv_c_tkconfig}" = x ; then
15327 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15328 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15329 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15330 if test -f "$i/$platDir/tkConfig.sh" ; then
15331 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15340 if test x"${ac_cv_c_tkconfig}" = x ; then
15341 TK_BIN_DIR="# no Tk configs found"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15343 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15346 TK_BIN_DIR=${ac_cv_c_tkconfig}
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15348 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15353 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15356 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15358 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15360 $as_echo "loading" >&6; }
15361 . ${TCL_BIN_DIR}/tclConfig.sh
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15364 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15367 # eval is required to do the TCL_DBGX substitution
15368 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15369 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15371 # If the TCL_BIN_DIR is the build directory (not the install directory),
15372 # then set the common variable name to the value of the build variables.
15373 # For example, the variable TCL_LIB_SPEC will be set to the value
15374 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15375 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15376 # installed and uninstalled version of Tcl.
15377 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15378 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15379 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15380 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15381 elif test "`uname -s`" = "Darwin"; then
15382 # If Tcl was built as a framework, attempt to use the libraries
15383 # from the framework at the given location so that linking works
15384 # against Tcl.framework installed in an arbitrary location.
15385 case ${TCL_DEFS} in
15387 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15388 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15389 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15390 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15391 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15396 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15397 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15398 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15404 # eval is required to do the TCL_DBGX substitution
15405 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15406 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15407 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15408 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15424 # Check for in-tree tcl
15431 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15435 # Find Tcl private headers
15436 if test x"${intree}" = xno; then
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15439 $as_echo_n "checking for Tcl private headers... " >&6; }
15441 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15442 if test -f ${dir}/tclInt.h ; then
15446 if test x"${private_dir}" = x; then
15447 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15449 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15451 $as_echo "${private_dir}" >&6; }
15454 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15455 TCL_LIBRARY="${TCL_LIB_SPEC}"
15458 # If building tcl in the same src tree, private headers
15459 # are not needed, but we need to be sure to use the right
15461 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15462 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15463 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15471 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15473 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15475 $as_echo "loading" >&6; }
15476 . ${TK_BIN_DIR}/tkConfig.sh
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15479 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15482 # eval is required to do the TK_DBGX substitution
15483 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15484 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15486 # If the TK_BIN_DIR is the build directory (not the install directory),
15487 # then set the common variable name to the value of the build variables.
15488 # For example, the variable TK_LIB_SPEC will be set to the value
15489 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15490 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15491 # installed and uninstalled version of Tcl.
15492 if test -f "${TK_BIN_DIR}/Makefile" ; then
15493 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15494 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15495 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15496 elif test "`uname -s`" = "Darwin"; then
15497 # If Tk was built as a framework, attempt to use the libraries
15498 # from the framework at the given location so that linking works
15499 # against Tk.framework installed in an arbitrary location.
15502 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15503 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15504 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15505 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15506 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15511 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15512 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15513 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15519 # eval is required to do the TK_DBGX substitution
15520 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15521 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15522 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15523 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15538 # Check for in-tree Tk
15540 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15544 # Find Tk private headers
15545 if test x"${intree}" = xno; then
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15548 $as_echo_n "checking for Tk private headers... " >&6; }
15550 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15551 if test -f ${dir}/tkInt.h; then
15555 if test x"${private_dir}" = x; then
15556 as_fn_error "could not find Tk private headers" "$LINENO" 5
15558 TK_PRIVATE_INCLUDE="-I${private_dir}"
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15560 $as_echo "${private_dir}" >&6; }
15563 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15564 TK_LIBRARY=${TK_LIB_SPEC}
15567 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15568 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15569 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15576 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15578 # Include some libraries that Tcl and Tk want.
15579 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15580 # Yes, the ordering seems wrong here. But it isn't.
15581 # TK_LIBS is the list of libraries that need to be linked
15582 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15583 # were in LIBS then any link tests after this point would
15584 # try to include things like `$(LIBGUI)', which wouldn't work.
15585 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15587 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15588 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15589 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15590 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15591 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15592 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15593 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15595 if test x$gdb_cv_os_cygwin = xyes; then
15596 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15597 WIN32LDAPP="-Wl,--subsystem,console"
15598 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15601 subdirs="$subdirs gdbtk"
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15614 $as_echo_n "checking for X... " >&6; }
15617 # Check whether --with-x was given.
15618 if test "${with_x+set}" = set; then :
15622 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15623 if test "x$with_x" = xno; then
15624 # The user explicitly disabled X.
15627 case $x_includes,$x_libraries in #(
15628 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15629 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15632 # One or both of the vars are not set, and there is no cached value.
15633 ac_x_includes=no ac_x_libraries=no
15634 rm -f -r conftest.dir
15635 if mkdir conftest.dir; then
15637 cat >Imakefile <<'_ACEOF'
15639 @echo incroot='${INCROOT}'
15641 @echo usrlibdir='${USRLIBDIR}'
15643 @echo libdir='${LIBDIR}'
15645 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15647 for ac_var in incroot usrlibdir libdir; do
15648 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15650 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15651 for ac_extension in a so sl dylib la dll; do
15652 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15653 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15654 ac_im_usrlibdir=$ac_im_libdir; break
15657 # Screen out bogus values from the imake configuration. They are
15658 # bogus both because they are the default anyway, and because
15659 # using them would break gcc on systems where it needs fixed includes.
15660 case $ac_im_incroot in
15661 /usr/include) ac_x_includes= ;;
15662 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15664 case $ac_im_usrlibdir in
15665 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15666 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15670 rm -f -r conftest.dir
15673 # Standard set of common directories for X headers.
15674 # Check X11 before X11Rn because it is often a symlink to the current release.
15688 /usr/local/X11/include
15689 /usr/local/X11R7/include
15690 /usr/local/X11R6/include
15691 /usr/local/X11R5/include
15692 /usr/local/X11R4/include
15694 /usr/local/include/X11
15695 /usr/local/include/X11R7
15696 /usr/local/include/X11R6
15697 /usr/local/include/X11R5
15698 /usr/local/include/X11R4
15702 /usr/XFree86/include/X11
15706 /usr/unsupported/include
15707 /usr/athena/include
15708 /usr/local/x11r5/include
15709 /usr/lpp/Xamples/include
15711 /usr/openwin/include
15712 /usr/openwin/share/include'
15714 if test "$ac_x_includes" = no; then
15715 # Guess where to find include files, by looking for Xlib.h.
15716 # First, try using that file with no special directory specified.
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15719 #include <X11/Xlib.h>
15721 if ac_fn_c_try_cpp "$LINENO"; then :
15722 # We can compile using X headers with no special include directory.
15725 for ac_dir in $ac_x_header_dirs; do
15726 if test -r "$ac_dir/X11/Xlib.h"; then
15727 ac_x_includes=$ac_dir
15732 rm -f conftest.err conftest.$ac_ext
15733 fi # $ac_x_includes = no
15735 if test "$ac_x_libraries" = no; then
15736 # Check for the libraries.
15737 # See if we find them without any special options.
15738 # Don't add to $LIBS permanently.
15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15743 #include <X11/Xlib.h>
15752 if ac_fn_c_try_link "$LINENO"; then :
15754 # We can link X programs with no special library path.
15758 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15760 # Don't even attempt the hair of trying to link an X program!
15761 for ac_extension in a so sl dylib la dll; do
15762 if test -r "$ac_dir/libX11.$ac_extension"; then
15763 ac_x_libraries=$ac_dir
15769 rm -f core conftest.err conftest.$ac_objext \
15770 conftest$ac_exeext conftest.$ac_ext
15771 fi # $ac_x_libraries = no
15773 case $ac_x_includes,$ac_x_libraries in #(
15774 no,* | *,no | *\'*)
15775 # Didn't find X, or a directory has "'" in its name.
15776 ac_cv_have_x="have_x=no";; #(
15778 # Record where we found X for the cache.
15779 ac_cv_have_x="have_x=yes\
15780 ac_x_includes='$ac_x_includes'\
15781 ac_x_libraries='$ac_x_libraries'"
15787 eval "$ac_cv_have_x"
15790 if test "$have_x" != yes; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15792 $as_echo "$have_x" >&6; }
15795 # If each of the values was on the command line, it overrides each guess.
15796 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15797 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15798 # Update the cache value to reflect the command line values.
15799 ac_cv_have_x="have_x=yes\
15800 ac_x_includes='$x_includes'\
15801 ac_x_libraries='$x_libraries'"
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15803 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15807 # Unlike the sim directory, whether a simulator is linked is controlled by
15808 # presence of a gdb_sim definition in the target configure.tgt entry.
15809 # This code just checks for a few cases where we'd like to ignore those
15810 # definitions, even when they're present in the '.mt' file. These cases
15811 # are when --disable-sim is specified, or if the simulator directory is
15812 # not part of the source tree.
15814 # Check whether --enable-sim was given.
15815 if test "${enable_sim+set}" = set; then :
15816 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15817 echo "enableval = ${enableval}";
15818 case "${enableval}" in
15819 yes) ignore_sim=false ;;
15820 no) ignore_sim=true ;;
15821 *) ignore_sim=false ;;
15828 if test ! -d "${srcdir}/../sim"; then
15834 if test "${ignore_sim}" = "false"; then
15835 if test x"${gdb_sim}" != x ; then
15837 SIM_OBS="remote-sim.o"
15839 $as_echo "#define WITH_SIM 1" >>confdefs.h
15842 # Some tdep code should only be compiled in when the ppc sim is
15843 # built. PR sim/13418.
15847 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
15867 # List of host floatformats.
15869 cat >>confdefs.h <<_ACEOF
15870 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15874 cat >>confdefs.h <<_ACEOF
15875 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15879 cat >>confdefs.h <<_ACEOF
15880 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15884 # target_subdir is used by the testsuite to find the target libraries.
15886 if test "${host}" != "${target}"; then
15887 target_subdir="${target_alias}/"
15892 if test "${gdb_native}" = "yes"; then
15893 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15894 if test ! -f ${host_makefile_frag}; then
15895 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15897 frags="$frags $host_makefile_frag"
15899 host_makefile_frag=/dev/null
15905 if test "${gdb_native}" = "yes"; then
15906 # We pick this up from the host configuration file (.mh) because we
15907 # do not have a native configuration Makefile fragment.
15908 nativefile=`sed -n '
15909 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15910 ' ${host_makefile_frag}`
15914 if test x"${gdb_osabi}" != x ; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define GDB_OSABI_DEFAULT $gdb_osabi
15922 # Enable multi-ice-gdb-server.
15923 # Check whether --enable-multi-ice was given.
15924 if test "${enable_multi_ice+set}" = set; then :
15925 enableval=$enable_multi_ice; case $enableval in
15928 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15932 if test "x$enable_multi_ice" = xyes; then
15933 subdirs="$subdirs multi-ice"
15937 # Check whether --enable-gdbserver was given.
15938 if test "${enable_gdbserver+set}" = set; then :
15939 enableval=$enable_gdbserver; case "${enableval}" in
15941 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15944 enable_gdbserver=auto
15948 # We only build gdbserver automatically in a native configuration, and
15949 # only if the user did not explicitly disable its build.
15950 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15952 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15953 if test "x$build_gdbserver" = xyes; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15955 $as_echo "yes" >&6; }
15956 subdirs="$subdirs gdbserver"
15958 gdbserver_build_enabled=yes
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961 $as_echo "no" >&6; }
15965 # If the user explicitly request the gdbserver to be built, verify that
15966 # we were in fact able to enable it.
15967 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15968 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15971 # Check for babeltrace and babeltrace-ctf
15973 # Check whether --with-babeltrace was given.
15974 if test "${with_babeltrace+set}" = set; then :
15975 withval=$with_babeltrace;
15977 with_babeltrace=auto
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15981 $as_echo_n "checking whether to use babeltrace... " >&6; }
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15983 $as_echo "$with_babeltrace" >&6; }
15985 if test "x$with_babeltrace" = "xno"; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15987 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15989 # Append -Werror to CFLAGS so that configure can catch the warning
15990 # "assignment from incompatible pointer type", which is related to
15991 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
15992 # in GDB, while babeltrace 1.0.3 is broken.
15993 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15994 # safe to save and restore CFLAGS here.
15995 saved_CFLAGS=$CFLAGS
15996 CFLAGS="$CFLAGS -Werror"
16007 acl_save_prefix="$prefix"
16008 prefix="$acl_final_prefix"
16009 acl_save_exec_prefix="$exec_prefix"
16010 exec_prefix="$acl_final_exec_prefix"
16012 eval additional_includedir=\"$includedir\"
16013 eval additional_libdir=\"$libdir\"
16015 exec_prefix="$acl_save_exec_prefix"
16016 prefix="$acl_save_prefix"
16019 # Check whether --with-libbabeltrace-prefix was given.
16020 if test "${with_libbabeltrace_prefix+set}" = set; then :
16021 withval=$with_libbabeltrace_prefix;
16022 if test "X$withval" = "Xno"; then
16025 if test "X$withval" = "X"; then
16027 acl_save_prefix="$prefix"
16028 prefix="$acl_final_prefix"
16029 acl_save_exec_prefix="$exec_prefix"
16030 exec_prefix="$acl_final_exec_prefix"
16032 eval additional_includedir=\"$includedir\"
16033 eval additional_libdir=\"$libdir\"
16035 exec_prefix="$acl_save_exec_prefix"
16036 prefix="$acl_save_prefix"
16039 additional_includedir="$withval/include"
16040 additional_libdir="$withval/lib"
16051 names_already_handled=
16052 names_next_round='babeltrace babeltrace-ctf'
16053 while test -n "$names_next_round"; do
16054 names_this_round="$names_next_round"
16056 for name in $names_this_round; do
16058 for n in $names_already_handled; do
16059 if test "$n" = "$name"; then
16060 already_handled=yes
16064 if test -z "$already_handled"; then
16065 names_already_handled="$names_already_handled $name"
16066 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16067 eval value=\"\$HAVE_LIB$uppername\"
16068 if test -n "$value"; then
16069 if test "$value" = yes; then
16070 eval value=\"\$LIB$uppername\"
16071 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
16072 eval value=\"\$LTLIB$uppername\"
16073 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
16082 if test $use_additional = yes; then
16083 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16084 found_dir="$additional_libdir"
16085 found_so="$additional_libdir/lib$name.$shlibext"
16086 if test -f "$additional_libdir/lib$name.la"; then
16087 found_la="$additional_libdir/lib$name.la"
16090 if test -f "$additional_libdir/lib$name.$libext"; then
16091 found_dir="$additional_libdir"
16092 found_a="$additional_libdir/lib$name.$libext"
16093 if test -f "$additional_libdir/lib$name.la"; then
16094 found_la="$additional_libdir/lib$name.la"
16099 if test "X$found_dir" = "X"; then
16100 for x in $LDFLAGS $LTLIBBABELTRACE; do
16102 acl_save_prefix="$prefix"
16103 prefix="$acl_final_prefix"
16104 acl_save_exec_prefix="$exec_prefix"
16105 exec_prefix="$acl_final_exec_prefix"
16107 exec_prefix="$acl_save_exec_prefix"
16108 prefix="$acl_save_prefix"
16112 dir=`echo "X$x" | sed -e 's/^X-L//'`
16113 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16115 found_so="$dir/lib$name.$shlibext"
16116 if test -f "$dir/lib$name.la"; then
16117 found_la="$dir/lib$name.la"
16120 if test -f "$dir/lib$name.$libext"; then
16122 found_a="$dir/lib$name.$libext"
16123 if test -f "$dir/lib$name.la"; then
16124 found_la="$dir/lib$name.la"
16130 if test "X$found_dir" != "X"; then
16135 if test "X$found_dir" != "X"; then
16136 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
16137 if test "X$found_so" != "X"; then
16138 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16139 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16142 for x in $ltrpathdirs; do
16143 if test "X$x" = "X$found_dir"; then
16148 if test -z "$haveit"; then
16149 ltrpathdirs="$ltrpathdirs $found_dir"
16151 if test "$hardcode_direct" = yes; then
16152 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16154 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16155 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16157 for x in $rpathdirs; do
16158 if test "X$x" = "X$found_dir"; then
16163 if test -z "$haveit"; then
16164 rpathdirs="$rpathdirs $found_dir"
16168 for x in $LDFLAGS $LIBBABELTRACE; do
16170 acl_save_prefix="$prefix"
16171 prefix="$acl_final_prefix"
16172 acl_save_exec_prefix="$exec_prefix"
16173 exec_prefix="$acl_final_exec_prefix"
16175 exec_prefix="$acl_save_exec_prefix"
16176 prefix="$acl_save_prefix"
16178 if test "X$x" = "X-L$found_dir"; then
16183 if test -z "$haveit"; then
16184 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
16186 if test "$hardcode_minus_L" != no; then
16187 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16189 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16195 if test "X$found_a" != "X"; then
16196 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
16198 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
16201 additional_includedir=
16202 case "$found_dir" in
16204 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16205 additional_includedir="$basedir/include"
16208 if test "X$additional_includedir" != "X"; then
16209 if test "X$additional_includedir" != "X/usr/include"; then
16211 if test "X$additional_includedir" = "X/usr/local/include"; then
16212 if test -n "$GCC"; then
16214 linux*) haveit=yes;;
16218 if test -z "$haveit"; then
16219 for x in $CPPFLAGS $INCBABELTRACE; do
16221 acl_save_prefix="$prefix"
16222 prefix="$acl_final_prefix"
16223 acl_save_exec_prefix="$exec_prefix"
16224 exec_prefix="$acl_final_exec_prefix"
16226 exec_prefix="$acl_save_exec_prefix"
16227 prefix="$acl_save_prefix"
16229 if test "X$x" = "X-I$additional_includedir"; then
16234 if test -z "$haveit"; then
16235 if test -d "$additional_includedir"; then
16236 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
16242 if test -n "$found_la"; then
16243 save_libdir="$libdir"
16244 case "$found_la" in
16245 */* | *\\*) . "$found_la" ;;
16246 *) . "./$found_la" ;;
16248 libdir="$save_libdir"
16249 for dep in $dependency_libs; do
16252 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16253 if test "X$additional_libdir" != "X/usr/lib"; then
16255 if test "X$additional_libdir" = "X/usr/local/lib"; then
16256 if test -n "$GCC"; then
16258 linux*) haveit=yes;;
16262 if test -z "$haveit"; then
16264 for x in $LDFLAGS $LIBBABELTRACE; do
16266 acl_save_prefix="$prefix"
16267 prefix="$acl_final_prefix"
16268 acl_save_exec_prefix="$exec_prefix"
16269 exec_prefix="$acl_final_exec_prefix"
16271 exec_prefix="$acl_save_exec_prefix"
16272 prefix="$acl_save_prefix"
16274 if test "X$x" = "X-L$additional_libdir"; then
16279 if test -z "$haveit"; then
16280 if test -d "$additional_libdir"; then
16281 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
16285 for x in $LDFLAGS $LTLIBBABELTRACE; do
16287 acl_save_prefix="$prefix"
16288 prefix="$acl_final_prefix"
16289 acl_save_exec_prefix="$exec_prefix"
16290 exec_prefix="$acl_final_exec_prefix"
16292 exec_prefix="$acl_save_exec_prefix"
16293 prefix="$acl_save_prefix"
16295 if test "X$x" = "X-L$additional_libdir"; then
16300 if test -z "$haveit"; then
16301 if test -d "$additional_libdir"; then
16302 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
16309 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16310 if test "$enable_rpath" != no; then
16312 for x in $rpathdirs; do
16313 if test "X$x" = "X$dir"; then
16318 if test -z "$haveit"; then
16319 rpathdirs="$rpathdirs $dir"
16322 for x in $ltrpathdirs; do
16323 if test "X$x" = "X$dir"; then
16328 if test -z "$haveit"; then
16329 ltrpathdirs="$ltrpathdirs $dir"
16334 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16337 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16340 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
16341 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
16347 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16348 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
16354 if test "X$rpathdirs" != "X"; then
16355 if test -n "$hardcode_libdir_separator"; then
16357 for found_dir in $rpathdirs; do
16358 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16360 acl_save_libdir="$libdir"
16362 eval flag=\"$hardcode_libdir_flag_spec\"
16363 libdir="$acl_save_libdir"
16364 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16366 for found_dir in $rpathdirs; do
16367 acl_save_libdir="$libdir"
16368 libdir="$found_dir"
16369 eval flag=\"$hardcode_libdir_flag_spec\"
16370 libdir="$acl_save_libdir"
16371 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16375 if test "X$ltrpathdirs" != "X"; then
16376 for found_dir in $ltrpathdirs; do
16377 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
16382 ac_save_CPPFLAGS="$CPPFLAGS"
16384 for element in $INCBABELTRACE; do
16386 for x in $CPPFLAGS; do
16388 acl_save_prefix="$prefix"
16389 prefix="$acl_final_prefix"
16390 acl_save_exec_prefix="$exec_prefix"
16391 exec_prefix="$acl_final_exec_prefix"
16393 exec_prefix="$acl_save_exec_prefix"
16394 prefix="$acl_save_prefix"
16396 if test "X$x" = "X$element"; then
16401 if test -z "$haveit"; then
16402 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
16408 $as_echo_n "checking for libbabeltrace... " >&6; }
16409 if test "${ac_cv_libbabeltrace+set}" = set; then :
16410 $as_echo_n "(cached) " >&6
16413 ac_save_LIBS="$LIBS"
16414 LIBS="$LIBS $LIBBABELTRACE"
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 #include <babeltrace/babeltrace.h>
16418 #include <babeltrace/ctf/events.h>
16419 #include <babeltrace/ctf/iterator.h>
16423 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
16424 struct bt_ctf_event *event = NULL;
16425 const struct bt_definition *scope;
16427 pos->type = BT_SEEK_BEGIN;
16428 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
16429 scope = bt_ctf_get_top_level_scope (event,
16430 BT_STREAM_EVENT_HEADER);
16431 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
16437 if ac_fn_c_try_link "$LINENO"; then :
16438 ac_cv_libbabeltrace=yes
16440 ac_cv_libbabeltrace=no
16442 rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16444 LIBS="$ac_save_LIBS"
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
16448 $as_echo "$ac_cv_libbabeltrace" >&6; }
16449 if test "$ac_cv_libbabeltrace" = yes; then
16450 HAVE_LIBBABELTRACE=yes
16452 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
16455 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
16457 $as_echo "$LIBBABELTRACE" >&6; }
16459 HAVE_LIBBABELTRACE=no
16460 CPPFLAGS="$ac_save_CPPFLAGS"
16470 CFLAGS=$saved_CFLAGS
16472 if test "$HAVE_LIBBABELTRACE" != yes; then
16473 if test "$with_babeltrace" = yes; then
16474 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
16477 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
16482 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16483 # to an empty version.
16489 if test "${nativefile}" != ""; then
16490 case "${nativefile}" in
16491 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
16492 * ) GDB_NM_FILE="${nativefile}"
16494 files="${files} ${GDB_NM_FILE}"
16495 links="${links} nm.h"
16497 cat >>confdefs.h <<_ACEOF
16498 #define GDB_NM_FILE "${GDB_NM_FILE}"
16504 for ac_prog in xsltproc
16506 # Extract the first word of "$ac_prog", so it can be a program name with args.
16507 set dummy $ac_prog; ac_word=$2
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16509 $as_echo_n "checking for $ac_word... " >&6; }
16510 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
16511 $as_echo_n "(cached) " >&6
16515 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
16518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16519 for as_dir in $PATH
16522 test -z "$as_dir" && as_dir=.
16523 for ac_exec_ext in '' $ac_executable_extensions; do
16524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16525 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
16526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16536 XSLTPROC=$ac_cv_path_XSLTPROC
16537 if test -n "$XSLTPROC"; then
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
16539 $as_echo "$XSLTPROC" >&6; }
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542 $as_echo "no" >&6; }
16546 test -n "$XSLTPROC" && break
16548 test -n "$XSLTPROC" || XSLTPROC="missing"
16550 if test "x$USE_MAINTAINER_MODE" = xyes; then
16551 if test "${XSLTPROC}" = missing; then
16552 as_fn_error "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
16557 ac_sources="$files"
16559 while test -n "$ac_sources"; do
16560 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16561 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16562 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
16564 ac_config_links="$ac_config_links $ac_config_links_1"
16570 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16573 if $development; then
16575 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
16580 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16581 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
16582 if test "x$GDB_TRANSFORM_NAME" = x; then
16583 GDB_TRANSFORM_NAME=gdb
16588 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16589 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
16590 if test "x$GCORE_TRANSFORM_NAME" = x; then
16591 GCORE_TRANSFORM_NAME=gcore
16595 ac_config_files="$ac_config_files gcore"
16597 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
16600 cat >confcache <<\_ACEOF
16601 # This file is a shell script that caches the results of configure
16602 # tests run on this system so they can be shared between configure
16603 # scripts and configure runs, see configure's option --config-cache.
16604 # It is not useful on other systems. If it contains results you don't
16605 # want to keep, you may remove or edit it.
16607 # config.status only pays attention to the cache file if you give it
16608 # the --recheck option to rerun configure.
16610 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16611 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16612 # following values.
16616 # The following way of writing the cache mishandles newlines in values,
16617 # but we know of no workaround that is simple, portable, and efficient.
16618 # So, we kill variables containing newlines.
16619 # Ultrix sh set writes to stderr and can't be redirected directly,
16620 # and sets the high bit in the cache file unless we assign to the vars.
16622 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16623 eval ac_val=\$$ac_var
16627 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16628 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16631 _ | IFS | as_nl) ;; #(
16632 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16633 *) { eval $ac_var=; unset $ac_var;} ;;
16639 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16640 *${as_nl}ac_space=\ *)
16641 # `set' does not quote correctly, so add quotes: double-quote
16642 # substitution turns \\\\ into \\, and sed turns \\ into \.
16645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16648 # `set' quotes correctly as required by POSIX, so do not add quotes.
16649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16660 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16662 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16663 if test -w "$cache_file"; then
16664 test "x$cache_file" != "x/dev/null" &&
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16666 $as_echo "$as_me: updating cache $cache_file" >&6;}
16667 cat confcache >$cache_file
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16670 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16675 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16676 # Let make expand exec_prefix.
16677 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16679 DEFS=-DHAVE_CONFIG_H
16683 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16684 # 1. Remove the extension, and $U if already installed.
16685 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16686 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16687 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16688 # will be set to the directory where LIBOBJS objects are built.
16689 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16690 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16692 LIBOBJS=$ac_libobjs
16694 LTLIBOBJS=$ac_ltlibobjs
16697 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16698 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16701 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16702 as_fn_error "conditional \"GMAKE\" was never defined.
16703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16705 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16706 as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
16707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16709 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
16710 as_fn_error "conditional \"HAVE_GUILE\" was never defined.
16711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16715 : ${CONFIG_STATUS=./config.status}
16717 ac_clean_files_save=$ac_clean_files
16718 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16720 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16722 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16724 # Generated by $as_me.
16725 # Run this file to recreate the current configuration.
16726 # Compiler output produced by configure, useful for debugging
16727 # configure, is in config.log if it exists.
16730 ac_cs_recheck=false
16733 SHELL=\${CONFIG_SHELL-$SHELL}
16736 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16737 ## -------------------- ##
16738 ## M4sh Initialization. ##
16739 ## -------------------- ##
16741 # Be more Bourne compatible
16742 DUALCASE=1; export DUALCASE # for MKS sh
16743 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16746 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16747 # is contrary to our usage. Disable this feature.
16748 alias -g '${1+"$@"}'='"$@"'
16749 setopt NO_GLOB_SUBST
16751 case `(set -o) 2>/dev/null` in #(
16763 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16764 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16766 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16767 # Prefer a ksh shell builtin over an external printf program on Solaris,
16768 # but without wasting forks for bash or zsh.
16769 if test -z "$BASH_VERSION$ZSH_VERSION" \
16770 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16771 as_echo='print -r --'
16772 as_echo_n='print -rn --'
16773 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16774 as_echo='printf %s\n'
16775 as_echo_n='printf %s'
16777 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16778 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16779 as_echo_n='/usr/ucb/echo -n'
16781 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16782 as_echo_n_body='eval
16786 expr "X$arg" : "X\\(.*\\)$as_nl";
16787 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16789 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16791 export as_echo_n_body
16792 as_echo_n='sh -c $as_echo_n_body as_echo'
16794 export as_echo_body
16795 as_echo='sh -c $as_echo_body as_echo'
16798 # The user is always right.
16799 if test "${PATH_SEPARATOR+set}" != set; then
16801 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16802 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16809 # We need space, tab and new line, in precisely that order. Quoting is
16810 # there to prevent editors from complaining about space-tab.
16811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16812 # splitting by setting IFS to empty value.)
16815 # Find who we are. Look in the path if we contain no directory separator.
16817 *[\\/]* ) as_myself=$0 ;;
16818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819 for as_dir in $PATH
16822 test -z "$as_dir" && as_dir=.
16823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16829 # We did not find ourselves, most probably we were run as `sh COMMAND'
16830 # in which case we are not to be found in the path.
16831 if test "x$as_myself" = x; then
16834 if test ! -f "$as_myself"; then
16835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16839 # Unset variables that we do not need and which cause bugs (e.g. in
16840 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16841 # suppresses any "Segmentation fault" message there. '((' could
16842 # trigger a bug in pdksh 5.2.14.
16843 for as_var in BASH_ENV ENV MAIL MAILPATH
16844 do eval test x\${$as_var+set} = xset \
16845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16858 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16861 # as_fn_error ERROR [LINENO LOG_FD]
16862 # ---------------------------------
16863 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16864 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16865 # script with status $?, using 1 if that was 0.
16868 as_status=$?; test $as_status -eq 0 && as_status=1
16870 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16873 $as_echo "$as_me: error: $1" >&2
16874 as_fn_exit $as_status
16878 # as_fn_set_status STATUS
16879 # -----------------------
16880 # Set $? to STATUS, without forking.
16881 as_fn_set_status ()
16884 } # as_fn_set_status
16886 # as_fn_exit STATUS
16887 # -----------------
16888 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16892 as_fn_set_status $1
16898 # Portably unset VAR.
16901 { eval $1=; unset $1;}
16903 as_unset=as_fn_unset
16904 # as_fn_append VAR VALUE
16905 # ----------------------
16906 # Append the text in VALUE to the end of the definition contained in VAR. Take
16907 # advantage of any shell optimizations that allow amortized linear growth over
16908 # repeated appends, instead of the typical quadratic growth present in naive
16910 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16911 eval 'as_fn_append ()
16922 # as_fn_arith ARG...
16923 # ------------------
16924 # Perform arithmetic evaluation on the ARGs, and store the result in the
16925 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16926 # must be portable across $(()) and expr.
16927 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16928 eval 'as_fn_arith ()
16935 as_val=`expr "$@" || test $? -eq 1`
16940 if expr a : '\(a\)' >/dev/null 2>&1 &&
16941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16947 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16948 as_basename=basename
16953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16959 as_me=`$as_basename -- "$0" ||
16960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16961 X"$0" : 'X\(//\)$' \| \
16962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16964 sed '/^.*\/\([^/][^/]*\)\/*$/{
16978 # Avoid depending upon Character Ranges.
16979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16982 as_cr_digits='0123456789'
16983 as_cr_alnum=$as_cr_Letters$as_cr_digits
16985 ECHO_C= ECHO_N= ECHO_T=
16986 case `echo -n x` in #(((((
16988 case `echo 'xy\c'` in
16989 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16998 rm -f conf$$ conf$$.exe conf$$.file
16999 if test -d conf$$.dir; then
17000 rm -f conf$$.dir/conf$$.file
17003 mkdir conf$$.dir 2>/dev/null
17005 if (echo >conf$$.file) 2>/dev/null; then
17006 if ln -s conf$$.file conf$$ 2>/dev/null; then
17008 # ... but there are two gotchas:
17009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17011 # In both cases, we have to default to `cp -p'.
17012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17014 elif ln conf$$.file conf$$ 2>/dev/null; then
17022 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17023 rmdir conf$$.dir 2>/dev/null
17028 # Create "$as_dir" as a directory, including parents if necessary.
17033 -*) as_dir=./$as_dir;;
17035 test -d "$as_dir" || eval $as_mkdir_p || {
17039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17040 *) as_qdir=$as_dir;;
17042 as_dirs="'$as_qdir' $as_dirs"
17043 as_dir=`$as_dirname -- "$as_dir" ||
17044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17045 X"$as_dir" : 'X\(//\)[^/]' \| \
17046 X"$as_dir" : 'X\(//\)$' \| \
17047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17048 $as_echo X"$as_dir" |
17049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17053 /^X\(\/\/\)[^/].*/{
17066 test -d "$as_dir" && break
17068 test -z "$as_dirs" || eval "mkdir $as_dirs"
17069 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17073 if mkdir -p . 2>/dev/null; then
17074 as_mkdir_p='mkdir -p "$as_dir"'
17076 test -d ./-p && rmdir ./-p
17080 if test -x / >/dev/null 2>&1; then
17081 as_test_x='test -x'
17083 if ls -dL / >/dev/null 2>&1; then
17090 if test -d "$1"; then
17096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17097 ???[sx]*):;;*)false;;esac;fi
17101 as_executable_p=$as_test_x
17103 # Sed expression to map a string onto a valid CPP name.
17104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17106 # Sed expression to map a string onto a valid variable name.
17107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17111 ## ----------------------------------- ##
17112 ## Main body of $CONFIG_STATUS script. ##
17113 ## ----------------------------------- ##
17115 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17118 # Save the log message, to keep $0 and so on meaningful, and to
17119 # report actual input values of CONFIG_FILES etc. instead of their
17120 # values after options handling.
17122 This file was extended by $as_me, which was
17123 generated by GNU Autoconf 2.64. Invocation command line was
17125 CONFIG_FILES = $CONFIG_FILES
17126 CONFIG_HEADERS = $CONFIG_HEADERS
17127 CONFIG_LINKS = $CONFIG_LINKS
17128 CONFIG_COMMANDS = $CONFIG_COMMANDS
17131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17136 case $ac_config_files in *"
17137 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17140 case $ac_config_headers in *"
17141 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17146 # Files that config.status was made for.
17147 config_files="$ac_config_files"
17148 config_headers="$ac_config_headers"
17149 config_links="$ac_config_links"
17150 config_commands="$ac_config_commands"
17154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17156 \`$as_me' instantiates files and other configuration actions
17157 from templates according to the current configuration. Unless the files
17158 and actions are specified as TAGs, all are instantiated by default.
17160 Usage: $0 [OPTION]... [TAG]...
17162 -h, --help print this help, then exit
17163 -V, --version print version number and configuration settings, then exit
17164 -q, --quiet, --silent
17165 do not print progress messages
17166 -d, --debug don't remove temporary files
17167 --recheck update $as_me by reconfiguring in the same conditions
17168 --file=FILE[:TEMPLATE]
17169 instantiate the configuration file FILE
17170 --header=FILE[:TEMPLATE]
17171 instantiate the configuration header FILE
17173 Configuration files:
17176 Configuration headers:
17179 Configuration links:
17182 Configuration commands:
17185 Report bugs to the package provider."
17188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17191 configured by $0, generated by GNU Autoconf 2.64,
17192 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17194 Copyright (C) 2009 Free Software Foundation, Inc.
17195 This config.status script is free software; the Free Software Foundation
17196 gives unlimited permission to copy, distribute and modify it."
17202 test -n "\$AWK" || AWK=awk
17205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17206 # The default lists apply if the user does not specify any file.
17212 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17213 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17224 # Handling of the options.
17225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17227 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17228 $as_echo "$ac_cs_version"; exit ;;
17229 --debug | --debu | --deb | --de | --d | -d )
17231 --file | --fil | --fi | --f )
17234 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17236 as_fn_append CONFIG_FILES " '$ac_optarg'"
17237 ac_need_defaults=false;;
17238 --header | --heade | --head | --hea )
17241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17243 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17244 ac_need_defaults=false;;
17246 # Conflict between --help and --header
17247 as_fn_error "ambiguous option: \`$1'
17248 Try \`$0 --help' for more information.";;
17249 --help | --hel | -h )
17250 $as_echo "$ac_cs_usage"; exit ;;
17251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17252 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17255 # This is an error.
17256 -*) as_fn_error "unrecognized option: \`$1'
17257 Try \`$0 --help' for more information." ;;
17259 *) as_fn_append ac_config_targets " $1"
17260 ac_need_defaults=false ;;
17266 ac_configure_extra_args=
17268 if $ac_cs_silent; then
17270 ac_configure_extra_args="$ac_configure_extra_args --silent"
17274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17275 if \$ac_cs_recheck; then
17276 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17278 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17279 CONFIG_SHELL='$SHELL'
17280 export CONFIG_SHELL
17285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17290 ## Running $as_me. ##
17296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17300 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17306 # Handling of arguments.
17307 for ac_config_target in $ac_config_targets
17309 case $ac_config_target in
17310 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17311 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
17312 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17313 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
17314 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
17315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17316 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
17317 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17318 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
17320 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17325 # If the user did not use the arguments to specify the items to instantiate,
17326 # then the envvar interface is used. Set only those that are not.
17327 # We use the long form for the default assignment because of an extremely
17328 # bizarre bug on SunOS 4.1.3.
17329 if $ac_need_defaults; then
17330 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17331 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17332 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17336 # Have a temporary directory for convenience. Make it in the build tree
17337 # simply because there is no reason against having it here, and in addition,
17338 # creating and moving files from /tmp can sometimes cause problems.
17339 # Hook for its removal unless debugging.
17340 # Note that there is a small window in which the directory will not be cleaned:
17341 # after its creation but before its name has been assigned to `$tmp'.
17345 trap 'exit_status=$?
17346 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17348 trap 'as_fn_exit 1' 1 2 13 15
17350 # Create a (secure) tmp directory for tmp files.
17353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17354 test -n "$tmp" && test -d "$tmp"
17357 tmp=./conf$$-$RANDOM
17358 (umask 077 && mkdir "$tmp")
17359 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17361 # Set up the scripts for CONFIG_FILES section.
17362 # No need to generate them if there are no CONFIG_FILES.
17363 # This happens for instance with `./config.status config.h'.
17364 if test -n "$CONFIG_FILES"; then
17366 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17367 ac_cs_awk_getline=:
17368 ac_cs_awk_pipe_init=
17369 ac_cs_awk_read_file='
17370 while ((getline aline < (F[key])) > 0)
17373 ac_cs_awk_pipe_fini=
17375 ac_cs_awk_getline=false
17376 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17377 ac_cs_awk_read_file='
17379 print "cat " F[key] " &&"
17380 '$ac_cs_awk_pipe_init
17381 # The final `:' finishes the AND list.
17382 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17384 ac_cr=`echo X | tr X '\015'`
17385 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17386 # But we know of no other shell where ac_cr would be empty at this
17387 # point, so we can use a bashism as a fallback.
17388 if test "x$ac_cr" = x; then
17389 eval ac_cr=\$\'\\r\'
17391 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17392 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17395 ac_cs_awk_cr=$ac_cr
17398 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17401 # Create commands to substitute file output variables.
17403 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17404 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17405 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17408 } >conf$$files.sh &&
17409 . ./conf$$files.sh ||
17410 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17411 rm -f conf$$files.sh
17414 echo "cat >conf$$subs.awk <<_ACEOF" &&
17415 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17417 } >conf$$subs.sh ||
17418 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17419 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17421 for ac_last_try in false false false false false :; do
17422 . ./conf$$subs.sh ||
17423 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17425 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17426 if test $ac_delim_n = $ac_delim_num; then
17428 elif $ac_last_try; then
17429 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17434 rm -f conf$$subs.sh
17436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17437 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17441 s/^/S["/; s/!.*/"]=/
17451 s/\(.\{148\}\).*/\1/
17453 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17458 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17465 s/\(.\{148\}\).*/\1/
17467 s/["\\]/\\&/g; s/^/"/; s/$/"/
17471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17476 ' <conf$$subs.awk | sed '
17481 ' >>$CONFIG_STATUS || ac_write_fail=1
17482 rm -f conf$$subs.awk
17483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17485 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17486 for (key in S) S_is_set[key] = 1
17488 \$ac_cs_awk_pipe_init
17492 nfields = split(line, field, "@")
17494 len = length(field[1])
17495 for (i = 2; i < nfields; i++) {
17497 keylen = length(key)
17498 if (S_is_set[key]) {
17500 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17501 len += length(value) + length(field[++i])
17506 if (nfields == 3 && !substed) {
17508 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17509 \$ac_cs_awk_read_file
17515 \$ac_cs_awk_pipe_fini
17518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17519 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17520 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17523 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17524 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17527 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17528 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17529 # trailing colons and then remove the whole line if VPATH becomes empty
17530 # (actually we leave an empty line to preserve line numbers).
17531 if test "x$srcdir" = x.; then
17532 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17533 s/:*\$(srcdir):*/:/
17534 s/:*\${srcdir}:*/:/
17536 s/^\([^=]*=[ ]*\):*/\1/
17542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17543 fi # test -n "$CONFIG_FILES"
17545 # Set up the scripts for CONFIG_HEADERS section.
17546 # No need to generate them if there are no CONFIG_HEADERS.
17547 # This happens for instance with `./config.status Makefile'.
17548 if test -n "$CONFIG_HEADERS"; then
17549 cat >"$tmp/defines.awk" <<\_ACAWK ||
17553 # Transform confdefs.h into an awk script `defines.awk', embedded as
17554 # here-document in config.status, that substitutes the proper values into
17555 # config.h.in to produce config.h.
17557 # Create a delimiter string that does not exist in confdefs.h, to ease
17558 # handling of long lines.
17560 for ac_last_try in false false :; do
17561 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17562 if test -z "$ac_t"; then
17564 elif $ac_last_try; then
17565 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17571 # For the awk script, D is an array of macro values keyed by name,
17572 # likewise P contains macro parameters if any. Preserve backslash
17573 # newline sequences.
17575 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17577 s/.\{148\}/&'"$ac_delim"'/g
17580 s/^[ ]*#[ ]*define[ ][ ]*/ /
17587 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17589 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17594 D["\1"]=" \3\\\\\\n"\\/p
17596 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17601 s/.\{148\}/&'"$ac_delim"'/g
17606 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17609 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17611 ' <confdefs.h | sed '
17612 s/'"$ac_delim"'/"\\\
17613 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17616 for (key in D) D_is_set[key] = 1
17619 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17621 split(line, arg, " ")
17622 if (arg[1] == "#") {
17626 defundef = substr(arg[1], 2)
17629 split(mac1, mac2, "(") #)
17631 prefix = substr(line, 1, index(line, defundef) - 1)
17632 if (D_is_set[macro]) {
17633 # Preserve the white space surrounding the "#".
17634 print prefix "define", macro P[macro] D[macro]
17637 # Replace #undef with comments. This is necessary, for example,
17638 # in the case of _POSIX_SOURCE, which is predefined and required
17639 # on some systems where configure will not decide to define it.
17640 if (defundef == "undef") {
17641 print "/*", prefix defundef, macro, "*/"
17649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17650 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17651 fi # test -n "$CONFIG_HEADERS"
17654 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17659 :[FHLC]) ac_mode=$ac_tag; continue;;
17661 case $ac_mode$ac_tag in
17663 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17664 :[FH]-) ac_tag=-:-;;
17665 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17682 -) ac_f="$tmp/stdin";;
17683 *) # Look for the file first in the build tree, then in the source tree
17684 # (if the path is not absolute). The absolute path cannot be DOS-style,
17685 # because $ac_f cannot contain `:'.
17689 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17691 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17693 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17694 as_fn_append ac_file_inputs " '$ac_f'"
17697 # Let's still pretend it is `configure' which instantiates (i.e., don't
17698 # use $as_me), people would be surprised to read:
17699 # /* config.h. Generated by config.status. */
17700 configure_input='Generated from '`
17701 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17703 if test x"$ac_file" != x-; then
17704 configure_input="$ac_file. $configure_input"
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17706 $as_echo "$as_me: creating $ac_file" >&6;}
17708 # Neutralize special characters interpreted by sed in replacement strings.
17709 case $configure_input in #(
17710 *\&* | *\|* | *\\* )
17711 ac_sed_conf_input=`$as_echo "$configure_input" |
17712 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17713 *) ac_sed_conf_input=$configure_input;;
17717 *:-:* | *:-) cat >"$tmp/stdin" \
17718 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17723 ac_dir=`$as_dirname -- "$ac_file" ||
17724 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17725 X"$ac_file" : 'X\(//\)[^/]' \| \
17726 X"$ac_file" : 'X\(//\)$' \| \
17727 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17728 $as_echo X"$ac_file" |
17729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17733 /^X\(\/\/\)[^/].*/{
17746 as_dir="$ac_dir"; as_fn_mkdir_p
17750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17753 # A ".." for each directory in $ac_dir_suffix.
17754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17755 case $ac_top_builddir_sub in
17756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17760 ac_abs_top_builddir=$ac_pwd
17761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17762 # for backward compatibility:
17763 ac_top_builddir=$ac_top_build_prefix
17766 .) # We are building in place.
17768 ac_top_srcdir=$ac_top_builddir_sub
17769 ac_abs_top_srcdir=$ac_pwd ;;
17770 [\\/]* | ?:[\\/]* ) # Absolute name.
17771 ac_srcdir=$srcdir$ac_dir_suffix;
17772 ac_top_srcdir=$srcdir
17773 ac_abs_top_srcdir=$srcdir ;;
17774 *) # Relative name.
17775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17776 ac_top_srcdir=$ac_top_build_prefix$srcdir
17777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17789 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17790 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17795 # If the template does not know about datarootdir, expand it.
17796 # FIXME: This hack should be removed a few years after 2.60.
17797 ac_datarootdir_hack=; ac_datarootdir_seen=
17808 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17809 *datarootdir*) ac_datarootdir_seen=yes;;
17810 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17812 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17815 ac_datarootdir_hack='
17816 s&@datadir@&$datadir&g
17817 s&@docdir@&$docdir&g
17818 s&@infodir@&$infodir&g
17819 s&@localedir@&$localedir&g
17820 s&@mandir@&$mandir&g
17821 s&\\\${datarootdir}&$datarootdir&g' ;;
17825 # Neutralize VPATH when `$srcdir' = `.'.
17826 # Shell code in configure.ac might set extrasub.
17827 # FIXME: do we really want to maintain this feature?
17828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17829 ac_sed_extra="$ac_vpsub
17832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17835 s|@configure_input@|$ac_sed_conf_input|;t t
17836 s&@top_builddir@&$ac_top_builddir_sub&;t t
17837 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17838 s&@srcdir@&$ac_srcdir&;t t
17839 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17840 s&@top_srcdir@&$ac_top_srcdir&;t t
17841 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17842 s&@builddir@&$ac_builddir&;t t
17843 s&@abs_builddir@&$ac_abs_builddir&;t t
17844 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17845 s&@INSTALL@&$ac_INSTALL&;t t
17846 $ac_datarootdir_hack
17848 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17849 if $ac_cs_awk_getline; then
17850 $AWK -f "$tmp/subs.awk"
17852 $AWK -f "$tmp/subs.awk" | $SHELL
17854 || as_fn_error "could not create $ac_file" "$LINENO" 5
17856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17857 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17860 which seems to be undefined. Please make sure it is defined." >&5
17861 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17862 which seems to be undefined. Please make sure it is defined." >&2;}
17866 -) cat "$tmp/out" && rm -f "$tmp/out";;
17867 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17869 || as_fn_error "could not create $ac_file" "$LINENO" 5
17875 if test x"$ac_file" != x-; then
17877 $as_echo "/* $configure_input */" \
17878 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17879 } >"$tmp/config.h" \
17880 || as_fn_error "could not create $ac_file" "$LINENO" 5
17881 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17883 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17886 mv "$tmp/config.h" "$ac_file" \
17887 || as_fn_error "could not create $ac_file" "$LINENO" 5
17890 $as_echo "/* $configure_input */" \
17891 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17892 || as_fn_error "could not create -" "$LINENO" 5
17900 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17903 # Prefer the file from the source tree if names are identical.
17904 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17905 ac_source=$srcdir/$ac_source
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17909 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17911 if test ! -r "$ac_source"; then
17912 as_fn_error "$ac_source: file not found" "$LINENO" 5
17916 # Try a relative symlink, then a hard link, then a copy.
17918 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17919 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17921 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17922 ln "$ac_source" "$ac_file" 2>/dev/null ||
17923 cp -p "$ac_source" "$ac_file" ||
17924 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17927 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17928 $as_echo "$as_me: executing $ac_file commands" >&6;}
17933 case $ac_file$ac_mode in
17934 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17935 "gcore":F) chmod +x gcore ;;
17937 case x$CONFIG_HEADERS in
17938 xconfig.h:config.in)
17943 case x$CONFIG_HEADERS in
17944 xconfig.h:config.in)
17949 case x$CONFIG_HEADERS in
17950 xconfig.h:config.in)
17954 "data-directory/Makefile":F)
17955 case x$CONFIG_HEADERS in
17956 xconfig.h:config.in)
17967 ac_clean_files=$ac_clean_files_save
17969 test $ac_write_fail = 0 ||
17970 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17973 # configure is writing to config.log, and then calls config.status.
17974 # config.status does its own redirection, appending to config.log.
17975 # Unfortunately, on DOS this fails, as config.log is still kept open
17976 # by configure, so config.status won't be able to write to it; its
17977 # output is simply discarded. So we exec the FD to /dev/null,
17978 # effectively closing config.log, so it can be properly (re)opened and
17979 # appended to by config.status. When coming back to configure, we
17980 # need to make the FD available again.
17981 if test "$no_create" != yes; then
17983 ac_config_status_args=
17984 test "$silent" = yes &&
17985 ac_config_status_args="$ac_config_status_args --quiet"
17987 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17989 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17990 # would make configure fail if this is the last instruction.
17991 $ac_cs_success || as_fn_exit $?
17995 # CONFIG_SUBDIRS section.
17997 if test "$no_recursion" != yes; then
17999 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18000 # so they do not pile up.
18001 ac_sub_configure_args=
18003 eval "set x $ac_configure_args"
18007 if test -n "$ac_prev"; then
18012 -cache-file | --cache-file | --cache-fil | --cache-fi \
18013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18014 ac_prev=cache_file ;;
18015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18019 --config-cache | -C)
18021 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18023 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18029 --disable-option-checking)
18033 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18035 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18039 # Always prepend --prefix to ensure using the same prefix
18040 # in subdir configurations.
18041 ac_arg="--prefix=$prefix"
18043 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18045 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18048 if test "$silent" = yes; then
18049 ac_sub_configure_args="--silent $ac_sub_configure_args"
18052 # Always prepend --disable-option-checking to silence warnings, since
18053 # different subdirs can have different --enable and --with options.
18054 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18057 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18059 # Do not complain, so a configure script can configure whichever
18060 # parts of a large source tree are present.
18061 test -d "$srcdir/$ac_dir" || continue
18063 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18064 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18065 $as_echo "$ac_msg" >&6
18066 as_dir="$ac_dir"; as_fn_mkdir_p
18070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18072 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18073 # A ".." for each directory in $ac_dir_suffix.
18074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18075 case $ac_top_builddir_sub in
18076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18080 ac_abs_top_builddir=$ac_pwd
18081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18082 # for backward compatibility:
18083 ac_top_builddir=$ac_top_build_prefix
18086 .) # We are building in place.
18088 ac_top_srcdir=$ac_top_builddir_sub
18089 ac_abs_top_srcdir=$ac_pwd ;;
18090 [\\/]* | ?:[\\/]* ) # Absolute name.
18091 ac_srcdir=$srcdir$ac_dir_suffix;
18092 ac_top_srcdir=$srcdir
18093 ac_abs_top_srcdir=$srcdir ;;
18094 *) # Relative name.
18095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18096 ac_top_srcdir=$ac_top_build_prefix$srcdir
18097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18104 # Check for guested configure; otherwise get Cygnus style configure.
18105 if test -f "$ac_srcdir/configure.gnu"; then
18106 ac_sub_configure=$ac_srcdir/configure.gnu
18107 elif test -f "$ac_srcdir/configure"; then
18108 ac_sub_configure=$ac_srcdir/configure
18109 elif test -f "$ac_srcdir/configure.in"; then
18110 # This should be Cygnus configure.
18111 ac_sub_configure=$ac_aux_dir/configure
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18114 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18118 # The recursion is here.
18119 if test -n "$ac_sub_configure"; then
18120 # Make the cache file name correct relative to the subdirectory.
18121 case $cache_file in
18122 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18123 *) # Relative name.
18124 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18127 { $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
18128 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18129 # The eval makes quoting arguments work.
18130 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18131 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18132 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18138 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18140 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}