2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking=no
624 ac_subst_vars='LTLIBOBJS
633 HAVE_NATIVE_GCORE_HOST
727 READLINE_TEXI_INCFLAG
751 HAVE_NATIVE_GCORE_TARGET
777 INSTALL_STRIP_PROGRAM
806 MAINTAINER_MODE_FALSE
835 program_transform_name
846 ac_subst_files='nat_makefile_frag'
848 enable_option_checking
849 enable_maintainer_mode
852 with_separate_debug_dir
854 with_relocated_sources
856 with_auto_load_safe_path
881 enable_source_highlight
889 enable_build_warnings
890 enable_gdb_build_warnings
900 with_libbabeltrace_prefix
903 ac_precious_vars='build_alias
920 ac_subdirs_all='testsuite
924 # Initialize some variables set by options.
926 ac_init_version=false
927 ac_unrecognized_opts=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
938 program_transform_name=s,x,x,
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE}'
963 infodir='${datarootdir}/info'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 # Accept the important Cygnus configure options, so we can diagnose typos.
991 case $ac_dashdash$ac_option in
995 -bindir | --bindir | --bindi | --bind | --bin | --bi)
997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 -build | --build | --buil | --bui | --bu)
1001 ac_prev=build_alias ;;
1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003 build_alias=$ac_optarg ;;
1005 -cache-file | --cache-file | --cache-fil | --cache-fi \
1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007 ac_prev=cache_file ;;
1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010 cache_file=$ac_optarg ;;
1012 --config-cache | -C)
1013 cache_file=config.cache ;;
1015 -datadir | --datadir | --datadi | --datad)
1017 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018 datadir=$ac_optarg ;;
1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021 | --dataroo | --dataro | --datar)
1022 ac_prev=datarootdir ;;
1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025 datarootdir=$ac_optarg ;;
1027 -disable-* | --disable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid feature name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_$ac_useropt"
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1041 eval enable_$ac_useropt=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1067 eval enable_$ac_useropt=\$ac_optarg ;;
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 htmldir=$ac_optarg ;;
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1112 -libdir | --libdir | --libdi | --libd)
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1203 -psdir | --psdir | --psdi | --psd | --ps)
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 sbindir=$ac_optarg ;;
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 sharedstatedir=$ac_optarg ;;
1229 -site | --site | --sit)
1231 -site=* | --site=* | --sit=*)
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1271 eval with_$ac_useropt=\$ac_optarg ;;
1273 -without-* | --without-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error $? "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1287 eval with_$ac_useropt=no ;;
1290 # Obsolete; use --with-x.
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1307 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1308 Try \`$0 --help' for more information"
1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
1314 case $ac_envvar in #(
1315 '' | [0-9]* | *[!_$as_cr_alnum]* )
1316 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1322 # FIXME: should be removed in autoconf 3.0.
1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1332 if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 as_fn_error $? "missing argument to $ac_option"
1337 if test -n "$ac_unrecognized_opts"; then
1338 case $enable_option_checking in
1340 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345 # Check all directory arguments for consistency.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val=\$$ac_var
1352 # Remove trailing slashes.
1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356 eval $ac_var=\$ac_val;;
1358 # Be sure to have absolute directory names.
1360 [\\/$]* | ?:[\\/]* ) continue;;
1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1371 target=$target_alias
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x; then
1375 if test "x$build_alias" = x; then
1376 cross_compiling=maybe
1377 elif test "x$build_alias" != "x$host_alias"; then
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385 test "$silent" = yes && exec 6>/dev/null
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 as_fn_error $? "working directory cannot be determined"
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 as_fn_error $? "pwd does not report name of working directory"
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405 $as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1428 ac_srcdir_defaulted=no
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 # Report the --help message.
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1462 \`configure' configures this package to adapt to many kinds of systems.
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 Defaults for the options are specified in brackets.
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking ...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1493 For better control, use the options below.
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1520 --program-prefix=PREFIX prepend PREFIX to installed program names
1521 --program-suffix=SUFFIX append SUFFIX to installed program names
1522 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1525 --x-includes=DIR X include files are in DIR
1526 --x-libraries=DIR X library files are in DIR
1529 --build=BUILD configure for building on BUILD [guessed]
1530 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1531 --target=TARGET configure for building compilers for TARGET [HOST]
1535 if test -n "$ac_init_help"; then
1540 --disable-option-checking ignore unrecognized --enable/--with options
1541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1543 --enable-maintainer-mode
1544 enable make rules and dependencies not useful (and
1545 sometimes confusing) to the casual installer
1546 --enable-plugins Enable support for plugins
1547 --disable-largefile omit support for large files
1548 --enable-targets=TARGETS
1549 alternative target configurations
1550 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1551 --disable-gdbmi disable machine-interface (MI)
1552 --enable-tui enable full-screen terminal user interface (TUI)
1553 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1554 --enable-profiling enable profiling of GDB
1555 --enable-codesign=CERT sign gdb with 'codesign -s CERT'
1556 --disable-rpath do not hardcode runtime library paths
1557 --enable-source-highlight
1558 enable source-highlight for source listings
1559 --enable-libmcheck Try linking with -lmcheck if available
1560 --enable-werror treat compile warnings as errors
1561 --enable-build-warnings enable build-time compiler warnings if gcc is used
1562 --enable-gdb-build-warnings
1563 enable GDB specific build-time compiler warnings if
1565 --enable-ubsan enable undefined behavior sanitizer (auto/yes/no)
1566 --enable-sim link gdb with simulator
1567 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1569 --enable-unit-tests Enable the inclusion of unit tests when compiling
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1575 --with-separate-debug-dir=PATH
1576 look for global separate debug info in this path
1578 --with-gdb-datadir=PATH look for global separate data files in this path
1580 --with-relocated-sources=PATH
1581 automatically relocate this path for source files
1582 --with-auto-load-dir=PATH
1583 directories from which to load auto-loaded scripts
1584 [$debugdir:$datadir/auto-load]
1585 --with-auto-load-safe-path=PATH
1586 directories safe to hold auto-loaded files
1587 [--with-auto-load-dir]
1588 --without-auto-load-safe-path
1589 do not restrict auto-loaded files locations
1590 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1591 --with-curses use the curses library instead of the termcap
1593 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1594 --with-bugurl=URL Direct users to URL to report a bug
1595 --with-system-zlib use installed libz
1596 --with-gnu-ld assume the C compiler uses GNU ld default=no
1597 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1598 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1599 --with-iconv-bin=PATH specify where to find the iconv program
1600 --with-system-readline use installed readline library
1601 --with-jit-reader-dir=PATH
1602 directory to load the JIT readers from
1603 --with-expat include expat support (auto/yes/no)
1604 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1605 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1606 --with-mpfr include MPFR support (auto/yes/no)
1607 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1608 --without-libmpfr-prefix don't search for libmpfr in includedir and libdir
1609 --with-python[=PYTHON] include python support
1610 (auto/yes/no/<python-program>)
1611 --with-guile[=GUILE] include guile support
1612 (auto/yes/no/<guile-version>/<pkg-config-program>)
1613 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1614 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1615 --without-libipt-prefix don't search for libipt in includedir and libdir
1616 --without-included-regex
1617 don't use included regex; this is the default on
1618 systems with version 2 of the GNU C library (use
1619 with caution on other system)
1620 --with-sysroot[=DIR] search for usr/lib et al within DIR
1621 --with-system-gdbinit=PATH
1622 automatically load a system-wide gdbinit file
1623 --with-lzma support lzma compression (auto/yes/no)
1624 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1625 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1626 --with-tcl directory containing tcl configuration (tclConfig.sh)
1627 --with-tk directory containing tk configuration (tkConfig.sh)
1628 --with-x use the X Window System
1629 --with-babeltrace include babeltrace support (auto/yes/no)
1630 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1631 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1633 Some influential environment variables:
1634 CC C compiler command
1635 CFLAGS C compiler flags
1636 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1637 nonstandard directory <lib dir>
1638 LIBS libraries to pass to the linker, e.g. -l<library>
1639 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1640 you have headers in a nonstandard directory <include dir>
1641 CXX C++ compiler command
1642 CXXFLAGS C++ compiler flags
1644 MAKEINFO Parent configure detects if it is of sufficient version.
1646 Parameters for MAKEINFO.
1647 YACC The `Yet Another Compiler Compiler' implementation to use.
1648 Defaults to the first program found out of: `bison -y', `byacc',
1650 YFLAGS The list of arguments that will be passed by default to $YACC.
1651 This script will default YFLAGS to the empty string to avoid a
1652 default value of `-d' given by some make applications.
1653 XMKMF Path to xmkmf, Makefile generator for X Window System
1655 Use these variables to override the choices made by `configure' or to help
1656 it to find libraries and programs with nonstandard names/locations.
1658 Report bugs to the package provider.
1663 if test "$ac_init_help" = "recursive"; then
1664 # If there are subdirs, report their specific --help.
1665 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1666 test -d "$ac_dir" ||
1667 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1675 # A ".." for each directory in $ac_dir_suffix.
1676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1677 case $ac_top_builddir_sub in
1678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 ac_abs_top_builddir=$ac_pwd
1683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1684 # for backward compatibility:
1685 ac_top_builddir=$ac_top_build_prefix
1688 .) # We are building in place.
1690 ac_top_srcdir=$ac_top_builddir_sub
1691 ac_abs_top_srcdir=$ac_pwd ;;
1692 [\\/]* | ?:[\\/]* ) # Absolute name.
1693 ac_srcdir=$srcdir$ac_dir_suffix;
1694 ac_top_srcdir=$srcdir
1695 ac_abs_top_srcdir=$srcdir ;;
1697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1698 ac_top_srcdir=$ac_top_build_prefix$srcdir
1699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1703 cd "$ac_dir" || { ac_status=$?; continue; }
1704 # Check for guested configure.
1705 if test -f "$ac_srcdir/configure.gnu"; then
1707 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1708 elif test -f "$ac_srcdir/configure"; then
1710 $SHELL "$ac_srcdir/configure" --help=recursive
1712 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1714 cd "$ac_pwd" || { ac_status=$?; break; }
1718 test -n "$ac_init_help" && exit $ac_status
1719 if $ac_init_version; then
1722 generated by GNU Autoconf 2.69
1724 Copyright (C) 2012 Free Software Foundation, Inc.
1725 This configure script is free software; the Free Software Foundation
1726 gives unlimited permission to copy, distribute and modify it.
1731 ## ------------------------ ##
1732 ## Autoconf initialization. ##
1733 ## ------------------------ ##
1735 # ac_fn_c_try_compile LINENO
1736 # --------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_compile ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_c_try_compile
1773 # ac_fn_cxx_try_compile LINENO
1774 # ----------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_cxx_try_compile ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_cxx_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.$ac_objext; then :
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1809 } # ac_fn_cxx_try_compile
1811 # ac_fn_c_try_cpp LINENO
1812 # ----------------------
1813 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if { { ac_try="$ac_cpp conftest.$ac_ext"
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } > conftest.i && {
1833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1834 test ! -s conftest.err
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1848 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1849 # -------------------------------------------------------
1850 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1851 # the include files in INCLUDES and setting the cache variable VAR
1853 ac_fn_c_check_header_mongrel ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if eval \${$3+:} false; then :
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1866 # Is the header compilable?
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1868 $as_echo_n "checking $2 usability... " >&6; }
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1874 if ac_fn_c_try_compile "$LINENO"; then :
1875 ac_header_compiler=yes
1877 ac_header_compiler=no
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1881 $as_echo "$ac_header_compiler" >&6; }
1883 # Is the header present?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1885 $as_echo_n "checking $2 presence... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1890 if ac_fn_c_try_cpp "$LINENO"; then :
1891 ac_header_preproc=yes
1893 ac_header_preproc=no
1895 rm -f conftest.err conftest.i conftest.$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1897 $as_echo "$ac_header_preproc" >&6; }
1899 # So? What about this header?
1900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1903 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1905 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1909 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1911 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1913 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1915 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1917 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1925 eval "$3=\$ac_header_compiler"
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 } # ac_fn_c_check_header_mongrel
1935 # ac_fn_c_try_run LINENO
1936 # ----------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1938 # that executables *can* be run.
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if { { ac_try="$ac_link"
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>&5
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1953 { { case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_try") 2>&5
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; }; }; then :
1965 $as_echo "$as_me: program exited with status $ac_status" >&5
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 ac_retval=$ac_status
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1977 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists and can be compiled using the include files in
1980 # INCLUDES, setting the cache variable VAR accordingly.
1981 ac_fn_c_check_header_compile ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1994 if ac_fn_c_try_compile "$LINENO"; then :
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 } # ac_fn_c_check_header_compile
2008 # ac_fn_c_try_link LINENO
2009 # -----------------------
2010 # Try to link conftest.$ac_ext, and return whether this succeeded.
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 rm -f conftest.$ac_objext conftest$ac_exeext
2015 if { { ac_try="$ac_link"
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_link") 2>conftest.err
2024 if test -s conftest.err; then
2025 grep -v '^ *+' conftest.err >conftest.er1
2026 cat conftest.er1 >&5
2027 mv -f conftest.er1 conftest.err
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } && {
2031 test -z "$ac_c_werror_flag" ||
2032 test ! -s conftest.err
2033 } && test -s conftest$ac_exeext && {
2034 test "$cross_compiling" = yes ||
2035 test -x conftest$ac_exeext
2039 $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2044 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2045 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2046 # interfere with the next link command; also delete a directory that is
2047 # left behind by Apple's compiler. We do this before executing the actions.
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2052 } # ac_fn_c_try_link
2054 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2055 # --------------------------------------------
2056 # Tries to find the compile-time value of EXPR in a program that includes
2057 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2059 ac_fn_c_compute_int ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if test "$cross_compiling" = yes; then
2063 # Depending upon the size, compute the lo and hi bounds.
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2070 static int test_array [1 - 2 * !(($2) >= 0)];
2072 return test_array [0];
2078 if ac_fn_c_try_compile "$LINENO"; then :
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 return test_array [0];
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_hi=$ac_mid; break
2098 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2099 if test $ac_lo -le $ac_mid; then
2103 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2114 static int test_array [1 - 2 * !(($2) < 0)];
2116 return test_array [0];
2122 if ac_fn_c_try_compile "$LINENO"; then :
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2133 return test_array [0];
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 ac_lo=$ac_mid; break
2142 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2143 if test $ac_mid -le $ac_hi; then
2147 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 # Binary search between lo and hi bounds.
2158 while test "x$ac_lo" != "x$ac_hi"; do
2159 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2168 return test_array [0];
2174 if ac_fn_c_try_compile "$LINENO"; then :
2177 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2189 static long int longval () { return $2; }
2190 static unsigned long int ulongval () { return $2; }
2197 FILE *f = fopen ("conftest.val", "w");
2202 long int i = longval ();
2205 fprintf (f, "%ld", i);
2209 unsigned long int i = ulongval ();
2212 fprintf (f, "%lu", i);
2214 /* Do not output a trailing newline, as this causes \r\n confusion
2215 on some platforms. */
2216 return ferror (f) || fclose (f) != 0;
2222 if ac_fn_c_try_run "$LINENO"; then :
2223 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2228 conftest.$ac_objext conftest.beam conftest.$ac_ext
2232 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233 as_fn_set_status $ac_retval
2235 } # ac_fn_c_compute_int
2237 # ac_fn_c_check_func LINENO FUNC VAR
2238 # ----------------------------------
2239 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2240 ac_fn_c_check_func ()
2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244 $as_echo_n "checking for $2... " >&6; }
2245 if eval \${$3+:} false; then :
2246 $as_echo_n "(cached) " >&6
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2252 #define $2 innocuous_$2
2254 /* System header to define __stub macros and hopefully few prototypes,
2255 which can conflict with char $2 (); below.
2256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2257 <limits.h> exists even on freestanding compilers. */
2260 # include <limits.h>
2262 # include <assert.h>
2267 /* Override any GCC internal prototype to avoid an error.
2268 Use char because int might match the return type of a GCC
2269 builtin and then its argument prototype would still apply. */
2274 /* The GNU C library defines this for functions which it implements
2275 to always fail with ENOSYS. Some functions are actually named
2276 something starting with __ and the normal name is an alias. */
2277 #if defined __stub_$2 || defined __stub___$2
2289 if ac_fn_c_try_link "$LINENO"; then :
2294 rm -f core conftest.err conftest.$ac_objext \
2295 conftest$ac_exeext conftest.$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302 } # ac_fn_c_check_func
2304 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2305 # ----------------------------------------------------
2306 # Tries to find if the field MEMBER exists in type AGGR, after including
2307 # INCLUDES, setting cache variable VAR accordingly.
2308 ac_fn_c_check_member ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2312 $as_echo_n "checking for $2.$3... " >&6; }
2313 if eval \${$4+:} false; then :
2314 $as_echo_n "(cached) " >&6
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2329 if ac_fn_c_try_compile "$LINENO"; then :
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2339 if (sizeof ac_aggr.$3)
2345 if ac_fn_c_try_compile "$LINENO"; then :
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2357 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359 } # ac_fn_c_check_member
2361 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2362 # -------------------------------------------
2363 # Tests whether TYPE exists after having included INCLUDES, setting cache
2364 # variable VAR accordingly.
2365 ac_fn_c_check_type ()
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 $as_echo_n "checking for $2... " >&6; }
2370 if eval \${$3+:} false; then :
2371 $as_echo_n "(cached) " >&6
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2399 if ac_fn_c_try_compile "$LINENO"; then :
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413 } # ac_fn_c_check_type
2415 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2416 # ---------------------------------------------
2417 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2419 ac_fn_c_check_decl ()
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 as_decl_name=`echo $2|sed 's/ *(.*//'`
2423 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2425 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2426 if eval \${$3+:} false; then :
2427 $as_echo_n "(cached) " >&6
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2435 #ifndef $as_decl_name
2437 (void) $as_decl_use;
2439 (void) $as_decl_name;
2447 if ac_fn_c_try_compile "$LINENO"; then :
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459 } # ac_fn_c_check_decl
2461 # ac_fn_cxx_try_link LINENO
2462 # -------------------------
2463 # Try to link conftest.$ac_ext, and return whether this succeeded.
2464 ac_fn_cxx_try_link ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 rm -f conftest.$ac_objext conftest$ac_exeext
2468 if { { ac_try="$ac_link"
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2474 $as_echo "$ac_try_echo"; } >&5
2475 (eval "$ac_link") 2>conftest.err
2477 if test -s conftest.err; then
2478 grep -v '^ *+' conftest.err >conftest.er1
2479 cat conftest.er1 >&5
2480 mv -f conftest.er1 conftest.err
2482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2483 test $ac_status = 0; } && {
2484 test -z "$ac_cxx_werror_flag" ||
2485 test ! -s conftest.err
2486 } && test -s conftest$ac_exeext && {
2487 test "$cross_compiling" = yes ||
2488 test -x conftest$ac_exeext
2492 $as_echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2497 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2498 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2499 # interfere with the next link command; also delete a directory that is
2500 # left behind by Apple's compiler. We do this before executing the actions.
2501 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2502 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2503 as_fn_set_status $ac_retval
2505 } # ac_fn_cxx_try_link
2506 cat >config.log <<_ACEOF
2507 This file contains any messages produced by compilers while
2508 running configure, to aid debugging if configure makes a mistake.
2510 It was created by $as_me, which was
2511 generated by GNU Autoconf 2.69. Invocation command line was
2523 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2524 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2525 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2526 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2527 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2529 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2530 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2532 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2533 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2534 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2535 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2536 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2537 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2538 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 $as_echo "PATH: $as_dir"
2563 # Keep a trace of the command line.
2564 # Strip out --no-create and --no-recursion so they do not pile up.
2565 # Strip out --silent because we don't want to record it for future runs.
2566 # Also quote any args containing shell meta-characters.
2567 # Make two passes to allow for proper duplicate-argument suppression.
2571 ac_must_keep_next=false
2577 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2579 | -silent | --silent | --silen | --sile | --sil)
2582 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2585 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2587 as_fn_append ac_configure_args1 " '$ac_arg'"
2588 if test $ac_must_keep_next = true; then
2589 ac_must_keep_next=false # Got value, back to normal.
2592 *=* | --config-cache | -C | -disable-* | --disable-* \
2593 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2594 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2595 | -with-* | --with-* | -without-* | --without-* | --x)
2596 case "$ac_configure_args0 " in
2597 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2600 -* ) ac_must_keep_next=true ;;
2603 as_fn_append ac_configure_args " '$ac_arg'"
2608 { ac_configure_args0=; unset ac_configure_args0;}
2609 { ac_configure_args1=; unset ac_configure_args1;}
2611 # When interrupted or exit'd, cleanup temporary files, and complete
2612 # config.log. We remove comments because anyway the quotes in there
2613 # would cause problems or look ugly.
2614 # WARNING: Use '\'' to represent an apostrophe within the trap.
2615 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2616 trap 'exit_status=$?
2617 # Save into config.log some information that might help in debugging.
2621 $as_echo "## ---------------- ##
2622 ## Cache variables. ##
2623 ## ---------------- ##"
2625 # The following way of writing the cache mishandles newlines in values,
2627 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2628 eval ac_val=\$$ac_var
2632 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2633 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2636 _ | IFS | as_nl) ;; #(
2637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2638 *) { eval $ac_var=; unset $ac_var;} ;;
2643 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2644 *${as_nl}ac_space=\ *)
2646 "s/'\''/'\''\\\\'\'''\''/g;
2647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2657 $as_echo "## ----------------- ##
2658 ## Output variables. ##
2659 ## ----------------- ##"
2661 for ac_var in $ac_subst_vars
2663 eval ac_val=\$$ac_var
2665 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2667 $as_echo "$ac_var='\''$ac_val'\''"
2671 if test -n "$ac_subst_files"; then
2672 $as_echo "## ------------------- ##
2673 ## File substitutions. ##
2674 ## ------------------- ##"
2676 for ac_var in $ac_subst_files
2678 eval ac_val=\$$ac_var
2680 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2682 $as_echo "$ac_var='\''$ac_val'\''"
2687 if test -s confdefs.h; then
2688 $as_echo "## ----------- ##
2695 test "$ac_signal" != 0 &&
2696 $as_echo "$as_me: caught signal $ac_signal"
2697 $as_echo "$as_me: exit $exit_status"
2699 rm -f core *.core core.conftest.* &&
2700 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2703 for ac_signal in 1 2 13 15; do
2704 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2708 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2709 rm -f -r conftest* confdefs.h
2711 $as_echo "/* confdefs.h */" > confdefs.h
2713 # Predefined preprocessor variables.
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE_NAME "$PACKAGE_NAME"
2719 cat >>confdefs.h <<_ACEOF
2720 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2723 cat >>confdefs.h <<_ACEOF
2724 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE_STRING "$PACKAGE_STRING"
2731 cat >>confdefs.h <<_ACEOF
2732 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2735 cat >>confdefs.h <<_ACEOF
2736 #define PACKAGE_URL "$PACKAGE_URL"
2740 # Let the site file select an alternate cache file if it wants to.
2741 # Prefer an explicitly selected file to automatically selected ones.
2744 if test -n "$CONFIG_SITE"; then
2745 # We do not want a PATH search for config.site.
2746 case $CONFIG_SITE in #((
2747 -*) ac_site_file1=./$CONFIG_SITE;;
2748 */*) ac_site_file1=$CONFIG_SITE;;
2749 *) ac_site_file1=./$CONFIG_SITE;;
2751 elif test "x$prefix" != xNONE; then
2752 ac_site_file1=$prefix/share/config.site
2753 ac_site_file2=$prefix/etc/config.site
2755 ac_site_file1=$ac_default_prefix/share/config.site
2756 ac_site_file2=$ac_default_prefix/etc/config.site
2758 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2760 test "x$ac_site_file" = xNONE && continue
2761 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2763 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2764 sed 's/^/| /' "$ac_site_file" >&5
2766 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768 as_fn_error $? "failed to load site script $ac_site_file
2769 See \`config.log' for more details" "$LINENO" 5; }
2773 if test -r "$cache_file"; then
2774 # Some versions of bash will fail to source /dev/null (special files
2775 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2776 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2778 $as_echo "$as_me: loading cache $cache_file" >&6;}
2780 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2781 *) . "./$cache_file";;
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2786 $as_echo "$as_me: creating cache $cache_file" >&6;}
2790 as_fn_append ac_header_list " stdlib.h"
2791 as_fn_append ac_header_list " unistd.h"
2792 as_fn_append ac_header_list " sys/param.h"
2793 # Check that the precious variables saved in the cache have kept the same
2795 ac_cache_corrupted=false
2796 for ac_var in $ac_precious_vars; do
2797 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2798 eval ac_new_set=\$ac_env_${ac_var}_set
2799 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2800 eval ac_new_val=\$ac_env_${ac_var}_value
2801 case $ac_old_set,$ac_new_set in
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2804 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2805 ac_cache_corrupted=: ;;
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2808 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2809 ac_cache_corrupted=: ;;
2812 if test "x$ac_old_val" != "x$ac_new_val"; then
2813 # differences in whitespace do not lead to failure.
2814 ac_old_val_w=`echo x $ac_old_val`
2815 ac_new_val_w=`echo x $ac_new_val`
2816 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2818 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2819 ac_cache_corrupted=:
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2822 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2823 eval $ac_var=\$ac_old_val
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2826 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2828 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2831 # Pass precious variables to config.status.
2832 if test "$ac_new_set" = set; then
2834 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2835 *) ac_arg=$ac_var=$ac_new_val ;;
2837 case " $ac_configure_args " in
2838 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2839 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2843 if $ac_cache_corrupted; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2847 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2848 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2850 ## -------------------- ##
2851 ## Main body of script. ##
2852 ## -------------------- ##
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864 ac_config_headers="$ac_config_headers config.h:config.in"
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2868 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2869 # Check whether --enable-maintainer-mode was given.
2870 if test "${enable_maintainer_mode+set}" = set; then :
2871 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2873 USE_MAINTAINER_MODE=no
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2877 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2878 if test $USE_MAINTAINER_MODE = yes; then
2879 MAINTAINER_MODE_TRUE=
2880 MAINTAINER_MODE_FALSE='#'
2882 MAINTAINER_MODE_TRUE='#'
2883 MAINTAINER_MODE_FALSE=
2886 MAINT=$MAINTAINER_MODE_TRUE
2890 # Set the 'development' global.
2891 . $srcdir/../bfd/development.sh
2894 ac_cpp='$CPP $CPPFLAGS'
2895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2898 if test -n "$ac_tool_prefix"; then
2899 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2900 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_CC+:} false; then :
2904 $as_echo_n "(cached) " >&6
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 if test -n "$CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929 $as_echo "$CC" >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2937 if test -z "$ac_cv_prog_CC"; then
2939 # Extract the first word of "gcc", so it can be a program name with args.
2940 set dummy gcc; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2944 $as_echo_n "(cached) " >&6
2946 if test -n "$ac_ct_CC"; then
2947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_ac_ct_CC="gcc"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2967 if test -n "$ac_ct_CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2969 $as_echo "$ac_ct_CC" >&6; }
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2975 if test "x$ac_ct_CC" = x; then
2978 case $cross_compiling:$ac_tool_warned in
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982 ac_tool_warned=yes ;;
2990 if test -z "$CC"; then
2991 if test -n "$ac_tool_prefix"; then
2992 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2993 set dummy ${ac_tool_prefix}cc; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if ${ac_cv_prog_CC+:} false; then :
2997 $as_echo_n "(cached) " >&6
2999 if test -n "$CC"; then
3000 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3009 ac_cv_prog_CC="${ac_tool_prefix}cc"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 if test -n "$CC"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3022 $as_echo "$CC" >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3031 if test -z "$CC"; then
3032 # Extract the first word of "cc", so it can be a program name with args.
3033 set dummy cc; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_CC+:} false; then :
3037 $as_echo_n "(cached) " >&6
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3051 ac_prog_rejected=yes
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 if test $ac_prog_rejected = yes; then
3063 # We found a bogon in the path, so make sure we never use it.
3064 set dummy $ac_cv_prog_CC
3066 if test $# != 0; then
3067 # We chose a different compiler from the bogus one.
3068 # However, it has the same basename, so the bogon will be chosen
3069 # first if we set CC to just the basename; use the full file name.
3071 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3087 if test -z "$CC"; then
3088 if test -n "$ac_tool_prefix"; then
3089 for ac_prog in cl.exe
3091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_CC+:} false; then :
3096 $as_echo_n "(cached) " >&6
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 if test -n "$CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121 $as_echo "$CC" >&6; }
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3128 test -n "$CC" && break
3131 if test -z "$CC"; then
3133 for ac_prog in cl.exe
3135 # Extract the first word of "$ac_prog", so it can be a program name with args.
3136 set dummy $ac_prog; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3140 $as_echo_n "(cached) " >&6
3142 if test -n "$ac_ct_CC"; then
3143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_ac_ct_CC="$ac_prog"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3163 if test -n "$ac_ct_CC"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3165 $as_echo "$ac_ct_CC" >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3172 test -n "$ac_ct_CC" && break
3175 if test "x$ac_ct_CC" = x; then
3178 case $cross_compiling:$ac_tool_warned in
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3182 ac_tool_warned=yes ;;
3191 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error $? "no acceptable C compiler found in \$PATH
3194 See \`config.log' for more details" "$LINENO" 5; }
3196 # Provide some information about the compiler.
3197 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3200 for ac_option in --version -v -V -qversion; do
3201 { { ac_try="$ac_compiler $ac_option >&5"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3210 if test -s conftest.err; then
3212 ... rest of stderr output deleted ...
3213 10q' conftest.err >conftest.er1
3214 cat conftest.er1 >&5
3216 rm -f conftest.er1 conftest.err
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3232 ac_clean_files_save=$ac_clean_files
3233 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3234 # Try to create an executable without -o first, disregard a.out.
3235 # It will help us diagnose broken compilers, and finding out an intuition
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3238 $as_echo_n "checking whether the C compiler works... " >&6; }
3239 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3241 # The possible output files:
3242 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3245 for ac_file in $ac_files
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3249 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254 if { { ac_try="$ac_link_default"
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_default") 2>&5
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; then :
3265 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3266 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3267 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3268 # so that the user can short-circuit this test for compilers unknown to
3270 for ac_file in $ac_files ''
3272 test -f "$ac_file" || continue
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3277 # We found the default executable, but exeext='' is most
3281 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3283 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3285 # We set ac_cv_exeext here because the later test for it is not
3286 # safe: cross compilers may not add the suffix if given an `-o'
3287 # argument, so we may need to know it at that point already.
3288 # Even if this section looks crufty: it has the advantage of
3295 test "$ac_cv_exeext" = no && ac_cv_exeext=
3300 if test -z "$ac_file"; then :
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 $as_echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308 as_fn_error 77 "C compiler cannot create executables
3309 See \`config.log' for more details" "$LINENO" 5; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3312 $as_echo "yes" >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3315 $as_echo_n "checking for C compiler default output file name... " >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3317 $as_echo "$ac_file" >&6; }
3318 ac_exeext=$ac_cv_exeext
3320 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3321 ac_clean_files=$ac_clean_files_save
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3323 $as_echo_n "checking for suffix of executables... " >&6; }
3324 if { { ac_try="$ac_link"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330 $as_echo "$ac_try_echo"; } >&5
3331 (eval "$ac_link") 2>&5
3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334 test $ac_status = 0; }; then :
3335 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3336 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3337 # work properly (i.e., refer to `conftest.exe'), while it won't with
3339 for ac_file in conftest.exe conftest conftest.*; do
3340 test -f "$ac_file" || continue
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3343 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3352 See \`config.log' for more details" "$LINENO" 5; }
3354 rm -f conftest conftest$ac_cv_exeext
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3356 $as_echo "$ac_cv_exeext" >&6; }
3358 rm -f conftest.$ac_ext
3359 EXEEXT=$ac_cv_exeext
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3367 FILE *f = fopen ("conftest.out", "w");
3368 return ferror (f) || fclose (f) != 0;
3374 ac_clean_files="$ac_clean_files conftest.out"
3375 # Check that the compiler produces executables we can run. If not, either
3376 # the compiler is broken, or we cross compile.
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3378 $as_echo_n "checking whether we are cross compiling... " >&6; }
3379 if test "$cross_compiling" != yes; then
3380 { { ac_try="$ac_link"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_link") 2>&5
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3391 if { ac_try='./conftest$ac_cv_exeext'
3392 { { case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_try") 2>&5
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }; }; then
3404 if test "$cross_compiling" = maybe; then
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error $? "cannot run C compiled programs.
3410 If you meant to cross compile, use \`--host'.
3411 See \`config.log' for more details" "$LINENO" 5; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3416 $as_echo "$cross_compiling" >&6; }
3418 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3419 ac_clean_files=$ac_clean_files_save
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3421 $as_echo_n "checking for suffix of object files... " >&6; }
3422 if ${ac_cv_objext+:} false; then :
3423 $as_echo_n "(cached) " >&6
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3436 rm -f conftest.o conftest.obj
3437 if { { ac_try="$ac_compile"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_compile") 2>&5
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; then :
3448 for ac_file in conftest.o conftest.obj conftest.*; do
3449 test -f "$ac_file" || continue;
3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3452 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457 $as_echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error $? "cannot compute suffix of object files: cannot compile
3463 See \`config.log' for more details" "$LINENO" 5; }
3465 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3468 $as_echo "$ac_cv_objext" >&6; }
3469 OBJEXT=$ac_cv_objext
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3472 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3473 if ${ac_cv_c_compiler_gnu+:} false; then :
3474 $as_echo_n "(cached) " >&6
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3490 if ac_fn_c_try_compile "$LINENO"; then :
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3500 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3501 if test $ac_compiler_gnu = yes; then
3506 ac_test_CFLAGS=${CFLAGS+set}
3507 ac_save_CFLAGS=$CFLAGS
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3509 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3510 if ${ac_cv_prog_cc_g+:} false; then :
3511 $as_echo_n "(cached) " >&6
3513 ac_save_c_werror_flag=$ac_c_werror_flag
3514 ac_c_werror_flag=yes
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3528 if ac_fn_c_try_compile "$LINENO"; then :
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3543 if ac_fn_c_try_compile "$LINENO"; then :
3546 ac_c_werror_flag=$ac_save_c_werror_flag
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3559 if ac_fn_c_try_compile "$LINENO"; then :
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 ac_c_werror_flag=$ac_save_c_werror_flag
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3570 $as_echo "$ac_cv_prog_cc_g" >&6; }
3571 if test "$ac_test_CFLAGS" = set; then
3572 CFLAGS=$ac_save_CFLAGS
3573 elif test $ac_cv_prog_cc_g = yes; then
3574 if test "$GCC" = yes; then
3580 if test "$GCC" = yes; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3587 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3588 if ${ac_cv_prog_cc_c89+:} false; then :
3589 $as_echo_n "(cached) " >&6
3591 ac_cv_prog_cc_c89=no
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3599 struct buf { int x; };
3600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3601 static char *e (p, i)
3607 static char *f (char * (*g) (char **, int), char **p, ...)
3612 s = g (p, va_arg (v,int));
3617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3618 function prototypes and stuff, but not '\xHH' hex character constants.
3619 These don't provoke an error unfortunately, instead are silently treated
3620 as 'x'. The following induces an error, until -std is added to get
3621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3622 array size at least. It's necessary to write '\x00'==0 to get something
3623 that's true only with -std. */
3624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3627 inside strings and character constants. */
3629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3631 int test (int i, double x);
3632 struct s1 {int (*f) (int a);};
3633 struct s2 {int (*f) (double a);};
3634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3640 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3648 CC="$ac_save_CC $ac_arg"
3649 if ac_fn_c_try_compile "$LINENO"; then :
3650 ac_cv_prog_cc_c89=$ac_arg
3652 rm -f core conftest.err conftest.$ac_objext
3653 test "x$ac_cv_prog_cc_c89" != "xno" && break
3655 rm -f conftest.$ac_ext
3660 case "x$ac_cv_prog_cc_c89" in
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3663 $as_echo "none needed" >&6; } ;;
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3666 $as_echo "unsupported" >&6; } ;;
3668 CC="$CC $ac_cv_prog_cc_c89"
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3670 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3672 if test "x$ac_cv_prog_cc_c89" != xno; then :
3677 ac_cpp='$CPP $CPPFLAGS'
3678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683 ac_cpp='$CXXCPP $CPPFLAGS'
3684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3687 if test -z "$CXX"; then
3688 if test -n "$CCC"; then
3691 if test -n "$ac_tool_prefix"; then
3692 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_CXX+:} false; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$CXX"; then
3702 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 if test -n "$CXX"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3724 $as_echo "$CXX" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$CXX" && break
3734 if test -z "$CXX"; then
3736 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739 set dummy $ac_prog; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3743 $as_echo_n "(cached) " >&6
3745 if test -n "$ac_ct_CXX"; then
3746 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755 ac_cv_prog_ac_ct_CXX="$ac_prog"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3766 if test -n "$ac_ct_CXX"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3768 $as_echo "$ac_ct_CXX" >&6; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3775 test -n "$ac_ct_CXX" && break
3778 if test "x$ac_ct_CXX" = x; then
3781 case $cross_compiling:$ac_tool_warned in
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned=yes ;;
3793 # Provide some information about the compiler.
3794 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3797 for ac_option in --version -v -V -qversion; do
3798 { { ac_try="$ac_compiler $ac_option >&5"
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3807 if test -s conftest.err; then
3809 ... rest of stderr output deleted ...
3810 10q' conftest.err >conftest.er1
3811 cat conftest.er1 >&5
3813 rm -f conftest.er1 conftest.err
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3819 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3820 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3837 if ac_fn_cxx_try_compile "$LINENO"; then :
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3847 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3848 if test $ac_compiler_gnu = yes; then
3853 ac_test_CXXFLAGS=${CXXFLAGS+set}
3854 ac_save_CXXFLAGS=$CXXFLAGS
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3856 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3857 if ${ac_cv_prog_cxx_g+:} false; then :
3858 $as_echo_n "(cached) " >&6
3860 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3861 ac_cxx_werror_flag=yes
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3875 if ac_fn_cxx_try_compile "$LINENO"; then :
3876 ac_cv_prog_cxx_g=yes
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3890 if ac_fn_cxx_try_compile "$LINENO"; then :
3893 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3906 if ac_fn_cxx_try_compile "$LINENO"; then :
3907 ac_cv_prog_cxx_g=yes
3909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3917 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3918 if test "$ac_test_CXXFLAGS" = set; then
3919 CXXFLAGS=$ac_save_CXXFLAGS
3920 elif test $ac_cv_prog_cxx_g = yes; then
3921 if test "$GXX" = yes; then
3927 if test "$GXX" = yes; then
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3947 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3948 # On Suns, sometimes $CPP names a directory.
3949 if test -n "$CPP" && test -d "$CPP"; then
3952 if test -z "$CPP"; then
3953 if ${ac_cv_prog_CPP+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 # Double quotes because CPP needs to be expanded
3957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3960 for ac_c_preproc_warn_flag in '' yes
3962 # Use a header file that comes with gcc, so configuring glibc
3963 # with a fresh cross-compiler works.
3964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3965 # <limits.h> exists even on freestanding compilers.
3966 # On the NeXT, cc -E runs the code through the compiler's parser,
3967 # not just through cpp. "Syntax error" is here to catch this case.
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3971 # include <limits.h>
3973 # include <assert.h>
3977 if ac_fn_c_try_cpp "$LINENO"; then :
3980 # Broken: fails on valid input.
3983 rm -f conftest.err conftest.i conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether nonexistent headers
3986 # can be detected and how.
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989 #include <ac_nonexistent.h>
3991 if ac_fn_c_try_cpp "$LINENO"; then :
3992 # Broken: success on invalid input.
3995 # Passes both tests.
3999 rm -f conftest.err conftest.i conftest.$ac_ext
4002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4003 rm -f conftest.i conftest.err conftest.$ac_ext
4004 if $ac_preproc_ok; then :
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4017 $as_echo "$CPP" >&6; }
4019 for ac_c_preproc_warn_flag in '' yes
4021 # Use a header file that comes with gcc, so configuring glibc
4022 # with a fresh cross-compiler works.
4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024 # <limits.h> exists even on freestanding compilers.
4025 # On the NeXT, cc -E runs the code through the compiler's parser,
4026 # not just through cpp. "Syntax error" is here to catch this case.
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4030 # include <limits.h>
4032 # include <assert.h>
4036 if ac_fn_c_try_cpp "$LINENO"; then :
4039 # Broken: fails on valid input.
4042 rm -f conftest.err conftest.i conftest.$ac_ext
4044 # OK, works on sane cases. Now check whether nonexistent headers
4045 # can be detected and how.
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 #include <ac_nonexistent.h>
4050 if ac_fn_c_try_cpp "$LINENO"; then :
4051 # Broken: success on invalid input.
4054 # Passes both tests.
4058 rm -f conftest.err conftest.i conftest.$ac_ext
4061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4062 rm -f conftest.i conftest.err conftest.$ac_ext
4063 if $ac_preproc_ok; then :
4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4068 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4069 See \`config.log' for more details" "$LINENO" 5; }
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4080 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4081 if ${ac_cv_path_GREP+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 if test -z "$GREP"; then
4085 ac_path_GREP_found=false
4086 # Loop through the user's path and test for each of PROGNAME-LIST
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4091 test -z "$as_dir" && as_dir=.
4092 for ac_prog in grep ggrep; do
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4095 as_fn_executable_p "$ac_path_GREP" || continue
4096 # Check for GNU ac_path_GREP and select it if it is found.
4097 # Check for GNU $ac_path_GREP
4098 case `"$ac_path_GREP" --version 2>&1` in
4100 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4103 $as_echo_n 0123456789 >"conftest.in"
4106 cat "conftest.in" "conftest.in" >"conftest.tmp"
4107 mv "conftest.tmp" "conftest.in"
4108 cp "conftest.in" "conftest.nl"
4109 $as_echo 'GREP' >> "conftest.nl"
4110 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4112 as_fn_arith $ac_count + 1 && ac_count=$as_val
4113 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4114 # Best one so far, save it but keep looking for a better one
4115 ac_cv_path_GREP="$ac_path_GREP"
4116 ac_path_GREP_max=$ac_count
4118 # 10*(2^10) chars as input seems more than enough
4119 test $ac_count -gt 10 && break
4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4124 $ac_path_GREP_found && break 3
4129 if test -z "$ac_cv_path_GREP"; then
4130 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4133 ac_cv_path_GREP=$GREP
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4138 $as_echo "$ac_cv_path_GREP" >&6; }
4139 GREP="$ac_cv_path_GREP"
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4143 $as_echo_n "checking for egrep... " >&6; }
4144 if ${ac_cv_path_EGREP+:} false; then :
4145 $as_echo_n "(cached) " >&6
4147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4148 then ac_cv_path_EGREP="$GREP -E"
4150 if test -z "$EGREP"; then
4151 ac_path_EGREP_found=false
4152 # Loop through the user's path and test for each of PROGNAME-LIST
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157 test -z "$as_dir" && as_dir=.
4158 for ac_prog in egrep; do
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4161 as_fn_executable_p "$ac_path_EGREP" || continue
4162 # Check for GNU ac_path_EGREP and select it if it is found.
4163 # Check for GNU $ac_path_EGREP
4164 case `"$ac_path_EGREP" --version 2>&1` in
4166 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4169 $as_echo_n 0123456789 >"conftest.in"
4172 cat "conftest.in" "conftest.in" >"conftest.tmp"
4173 mv "conftest.tmp" "conftest.in"
4174 cp "conftest.in" "conftest.nl"
4175 $as_echo 'EGREP' >> "conftest.nl"
4176 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4178 as_fn_arith $ac_count + 1 && ac_count=$as_val
4179 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4180 # Best one so far, save it but keep looking for a better one
4181 ac_cv_path_EGREP="$ac_path_EGREP"
4182 ac_path_EGREP_max=$ac_count
4184 # 10*(2^10) chars as input seems more than enough
4185 test $ac_count -gt 10 && break
4187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190 $ac_path_EGREP_found && break 3
4195 if test -z "$ac_cv_path_EGREP"; then
4196 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4199 ac_cv_path_EGREP=$EGREP
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4205 $as_echo "$ac_cv_path_EGREP" >&6; }
4206 EGREP="$ac_cv_path_EGREP"
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4210 $as_echo_n "checking for ANSI C header files... " >&6; }
4211 if ${ac_cv_header_stdc+:} false; then :
4212 $as_echo_n "(cached) " >&6
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_header_stdc=yes
4232 ac_cv_header_stdc=no
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 if test $ac_cv_header_stdc = yes; then
4237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 $EGREP "memchr" >/dev/null 2>&1; then :
4247 ac_cv_header_stdc=no
4253 if test $ac_cv_header_stdc = yes; then
4254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 $EGREP "free" >/dev/null 2>&1; then :
4264 ac_cv_header_stdc=no
4270 if test $ac_cv_header_stdc = yes; then
4271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4272 if test "$cross_compiling" = yes; then :
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4279 #if ((' ' & 0x0FF) == 0x020)
4280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4283 # define ISLOWER(c) \
4284 (('a' <= (c) && (c) <= 'i') \
4285 || ('j' <= (c) && (c) <= 'r') \
4286 || ('s' <= (c) && (c) <= 'z'))
4287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4295 for (i = 0; i < 256; i++)
4296 if (XOR (islower (i), ISLOWER (i))
4297 || toupper (i) != TOUPPER (i))
4302 if ac_fn_c_try_run "$LINENO"; then :
4305 ac_cv_header_stdc=no
4307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4308 conftest.$ac_objext conftest.beam conftest.$ac_ext
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4314 $as_echo "$ac_cv_header_stdc" >&6; }
4315 if test $ac_cv_header_stdc = yes; then
4317 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4322 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4323 inttypes.h stdint.h unistd.h
4325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4326 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4328 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4329 cat >>confdefs.h <<_ACEOF
4330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4339 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4340 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4347 if test "$MINIX" = yes; then
4349 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4352 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4355 $as_echo "#define _MINIX 1" >>confdefs.h
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4361 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4362 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4363 $as_echo_n "(cached) " >&6
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4368 # define __EXTENSIONS__ 1
4369 $ac_includes_default
4378 if ac_fn_c_try_compile "$LINENO"; then :
4379 ac_cv_safe_to_define___extensions__=yes
4381 ac_cv_safe_to_define___extensions__=no
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4386 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4387 test $ac_cv_safe_to_define___extensions__ = yes &&
4388 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4390 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4392 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4394 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4396 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4400 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4401 if test -f "$ac_dir/install-sh"; then
4403 ac_install_sh="$ac_aux_dir/install-sh -c"
4405 elif test -f "$ac_dir/install.sh"; then
4407 ac_install_sh="$ac_aux_dir/install.sh -c"
4409 elif test -f "$ac_dir/shtool"; then
4411 ac_install_sh="$ac_aux_dir/shtool install -c"
4415 if test -z "$ac_aux_dir"; then
4416 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4419 # These three variables are undocumented and unsupported,
4420 # and are intended to be withdrawn in a future Autoconf release.
4421 # They can cause serious problems if a builder's source tree is in a directory
4422 # whose full name contains unusual characters.
4423 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4424 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4425 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4428 # Make sure we can run config.sub.
4429 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4430 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4433 $as_echo_n "checking build system type... " >&6; }
4434 if ${ac_cv_build+:} false; then :
4435 $as_echo_n "(cached) " >&6
4437 ac_build_alias=$build_alias
4438 test "x$ac_build_alias" = x &&
4439 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4440 test "x$ac_build_alias" = x &&
4441 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4442 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4447 $as_echo "$ac_cv_build" >&6; }
4448 case $ac_cv_build in
4450 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4453 ac_save_IFS=$IFS; IFS='-'
4459 # Remember, the first character of IFS is used to create $*,
4460 # except with old shells:
4463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4467 $as_echo_n "checking host system type... " >&6; }
4468 if ${ac_cv_host+:} false; then :
4469 $as_echo_n "(cached) " >&6
4471 if test "x$host_alias" = x; then
4472 ac_cv_host=$ac_cv_build
4474 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4475 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4480 $as_echo "$ac_cv_host" >&6; }
4483 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4486 ac_save_IFS=$IFS; IFS='-'
4492 # Remember, the first character of IFS is used to create $*,
4493 # except with old shells:
4496 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4500 $as_echo_n "checking target system type... " >&6; }
4501 if ${ac_cv_target+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 if test "x$target_alias" = x; then
4505 ac_cv_target=$ac_cv_host
4507 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4513 $as_echo "$ac_cv_target" >&6; }
4514 case $ac_cv_target in
4516 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4518 target=$ac_cv_target
4519 ac_save_IFS=$IFS; IFS='-'
4525 # Remember, the first character of IFS is used to create $*,
4526 # except with old shells:
4529 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4532 # The aliases save the names the user supplied, while $host etc.
4533 # will get canonicalized.
4534 test -n "$target_alias" &&
4535 test "$program_prefix$program_suffix$program_transform_name" = \
4537 program_prefix=${target_alias}-
4539 # The tests for host and target for $enable_largefile require
4544 # As the $enable_largefile decision depends on --enable-plugins we must set it
4545 # even in directories otherwise not depending on the $plugins option.
4549 for ac_header in dlfcn.h
4551 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4553 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4554 cat >>confdefs.h <<_ACEOF
4555 #define HAVE_DLFCN_H 1
4562 for ac_header in windows.h
4564 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4566 if test "x$ac_cv_header_windows_h" = xyes; then :
4567 cat >>confdefs.h <<_ACEOF
4568 #define HAVE_WINDOWS_H 1
4576 # Check whether --enable-plugins was given.
4577 if test "${enable_plugins+set}" = set; then :
4578 enableval=$enable_plugins; case "${enableval}" in
4581 if test "$maybe_plugins" != "yes" ; then
4582 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4586 plugins=$maybe_plugins
4590 if test "$plugins" = "yes"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4592 $as_echo_n "checking for library containing dlsym... " >&6; }
4593 if ${ac_cv_search_dlsym+:} false; then :
4594 $as_echo_n "(cached) " >&6
4596 ac_func_search_save_LIBS=$LIBS
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4600 /* Override any GCC internal prototype to avoid an error.
4601 Use char because int might match the return type of a GCC
4602 builtin and then its argument prototype would still apply. */
4615 for ac_lib in '' dl; do
4616 if test -z "$ac_lib"; then
4617 ac_res="none required"
4620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4622 if ac_fn_c_try_link "$LINENO"; then :
4623 ac_cv_search_dlsym=$ac_res
4625 rm -f core conftest.err conftest.$ac_objext \
4627 if ${ac_cv_search_dlsym+:} false; then :
4631 if ${ac_cv_search_dlsym+:} false; then :
4634 ac_cv_search_dlsym=no
4637 LIBS=$ac_func_search_save_LIBS
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4640 $as_echo "$ac_cv_search_dlsym" >&6; }
4641 ac_res=$ac_cv_search_dlsym
4642 if test "$ac_res" != no; then :
4643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4651 sparc-*-solaris*|i[3-7]86-*-solaris*)
4652 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4653 # are mutually exclusive; and without procfs support, the bfd/ elf module
4654 # cannot provide certain routines such as elfcore_write_prpsinfo
4655 # or elfcore_write_prstatus. So unless the user explicitly requested
4656 # large-file support through the --enable-largefile switch, disable
4657 # large-file support in favor of procfs support.
4658 test "${target}" = "${host}" -a "x$plugins" = xno \
4659 && : ${enable_largefile="no"}
4663 # Check whether --enable-largefile was given.
4664 if test "${enable_largefile+set}" = set; then :
4665 enableval=$enable_largefile;
4668 if test "$enable_largefile" != no; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4671 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4672 if ${ac_cv_sys_largefile_CC+:} false; then :
4673 $as_echo_n "(cached) " >&6
4675 ac_cv_sys_largefile_CC=no
4676 if test "$GCC" != yes; then
4679 # IRIX 6.2 and later do not support large files by default,
4680 # so use the C compiler's -n32 option if that helps.
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 #include <sys/types.h>
4684 /* Check that off_t can represent 2**63 - 1 correctly.
4685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4686 since some C++ compilers masquerading as C compilers
4687 incorrectly reject 9223372036854775807. */
4688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4690 && LARGE_OFF_T % 2147483647 == 1)
4700 if ac_fn_c_try_compile "$LINENO"; then :
4703 rm -f core conftest.err conftest.$ac_objext
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_cv_sys_largefile_CC=' -n32'; break
4708 rm -f core conftest.err conftest.$ac_objext
4712 rm -f conftest.$ac_ext
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4716 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4717 if test "$ac_cv_sys_largefile_CC" != no; then
4718 CC=$CC$ac_cv_sys_largefile_CC
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4722 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4723 if ${ac_cv_sys_file_offset_bits+:} false; then :
4724 $as_echo_n "(cached) " >&6
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 #include <sys/types.h>
4730 /* Check that off_t can represent 2**63 - 1 correctly.
4731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4732 since some C++ compilers masquerading as C compilers
4733 incorrectly reject 9223372036854775807. */
4734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4736 && LARGE_OFF_T % 2147483647 == 1)
4746 if ac_fn_c_try_compile "$LINENO"; then :
4747 ac_cv_sys_file_offset_bits=no; break
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752 #define _FILE_OFFSET_BITS 64
4753 #include <sys/types.h>
4754 /* Check that off_t can represent 2**63 - 1 correctly.
4755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4756 since some C++ compilers masquerading as C compilers
4757 incorrectly reject 9223372036854775807. */
4758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4760 && LARGE_OFF_T % 2147483647 == 1)
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_sys_file_offset_bits=64; break
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cv_sys_file_offset_bits=unknown
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4779 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4780 case $ac_cv_sys_file_offset_bits in #(
4783 cat >>confdefs.h <<_ACEOF
4784 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4789 if test $ac_cv_sys_file_offset_bits = unknown; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4791 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4792 if ${ac_cv_sys_large_files+:} false; then :
4793 $as_echo_n "(cached) " >&6
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 #include <sys/types.h>
4799 /* Check that off_t can represent 2**63 - 1 correctly.
4800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4801 since some C++ compilers masquerading as C compilers
4802 incorrectly reject 9223372036854775807. */
4803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4805 && LARGE_OFF_T % 2147483647 == 1)
4815 if ac_fn_c_try_compile "$LINENO"; then :
4816 ac_cv_sys_large_files=no; break
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821 #define _LARGE_FILES 1
4822 #include <sys/types.h>
4823 /* Check that off_t can represent 2**63 - 1 correctly.
4824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4825 since some C++ compilers masquerading as C compilers
4826 incorrectly reject 9223372036854775807. */
4827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4829 && LARGE_OFF_T % 2147483647 == 1)
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840 ac_cv_sys_large_files=1; break
4842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843 ac_cv_sys_large_files=unknown
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4848 $as_echo "$ac_cv_sys_large_files" >&6; }
4849 case $ac_cv_sys_large_files in #(
4852 cat >>confdefs.h <<_ACEOF
4853 #define _LARGE_FILES $ac_cv_sys_large_files
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4868 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4869 if ${am_cv_prog_cc_stdc+:} false; then :
4870 $as_echo_n "(cached) " >&6
4872 am_cv_prog_cc_stdc=no
4874 # Don't try gcc -ansi; that turns off useful extensions and
4875 # breaks some systems' header files.
4876 # AIX -qlanglvl=ansi
4877 # Ultrix and OSF/1 -std1
4878 # HP-UX 10.20 and later -Ae
4879 # HP-UX older versions -Aa -D_HPUX_SOURCE
4880 # SVR4 -Xc -D__EXTENSIONS__
4881 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4883 CC="$ac_save_CC $ac_arg"
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4888 #include <sys/types.h>
4889 #include <sys/stat.h>
4890 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4891 struct buf { int x; };
4892 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4893 static char *e (p, i)
4899 static char *f (char * (*g) (char **, int), char **p, ...)
4904 s = g (p, va_arg (v,int));
4908 int test (int i, double x);
4909 struct s1 {int (*f) (int a);};
4910 struct s2 {int (*f) (double a);};
4911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4925 if ac_fn_c_try_compile "$LINENO"; then :
4926 am_cv_prog_cc_stdc="$ac_arg"; break
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 if test -z "$am_cv_prog_cc_stdc"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4936 $as_echo "none needed" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4939 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4941 case "x$am_cv_prog_cc_stdc" in
4943 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4946 # Expand $ac_aux_dir to an absolute path.
4947 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4949 if test x"${install_sh+set}" != xset; then
4952 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4954 install_sh="\${SHELL} $am_aux_dir/install-sh"
4958 # Installed binaries are usually stripped using 'strip' when the user
4959 # run "make install-strip". However 'strip' might not be the right
4960 # tool to use in cross-compilation environments, therefore Automake
4961 # will honor the 'STRIP' environment variable to overrule this program.
4962 if test "$cross_compiling" != no; then
4963 if test -n "$ac_tool_prefix"; then
4964 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4965 set dummy ${ac_tool_prefix}strip; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_STRIP+:} false; then :
4969 $as_echo_n "(cached) " >&6
4971 if test -n "$STRIP"; then
4972 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 STRIP=$ac_cv_prog_STRIP
4992 if test -n "$STRIP"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4994 $as_echo "$STRIP" >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5002 if test -z "$ac_cv_prog_STRIP"; then
5004 # Extract the first word of "strip", so it can be a program name with args.
5005 set dummy strip; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5009 $as_echo_n "(cached) " >&6
5011 if test -n "$ac_ct_STRIP"; then
5012 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_ac_ct_STRIP="strip"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5032 if test -n "$ac_ct_STRIP"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5034 $as_echo "$ac_ct_STRIP" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5040 if test "x$ac_ct_STRIP" = x; then
5043 case $cross_compiling:$ac_tool_warned in
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5052 STRIP="$ac_cv_prog_STRIP"
5056 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5060 for ac_dir in .. "$srcdir"/..; do
5061 if test -f "$ac_dir/install-sh"; then
5063 ac_install_sh="$ac_aux_dir/install-sh -c"
5065 elif test -f "$ac_dir/install.sh"; then
5067 ac_install_sh="$ac_aux_dir/install.sh -c"
5069 elif test -f "$ac_dir/shtool"; then
5071 ac_install_sh="$ac_aux_dir/shtool install -c"
5075 if test -z "$ac_aux_dir"; then
5076 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5079 # These three variables are undocumented and unsupported,
5080 # and are intended to be withdrawn in a future Autoconf release.
5081 # They can cause serious problems if a builder's source tree is in a directory
5082 # whose full name contains unusual characters.
5083 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5084 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5085 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5089 test "$program_prefix" != NONE &&
5090 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5091 # Use a double $ so make ignores it.
5092 test "$program_suffix" != NONE &&
5093 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5094 # Double any \ or $.
5095 # By default was `s,x,x', remove it if useless.
5096 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5097 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5100 # We require a C++11 compiler. Check if one is available, and if
5101 # necessary, set CXX_DIALECT to some -std=xxx switch.
5103 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5105 ac_cpp='$CXXCPP $CPPFLAGS'
5106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5112 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5113 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5114 $as_echo_n "(cached) " >&6
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5120 // If the compiler admits that it is not ready for C++11, why torture it?
5121 // Hopefully, this will speed up the test.
5125 #error "This is not a C++ compiler"
5127 #elif __cplusplus < 201103L
5129 #error "This is not a C++11 compiler"
5136 namespace test_static_assert
5139 template <typename T>
5142 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5147 namespace test_final_override
5155 struct Derived : public Base
5157 virtual void f() override {}
5162 namespace test_double_right_angle_brackets
5165 template < typename T >
5168 typedef check<void> single_type;
5169 typedef check<check<void>> double_type;
5170 typedef check<check<check<void>>> triple_type;
5171 typedef check<check<check<check<void>>>> quadruple_type;
5175 namespace test_decltype
5188 namespace test_type_deduction
5191 template < typename T1, typename T2 >
5194 static const bool value = false;
5197 template < typename T >
5198 struct is_same<T, T>
5200 static const bool value = true;
5203 template < typename T1, typename T2 >
5205 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5211 test(const int c, volatile int v)
5213 static_assert(is_same<int, decltype(0)>::value == true, "");
5214 static_assert(is_same<int, decltype(c)>::value == false, "");
5215 static_assert(is_same<int, decltype(v)>::value == false, "");
5218 auto sumi = ac + av + 'x';
5219 auto sumf = ac + av + 1.0;
5220 static_assert(is_same<int, decltype(ac)>::value == true, "");
5221 static_assert(is_same<int, decltype(av)>::value == true, "");
5222 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5223 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5224 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5225 return (sumf > 0.0) ? sumi : add(c, v);
5230 namespace test_noexcept
5233 int f() { return 0; }
5234 int g() noexcept { return 0; }
5236 static_assert(noexcept(f()) == false, "");
5237 static_assert(noexcept(g()) == true, "");
5241 namespace test_constexpr
5244 template < typename CharT >
5245 unsigned long constexpr
5246 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5248 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5251 template < typename CharT >
5252 unsigned long constexpr
5253 strlen_c(const CharT *const s) noexcept
5255 return strlen_c_r(s, 0UL);
5258 static_assert(strlen_c("") == 0UL, "");
5259 static_assert(strlen_c("1") == 1UL, "");
5260 static_assert(strlen_c("example") == 7UL, "");
5261 static_assert(strlen_c("another\0example") == 7UL, "");
5265 namespace test_rvalue_references
5271 static constexpr int value = N;
5274 answer<1> f(int&) { return answer<1>(); }
5275 answer<2> f(const int&) { return answer<2>(); }
5276 answer<3> f(int&&) { return answer<3>(); }
5283 static_assert(decltype(f(i))::value == 1, "");
5284 static_assert(decltype(f(c))::value == 2, "");
5285 static_assert(decltype(f(0))::value == 3, "");
5290 namespace test_uniform_initialization
5295 static const int zero {};
5296 static const int one {1};
5299 static_assert(test::zero == 0, "");
5300 static_assert(test::one == 1, "");
5304 namespace test_lambdas
5310 auto lambda1 = [](){};
5311 auto lambda2 = lambda1;
5319 auto a = [](int i, int j){ return i + j; }(1, 2);
5320 auto b = []() -> int { return '0'; }();
5321 auto c = [=](){ return a + b; }();
5322 auto d = [&](){ return c; }();
5323 auto e = [a, &b](int x) mutable {
5324 const auto identity = [](int y){ return y; };
5325 for (auto i = 0; i < a; ++i)
5327 return x + identity(a + b);
5329 return a + b + c + d + e;
5335 const auto nullary = [](){ return 0; };
5336 const auto unary = [](int x){ return x; };
5337 using nullary_t = decltype(nullary);
5338 using unary_t = decltype(unary);
5339 const auto higher1st = [](nullary_t f){ return f(); };
5340 const auto higher2nd = [unary](nullary_t f1){
5341 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5343 return higher1st(nullary) + higher2nd(nullary)(unary);
5348 namespace test_variadic_templates
5354 template <int N0, int... N1toN>
5355 struct sum<N0, N1toN...>
5357 static constexpr auto value = N0 + sum<N1toN...>::value;
5363 static constexpr auto value = 0;
5366 static_assert(sum<>::value == 0, "");
5367 static_assert(sum<1>::value == 1, "");
5368 static_assert(sum<23>::value == 23, "");
5369 static_assert(sum<1, 2>::value == 3, "");
5370 static_assert(sum<5, 5, 11>::value == 21, "");
5371 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5375 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5376 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5378 namespace test_template_alias_sfinae
5383 template<typename T>
5384 using member = typename T::member_type;
5386 template<typename T>
5389 template<typename T>
5390 void func(member<T>*) {}
5394 void test() { func<foo>(0); }
5398 } // namespace cxx11
5400 #endif // __cplusplus >= 201103L
5405 if ac_fn_cxx_try_compile "$LINENO"; then :
5406 ax_cv_cxx_compile_cxx11=yes
5408 ax_cv_cxx_compile_cxx11=no
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5413 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5414 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5418 if test x$ac_success = xno; then
5419 for alternative in ${ax_cxx_compile_alternatives}; do
5420 switch="-std=gnu++${alternative}"
5421 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5423 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5424 if eval \${$cachevar+:} false; then :
5425 $as_echo_n "(cached) " >&6
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5433 // If the compiler admits that it is not ready for C++11, why torture it?
5434 // Hopefully, this will speed up the test.
5438 #error "This is not a C++ compiler"
5440 #elif __cplusplus < 201103L
5442 #error "This is not a C++11 compiler"
5449 namespace test_static_assert
5452 template <typename T>
5455 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5460 namespace test_final_override
5468 struct Derived : public Base
5470 virtual void f() override {}
5475 namespace test_double_right_angle_brackets
5478 template < typename T >
5481 typedef check<void> single_type;
5482 typedef check<check<void>> double_type;
5483 typedef check<check<check<void>>> triple_type;
5484 typedef check<check<check<check<void>>>> quadruple_type;
5488 namespace test_decltype
5501 namespace test_type_deduction
5504 template < typename T1, typename T2 >
5507 static const bool value = false;
5510 template < typename T >
5511 struct is_same<T, T>
5513 static const bool value = true;
5516 template < typename T1, typename T2 >
5518 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5524 test(const int c, volatile int v)
5526 static_assert(is_same<int, decltype(0)>::value == true, "");
5527 static_assert(is_same<int, decltype(c)>::value == false, "");
5528 static_assert(is_same<int, decltype(v)>::value == false, "");
5531 auto sumi = ac + av + 'x';
5532 auto sumf = ac + av + 1.0;
5533 static_assert(is_same<int, decltype(ac)>::value == true, "");
5534 static_assert(is_same<int, decltype(av)>::value == true, "");
5535 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5536 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5537 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5538 return (sumf > 0.0) ? sumi : add(c, v);
5543 namespace test_noexcept
5546 int f() { return 0; }
5547 int g() noexcept { return 0; }
5549 static_assert(noexcept(f()) == false, "");
5550 static_assert(noexcept(g()) == true, "");
5554 namespace test_constexpr
5557 template < typename CharT >
5558 unsigned long constexpr
5559 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5561 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5564 template < typename CharT >
5565 unsigned long constexpr
5566 strlen_c(const CharT *const s) noexcept
5568 return strlen_c_r(s, 0UL);
5571 static_assert(strlen_c("") == 0UL, "");
5572 static_assert(strlen_c("1") == 1UL, "");
5573 static_assert(strlen_c("example") == 7UL, "");
5574 static_assert(strlen_c("another\0example") == 7UL, "");
5578 namespace test_rvalue_references
5584 static constexpr int value = N;
5587 answer<1> f(int&) { return answer<1>(); }
5588 answer<2> f(const int&) { return answer<2>(); }
5589 answer<3> f(int&&) { return answer<3>(); }
5596 static_assert(decltype(f(i))::value == 1, "");
5597 static_assert(decltype(f(c))::value == 2, "");
5598 static_assert(decltype(f(0))::value == 3, "");
5603 namespace test_uniform_initialization
5608 static const int zero {};
5609 static const int one {1};
5612 static_assert(test::zero == 0, "");
5613 static_assert(test::one == 1, "");
5617 namespace test_lambdas
5623 auto lambda1 = [](){};
5624 auto lambda2 = lambda1;
5632 auto a = [](int i, int j){ return i + j; }(1, 2);
5633 auto b = []() -> int { return '0'; }();
5634 auto c = [=](){ return a + b; }();
5635 auto d = [&](){ return c; }();
5636 auto e = [a, &b](int x) mutable {
5637 const auto identity = [](int y){ return y; };
5638 for (auto i = 0; i < a; ++i)
5640 return x + identity(a + b);
5642 return a + b + c + d + e;
5648 const auto nullary = [](){ return 0; };
5649 const auto unary = [](int x){ return x; };
5650 using nullary_t = decltype(nullary);
5651 using unary_t = decltype(unary);
5652 const auto higher1st = [](nullary_t f){ return f(); };
5653 const auto higher2nd = [unary](nullary_t f1){
5654 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5656 return higher1st(nullary) + higher2nd(nullary)(unary);
5661 namespace test_variadic_templates
5667 template <int N0, int... N1toN>
5668 struct sum<N0, N1toN...>
5670 static constexpr auto value = N0 + sum<N1toN...>::value;
5676 static constexpr auto value = 0;
5679 static_assert(sum<>::value == 0, "");
5680 static_assert(sum<1>::value == 1, "");
5681 static_assert(sum<23>::value == 23, "");
5682 static_assert(sum<1, 2>::value == 3, "");
5683 static_assert(sum<5, 5, 11>::value == 21, "");
5684 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5688 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5689 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5691 namespace test_template_alias_sfinae
5696 template<typename T>
5697 using member = typename T::member_type;
5699 template<typename T>
5702 template<typename T>
5703 void func(member<T>*) {}
5707 void test() { func<foo>(0); }
5711 } // namespace cxx11
5713 #endif // __cplusplus >= 201103L
5718 if ac_fn_cxx_try_compile "$LINENO"; then :
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 eval ac_res=\$$cachevar
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5728 $as_echo "$ac_res" >&6; }
5729 if eval test x\$$cachevar = xyes; then
5730 CXX_DIALECT="$switch"
5737 if test x$ac_success = xno; then
5738 for alternative in ${ax_cxx_compile_alternatives}; do
5739 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5740 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5742 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5743 if eval \${$cachevar+:} false; then :
5744 $as_echo_n "(cached) " >&6
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5752 // If the compiler admits that it is not ready for C++11, why torture it?
5753 // Hopefully, this will speed up the test.
5757 #error "This is not a C++ compiler"
5759 #elif __cplusplus < 201103L
5761 #error "This is not a C++11 compiler"
5768 namespace test_static_assert
5771 template <typename T>
5774 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5779 namespace test_final_override
5787 struct Derived : public Base
5789 virtual void f() override {}
5794 namespace test_double_right_angle_brackets
5797 template < typename T >
5800 typedef check<void> single_type;
5801 typedef check<check<void>> double_type;
5802 typedef check<check<check<void>>> triple_type;
5803 typedef check<check<check<check<void>>>> quadruple_type;
5807 namespace test_decltype
5820 namespace test_type_deduction
5823 template < typename T1, typename T2 >
5826 static const bool value = false;
5829 template < typename T >
5830 struct is_same<T, T>
5832 static const bool value = true;
5835 template < typename T1, typename T2 >
5837 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5843 test(const int c, volatile int v)
5845 static_assert(is_same<int, decltype(0)>::value == true, "");
5846 static_assert(is_same<int, decltype(c)>::value == false, "");
5847 static_assert(is_same<int, decltype(v)>::value == false, "");
5850 auto sumi = ac + av + 'x';
5851 auto sumf = ac + av + 1.0;
5852 static_assert(is_same<int, decltype(ac)>::value == true, "");
5853 static_assert(is_same<int, decltype(av)>::value == true, "");
5854 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5855 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5856 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5857 return (sumf > 0.0) ? sumi : add(c, v);
5862 namespace test_noexcept
5865 int f() { return 0; }
5866 int g() noexcept { return 0; }
5868 static_assert(noexcept(f()) == false, "");
5869 static_assert(noexcept(g()) == true, "");
5873 namespace test_constexpr
5876 template < typename CharT >
5877 unsigned long constexpr
5878 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5880 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5883 template < typename CharT >
5884 unsigned long constexpr
5885 strlen_c(const CharT *const s) noexcept
5887 return strlen_c_r(s, 0UL);
5890 static_assert(strlen_c("") == 0UL, "");
5891 static_assert(strlen_c("1") == 1UL, "");
5892 static_assert(strlen_c("example") == 7UL, "");
5893 static_assert(strlen_c("another\0example") == 7UL, "");
5897 namespace test_rvalue_references
5903 static constexpr int value = N;
5906 answer<1> f(int&) { return answer<1>(); }
5907 answer<2> f(const int&) { return answer<2>(); }
5908 answer<3> f(int&&) { return answer<3>(); }
5915 static_assert(decltype(f(i))::value == 1, "");
5916 static_assert(decltype(f(c))::value == 2, "");
5917 static_assert(decltype(f(0))::value == 3, "");
5922 namespace test_uniform_initialization
5927 static const int zero {};
5928 static const int one {1};
5931 static_assert(test::zero == 0, "");
5932 static_assert(test::one == 1, "");
5936 namespace test_lambdas
5942 auto lambda1 = [](){};
5943 auto lambda2 = lambda1;
5951 auto a = [](int i, int j){ return i + j; }(1, 2);
5952 auto b = []() -> int { return '0'; }();
5953 auto c = [=](){ return a + b; }();
5954 auto d = [&](){ return c; }();
5955 auto e = [a, &b](int x) mutable {
5956 const auto identity = [](int y){ return y; };
5957 for (auto i = 0; i < a; ++i)
5959 return x + identity(a + b);
5961 return a + b + c + d + e;
5967 const auto nullary = [](){ return 0; };
5968 const auto unary = [](int x){ return x; };
5969 using nullary_t = decltype(nullary);
5970 using unary_t = decltype(unary);
5971 const auto higher1st = [](nullary_t f){ return f(); };
5972 const auto higher2nd = [unary](nullary_t f1){
5973 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5975 return higher1st(nullary) + higher2nd(nullary)(unary);
5980 namespace test_variadic_templates
5986 template <int N0, int... N1toN>
5987 struct sum<N0, N1toN...>
5989 static constexpr auto value = N0 + sum<N1toN...>::value;
5995 static constexpr auto value = 0;
5998 static_assert(sum<>::value == 0, "");
5999 static_assert(sum<1>::value == 1, "");
6000 static_assert(sum<23>::value == 23, "");
6001 static_assert(sum<1, 2>::value == 3, "");
6002 static_assert(sum<5, 5, 11>::value == 21, "");
6003 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6007 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6008 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6010 namespace test_template_alias_sfinae
6015 template<typename T>
6016 using member = typename T::member_type;
6018 template<typename T>
6021 template<typename T>
6022 void func(member<T>*) {}
6026 void test() { func<foo>(0); }
6030 } // namespace cxx11
6032 #endif // __cplusplus >= 201103L
6037 if ac_fn_cxx_try_compile "$LINENO"; then :
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 eval ac_res=\$$cachevar
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6047 $as_echo "$ac_res" >&6; }
6048 if eval test x\$$cachevar = xyes; then
6049 CXX_DIALECT="$switch"
6054 if test x$ac_success = xyes; then
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6065 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6066 if test x$ac_success = xno; then
6067 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6070 if test x$ac_success = xno; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6073 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6077 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6084 # Dependency checking.
6085 rm -rf .tst 2>/dev/null
6086 mkdir .tst 2>/dev/null
6087 if test -d .tst; then
6092 rmdir .tst 2>/dev/null
6094 DEPDIR="${am__leading_dot}deps"
6096 ac_config_commands="$ac_config_commands depdir"
6099 depcc="$CC" am_compiler_list=
6101 am_depcomp=$ac_aux_dir/depcomp
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6103 $as_echo_n "checking dependency style of $depcc... " >&6; }
6104 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6105 $as_echo_n "(cached) " >&6
6107 if test -f "$am_depcomp"; then
6108 # We make a subdir and do the tests there. Otherwise we can end up
6109 # making bogus files that we don't know about and never remove. For
6110 # instance it was reported that on HP-UX the gcc test will end up
6111 # making a dummy file named `D' -- because `-MD' means `put the output
6114 # Copy depcomp to subdir because otherwise we won't find it if we're
6115 # using a relative directory.
6116 cp "$am_depcomp" conftest.dir
6118 # We will build objects and dependencies in a subdirectory because
6119 # it helps to detect inapplicable dependency modes. For instance
6120 # both Tru64's cc and ICC support -MD to output dependencies as a
6121 # side effect of compilation, but ICC will put the dependencies in
6122 # the current directory while Tru64 will put them in the object
6126 am_cv_CC_dependencies_compiler_type=none
6127 if test "$am_compiler_list" = ""; then
6128 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6130 for depmode in $am_compiler_list; do
6131 if test $depmode = none; then break; fi
6133 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6134 # Setup a source with many dependencies, because some compilers
6135 # like to wrap large dependency lists on column 80 (with \), and
6136 # we should not choose a depcomp mode which is confused by this.
6138 # We need to recreate these files for each test, as the compiler may
6139 # overwrite some of them when testing with obscure command lines.
6140 # This happens at least with the AIX C compiler.
6142 for i in 1 2 3 4 5 6; do
6143 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6144 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6145 # Solaris 8's {/usr,}/bin/sh.
6146 touch sub/conftst$i.h
6148 echo "include sub/conftest.Po" > confmf
6150 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6151 # mode. It turns out that the SunPro C++ compiler does not properly
6152 # handle `-M -o', and we need to detect this.
6153 depcmd="depmode=$depmode \
6154 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6155 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6156 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6157 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6158 if env $depcmd > conftest.err 2>&1 &&
6159 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6160 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6161 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6162 # icc doesn't choke on unknown options, it will just issue warnings
6163 # or remarks (even with -Werror). So we grep stderr for any message
6164 # that says an option was ignored or not supported.
6165 # When given -MP, icc 7.0 and 7.1 complain thusly:
6166 # icc: Command line warning: ignoring option '-M'; no argument required
6167 # The diagnosis changed in icc 8.0:
6168 # icc: Command line remark: option '-MP' not supported
6169 if (grep 'ignoring option' conftest.err ||
6170 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6171 am_cv_CC_dependencies_compiler_type=$depmode
6172 $as_echo "$as_me:$LINENO: success" >&5
6176 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6177 sed -e 's/^/| /' < conftest.err >&5
6183 am_cv_CC_dependencies_compiler_type=none
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6188 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6189 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
6190 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6191 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6207 # If we haven't got the data from the intl directory,
6208 # assume NLS is disabled.
6217 if test -f ../intl/config.intl; then
6218 . ../intl/config.intl
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6221 $as_echo_n "checking whether NLS is requested... " >&6; }
6222 if test x"$USE_NLS" != xyes; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6227 $as_echo "yes" >&6; }
6229 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6233 $as_echo_n "checking for catalogs to be installed... " >&6; }
6234 # Look for .po and .gmo files in the source directory.
6237 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6238 # If there aren't any .gmo files the shell will give us the
6239 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6241 case "$cat" in *\**)
6244 # The quadruple backslash is collapsed to a double backslash
6245 # by the backticks, then collapsed again by the double quotes,
6246 # leaving us with one backslash in the sed expression (right
6247 # before the dot that mustn't act as a wildcard).
6248 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6249 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6250 # The user is allowed to set LINGUAS to a list of languages to
6251 # install catalogs for. If it's empty that means "all of them."
6252 if test "x$LINGUAS" = x; then
6253 CATALOGS="$CATALOGS $cat"
6254 XLINGUAS="$XLINGUAS $lang"
6256 case "$LINGUAS" in *$lang*)
6257 CATALOGS="$CATALOGS $cat"
6258 XLINGUAS="$XLINGUAS $lang"
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6265 $as_echo "$LINGUAS" >&6; }
6278 localedir='${datadir}/locale'
6281 if test x"$USE_NLS" = xyes; then
6282 CONFIG_ALL="$CONFIG_ALL all-po"
6283 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
6284 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
6285 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
6290 cat >>confdefs.h <<_ACEOF
6291 #define PACKAGE "$PACKAGE"
6296 # We never need to detect it in this sub-configure.
6297 # But preserve it for config.status --recheck.
6301 MAKEINFO_EXTRA_FLAGS=""
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6303 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6304 if ${gdb_cv_have_makeinfo_click+:} false; then :
6305 $as_echo_n "(cached) " >&6
6307 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6308 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6309 gdb_cv_have_makeinfo_click=yes
6311 gdb_cv_have_makeinfo_click=no
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6315 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6316 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
6317 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6323 # Check whether --with-separate-debug-dir was given.
6324 if test "${with_separate_debug_dir+set}" = set; then :
6325 withval=$with_separate_debug_dir;
6328 DEBUGDIR=${libdir}/debug
6332 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6334 ac_define_dir=`eval echo $DEBUGDIR`
6335 ac_define_dir=`eval echo $ac_define_dir`
6337 cat >>confdefs.h <<_ACEOF
6338 #define DEBUGDIR "$ac_define_dir"
6344 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6345 if test "x$prefix" = xNONE; then
6346 test_prefix=/usr/local
6351 test_prefix=$exec_prefix
6354 case ${ac_define_dir} in
6355 "${test_prefix}"|"${test_prefix}/"*|\
6356 '${exec_prefix}'|'${exec_prefix}/'*)
6361 cat >>confdefs.h <<_ACEOF
6362 #define DEBUGDIR_RELOCATABLE $value
6368 # We can't pass paths as command line arguments.
6369 # Mingw32 tries to be clever and will convert the paths for us.
6370 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6371 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6372 # This breaks GDB's relocatable path conversions since paths passed in
6373 # config.h would not get so translated, the path prefixes no longer match.
6375 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6376 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6377 ac_define_dir=`eval echo $bindir`
6378 ac_define_dir=`eval echo $ac_define_dir`
6380 cat >>confdefs.h <<_ACEOF
6381 #define BINDIR "$ac_define_dir"
6386 # GDB's datadir relocation
6390 # Check whether --with-gdb-datadir was given.
6391 if test "${with_gdb_datadir+set}" = set; then :
6392 withval=$with_gdb_datadir;
6393 GDB_DATADIR=$withval
6395 GDB_DATADIR=${datadir}/gdb
6399 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6401 ac_define_dir=`eval echo $GDB_DATADIR`
6402 ac_define_dir=`eval echo $ac_define_dir`
6404 cat >>confdefs.h <<_ACEOF
6405 #define GDB_DATADIR "$ac_define_dir"
6411 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6412 if test "x$prefix" = xNONE; then
6413 test_prefix=/usr/local
6418 test_prefix=$exec_prefix
6421 case ${ac_define_dir} in
6422 "${test_prefix}"|"${test_prefix}/"*|\
6423 '${exec_prefix}'|'${exec_prefix}/'*)
6428 cat >>confdefs.h <<_ACEOF
6429 #define GDB_DATADIR_RELOCATABLE $value
6436 # Check whether --with-relocated-sources was given.
6437 if test "${with_relocated_sources+set}" = set; then :
6438 withval=$with_relocated_sources; reloc_srcdir="${withval}"
6440 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6442 ac_define_dir=`eval echo $reloc_srcdir`
6443 ac_define_dir=`eval echo $ac_define_dir`
6445 cat >>confdefs.h <<_ACEOF
6446 #define RELOC_SRCDIR "$ac_define_dir"
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6455 $as_echo_n "checking for default auto-load directory... " >&6; }
6457 # Check whether --with-auto-load-dir was given.
6458 if test "${with_auto_load_dir+set}" = set; then :
6459 withval=$with_auto_load_dir;
6461 with_auto_load_dir='$debugdir:$datadir/auto-load'
6464 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6466 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6467 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6468 ac_define_dir=`eval echo $escape_dir`
6469 ac_define_dir=`eval echo $ac_define_dir`
6471 cat >>confdefs.h <<_ACEOF
6472 #define AUTO_LOAD_DIR "$ac_define_dir"
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6477 $as_echo "$with_auto_load_dir" >&6; }
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6480 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6482 # Check whether --with-auto-load-safe-path was given.
6483 if test "${with_auto_load_safe_path+set}" = set; then :
6484 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6485 with_auto_load_safe_path="/"
6488 with_auto_load_safe_path="$with_auto_load_dir"
6491 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6493 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6495 ac_define_dir=`eval echo $escape_dir`
6496 ac_define_dir=`eval echo $ac_define_dir`
6498 cat >>confdefs.h <<_ACEOF
6499 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6504 $as_echo "$with_auto_load_safe_path" >&6; }
6508 subdirs="$subdirs testsuite"
6511 # Check whether to support alternative target configurations
6512 # Check whether --enable-targets was given.
6513 if test "${enable_targets+set}" = set; then :
6514 enableval=$enable_targets; case "${enableval}" in
6515 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6517 no) enable_targets= ;;
6518 *) enable_targets=$enableval ;;
6523 # Check whether to enable 64-bit support on 32-bit hosts
6524 # Check whether --enable-64-bit-bfd was given.
6525 if test "${enable_64_bit_bfd+set}" = set; then :
6526 enableval=$enable_64_bit_bfd; case "${enableval}" in
6529 *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6535 # Provide defaults for some variables set by the per-host and per-target
6537 gdb_host_obs=posix-hdep.o
6539 if test "${target}" = "${host}"; then
6545 . $srcdir/configure.host
6547 # Add in the common host objects.
6548 . $srcdir/gdbsupport/common.host
6549 gdb_host_obs="$gdb_host_obs $common_host_obs"
6551 # Accumulate some settings from configure.tgt over all enabled targets
6555 HAVE_NATIVE_GCORE_TARGET=
6557 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6559 if test "$targ_alias" = "all"; then
6562 # Canonicalize the secondary target names.
6563 result=`$ac_config_sub $targ_alias 2>/dev/null`
6564 if test -n "$result"; then
6570 . ${srcdir}/configure.tgt
6572 if test -z "${gdb_target_obs}"; then :
6573 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
6576 # Target-specific object files
6577 for i in ${gdb_target_obs}; do
6578 case " $TARGET_OBS " in
6581 TARGET_OBS="$TARGET_OBS ${i}"
6586 # Check whether this target needs 64-bit CORE_ADDR
6587 if test x${want64} = xfalse; then
6588 . ${srcdir}/../bfd/config.bfd
6591 # Check whether this target is native and supports gcore.
6592 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6593 && $gdb_have_gcore; then
6594 HAVE_NATIVE_GCORE_TARGET=1
6599 if test x${all_targets} = xtrue; then
6601 # We want all 64-bit targets if we either:
6602 # - run on a 64-bit host or
6603 # - already require 64-bit support for some other target or
6604 # - the --enable-64-bit-bfd option was supplied
6605 # Otherwise we only support all 32-bit targets.
6607 # NOTE: This test must be in sync with the corresponding
6610 if test x${want64} = xfalse; then
6611 # The cast to long int works around a bug in the HP C Compiler
6612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6614 # This bug is HP SR number 8606223364.
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6616 $as_echo_n "checking size of long... " >&6; }
6617 if ${ac_cv_sizeof_long+:} false; then :
6618 $as_echo_n "(cached) " >&6
6620 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6623 if test "$ac_cv_type_long" = yes; then
6624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6626 as_fn_error 77 "cannot compute sizeof (long)
6627 See \`config.log' for more details" "$LINENO" 5; }
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6635 $as_echo "$ac_cv_sizeof_long" >&6; }
6639 cat >>confdefs.h <<_ACEOF
6640 #define SIZEOF_LONG $ac_cv_sizeof_long
6644 if test "x${ac_cv_sizeof_long}" = "x8"; then
6648 if test x${want64} = xtrue; then
6649 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6651 TARGET_OBS='$(ALL_TARGET_OBS)'
6658 # For other settings, only the main target counts.
6662 targ=$target; . ${srcdir}/configure.tgt
6664 # Fetch the default architecture and default target vector from BFD.
6665 targ=$target; . $srcdir/../bfd/config.bfd
6667 # We only want the first architecture, so strip off the others if
6668 # there is more than one.
6669 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6671 if test "x$targ_archs" != x; then
6673 cat >>confdefs.h <<_ACEOF
6674 #define DEFAULT_BFD_ARCH $targ_archs
6678 if test "x$targ_defvec" != x; then
6680 cat >>confdefs.h <<_ACEOF
6681 #define DEFAULT_BFD_VEC $targ_defvec
6687 # Check whether --enable-gdbmi was given.
6688 if test "${enable_gdbmi+set}" = set; then :
6689 enableval=$enable_gdbmi; case $enableval in
6693 as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6699 if test x"$enable_gdbmi" = xyes; then
6700 if test -d $srcdir/mi; then
6701 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6702 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6703 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6704 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6709 # Check whether --enable-tui was given.
6710 if test "${enable_tui+set}" = set; then :
6711 enableval=$enable_tui; case $enableval in
6715 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6723 # Check whether --enable-gdbtk was given.
6724 if test "${enable_gdbtk+set}" = set; then :
6725 enableval=$enable_gdbtk; case $enableval in
6729 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6732 if test -d $srcdir/gdbtk; then
6739 # We unconditionally disable gdbtk tests on selected platforms.
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6743 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6747 # Libunwind support for ia64.
6750 # Check whether --with-libunwind-ia64 was given.
6751 if test "${with_libunwind_ia64+set}" = set; then :
6752 withval=$with_libunwind_ia64;
6754 with_libunwind_ia64=auto
6758 # Backward compatibility option.
6759 if test "${with_libunwind+set}" = set; then
6760 if test x"$with_libunwind_ia64" != xauto; then
6761 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6764 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6765 with_libunwind_ia64="$with_libunwind"
6768 case "$with_libunwind_ia64" in
6772 for ac_header in libunwind-ia64.h
6774 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6775 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
6776 cat >>confdefs.h <<_ACEOF
6777 #define HAVE_LIBUNWIND_IA64_H 1
6784 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
6787 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6791 if test x"$with_libunwind_ia64" = xyes; then
6792 for ac_header in libunwind-ia64.h
6794 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6795 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
6796 cat >>confdefs.h <<_ACEOF
6797 #define HAVE_LIBUNWIND_IA64_H 1
6804 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
6805 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6807 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
6808 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
6809 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
6814 # Check whether --with-curses was given.
6815 if test "${with_curses+set}" = set; then :
6816 withval=$with_curses; opt_curses=$withval
6821 if test "$opt_curses" = "yes"; then
6825 # Profiling support.
6826 # Check whether --enable-profiling was given.
6827 if test "${enable_profiling+set}" = set; then :
6828 enableval=$enable_profiling; case $enableval in
6832 as_fn_error $? "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6839 for ac_func in monstartup _mcleanup
6841 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6842 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6843 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6844 cat >>confdefs.h <<_ACEOF
6845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6852 $as_echo_n "checking for _etext... " >&6; }
6853 if ${ac_cv_var__etext+:} false; then :
6854 $as_echo_n "(cached) " >&6
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6869 if ac_fn_c_try_link "$LINENO"; then :
6870 ac_cv_var__etext=yes
6874 rm -f core conftest.err conftest.$ac_objext \
6875 conftest$ac_exeext conftest.$ac_ext
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6878 $as_echo "$ac_cv_var__etext" >&6; }
6879 if test $ac_cv_var__etext = yes; then
6881 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6885 $as_echo_n "checking for etext... " >&6; }
6886 if ${ac_cv_var_etext+:} false; then :
6887 $as_echo_n "(cached) " >&6
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6902 if ac_fn_c_try_link "$LINENO"; then :
6907 rm -f core conftest.err conftest.$ac_objext \
6908 conftest$ac_exeext conftest.$ac_ext
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6911 $as_echo "$ac_cv_var_etext" >&6; }
6912 if test $ac_cv_var_etext = yes; then
6914 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6917 if test "$enable_profiling" = yes ; then
6918 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6919 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6922 OLD_CFLAGS="$CFLAGS"
6923 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6926 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6927 if ${ac_cv_cc_supports_pg+:} false; then :
6928 $as_echo_n "(cached) " >&6
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6941 if ac_fn_c_try_compile "$LINENO"; then :
6942 ac_cv_cc_supports_pg=yes
6944 ac_cv_cc_supports_pg=no
6946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6949 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6951 if test $ac_cv_cc_supports_pg = no; then
6952 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6955 CFLAGS="$OLD_CFLAGS"
6959 # Check whether --enable-codesign was given.
6960 if test "${enable_codesign+set}" = set; then :
6961 enableval=$enable_codesign; CODESIGN_CERT=$enableval
6968 # Check whether --with-pkgversion was given.
6969 if test "${with_pkgversion+set}" = set; then :
6970 withval=$with_pkgversion; case "$withval" in
6971 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6973 *) PKGVERSION="($withval) " ;;
6984 # Check whether --with-bugurl was given.
6985 if test "${with_bugurl+set}" = set; then :
6986 withval=$with_bugurl; case "$withval" in
6987 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6990 *) BUGURL="$withval"
6994 BUGURL="http://www.gnu.org/software/gdb/bugs/"
7004 REPORT_BUGS_TO="<$BUGURL>"
7005 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7012 cat >>confdefs.h <<_ACEOF
7013 #define PKGVERSION "$PKGVERSION"
7017 cat >>confdefs.h <<_ACEOF
7018 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7022 # --------------------- #
7023 # Checks for programs. #
7024 # --------------------- #
7026 for ac_prog in gawk mawk nawk awk
7028 # Extract the first word of "$ac_prog", so it can be a program name with args.
7029 set dummy $ac_prog; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_AWK+:} false; then :
7033 $as_echo_n "(cached) " >&6
7035 if test -n "$AWK"; then
7036 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_AWK="$ac_prog"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 if test -n "$AWK"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7058 $as_echo "$AWK" >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7065 test -n "$AWK" && break
7068 # Find a good install program. We prefer a C program (faster),
7069 # so one script is as good as another. But avoid the broken or
7070 # incompatible versions:
7071 # SysV /etc/install, /usr/sbin/install
7072 # SunOS /usr/etc/install
7073 # IRIX /sbin/install
7075 # AmigaOS /C/install, which installs bootblocks on floppy discs
7076 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7077 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7078 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7079 # OS/2's system install, which has a completely different semantic
7080 # ./install, which can be erroneously created by make from ./install.sh.
7081 # Reject install programs that cannot install multiple files.
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7083 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7084 if test -z "$INSTALL"; then
7085 if ${ac_cv_path_install+:} false; then :
7086 $as_echo_n "(cached) " >&6
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir=.
7093 # Account for people who put trailing slashes in PATH elements.
7094 case $as_dir/ in #((
7095 ./ | .// | /[cC]/* | \
7096 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7097 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7100 # OSF1 and SCO ODT 3.0 have their own names for install.
7101 # Don't use installbsd from OSF since it installs stuff as root
7103 for ac_prog in ginstall scoinst install; do
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7106 if test $ac_prog = install &&
7107 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7108 # AIX install. It has an incompatible calling convention.
7110 elif test $ac_prog = install &&
7111 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7112 # program-specific install script used by HP pwplus--don't use.
7115 rm -rf conftest.one conftest.two conftest.dir
7116 echo one > conftest.one
7117 echo two > conftest.two
7119 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7120 test -s conftest.one && test -s conftest.two &&
7121 test -s conftest.dir/conftest.one &&
7122 test -s conftest.dir/conftest.two
7124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7137 rm -rf conftest.one conftest.two conftest.dir
7140 if test "${ac_cv_path_install+set}" = set; then
7141 INSTALL=$ac_cv_path_install
7143 # As a last resort, use the slow shell script. Don't cache a
7144 # value for INSTALL within a source directory, because that will
7145 # break other packages using the cache if that directory is
7146 # removed, or if the value is a relative name.
7147 INSTALL=$ac_install_sh
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7151 $as_echo "$INSTALL" >&6; }
7153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7154 # It thinks the first close brace ends the variable substitution.
7155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7162 $as_echo_n "checking whether ln -s works... " >&6; }
7164 if test "$LN_S" = "ln -s"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7166 $as_echo "yes" >&6; }
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7169 $as_echo "no, using $LN_S" >&6; }
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if ${ac_cv_prog_RANLIB+:} false; then :
7178 $as_echo_n "(cached) " >&6
7180 if test -n "$RANLIB"; then
7181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 RANLIB=$ac_cv_prog_RANLIB
7201 if test -n "$RANLIB"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7203 $as_echo "$RANLIB" >&6; }
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7211 if test -z "$ac_cv_prog_RANLIB"; then
7212 ac_ct_RANLIB=$RANLIB
7213 # Extract the first word of "ranlib", so it can be a program name with args.
7214 set dummy ranlib; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7218 $as_echo_n "(cached) " >&6
7220 if test -n "$ac_ct_RANLIB"; then
7221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_prog_ac_ct_RANLIB="ranlib"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7241 if test -n "$ac_ct_RANLIB"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7243 $as_echo "$ac_ct_RANLIB" >&6; }
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7249 if test "x$ac_ct_RANLIB" = x; then
7252 case $cross_compiling:$ac_tool_warned in
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7258 RANLIB=$ac_ct_RANLIB
7261 RANLIB="$ac_cv_prog_RANLIB"
7264 for ac_prog in 'bison -y' byacc
7266 # Extract the first word of "$ac_prog", so it can be a program name with args.
7267 set dummy $ac_prog; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if ${ac_cv_prog_YACC+:} false; then :
7271 $as_echo_n "(cached) " >&6
7273 if test -n "$YACC"; then
7274 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_YACC="$ac_prog"
7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 YACC=$ac_cv_prog_YACC
7294 if test -n "$YACC"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7296 $as_echo "$YACC" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7303 test -n "$YACC" && break
7305 test -n "$YACC" || YACC="yacc"
7308 if test -n "$ac_tool_prefix"; then
7309 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}ar; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_AR+:} false; then :
7314 $as_echo_n "(cached) " >&6
7316 if test -n "$AR"; then
7317 ac_cv_prog_AR="$AR" # Let the user override the test.
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326 ac_cv_prog_AR="${ac_tool_prefix}ar"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 if test -n "$AR"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7339 $as_echo "$AR" >&6; }
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7347 if test -z "$ac_cv_prog_AR"; then
7349 # Extract the first word of "ar", so it can be a program name with args.
7350 set dummy ar; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7354 $as_echo_n "(cached) " >&6
7356 if test -n "$ac_ct_AR"; then
7357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_ac_ct_AR="ar"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7377 if test -n "$ac_ct_AR"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7379 $as_echo "$ac_ct_AR" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7385 if test "x$ac_ct_AR" = x; then
7388 case $cross_compiling:$ac_tool_warned in
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_DLLTOOL+:} false; then :
7406 $as_echo_n "(cached) " >&6
7408 if test -n "$DLLTOOL"; then
7409 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 DLLTOOL=$ac_cv_prog_DLLTOOL
7429 if test -n "$DLLTOOL"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7431 $as_echo "$DLLTOOL" >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7439 if test -z "$ac_cv_prog_DLLTOOL"; then
7440 ac_ct_DLLTOOL=$DLLTOOL
7441 # Extract the first word of "dlltool", so it can be a program name with args.
7442 set dummy dlltool; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7446 $as_echo_n "(cached) " >&6
7448 if test -n "$ac_ct_DLLTOOL"; then
7449 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7469 if test -n "$ac_ct_DLLTOOL"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7471 $as_echo "$ac_ct_DLLTOOL" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7477 if test "x$ac_ct_DLLTOOL" = x; then
7480 case $cross_compiling:$ac_tool_warned in
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7486 DLLTOOL=$ac_ct_DLLTOOL
7489 DLLTOOL="$ac_cv_prog_DLLTOOL"
7492 if test -n "$ac_tool_prefix"; then
7493 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}windres; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_WINDRES+:} false; then :
7498 $as_echo_n "(cached) " >&6
7500 if test -n "$WINDRES"; then
7501 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 WINDRES=$ac_cv_prog_WINDRES
7521 if test -n "$WINDRES"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7523 $as_echo "$WINDRES" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7531 if test -z "$ac_cv_prog_WINDRES"; then
7532 ac_ct_WINDRES=$WINDRES
7533 # Extract the first word of "windres", so it can be a program name with args.
7534 set dummy windres; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7538 $as_echo_n "(cached) " >&6
7540 if test -n "$ac_ct_WINDRES"; then
7541 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_ac_ct_WINDRES="windres"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7561 if test -n "$ac_ct_WINDRES"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7563 $as_echo "$ac_ct_WINDRES" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7569 if test "x$ac_ct_WINDRES" = x; then
7572 case $cross_compiling:$ac_tool_warned in
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7578 WINDRES=$ac_ct_WINDRES
7581 WINDRES="$ac_cv_prog_WINDRES"
7587 # Needed for GNU Hurd hosts.
7588 if test -n "$ac_tool_prefix"; then
7589 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7590 set dummy ${ac_tool_prefix}mig; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if ${ac_cv_prog_MIG+:} false; then :
7594 $as_echo_n "(cached) " >&6
7596 if test -n "$MIG"; then
7597 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 if test -n "$MIG"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7619 $as_echo "$MIG" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7627 if test -z "$ac_cv_prog_MIG"; then
7629 # Extract the first word of "mig", so it can be a program name with args.
7630 set dummy mig; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
7634 $as_echo_n "(cached) " >&6
7636 if test -n "$ac_ct_MIG"; then
7637 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_ac_ct_MIG="mig"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7657 if test -n "$ac_ct_MIG"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7659 $as_echo "$ac_ct_MIG" >&6; }
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7665 if test "x$ac_ct_MIG" = x; then
7668 case $cross_compiling:$ac_tool_warned in
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7672 ac_tool_warned=yes ;;
7677 MIG="$ac_cv_prog_MIG"
7680 if test x"$MIG" = x; then
7681 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
7686 # ---------------------- #
7687 # Checks for libraries. #
7688 # ---------------------- #
7690 # We might need to link with -lm; most simulators need it.
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7692 $as_echo_n "checking for main in -lm... " >&6; }
7693 if ${ac_cv_lib_m_main+:} false; then :
7694 $as_echo_n "(cached) " >&6
7696 ac_check_lib_save_LIBS=$LIBS
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7710 if ac_fn_c_try_link "$LINENO"; then :
7711 ac_cv_lib_m_main=yes
7715 rm -f core conftest.err conftest.$ac_objext \
7716 conftest$ac_exeext conftest.$ac_ext
7717 LIBS=$ac_check_lib_save_LIBS
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7720 $as_echo "$ac_cv_lib_m_main" >&6; }
7721 if test "x$ac_cv_lib_m_main" = xyes; then :
7722 cat >>confdefs.h <<_ACEOF
7731 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7733 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7734 if ${ac_cv_search_gethostbyname+:} false; then :
7735 $as_echo_n "(cached) " >&6
7737 ac_func_search_save_LIBS=$LIBS
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7741 /* Override any GCC internal prototype to avoid an error.
7742 Use char because int might match the return type of a GCC
7743 builtin and then its argument prototype would still apply. */
7747 char gethostbyname ();
7751 return gethostbyname ();
7756 for ac_lib in '' nsl; do
7757 if test -z "$ac_lib"; then
7758 ac_res="none required"
7761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7763 if ac_fn_c_try_link "$LINENO"; then :
7764 ac_cv_search_gethostbyname=$ac_res
7766 rm -f core conftest.err conftest.$ac_objext \
7768 if ${ac_cv_search_gethostbyname+:} false; then :
7772 if ${ac_cv_search_gethostbyname+:} false; then :
7775 ac_cv_search_gethostbyname=no
7778 LIBS=$ac_func_search_save_LIBS
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7781 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7782 ac_res=$ac_cv_search_gethostbyname
7783 if test "$ac_res" != no; then :
7784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7789 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7791 $as_echo_n "checking for library containing socketpair... " >&6; }
7792 if ${ac_cv_search_socketpair+:} false; then :
7793 $as_echo_n "(cached) " >&6
7795 ac_func_search_save_LIBS=$LIBS
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7799 /* Override any GCC internal prototype to avoid an error.
7800 Use char because int might match the return type of a GCC
7801 builtin and then its argument prototype would still apply. */
7809 return socketpair ();
7814 for ac_lib in '' socket; do
7815 if test -z "$ac_lib"; then
7816 ac_res="none required"
7819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7821 if ac_fn_c_try_link "$LINENO"; then :
7822 ac_cv_search_socketpair=$ac_res
7824 rm -f core conftest.err conftest.$ac_objext \
7826 if ${ac_cv_search_socketpair+:} false; then :
7830 if ${ac_cv_search_socketpair+:} false; then :
7833 ac_cv_search_socketpair=no
7836 LIBS=$ac_func_search_save_LIBS
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7839 $as_echo "$ac_cv_search_socketpair" >&6; }
7840 ac_res=$ac_cv_search_socketpair
7841 if test "$ac_res" != no; then :
7842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7847 # Link in zlib if we can. This allows us to read compressed debug sections.
7849 # Use the system's zlib library.
7850 zlibdir="-L\$(top_builddir)/../zlib"
7851 zlibinc="-I\$(top_srcdir)/../zlib"
7853 # Check whether --with-system-zlib was given.
7854 if test "${with_system_zlib+set}" = set; then :
7855 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7866 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7867 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7869 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7870 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
7871 $as_echo_n "(cached) " >&6
7873 ac_func_search_save_LIBS=$LIBS
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7877 /* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
7883 char kinfo_getvmmap ();
7887 return kinfo_getvmmap ();
7892 for ac_lib in '' util util-freebsd; do
7893 if test -z "$ac_lib"; then
7894 ac_res="none required"
7897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7899 if ac_fn_c_try_link "$LINENO"; then :
7900 ac_cv_search_kinfo_getvmmap=$ac_res
7902 rm -f core conftest.err conftest.$ac_objext \
7904 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
7908 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
7911 ac_cv_search_kinfo_getvmmap=no
7914 LIBS=$ac_func_search_save_LIBS
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7917 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7918 ac_res=$ac_cv_search_kinfo_getvmmap
7919 if test "$ac_res" != no; then :
7920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7922 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7927 # fbsd-nat.c can also use kinfo_getfile.
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7929 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7930 if ${ac_cv_search_kinfo_getfile+:} false; then :
7931 $as_echo_n "(cached) " >&6
7933 ac_func_search_save_LIBS=$LIBS
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7937 /* Override any GCC internal prototype to avoid an error.
7938 Use char because int might match the return type of a GCC
7939 builtin and then its argument prototype would still apply. */
7943 char kinfo_getfile ();
7947 return kinfo_getfile ();
7952 for ac_lib in '' util util-freebsd; do
7953 if test -z "$ac_lib"; then
7954 ac_res="none required"
7957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7959 if ac_fn_c_try_link "$LINENO"; then :
7960 ac_cv_search_kinfo_getfile=$ac_res
7962 rm -f core conftest.err conftest.$ac_objext \
7964 if ${ac_cv_search_kinfo_getfile+:} false; then :
7968 if ${ac_cv_search_kinfo_getfile+:} false; then :
7971 ac_cv_search_kinfo_getfile=no
7974 LIBS=$ac_func_search_save_LIBS
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7977 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7978 ac_res=$ac_cv_search_kinfo_getfile
7979 if test "$ac_res" != no; then :
7980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7982 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
7988 if test "X$prefix" = "XNONE"; then
7989 acl_final_prefix="$ac_default_prefix"
7991 acl_final_prefix="$prefix"
7993 if test "X$exec_prefix" = "XNONE"; then
7994 acl_final_exec_prefix='${prefix}'
7996 acl_final_exec_prefix="$exec_prefix"
7998 acl_save_prefix="$prefix"
7999 prefix="$acl_final_prefix"
8000 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8001 prefix="$acl_save_prefix"
8004 # Check whether --with-gnu-ld was given.
8005 if test "${with_gnu_ld+set}" = set; then :
8006 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8011 # Prepare PATH_SEPARATOR.
8012 # The user is always right.
8013 if test "${PATH_SEPARATOR+set}" != set; then
8014 echo "#! /bin/sh" >conf$$.sh
8015 echo "exit 0" >>conf$$.sh
8017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8025 if test "$GCC" = yes; then
8026 # Check if gcc -print-prog-name=ld gives a path.
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8028 $as_echo_n "checking for ld used by GCC... " >&6; }
8031 # gcc leaves a trailing carriage return which upsets mingw
8032 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8034 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8037 # Accept absolute paths.
8038 [\\/]* | [A-Za-z]:[\\/]*)
8039 re_direlt='/[^/][^/]*/\.\./'
8040 # Canonicalize the path of ld
8041 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8042 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8043 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8045 test -z "$LD" && LD="$ac_prog"
8048 # If it fails, then pretend we aren't using GCC.
8052 # If it is relative, then search for the first ld in PATH.
8056 elif test "$with_gnu_ld" = yes; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8058 $as_echo_n "checking for GNU ld... " >&6; }
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8061 $as_echo_n "checking for non-GNU ld... " >&6; }
8063 if ${acl_cv_path_LD+:} false; then :
8064 $as_echo_n "(cached) " >&6
8066 if test -z "$LD"; then
8067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8068 for ac_dir in $PATH; do
8069 test -z "$ac_dir" && ac_dir=.
8070 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8071 acl_cv_path_LD="$ac_dir/$ac_prog"
8072 # Check to see if the program is GNU ld. I'd rather use --version,
8073 # but apparently some GNU ld's only accept -v.
8074 # Break only if it was the GNU/non-GNU ld that we prefer.
8075 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8076 test "$with_gnu_ld" != no && break
8078 test "$with_gnu_ld" != yes && break
8084 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8088 LD="$acl_cv_path_LD"
8089 if test -n "$LD"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8091 $as_echo "$LD" >&6; }
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8096 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8098 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8099 if ${acl_cv_prog_gnu_ld+:} false; then :
8100 $as_echo_n "(cached) " >&6
8102 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8103 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8104 acl_cv_prog_gnu_ld=yes
8106 acl_cv_prog_gnu_ld=no
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8110 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8111 with_gnu_ld=$acl_cv_prog_gnu_ld
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8116 $as_echo_n "checking for shared library run path origin... " >&6; }
8117 if ${acl_cv_rpath+:} false; then :
8118 $as_echo_n "(cached) " >&6
8121 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8122 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8129 $as_echo "$acl_cv_rpath" >&6; }
8131 libext="$acl_cv_libext"
8132 shlibext="$acl_cv_shlibext"
8133 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8134 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8135 hardcode_direct="$acl_cv_hardcode_direct"
8136 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8137 # Check whether --enable-rpath was given.
8138 if test "${enable_rpath+set}" = set; then :
8139 enableval=$enable_rpath; :
8153 acl_save_prefix="$prefix"
8154 prefix="$acl_final_prefix"
8155 acl_save_exec_prefix="$exec_prefix"
8156 exec_prefix="$acl_final_exec_prefix"
8158 eval additional_includedir=\"$includedir\"
8159 eval additional_libdir=\"$libdir\"
8161 exec_prefix="$acl_save_exec_prefix"
8162 prefix="$acl_save_prefix"
8165 # Check whether --with-libiconv-prefix was given.
8166 if test "${with_libiconv_prefix+set}" = set; then :
8167 withval=$with_libiconv_prefix;
8168 if test "X$withval" = "Xno"; then
8171 if test "X$withval" = "X"; then
8173 acl_save_prefix="$prefix"
8174 prefix="$acl_final_prefix"
8175 acl_save_exec_prefix="$exec_prefix"
8176 exec_prefix="$acl_final_exec_prefix"
8178 eval additional_includedir=\"$includedir\"
8179 eval additional_libdir=\"$libdir\"
8181 exec_prefix="$acl_save_exec_prefix"
8182 prefix="$acl_save_prefix"
8185 additional_includedir="$withval/include"
8186 additional_libdir="$withval/lib"
8197 names_already_handled=
8198 names_next_round='iconv '
8199 while test -n "$names_next_round"; do
8200 names_this_round="$names_next_round"
8202 for name in $names_this_round; do
8204 for n in $names_already_handled; do
8205 if test "$n" = "$name"; then
8210 if test -z "$already_handled"; then
8211 names_already_handled="$names_already_handled $name"
8212 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8213 eval value=\"\$HAVE_LIB$uppername\"
8214 if test -n "$value"; then
8215 if test "$value" = yes; then
8216 eval value=\"\$LIB$uppername\"
8217 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8218 eval value=\"\$LTLIB$uppername\"
8219 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8228 if test $use_additional = yes; then
8229 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8230 found_dir="$additional_libdir"
8231 found_so="$additional_libdir/lib$name.$shlibext"
8232 if test -f "$additional_libdir/lib$name.la"; then
8233 found_la="$additional_libdir/lib$name.la"
8236 if test -f "$additional_libdir/lib$name.$libext"; then
8237 found_dir="$additional_libdir"
8238 found_a="$additional_libdir/lib$name.$libext"
8239 if test -f "$additional_libdir/lib$name.la"; then
8240 found_la="$additional_libdir/lib$name.la"
8245 if test "X$found_dir" = "X"; then
8246 for x in $LDFLAGS $LTLIBICONV; do
8248 acl_save_prefix="$prefix"
8249 prefix="$acl_final_prefix"
8250 acl_save_exec_prefix="$exec_prefix"
8251 exec_prefix="$acl_final_exec_prefix"
8253 exec_prefix="$acl_save_exec_prefix"
8254 prefix="$acl_save_prefix"
8258 dir=`echo "X$x" | sed -e 's/^X-L//'`
8259 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8261 found_so="$dir/lib$name.$shlibext"
8262 if test -f "$dir/lib$name.la"; then
8263 found_la="$dir/lib$name.la"
8266 if test -f "$dir/lib$name.$libext"; then
8268 found_a="$dir/lib$name.$libext"
8269 if test -f "$dir/lib$name.la"; then
8270 found_la="$dir/lib$name.la"
8276 if test "X$found_dir" != "X"; then
8281 if test "X$found_dir" != "X"; then
8282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8283 if test "X$found_so" != "X"; then
8284 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8285 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8288 for x in $ltrpathdirs; do
8289 if test "X$x" = "X$found_dir"; then
8294 if test -z "$haveit"; then
8295 ltrpathdirs="$ltrpathdirs $found_dir"
8297 if test "$hardcode_direct" = yes; then
8298 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8300 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8301 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8303 for x in $rpathdirs; do
8304 if test "X$x" = "X$found_dir"; then
8309 if test -z "$haveit"; then
8310 rpathdirs="$rpathdirs $found_dir"
8314 for x in $LDFLAGS $LIBICONV; do
8316 acl_save_prefix="$prefix"
8317 prefix="$acl_final_prefix"
8318 acl_save_exec_prefix="$exec_prefix"
8319 exec_prefix="$acl_final_exec_prefix"
8321 exec_prefix="$acl_save_exec_prefix"
8322 prefix="$acl_save_prefix"
8324 if test "X$x" = "X-L$found_dir"; then
8329 if test -z "$haveit"; then
8330 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8332 if test "$hardcode_minus_L" != no; then
8333 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8335 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8341 if test "X$found_a" != "X"; then
8342 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8344 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8347 additional_includedir=
8348 case "$found_dir" in
8350 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8351 additional_includedir="$basedir/include"
8354 if test "X$additional_includedir" != "X"; then
8355 if test "X$additional_includedir" != "X/usr/include"; then
8357 if test "X$additional_includedir" = "X/usr/local/include"; then
8358 if test -n "$GCC"; then
8360 linux*) haveit=yes;;
8364 if test -z "$haveit"; then
8365 for x in $CPPFLAGS $INCICONV; do
8367 acl_save_prefix="$prefix"
8368 prefix="$acl_final_prefix"
8369 acl_save_exec_prefix="$exec_prefix"
8370 exec_prefix="$acl_final_exec_prefix"
8372 exec_prefix="$acl_save_exec_prefix"
8373 prefix="$acl_save_prefix"
8375 if test "X$x" = "X-I$additional_includedir"; then
8380 if test -z "$haveit"; then
8381 if test -d "$additional_includedir"; then
8382 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8388 if test -n "$found_la"; then
8389 save_libdir="$libdir"
8391 */* | *\\*) . "$found_la" ;;
8392 *) . "./$found_la" ;;
8394 libdir="$save_libdir"
8395 for dep in $dependency_libs; do
8398 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8399 if test "X$additional_libdir" != "X/usr/lib"; then
8401 if test "X$additional_libdir" = "X/usr/local/lib"; then
8402 if test -n "$GCC"; then
8404 linux*) haveit=yes;;
8408 if test -z "$haveit"; then
8410 for x in $LDFLAGS $LIBICONV; do
8412 acl_save_prefix="$prefix"
8413 prefix="$acl_final_prefix"
8414 acl_save_exec_prefix="$exec_prefix"
8415 exec_prefix="$acl_final_exec_prefix"
8417 exec_prefix="$acl_save_exec_prefix"
8418 prefix="$acl_save_prefix"
8420 if test "X$x" = "X-L$additional_libdir"; then
8425 if test -z "$haveit"; then
8426 if test -d "$additional_libdir"; then
8427 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8431 for x in $LDFLAGS $LTLIBICONV; do
8433 acl_save_prefix="$prefix"
8434 prefix="$acl_final_prefix"
8435 acl_save_exec_prefix="$exec_prefix"
8436 exec_prefix="$acl_final_exec_prefix"
8438 exec_prefix="$acl_save_exec_prefix"
8439 prefix="$acl_save_prefix"
8441 if test "X$x" = "X-L$additional_libdir"; then
8446 if test -z "$haveit"; then
8447 if test -d "$additional_libdir"; then
8448 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8455 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8456 if test "$enable_rpath" != no; then
8458 for x in $rpathdirs; do
8459 if test "X$x" = "X$dir"; then
8464 if test -z "$haveit"; then
8465 rpathdirs="$rpathdirs $dir"
8468 for x in $ltrpathdirs; do
8469 if test "X$x" = "X$dir"; then
8474 if test -z "$haveit"; then
8475 ltrpathdirs="$ltrpathdirs $dir"
8480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8483 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8486 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8487 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8493 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8494 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8500 if test "X$rpathdirs" != "X"; then
8501 if test -n "$hardcode_libdir_separator"; then
8503 for found_dir in $rpathdirs; do
8504 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8506 acl_save_libdir="$libdir"
8508 eval flag=\"$hardcode_libdir_flag_spec\"
8509 libdir="$acl_save_libdir"
8510 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8512 for found_dir in $rpathdirs; do
8513 acl_save_libdir="$libdir"
8515 eval flag=\"$hardcode_libdir_flag_spec\"
8516 libdir="$acl_save_libdir"
8517 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8521 if test "X$ltrpathdirs" != "X"; then
8522 for found_dir in $ltrpathdirs; do
8523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8534 $as_echo_n "checking for iconv... " >&6; }
8535 if ${am_cv_func_iconv+:} false; then :
8536 $as_echo_n "(cached) " >&6
8539 am_cv_func_iconv="no, consider installing GNU libiconv"
8541 am_save_CPPFLAGS="$CPPFLAGS"
8542 CPPFLAGS="$CPPFLAGS $INCICONV"
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8550 iconv_t cd = iconv_open("","");
8551 iconv(cd,NULL,NULL,NULL,NULL);
8557 if ac_fn_c_try_link "$LINENO"; then :
8558 am_cv_func_iconv=yes
8560 rm -f core conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 CPPFLAGS="$am_save_CPPFLAGS"
8564 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
8565 for _libs in .libs _libs; do
8566 am_save_CPPFLAGS="$CPPFLAGS"
8567 am_save_LIBS="$LIBS"
8568 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
8569 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8577 iconv_t cd = iconv_open("","");
8578 iconv(cd,NULL,NULL,NULL,NULL);
8584 if ac_fn_c_try_link "$LINENO"; then :
8585 INCICONV="-I../libiconv/include"
8586 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
8587 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
8589 am_cv_func_iconv=yes
8591 rm -f core conftest.err conftest.$ac_objext \
8592 conftest$ac_exeext conftest.$ac_ext
8593 CPPFLAGS="$am_save_CPPFLAGS"
8594 LIBS="$am_save_LIBS"
8595 if test "$am_cv_func_iconv" = "yes"; then
8601 if test "$am_cv_func_iconv" != yes; then
8602 am_save_CPPFLAGS="$CPPFLAGS"
8603 am_save_LIBS="$LIBS"
8604 CPPFLAGS="$CPPFLAGS $INCICONV"
8605 LIBS="$LIBS $LIBICONV"
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8613 iconv_t cd = iconv_open("","");
8614 iconv(cd,NULL,NULL,NULL,NULL);
8620 if ac_fn_c_try_link "$LINENO"; then :
8622 am_cv_func_iconv=yes
8624 rm -f core conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8626 CPPFLAGS="$am_save_CPPFLAGS"
8627 LIBS="$am_save_LIBS"
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8632 $as_echo "$am_cv_func_iconv" >&6; }
8633 if test "$am_cv_func_iconv" = yes; then
8635 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8638 if test "$am_cv_lib_iconv" = yes; then
8640 for element in $INCICONV; do
8642 for x in $CPPFLAGS; do
8644 acl_save_prefix="$prefix"
8645 prefix="$acl_final_prefix"
8646 acl_save_exec_prefix="$exec_prefix"
8647 exec_prefix="$acl_final_exec_prefix"
8649 exec_prefix="$acl_save_exec_prefix"
8650 prefix="$acl_save_prefix"
8652 if test "X$x" = "X$element"; then
8657 if test -z "$haveit"; then
8658 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8663 $as_echo_n "checking how to link with libiconv... " >&6; }
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8665 $as_echo "$LIBICONV" >&6; }
8673 if test "$am_cv_func_iconv" = yes; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8675 $as_echo_n "checking for iconv declaration... " >&6; }
8676 if ${am_cv_proto_iconv+:} false; then :
8677 $as_echo_n "(cached) " >&6
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8689 #if defined(__STDC__) || defined(__cplusplus)
8690 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8703 if ac_fn_c_try_compile "$LINENO"; then :
8704 am_cv_proto_iconv_arg1=""
8706 am_cv_proto_iconv_arg1="const"
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 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);"
8712 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8714 }$am_cv_proto_iconv" >&5
8716 }$am_cv_proto_iconv" >&6; }
8718 cat >>confdefs.h <<_ACEOF
8719 #define ICONV_CONST $am_cv_proto_iconv_arg1
8725 # GDB may fork/exec the iconv program to get the list of supported character
8726 # sets. Allow the user to specify where to find it.
8727 # There are several factors affecting the choice of option name:
8728 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8729 # the build-time location of libiconv files.
8730 # - The program we need to find is iconv, which comes with glibc. The user
8731 # doesn't necessarily have libiconv installed. Therefore naming this
8732 # --with-libiconv-foo feels wrong.
8733 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8734 # defined to work on directories not files (though it really doesn't know
8736 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8737 # with --with-libiconv-prefix.
8738 # Putting these together is why the option name is --with-iconv-bin.
8741 # Check whether --with-iconv-bin was given.
8742 if test "${with_iconv_bin+set}" = set; then :
8743 withval=$with_iconv_bin; iconv_bin="${withval}"
8745 cat >>confdefs.h <<_ACEOF
8746 #define ICONV_BIN "${iconv_bin}"
8750 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8751 if test "x$prefix" = xNONE; then
8752 test_prefix=/usr/local
8757 test_prefix=$exec_prefix
8760 case ${iconv_bin} in
8761 "${test_prefix}"|"${test_prefix}/"*|\
8762 '${exec_prefix}'|'${exec_prefix}/'*)
8767 cat >>confdefs.h <<_ACEOF
8768 #define ICONV_BIN_RELOCATABLE $value
8776 # For the TUI, we need enhanced curses functionality.
8777 if test x"$enable_tui" != xno; then
8782 if test x"$prefer_curses" = xyes; then
8783 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8784 # curses library because the latter might not provide all the
8785 # functionality we need. However, this leads to problems on systems
8786 # where the linker searches /usr/local/lib, but the compiler doesn't
8787 # search /usr/local/include, if ncurses is installed in /usr/local. A
8788 # default installation of ncurses on alpha*-dec-osf* will lead to such
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8791 $as_echo_n "checking for library containing waddstr... " >&6; }
8792 if ${ac_cv_search_waddstr+:} false; then :
8793 $as_echo_n "(cached) " >&6
8795 ac_func_search_save_LIBS=$LIBS
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8799 /* Override any GCC internal prototype to avoid an error.
8800 Use char because int might match the return type of a GCC
8801 builtin and then its argument prototype would still apply. */
8814 for ac_lib in '' ncursesw ncurses cursesX curses; do
8815 if test -z "$ac_lib"; then
8816 ac_res="none required"
8819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8821 if ac_fn_c_try_link "$LINENO"; then :
8822 ac_cv_search_waddstr=$ac_res
8824 rm -f core conftest.err conftest.$ac_objext \
8826 if ${ac_cv_search_waddstr+:} false; then :
8830 if ${ac_cv_search_waddstr+:} false; then :
8833 ac_cv_search_waddstr=no
8836 LIBS=$ac_func_search_save_LIBS
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8839 $as_echo "$ac_cv_search_waddstr" >&6; }
8840 ac_res=$ac_cv_search_waddstr
8841 if test "$ac_res" != no; then :
8842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8847 if test "$ac_cv_search_waddstr" != no; then
8852 # Check whether we should enable the TUI, but only do so if we really
8854 if test x"$enable_tui" != xno; then
8855 if test -d $srcdir/tui; then
8856 if test "$curses_found" != no; then
8857 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8858 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8859 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8860 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8862 if test x"$enable_tui" = xyes; then
8863 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8866 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8872 # Since GDB uses Readline, we need termcap functionality. In many
8873 # cases this will be provided by the curses library, but some systems
8874 # have a separate termcap library, or no curses library at all.
8878 if test -d $srcdir/libtermcap; then
8879 LIBS="../libtermcap/libtermcap.a $LIBS"
8880 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8883 ac_cv_search_tgetent="none required"
8887 # These are the libraries checked by Readline.
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8889 $as_echo_n "checking for library containing tgetent... " >&6; }
8890 if ${ac_cv_search_tgetent+:} false; then :
8891 $as_echo_n "(cached) " >&6
8893 ac_func_search_save_LIBS=$LIBS
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8897 /* Override any GCC internal prototype to avoid an error.
8898 Use char because int might match the return type of a GCC
8899 builtin and then its argument prototype would still apply. */
8912 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
8913 if test -z "$ac_lib"; then
8914 ac_res="none required"
8917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8919 if ac_fn_c_try_link "$LINENO"; then :
8920 ac_cv_search_tgetent=$ac_res
8922 rm -f core conftest.err conftest.$ac_objext \
8924 if ${ac_cv_search_tgetent+:} false; then :
8928 if ${ac_cv_search_tgetent+:} false; then :
8931 ac_cv_search_tgetent=no
8934 LIBS=$ac_func_search_save_LIBS
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8937 $as_echo "$ac_cv_search_tgetent" >&6; }
8938 ac_res=$ac_cv_search_tgetent
8939 if test "$ac_res" != no; then :
8940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8945 if test "$ac_cv_search_tgetent" = no; then
8946 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
8950 # Check whether --with-system-readline was given.
8951 if test "${with_system_readline+set}" = set; then :
8952 withval=$with_system_readline;
8956 if test "$with_system_readline" = yes; then
8960 READLINE_TEXI_INCFLAG=
8962 READLINE='$(READLINE_DIR)/libreadline.a'
8963 READLINE_DEPS='$(READLINE)'
8964 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8965 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
8972 # Generate jit-reader.h
8974 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8977 # The cast to long int works around a bug in the HP C Compiler
8978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8980 # This bug is HP SR number 8606223364.
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8982 $as_echo_n "checking size of unsigned long long... " >&6; }
8983 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
8984 $as_echo_n "(cached) " >&6
8986 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8989 if test "$ac_cv_type_unsigned_long_long" = yes; then
8990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8992 as_fn_error 77 "cannot compute sizeof (unsigned long long)
8993 See \`config.log' for more details" "$LINENO" 5; }
8995 ac_cv_sizeof_unsigned_long_long=0
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9001 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9005 cat >>confdefs.h <<_ACEOF
9006 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9010 # The cast to long int works around a bug in the HP C Compiler
9011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9013 # This bug is HP SR number 8606223364.
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9015 $as_echo_n "checking size of unsigned long... " >&6; }
9016 if ${ac_cv_sizeof_unsigned_long+:} false; then :
9017 $as_echo_n "(cached) " >&6
9019 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9022 if test "$ac_cv_type_unsigned_long" = yes; then
9023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9025 as_fn_error 77 "cannot compute sizeof (unsigned long)
9026 See \`config.log' for more details" "$LINENO" 5; }
9028 ac_cv_sizeof_unsigned_long=0
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9034 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9038 cat >>confdefs.h <<_ACEOF
9039 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9043 # The cast to long int works around a bug in the HP C Compiler
9044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9046 # This bug is HP SR number 8606223364.
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9048 $as_echo_n "checking size of unsigned __int128... " >&6; }
9049 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
9050 $as_echo_n "(cached) " >&6
9052 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9055 if test "$ac_cv_type_unsigned___int128" = yes; then
9056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9058 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
9059 See \`config.log' for more details" "$LINENO" 5; }
9061 ac_cv_sizeof_unsigned___int128=0
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9067 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9071 cat >>confdefs.h <<_ACEOF
9072 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9077 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9078 TARGET_PTR="unsigned long"
9079 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9080 TARGET_PTR="unsigned long long"
9081 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9082 TARGET_PTR="unsigned __int128"
9084 TARGET_PTR="unsigned long"
9088 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9092 $as_echo_n "checking for library containing dlopen... " >&6; }
9093 if ${ac_cv_search_dlopen+:} false; then :
9094 $as_echo_n "(cached) " >&6
9096 ac_func_search_save_LIBS=$LIBS
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9100 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9115 for ac_lib in '' dl; do
9116 if test -z "$ac_lib"; then
9117 ac_res="none required"
9120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9122 if ac_fn_c_try_link "$LINENO"; then :
9123 ac_cv_search_dlopen=$ac_res
9125 rm -f core conftest.err conftest.$ac_objext \
9127 if ${ac_cv_search_dlopen+:} false; then :
9131 if ${ac_cv_search_dlopen+:} false; then :
9134 ac_cv_search_dlopen=no
9137 LIBS=$ac_func_search_save_LIBS
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9140 $as_echo "$ac_cv_search_dlopen" >&6; }
9141 ac_res=$ac_cv_search_dlopen
9142 if test "$ac_res" != no; then :
9143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9150 # Check whether --with-jit-reader-dir was given.
9151 if test "${with_jit_reader_dir+set}" = set; then :
9152 withval=$with_jit_reader_dir;
9153 JIT_READER_DIR=$withval
9155 JIT_READER_DIR=${libdir}/gdb
9159 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9161 ac_define_dir=`eval echo $JIT_READER_DIR`
9162 ac_define_dir=`eval echo $ac_define_dir`
9164 cat >>confdefs.h <<_ACEOF
9165 #define JIT_READER_DIR "$ac_define_dir"
9171 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9172 if test "x$prefix" = xNONE; then
9173 test_prefix=/usr/local
9178 test_prefix=$exec_prefix
9181 case ${ac_define_dir} in
9182 "${test_prefix}"|"${test_prefix}/"*|\
9183 '${exec_prefix}'|'${exec_prefix}/'*)
9188 cat >>confdefs.h <<_ACEOF
9189 #define JIT_READER_DIR_RELOCATABLE $value
9196 # Check whether --with-expat was given.
9197 if test "${with_expat+set}" = set; then :
9198 withval=$with_expat;
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9204 $as_echo_n "checking whether to use expat... " >&6; }
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9206 $as_echo "$with_expat" >&6; }
9208 if test "${with_expat}" = no; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9210 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9223 acl_save_prefix="$prefix"
9224 prefix="$acl_final_prefix"
9225 acl_save_exec_prefix="$exec_prefix"
9226 exec_prefix="$acl_final_exec_prefix"
9228 eval additional_includedir=\"$includedir\"
9229 eval additional_libdir=\"$libdir\"
9231 exec_prefix="$acl_save_exec_prefix"
9232 prefix="$acl_save_prefix"
9235 # Check whether --with-libexpat-prefix was given.
9236 if test "${with_libexpat_prefix+set}" = set; then :
9237 withval=$with_libexpat_prefix;
9238 if test "X$withval" = "Xno"; then
9241 if test "X$withval" = "X"; then
9243 acl_save_prefix="$prefix"
9244 prefix="$acl_final_prefix"
9245 acl_save_exec_prefix="$exec_prefix"
9246 exec_prefix="$acl_final_exec_prefix"
9248 eval additional_includedir=\"$includedir\"
9249 eval additional_libdir=\"$libdir\"
9251 exec_prefix="$acl_save_exec_prefix"
9252 prefix="$acl_save_prefix"
9255 additional_includedir="$withval/include"
9256 additional_libdir="$withval/lib"
9267 names_already_handled=
9268 names_next_round='expat '
9269 while test -n "$names_next_round"; do
9270 names_this_round="$names_next_round"
9272 for name in $names_this_round; do
9274 for n in $names_already_handled; do
9275 if test "$n" = "$name"; then
9280 if test -z "$already_handled"; then
9281 names_already_handled="$names_already_handled $name"
9282 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9283 eval value=\"\$HAVE_LIB$uppername\"
9284 if test -n "$value"; then
9285 if test "$value" = yes; then
9286 eval value=\"\$LIB$uppername\"
9287 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
9288 eval value=\"\$LTLIB$uppername\"
9289 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9298 if test $use_additional = yes; then
9299 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9300 found_dir="$additional_libdir"
9301 found_so="$additional_libdir/lib$name.$shlibext"
9302 if test -f "$additional_libdir/lib$name.la"; then
9303 found_la="$additional_libdir/lib$name.la"
9306 if test -f "$additional_libdir/lib$name.$libext"; then
9307 found_dir="$additional_libdir"
9308 found_a="$additional_libdir/lib$name.$libext"
9309 if test -f "$additional_libdir/lib$name.la"; then
9310 found_la="$additional_libdir/lib$name.la"
9315 if test "X$found_dir" = "X"; then
9316 for x in $LDFLAGS $LTLIBEXPAT; do
9318 acl_save_prefix="$prefix"
9319 prefix="$acl_final_prefix"
9320 acl_save_exec_prefix="$exec_prefix"
9321 exec_prefix="$acl_final_exec_prefix"
9323 exec_prefix="$acl_save_exec_prefix"
9324 prefix="$acl_save_prefix"
9328 dir=`echo "X$x" | sed -e 's/^X-L//'`
9329 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9331 found_so="$dir/lib$name.$shlibext"
9332 if test -f "$dir/lib$name.la"; then
9333 found_la="$dir/lib$name.la"
9336 if test -f "$dir/lib$name.$libext"; then
9338 found_a="$dir/lib$name.$libext"
9339 if test -f "$dir/lib$name.la"; then
9340 found_la="$dir/lib$name.la"
9346 if test "X$found_dir" != "X"; then
9351 if test "X$found_dir" != "X"; then
9352 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9353 if test "X$found_so" != "X"; then
9354 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9355 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9358 for x in $ltrpathdirs; do
9359 if test "X$x" = "X$found_dir"; then
9364 if test -z "$haveit"; then
9365 ltrpathdirs="$ltrpathdirs $found_dir"
9367 if test "$hardcode_direct" = yes; then
9368 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9370 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9371 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9373 for x in $rpathdirs; do
9374 if test "X$x" = "X$found_dir"; then
9379 if test -z "$haveit"; then
9380 rpathdirs="$rpathdirs $found_dir"
9384 for x in $LDFLAGS $LIBEXPAT; do
9386 acl_save_prefix="$prefix"
9387 prefix="$acl_final_prefix"
9388 acl_save_exec_prefix="$exec_prefix"
9389 exec_prefix="$acl_final_exec_prefix"
9391 exec_prefix="$acl_save_exec_prefix"
9392 prefix="$acl_save_prefix"
9394 if test "X$x" = "X-L$found_dir"; then
9399 if test -z "$haveit"; then
9400 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9402 if test "$hardcode_minus_L" != no; then
9403 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9405 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9411 if test "X$found_a" != "X"; then
9412 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9414 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9417 additional_includedir=
9418 case "$found_dir" in
9420 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9421 additional_includedir="$basedir/include"
9424 if test "X$additional_includedir" != "X"; then
9425 if test "X$additional_includedir" != "X/usr/include"; then
9427 if test "X$additional_includedir" = "X/usr/local/include"; then
9428 if test -n "$GCC"; then
9430 linux*) haveit=yes;;
9434 if test -z "$haveit"; then
9435 for x in $CPPFLAGS $INCEXPAT; do
9437 acl_save_prefix="$prefix"
9438 prefix="$acl_final_prefix"
9439 acl_save_exec_prefix="$exec_prefix"
9440 exec_prefix="$acl_final_exec_prefix"
9442 exec_prefix="$acl_save_exec_prefix"
9443 prefix="$acl_save_prefix"
9445 if test "X$x" = "X-I$additional_includedir"; then
9450 if test -z "$haveit"; then
9451 if test -d "$additional_includedir"; then
9452 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9458 if test -n "$found_la"; then
9459 save_libdir="$libdir"
9461 */* | *\\*) . "$found_la" ;;
9462 *) . "./$found_la" ;;
9464 libdir="$save_libdir"
9465 for dep in $dependency_libs; do
9468 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9469 if test "X$additional_libdir" != "X/usr/lib"; then
9471 if test "X$additional_libdir" = "X/usr/local/lib"; then
9472 if test -n "$GCC"; then
9474 linux*) haveit=yes;;
9478 if test -z "$haveit"; then
9480 for x in $LDFLAGS $LIBEXPAT; do
9482 acl_save_prefix="$prefix"
9483 prefix="$acl_final_prefix"
9484 acl_save_exec_prefix="$exec_prefix"
9485 exec_prefix="$acl_final_exec_prefix"
9487 exec_prefix="$acl_save_exec_prefix"
9488 prefix="$acl_save_prefix"
9490 if test "X$x" = "X-L$additional_libdir"; then
9495 if test -z "$haveit"; then
9496 if test -d "$additional_libdir"; then
9497 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9501 for x in $LDFLAGS $LTLIBEXPAT; do
9503 acl_save_prefix="$prefix"
9504 prefix="$acl_final_prefix"
9505 acl_save_exec_prefix="$exec_prefix"
9506 exec_prefix="$acl_final_exec_prefix"
9508 exec_prefix="$acl_save_exec_prefix"
9509 prefix="$acl_save_prefix"
9511 if test "X$x" = "X-L$additional_libdir"; then
9516 if test -z "$haveit"; then
9517 if test -d "$additional_libdir"; then
9518 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9525 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9526 if test "$enable_rpath" != no; then
9528 for x in $rpathdirs; do
9529 if test "X$x" = "X$dir"; then
9534 if test -z "$haveit"; then
9535 rpathdirs="$rpathdirs $dir"
9538 for x in $ltrpathdirs; do
9539 if test "X$x" = "X$dir"; then
9544 if test -z "$haveit"; then
9545 ltrpathdirs="$ltrpathdirs $dir"
9550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9553 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9556 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9557 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9563 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9564 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9570 if test "X$rpathdirs" != "X"; then
9571 if test -n "$hardcode_libdir_separator"; then
9573 for found_dir in $rpathdirs; do
9574 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9576 acl_save_libdir="$libdir"
9578 eval flag=\"$hardcode_libdir_flag_spec\"
9579 libdir="$acl_save_libdir"
9580 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9582 for found_dir in $rpathdirs; do
9583 acl_save_libdir="$libdir"
9585 eval flag=\"$hardcode_libdir_flag_spec\"
9586 libdir="$acl_save_libdir"
9587 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9591 if test "X$ltrpathdirs" != "X"; then
9592 for found_dir in $ltrpathdirs; do
9593 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9598 ac_save_CPPFLAGS="$CPPFLAGS"
9600 for element in $INCEXPAT; do
9602 for x in $CPPFLAGS; do
9604 acl_save_prefix="$prefix"
9605 prefix="$acl_final_prefix"
9606 acl_save_exec_prefix="$exec_prefix"
9607 exec_prefix="$acl_final_exec_prefix"
9609 exec_prefix="$acl_save_exec_prefix"
9610 prefix="$acl_save_prefix"
9612 if test "X$x" = "X$element"; then
9617 if test -z "$haveit"; then
9618 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9624 $as_echo_n "checking for libexpat... " >&6; }
9625 if ${ac_cv_libexpat+:} false; then :
9626 $as_echo_n "(cached) " >&6
9629 ac_save_LIBS="$LIBS"
9630 LIBS="$LIBS $LIBEXPAT"
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9637 XML_Parser p = XML_ParserCreate (0);
9642 if ac_fn_c_try_link "$LINENO"; then :
9647 rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LIBS="$ac_save_LIBS"
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9653 $as_echo "$ac_cv_libexpat" >&6; }
9654 if test "$ac_cv_libexpat" = yes; then
9657 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9660 $as_echo_n "checking how to link with libexpat... " >&6; }
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9662 $as_echo "$LIBEXPAT" >&6; }
9665 CPPFLAGS="$ac_save_CPPFLAGS"
9675 if test "$HAVE_LIBEXPAT" != yes; then
9676 if test "$with_expat" = yes; then
9677 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9680 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9684 LIBS="$LIBS $LIBEXPAT"
9685 for ac_func in XML_StopParser
9687 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9688 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
9689 cat >>confdefs.h <<_ACEOF
9690 #define HAVE_XML_STOPPARSER 1
9701 # Check whether --with-mpfr was given.
9702 if test "${with_mpfr+set}" = set; then :
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9709 $as_echo_n "checking whether to use MPFR... " >&6; }
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9711 $as_echo "$with_mpfr" >&6; }
9713 if test "${with_mpfr}" = no; then
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9715 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9728 acl_save_prefix="$prefix"
9729 prefix="$acl_final_prefix"
9730 acl_save_exec_prefix="$exec_prefix"
9731 exec_prefix="$acl_final_exec_prefix"
9733 eval additional_includedir=\"$includedir\"
9734 eval additional_libdir=\"$libdir\"
9736 exec_prefix="$acl_save_exec_prefix"
9737 prefix="$acl_save_prefix"
9740 # Check whether --with-libmpfr-prefix was given.
9741 if test "${with_libmpfr_prefix+set}" = set; then :
9742 withval=$with_libmpfr_prefix;
9743 if test "X$withval" = "Xno"; then
9746 if test "X$withval" = "X"; then
9748 acl_save_prefix="$prefix"
9749 prefix="$acl_final_prefix"
9750 acl_save_exec_prefix="$exec_prefix"
9751 exec_prefix="$acl_final_exec_prefix"
9753 eval additional_includedir=\"$includedir\"
9754 eval additional_libdir=\"$libdir\"
9756 exec_prefix="$acl_save_exec_prefix"
9757 prefix="$acl_save_prefix"
9760 additional_includedir="$withval/include"
9761 additional_libdir="$withval/lib"
9772 names_already_handled=
9773 names_next_round='mpfr gmp'
9774 while test -n "$names_next_round"; do
9775 names_this_round="$names_next_round"
9777 for name in $names_this_round; do
9779 for n in $names_already_handled; do
9780 if test "$n" = "$name"; then
9785 if test -z "$already_handled"; then
9786 names_already_handled="$names_already_handled $name"
9787 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9788 eval value=\"\$HAVE_LIB$uppername\"
9789 if test -n "$value"; then
9790 if test "$value" = yes; then
9791 eval value=\"\$LIB$uppername\"
9792 test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
9793 eval value=\"\$LTLIB$uppername\"
9794 test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9803 if test $use_additional = yes; then
9804 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9805 found_dir="$additional_libdir"
9806 found_so="$additional_libdir/lib$name.$shlibext"
9807 if test -f "$additional_libdir/lib$name.la"; then
9808 found_la="$additional_libdir/lib$name.la"
9811 if test -f "$additional_libdir/lib$name.$libext"; then
9812 found_dir="$additional_libdir"
9813 found_a="$additional_libdir/lib$name.$libext"
9814 if test -f "$additional_libdir/lib$name.la"; then
9815 found_la="$additional_libdir/lib$name.la"
9820 if test "X$found_dir" = "X"; then
9821 for x in $LDFLAGS $LTLIBMPFR; do
9823 acl_save_prefix="$prefix"
9824 prefix="$acl_final_prefix"
9825 acl_save_exec_prefix="$exec_prefix"
9826 exec_prefix="$acl_final_exec_prefix"
9828 exec_prefix="$acl_save_exec_prefix"
9829 prefix="$acl_save_prefix"
9833 dir=`echo "X$x" | sed -e 's/^X-L//'`
9834 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9836 found_so="$dir/lib$name.$shlibext"
9837 if test -f "$dir/lib$name.la"; then
9838 found_la="$dir/lib$name.la"
9841 if test -f "$dir/lib$name.$libext"; then
9843 found_a="$dir/lib$name.$libext"
9844 if test -f "$dir/lib$name.la"; then
9845 found_la="$dir/lib$name.la"
9851 if test "X$found_dir" != "X"; then
9856 if test "X$found_dir" != "X"; then
9857 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9858 if test "X$found_so" != "X"; then
9859 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9860 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9863 for x in $ltrpathdirs; do
9864 if test "X$x" = "X$found_dir"; then
9869 if test -z "$haveit"; then
9870 ltrpathdirs="$ltrpathdirs $found_dir"
9872 if test "$hardcode_direct" = yes; then
9873 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9875 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9876 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9878 for x in $rpathdirs; do
9879 if test "X$x" = "X$found_dir"; then
9884 if test -z "$haveit"; then
9885 rpathdirs="$rpathdirs $found_dir"
9889 for x in $LDFLAGS $LIBMPFR; do
9891 acl_save_prefix="$prefix"
9892 prefix="$acl_final_prefix"
9893 acl_save_exec_prefix="$exec_prefix"
9894 exec_prefix="$acl_final_exec_prefix"
9896 exec_prefix="$acl_save_exec_prefix"
9897 prefix="$acl_save_prefix"
9899 if test "X$x" = "X-L$found_dir"; then
9904 if test -z "$haveit"; then
9905 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
9907 if test "$hardcode_minus_L" != no; then
9908 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9910 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
9916 if test "X$found_a" != "X"; then
9917 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
9919 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
9922 additional_includedir=
9923 case "$found_dir" in
9925 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9926 additional_includedir="$basedir/include"
9929 if test "X$additional_includedir" != "X"; then
9930 if test "X$additional_includedir" != "X/usr/include"; then
9932 if test "X$additional_includedir" = "X/usr/local/include"; then
9933 if test -n "$GCC"; then
9935 linux*) haveit=yes;;
9939 if test -z "$haveit"; then
9940 for x in $CPPFLAGS $INCMPFR; do
9942 acl_save_prefix="$prefix"
9943 prefix="$acl_final_prefix"
9944 acl_save_exec_prefix="$exec_prefix"
9945 exec_prefix="$acl_final_exec_prefix"
9947 exec_prefix="$acl_save_exec_prefix"
9948 prefix="$acl_save_prefix"
9950 if test "X$x" = "X-I$additional_includedir"; then
9955 if test -z "$haveit"; then
9956 if test -d "$additional_includedir"; then
9957 INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
9963 if test -n "$found_la"; then
9964 save_libdir="$libdir"
9966 */* | *\\*) . "$found_la" ;;
9967 *) . "./$found_la" ;;
9969 libdir="$save_libdir"
9970 for dep in $dependency_libs; do
9973 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9974 if test "X$additional_libdir" != "X/usr/lib"; then
9976 if test "X$additional_libdir" = "X/usr/local/lib"; then
9977 if test -n "$GCC"; then
9979 linux*) haveit=yes;;
9983 if test -z "$haveit"; then
9985 for x in $LDFLAGS $LIBMPFR; do
9987 acl_save_prefix="$prefix"
9988 prefix="$acl_final_prefix"
9989 acl_save_exec_prefix="$exec_prefix"
9990 exec_prefix="$acl_final_exec_prefix"
9992 exec_prefix="$acl_save_exec_prefix"
9993 prefix="$acl_save_prefix"
9995 if test "X$x" = "X-L$additional_libdir"; then
10000 if test -z "$haveit"; then
10001 if test -d "$additional_libdir"; then
10002 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10006 for x in $LDFLAGS $LTLIBMPFR; do
10008 acl_save_prefix="$prefix"
10009 prefix="$acl_final_prefix"
10010 acl_save_exec_prefix="$exec_prefix"
10011 exec_prefix="$acl_final_exec_prefix"
10013 exec_prefix="$acl_save_exec_prefix"
10014 prefix="$acl_save_prefix"
10016 if test "X$x" = "X-L$additional_libdir"; then
10021 if test -z "$haveit"; then
10022 if test -d "$additional_libdir"; then
10023 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10030 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10031 if test "$enable_rpath" != no; then
10033 for x in $rpathdirs; do
10034 if test "X$x" = "X$dir"; then
10039 if test -z "$haveit"; then
10040 rpathdirs="$rpathdirs $dir"
10043 for x in $ltrpathdirs; do
10044 if test "X$x" = "X$dir"; then
10049 if test -z "$haveit"; then
10050 ltrpathdirs="$ltrpathdirs $dir"
10055 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10058 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10061 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
10062 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10068 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10069 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10075 if test "X$rpathdirs" != "X"; then
10076 if test -n "$hardcode_libdir_separator"; then
10078 for found_dir in $rpathdirs; do
10079 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10081 acl_save_libdir="$libdir"
10083 eval flag=\"$hardcode_libdir_flag_spec\"
10084 libdir="$acl_save_libdir"
10085 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10087 for found_dir in $rpathdirs; do
10088 acl_save_libdir="$libdir"
10089 libdir="$found_dir"
10090 eval flag=\"$hardcode_libdir_flag_spec\"
10091 libdir="$acl_save_libdir"
10092 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10096 if test "X$ltrpathdirs" != "X"; then
10097 for found_dir in $ltrpathdirs; do
10098 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10103 ac_save_CPPFLAGS="$CPPFLAGS"
10105 for element in $INCMPFR; do
10107 for x in $CPPFLAGS; do
10109 acl_save_prefix="$prefix"
10110 prefix="$acl_final_prefix"
10111 acl_save_exec_prefix="$exec_prefix"
10112 exec_prefix="$acl_final_exec_prefix"
10114 exec_prefix="$acl_save_exec_prefix"
10115 prefix="$acl_save_prefix"
10117 if test "X$x" = "X$element"; then
10122 if test -z "$haveit"; then
10123 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10129 $as_echo_n "checking for libmpfr... " >&6; }
10130 if ${ac_cv_libmpfr+:} false; then :
10131 $as_echo_n "(cached) " >&6
10134 ac_save_LIBS="$LIBS"
10135 LIBS="$LIBS $LIBMPFR"
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10142 mpfr_exp_t exp; mpfr_t x;
10143 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10148 if ac_fn_c_try_link "$LINENO"; then :
10153 rm -f core conftest.err conftest.$ac_objext \
10154 conftest$ac_exeext conftest.$ac_ext
10155 LIBS="$ac_save_LIBS"
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10159 $as_echo "$ac_cv_libmpfr" >&6; }
10160 if test "$ac_cv_libmpfr" = yes; then
10163 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10166 $as_echo_n "checking how to link with libmpfr... " >&6; }
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10168 $as_echo "$LIBMPFR" >&6; }
10171 CPPFLAGS="$ac_save_CPPFLAGS"
10181 if test "$HAVE_LIBMPFR" != yes; then
10182 if test "$with_mpfr" = yes; then
10183 as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10186 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10191 # --------------------- #
10192 # Check for libpython. #
10193 # --------------------- #
10200 # Check whether --with-python was given.
10201 if test "${with_python+set}" = set; then :
10202 withval=$with_python;
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10208 $as_echo_n "checking whether to use python... " >&6; }
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10210 $as_echo "$with_python" >&6; }
10212 if test "${with_python}" = no; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10214 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10217 case "${with_python}" in
10219 if test -d ${with_python}; then
10220 # Assume the python binary is ${with_python}/bin/python.
10221 python_prog="${with_python}/bin/python"
10223 # If python does not exit ${with_python}/bin, then try in
10224 # ${with_python}. On Windows/MinGW, this is where the Python
10226 if test ! -x "${python_prog}"; then
10227 python_prog="${with_python}/python"
10230 if test ! -x "${python_prog}"; then
10231 # Fall back to gdb 7.0/7.1 behaviour.
10232 python_prog=missing
10233 python_prefix=${with_python}
10235 elif test -x "${with_python}"; then
10236 # While we can't run python compiled for $host (unless host == build),
10237 # the user could write a script that provides the needed information,
10238 # so we support that.
10239 python_prog=${with_python}
10242 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
10246 # Disallow --with-python=foo/bar.
10247 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
10250 # The user has either specified auto, yes, or the name of the python
10251 # program assumed to be in $PATH.
10253 case "${with_python}" in
10255 if test ${build} = ${host}; then
10256 # Extract the first word of "python", so it can be a program name with args.
10257 set dummy python; ac_word=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if ${ac_cv_path_python_prog_path+:} false; then :
10261 $as_echo_n "(cached) " >&6
10263 case $python_prog_path in
10265 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10287 python_prog_path=$ac_cv_path_python_prog_path
10288 if test -n "$python_prog_path"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10290 $as_echo "$python_prog_path" >&6; }
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293 $as_echo "no" >&6; }
10297 if test "${python_prog_path}" = missing; then
10298 python_prog=missing
10300 python_prog=${python_prog_path}
10303 # Not much we can do except assume the cross-compiler will find the
10305 python_prog=missing
10309 # While we can't run python compiled for $host (unless host == build),
10310 # the user could write a script that provides the needed information,
10311 # so we support that.
10312 python_prog="${with_python}"
10313 # Extract the first word of "${python_prog}", so it can be a program name with args.
10314 set dummy ${python_prog}; ac_word=$2
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316 $as_echo_n "checking for $ac_word... " >&6; }
10317 if ${ac_cv_path_python_prog_path+:} false; then :
10318 $as_echo_n "(cached) " >&6
10320 case $python_prog_path in
10322 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326 for as_dir in $PATH
10329 test -z "$as_dir" && as_dir=.
10330 for ac_exec_ext in '' $ac_executable_extensions; do
10331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10332 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10340 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10344 python_prog_path=$ac_cv_path_python_prog_path
10345 if test -n "$python_prog_path"; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10347 $as_echo "$python_prog_path" >&6; }
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10354 if test "${python_prog_path}" = missing; then
10355 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
10361 if test "${python_prog}" != missing; then
10362 # We have a python program to use, but it may be too old.
10363 # Don't flag an error for --with-python=auto (the default).
10364 have_python_config=yes
10365 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10366 if test $? != 0; then
10367 have_python_config=failed
10368 if test "${with_python}" != auto; then
10369 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
10372 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10373 if test $? != 0; then
10374 have_python_config=failed
10375 if test "${with_python}" != auto; then
10376 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
10379 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10380 if test $? != 0; then
10381 have_python_config=failed
10382 if test "${with_python}" != auto; then
10383 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
10387 # We do not have a python executable we can use to determine where
10388 # to find the Python headers and libs. We cannot guess the include
10389 # path from the python_prefix either, because that include path
10390 # depends on the Python version. So, there is nothing much we can
10391 # do except assume that the compiler will be able to find those files.
10394 have_python_config=no
10397 # If we have python-config, only try the configuration it provides.
10398 # Otherwise fallback on the old way of trying different versions of
10402 if test "${have_python_config}" = yes; then
10403 # Determine the Python version by extracting "-lpython<version>"
10404 # part of the python_libs. <version> is usually X.Y with X and Y
10405 # being decimal numbers, but can also be XY (seen on Windows).
10407 # The extraction is performed using sed with a regular expression.
10408 # Initially, the regexp used was using the '?' quantifier to make
10409 # the dot in the version number optional. Unfortunately, this
10410 # does not work with non-GNU versions of sed because, because of
10411 # what looks like a limitation (the '?' quantifier does not work
10412 # with back-references). We work around this limitation by using
10413 # the '*' quantifier instead. It means that, in theory, we might
10414 # match unexpected version strings such as "-lpython2..7", but
10415 # this seems unlikely in practice. And even if that happens,
10416 # an error will be triggered later on, when checking that version
10418 python_version=`echo " ${python_libs} " \
10419 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10420 case "${python_version}" in
10423 version=${python_version}
10425 new_CPPFLAGS=${python_includes}
10426 new_LIBS=${python_libs}
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10428 $as_echo_n "checking for ${version}... " >&6; }
10429 save_CPPFLAGS=$CPPFLAGS
10431 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10432 LIBS="$new_LIBS $LIBS"
10433 found_usable_python=no
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10436 #include "Python.h"
10445 if ac_fn_c_try_link "$LINENO"; then :
10446 have_libpython=${version}
10447 found_usable_python=yes
10448 PYTHON_CPPFLAGS=$new_CPPFLAGS
10449 PYTHON_LIBS=$new_LIBS
10451 rm -f core conftest.err conftest.$ac_objext \
10452 conftest$ac_exeext conftest.$ac_ext
10453 CPPFLAGS=$save_CPPFLAGS
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10456 $as_echo "${found_usable_python}" >&6; }
10460 as_fn_error $? "unable to determine python version from ${python_libs}" "$LINENO" 5
10463 elif test "${have_python_config}" != failed; then
10464 if test "${have_libpython}" = no; then
10468 new_CPPFLAGS=${python_includes}
10469 new_LIBS="-lpython2.7 ${python_libs}"
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10471 $as_echo_n "checking for ${version}... " >&6; }
10472 save_CPPFLAGS=$CPPFLAGS
10474 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10475 LIBS="$new_LIBS $LIBS"
10476 found_usable_python=no
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 #include "Python.h"
10488 if ac_fn_c_try_link "$LINENO"; then :
10489 have_libpython=${version}
10490 found_usable_python=yes
10491 PYTHON_CPPFLAGS=$new_CPPFLAGS
10492 PYTHON_LIBS=$new_LIBS
10494 rm -f core conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10496 CPPFLAGS=$save_CPPFLAGS
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10499 $as_echo "${found_usable_python}" >&6; }
10502 if test "${have_libpython}" = no; then
10506 new_CPPFLAGS=${python_includes}
10507 new_LIBS="-lpython2.6 ${python_libs}"
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10509 $as_echo_n "checking for ${version}... " >&6; }
10510 save_CPPFLAGS=$CPPFLAGS
10512 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10513 LIBS="$new_LIBS $LIBS"
10514 found_usable_python=no
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517 #include "Python.h"
10526 if ac_fn_c_try_link "$LINENO"; then :
10527 have_libpython=${version}
10528 found_usable_python=yes
10529 PYTHON_CPPFLAGS=$new_CPPFLAGS
10530 PYTHON_LIBS=$new_LIBS
10532 rm -f core conftest.err conftest.$ac_objext \
10533 conftest$ac_exeext conftest.$ac_ext
10534 CPPFLAGS=$save_CPPFLAGS
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10537 $as_echo "${found_usable_python}" >&6; }
10541 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
10543 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10545 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
10547 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10551 if test "${have_libpython}" = no; then
10552 case "${with_python}" in
10554 as_fn_error $? "python is missing or unusable" "$LINENO" 5
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10558 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10561 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
10565 if test -n "${python_prefix}"; then
10567 cat >>confdefs.h <<_ACEOF
10568 #define WITH_PYTHON_PATH "${python_prefix}"
10572 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10573 if test "x$prefix" = xNONE; then
10574 test_prefix=/usr/local
10576 test_prefix=$prefix
10579 test_prefix=$exec_prefix
10582 case ${python_prefix} in
10583 "${test_prefix}"|"${test_prefix}/"*|\
10584 '${exec_prefix}'|'${exec_prefix}/'*)
10589 cat >>confdefs.h <<_ACEOF
10590 #define PYTHON_PATH_RELOCATABLE $value
10598 if test "${have_libpython}" != no; then
10600 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10602 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10603 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10604 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10605 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
10606 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10608 # Flags needed to compile Python code (taken from python-config --cflags).
10609 # We cannot call python-config directly because it will output whatever was
10610 # used when compiling the Python interpreter itself, including flags which
10611 # would make the python-related objects be compiled differently from the
10612 # rest of GDB (e.g., -O2 and -fPIC).
10613 if test "${GCC}" = yes; then
10614 tentative_python_cflags="-fno-strict-aliasing -fwrapv"
10615 # Python headers recommend -DNDEBUG, but it's unclear if that just
10616 # refers to building Python itself. In release mode, though, it
10617 # doesn't hurt for the Python code in gdb to follow.
10618 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
10621 if test "x${tentative_python_cflags}" != x; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10623 $as_echo_n "checking compiler flags for python code... " >&6; }
10624 for flag in ${tentative_python_cflags}; do
10625 # Check that the compiler accepts it
10626 saved_CFLAGS="$CFLAGS"
10627 CFLAGS="$CFLAGS $flag"
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10639 if ac_fn_c_try_compile "$LINENO"; then :
10640 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 CFLAGS="$saved_CFLAGS"
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10646 $as_echo "${PYTHON_CFLAGS}" >&6; }
10649 # On x64 Windows, Python's include headers, and pyconfig.h in
10650 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10651 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10652 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10653 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10654 # The issue was reported to the Python community, but still isn't
10655 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10657 case "$gdb_host" in
10659 if test "${GCC}" = yes; then
10660 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
10665 # Note that "python -m threading" cannot be used to check for
10666 # threading support due to a bug in Python 2.7.3
10667 # (http://bugs.python.org/issue15567).
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10669 $as_echo_n "checking whether python supports threads... " >&6; }
10670 saved_CPPFLAGS="${CPPFLAGS}"
10671 CPPFLAGS="${PYTHON_CPPFLAGS}"
10672 # Note that the test is reversed so that python_has_threads=yes on
10673 # unexpected failures.
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10677 #include <Python.h>
10683 if ac_fn_c_try_cpp "$LINENO"; then :
10684 python_has_threads=no
10686 python_has_threads=yes
10688 rm -f conftest.err conftest.i conftest.$ac_ext
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10690 $as_echo "${python_has_threads}" >&6; }
10691 CPPFLAGS="${saved_CPPFLAGS}"
10693 # Even if Python support is not compiled in, we need to have this file
10694 # included so that the "python" command, et.al., still exists.
10695 CONFIG_OBS="$CONFIG_OBS python/python.o"
10696 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
10699 # Work around Python http://bugs.python.org/issue10112. See also
10700 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10701 # no effect. Note that the only test after this that uses Python is
10702 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10703 # run without -export-dynamic too.
10704 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10709 if test "${have_libpython}" != no; then
10711 HAVE_PYTHON_FALSE='#'
10713 HAVE_PYTHON_TRUE='#'
10718 # -------------------- #
10719 # Check for libguile. #
10720 # -------------------- #
10727 # Check whether --with-guile was given.
10728 if test "${with_guile+set}" = set; then :
10729 withval=$with_guile;
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10735 $as_echo_n "checking whether to use guile... " >&6; }
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10737 $as_echo "$with_guile" >&6; }
10739 # Extract the first word of "pkg-config", so it can be a program name with args.
10740 set dummy pkg-config; ac_word=$2
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742 $as_echo_n "checking for $ac_word... " >&6; }
10743 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
10744 $as_echo_n "(cached) " >&6
10746 case $pkg_config_prog_path in
10748 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $PATH
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10758 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10766 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
10770 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
10771 if test -n "$pkg_config_prog_path"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10773 $as_echo "$pkg_config_prog_path" >&6; }
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; }
10781 try_guile_versions="guile-2.0"
10783 case "${with_guile}" in
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10786 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10789 if test "${pkg_config_prog_path}" = "missing"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10791 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10794 pkg_config=${pkg_config_prog_path}
10795 guile_version_list=${try_guile_versions}
10798 found_usable_guile=checking
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10800 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10801 for guile_version in ${guile_version_list}; do
10802 ${pkg_config} --exists ${guile_version} 2>/dev/null
10803 if test $? != 0; then
10806 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
10807 if test $? != 0; then
10808 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10810 new_LIBS=`${pkg_config} --libs ${guile_version}`
10811 if test $? != 0; then
10812 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10814 found_usable_guile=${guile_version}
10817 if test "${found_usable_guile}" = "checking"; then
10818 if test "${flag_errors}" = "yes"; then
10819 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10821 found_usable_guile=no
10824 if test "${found_usable_guile}" != no; then
10825 save_CPPFLAGS=$CPPFLAGS
10827 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10828 LIBS="$LIBS $new_LIBS"
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831 #include "libguile.h"
10840 if ac_fn_c_try_link "$LINENO"; then :
10842 GUILE_CPPFLAGS=$new_CPPFLAGS
10843 GUILE_LIBS=$new_LIBS
10845 found_usable_guile=no
10847 rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10850 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
10852 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10857 CPPFLAGS=$save_CPPFLAGS
10859 if test "${found_usable_guile}" = no; then
10860 if test "${flag_errors}" = yes; then
10861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10863 as_fn_error $? "linking guile version ${guile_version} test program failed
10864 See \`config.log' for more details" "$LINENO" 5; }
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10869 $as_echo "${found_usable_guile}" >&6; }
10874 if test "${pkg_config_prog_path}" = "missing"; then
10875 as_fn_error $? "pkg-config not found" "$LINENO" 5
10878 pkg_config=${pkg_config_prog_path}
10879 guile_version_list=${try_guile_versions}
10882 found_usable_guile=checking
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10884 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10885 for guile_version in ${guile_version_list}; do
10886 ${pkg_config} --exists ${guile_version} 2>/dev/null
10887 if test $? != 0; then
10890 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
10891 if test $? != 0; then
10892 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10894 new_LIBS=`${pkg_config} --libs ${guile_version}`
10895 if test $? != 0; then
10896 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10898 found_usable_guile=${guile_version}
10901 if test "${found_usable_guile}" = "checking"; then
10902 if test "${flag_errors}" = "yes"; then
10903 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10905 found_usable_guile=no
10908 if test "${found_usable_guile}" != no; then
10909 save_CPPFLAGS=$CPPFLAGS
10911 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10912 LIBS="$LIBS $new_LIBS"
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10915 #include "libguile.h"
10924 if ac_fn_c_try_link "$LINENO"; then :
10926 GUILE_CPPFLAGS=$new_CPPFLAGS
10927 GUILE_LIBS=$new_LIBS
10929 found_usable_guile=no
10931 rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10934 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
10936 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10941 CPPFLAGS=$save_CPPFLAGS
10943 if test "${found_usable_guile}" = no; then
10944 if test "${flag_errors}" = yes; then
10945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10947 as_fn_error $? "linking guile version ${guile_version} test program failed
10948 See \`config.log' for more details" "$LINENO" 5; }
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10953 $as_echo "${found_usable_guile}" >&6; }
10957 if test -x "${with_guile}"; then
10959 pkg_config=${with_guile}
10960 guile_version_list=${try_guile_versions}
10963 found_usable_guile=checking
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10965 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10966 for guile_version in ${guile_version_list}; do
10967 ${pkg_config} --exists ${guile_version} 2>/dev/null
10968 if test $? != 0; then
10971 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
10972 if test $? != 0; then
10973 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10975 new_LIBS=`${pkg_config} --libs ${guile_version}`
10976 if test $? != 0; then
10977 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10979 found_usable_guile=${guile_version}
10982 if test "${found_usable_guile}" = "checking"; then
10983 if test "${flag_errors}" = "yes"; then
10984 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10986 found_usable_guile=no
10989 if test "${found_usable_guile}" != no; then
10990 save_CPPFLAGS=$CPPFLAGS
10992 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10993 LIBS="$LIBS $new_LIBS"
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10996 #include "libguile.h"
11005 if ac_fn_c_try_link "$LINENO"; then :
11007 GUILE_CPPFLAGS=$new_CPPFLAGS
11008 GUILE_LIBS=$new_LIBS
11010 found_usable_guile=no
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11015 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11017 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11022 CPPFLAGS=$save_CPPFLAGS
11024 if test "${found_usable_guile}" = no; then
11025 if test "${flag_errors}" = yes; then
11026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11028 as_fn_error $? "linking guile version ${guile_version} test program failed
11029 See \`config.log' for more details" "$LINENO" 5; }
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11034 $as_echo "${found_usable_guile}" >&6; }
11037 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
11041 # Disallow --with=guile="" and --with-guile=foo/bar.
11042 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
11045 # A space separate list of guile versions to try, in order.
11046 if test "${pkg_config_prog_path}" = "missing"; then
11047 as_fn_error $? "pkg-config not found" "$LINENO" 5
11050 pkg_config=${pkg_config_prog_path}
11051 guile_version_list=${with_guile}
11054 found_usable_guile=checking
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11056 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11057 for guile_version in ${guile_version_list}; do
11058 ${pkg_config} --exists ${guile_version} 2>/dev/null
11059 if test $? != 0; then
11062 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11063 if test $? != 0; then
11064 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11066 new_LIBS=`${pkg_config} --libs ${guile_version}`
11067 if test $? != 0; then
11068 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11070 found_usable_guile=${guile_version}
11073 if test "${found_usable_guile}" = "checking"; then
11074 if test "${flag_errors}" = "yes"; then
11075 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11077 found_usable_guile=no
11080 if test "${found_usable_guile}" != no; then
11081 save_CPPFLAGS=$CPPFLAGS
11083 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11084 LIBS="$LIBS $new_LIBS"
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087 #include "libguile.h"
11096 if ac_fn_c_try_link "$LINENO"; then :
11098 GUILE_CPPFLAGS=$new_CPPFLAGS
11099 GUILE_LIBS=$new_LIBS
11101 found_usable_guile=no
11103 rm -f core conftest.err conftest.$ac_objext \
11104 conftest$ac_exeext conftest.$ac_ext
11105 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11106 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11108 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11113 CPPFLAGS=$save_CPPFLAGS
11115 if test "${found_usable_guile}" = no; then
11116 if test "${flag_errors}" = yes; then
11117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11119 as_fn_error $? "linking guile version ${guile_version} test program failed
11120 See \`config.log' for more details" "$LINENO" 5; }
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11125 $as_echo "${found_usable_guile}" >&6; }
11130 if test "${have_libguile}" != no; then
11131 case "${with_guile}" in
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11135 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11136 if ${ac_cv_guild_program_name+:} false; then :
11137 $as_echo_n "(cached) " >&6
11139 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
11141 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11142 # the 'guild' and 'bindir' variables. In that case, try to guess
11143 # what the program name is, at the risk of getting it wrong if
11144 # Guile was configured with '--program-suffix' or similar.
11145 if test "x$ac_cv_guild_program_name" = "x"; then
11146 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11147 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11152 $as_echo "$ac_cv_guild_program_name" >&6; }
11154 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11155 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11158 GUILD="$ac_cv_guild_program_name"
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11165 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11166 if ${ac_cv_guild_program_name+:} false; then :
11167 $as_echo_n "(cached) " >&6
11169 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11171 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11172 # the 'guild' and 'bindir' variables. In that case, try to guess
11173 # what the program name is, at the risk of getting it wrong if
11174 # Guile was configured with '--program-suffix' or similar.
11175 if test "x$ac_cv_guild_program_name" = "x"; then
11176 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11177 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11182 $as_echo "$ac_cv_guild_program_name" >&6; }
11184 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11185 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11188 GUILD="$ac_cv_guild_program_name"
11195 if test "$cross_compiling" = no; then
11198 GUILD_TARGET_FLAG="--target=$host"
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11205 $as_echo_n "checking whether guild supports this host... " >&6; }
11206 if ${ac_cv_guild_ok+:} false; then :
11207 $as_echo_n "(cached) " >&6
11209 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11210 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11217 $as_echo "$ac_cv_guild_ok" >&6; }
11219 if test "$ac_cv_guild_ok" = no; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11222 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11226 if test "${have_libguile}" != no; then
11228 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11230 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11231 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11232 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11233 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
11234 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11237 save_CPPFLAGS="$CPPFLAGS"
11239 CPPFLAGS="$GUILE_CPPFLAGS"
11240 for ac_func in scm_new_smob
11242 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11243 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
11244 cat >>confdefs.h <<_ACEOF
11245 #define HAVE_SCM_NEW_SMOB 1
11252 CPPFLAGS="$save_CPPFLAGS"
11254 # Even if Guile support is not compiled in, we need to have these files
11256 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
11257 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
11261 if test "${have_libguile}" != no; then
11263 HAVE_GUILE_FALSE='#'
11265 HAVE_GUILE_TRUE='#'
11270 # ---------------------------- #
11271 # Check for source highlight. #
11272 # ---------------------------- #
11277 # Check whether --enable-source-highlight was given.
11278 if test "${enable_source_highlight+set}" = set; then :
11279 enableval=$enable_source_highlight; case "${enableval}" in
11280 yes) enable_source_highlight=yes ;;
11281 no) enable_source_highlight=no ;;
11282 *) as_fn_error $? "bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11285 enable_source_highlight=auto
11289 if test "${enable_source_highlight}" != "no"; then
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11291 $as_echo_n "checking for the source-highlight library... " >&6; }
11292 if test "${pkg_config_prog_path}" = "missing"; then
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11294 $as_echo "no - pkg-config not found" >&6; }
11295 if test "${enable_source_highlight}" = "yes"; then
11296 as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
11299 if ${pkg_config_prog_path} --exists source-highlight; then
11300 SRCHIGH_CFLAGS=`${pkg_config_prog_path} --cflags source-highlight`
11301 SRCHIGH_LIBS=`${pkg_config_prog_path} --libs source-highlight`
11303 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11306 $as_echo "yes" >&6; }
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11310 if test "${enable_source_highlight}" = "yes"; then
11311 as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
11319 # --------------------- #
11320 # Check for libmcheck. #
11321 # --------------------- #
11323 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11324 # but turn it off if Python is enabled with threads, since -lmcheck is
11325 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11326 # and for releases.
11327 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
11328 && $development; then
11329 libmcheck_default=yes
11331 libmcheck_default=no
11334 # Check whether --enable-libmcheck was given.
11335 if test "${enable_libmcheck+set}" = set; then :
11336 enableval=$enable_libmcheck; case "${enableval}" in
11337 yes | y) ENABLE_LIBMCHECK="yes" ;;
11338 no | n) ENABLE_LIBMCHECK="no" ;;
11339 *) as_fn_error $? "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11344 if test -z "${ENABLE_LIBMCHECK}"; then
11345 ENABLE_LIBMCHECK=${libmcheck_default}
11348 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11350 $as_echo_n "checking for main in -lmcheck... " >&6; }
11351 if ${ac_cv_lib_mcheck_main+:} false; then :
11352 $as_echo_n "(cached) " >&6
11354 ac_check_lib_save_LIBS=$LIBS
11355 LIBS="-lmcheck $LIBS"
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11368 if ac_fn_c_try_link "$LINENO"; then :
11369 ac_cv_lib_mcheck_main=yes
11371 ac_cv_lib_mcheck_main=no
11373 rm -f core conftest.err conftest.$ac_objext \
11374 conftest$ac_exeext conftest.$ac_ext
11375 LIBS=$ac_check_lib_save_LIBS
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11378 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11379 if test "x$ac_cv_lib_mcheck_main" = xyes; then :
11380 cat >>confdefs.h <<_ACEOF
11381 #define HAVE_LIBMCHECK 1
11384 LIBS="-lmcheck $LIBS"
11391 if test "$ENABLE_LIBMCHECK" = "yes" \
11392 -a "${have_libpython}" != "no" \
11393 -a "${python_has_threads}" = "yes" ; then
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11395 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11399 # Check whether --with-intel_pt was given.
11400 if test "${with_intel_pt+set}" = set; then :
11401 withval=$with_intel_pt;
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11407 $as_echo_n "checking whether to use intel pt... " >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11409 $as_echo "$with_intel_pt" >&6; }
11411 if test "${with_intel_pt}" = no; then
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11413 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11419 #include <linux/perf_event.h>
11420 #ifndef PERF_ATTR_SIZE_VER5
11425 if ac_fn_c_try_cpp "$LINENO"; then :
11430 rm -f conftest.err conftest.i conftest.$ac_ext
11431 if test "$perf_event" != yes; then
11432 if test "$with_intel_pt" = yes; then
11433 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11436 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11450 acl_save_prefix="$prefix"
11451 prefix="$acl_final_prefix"
11452 acl_save_exec_prefix="$exec_prefix"
11453 exec_prefix="$acl_final_exec_prefix"
11455 eval additional_includedir=\"$includedir\"
11456 eval additional_libdir=\"$libdir\"
11458 exec_prefix="$acl_save_exec_prefix"
11459 prefix="$acl_save_prefix"
11462 # Check whether --with-libipt-prefix was given.
11463 if test "${with_libipt_prefix+set}" = set; then :
11464 withval=$with_libipt_prefix;
11465 if test "X$withval" = "Xno"; then
11468 if test "X$withval" = "X"; then
11470 acl_save_prefix="$prefix"
11471 prefix="$acl_final_prefix"
11472 acl_save_exec_prefix="$exec_prefix"
11473 exec_prefix="$acl_final_exec_prefix"
11475 eval additional_includedir=\"$includedir\"
11476 eval additional_libdir=\"$libdir\"
11478 exec_prefix="$acl_save_exec_prefix"
11479 prefix="$acl_save_prefix"
11482 additional_includedir="$withval/include"
11483 additional_libdir="$withval/lib"
11494 names_already_handled=
11495 names_next_round='ipt '
11496 while test -n "$names_next_round"; do
11497 names_this_round="$names_next_round"
11499 for name in $names_this_round; do
11501 for n in $names_already_handled; do
11502 if test "$n" = "$name"; then
11503 already_handled=yes
11507 if test -z "$already_handled"; then
11508 names_already_handled="$names_already_handled $name"
11509 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11510 eval value=\"\$HAVE_LIB$uppername\"
11511 if test -n "$value"; then
11512 if test "$value" = yes; then
11513 eval value=\"\$LIB$uppername\"
11514 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
11515 eval value=\"\$LTLIB$uppername\"
11516 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
11525 if test $use_additional = yes; then
11526 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11527 found_dir="$additional_libdir"
11528 found_so="$additional_libdir/lib$name.$shlibext"
11529 if test -f "$additional_libdir/lib$name.la"; then
11530 found_la="$additional_libdir/lib$name.la"
11533 if test -f "$additional_libdir/lib$name.$libext"; then
11534 found_dir="$additional_libdir"
11535 found_a="$additional_libdir/lib$name.$libext"
11536 if test -f "$additional_libdir/lib$name.la"; then
11537 found_la="$additional_libdir/lib$name.la"
11542 if test "X$found_dir" = "X"; then
11543 for x in $LDFLAGS $LTLIBIPT; do
11545 acl_save_prefix="$prefix"
11546 prefix="$acl_final_prefix"
11547 acl_save_exec_prefix="$exec_prefix"
11548 exec_prefix="$acl_final_exec_prefix"
11550 exec_prefix="$acl_save_exec_prefix"
11551 prefix="$acl_save_prefix"
11555 dir=`echo "X$x" | sed -e 's/^X-L//'`
11556 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11558 found_so="$dir/lib$name.$shlibext"
11559 if test -f "$dir/lib$name.la"; then
11560 found_la="$dir/lib$name.la"
11563 if test -f "$dir/lib$name.$libext"; then
11565 found_a="$dir/lib$name.$libext"
11566 if test -f "$dir/lib$name.la"; then
11567 found_la="$dir/lib$name.la"
11573 if test "X$found_dir" != "X"; then
11578 if test "X$found_dir" != "X"; then
11579 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11580 if test "X$found_so" != "X"; then
11581 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11582 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11585 for x in $ltrpathdirs; do
11586 if test "X$x" = "X$found_dir"; then
11591 if test -z "$haveit"; then
11592 ltrpathdirs="$ltrpathdirs $found_dir"
11594 if test "$hardcode_direct" = yes; then
11595 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11597 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11598 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11600 for x in $rpathdirs; do
11601 if test "X$x" = "X$found_dir"; then
11606 if test -z "$haveit"; then
11607 rpathdirs="$rpathdirs $found_dir"
11611 for x in $LDFLAGS $LIBIPT; do
11613 acl_save_prefix="$prefix"
11614 prefix="$acl_final_prefix"
11615 acl_save_exec_prefix="$exec_prefix"
11616 exec_prefix="$acl_final_exec_prefix"
11618 exec_prefix="$acl_save_exec_prefix"
11619 prefix="$acl_save_prefix"
11621 if test "X$x" = "X-L$found_dir"; then
11626 if test -z "$haveit"; then
11627 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11629 if test "$hardcode_minus_L" != no; then
11630 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11632 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11638 if test "X$found_a" != "X"; then
11639 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
11641 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11644 additional_includedir=
11645 case "$found_dir" in
11647 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11648 additional_includedir="$basedir/include"
11651 if test "X$additional_includedir" != "X"; then
11652 if test "X$additional_includedir" != "X/usr/include"; then
11654 if test "X$additional_includedir" = "X/usr/local/include"; then
11655 if test -n "$GCC"; then
11657 linux*) haveit=yes;;
11661 if test -z "$haveit"; then
11662 for x in $CPPFLAGS $INCIPT; do
11664 acl_save_prefix="$prefix"
11665 prefix="$acl_final_prefix"
11666 acl_save_exec_prefix="$exec_prefix"
11667 exec_prefix="$acl_final_exec_prefix"
11669 exec_prefix="$acl_save_exec_prefix"
11670 prefix="$acl_save_prefix"
11672 if test "X$x" = "X-I$additional_includedir"; then
11677 if test -z "$haveit"; then
11678 if test -d "$additional_includedir"; then
11679 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11685 if test -n "$found_la"; then
11686 save_libdir="$libdir"
11687 case "$found_la" in
11688 */* | *\\*) . "$found_la" ;;
11689 *) . "./$found_la" ;;
11691 libdir="$save_libdir"
11692 for dep in $dependency_libs; do
11695 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11696 if test "X$additional_libdir" != "X/usr/lib"; then
11698 if test "X$additional_libdir" = "X/usr/local/lib"; then
11699 if test -n "$GCC"; then
11701 linux*) haveit=yes;;
11705 if test -z "$haveit"; then
11707 for x in $LDFLAGS $LIBIPT; do
11709 acl_save_prefix="$prefix"
11710 prefix="$acl_final_prefix"
11711 acl_save_exec_prefix="$exec_prefix"
11712 exec_prefix="$acl_final_exec_prefix"
11714 exec_prefix="$acl_save_exec_prefix"
11715 prefix="$acl_save_prefix"
11717 if test "X$x" = "X-L$additional_libdir"; then
11722 if test -z "$haveit"; then
11723 if test -d "$additional_libdir"; then
11724 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11728 for x in $LDFLAGS $LTLIBIPT; do
11730 acl_save_prefix="$prefix"
11731 prefix="$acl_final_prefix"
11732 acl_save_exec_prefix="$exec_prefix"
11733 exec_prefix="$acl_final_exec_prefix"
11735 exec_prefix="$acl_save_exec_prefix"
11736 prefix="$acl_save_prefix"
11738 if test "X$x" = "X-L$additional_libdir"; then
11743 if test -z "$haveit"; then
11744 if test -d "$additional_libdir"; then
11745 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11752 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11753 if test "$enable_rpath" != no; then
11755 for x in $rpathdirs; do
11756 if test "X$x" = "X$dir"; then
11761 if test -z "$haveit"; then
11762 rpathdirs="$rpathdirs $dir"
11765 for x in $ltrpathdirs; do
11766 if test "X$x" = "X$dir"; then
11771 if test -z "$haveit"; then
11772 ltrpathdirs="$ltrpathdirs $dir"
11777 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11780 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11783 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
11784 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11790 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11791 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11797 if test "X$rpathdirs" != "X"; then
11798 if test -n "$hardcode_libdir_separator"; then
11800 for found_dir in $rpathdirs; do
11801 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11803 acl_save_libdir="$libdir"
11805 eval flag=\"$hardcode_libdir_flag_spec\"
11806 libdir="$acl_save_libdir"
11807 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11809 for found_dir in $rpathdirs; do
11810 acl_save_libdir="$libdir"
11811 libdir="$found_dir"
11812 eval flag=\"$hardcode_libdir_flag_spec\"
11813 libdir="$acl_save_libdir"
11814 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11818 if test "X$ltrpathdirs" != "X"; then
11819 for found_dir in $ltrpathdirs; do
11820 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11825 ac_save_CPPFLAGS="$CPPFLAGS"
11827 for element in $INCIPT; do
11829 for x in $CPPFLAGS; do
11831 acl_save_prefix="$prefix"
11832 prefix="$acl_final_prefix"
11833 acl_save_exec_prefix="$exec_prefix"
11834 exec_prefix="$acl_final_exec_prefix"
11836 exec_prefix="$acl_save_exec_prefix"
11837 prefix="$acl_save_prefix"
11839 if test "X$x" = "X$element"; then
11844 if test -z "$haveit"; then
11845 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11851 $as_echo_n "checking for libipt... " >&6; }
11852 if ${ac_cv_libipt+:} false; then :
11853 $as_echo_n "(cached) " >&6
11856 ac_save_LIBS="$LIBS"
11857 LIBS="$LIBS $LIBIPT"
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860 #include "intel-pt.h"
11864 pt_insn_alloc_decoder (0);
11869 if ac_fn_c_try_link "$LINENO"; then :
11874 rm -f core conftest.err conftest.$ac_objext \
11875 conftest$ac_exeext conftest.$ac_ext
11876 LIBS="$ac_save_LIBS"
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11880 $as_echo "$ac_cv_libipt" >&6; }
11881 if test "$ac_cv_libipt" = yes; then
11884 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11887 $as_echo_n "checking how to link with libipt... " >&6; }
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11889 $as_echo "$LIBIPT" >&6; }
11892 CPPFLAGS="$ac_save_CPPFLAGS"
11902 if test "$HAVE_LIBIPT" != yes; then
11903 if test "$with_intel_pt" = yes; then
11904 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11907 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11911 LIBS="$LIBS $LIBIPT"
11912 for ac_func in pt_insn_event
11914 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
11915 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
11916 cat >>confdefs.h <<_ACEOF
11917 #define HAVE_PT_INSN_EVENT 1
11923 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
11925 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
11927 cat >>confdefs.h <<_ACEOF
11928 #define HAVE_STRUCT_PT_INSN_ENABLED 1
11933 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
11935 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
11937 cat >>confdefs.h <<_ACEOF
11938 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
11948 # ------------------------- #
11949 # Checks for header files. #
11950 # ------------------------- #
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11953 $as_echo_n "checking for ANSI C header files... " >&6; }
11954 if ${ac_cv_header_stdc+:} false; then :
11955 $as_echo_n "(cached) " >&6
11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h. */
11959 #include <stdlib.h>
11960 #include <stdarg.h>
11961 #include <string.h>
11972 if ac_fn_c_try_compile "$LINENO"; then :
11973 ac_cv_header_stdc=yes
11975 ac_cv_header_stdc=no
11977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979 if test $ac_cv_header_stdc = yes; then
11980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983 #include <string.h>
11986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11987 $EGREP "memchr" >/dev/null 2>&1; then :
11990 ac_cv_header_stdc=no
11996 if test $ac_cv_header_stdc = yes; then
11997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12000 #include <stdlib.h>
12003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12004 $EGREP "free" >/dev/null 2>&1; then :
12007 ac_cv_header_stdc=no
12013 if test $ac_cv_header_stdc = yes; then
12014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12015 if test "$cross_compiling" = yes; then :
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12021 #include <stdlib.h>
12022 #if ((' ' & 0x0FF) == 0x020)
12023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12026 # define ISLOWER(c) \
12027 (('a' <= (c) && (c) <= 'i') \
12028 || ('j' <= (c) && (c) <= 'r') \
12029 || ('s' <= (c) && (c) <= 'z'))
12030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12038 for (i = 0; i < 256; i++)
12039 if (XOR (islower (i), ISLOWER (i))
12040 || toupper (i) != TOUPPER (i))
12045 if ac_fn_c_try_run "$LINENO"; then :
12048 ac_cv_header_stdc=no
12050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12051 conftest.$ac_objext conftest.beam conftest.$ac_ext
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12057 $as_echo "$ac_cv_header_stdc" >&6; }
12058 if test $ac_cv_header_stdc = yes; then
12060 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12064 # elf_hp.h is for HP/UX 64-bit shared library support.
12065 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12066 thread_db.h linux/elf.h \
12067 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12068 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12069 sys/reg.h sys/debugreg.h sys/select.h \
12070 termios.h elf_hp.h \
12073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12074 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12076 cat >>confdefs.h <<_ACEOF
12077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12084 for ac_header in sys/user.h
12086 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12087 # include <sys/param.h>
12091 if test "x$ac_cv_header_sys_user_h" = xyes; then :
12092 cat >>confdefs.h <<_ACEOF
12093 #define HAVE_SYS_USER_H 1
12101 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
12103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12104 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12105 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12106 cat >>confdefs.h <<_ACEOF
12107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12114 for ac_header in term.h
12116 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12117 # include <curses.h>
12121 if test "x$ac_cv_header_term_h" = xyes; then :
12122 cat >>confdefs.h <<_ACEOF
12123 #define HAVE_TERM_H 1
12131 # ------------------------- #
12132 # Checks for declarations. #
12133 # ------------------------- #
12136 # Check for presence and size of long long.
12137 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12138 if test "x$ac_cv_type_long_long" = xyes; then :
12140 cat >>confdefs.h <<_ACEOF
12141 #define HAVE_LONG_LONG 1
12144 # The cast to long int works around a bug in the HP C Compiler
12145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12147 # This bug is HP SR number 8606223364.
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12149 $as_echo_n "checking size of long long... " >&6; }
12150 if ${ac_cv_sizeof_long_long+:} false; then :
12151 $as_echo_n "(cached) " >&6
12153 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12156 if test "$ac_cv_type_long_long" = yes; then
12157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12159 as_fn_error 77 "cannot compute sizeof (long long)
12160 See \`config.log' for more details" "$LINENO" 5; }
12162 ac_cv_sizeof_long_long=0
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12168 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12172 cat >>confdefs.h <<_ACEOF
12173 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12180 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12181 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12182 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12188 cat >>confdefs.h <<_ACEOF
12189 #define HAVE_DECL_BASENAME $ac_have_decl
12191 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12192 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12198 cat >>confdefs.h <<_ACEOF
12199 #define HAVE_DECL_FFS $ac_have_decl
12201 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12202 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12208 cat >>confdefs.h <<_ACEOF
12209 #define HAVE_DECL_ASPRINTF $ac_have_decl
12211 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12212 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12218 cat >>confdefs.h <<_ACEOF
12219 #define HAVE_DECL_VASPRINTF $ac_have_decl
12221 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12222 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_DECL_SNPRINTF $ac_have_decl
12231 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12232 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12242 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12243 if test "x$ac_cv_have_decl_strtol" = xyes; then :
12249 cat >>confdefs.h <<_ACEOF
12250 #define HAVE_DECL_STRTOL $ac_have_decl
12252 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12253 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
12259 cat >>confdefs.h <<_ACEOF
12260 #define HAVE_DECL_STRTOUL $ac_have_decl
12262 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12263 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
12269 cat >>confdefs.h <<_ACEOF
12270 #define HAVE_DECL_STRTOLL $ac_have_decl
12272 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12273 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
12279 cat >>confdefs.h <<_ACEOF
12280 #define HAVE_DECL_STRTOULL $ac_have_decl
12283 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12284 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12290 cat >>confdefs.h <<_ACEOF
12291 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12296 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12297 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12303 cat >>confdefs.h <<_ACEOF
12304 #define HAVE_DECL_SNPRINTF $ac_have_decl
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12309 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12310 if ${am_cv_val_LC_MESSAGES+:} false; then :
12311 $as_echo_n "(cached) " >&6
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315 #include <locale.h>
12324 if ac_fn_c_try_link "$LINENO"; then :
12325 am_cv_val_LC_MESSAGES=yes
12327 am_cv_val_LC_MESSAGES=no
12329 rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12333 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12334 if test $am_cv_val_LC_MESSAGES = yes; then
12336 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12341 # ----------------------- #
12342 # Checks for structures. #
12343 # ----------------------- #
12345 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12346 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
12348 cat >>confdefs.h <<_ACEOF
12349 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12354 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12355 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
12357 cat >>confdefs.h <<_ACEOF
12358 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12365 # ------------------ #
12366 # Checks for types. #
12367 # ------------------ #
12369 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12370 #include <sys/socket.h>
12373 if test "x$ac_cv_type_socklen_t" = xyes; then :
12375 cat >>confdefs.h <<_ACEOF
12376 #define HAVE_SOCKLEN_T 1
12383 # ------------------------------------- #
12384 # Checks for compiler characteristics. #
12385 # ------------------------------------- #
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12388 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12389 if ${ac_cv_c_const+:} false; then :
12390 $as_echo_n "(cached) " >&6
12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12399 #ifndef __cplusplus
12400 /* Ultrix mips cc rejects this sort of thing. */
12401 typedef int charset[2];
12402 const charset cs = { 0, 0 };
12403 /* SunOS 4.1.1 cc rejects this. */
12404 char const *const *pcpcc;
12406 /* NEC SVR4.0.2 mips cc rejects this. */
12407 struct point {int x, y;};
12408 static struct point const zero = {0,0};
12409 /* AIX XL C 1.02.0.0 rejects this.
12410 It does not let you subtract one const X* pointer from another in
12411 an arm of an if-expression whose if-part is not a constant
12413 const char *g = "string";
12414 pcpcc = &g + (g ? g-g : 0);
12415 /* HPUX 7.0 cc rejects these. */
12417 ppc = (char**) pcpcc;
12418 pcpcc = (char const *const *) ppc;
12419 { /* SCO 3.2v4 cc rejects this sort of thing. */
12422 char const *s = 0 ? (char *) 0 : (char const *) 0;
12427 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12428 int x[] = {25, 17};
12429 const int *foo = &x[0];
12432 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12433 typedef const int *iptr;
12437 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12438 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12439 struct s { int j; const int *ap[3]; } bx;
12440 struct s *b = &bx; b->j = 5;
12442 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12443 const int foo = 10;
12444 if (!foo) return 0;
12446 return !cs[0] && !zero.x;
12453 if ac_fn_c_try_compile "$LINENO"; then :
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12461 $as_echo "$ac_cv_c_const" >&6; }
12462 if test $ac_cv_c_const = no; then
12464 $as_echo "#define const /**/" >>confdefs.h
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12469 $as_echo_n "checking for inline... " >&6; }
12470 if ${ac_cv_c_inline+:} false; then :
12471 $as_echo_n "(cached) " >&6
12474 for ac_kw in inline __inline__ __inline; do
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12477 #ifndef __cplusplus
12479 static $ac_kw foo_t static_foo () {return 0; }
12480 $ac_kw foo_t foo () {return 0; }
12484 if ac_fn_c_try_compile "$LINENO"; then :
12485 ac_cv_c_inline=$ac_kw
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 test "$ac_cv_c_inline" != no && break
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12493 $as_echo "$ac_cv_c_inline" >&6; }
12495 case $ac_cv_c_inline in
12498 case $ac_cv_c_inline in
12500 *) ac_val=$ac_cv_c_inline;;
12502 cat >>confdefs.h <<_ACEOF
12503 #ifndef __cplusplus
12504 #define inline $ac_val
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12511 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12512 if ${ac_cv_c_bigendian+:} false; then :
12513 $as_echo_n "(cached) " >&6
12515 ac_cv_c_bigendian=unknown
12516 # See if we're dealing with a universal compiler.
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 #ifndef __APPLE_CC__
12520 not a universal capable compiler
12525 if ac_fn_c_try_compile "$LINENO"; then :
12527 # Check for potential -arch flags. It is not universal unless
12528 # there are at least two -arch flags with different values.
12531 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12532 if test -n "$ac_prev"; then
12534 i?86 | x86_64 | ppc | ppc64)
12535 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12538 ac_cv_c_bigendian=universal
12544 elif test "x$ac_word" = "x-arch"; then
12549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550 if test $ac_cv_c_bigendian = unknown; then
12551 # See if sys/param.h defines the BYTE_ORDER macro.
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12554 #include <sys/types.h>
12555 #include <sys/param.h>
12560 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12561 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12563 bogus endian macros
12570 if ac_fn_c_try_compile "$LINENO"; then :
12571 # It does; now see whether it defined to BIG_ENDIAN or not.
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h. */
12574 #include <sys/types.h>
12575 #include <sys/param.h>
12580 #if BYTE_ORDER != BIG_ENDIAN
12588 if ac_fn_c_try_compile "$LINENO"; then :
12589 ac_cv_c_bigendian=yes
12591 ac_cv_c_bigendian=no
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12597 if test $ac_cv_c_bigendian = unknown; then
12598 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12601 #include <limits.h>
12606 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12607 bogus endian macros
12614 if ac_fn_c_try_compile "$LINENO"; then :
12615 # It does; now see whether it defined to _BIG_ENDIAN or not.
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12618 #include <limits.h>
12623 #ifndef _BIG_ENDIAN
12631 if ac_fn_c_try_compile "$LINENO"; then :
12632 ac_cv_c_bigendian=yes
12634 ac_cv_c_bigendian=no
12636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 if test $ac_cv_c_bigendian = unknown; then
12641 # Compile a test program.
12642 if test "$cross_compiling" = yes; then :
12643 # Try to guess by grepping values from an object file.
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12646 short int ascii_mm[] =
12647 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12648 short int ascii_ii[] =
12649 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12650 int use_ascii (int i) {
12651 return ascii_mm[i] + ascii_ii[i];
12653 short int ebcdic_ii[] =
12654 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12655 short int ebcdic_mm[] =
12656 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12657 int use_ebcdic (int i) {
12658 return ebcdic_mm[i] + ebcdic_ii[i];
12665 return use_ascii (foo) == use_ebcdic (foo);
12670 if ac_fn_c_try_compile "$LINENO"; then :
12671 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12672 ac_cv_c_bigendian=yes
12674 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12675 if test "$ac_cv_c_bigendian" = unknown; then
12676 ac_cv_c_bigendian=no
12678 # finding both strings is unlikely to happen, but who knows?
12679 ac_cv_c_bigendian=unknown
12683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12687 $ac_includes_default
12692 /* Are we little or big endian? From Harbison&Steele. */
12696 char c[sizeof (long int)];
12699 return u.c[sizeof (long int) - 1] == 1;
12705 if ac_fn_c_try_run "$LINENO"; then :
12706 ac_cv_c_bigendian=no
12708 ac_cv_c_bigendian=yes
12710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12711 conftest.$ac_objext conftest.beam conftest.$ac_ext
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12717 $as_echo "$ac_cv_c_bigendian" >&6; }
12718 case $ac_cv_c_bigendian in #(
12720 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12726 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12730 as_fn_error $? "unknown endianness
12731 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12735 # ------------------------------ #
12736 # Checks for library functions. #
12737 # ------------------------------ #
12742 for ac_header in $ac_header_list
12744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12745 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12747 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12748 cat >>confdefs.h <<_ACEOF
12749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12763 for ac_func in getpagesize
12765 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12766 if test "x$ac_cv_func_getpagesize" = xyes; then :
12767 cat >>confdefs.h <<_ACEOF
12768 #define HAVE_GETPAGESIZE 1
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12775 $as_echo_n "checking for working mmap... " >&6; }
12776 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12777 $as_echo_n "(cached) " >&6
12779 if test "$cross_compiling" = yes; then :
12780 ac_cv_func_mmap_fixed_mapped=no
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 $ac_includes_default
12785 /* malloc might have been renamed as rpl_malloc. */
12788 /* Thanks to Mike Haertel and Jim Avera for this test.
12789 Here is a matrix of mmap possibilities:
12790 mmap private not fixed
12791 mmap private fixed at somewhere currently unmapped
12792 mmap private fixed at somewhere already mapped
12793 mmap shared not fixed
12794 mmap shared fixed at somewhere currently unmapped
12795 mmap shared fixed at somewhere already mapped
12796 For private mappings, we should verify that changes cannot be read()
12797 back from the file, nor mmap's back from the file at a different
12798 address. (There have been systems where private was not correctly
12799 implemented like the infamous i386 svr4.0, and systems where the
12800 VM page cache was not coherent with the file system buffer cache
12801 like early versions of FreeBSD and possibly contemporary NetBSD.)
12802 For shared mappings, we should conversely verify that changes get
12803 propagated back to all the places they're supposed to be.
12805 Grep wants private fixed already mapped.
12806 The main things grep needs to know about mmap are:
12807 * does it exist and is it safe to write into the mmap'd area
12808 * how to use it (BSD variants) */
12811 #include <sys/mman.h>
12813 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12817 /* This mess was copied from the GNU getpagesize.h. */
12818 #ifndef HAVE_GETPAGESIZE
12819 # ifdef _SC_PAGESIZE
12820 # define getpagesize() sysconf(_SC_PAGESIZE)
12821 # else /* no _SC_PAGESIZE */
12822 # ifdef HAVE_SYS_PARAM_H
12823 # include <sys/param.h>
12824 # ifdef EXEC_PAGESIZE
12825 # define getpagesize() EXEC_PAGESIZE
12826 # else /* no EXEC_PAGESIZE */
12828 # define getpagesize() NBPG * CLSIZE
12831 # endif /* no CLSIZE */
12832 # else /* no NBPG */
12834 # define getpagesize() NBPC
12835 # else /* no NBPC */
12837 # define getpagesize() PAGESIZE
12838 # endif /* PAGESIZE */
12839 # endif /* no NBPC */
12840 # endif /* no NBPG */
12841 # endif /* no EXEC_PAGESIZE */
12842 # else /* no HAVE_SYS_PARAM_H */
12843 # define getpagesize() 8192 /* punt totally */
12844 # endif /* no HAVE_SYS_PARAM_H */
12845 # endif /* no _SC_PAGESIZE */
12847 #endif /* no HAVE_GETPAGESIZE */
12852 char *data, *data2, *data3;
12853 const char *cdata2;
12857 pagesize = getpagesize ();
12859 /* First, make a file with some known garbage in it. */
12860 data = (char *) malloc (pagesize);
12863 for (i = 0; i < pagesize; ++i)
12864 *(data + i) = rand ();
12866 fd = creat ("conftest.mmap", 0600);
12869 if (write (fd, data, pagesize) != pagesize)
12873 /* Next, check that the tail of a page is zero-filled. File must have
12874 non-zero length, otherwise we risk SIGBUS for entire page. */
12875 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12879 if (write (fd2, cdata2, 1) != 1)
12881 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12882 if (data2 == MAP_FAILED)
12884 for (i = 0; i < pagesize; ++i)
12888 if (munmap (data2, pagesize))
12891 /* Next, try to mmap the file at a fixed address which already has
12892 something else allocated at it. If we can, also make sure that
12893 we see the same garbage. */
12894 fd = open ("conftest.mmap", O_RDWR);
12897 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12898 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12900 for (i = 0; i < pagesize; ++i)
12901 if (*(data + i) != *(data2 + i))
12904 /* Finally, make sure that changes to the mapped area do not
12905 percolate back to the file as seen by read(). (This is a bug on
12906 some variants of i386 svr4.0.) */
12907 for (i = 0; i < pagesize; ++i)
12908 *(data2 + i) = *(data2 + i) + 1;
12909 data3 = (char *) malloc (pagesize);
12912 if (read (fd, data3, pagesize) != pagesize)
12914 for (i = 0; i < pagesize; ++i)
12915 if (*(data + i) != *(data3 + i))
12921 if ac_fn_c_try_run "$LINENO"; then :
12922 ac_cv_func_mmap_fixed_mapped=yes
12924 ac_cv_func_mmap_fixed_mapped=no
12926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12927 conftest.$ac_objext conftest.beam conftest.$ac_ext
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12932 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12933 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12935 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12938 rm -f conftest.mmap conftest.txt
12940 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12941 if test "x$ac_cv_type_pid_t" = xyes; then :
12945 cat >>confdefs.h <<_ACEOF
12951 for ac_header in vfork.h
12953 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12954 if test "x$ac_cv_header_vfork_h" = xyes; then :
12955 cat >>confdefs.h <<_ACEOF
12956 #define HAVE_VFORK_H 1
12963 for ac_func in fork vfork
12965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12966 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12967 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12968 cat >>confdefs.h <<_ACEOF
12969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12975 if test "x$ac_cv_func_fork" = xyes; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12977 $as_echo_n "checking for working fork... " >&6; }
12978 if ${ac_cv_func_fork_works+:} false; then :
12979 $as_echo_n "(cached) " >&6
12981 if test "$cross_compiling" = yes; then :
12982 ac_cv_func_fork_works=cross
12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12986 $ac_includes_default
12991 /* By Ruediger Kuhlmann. */
12992 return fork () < 0;
12998 if ac_fn_c_try_run "$LINENO"; then :
12999 ac_cv_func_fork_works=yes
13001 ac_cv_func_fork_works=no
13003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13004 conftest.$ac_objext conftest.beam conftest.$ac_ext
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13009 $as_echo "$ac_cv_func_fork_works" >&6; }
13012 ac_cv_func_fork_works=$ac_cv_func_fork
13014 if test "x$ac_cv_func_fork_works" = xcross; then
13016 *-*-amigaos* | *-*-msdosdjgpp*)
13017 # Override, as these systems have only a dummy fork() stub
13018 ac_cv_func_fork_works=no
13021 ac_cv_func_fork_works=yes
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13025 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13027 ac_cv_func_vfork_works=$ac_cv_func_vfork
13028 if test "x$ac_cv_func_vfork" = xyes; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13030 $as_echo_n "checking for working vfork... " >&6; }
13031 if ${ac_cv_func_vfork_works+:} false; then :
13032 $as_echo_n "(cached) " >&6
13034 if test "$cross_compiling" = yes; then :
13035 ac_cv_func_vfork_works=cross
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039 /* Thanks to Paul Eggert for this test. */
13040 $ac_includes_default
13041 #include <sys/wait.h>
13042 #ifdef HAVE_VFORK_H
13043 # include <vfork.h>
13045 /* On some sparc systems, changes by the child to local and incoming
13046 argument registers are propagated back to the parent. The compiler
13047 is told about this with #include <vfork.h>, but some compilers
13048 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13049 static variable whose address is put into a register that is
13050 clobbered by the vfork. */
13053 sparc_address_test (int arg)
13055 sparc_address_test (arg) int arg;
13058 static pid_t child;
13076 pid_t parent = getpid ();
13079 sparc_address_test (0);
13084 /* Here is another test for sparc vfork register problems. This
13085 test uses lots of local variables, at least as many local
13086 variables as main has allocated so far including compiler
13087 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13088 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13089 reuse the register of parent for one of the local variables,
13090 since it will think that parent can't possibly be used any more
13091 in this routine. Assigning to the local variable will thus
13092 munge parent in the parent process. */
13094 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13095 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13096 /* Convince the compiler that p..p7 are live; otherwise, it might
13097 use the same hardware register for all 8 local variables. */
13098 if (p != p1 || p != p2 || p != p3 || p != p4
13099 || p != p5 || p != p6 || p != p7)
13102 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13103 from child file descriptors. If the child closes a descriptor
13104 before it execs or exits, this munges the parent's descriptor
13105 as well. Test for this by closing stdout in the child. */
13106 _exit(close(fileno(stdout)) != 0);
13111 while (wait(&status) != child)
13114 /* Was there some problem with vforking? */
13117 /* Did the child fail? (This shouldn't happen.) */
13120 /* Did the vfork/compiler bug occur? */
13121 || parent != getpid()
13123 /* Did the file descriptor bug occur? */
13124 || fstat(fileno(stdout), &st) != 0
13129 if ac_fn_c_try_run "$LINENO"; then :
13130 ac_cv_func_vfork_works=yes
13132 ac_cv_func_vfork_works=no
13134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13135 conftest.$ac_objext conftest.beam conftest.$ac_ext
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13140 $as_echo "$ac_cv_func_vfork_works" >&6; }
13143 if test "x$ac_cv_func_fork_works" = xcross; then
13144 ac_cv_func_vfork_works=$ac_cv_func_vfork
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13146 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13149 if test "x$ac_cv_func_vfork_works" = xyes; then
13151 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13155 $as_echo "#define vfork fork" >>confdefs.h
13158 if test "x$ac_cv_func_fork_works" = xyes; then
13160 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13164 for ac_func in getauxval getrusage getuid getgid \
13165 pipe poll pread pread64 pwrite resize_term \
13166 sbrk getpgid setpgid setpgrp setsid \
13167 sigaction sigprocmask sigsetmask socketpair \
13168 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13169 setrlimit getrlimit posix_madvise waitpid \
13170 ptrace64 sigaltstack setns use_default_colors
13172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13174 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13175 cat >>confdefs.h <<_ACEOF
13176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13184 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13185 if ${am_cv_langinfo_codeset+:} false; then :
13186 $as_echo_n "(cached) " >&6
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h. */
13190 #include <langinfo.h>
13194 char* cs = nl_langinfo(CODESET);
13199 if ac_fn_c_try_link "$LINENO"; then :
13200 am_cv_langinfo_codeset=yes
13202 am_cv_langinfo_codeset=no
13204 rm -f core conftest.err conftest.$ac_objext \
13205 conftest$ac_exeext conftest.$ac_ext
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13209 $as_echo "$am_cv_langinfo_codeset" >&6; }
13210 if test $am_cv_langinfo_codeset = yes; then
13212 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13216 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13217 if test "x$ac_cv_type_size_t" = xyes; then :
13221 cat >>confdefs.h <<_ACEOF
13222 #define size_t unsigned int
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13229 $as_echo_n "checking for ANSI C header files... " >&6; }
13230 if ${ac_cv_header_stdc+:} false; then :
13231 $as_echo_n "(cached) " >&6
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13235 #include <stdlib.h>
13236 #include <stdarg.h>
13237 #include <string.h>
13248 if ac_fn_c_try_compile "$LINENO"; then :
13249 ac_cv_header_stdc=yes
13251 ac_cv_header_stdc=no
13253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13255 if test $ac_cv_header_stdc = yes; then
13256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259 #include <string.h>
13262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13263 $EGREP "memchr" >/dev/null 2>&1; then :
13266 ac_cv_header_stdc=no
13272 if test $ac_cv_header_stdc = yes; then
13273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13276 #include <stdlib.h>
13279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13280 $EGREP "free" >/dev/null 2>&1; then :
13283 ac_cv_header_stdc=no
13289 if test $ac_cv_header_stdc = yes; then
13290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13291 if test "$cross_compiling" = yes; then :
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13297 #include <stdlib.h>
13298 #if ((' ' & 0x0FF) == 0x020)
13299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13302 # define ISLOWER(c) \
13303 (('a' <= (c) && (c) <= 'i') \
13304 || ('j' <= (c) && (c) <= 'r') \
13305 || ('s' <= (c) && (c) <= 'z'))
13306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13314 for (i = 0; i < 256; i++)
13315 if (XOR (islower (i), ISLOWER (i))
13316 || toupper (i) != TOUPPER (i))
13321 if ac_fn_c_try_run "$LINENO"; then :
13324 ac_cv_header_stdc=no
13326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13327 conftest.$ac_objext conftest.beam conftest.$ac_ext
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13333 $as_echo "$ac_cv_header_stdc" >&6; }
13334 if test $ac_cv_header_stdc = yes; then
13336 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13340 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13341 # for constant arguments. Useless!
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13343 $as_echo_n "checking for working alloca.h... " >&6; }
13344 if ${ac_cv_working_alloca_h+:} false; then :
13345 $as_echo_n "(cached) " >&6
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349 #include <alloca.h>
13353 char *p = (char *) alloca (2 * sizeof (int));
13359 if ac_fn_c_try_link "$LINENO"; then :
13360 ac_cv_working_alloca_h=yes
13362 ac_cv_working_alloca_h=no
13364 rm -f core conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13368 $as_echo "$ac_cv_working_alloca_h" >&6; }
13369 if test $ac_cv_working_alloca_h = yes; then
13371 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13376 $as_echo_n "checking for alloca... " >&6; }
13377 if ${ac_cv_func_alloca_works+:} false; then :
13378 $as_echo_n "(cached) " >&6
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13383 # define alloca __builtin_alloca
13386 # include <malloc.h>
13387 # define alloca _alloca
13389 # ifdef HAVE_ALLOCA_H
13390 # include <alloca.h>
13395 # ifndef alloca /* predefined by HP cc +Olibcalls */
13396 void *alloca (size_t);
13406 char *p = (char *) alloca (1);
13412 if ac_fn_c_try_link "$LINENO"; then :
13413 ac_cv_func_alloca_works=yes
13415 ac_cv_func_alloca_works=no
13417 rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13421 $as_echo "$ac_cv_func_alloca_works" >&6; }
13423 if test $ac_cv_func_alloca_works = yes; then
13425 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13428 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13429 # that cause trouble. Some versions do not even contain alloca or
13430 # contain a buggy version. If you still want to use their alloca,
13431 # use ar to extract alloca.o from them instead of compiling alloca.c.
13433 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13435 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13439 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13440 if ${ac_cv_os_cray+:} false; then :
13441 $as_echo_n "(cached) " >&6
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13445 #if defined CRAY && ! defined CRAY2
13452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13453 $EGREP "webecray" >/dev/null 2>&1; then :
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13462 $as_echo "$ac_cv_os_cray" >&6; }
13463 if test $ac_cv_os_cray = yes; then
13464 for ac_func in _getb67 GETB67 getb67; do
13465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13466 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13467 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13469 cat >>confdefs.h <<_ACEOF
13470 #define CRAY_STACKSEG_END $ac_func
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13480 $as_echo_n "checking stack direction for C alloca... " >&6; }
13481 if ${ac_cv_c_stack_direction+:} false; then :
13482 $as_echo_n "(cached) " >&6
13484 if test "$cross_compiling" = yes; then :
13485 ac_cv_c_stack_direction=0
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13489 $ac_includes_default
13491 find_stack_direction (int *addr, int depth)
13493 int dir, dummy = 0;
13496 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13497 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13498 return dir + dummy;
13502 main (int argc, char **argv)
13504 return find_stack_direction (0, argc + !argv + 20) < 0;
13507 if ac_fn_c_try_run "$LINENO"; then :
13508 ac_cv_c_stack_direction=1
13510 ac_cv_c_stack_direction=-1
13512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13513 conftest.$ac_objext conftest.beam conftest.$ac_ext
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13518 $as_echo "$ac_cv_c_stack_direction" >&6; }
13519 cat >>confdefs.h <<_ACEOF
13520 #define STACK_DIRECTION $ac_cv_c_stack_direction
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13529 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13530 if ${am_cv_langinfo_codeset+:} false; then :
13531 $as_echo_n "(cached) " >&6
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13535 #include <langinfo.h>
13539 char* cs = nl_langinfo(CODESET);
13544 if ac_fn_c_try_link "$LINENO"; then :
13545 am_cv_langinfo_codeset=yes
13547 am_cv_langinfo_codeset=no
13549 rm -f core conftest.err conftest.$ac_objext \
13550 conftest$ac_exeext conftest.$ac_ext
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13554 $as_echo "$am_cv_langinfo_codeset" >&6; }
13555 if test $am_cv_langinfo_codeset = yes; then
13557 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13562 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h
13564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13567 cat >>confdefs.h <<_ACEOF
13568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13576 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
13578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13580 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13581 cat >>confdefs.h <<_ACEOF
13582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13589 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13590 if test "x$ac_cv_have_decl_strerror" = xyes; then :
13596 cat >>confdefs.h <<_ACEOF
13597 #define HAVE_DECL_STRERROR $ac_have_decl
13599 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13600 if test "x$ac_cv_have_decl_strstr" = xyes; then :
13606 cat >>confdefs.h <<_ACEOF
13607 #define HAVE_DECL_STRSTR $ac_have_decl
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13612 $as_echo_n "checking for sigsetjmp... " >&6; }
13613 if ${gdb_cv_func_sigsetjmp+:} false; then :
13614 $as_echo_n "(cached) " >&6
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13619 #include <setjmp.h>
13624 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13629 if ac_fn_c_try_compile "$LINENO"; then :
13630 gdb_cv_func_sigsetjmp=yes
13632 gdb_cv_func_sigsetjmp=no
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13637 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13638 if test $gdb_cv_func_sigsetjmp = yes; then
13640 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13645 # Check the return and argument types of ptrace.
13648 for ac_header in sys/ptrace.h ptrace.h
13650 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13651 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13652 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13653 cat >>confdefs.h <<_ACEOF
13654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13662 gdb_ptrace_headers='
13663 #include <sys/types.h>
13664 #if HAVE_SYS_PTRACE_H
13665 # include <sys/ptrace.h>
13668 # include <unistd.h>
13671 # There is no point in checking if we don't have a prototype.
13672 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13674 if test "x$ac_cv_have_decl_ptrace" = xyes; then :
13680 cat >>confdefs.h <<_ACEOF
13681 #define HAVE_DECL_PTRACE $ac_have_decl
13683 if test $ac_have_decl = 1; then :
13687 : ${gdb_cv_func_ptrace_ret='int'}
13688 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13692 # Check return type. Varargs (used on GNU/Linux) conflict with the
13693 # empty argument list, so check for that explicitly.
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13695 $as_echo_n "checking return type of ptrace... " >&6; }
13696 if ${gdb_cv_func_ptrace_ret+:} false; then :
13697 $as_echo_n "(cached) " >&6
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13701 $gdb_ptrace_headers
13705 extern long ptrace (enum __ptrace_request, ...);
13710 if ac_fn_c_try_compile "$LINENO"; then :
13711 gdb_cv_func_ptrace_ret='long'
13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h. */
13715 $gdb_ptrace_headers
13719 extern int ptrace ();
13724 if ac_fn_c_try_compile "$LINENO"; then :
13725 gdb_cv_func_ptrace_ret='int'
13727 gdb_cv_func_ptrace_ret='long'
13729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13734 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13736 cat >>confdefs.h <<_ACEOF
13737 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13740 # Check argument types.
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13742 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13743 if ${gdb_cv_func_ptrace_args+:} false; then :
13744 $as_echo_n "(cached) " >&6
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 $gdb_ptrace_headers
13753 extern long ptrace (enum __ptrace_request, ...);
13758 if ac_fn_c_try_compile "$LINENO"; then :
13759 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
13762 for gdb_arg1 in 'int' 'long'; do
13763 for gdb_arg2 in 'pid_t' 'int' 'long'; do
13764 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13765 for gdb_arg4 in 'int' 'long' 'void *'; do
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768 $gdb_ptrace_headers
13773 extern $gdb_cv_func_ptrace_ret
13774 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13780 if ac_fn_c_try_compile "$LINENO"; then :
13781 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 for gdb_arg5 in 'int *' 'int' 'long'; do
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 $gdb_ptrace_headers
13793 extern $gdb_cv_func_ptrace_ret
13794 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13800 if ac_fn_c_try_compile "$LINENO"; then :
13802 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 # Provide a safe default value.
13812 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13818 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13819 ac_save_IFS=$IFS; IFS=','
13820 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13824 cat >>confdefs.h <<_ACEOF
13825 #define PTRACE_TYPE_ARG1 $1
13829 cat >>confdefs.h <<_ACEOF
13830 #define PTRACE_TYPE_ARG3 $3
13834 cat >>confdefs.h <<_ACEOF
13835 #define PTRACE_TYPE_ARG4 $4
13838 if test -n "$5"; then
13840 cat >>confdefs.h <<_ACEOF
13841 #define PTRACE_TYPE_ARG5 $5
13847 if test "$cross_compiling" = no; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13849 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13850 if ${ac_cv_func_setpgrp_void+:} false; then :
13851 $as_echo_n "(cached) " >&6
13853 if test "$cross_compiling" = yes; then :
13854 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h. */
13858 $ac_includes_default
13862 /* If this system has a BSD-style setpgrp which takes arguments,
13863 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13864 exit successfully. */
13865 return setpgrp (1,1) != -1;
13870 if ac_fn_c_try_run "$LINENO"; then :
13871 ac_cv_func_setpgrp_void=no
13873 ac_cv_func_setpgrp_void=yes
13875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13876 conftest.$ac_objext conftest.beam conftest.$ac_ext
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13881 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13882 if test $ac_cv_func_setpgrp_void = yes; then
13884 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13890 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13891 if ${ac_cv_func_setpgrp_void+:} false; then :
13892 $as_echo_n "(cached) " >&6
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13897 #include <unistd.h>
13903 if (setpgrp(1,1) == -1)
13912 if ac_fn_c_try_compile "$LINENO"; then :
13913 ac_cv_func_setpgrp_void=no
13915 ac_cv_func_setpgrp_void=yes
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13920 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13921 if test $ac_cv_func_setpgrp_void = yes; then
13922 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13927 # Assume we'll default to using the included libiberty regex.
13928 gdb_use_included_regex=yes
13930 # However, if the system regex is GNU regex, then default to *not*
13931 # using the included regex.
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13933 $as_echo_n "checking for GNU regex... " >&6; }
13934 if ${gdb_cv_have_gnu_regex+:} false; then :
13935 $as_echo_n "(cached) " >&6
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13939 #include <gnu-versions.h>
13943 #define REGEX_INTERFACE_VERSION 1
13944 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13945 # error "Version mismatch"
13951 if ac_fn_c_try_compile "$LINENO"; then :
13952 gdb_cv_have_gnu_regex=yes
13954 gdb_cv_have_gnu_regex=no
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13959 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13960 if test $gdb_cv_have_gnu_regex = yes; then
13961 gdb_use_included_regex=no
13965 # Check whether --with-included-regex was given.
13966 if test "${with_included_regex+set}" = set; then :
13967 withval=$with_included_regex; gdb_with_regex=$withval
13969 gdb_with_regex=$gdb_use_included_regex
13972 if test "$gdb_with_regex" = yes; then
13974 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13978 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13979 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13980 #include <sys/proc.h>
13983 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_STRUCT_THREAD_TD_PCB 1
13993 # See if <sys/lwp.h> defines `struct lwp`.
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13995 $as_echo_n "checking for struct lwp... " >&6; }
13996 if ${gdb_cv_struct_lwp+:} false; then :
13997 $as_echo_n "(cached) " >&6
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14001 #include <sys/param.h>
14003 #include <sys/lwp.h>
14012 if ac_fn_c_try_compile "$LINENO"; then :
14013 gdb_cv_struct_lwp=yes
14015 gdb_cv_struct_lwp=no
14017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14020 $as_echo "$gdb_cv_struct_lwp" >&6; }
14021 if test $gdb_cv_struct_lwp = yes; then
14023 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14027 # See if <machine/reg.h> degines `struct reg'.
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14029 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14030 if ${gdb_cv_struct_reg+:} false; then :
14031 $as_echo_n "(cached) " >&6
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 #include <sys/types.h>
14036 #include <machine/reg.h>
14045 if ac_fn_c_try_compile "$LINENO"; then :
14046 gdb_cv_struct_reg=yes
14048 gdb_cv_struct_reg=no
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14053 $as_echo "$gdb_cv_struct_reg" >&6; }
14054 if test $gdb_cv_struct_reg = yes; then
14056 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14060 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14061 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14062 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14063 #include <machine/reg.h>
14065 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
14067 cat >>confdefs.h <<_ACEOF
14068 #define HAVE_STRUCT_REG_R_FS 1
14073 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14074 #include <machine/reg.h>
14076 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
14078 cat >>confdefs.h <<_ACEOF
14079 #define HAVE_STRUCT_REG_R_GS 1
14086 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14087 # Older amd64 Linux's don't have the fs_base and gs_base members of
14088 # `struct user_regs_struct'.
14089 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/types.h>
14090 #include <sys/user.h>
14092 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
14094 cat >>confdefs.h <<_ACEOF
14095 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14100 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/types.h>
14101 #include <sys/user.h>
14103 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
14105 cat >>confdefs.h <<_ACEOF
14106 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14113 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14115 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14116 if ${gdb_cv_have_ptrace_getregs+:} false; then :
14117 $as_echo_n "(cached) " >&6
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121 #include <sys/ptrace.h>
14130 if ac_fn_c_try_compile "$LINENO"; then :
14131 gdb_cv_have_ptrace_getregs=yes
14133 gdb_cv_have_ptrace_getregs=no
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14139 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14140 if test $gdb_cv_have_ptrace_getregs = yes; then
14142 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14146 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14148 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14149 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
14150 $as_echo_n "(cached) " >&6
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154 #include <sys/ptrace.h>
14163 if ac_fn_c_try_compile "$LINENO"; then :
14164 gdb_cv_have_ptrace_getfpxregs=yes
14166 gdb_cv_have_ptrace_getfpxregs=no
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14172 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14173 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14175 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14179 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14181 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14182 if ${gdb_cv_have_pt_getdbregs+:} false; then :
14183 $as_echo_n "(cached) " >&6
14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14187 #include <sys/types.h>
14188 #include <sys/ptrace.h>
14197 if ac_fn_c_try_compile "$LINENO"; then :
14198 gdb_cv_have_pt_getdbregs=yes
14200 gdb_cv_have_pt_getdbregs=no
14202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14206 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14207 if test $gdb_cv_have_pt_getdbregs = yes; then
14209 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14213 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14215 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14216 if ${gdb_cv_have_pt_getxmmregs+:} false; then :
14217 $as_echo_n "(cached) " >&6
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14221 #include <sys/types.h>
14222 #include <sys/ptrace.h>
14231 if ac_fn_c_try_compile "$LINENO"; then :
14232 gdb_cv_have_pt_getxmmregs=yes
14234 gdb_cv_have_pt_getxmmregs=no
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14240 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14241 if test $gdb_cv_have_pt_getxmmregs = yes; then
14243 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14247 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14248 # Older FreeBSD versions don't have the pl_tdname member of
14249 # `struct ptrace_lwpinfo'.
14250 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14252 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
14254 cat >>confdefs.h <<_ACEOF
14255 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14262 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14263 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14265 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>
14267 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
14269 cat >>confdefs.h <<_ACEOF
14270 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14277 if test "$ac_cv_header_sys_procfs_h" = yes; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14279 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14280 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
14281 $as_echo_n "(cached) " >&6
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14287 /* Needed for new procfs interface on sparc-solaris. */
14288 #define _STRUCTURED_PROC 1
14289 #include <sys/procfs.h>
14298 if ac_fn_c_try_compile "$LINENO"; then :
14299 bfd_cv_have_sys_procfs_type_gregset_t=yes
14301 bfd_cv_have_sys_procfs_type_gregset_t=no
14304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14309 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14313 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14316 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14317 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
14318 $as_echo_n "(cached) " >&6
14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14324 /* Needed for new procfs interface on sparc-solaris. */
14325 #define _STRUCTURED_PROC 1
14326 #include <sys/procfs.h>
14335 if ac_fn_c_try_compile "$LINENO"; then :
14336 bfd_cv_have_sys_procfs_type_fpregset_t=yes
14338 bfd_cv_have_sys_procfs_type_fpregset_t=no
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14346 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14350 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14353 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14354 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
14355 $as_echo_n "(cached) " >&6
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14361 /* Needed for new procfs interface on sparc-solaris. */
14362 #define _STRUCTURED_PROC 1
14363 #include <sys/procfs.h>
14372 if ac_fn_c_try_compile "$LINENO"; then :
14373 bfd_cv_have_sys_procfs_type_prgregset_t=yes
14375 bfd_cv_have_sys_procfs_type_prgregset_t=no
14378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14381 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14383 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14387 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14390 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14391 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
14392 $as_echo_n "(cached) " >&6
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14398 /* Needed for new procfs interface on sparc-solaris. */
14399 #define _STRUCTURED_PROC 1
14400 #include <sys/procfs.h>
14409 if ac_fn_c_try_compile "$LINENO"; then :
14410 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
14412 bfd_cv_have_sys_procfs_type_prfpregset_t=no
14415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14418 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14420 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14424 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14427 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14428 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
14429 $as_echo_n "(cached) " >&6
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14435 /* Needed for new procfs interface on sparc-solaris. */
14436 #define _STRUCTURED_PROC 1
14437 #include <sys/procfs.h>
14446 if ac_fn_c_try_compile "$LINENO"; then :
14447 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
14449 bfd_cv_have_sys_procfs_type_prgregset32_t=no
14452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14457 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14461 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14464 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14465 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
14466 $as_echo_n "(cached) " >&6
14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14472 /* Needed for new procfs interface on sparc-solaris. */
14473 #define _STRUCTURED_PROC 1
14474 #include <sys/procfs.h>
14483 if ac_fn_c_try_compile "$LINENO"; then :
14484 bfd_cv_have_sys_procfs_type_lwpid_t=yes
14486 bfd_cv_have_sys_procfs_type_lwpid_t=no
14489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14494 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14498 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14501 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14502 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
14503 $as_echo_n "(cached) " >&6
14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14509 /* Needed for new procfs interface on sparc-solaris. */
14510 #define _STRUCTURED_PROC 1
14511 #include <sys/procfs.h>
14520 if ac_fn_c_try_compile "$LINENO"; then :
14521 bfd_cv_have_sys_procfs_type_psaddr_t=yes
14523 bfd_cv_have_sys_procfs_type_psaddr_t=no
14526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14531 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14535 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
14538 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
14539 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
14540 $as_echo_n "(cached) " >&6
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14546 /* Needed for new procfs interface on sparc-solaris. */
14547 #define _STRUCTURED_PROC 1
14548 #include <sys/procfs.h>
14552 elf_fpregset_t avar
14557 if ac_fn_c_try_compile "$LINENO"; then :
14558 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
14560 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
14563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
14568 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
14572 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
14576 # Check if the compiler supports the `long long' type.
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14579 $as_echo_n "checking for long long support in compiler... " >&6; }
14580 if ${gdb_cv_c_long_long+:} false; then :
14581 $as_echo_n "(cached) " >&6
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585 extern long long foo;
14589 switch (foo & 2) { case 0: return 1; }
14594 if ac_fn_c_try_compile "$LINENO"; then :
14595 gdb_cv_c_long_long=yes
14597 gdb_cv_c_long_long=no
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14602 $as_echo "$gdb_cv_c_long_long" >&6; }
14603 if test $gdb_cv_c_long_long != yes; then
14604 # libdecnumber requires long long.
14605 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
14608 # Check if the compiler and runtime support printing long longs.
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14611 $as_echo_n "checking for long long support in printf... " >&6; }
14612 if ${gdb_cv_printf_has_long_long+:} false; then :
14613 $as_echo_n "(cached) " >&6
14615 if test "$cross_compiling" = yes; then :
14616 gdb_cv_printf_has_long_long=no
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14620 $ac_includes_default
14626 l = (l << 16) + 0x0123;
14627 l = (l << 16) + 0x4567;
14628 l = (l << 16) + 0x89ab;
14629 l = (l << 16) + 0xcdef;
14630 sprintf (buf, "0x%016llx", l);
14631 return (strcmp ("0x0123456789abcdef", buf));
14636 if ac_fn_c_try_run "$LINENO"; then :
14637 gdb_cv_printf_has_long_long=yes
14639 gdb_cv_printf_has_long_long=no
14641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14642 conftest.$ac_objext conftest.beam conftest.$ac_ext
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14647 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14648 if test $gdb_cv_printf_has_long_long = yes; then
14650 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14654 # Check if the compiler and runtime support printing decfloats.
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14657 $as_echo_n "checking for decfloat support in printf... " >&6; }
14658 if ${gdb_cv_printf_has_decfloat+:} false; then :
14659 $as_echo_n "(cached) " >&6
14661 if test "$cross_compiling" = yes; then :
14662 gdb_cv_printf_has_decfloat=no
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h. */
14666 $ac_includes_default
14671 _Decimal32 d32 = 1.2345df;
14672 _Decimal64 d64 = 1.2345dd;
14673 _Decimal128 d128 = 1.2345dl;
14674 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14675 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14680 if ac_fn_c_try_run "$LINENO"; then :
14681 gdb_cv_printf_has_decfloat=yes
14683 gdb_cv_printf_has_decfloat=no
14685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14686 conftest.$ac_objext conftest.beam conftest.$ac_ext
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14691 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14692 if test $gdb_cv_printf_has_decfloat = yes; then
14694 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14698 # Check if the compiler supports the `long double' type. We can't use
14699 # AC_C_LONG_DOUBLE because that one does additional checks on the
14700 # constants defined in <float.h> that fail on some systems,
14701 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14704 $as_echo_n "checking for long double support in compiler... " >&6; }
14705 if ${gdb_cv_c_long_double+:} false; then :
14706 $as_echo_n "(cached) " >&6
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14712 if ac_fn_c_try_compile "$LINENO"; then :
14713 gdb_cv_c_long_double=yes
14715 gdb_cv_c_long_double=no
14717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14720 $as_echo "$gdb_cv_c_long_double" >&6; }
14721 if test $gdb_cv_c_long_double = yes; then
14723 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14727 # Check if the compiler and runtime support printing long doubles.
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14730 $as_echo_n "checking for long double support in printf... " >&6; }
14731 if ${gdb_cv_printf_has_long_double+:} false; then :
14732 $as_echo_n "(cached) " >&6
14734 if test "$cross_compiling" = yes; then :
14735 gdb_cv_printf_has_long_double=no
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14739 $ac_includes_default
14744 long double f = 3.141592653;
14745 sprintf (buf, "%Lg", f);
14746 return (strncmp ("3.14159", buf, 7));
14751 if ac_fn_c_try_run "$LINENO"; then :
14752 gdb_cv_printf_has_long_double=yes
14754 gdb_cv_printf_has_long_double=no
14756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14757 conftest.$ac_objext conftest.beam conftest.$ac_ext
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14762 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14763 if test $gdb_cv_printf_has_long_double = yes; then
14765 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14769 # Check if the compiler and runtime support scanning long doubles.
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14772 $as_echo_n "checking for long double support in scanf... " >&6; }
14773 if ${gdb_cv_scanf_has_long_double+:} false; then :
14774 $as_echo_n "(cached) " >&6
14776 if test "$cross_compiling" = yes; then :
14777 gdb_cv_scanf_has_long_double=no
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14785 char *buf = "3.141592653";
14787 sscanf (buf, "%Lg", &f);
14788 return !(f > 3.14159 && f < 3.14160);
14793 if ac_fn_c_try_run "$LINENO"; then :
14794 gdb_cv_scanf_has_long_double=yes
14796 gdb_cv_scanf_has_long_double=no
14798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14799 conftest.$ac_objext conftest.beam conftest.$ac_ext
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14804 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14805 if test $gdb_cv_scanf_has_long_double = yes; then
14807 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14814 $as_echo_n "checking for -bbigtoc option... " >&6; }
14815 if ${gdb_cv_bigtoc+:} false; then :
14816 $as_echo_n "(cached) " >&6
14819 SAVE_LDFLAGS=$LDFLAGS
14822 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14823 *) gdb_cv_bigtoc=-bbigtoc ;;
14826 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14838 if ac_fn_c_try_link "$LINENO"; then :
14843 rm -f core conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext conftest.$ac_ext
14845 LDFLAGS="${SAVE_LDFLAGS}"
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14849 $as_echo "$gdb_cv_bigtoc" >&6; }
14850 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14855 $as_echo_n "checking for the dynamic export flag... " >&6; }
14857 if test "${gdb_native}" = yes; then
14858 # The dynamically loaded libthread_db needs access to symbols in the gdb
14859 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14860 # may not be supported there.
14861 old_LDFLAGS="$LDFLAGS"
14862 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14863 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14864 LDFLAGS="$LDFLAGS $RDYNAMIC"
14865 if test "${have_libpython}" = no; then
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14877 if ac_fn_c_try_link "$LINENO"; then :
14880 rm -f core conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14883 # Workaround http://bugs.python.org/issue4434 where static
14884 # libpythonX.Y.a would get its symbols required for
14885 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14886 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14888 # Note the workaround for Python
14889 # http://bugs.python.org/issue10112 earlier has removed
14890 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
14891 # here too, as otherwise it'd make this -Wl,--dynamic-list test
14893 old_CFLAGS="$CFLAGS"
14894 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14896 LIBS="$LIBS $PYTHON_LIBS"
14897 old_CPPFLAGS="$CPPFLAGS"
14898 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
14899 if test "$cross_compiling" = yes; then :
14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14904 #include "Python.h"
14910 err = PyRun_SimpleString ("import itertools\n");
14912 return err == 0 ? 0 : 1;
14917 if ac_fn_c_try_run "$LINENO"; then :
14920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14921 conftest.$ac_objext conftest.beam conftest.$ac_ext
14925 CFLAGS="$old_CFLAGS"
14926 CPPFLAGS="$old_CPPFLAGS"
14928 LDFLAGS="$old_LDFLAGS"
14930 if $dynamic_list; then
14931 found="-Wl,--dynamic-list"
14932 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14935 RDYNAMIC="-rdynamic"
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14939 $as_echo "$found" >&6; }
14942 if test ${build} = ${host} -a ${host} = ${target} ; then
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14946 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14947 if ${gdb_cv_have_aix_thread_debug+:} false; then :
14948 $as_echo_n "(cached) " >&6
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14952 #include <sys/pthdebug.h>
14956 #ifndef PTHDB_VERSION_3
14963 if ac_fn_c_try_compile "$LINENO"; then :
14964 gdb_cv_have_aix_thread_debug=yes
14966 gdb_cv_have_aix_thread_debug=no
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14972 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14973 if test $gdb_cv_have_aix_thread_debug = yes; then
14974 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14975 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14976 LIBS="$LIBS -lpthdebug"
14978 # Older versions of AIX do not provide the declaration for
14979 # the getthrds function (it appears that it was introduced
14981 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14983 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
14989 cat >>confdefs.h <<_ACEOF
14990 #define HAVE_DECL_GETTHRDS $ac_have_decl
14999 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15001 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15002 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
15003 $as_echo_n "(cached) " >&6
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15007 #include <thread_db.h>
15011 int i = TD_NOTALLOC;
15016 if ac_fn_c_try_compile "$LINENO"; then :
15017 gdb_cv_thread_db_h_has_td_notalloc=yes
15019 gdb_cv_thread_db_h_has_td_notalloc=no
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15026 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15028 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15029 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
15030 $as_echo_n "(cached) " >&6
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #include <thread_db.h>
15038 int i = TD_VERSION;
15043 if ac_fn_c_try_compile "$LINENO"; then :
15044 gdb_cv_thread_db_h_has_td_version=yes
15046 gdb_cv_thread_db_h_has_td_version=no
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15053 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15055 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15056 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
15057 $as_echo_n "(cached) " >&6
15059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15061 #include <thread_db.h>
15070 if ac_fn_c_try_compile "$LINENO"; then :
15071 gdb_cv_thread_db_h_has_td_notls=yes
15073 gdb_cv_thread_db_h_has_td_notls=no
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15080 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15082 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15084 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15087 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15089 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15092 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15094 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15098 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15100 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
15106 cat >>confdefs.h <<_ACEOF
15107 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15111 if test "$cross_compiling" = yes; then :
15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h. */
15114 #include <sys/personality.h>
15119 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15120 # define ADDR_NO_RANDOMIZE 0x0040000
15122 /* Test the flag could be set and stays set. */
15123 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15124 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15130 if ac_fn_c_try_link "$LINENO"; then :
15131 have_personality=true
15133 have_personality=false
15135 rm -f core conftest.err conftest.$ac_objext \
15136 conftest$ac_exeext conftest.$ac_ext
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 #include <sys/personality.h>
15145 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15146 # define ADDR_NO_RANDOMIZE 0x0040000
15148 /* Test the flag could be set and stays set. */
15149 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15150 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15156 if ac_fn_c_try_run "$LINENO"; then :
15157 have_personality=true
15159 have_personality=false
15161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15162 conftest.$ac_objext conftest.beam conftest.$ac_ext
15165 if $have_personality
15168 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15181 cat >>confdefs.h <<_ACEOF
15182 #define GDBINIT "$gdbinit"
15187 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15188 # except that the argument to --with-sysroot is optional.
15189 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15190 if test "x$with_sysroot" = xyes; then
15191 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
15194 # Check whether --with-sysroot was given.
15195 if test "${with_sysroot+set}" = set; then :
15196 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
15198 TARGET_SYSTEM_ROOT=
15202 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15203 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15204 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
15205 ac_define_dir=`eval echo $ac_define_dir`
15207 cat >>confdefs.h <<_ACEOF
15208 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15214 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15215 if test "x$prefix" = xNONE; then
15216 test_prefix=/usr/local
15218 test_prefix=$prefix
15221 test_prefix=$exec_prefix
15224 case ${ac_define_dir} in
15225 "${test_prefix}"|"${test_prefix}/"*|\
15226 '${exec_prefix}'|'${exec_prefix}/'*)
15231 cat >>confdefs.h <<_ACEOF
15232 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15239 # Check whether --with-system-gdbinit was given.
15240 if test "${with_system_gdbinit+set}" = set; then :
15241 withval=$with_system_gdbinit;
15242 SYSTEM_GDBINIT=$withval
15248 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15249 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15250 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
15251 ac_define_dir=`eval echo $ac_define_dir`
15253 cat >>confdefs.h <<_ACEOF
15254 #define SYSTEM_GDBINIT "$ac_define_dir"
15260 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15261 if test "x$prefix" = xNONE; then
15262 test_prefix=/usr/local
15264 test_prefix=$prefix
15267 test_prefix=$exec_prefix
15270 case ${ac_define_dir} in
15271 "${test_prefix}"|"${test_prefix}/"*|\
15272 '${exec_prefix}'|'${exec_prefix}/'*)
15277 cat >>confdefs.h <<_ACEOF
15278 #define SYSTEM_GDBINIT_RELOCATABLE $value
15285 # Check whether --enable-werror was given.
15286 if test "${enable_werror+set}" = set; then :
15287 enableval=$enable_werror; case "${enableval}" in
15288 yes | y) ERROR_ON_WARNING="yes" ;;
15289 no | n) ERROR_ON_WARNING="no" ;;
15290 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15295 # Enable -Werror by default when using gcc. Turn it off for releases.
15296 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15297 ERROR_ON_WARNING=yes
15301 if test "${ERROR_ON_WARNING}" = yes ; then
15302 WERROR_CFLAGS="-Werror"
15305 # The options we'll try to enable.
15306 build_warnings="-Wall -Wpointer-arith \
15307 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
15308 -Wno-switch -Wno-char-subscripts \
15309 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15310 -Wno-sign-compare -Wno-error=maybe-uninitialized \
15311 -Wno-mismatched-tags \
15312 -Wno-error=deprecated-register \
15313 -Wsuggest-override \
15314 -Wimplicit-fallthrough=3 \
15315 -Wduplicated-cond \
15317 -Wdeprecated-copy \
15318 -Wdeprecated-copy-dtor \
15323 # Enable -Wno-format by default when using gcc on mingw since many
15324 # GCC versions complain about %I64.
15325 build_warnings="$build_warnings -Wno-format" ;;
15327 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15328 # doesn't understand.
15329 build_warnings="$build_warnings -Wno-unknown-pragmas"
15330 # Solaris 11 <unistd.h> marks vfork deprecated.
15331 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
15333 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
15334 # but there's a special case for this below.
15335 build_warnings="$build_warnings -Wformat-nonliteral" ;;
15338 # Check whether --enable-build-warnings was given.
15339 if test "${enable_build_warnings+set}" = set; then :
15340 enableval=$enable_build_warnings; case "${enableval}" in
15342 no) build_warnings="-w";;
15343 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15344 build_warnings="${build_warnings} ${t}";;
15345 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15346 build_warnings="${t} ${build_warnings}";;
15347 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15349 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15350 echo "Setting compiler warning flags = $build_warnings" 6>&1
15353 # Check whether --enable-gdb-build-warnings was given.
15354 if test "${enable_gdb_build_warnings+set}" = set; then :
15355 enableval=$enable_gdb_build_warnings; case "${enableval}" in
15357 no) build_warnings="-w";;
15358 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15359 build_warnings="${build_warnings} ${t}";;
15360 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15361 build_warnings="${t} ${build_warnings}";;
15362 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15364 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15365 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15369 # The set of warnings supported by a C++ compiler is not the same as
15370 # of the C compiler.
15372 ac_cpp='$CXXCPP $CPPFLAGS'
15373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15379 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15382 $as_echo_n "checking compiler warning flags... " >&6; }
15383 # Separate out the -Werror flag as some files just cannot be
15384 # compiled with it enabled.
15385 for w in ${build_warnings}; do
15386 # GCC does not complain about -Wno-unknown-warning. Invert
15387 # and test -Wunknown-warning instead.
15390 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
15391 -Wformat-nonliteral)
15392 # gcc requires -Wformat before -Wformat-nonliteral
15393 # will work, so stick them together.
15402 -Werr*) WERROR_CFLAGS=-Werror ;;
15404 # Check whether GCC accepts it.
15405 saved_CFLAGS="$CFLAGS"
15406 CFLAGS="$CFLAGS -Werror $wtest"
15407 saved_CXXFLAGS="$CXXFLAGS"
15408 CXXFLAGS="$CXXFLAGS -Werror $wtest"
15409 if test "x$w" = "x-Wunused-variable"; then
15410 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
15411 # fixed in GCC 4.9. This test is derived from the gdb
15412 # source code that triggered this bug in GCC.
15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15415 struct scoped_restore_base {};
15416 struct scoped_restore_tmpl : public scoped_restore_base {
15417 ~scoped_restore_tmpl() {}
15422 const scoped_restore_base &b = scoped_restore_tmpl();
15427 if ac_fn_cxx_try_compile "$LINENO"; then :
15428 WARN_CFLAGS="${WARN_CFLAGS} $w"
15430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433 /* end confdefs.h. */
15443 if ac_fn_cxx_try_compile "$LINENO"; then :
15444 WARN_CFLAGS="${WARN_CFLAGS} $w"
15446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15448 CFLAGS="$saved_CFLAGS"
15449 CXXFLAGS="$saved_CXXFLAGS"
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15453 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15459 ac_cpp='$CPP $CPPFLAGS'
15460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15466 # Check whether --enable-ubsan was given.
15467 if test "${enable_ubsan+set}" = set; then :
15468 enableval=$enable_ubsan;
15473 if test "x$enable_ubsan" = xauto; then
15474 if $development; then
15479 ac_cpp='$CXXCPP $CPPFLAGS'
15480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15484 if test "x$enable_ubsan" = xyes; then
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
15486 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
15487 saved_CXXFLAGS="$CXXFLAGS"
15488 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
15489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15500 if ac_fn_cxx_try_link "$LINENO"; then :
15505 rm -f core conftest.err conftest.$ac_objext \
15506 conftest$ac_exeext conftest.$ac_ext
15507 CXXFLAGS="$saved_CXXFLAGS"
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
15509 $as_echo "$enable_ubsan" >&6; }
15510 if test "x$enable_ubsan" = xyes; then
15511 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
15512 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
15516 ac_cpp='$CPP $CPPFLAGS'
15517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15523 # In the Cygwin environment, we need some additional flags.
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
15525 $as_echo_n "checking for cygwin... " >&6; }
15526 if ${gdb_cv_os_cygwin+:} false; then :
15527 $as_echo_n "(cached) " >&6
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15532 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15537 $EGREP "^lose$" >/dev/null 2>&1; then :
15538 gdb_cv_os_cygwin=yes
15540 gdb_cv_os_cygwin=no
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
15546 $as_echo "$gdb_cv_os_cygwin" >&6; }
15549 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
15551 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15552 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15553 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
15554 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
15558 # libreadline needs libuser32.a in a cygwin environment
15560 if test x$gdb_cv_os_cygwin = xyes; then
15561 WIN32LIBS="-luser32"
15562 case "${target}" in
15563 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15568 # The ser-tcp.c module requires sockets.
15572 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15574 WIN32LIBS="$WIN32LIBS -lws2_32"
15579 # Add ELF support to GDB, but only if BFD includes ELF support.
15582 OLD_LDFLAGS=$LDFLAGS
15584 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15585 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15586 # always want our bfd.
15587 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15588 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15589 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15590 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15591 LIBS="-lbfd -liberty -lz $intl $LIBS"
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15593 $as_echo_n "checking for ELF support in BFD... " >&6; }
15594 if ${gdb_cv_var_elf+:} false; then :
15595 $as_echo_n "(cached) " >&6
15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598 /* end confdefs.h. */
15599 #include <stdlib.h>
15601 #include "elf-bfd.h"
15606 return bfd_get_elf_phdr_upper_bound (NULL);
15611 if ac_fn_c_try_link "$LINENO"; then :
15616 rm -f core conftest.err conftest.$ac_objext \
15617 conftest$ac_exeext conftest.$ac_ext
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15620 $as_echo "$gdb_cv_var_elf" >&6; }
15622 LDFLAGS=$OLD_LDFLAGS
15624 if test $gdb_cv_var_elf = yes; then
15625 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15627 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15629 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15630 if test "$plugins" = "yes"; then
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15632 $as_echo_n "checking for library containing dlopen... " >&6; }
15633 if ${ac_cv_search_dlopen+:} false; then :
15634 $as_echo_n "(cached) " >&6
15636 ac_func_search_save_LIBS=$LIBS
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15640 /* Override any GCC internal prototype to avoid an error.
15641 Use char because int might match the return type of a GCC
15642 builtin and then its argument prototype would still apply. */
15655 for ac_lib in '' dl; do
15656 if test -z "$ac_lib"; then
15657 ac_res="none required"
15660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15662 if ac_fn_c_try_link "$LINENO"; then :
15663 ac_cv_search_dlopen=$ac_res
15665 rm -f core conftest.err conftest.$ac_objext \
15667 if ${ac_cv_search_dlopen+:} false; then :
15671 if ${ac_cv_search_dlopen+:} false; then :
15674 ac_cv_search_dlopen=no
15676 rm conftest.$ac_ext
15677 LIBS=$ac_func_search_save_LIBS
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15680 $as_echo "$ac_cv_search_dlopen" >&6; }
15681 ac_res=$ac_cv_search_dlopen
15682 if test "$ac_res" != no; then :
15683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15690 # Add macho support to GDB, but only if BFD includes it.
15693 OLD_LDFLAGS=$LDFLAGS
15695 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15696 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15697 # always want our bfd.
15698 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15699 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15700 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15701 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15702 LIBS="-lbfd -liberty -lz $intl $LIBS"
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15704 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15705 if ${gdb_cv_var_macho+:} false; then :
15706 $as_echo_n "(cached) " >&6
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15710 #include <stdlib.h>
15712 #include "mach-o.h"
15717 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15722 if ac_fn_c_try_link "$LINENO"; then :
15723 gdb_cv_var_macho=yes
15725 gdb_cv_var_macho=no
15727 rm -f core conftest.err conftest.$ac_objext \
15728 conftest$ac_exeext conftest.$ac_ext
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15731 $as_echo "$gdb_cv_var_macho" >&6; }
15733 LDFLAGS=$OLD_LDFLAGS
15735 if test $gdb_cv_var_macho = yes; then
15736 CONFIG_OBS="$CONFIG_OBS machoread.o"
15739 # Add any host-specific objects to GDB.
15740 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
15742 # If building on ELF, look for lzma support for embedded compressed debug info.
15743 if test $gdb_cv_var_elf = yes; then
15745 # Check whether --with-lzma was given.
15746 if test "${with_lzma+set}" = set; then :
15747 withval=$with_lzma;
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15753 $as_echo_n "checking whether to use lzma... " >&6; }
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15755 $as_echo "$with_lzma" >&6; }
15757 if test "${with_lzma}" != no; then
15768 acl_save_prefix="$prefix"
15769 prefix="$acl_final_prefix"
15770 acl_save_exec_prefix="$exec_prefix"
15771 exec_prefix="$acl_final_exec_prefix"
15773 eval additional_includedir=\"$includedir\"
15774 eval additional_libdir=\"$libdir\"
15776 exec_prefix="$acl_save_exec_prefix"
15777 prefix="$acl_save_prefix"
15780 # Check whether --with-liblzma-prefix was given.
15781 if test "${with_liblzma_prefix+set}" = set; then :
15782 withval=$with_liblzma_prefix;
15783 if test "X$withval" = "Xno"; then
15786 if test "X$withval" = "X"; then
15788 acl_save_prefix="$prefix"
15789 prefix="$acl_final_prefix"
15790 acl_save_exec_prefix="$exec_prefix"
15791 exec_prefix="$acl_final_exec_prefix"
15793 eval additional_includedir=\"$includedir\"
15794 eval additional_libdir=\"$libdir\"
15796 exec_prefix="$acl_save_exec_prefix"
15797 prefix="$acl_save_prefix"
15800 additional_includedir="$withval/include"
15801 additional_libdir="$withval/lib"
15812 names_already_handled=
15813 names_next_round='lzma '
15814 while test -n "$names_next_round"; do
15815 names_this_round="$names_next_round"
15817 for name in $names_this_round; do
15819 for n in $names_already_handled; do
15820 if test "$n" = "$name"; then
15821 already_handled=yes
15825 if test -z "$already_handled"; then
15826 names_already_handled="$names_already_handled $name"
15827 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15828 eval value=\"\$HAVE_LIB$uppername\"
15829 if test -n "$value"; then
15830 if test "$value" = yes; then
15831 eval value=\"\$LIB$uppername\"
15832 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
15833 eval value=\"\$LTLIB$uppername\"
15834 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15843 if test $use_additional = yes; then
15844 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15845 found_dir="$additional_libdir"
15846 found_so="$additional_libdir/lib$name.$shlibext"
15847 if test -f "$additional_libdir/lib$name.la"; then
15848 found_la="$additional_libdir/lib$name.la"
15851 if test -f "$additional_libdir/lib$name.$libext"; then
15852 found_dir="$additional_libdir"
15853 found_a="$additional_libdir/lib$name.$libext"
15854 if test -f "$additional_libdir/lib$name.la"; then
15855 found_la="$additional_libdir/lib$name.la"
15860 if test "X$found_dir" = "X"; then
15861 for x in $LDFLAGS $LTLIBLZMA; do
15863 acl_save_prefix="$prefix"
15864 prefix="$acl_final_prefix"
15865 acl_save_exec_prefix="$exec_prefix"
15866 exec_prefix="$acl_final_exec_prefix"
15868 exec_prefix="$acl_save_exec_prefix"
15869 prefix="$acl_save_prefix"
15873 dir=`echo "X$x" | sed -e 's/^X-L//'`
15874 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15876 found_so="$dir/lib$name.$shlibext"
15877 if test -f "$dir/lib$name.la"; then
15878 found_la="$dir/lib$name.la"
15881 if test -f "$dir/lib$name.$libext"; then
15883 found_a="$dir/lib$name.$libext"
15884 if test -f "$dir/lib$name.la"; then
15885 found_la="$dir/lib$name.la"
15891 if test "X$found_dir" != "X"; then
15896 if test "X$found_dir" != "X"; then
15897 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15898 if test "X$found_so" != "X"; then
15899 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15900 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15903 for x in $ltrpathdirs; do
15904 if test "X$x" = "X$found_dir"; then
15909 if test -z "$haveit"; then
15910 ltrpathdirs="$ltrpathdirs $found_dir"
15912 if test "$hardcode_direct" = yes; then
15913 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15915 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15916 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15918 for x in $rpathdirs; do
15919 if test "X$x" = "X$found_dir"; then
15924 if test -z "$haveit"; then
15925 rpathdirs="$rpathdirs $found_dir"
15929 for x in $LDFLAGS $LIBLZMA; do
15931 acl_save_prefix="$prefix"
15932 prefix="$acl_final_prefix"
15933 acl_save_exec_prefix="$exec_prefix"
15934 exec_prefix="$acl_final_exec_prefix"
15936 exec_prefix="$acl_save_exec_prefix"
15937 prefix="$acl_save_prefix"
15939 if test "X$x" = "X-L$found_dir"; then
15944 if test -z "$haveit"; then
15945 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
15947 if test "$hardcode_minus_L" != no; then
15948 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15950 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
15956 if test "X$found_a" != "X"; then
15957 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
15959 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
15962 additional_includedir=
15963 case "$found_dir" in
15965 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15966 additional_includedir="$basedir/include"
15969 if test "X$additional_includedir" != "X"; then
15970 if test "X$additional_includedir" != "X/usr/include"; then
15972 if test "X$additional_includedir" = "X/usr/local/include"; then
15973 if test -n "$GCC"; then
15975 linux*) haveit=yes;;
15979 if test -z "$haveit"; then
15980 for x in $CPPFLAGS $INCLZMA; do
15982 acl_save_prefix="$prefix"
15983 prefix="$acl_final_prefix"
15984 acl_save_exec_prefix="$exec_prefix"
15985 exec_prefix="$acl_final_exec_prefix"
15987 exec_prefix="$acl_save_exec_prefix"
15988 prefix="$acl_save_prefix"
15990 if test "X$x" = "X-I$additional_includedir"; then
15995 if test -z "$haveit"; then
15996 if test -d "$additional_includedir"; then
15997 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16003 if test -n "$found_la"; then
16004 save_libdir="$libdir"
16005 case "$found_la" in
16006 */* | *\\*) . "$found_la" ;;
16007 *) . "./$found_la" ;;
16009 libdir="$save_libdir"
16010 for dep in $dependency_libs; do
16013 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16014 if test "X$additional_libdir" != "X/usr/lib"; then
16016 if test "X$additional_libdir" = "X/usr/local/lib"; then
16017 if test -n "$GCC"; then
16019 linux*) haveit=yes;;
16023 if test -z "$haveit"; then
16025 for x in $LDFLAGS $LIBLZMA; do
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 exec_prefix="$acl_save_exec_prefix"
16033 prefix="$acl_save_prefix"
16035 if test "X$x" = "X-L$additional_libdir"; then
16040 if test -z "$haveit"; then
16041 if test -d "$additional_libdir"; then
16042 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16046 for x in $LDFLAGS $LTLIBLZMA; do
16048 acl_save_prefix="$prefix"
16049 prefix="$acl_final_prefix"
16050 acl_save_exec_prefix="$exec_prefix"
16051 exec_prefix="$acl_final_exec_prefix"
16053 exec_prefix="$acl_save_exec_prefix"
16054 prefix="$acl_save_prefix"
16056 if test "X$x" = "X-L$additional_libdir"; then
16061 if test -z "$haveit"; then
16062 if test -d "$additional_libdir"; then
16063 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16070 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16071 if test "$enable_rpath" != no; then
16073 for x in $rpathdirs; do
16074 if test "X$x" = "X$dir"; then
16079 if test -z "$haveit"; then
16080 rpathdirs="$rpathdirs $dir"
16083 for x in $ltrpathdirs; do
16084 if test "X$x" = "X$dir"; then
16089 if test -z "$haveit"; then
16090 ltrpathdirs="$ltrpathdirs $dir"
16095 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16098 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16101 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
16102 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16108 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
16109 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16115 if test "X$rpathdirs" != "X"; then
16116 if test -n "$hardcode_libdir_separator"; then
16118 for found_dir in $rpathdirs; do
16119 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16121 acl_save_libdir="$libdir"
16123 eval flag=\"$hardcode_libdir_flag_spec\"
16124 libdir="$acl_save_libdir"
16125 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
16127 for found_dir in $rpathdirs; do
16128 acl_save_libdir="$libdir"
16129 libdir="$found_dir"
16130 eval flag=\"$hardcode_libdir_flag_spec\"
16131 libdir="$acl_save_libdir"
16132 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
16136 if test "X$ltrpathdirs" != "X"; then
16137 for found_dir in $ltrpathdirs; do
16138 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16143 ac_save_CPPFLAGS="$CPPFLAGS"
16145 for element in $INCLZMA; do
16147 for x in $CPPFLAGS; do
16149 acl_save_prefix="$prefix"
16150 prefix="$acl_final_prefix"
16151 acl_save_exec_prefix="$exec_prefix"
16152 exec_prefix="$acl_final_exec_prefix"
16154 exec_prefix="$acl_save_exec_prefix"
16155 prefix="$acl_save_prefix"
16157 if test "X$x" = "X$element"; then
16162 if test -z "$haveit"; then
16163 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16169 $as_echo_n "checking for liblzma... " >&6; }
16170 if ${ac_cv_liblzma+:} false; then :
16171 $as_echo_n "(cached) " >&6
16174 ac_save_LIBS="$LIBS"
16175 LIBS="$LIBS $LIBLZMA"
16176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h. */
16182 lzma_index_iter iter;
16183 lzma_index_iter_init (&iter, 0);
16184 lzma_mf_is_supported (LZMA_MF_HC3);
16189 if ac_fn_c_try_link "$LINENO"; then :
16194 rm -f core conftest.err conftest.$ac_objext \
16195 conftest$ac_exeext conftest.$ac_ext
16196 LIBS="$ac_save_LIBS"
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16200 $as_echo "$ac_cv_liblzma" >&6; }
16201 if test "$ac_cv_liblzma" = yes; then
16204 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16207 $as_echo_n "checking how to link with liblzma... " >&6; }
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16209 $as_echo "$LIBLZMA" >&6; }
16212 CPPFLAGS="$ac_save_CPPFLAGS"
16222 if test "$HAVE_LIBLZMA" != yes; then
16223 if test "$with_lzma" = yes; then
16224 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
16230 LIBGUI="../libgui/src/libgui.a"
16231 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
16240 *-*-cygwin* | *-*-mingw* )
16249 if test "${enable_gdbtk}" = "yes"; then
16251 # Gdbtk must have an absolute path to srcdir in order to run
16252 # properly when not installed.
16255 GDBTK_SRC_DIR=`pwd`
16260 # Ok, lets find the tcl configuration
16261 # First, look for one uninstalled.
16262 # the alternative search directory is invoked by --with-tcl
16265 if test x"${no_tcl}" = x ; then
16266 # we reset no_tcl in case something fails here
16269 # Check whether --with-tcl was given.
16270 if test "${with_tcl+set}" = set; then :
16271 withval=$with_tcl; with_tclconfig=${withval}
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16275 $as_echo_n "checking for Tcl configuration... " >&6; }
16276 if ${ac_cv_c_tclconfig+:} false; then :
16277 $as_echo_n "(cached) " >&6
16281 # First check to see if --with-tcl was specified.
16283 *-*-cygwin*) platDir="win" ;;
16284 *) platDir="unix" ;;
16286 if test x"${with_tclconfig}" != x ; then
16287 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16288 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
16290 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16294 # then check for a private Tcl installation
16295 if test x"${ac_cv_c_tclconfig}" = x ; then
16298 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16299 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16300 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16302 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16303 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16304 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16306 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16307 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16308 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16309 if test -f "$i/$platDir/tclConfig.sh" ; then
16310 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16316 # on Darwin, check in Framework installation locations
16317 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
16318 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16319 `ls -d /Library/Frameworks 2>/dev/null` \
16320 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16321 `ls -d /System/Library/Frameworks 2>/dev/null` \
16323 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16324 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
16330 # check in a few common install locations
16331 if test x"${ac_cv_c_tclconfig}" = x ; then
16332 for i in `ls -d ${libdir} 2>/dev/null` \
16333 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16334 `ls -d ${prefix}/lib 2>/dev/null` \
16335 `ls -d /usr/local/lib 2>/dev/null` \
16336 `ls -d /usr/contrib/lib 2>/dev/null` \
16337 `ls -d /usr/lib 2>/dev/null` \
16339 if test -f "$i/tclConfig.sh" ; then
16340 ac_cv_c_tclconfig=`(cd $i; pwd)`
16346 # check in a few other private locations
16347 if test x"${ac_cv_c_tclconfig}" = x ; then
16350 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16351 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16352 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16353 if test -f "$i/$platDir/tclConfig.sh" ; then
16354 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16363 if test x"${ac_cv_c_tclconfig}" = x ; then
16364 TCL_BIN_DIR="# no Tcl configs found"
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16366 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16369 TCL_BIN_DIR=${ac_cv_c_tclconfig}
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16371 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16376 # If $no_tk is nonempty, then we can't do Tk, and there is no
16377 # point to doing Tcl.
16380 # Ok, lets find the tk configuration
16381 # First, look for one uninstalled.
16382 # the alternative search directory is invoked by --with-tk
16385 if test x"${no_tk}" = x ; then
16386 # we reset no_tk in case something fails here
16389 # Check whether --with-tk was given.
16390 if test "${with_tk+set}" = set; then :
16391 withval=$with_tk; with_tkconfig=${withval}
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16395 $as_echo_n "checking for Tk configuration... " >&6; }
16396 if ${ac_cv_c_tkconfig+:} false; then :
16397 $as_echo_n "(cached) " >&6
16401 # First check to see if --with-tkconfig was specified.
16402 if test x"${with_tkconfig}" != x ; then
16403 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16404 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
16406 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16410 # then check for a private Tk library
16412 *-*-cygwin*) platDir="win" ;;
16413 *) platDir="unix" ;;
16415 if test x"${ac_cv_c_tkconfig}" = x ; then
16418 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16419 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16420 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16422 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16423 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16424 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16426 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16427 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16428 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16429 if test -f "$i/$platDir/tkConfig.sh" ; then
16430 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16436 # on Darwin, check in Framework installation locations
16437 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
16438 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16439 `ls -d /Library/Frameworks 2>/dev/null` \
16440 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16441 `ls -d /System/Library/Frameworks 2>/dev/null` \
16443 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16444 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
16450 # check in a few common install locations
16451 if test x"${ac_cv_c_tkconfig}" = x ; then
16452 for i in `ls -d ${libdir} 2>/dev/null` \
16453 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16454 `ls -d ${prefix}/lib 2>/dev/null` \
16455 `ls -d /usr/local/lib 2>/dev/null` \
16456 `ls -d /usr/contrib/lib 2>/dev/null` \
16457 `ls -d /usr/lib 2>/dev/null` \
16459 if test -f "$i/tkConfig.sh" ; then
16460 ac_cv_c_tkconfig=`(cd $i; pwd)`
16465 # check in a few other private locations
16466 if test x"${ac_cv_c_tkconfig}" = x ; then
16469 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16470 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16471 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16472 if test -f "$i/$platDir/tkConfig.sh" ; then
16473 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16482 if test x"${ac_cv_c_tkconfig}" = x ; then
16483 TK_BIN_DIR="# no Tk configs found"
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16485 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16488 TK_BIN_DIR=${ac_cv_c_tkconfig}
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16490 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16495 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16498 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16500 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16502 $as_echo "loading" >&6; }
16503 . ${TCL_BIN_DIR}/tclConfig.sh
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16506 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16509 # eval is required to do the TCL_DBGX substitution
16510 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16511 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16513 # If the TCL_BIN_DIR is the build directory (not the install directory),
16514 # then set the common variable name to the value of the build variables.
16515 # For example, the variable TCL_LIB_SPEC will be set to the value
16516 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16517 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16518 # installed and uninstalled version of Tcl.
16519 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16520 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
16521 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
16522 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
16523 elif test "`uname -s`" = "Darwin"; then
16524 # If Tcl was built as a framework, attempt to use the libraries
16525 # from the framework at the given location so that linking works
16526 # against Tcl.framework installed in an arbitrary location.
16527 case ${TCL_DEFS} in
16529 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16530 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
16531 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16532 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16533 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16538 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16539 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16540 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16546 # eval is required to do the TCL_DBGX substitution
16547 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16548 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16549 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16550 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16566 # Check for in-tree tcl
16573 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16577 # Find Tcl private headers
16578 if test x"${intree}" = xno; then
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16581 $as_echo_n "checking for Tcl private headers... " >&6; }
16583 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16584 if test -f ${dir}/tclInt.h ; then
16588 if test x"${private_dir}" = x; then
16589 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
16591 TCL_PRIVATE_INCLUDE="-I${private_dir}"
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16593 $as_echo "${private_dir}" >&6; }
16596 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16597 TCL_LIBRARY="${TCL_LIB_SPEC}"
16600 # If building tcl in the same src tree, private headers
16601 # are not needed, but we need to be sure to use the right
16603 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
16604 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
16605 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16613 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16615 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16617 $as_echo "loading" >&6; }
16618 . ${TK_BIN_DIR}/tkConfig.sh
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16621 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16624 # eval is required to do the TK_DBGX substitution
16625 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16626 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16628 # If the TK_BIN_DIR is the build directory (not the install directory),
16629 # then set the common variable name to the value of the build variables.
16630 # For example, the variable TK_LIB_SPEC will be set to the value
16631 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16632 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16633 # installed and uninstalled version of Tcl.
16634 if test -f "${TK_BIN_DIR}/Makefile" ; then
16635 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
16636 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
16637 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
16638 elif test "`uname -s`" = "Darwin"; then
16639 # If Tk was built as a framework, attempt to use the libraries
16640 # from the framework at the given location so that linking works
16641 # against Tk.framework installed in an arbitrary location.
16644 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16645 for i in "`cd ${TK_BIN_DIR}; pwd`" \
16646 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16647 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16648 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16653 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16654 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16655 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16661 # eval is required to do the TK_DBGX substitution
16662 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16663 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16664 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16665 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16680 # Check for in-tree Tk
16682 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16686 # Find Tk private headers
16687 if test x"${intree}" = xno; then
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16690 $as_echo_n "checking for Tk private headers... " >&6; }
16692 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16693 if test -f ${dir}/tkInt.h; then
16697 if test x"${private_dir}" = x; then
16698 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
16700 TK_PRIVATE_INCLUDE="-I${private_dir}"
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16702 $as_echo "${private_dir}" >&6; }
16705 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16706 TK_LIBRARY=${TK_LIB_SPEC}
16709 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
16710 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
16711 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
16718 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16720 # Include some libraries that Tcl and Tk want.
16721 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16722 # Yes, the ordering seems wrong here. But it isn't.
16723 # TK_LIBS is the list of libraries that need to be linked
16724 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16725 # were in LIBS then any link tests after this point would
16726 # try to include things like `$(LIBGUI)', which wouldn't work.
16727 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
16729 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16730 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16731 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16732 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
16733 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
16734 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
16735 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
16737 if test x$gdb_cv_os_cygwin = xyes; then
16738 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16739 WIN32LDAPP="-Wl,--subsystem,console"
16740 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
16743 subdirs="$subdirs gdbtk"
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16756 $as_echo_n "checking for X... " >&6; }
16759 # Check whether --with-x was given.
16760 if test "${with_x+set}" = set; then :
16764 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16765 if test "x$with_x" = xno; then
16766 # The user explicitly disabled X.
16769 case $x_includes,$x_libraries in #(
16770 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
16771 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
16772 $as_echo_n "(cached) " >&6
16774 # One or both of the vars are not set, and there is no cached value.
16775 ac_x_includes=no ac_x_libraries=no
16776 rm -f -r conftest.dir
16777 if mkdir conftest.dir; then
16779 cat >Imakefile <<'_ACEOF'
16781 @echo incroot='${INCROOT}'
16783 @echo usrlibdir='${USRLIBDIR}'
16785 @echo libdir='${LIBDIR}'
16787 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16788 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16789 for ac_var in incroot usrlibdir libdir; do
16790 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16792 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16793 for ac_extension in a so sl dylib la dll; do
16794 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16795 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16796 ac_im_usrlibdir=$ac_im_libdir; break
16799 # Screen out bogus values from the imake configuration. They are
16800 # bogus both because they are the default anyway, and because
16801 # using them would break gcc on systems where it needs fixed includes.
16802 case $ac_im_incroot in
16803 /usr/include) ac_x_includes= ;;
16804 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16806 case $ac_im_usrlibdir in
16807 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
16808 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16812 rm -f -r conftest.dir
16815 # Standard set of common directories for X headers.
16816 # Check X11 before X11Rn because it is often a symlink to the current release.
16830 /usr/local/X11/include
16831 /usr/local/X11R7/include
16832 /usr/local/X11R6/include
16833 /usr/local/X11R5/include
16834 /usr/local/X11R4/include
16836 /usr/local/include/X11
16837 /usr/local/include/X11R7
16838 /usr/local/include/X11R6
16839 /usr/local/include/X11R5
16840 /usr/local/include/X11R4
16844 /usr/XFree86/include/X11
16848 /usr/unsupported/include
16849 /usr/athena/include
16850 /usr/local/x11r5/include
16851 /usr/lpp/Xamples/include
16853 /usr/openwin/include
16854 /usr/openwin/share/include'
16856 if test "$ac_x_includes" = no; then
16857 # Guess where to find include files, by looking for Xlib.h.
16858 # First, try using that file with no special directory specified.
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16861 #include <X11/Xlib.h>
16863 if ac_fn_c_try_cpp "$LINENO"; then :
16864 # We can compile using X headers with no special include directory.
16867 for ac_dir in $ac_x_header_dirs; do
16868 if test -r "$ac_dir/X11/Xlib.h"; then
16869 ac_x_includes=$ac_dir
16874 rm -f conftest.err conftest.i conftest.$ac_ext
16875 fi # $ac_x_includes = no
16877 if test "$ac_x_libraries" = no; then
16878 # Check for the libraries.
16879 # See if we find them without any special options.
16880 # Don't add to $LIBS permanently.
16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h. */
16885 #include <X11/Xlib.h>
16894 if ac_fn_c_try_link "$LINENO"; then :
16896 # We can link X programs with no special library path.
16900 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16902 # Don't even attempt the hair of trying to link an X program!
16903 for ac_extension in a so sl dylib la dll; do
16904 if test -r "$ac_dir/libX11.$ac_extension"; then
16905 ac_x_libraries=$ac_dir
16911 rm -f core conftest.err conftest.$ac_objext \
16912 conftest$ac_exeext conftest.$ac_ext
16913 fi # $ac_x_libraries = no
16915 case $ac_x_includes,$ac_x_libraries in #(
16916 no,* | *,no | *\'*)
16917 # Didn't find X, or a directory has "'" in its name.
16918 ac_cv_have_x="have_x=no";; #(
16920 # Record where we found X for the cache.
16921 ac_cv_have_x="have_x=yes\
16922 ac_x_includes='$ac_x_includes'\
16923 ac_x_libraries='$ac_x_libraries'"
16929 eval "$ac_cv_have_x"
16932 if test "$have_x" != yes; then
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16934 $as_echo "$have_x" >&6; }
16937 # If each of the values was on the command line, it overrides each guess.
16938 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16939 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16940 # Update the cache value to reflect the command line values.
16941 ac_cv_have_x="have_x=yes\
16942 ac_x_includes='$x_includes'\
16943 ac_x_libraries='$x_libraries'"
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16945 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16949 # Unlike the sim directory, whether a simulator is linked is controlled by
16950 # presence of a gdb_sim definition in the target configure.tgt entry.
16951 # This code just checks for a few cases where we'd like to ignore those
16952 # definitions, even when they're present in the '.mt' file. These cases
16953 # are when --disable-sim is specified, or if the simulator directory is
16954 # not part of the source tree.
16956 # Check whether --enable-sim was given.
16957 if test "${enable_sim+set}" = set; then :
16958 enableval=$enable_sim; echo "enable_sim = $enable_sim";
16959 echo "enableval = ${enableval}";
16960 case "${enableval}" in
16961 yes) ignore_sim=false ;;
16962 no) ignore_sim=true ;;
16963 *) ignore_sim=false ;;
16970 if test ! -d "${srcdir}/../sim"; then
16976 if test "${ignore_sim}" = "false"; then
16977 if test x"${gdb_sim}" != x ; then
16979 SIM_OBS="remote-sim.o"
16981 $as_echo "#define WITH_SIM 1" >>confdefs.h
16984 # Some tdep code should only be compiled in when the ppc sim is
16985 # built. PR sim/13418.
16989 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17009 # List of host floatformats.
17011 cat >>confdefs.h <<_ACEOF
17012 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17016 cat >>confdefs.h <<_ACEOF
17017 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17021 cat >>confdefs.h <<_ACEOF
17022 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17026 # target_subdir is used by the testsuite to find the target libraries.
17028 if test "${host}" != "${target}"; then
17029 target_subdir="${target_alias}/"
17033 # Import nat definitions.
17034 nat_makefile_frag=/dev/null
17035 if test "${gdb_native}" = "yes"; then
17036 . ${srcdir}/configure.nat
17037 nativefile=$NAT_FILE
17050 if test x"${gdb_osabi}" != x ; then
17052 cat >>confdefs.h <<_ACEOF
17053 #define GDB_OSABI_DEFAULT $gdb_osabi
17058 # Check whether --enable-gdbserver was given.
17059 if test "${enable_gdbserver+set}" = set; then :
17060 enableval=$enable_gdbserver; case "${enableval}" in
17062 *) as_fn_error $? "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17065 enable_gdbserver=auto
17069 # We only build gdbserver automatically in a native configuration, and
17070 # only if the user did not explicitly disable its build.
17071 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17073 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17074 if test "x$build_gdbserver" = xyes; then
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17076 $as_echo "yes" >&6; }
17077 subdirs="$subdirs gdbserver"
17079 gdbserver_build_enabled=yes
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17082 $as_echo "no" >&6; }
17086 # If the user explicitly request the gdbserver to be built, verify that
17087 # we were in fact able to enable it.
17088 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17089 as_fn_error $? "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17092 # Check for babeltrace and babeltrace-ctf
17094 # Check whether --with-babeltrace was given.
17095 if test "${with_babeltrace+set}" = set; then :
17096 withval=$with_babeltrace;
17098 with_babeltrace=auto
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17102 $as_echo_n "checking whether to use babeltrace... " >&6; }
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17104 $as_echo "$with_babeltrace" >&6; }
17106 if test "x$with_babeltrace" = "xno"; then
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17108 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17110 # Append -Werror to CFLAGS so that configure can catch the warning
17111 # "assignment from incompatible pointer type", which is related to
17112 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17113 # in GDB, while babeltrace 1.0.3 is broken.
17114 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17115 # safe to save and restore CFLAGS here.
17116 saved_CFLAGS=$CFLAGS
17117 CFLAGS="$CFLAGS -Werror"
17128 acl_save_prefix="$prefix"
17129 prefix="$acl_final_prefix"
17130 acl_save_exec_prefix="$exec_prefix"
17131 exec_prefix="$acl_final_exec_prefix"
17133 eval additional_includedir=\"$includedir\"
17134 eval additional_libdir=\"$libdir\"
17136 exec_prefix="$acl_save_exec_prefix"
17137 prefix="$acl_save_prefix"
17140 # Check whether --with-libbabeltrace-prefix was given.
17141 if test "${with_libbabeltrace_prefix+set}" = set; then :
17142 withval=$with_libbabeltrace_prefix;
17143 if test "X$withval" = "Xno"; then
17146 if test "X$withval" = "X"; then
17148 acl_save_prefix="$prefix"
17149 prefix="$acl_final_prefix"
17150 acl_save_exec_prefix="$exec_prefix"
17151 exec_prefix="$acl_final_exec_prefix"
17153 eval additional_includedir=\"$includedir\"
17154 eval additional_libdir=\"$libdir\"
17156 exec_prefix="$acl_save_exec_prefix"
17157 prefix="$acl_save_prefix"
17160 additional_includedir="$withval/include"
17161 additional_libdir="$withval/lib"
17172 names_already_handled=
17173 names_next_round='babeltrace babeltrace-ctf'
17174 while test -n "$names_next_round"; do
17175 names_this_round="$names_next_round"
17177 for name in $names_this_round; do
17179 for n in $names_already_handled; do
17180 if test "$n" = "$name"; then
17181 already_handled=yes
17185 if test -z "$already_handled"; then
17186 names_already_handled="$names_already_handled $name"
17187 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17188 eval value=\"\$HAVE_LIB$uppername\"
17189 if test -n "$value"; then
17190 if test "$value" = yes; then
17191 eval value=\"\$LIB$uppername\"
17192 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17193 eval value=\"\$LTLIB$uppername\"
17194 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17203 if test $use_additional = yes; then
17204 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17205 found_dir="$additional_libdir"
17206 found_so="$additional_libdir/lib$name.$shlibext"
17207 if test -f "$additional_libdir/lib$name.la"; then
17208 found_la="$additional_libdir/lib$name.la"
17211 if test -f "$additional_libdir/lib$name.$libext"; then
17212 found_dir="$additional_libdir"
17213 found_a="$additional_libdir/lib$name.$libext"
17214 if test -f "$additional_libdir/lib$name.la"; then
17215 found_la="$additional_libdir/lib$name.la"
17220 if test "X$found_dir" = "X"; then
17221 for x in $LDFLAGS $LTLIBBABELTRACE; do
17223 acl_save_prefix="$prefix"
17224 prefix="$acl_final_prefix"
17225 acl_save_exec_prefix="$exec_prefix"
17226 exec_prefix="$acl_final_exec_prefix"
17228 exec_prefix="$acl_save_exec_prefix"
17229 prefix="$acl_save_prefix"
17233 dir=`echo "X$x" | sed -e 's/^X-L//'`
17234 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17236 found_so="$dir/lib$name.$shlibext"
17237 if test -f "$dir/lib$name.la"; then
17238 found_la="$dir/lib$name.la"
17241 if test -f "$dir/lib$name.$libext"; then
17243 found_a="$dir/lib$name.$libext"
17244 if test -f "$dir/lib$name.la"; then
17245 found_la="$dir/lib$name.la"
17251 if test "X$found_dir" != "X"; then
17256 if test "X$found_dir" != "X"; then
17257 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17258 if test "X$found_so" != "X"; then
17259 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17260 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17263 for x in $ltrpathdirs; do
17264 if test "X$x" = "X$found_dir"; then
17269 if test -z "$haveit"; then
17270 ltrpathdirs="$ltrpathdirs $found_dir"
17272 if test "$hardcode_direct" = yes; then
17273 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17275 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17276 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17278 for x in $rpathdirs; do
17279 if test "X$x" = "X$found_dir"; then
17284 if test -z "$haveit"; then
17285 rpathdirs="$rpathdirs $found_dir"
17289 for x in $LDFLAGS $LIBBABELTRACE; do
17291 acl_save_prefix="$prefix"
17292 prefix="$acl_final_prefix"
17293 acl_save_exec_prefix="$exec_prefix"
17294 exec_prefix="$acl_final_exec_prefix"
17296 exec_prefix="$acl_save_exec_prefix"
17297 prefix="$acl_save_prefix"
17299 if test "X$x" = "X-L$found_dir"; then
17304 if test -z "$haveit"; then
17305 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17307 if test "$hardcode_minus_L" != no; then
17308 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17310 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17316 if test "X$found_a" != "X"; then
17317 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17319 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17322 additional_includedir=
17323 case "$found_dir" in
17325 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17326 additional_includedir="$basedir/include"
17329 if test "X$additional_includedir" != "X"; then
17330 if test "X$additional_includedir" != "X/usr/include"; then
17332 if test "X$additional_includedir" = "X/usr/local/include"; then
17333 if test -n "$GCC"; then
17335 linux*) haveit=yes;;
17339 if test -z "$haveit"; then
17340 for x in $CPPFLAGS $INCBABELTRACE; do
17342 acl_save_prefix="$prefix"
17343 prefix="$acl_final_prefix"
17344 acl_save_exec_prefix="$exec_prefix"
17345 exec_prefix="$acl_final_exec_prefix"
17347 exec_prefix="$acl_save_exec_prefix"
17348 prefix="$acl_save_prefix"
17350 if test "X$x" = "X-I$additional_includedir"; then
17355 if test -z "$haveit"; then
17356 if test -d "$additional_includedir"; then
17357 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17363 if test -n "$found_la"; then
17364 save_libdir="$libdir"
17365 case "$found_la" in
17366 */* | *\\*) . "$found_la" ;;
17367 *) . "./$found_la" ;;
17369 libdir="$save_libdir"
17370 for dep in $dependency_libs; do
17373 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17374 if test "X$additional_libdir" != "X/usr/lib"; then
17376 if test "X$additional_libdir" = "X/usr/local/lib"; then
17377 if test -n "$GCC"; then
17379 linux*) haveit=yes;;
17383 if test -z "$haveit"; then
17385 for x in $LDFLAGS $LIBBABELTRACE; do
17387 acl_save_prefix="$prefix"
17388 prefix="$acl_final_prefix"
17389 acl_save_exec_prefix="$exec_prefix"
17390 exec_prefix="$acl_final_exec_prefix"
17392 exec_prefix="$acl_save_exec_prefix"
17393 prefix="$acl_save_prefix"
17395 if test "X$x" = "X-L$additional_libdir"; then
17400 if test -z "$haveit"; then
17401 if test -d "$additional_libdir"; then
17402 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17406 for x in $LDFLAGS $LTLIBBABELTRACE; do
17408 acl_save_prefix="$prefix"
17409 prefix="$acl_final_prefix"
17410 acl_save_exec_prefix="$exec_prefix"
17411 exec_prefix="$acl_final_exec_prefix"
17413 exec_prefix="$acl_save_exec_prefix"
17414 prefix="$acl_save_prefix"
17416 if test "X$x" = "X-L$additional_libdir"; then
17421 if test -z "$haveit"; then
17422 if test -d "$additional_libdir"; then
17423 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17430 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17431 if test "$enable_rpath" != no; then
17433 for x in $rpathdirs; do
17434 if test "X$x" = "X$dir"; then
17439 if test -z "$haveit"; then
17440 rpathdirs="$rpathdirs $dir"
17443 for x in $ltrpathdirs; do
17444 if test "X$x" = "X$dir"; then
17449 if test -z "$haveit"; then
17450 ltrpathdirs="$ltrpathdirs $dir"
17455 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17458 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17461 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17462 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17468 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17469 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17475 if test "X$rpathdirs" != "X"; then
17476 if test -n "$hardcode_libdir_separator"; then
17478 for found_dir in $rpathdirs; do
17479 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17481 acl_save_libdir="$libdir"
17483 eval flag=\"$hardcode_libdir_flag_spec\"
17484 libdir="$acl_save_libdir"
17485 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17487 for found_dir in $rpathdirs; do
17488 acl_save_libdir="$libdir"
17489 libdir="$found_dir"
17490 eval flag=\"$hardcode_libdir_flag_spec\"
17491 libdir="$acl_save_libdir"
17492 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17496 if test "X$ltrpathdirs" != "X"; then
17497 for found_dir in $ltrpathdirs; do
17498 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17503 ac_save_CPPFLAGS="$CPPFLAGS"
17505 for element in $INCBABELTRACE; do
17507 for x in $CPPFLAGS; do
17509 acl_save_prefix="$prefix"
17510 prefix="$acl_final_prefix"
17511 acl_save_exec_prefix="$exec_prefix"
17512 exec_prefix="$acl_final_exec_prefix"
17514 exec_prefix="$acl_save_exec_prefix"
17515 prefix="$acl_save_prefix"
17517 if test "X$x" = "X$element"; then
17522 if test -z "$haveit"; then
17523 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17529 $as_echo_n "checking for libbabeltrace... " >&6; }
17530 if ${ac_cv_libbabeltrace+:} false; then :
17531 $as_echo_n "(cached) " >&6
17534 ac_save_LIBS="$LIBS"
17535 LIBS="$LIBS $LIBBABELTRACE"
17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537 /* end confdefs.h. */
17538 #include <babeltrace/babeltrace.h>
17539 #include <babeltrace/ctf/events.h>
17540 #include <babeltrace/ctf/iterator.h>
17544 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17545 struct bt_ctf_event *event = NULL;
17546 const struct bt_definition *scope;
17548 pos->type = BT_SEEK_BEGIN;
17549 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17550 scope = bt_ctf_get_top_level_scope (event,
17551 BT_STREAM_EVENT_HEADER);
17552 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17558 if ac_fn_c_try_link "$LINENO"; then :
17559 ac_cv_libbabeltrace=yes
17561 ac_cv_libbabeltrace=no
17563 rm -f core conftest.err conftest.$ac_objext \
17564 conftest$ac_exeext conftest.$ac_ext
17565 LIBS="$ac_save_LIBS"
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17569 $as_echo "$ac_cv_libbabeltrace" >&6; }
17570 if test "$ac_cv_libbabeltrace" = yes; then
17571 HAVE_LIBBABELTRACE=yes
17573 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17576 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17578 $as_echo "$LIBBABELTRACE" >&6; }
17580 HAVE_LIBBABELTRACE=no
17581 CPPFLAGS="$ac_save_CPPFLAGS"
17591 CFLAGS=$saved_CFLAGS
17593 if test "$HAVE_LIBBABELTRACE" != yes; then
17594 if test "$with_babeltrace" = yes; then
17595 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17598 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17603 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17610 if test "${nativefile}" != ""; then
17611 case "${nativefile}" in
17612 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
17613 * ) GDB_NM_FILE="${nativefile}"
17615 files="${files} ${GDB_NM_FILE}"
17616 links="${links} nm.h"
17618 cat >>confdefs.h <<_ACEOF
17619 #define GDB_NM_FILE "${GDB_NM_FILE}"
17625 for ac_prog in xsltproc
17627 # Extract the first word of "$ac_prog", so it can be a program name with args.
17628 set dummy $ac_prog; ac_word=$2
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17630 $as_echo_n "checking for $ac_word... " >&6; }
17631 if ${ac_cv_path_XSLTPROC+:} false; then :
17632 $as_echo_n "(cached) " >&6
17636 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17640 for as_dir in $PATH
17643 test -z "$as_dir" && as_dir=.
17644 for ac_exec_ext in '' $ac_executable_extensions; do
17645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17646 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
17647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17657 XSLTPROC=$ac_cv_path_XSLTPROC
17658 if test -n "$XSLTPROC"; then
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17660 $as_echo "$XSLTPROC" >&6; }
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17663 $as_echo "no" >&6; }
17667 test -n "$XSLTPROC" && break
17669 test -n "$XSLTPROC" || XSLTPROC="missing"
17671 if test "x$USE_MAINTAINER_MODE" = xyes; then
17672 if test "${XSLTPROC}" = missing; then
17673 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17678 ac_sources="$files"
17680 while test -n "$ac_sources"; do
17681 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17682 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17683 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
17685 ac_config_links="$ac_config_links $ac_config_links_1"
17691 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17695 # Check whether we will enable the inclusion of unit tests when
17698 # The default value of this option changes depending whether we're on
17699 # development mode (in which case it's "true") or not (in which case
17701 # Check whether --enable-unit-tests was given.
17702 if test "${enable_unit_tests+set}" = set; then :
17703 enableval=$enable_unit_tests; case "${enableval}" in
17704 yes) enable_unittests=true ;;
17705 no) enable_unittests=false ;;
17706 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
17709 enable_unittests=$development
17713 if $enable_unittests; then
17715 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17718 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) gdbsupport/selftest.o selftest-arch.o"
17719 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) gdbsupport/selftest.c selftest-arch.c"
17725 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17726 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
17727 if test "x$GDB_TRANSFORM_NAME" = x; then
17728 GDB_TRANSFORM_NAME=gdb
17733 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17734 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
17735 if test "x$GCORE_TRANSFORM_NAME" = x; then
17736 GCORE_TRANSFORM_NAME=gcore
17740 ac_config_files="$ac_config_files gcore"
17742 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
17745 cat >confcache <<\_ACEOF
17746 # This file is a shell script that caches the results of configure
17747 # tests run on this system so they can be shared between configure
17748 # scripts and configure runs, see configure's option --config-cache.
17749 # It is not useful on other systems. If it contains results you don't
17750 # want to keep, you may remove or edit it.
17752 # config.status only pays attention to the cache file if you give it
17753 # the --recheck option to rerun configure.
17755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17757 # following values.
17761 # The following way of writing the cache mishandles newlines in values,
17762 # but we know of no workaround that is simple, portable, and efficient.
17763 # So, we kill variables containing newlines.
17764 # Ultrix sh set writes to stderr and can't be redirected directly,
17765 # and sets the high bit in the cache file unless we assign to the vars.
17767 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17768 eval ac_val=\$$ac_var
17772 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17773 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17776 _ | IFS | as_nl) ;; #(
17777 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17778 *) { eval $ac_var=; unset $ac_var;} ;;
17784 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17785 *${as_nl}ac_space=\ *)
17786 # `set' does not quote correctly, so add quotes: double-quote
17787 # substitution turns \\\\ into \\, and sed turns \\ into \.
17790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17793 # `set' quotes correctly as required by POSIX, so do not add quotes.
17794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17803 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17805 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17807 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17808 if test -w "$cache_file"; then
17809 if test "x$cache_file" != "x/dev/null"; then
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17811 $as_echo "$as_me: updating cache $cache_file" >&6;}
17812 if test ! -f "$cache_file" || test -h "$cache_file"; then
17813 cat confcache >"$cache_file"
17815 case $cache_file in #(
17817 mv -f confcache "$cache_file"$$ &&
17818 mv -f "$cache_file"$$ "$cache_file" ;; #(
17820 mv -f confcache "$cache_file" ;;
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17826 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17832 # Let make expand exec_prefix.
17833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17835 DEFS=-DHAVE_CONFIG_H
17840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17841 # 1. Remove the extension, and $U if already installed.
17842 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17843 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17844 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17845 # will be set to the directory where LIBOBJS objects are built.
17846 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17847 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17849 LIBOBJS=$ac_libobjs
17851 LTLIBOBJS=$ac_ltlibobjs
17854 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17855 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17858 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17859 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17862 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17863 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
17864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17868 : "${CONFIG_STATUS=./config.status}"
17870 ac_clean_files_save=$ac_clean_files
17871 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17873 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17875 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17877 # Generated by $as_me.
17878 # Run this file to recreate the current configuration.
17879 # Compiler output produced by configure, useful for debugging
17880 # configure, is in config.log if it exists.
17883 ac_cs_recheck=false
17886 SHELL=\${CONFIG_SHELL-$SHELL}
17889 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17890 ## -------------------- ##
17891 ## M4sh Initialization. ##
17892 ## -------------------- ##
17894 # Be more Bourne compatible
17895 DUALCASE=1; export DUALCASE # for MKS sh
17896 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17899 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17900 # is contrary to our usage. Disable this feature.
17901 alias -g '${1+"$@"}'='"$@"'
17902 setopt NO_GLOB_SUBST
17904 case `(set -o) 2>/dev/null` in #(
17916 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17917 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17920 # Prefer a ksh shell builtin over an external printf program on Solaris,
17921 # but without wasting forks for bash or zsh.
17922 if test -z "$BASH_VERSION$ZSH_VERSION" \
17923 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17924 as_echo='print -r --'
17925 as_echo_n='print -rn --'
17926 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17927 as_echo='printf %s\n'
17928 as_echo_n='printf %s'
17930 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17931 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17932 as_echo_n='/usr/ucb/echo -n'
17934 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17935 as_echo_n_body='eval
17939 expr "X$arg" : "X\\(.*\\)$as_nl";
17940 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17942 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17944 export as_echo_n_body
17945 as_echo_n='sh -c $as_echo_n_body as_echo'
17947 export as_echo_body
17948 as_echo='sh -c $as_echo_body as_echo'
17951 # The user is always right.
17952 if test "${PATH_SEPARATOR+set}" != set; then
17954 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17955 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17962 # We need space, tab and new line, in precisely that order. Quoting is
17963 # there to prevent editors from complaining about space-tab.
17964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17965 # splitting by setting IFS to empty value.)
17968 # Find who we are. Look in the path if we contain no directory separator.
17971 *[\\/]* ) as_myself=$0 ;;
17972 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17973 for as_dir in $PATH
17976 test -z "$as_dir" && as_dir=.
17977 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17983 # We did not find ourselves, most probably we were run as `sh COMMAND'
17984 # in which case we are not to be found in the path.
17985 if test "x$as_myself" = x; then
17988 if test ! -f "$as_myself"; then
17989 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17993 # Unset variables that we do not need and which cause bugs (e.g. in
17994 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17995 # suppresses any "Segmentation fault" message there. '((' could
17996 # trigger a bug in pdksh 5.2.14.
17997 for as_var in BASH_ENV ENV MAIL MAILPATH
17998 do eval test x\${$as_var+set} = xset \
17999 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18012 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18015 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18016 # ----------------------------------------
18017 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18018 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18019 # script with STATUS, using 1 if that was 0.
18022 as_status=$1; test $as_status -eq 0 && as_status=1
18024 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18025 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18027 $as_echo "$as_me: error: $2" >&2
18028 as_fn_exit $as_status
18032 # as_fn_set_status STATUS
18033 # -----------------------
18034 # Set $? to STATUS, without forking.
18035 as_fn_set_status ()
18038 } # as_fn_set_status
18040 # as_fn_exit STATUS
18041 # -----------------
18042 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18046 as_fn_set_status $1
18052 # Portably unset VAR.
18055 { eval $1=; unset $1;}
18057 as_unset=as_fn_unset
18058 # as_fn_append VAR VALUE
18059 # ----------------------
18060 # Append the text in VALUE to the end of the definition contained in VAR. Take
18061 # advantage of any shell optimizations that allow amortized linear growth over
18062 # repeated appends, instead of the typical quadratic growth present in naive
18064 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18065 eval 'as_fn_append ()
18076 # as_fn_arith ARG...
18077 # ------------------
18078 # Perform arithmetic evaluation on the ARGs, and store the result in the
18079 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18080 # must be portable across $(()) and expr.
18081 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18082 eval 'as_fn_arith ()
18089 as_val=`expr "$@" || test $? -eq 1`
18094 if expr a : '\(a\)' >/dev/null 2>&1 &&
18095 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18101 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18102 as_basename=basename
18107 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18113 as_me=`$as_basename -- "$0" ||
18114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18115 X"$0" : 'X\(//\)$' \| \
18116 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18118 sed '/^.*\/\([^/][^/]*\)\/*$/{
18132 # Avoid depending upon Character Ranges.
18133 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18134 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18135 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18136 as_cr_digits='0123456789'
18137 as_cr_alnum=$as_cr_Letters$as_cr_digits
18139 ECHO_C= ECHO_N= ECHO_T=
18140 case `echo -n x` in #(((((
18142 case `echo 'xy\c'` in
18143 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18145 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18152 rm -f conf$$ conf$$.exe conf$$.file
18153 if test -d conf$$.dir; then
18154 rm -f conf$$.dir/conf$$.file
18157 mkdir conf$$.dir 2>/dev/null
18159 if (echo >conf$$.file) 2>/dev/null; then
18160 if ln -s conf$$.file conf$$ 2>/dev/null; then
18162 # ... but there are two gotchas:
18163 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18164 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18165 # In both cases, we have to default to `cp -pR'.
18166 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18168 elif ln conf$$.file conf$$ 2>/dev/null; then
18176 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18177 rmdir conf$$.dir 2>/dev/null
18182 # Create "$as_dir" as a directory, including parents if necessary.
18187 -*) as_dir=./$as_dir;;
18189 test -d "$as_dir" || eval $as_mkdir_p || {
18193 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18194 *) as_qdir=$as_dir;;
18196 as_dirs="'$as_qdir' $as_dirs"
18197 as_dir=`$as_dirname -- "$as_dir" ||
18198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18199 X"$as_dir" : 'X\(//\)[^/]' \| \
18200 X"$as_dir" : 'X\(//\)$' \| \
18201 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18202 $as_echo X"$as_dir" |
18203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18207 /^X\(\/\/\)[^/].*/{
18220 test -d "$as_dir" && break
18222 test -z "$as_dirs" || eval "mkdir $as_dirs"
18223 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18227 if mkdir -p . 2>/dev/null; then
18228 as_mkdir_p='mkdir -p "$as_dir"'
18230 test -d ./-p && rmdir ./-p
18235 # as_fn_executable_p FILE
18236 # -----------------------
18237 # Test if FILE is an executable regular file.
18238 as_fn_executable_p ()
18240 test -f "$1" && test -x "$1"
18241 } # as_fn_executable_p
18242 as_test_x='test -x'
18243 as_executable_p=as_fn_executable_p
18245 # Sed expression to map a string onto a valid CPP name.
18246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18248 # Sed expression to map a string onto a valid variable name.
18249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18253 ## ----------------------------------- ##
18254 ## Main body of $CONFIG_STATUS script. ##
18255 ## ----------------------------------- ##
18257 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18260 # Save the log message, to keep $0 and so on meaningful, and to
18261 # report actual input values of CONFIG_FILES etc. instead of their
18262 # values after options handling.
18264 This file was extended by $as_me, which was
18265 generated by GNU Autoconf 2.69. Invocation command line was
18267 CONFIG_FILES = $CONFIG_FILES
18268 CONFIG_HEADERS = $CONFIG_HEADERS
18269 CONFIG_LINKS = $CONFIG_LINKS
18270 CONFIG_COMMANDS = $CONFIG_COMMANDS
18273 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18278 case $ac_config_files in *"
18279 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18282 case $ac_config_headers in *"
18283 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18288 # Files that config.status was made for.
18289 config_files="$ac_config_files"
18290 config_headers="$ac_config_headers"
18291 config_links="$ac_config_links"
18292 config_commands="$ac_config_commands"
18296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18298 \`$as_me' instantiates files and other configuration actions
18299 from templates according to the current configuration. Unless the files
18300 and actions are specified as TAGs, all are instantiated by default.
18302 Usage: $0 [OPTION]... [TAG]...
18304 -h, --help print this help, then exit
18305 -V, --version print version number and configuration settings, then exit
18306 --config print configuration, then exit
18307 -q, --quiet, --silent
18308 do not print progress messages
18309 -d, --debug don't remove temporary files
18310 --recheck update $as_me by reconfiguring in the same conditions
18311 --file=FILE[:TEMPLATE]
18312 instantiate the configuration file FILE
18313 --header=FILE[:TEMPLATE]
18314 instantiate the configuration header FILE
18316 Configuration files:
18319 Configuration headers:
18322 Configuration links:
18325 Configuration commands:
18328 Report bugs to the package provider."
18331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18332 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18335 configured by $0, generated by GNU Autoconf 2.69,
18336 with options \\"\$ac_cs_config\\"
18338 Copyright (C) 2012 Free Software Foundation, Inc.
18339 This config.status script is free software; the Free Software Foundation
18340 gives unlimited permission to copy, distribute and modify it."
18346 test -n "\$AWK" || AWK=awk
18349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18350 # The default lists apply if the user does not specify any file.
18356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18357 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18361 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18373 # Handling of the options.
18374 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18376 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18377 $as_echo "$ac_cs_version"; exit ;;
18378 --config | --confi | --conf | --con | --co | --c )
18379 $as_echo "$ac_cs_config"; exit ;;
18380 --debug | --debu | --deb | --de | --d | -d )
18382 --file | --fil | --fi | --f )
18385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18386 '') as_fn_error $? "missing file argument" ;;
18388 as_fn_append CONFIG_FILES " '$ac_optarg'"
18389 ac_need_defaults=false;;
18390 --header | --heade | --head | --hea )
18393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18395 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18396 ac_need_defaults=false;;
18398 # Conflict between --help and --header
18399 as_fn_error $? "ambiguous option: \`$1'
18400 Try \`$0 --help' for more information.";;
18401 --help | --hel | -h )
18402 $as_echo "$ac_cs_usage"; exit ;;
18403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18404 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18407 # This is an error.
18408 -*) as_fn_error $? "unrecognized option: \`$1'
18409 Try \`$0 --help' for more information." ;;
18411 *) as_fn_append ac_config_targets " $1"
18412 ac_need_defaults=false ;;
18418 ac_configure_extra_args=
18420 if $ac_cs_silent; then
18422 ac_configure_extra_args="$ac_configure_extra_args --silent"
18426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18427 if \$ac_cs_recheck; then
18428 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18431 CONFIG_SHELL='$SHELL'
18432 export CONFIG_SHELL
18437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18442 ## Running $as_me. ##
18448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18452 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18458 # Handling of arguments.
18459 for ac_config_target in $ac_config_targets
18461 case $ac_config_target in
18462 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18463 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
18464 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18465 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
18466 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
18467 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18468 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
18469 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
18470 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18471 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
18473 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18478 # If the user did not use the arguments to specify the items to instantiate,
18479 # then the envvar interface is used. Set only those that are not.
18480 # We use the long form for the default assignment because of an extremely
18481 # bizarre bug on SunOS 4.1.3.
18482 if $ac_need_defaults; then
18483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18485 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18486 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18489 # Have a temporary directory for convenience. Make it in the build tree
18490 # simply because there is no reason against having it here, and in addition,
18491 # creating and moving files from /tmp can sometimes cause problems.
18492 # Hook for its removal unless debugging.
18493 # Note that there is a small window in which the directory will not be cleaned:
18494 # after its creation but before its name has been assigned to `$tmp'.
18498 trap 'exit_status=$?
18499 : "${ac_tmp:=$tmp}"
18500 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18502 trap 'as_fn_exit 1' 1 2 13 15
18504 # Create a (secure) tmp directory for tmp files.
18507 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18511 tmp=./conf$$-$RANDOM
18512 (umask 077 && mkdir "$tmp")
18513 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18516 # Set up the scripts for CONFIG_FILES section.
18517 # No need to generate them if there are no CONFIG_FILES.
18518 # This happens for instance with `./config.status config.h'.
18519 if test -n "$CONFIG_FILES"; then
18521 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18522 ac_cs_awk_getline=:
18523 ac_cs_awk_pipe_init=
18524 ac_cs_awk_read_file='
18525 while ((getline aline < (F[key])) > 0)
18528 ac_cs_awk_pipe_fini=
18530 ac_cs_awk_getline=false
18531 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18532 ac_cs_awk_read_file='
18534 print "cat " F[key] " &&"
18535 '$ac_cs_awk_pipe_init
18536 # The final `:' finishes the AND list.
18537 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18539 ac_cr=`echo X | tr X '\015'`
18540 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18541 # But we know of no other shell where ac_cr would be empty at this
18542 # point, so we can use a bashism as a fallback.
18543 if test "x$ac_cr" = x; then
18544 eval ac_cr=\$\'\\r\'
18546 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18547 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18550 ac_cs_awk_cr=$ac_cr
18553 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18556 # Create commands to substitute file output variables.
18558 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18559 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18560 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18563 } >conf$$files.sh &&
18564 . ./conf$$files.sh ||
18565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18566 rm -f conf$$files.sh
18569 echo "cat >conf$$subs.awk <<_ACEOF" &&
18570 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18572 } >conf$$subs.sh ||
18573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18574 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18576 for ac_last_try in false false false false false :; do
18577 . ./conf$$subs.sh ||
18578 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18580 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18581 if test $ac_delim_n = $ac_delim_num; then
18583 elif $ac_last_try; then
18584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18589 rm -f conf$$subs.sh
18591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18592 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18596 s/^/S["/; s/!.*/"]=/
18606 s/\(.\{148\}\)..*/\1/
18608 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18613 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18620 s/\(.\{148\}\)..*/\1/
18622 s/["\\]/\\&/g; s/^/"/; s/$/"/
18626 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18631 ' <conf$$subs.awk | sed '
18636 ' >>$CONFIG_STATUS || ac_write_fail=1
18637 rm -f conf$$subs.awk
18638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18640 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18641 for (key in S) S_is_set[key] = 1
18643 \$ac_cs_awk_pipe_init
18647 nfields = split(line, field, "@")
18649 len = length(field[1])
18650 for (i = 2; i < nfields; i++) {
18652 keylen = length(key)
18653 if (S_is_set[key]) {
18655 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18656 len += length(value) + length(field[++i])
18661 if (nfields == 3 && !substed) {
18663 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18664 \$ac_cs_awk_read_file
18670 \$ac_cs_awk_pipe_fini
18673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18674 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18675 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18678 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18679 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18682 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18683 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18684 # trailing colons and then remove the whole line if VPATH becomes empty
18685 # (actually we leave an empty line to preserve line numbers).
18686 if test "x$srcdir" = x.; then
18687 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18706 fi # test -n "$CONFIG_FILES"
18708 # Set up the scripts for CONFIG_HEADERS section.
18709 # No need to generate them if there are no CONFIG_HEADERS.
18710 # This happens for instance with `./config.status Makefile'.
18711 if test -n "$CONFIG_HEADERS"; then
18712 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18716 # Transform confdefs.h into an awk script `defines.awk', embedded as
18717 # here-document in config.status, that substitutes the proper values into
18718 # config.h.in to produce config.h.
18720 # Create a delimiter string that does not exist in confdefs.h, to ease
18721 # handling of long lines.
18723 for ac_last_try in false false :; do
18724 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18725 if test -z "$ac_tt"; then
18727 elif $ac_last_try; then
18728 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18734 # For the awk script, D is an array of macro values keyed by name,
18735 # likewise P contains macro parameters if any. Preserve backslash
18736 # newline sequences.
18738 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18740 s/.\{148\}/&'"$ac_delim"'/g
18743 s/^[ ]*#[ ]*define[ ][ ]*/ /
18750 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18752 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18756 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18757 D["\1"]=" \3\\\\\\n"\\/p
18759 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18764 s/.\{148\}/&'"$ac_delim"'/g
18769 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18772 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18774 ' <confdefs.h | sed '
18775 s/'"$ac_delim"'/"\\\
18776 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18779 for (key in D) D_is_set[key] = 1
18782 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18784 split(line, arg, " ")
18785 if (arg[1] == "#") {
18789 defundef = substr(arg[1], 2)
18792 split(mac1, mac2, "(") #)
18794 prefix = substr(line, 1, index(line, defundef) - 1)
18795 if (D_is_set[macro]) {
18796 # Preserve the white space surrounding the "#".
18797 print prefix "define", macro P[macro] D[macro]
18800 # Replace #undef with comments. This is necessary, for example,
18801 # in the case of _POSIX_SOURCE, which is predefined and required
18802 # on some systems where configure will not decide to define it.
18803 if (defundef == "undef") {
18804 print "/*", prefix defundef, macro, "*/"
18812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18813 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18814 fi # test -n "$CONFIG_HEADERS"
18817 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18822 :[FHLC]) ac_mode=$ac_tag; continue;;
18824 case $ac_mode$ac_tag in
18826 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18827 :[FH]-) ac_tag=-:-;;
18828 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18845 -) ac_f="$ac_tmp/stdin";;
18846 *) # Look for the file first in the build tree, then in the source tree
18847 # (if the path is not absolute). The absolute path cannot be DOS-style,
18848 # because $ac_f cannot contain `:'.
18852 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18854 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18856 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18857 as_fn_append ac_file_inputs " '$ac_f'"
18860 # Let's still pretend it is `configure' which instantiates (i.e., don't
18861 # use $as_me), people would be surprised to read:
18862 # /* config.h. Generated by config.status. */
18863 configure_input='Generated from '`
18864 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18866 if test x"$ac_file" != x-; then
18867 configure_input="$ac_file. $configure_input"
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18869 $as_echo "$as_me: creating $ac_file" >&6;}
18871 # Neutralize special characters interpreted by sed in replacement strings.
18872 case $configure_input in #(
18873 *\&* | *\|* | *\\* )
18874 ac_sed_conf_input=`$as_echo "$configure_input" |
18875 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18876 *) ac_sed_conf_input=$configure_input;;
18880 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18886 ac_dir=`$as_dirname -- "$ac_file" ||
18887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18888 X"$ac_file" : 'X\(//\)[^/]' \| \
18889 X"$ac_file" : 'X\(//\)$' \| \
18890 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18891 $as_echo X"$ac_file" |
18892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18896 /^X\(\/\/\)[^/].*/{
18909 as_dir="$ac_dir"; as_fn_mkdir_p
18913 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18915 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18916 # A ".." for each directory in $ac_dir_suffix.
18917 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18918 case $ac_top_builddir_sub in
18919 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18920 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18923 ac_abs_top_builddir=$ac_pwd
18924 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18925 # for backward compatibility:
18926 ac_top_builddir=$ac_top_build_prefix
18929 .) # We are building in place.
18931 ac_top_srcdir=$ac_top_builddir_sub
18932 ac_abs_top_srcdir=$ac_pwd ;;
18933 [\\/]* | ?:[\\/]* ) # Absolute name.
18934 ac_srcdir=$srcdir$ac_dir_suffix;
18935 ac_top_srcdir=$srcdir
18936 ac_abs_top_srcdir=$srcdir ;;
18937 *) # Relative name.
18938 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18939 ac_top_srcdir=$ac_top_build_prefix$srcdir
18940 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18942 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18952 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18953 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18958 # If the template does not know about datarootdir, expand it.
18959 # FIXME: This hack should be removed a few years after 2.60.
18960 ac_datarootdir_hack=; ac_datarootdir_seen=
18971 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18972 *datarootdir*) ac_datarootdir_seen=yes;;
18973 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18975 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18978 ac_datarootdir_hack='
18979 s&@datadir@&$datadir&g
18980 s&@docdir@&$docdir&g
18981 s&@infodir@&$infodir&g
18982 s&@localedir@&$localedir&g
18983 s&@mandir@&$mandir&g
18984 s&\\\${datarootdir}&$datarootdir&g' ;;
18988 # Neutralize VPATH when `$srcdir' = `.'.
18989 # Shell code in configure.ac might set extrasub.
18990 # FIXME: do we really want to maintain this feature?
18991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18992 ac_sed_extra="$ac_vpsub
18995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18998 s|@configure_input@|$ac_sed_conf_input|;t t
18999 s&@top_builddir@&$ac_top_builddir_sub&;t t
19000 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19001 s&@srcdir@&$ac_srcdir&;t t
19002 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19003 s&@top_srcdir@&$ac_top_srcdir&;t t
19004 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19005 s&@builddir@&$ac_builddir&;t t
19006 s&@abs_builddir@&$ac_abs_builddir&;t t
19007 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19008 s&@INSTALL@&$ac_INSTALL&;t t
19009 $ac_datarootdir_hack
19011 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19012 if $ac_cs_awk_getline; then
19013 $AWK -f "$ac_tmp/subs.awk"
19015 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19017 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19019 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19020 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19021 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19022 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19024 which seems to be undefined. Please make sure it is defined" >&5
19025 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19026 which seems to be undefined. Please make sure it is defined" >&2;}
19028 rm -f "$ac_tmp/stdin"
19030 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19031 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19039 if test x"$ac_file" != x-; then
19041 $as_echo "/* $configure_input */" \
19042 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19043 } >"$ac_tmp/config.h" \
19044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19045 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19047 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19050 mv "$ac_tmp/config.h" "$ac_file" \
19051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19054 $as_echo "/* $configure_input */" \
19055 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19056 || as_fn_error $? "could not create -" "$LINENO" 5
19064 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19067 # Prefer the file from the source tree if names are identical.
19068 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19069 ac_source=$srcdir/$ac_source
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19073 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19075 if test ! -r "$ac_source"; then
19076 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19080 # Try a relative symlink, then a hard link, then a copy.
19082 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19083 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19085 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19086 ln "$ac_source" "$ac_file" 2>/dev/null ||
19087 cp -p "$ac_source" "$ac_file" ||
19088 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19091 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19092 $as_echo "$as_me: executing $ac_file commands" >&6;}
19097 case $ac_file$ac_mode in
19098 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19099 "gcore":F) chmod +x gcore ;;
19101 case x$CONFIG_HEADERS in
19102 xconfig.h:config.in)
19107 case x$CONFIG_HEADERS in
19108 xconfig.h:config.in)
19113 case x$CONFIG_HEADERS in
19114 xconfig.h:config.in)
19119 case x$CONFIG_HEADERS in
19120 xconfig.h:config.in)
19124 "data-directory/Makefile":F)
19125 case x$CONFIG_HEADERS in
19126 xconfig.h:config.in)
19137 ac_clean_files=$ac_clean_files_save
19139 test $ac_write_fail = 0 ||
19140 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19143 # configure is writing to config.log, and then calls config.status.
19144 # config.status does its own redirection, appending to config.log.
19145 # Unfortunately, on DOS this fails, as config.log is still kept open
19146 # by configure, so config.status won't be able to write to it; its
19147 # output is simply discarded. So we exec the FD to /dev/null,
19148 # effectively closing config.log, so it can be properly (re)opened and
19149 # appended to by config.status. When coming back to configure, we
19150 # need to make the FD available again.
19151 if test "$no_create" != yes; then
19153 ac_config_status_args=
19154 test "$silent" = yes &&
19155 ac_config_status_args="$ac_config_status_args --quiet"
19157 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19159 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19160 # would make configure fail if this is the last instruction.
19161 $ac_cs_success || as_fn_exit 1
19165 # CONFIG_SUBDIRS section.
19167 if test "$no_recursion" != yes; then
19169 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19170 # so they do not pile up.
19171 ac_sub_configure_args=
19173 eval "set x $ac_configure_args"
19177 if test -n "$ac_prev"; then
19182 -cache-file | --cache-file | --cache-fil | --cache-fi \
19183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19184 ac_prev=cache_file ;;
19185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19189 --config-cache | -C)
19191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19199 --disable-option-checking)
19203 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19205 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19209 # Always prepend --prefix to ensure using the same prefix
19210 # in subdir configurations.
19211 ac_arg="--prefix=$prefix"
19213 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19215 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19218 if test "$silent" = yes; then
19219 ac_sub_configure_args="--silent $ac_sub_configure_args"
19222 # Always prepend --disable-option-checking to silence warnings, since
19223 # different subdirs can have different --enable and --with options.
19224 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19227 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19229 # Do not complain, so a configure script can configure whichever
19230 # parts of a large source tree are present.
19231 test -d "$srcdir/$ac_dir" || continue
19233 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19234 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19235 $as_echo "$ac_msg" >&6
19236 as_dir="$ac_dir"; as_fn_mkdir_p
19240 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19242 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19243 # A ".." for each directory in $ac_dir_suffix.
19244 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19245 case $ac_top_builddir_sub in
19246 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19247 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19250 ac_abs_top_builddir=$ac_pwd
19251 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19252 # for backward compatibility:
19253 ac_top_builddir=$ac_top_build_prefix
19256 .) # We are building in place.
19258 ac_top_srcdir=$ac_top_builddir_sub
19259 ac_abs_top_srcdir=$ac_pwd ;;
19260 [\\/]* | ?:[\\/]* ) # Absolute name.
19261 ac_srcdir=$srcdir$ac_dir_suffix;
19262 ac_top_srcdir=$srcdir
19263 ac_abs_top_srcdir=$srcdir ;;
19264 *) # Relative name.
19265 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19266 ac_top_srcdir=$ac_top_build_prefix$srcdir
19267 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19269 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19274 # Check for guested configure; otherwise get Cygnus style configure.
19275 if test -f "$ac_srcdir/configure.gnu"; then
19276 ac_sub_configure=$ac_srcdir/configure.gnu
19277 elif test -f "$ac_srcdir/configure"; then
19278 ac_sub_configure=$ac_srcdir/configure
19279 elif test -f "$ac_srcdir/configure.in"; then
19280 # This should be Cygnus configure.
19281 ac_sub_configure=$ac_aux_dir/configure
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19284 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19288 # The recursion is here.
19289 if test -n "$ac_sub_configure"; then
19290 # Make the cache file name correct relative to the subdirectory.
19291 case $cache_file in
19292 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19293 *) # Relative name.
19294 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19297 { $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
19298 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19299 # The eval makes quoting arguments work.
19300 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19301 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19302 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19308 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19310 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}