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
725 READLINE_TEXI_INCFLAG
749 HAVE_NATIVE_GCORE_TARGET
776 INSTALL_STRIP_PROGRAM
805 MAINTAINER_MODE_FALSE
834 program_transform_name
845 ac_subst_files='nat_makefile_frag'
847 enable_option_checking
848 enable_maintainer_mode
851 with_separate_debug_dir
853 with_relocated_sources
855 with_auto_load_safe_path
888 enable_build_warnings
889 enable_gdb_build_warnings
899 with_libbabeltrace_prefix
901 ac_precious_vars='build_alias
918 ac_subdirs_all='testsuite
923 # Initialize some variables set by options.
925 ac_init_version=false
926 ac_unrecognized_opts=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
937 program_transform_name=s,x,x,
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE}'
962 infodir='${datarootdir}/info'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
977 eval $ac_prev=\$ac_option
983 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988 # Accept the important Cygnus configure options, so we can diagnose typos.
990 case $ac_dashdash$ac_option in
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1014 -datadir | --datadir | --datadi | --datad)
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1026 -disable-* | --disable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1035 "enable_$ac_useropt"
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1040 eval enable_$ac_useropt=no ;;
1042 -docdir | --docdir | --docdi | --doc | --do)
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1052 -enable-* | --enable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1066 eval enable_$ac_useropt=\$ac_optarg ;;
1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070 | --exec | --exe | --ex)
1071 ac_prev=exec_prefix ;;
1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074 | --exec=* | --exe=* | --ex=*)
1075 exec_prefix=$ac_optarg ;;
1077 -gas | --gas | --ga | --g)
1078 # Obsolete; use --with-gas.
1081 -help | --help | --hel | --he | -h)
1082 ac_init_help=long ;;
1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084 ac_init_help=recursive ;;
1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086 ac_init_help=short ;;
1088 -host | --host | --hos | --ho)
1089 ac_prev=host_alias ;;
1090 -host=* | --host=* | --hos=* | --ho=*)
1091 host_alias=$ac_optarg ;;
1093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 htmldir=$ac_optarg ;;
1099 -includedir | --includedir | --includedi | --included | --include \
1100 | --includ | --inclu | --incl | --inc)
1101 ac_prev=includedir ;;
1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103 | --includ=* | --inclu=* | --incl=* | --inc=*)
1104 includedir=$ac_optarg ;;
1106 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109 infodir=$ac_optarg ;;
1111 -libdir | --libdir | --libdi | --libd)
1113 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114 libdir=$ac_optarg ;;
1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117 | --libexe | --libex | --libe)
1118 ac_prev=libexecdir ;;
1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120 | --libexe=* | --libex=* | --libe=*)
1121 libexecdir=$ac_optarg ;;
1123 -localedir | --localedir | --localedi | --localed | --locale)
1124 ac_prev=localedir ;;
1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126 localedir=$ac_optarg ;;
1128 -localstatedir | --localstatedir | --localstatedi | --localstated \
1129 | --localstate | --localstat | --localsta | --localst | --locals)
1130 ac_prev=localstatedir ;;
1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133 localstatedir=$ac_optarg ;;
1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138 mandir=$ac_optarg ;;
1140 -nfp | --nfp | --nf)
1141 # Obsolete; use --without-fp.
1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145 | --no-cr | --no-c | -n)
1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154 | --oldin | --oldi | --old | --ol | --o)
1155 ac_prev=oldincludedir ;;
1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159 oldincludedir=$ac_optarg ;;
1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164 prefix=$ac_optarg ;;
1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167 | --program-pre | --program-pr | --program-p)
1168 ac_prev=program_prefix ;;
1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171 program_prefix=$ac_optarg ;;
1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174 | --program-suf | --program-su | --program-s)
1175 ac_prev=program_suffix ;;
1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178 program_suffix=$ac_optarg ;;
1180 -program-transform-name | --program-transform-name \
1181 | --program-transform-nam | --program-transform-na \
1182 | --program-transform-n | --program-transform- \
1183 | --program-transform | --program-transfor \
1184 | --program-transfo | --program-transf \
1185 | --program-trans | --program-tran \
1186 | --progr-tra | --program-tr | --program-t)
1187 ac_prev=program_transform_name ;;
1188 -program-transform-name=* | --program-transform-name=* \
1189 | --program-transform-nam=* | --program-transform-na=* \
1190 | --program-transform-n=* | --program-transform-=* \
1191 | --program-transform=* | --program-transfor=* \
1192 | --program-transfo=* | --program-transf=* \
1193 | --program-trans=* | --program-tran=* \
1194 | --progr-tra=* | --program-tr=* | --program-t=*)
1195 program_transform_name=$ac_optarg ;;
1197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200 pdfdir=$ac_optarg ;;
1202 -psdir | --psdir | --psdi | --psd | --ps)
1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208 | -silent | --silent | --silen | --sile | --sil)
1211 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215 sbindir=$ac_optarg ;;
1217 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1218 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1219 | --sharedst | --shareds | --shared | --share | --shar \
1221 ac_prev=sharedstatedir ;;
1222 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1223 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1224 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226 sharedstatedir=$ac_optarg ;;
1228 -site | --site | --sit)
1230 -site=* | --site=* | --sit=*)
1233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1236 srcdir=$ac_optarg ;;
1238 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1239 | --syscon | --sysco | --sysc | --sys | --sy)
1240 ac_prev=sysconfdir ;;
1241 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1242 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1243 sysconfdir=$ac_optarg ;;
1245 -target | --target | --targe | --targ | --tar | --ta | --t)
1246 ac_prev=target_alias ;;
1247 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1248 target_alias=$ac_optarg ;;
1250 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253 -version | --version | --versio | --versi | --vers | -V)
1254 ac_init_version=: ;;
1257 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error $? "invalid package name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1270 eval with_$ac_useropt=\$ac_optarg ;;
1272 -without-* | --without-*)
1273 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error $? "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1286 eval with_$ac_useropt=no ;;
1289 # Obsolete; use --with-x.
1292 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293 | --x-incl | --x-inc | --x-in | --x-i)
1294 ac_prev=x_includes ;;
1295 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297 x_includes=$ac_optarg ;;
1299 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301 ac_prev=x_libraries ;;
1302 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304 x_libraries=$ac_optarg ;;
1306 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1307 Try \`$0 --help' for more information"
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 case $ac_envvar in #(
1314 '' | [0-9]* | *[!_$as_cr_alnum]* )
1315 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1317 eval $ac_envvar=\$ac_optarg
1318 export $ac_envvar ;;
1321 # FIXME: should be removed in autoconf 3.0.
1322 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1331 if test -n "$ac_prev"; then
1332 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333 as_fn_error $? "missing argument to $ac_option"
1336 if test -n "$ac_unrecognized_opts"; then
1337 case $enable_option_checking in
1339 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1340 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1344 # Check all directory arguments for consistency.
1345 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1350 eval ac_val=\$$ac_var
1351 # Remove trailing slashes.
1354 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1355 eval $ac_var=\$ac_val;;
1357 # Be sure to have absolute directory names.
1359 [\\/$]* | ?:[\\/]* ) continue;;
1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1370 target=$target_alias
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x; then
1374 if test "x$build_alias" = x; then
1375 cross_compiling=maybe
1376 elif test "x$build_alias" != "x$host_alias"; then
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384 test "$silent" = yes && exec 6>/dev/null
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 as_fn_error $? "working directory cannot be determined"
1391 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 as_fn_error $? "pwd does not report name of working directory"
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$as_myself" ||
1400 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$as_myself" : 'X\(//\)[^/]' \| \
1402 X"$as_myself" : 'X\(//\)$' \| \
1403 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404 $as_echo X"$as_myself" |
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1427 ac_srcdir_defaulted=no
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1461 \`configure' configures this package to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking ...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1519 --program-prefix=PREFIX prepend PREFIX to installed program names
1520 --program-suffix=SUFFIX append SUFFIX to installed program names
1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1524 --x-includes=DIR X include files are in DIR
1525 --x-libraries=DIR X library files are in DIR
1528 --build=BUILD configure for building on BUILD [guessed]
1529 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1530 --target=TARGET configure for building compilers for TARGET [HOST]
1534 if test -n "$ac_init_help"; then
1539 --disable-option-checking ignore unrecognized --enable/--with options
1540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1542 --enable-maintainer-mode
1543 enable make rules and dependencies not useful (and
1544 sometimes confusing) to the casual installer
1545 --enable-plugins Enable support for plugins
1546 --disable-largefile omit support for large files
1547 --enable-targets=TARGETS
1548 alternative target configurations
1549 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1550 --disable-gdbcli disable command-line interface (CLI)
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-libmcheck Try linking with -lmcheck if available
1558 --enable-werror treat compile warnings as errors
1559 --enable-build-warnings enable build-time compiler warnings if gcc is used
1560 --enable-gdb-build-warnings
1561 enable GDB specific build-time compiler warnings if
1563 --enable-sim link gdb with simulator
1564 --enable-multi-ice build the multi-ice-gdb-server
1565 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-separate-debug-dir=PATH
1572 look for global separate debug info in this path
1574 --with-gdb-datadir=PATH look for global separate data files in this path
1576 --with-relocated-sources=PATH
1577 automatically relocate this path for source files
1578 --with-auto-load-dir=PATH
1579 directories from which to load auto-loaded scripts
1580 [$debugdir:$datadir/auto-load]
1581 --with-auto-load-safe-path=PATH
1582 directories safe to hold auto-loaded files
1583 [--with-auto-load-dir]
1584 --without-auto-load-safe-path
1585 do not restrict auto-loaded files locations
1586 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1587 --with-curses use the curses library instead of the termcap
1589 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1590 --with-bugurl=URL Direct users to URL to report a bug
1591 --with-system-zlib use installed libz
1592 --with-gnu-ld assume the C compiler uses GNU ld default=no
1593 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1594 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1595 --with-iconv-bin=PATH specify where to find the iconv program
1596 --with-system-readline use installed readline library
1597 --with-jit-reader-dir=PATH
1598 directory to load the JIT readers from
1599 --with-expat include expat support (auto/yes/no)
1600 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1601 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1602 --with-mpfr include MPFR support (auto/yes/no)
1603 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1604 --without-libmpfr-prefix don't search for libmpfr in includedir and libdir
1605 --with-python[=PYTHON] include python support
1606 (auto/yes/no/<python-program>)
1607 --with-guile[=GUILE] include guile support
1608 (auto/yes/no/<guile-version>/<pkg-config-program>)
1609 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1610 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1611 --without-libipt-prefix don't search for libipt in includedir and libdir
1612 --without-included-regex
1613 don't use included regex; this is the default on
1614 systems with version 2 of the GNU C library (use
1615 with caution on other system)
1616 --with-sysroot[=DIR] search for usr/lib et al within DIR
1617 --with-system-gdbinit=PATH
1618 automatically load a system-wide gdbinit file
1619 --with-lzma support lzma compression (auto/yes/no)
1620 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1621 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1622 --with-tcl directory containing tcl configuration (tclConfig.sh)
1623 --with-tk directory containing tk configuration (tkConfig.sh)
1624 --with-x use the X Window System
1625 --with-babeltrace include babeltrace support (auto/yes/no)
1626 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1627 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1629 Some influential environment variables:
1630 CC C compiler command
1631 CFLAGS C compiler flags
1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1633 nonstandard directory <lib dir>
1634 LIBS libraries to pass to the linker, e.g. -l<library>
1635 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1636 you have headers in a nonstandard directory <include dir>
1637 CXX C++ compiler command
1638 CXXFLAGS C++ compiler flags
1640 MAKEINFO Parent configure detects if it is of sufficient version.
1642 Parameters for MAKEINFO.
1643 YACC The `Yet Another Compiler Compiler' implementation to use.
1644 Defaults to the first program found out of: `bison -y', `byacc',
1646 YFLAGS The list of arguments that will be passed by default to $YACC.
1647 This script will default YFLAGS to the empty string to avoid a
1648 default value of `-d' given by some make applications.
1649 XMKMF Path to xmkmf, Makefile generator for X Window System
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1654 Report bugs to the package provider.
1659 if test "$ac_init_help" = "recursive"; then
1660 # If there are subdirs, report their specific --help.
1661 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662 test -d "$ac_dir" ||
1663 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1671 # A ".." for each directory in $ac_dir_suffix.
1672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673 case $ac_top_builddir_sub in
1674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678 ac_abs_top_builddir=$ac_pwd
1679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680 # for backward compatibility:
1681 ac_top_builddir=$ac_top_build_prefix
1684 .) # We are building in place.
1686 ac_top_srcdir=$ac_top_builddir_sub
1687 ac_abs_top_srcdir=$ac_pwd ;;
1688 [\\/]* | ?:[\\/]* ) # Absolute name.
1689 ac_srcdir=$srcdir$ac_dir_suffix;
1690 ac_top_srcdir=$srcdir
1691 ac_abs_top_srcdir=$srcdir ;;
1693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694 ac_top_srcdir=$ac_top_build_prefix$srcdir
1695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699 cd "$ac_dir" || { ac_status=$?; continue; }
1700 # Check for guested configure.
1701 if test -f "$ac_srcdir/configure.gnu"; then
1703 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1704 elif test -f "$ac_srcdir/configure"; then
1706 $SHELL "$ac_srcdir/configure" --help=recursive
1708 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710 cd "$ac_pwd" || { ac_status=$?; break; }
1714 test -n "$ac_init_help" && exit $ac_status
1715 if $ac_init_version; then
1718 generated by GNU Autoconf 2.69
1720 Copyright (C) 2012 Free Software Foundation, Inc.
1721 This configure script is free software; the Free Software Foundation
1722 gives unlimited permission to copy, distribute and modify it.
1727 ## ------------------------ ##
1728 ## Autoconf initialization. ##
1729 ## ------------------------ ##
1731 # ac_fn_c_try_compile LINENO
1732 # --------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_compile ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1767 } # ac_fn_c_try_compile
1769 # ac_fn_cxx_try_compile LINENO
1770 # ----------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_cxx_try_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_cxx_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1805 } # ac_fn_cxx_try_compile
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } > conftest.i && {
1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1844 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1847 # the include files in INCLUDES and setting the cache variable VAR
1849 ac_fn_c_check_header_mongrel ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if eval \${$3+:} false; then :
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 # Is the header compilable?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1864 $as_echo_n "checking $2 usability... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 ac_header_compiler=yes
1873 ac_header_compiler=no
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1877 $as_echo "$ac_header_compiler" >&6; }
1879 # Is the header present?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1881 $as_echo_n "checking $2 presence... " >&6; }
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1886 if ac_fn_c_try_cpp "$LINENO"; then :
1887 ac_header_preproc=yes
1889 ac_header_preproc=no
1891 rm -f conftest.err conftest.i conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1893 $as_echo "$ac_header_preproc" >&6; }
1895 # So? What about this header?
1896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1899 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1905 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1907 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1909 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1911 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1921 eval "$3=\$ac_header_compiler"
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_header_mongrel
1931 # ac_fn_c_try_run LINENO
1932 # ----------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1934 # that executables *can* be run.
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if { { ac_try="$ac_link"
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>&5
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1949 { { case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_try") 2>&5
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; }; }; then :
1961 $as_echo "$as_me: program exited with status $ac_status" >&5
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1965 ac_retval=$ac_status
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status $ac_retval
1973 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1974 # -------------------------------------------------------
1975 # Tests whether HEADER exists and can be compiled using the include files in
1976 # INCLUDES, setting the cache variable VAR accordingly.
1977 ac_fn_c_check_header_compile ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1990 if ac_fn_c_try_compile "$LINENO"; then :
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_header_compile
2004 # ac_fn_c_try_link LINENO
2005 # -----------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded.
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 rm -f conftest.$ac_objext conftest$ac_exeext
2011 if { { ac_try="$ac_link"
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_link") 2>conftest.err
2020 if test -s conftest.err; then
2021 grep -v '^ *+' conftest.err >conftest.er1
2022 cat conftest.er1 >&5
2023 mv -f conftest.er1 conftest.err
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; } && {
2027 test -z "$ac_c_werror_flag" ||
2028 test ! -s conftest.err
2029 } && test -s conftest$ac_exeext && {
2030 test "$cross_compiling" = yes ||
2031 test -x conftest$ac_exeext
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2040 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2041 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2042 # interfere with the next link command; also delete a directory that is
2043 # left behind by Apple's compiler. We do this before executing the actions.
2044 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_c_try_link
2050 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2051 # --------------------------------------------
2052 # Tries to find the compile-time value of EXPR in a program that includes
2053 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2055 ac_fn_c_compute_int ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 if test "$cross_compiling" = yes; then
2059 # Depending upon the size, compute the lo and hi bounds.
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2066 static int test_array [1 - 2 * !(($2) >= 0)];
2068 return test_array [0];
2074 if ac_fn_c_try_compile "$LINENO"; then :
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 return test_array [0];
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_hi=$ac_mid; break
2094 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2095 if test $ac_lo -le $ac_mid; then
2099 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2110 static int test_array [1 - 2 * !(($2) < 0)];
2112 return test_array [0];
2118 if ac_fn_c_try_compile "$LINENO"; then :
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2127 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129 return test_array [0];
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_lo=$ac_mid; break
2138 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139 if test $ac_mid -le $ac_hi; then
2143 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 # Binary search between lo and hi bounds.
2154 while test "x$ac_lo" != "x$ac_hi"; do
2155 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 return test_array [0];
2170 if ac_fn_c_try_compile "$LINENO"; then :
2173 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2193 FILE *f = fopen ("conftest.val", "w");
2198 long int i = longval ();
2201 fprintf (f, "%ld", i);
2205 unsigned long int i = ulongval ();
2208 fprintf (f, "%lu", i);
2210 /* Do not output a trailing newline, as this causes \r\n confusion
2211 on some platforms. */
2212 return ferror (f) || fclose (f) != 0;
2218 if ac_fn_c_try_run "$LINENO"; then :
2219 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2224 conftest.$ac_objext conftest.beam conftest.$ac_ext
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 as_fn_set_status $ac_retval
2231 } # ac_fn_c_compute_int
2233 # ac_fn_c_check_func LINENO FUNC VAR
2234 # ----------------------------------
2235 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2236 ac_fn_c_check_func ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if eval \${$3+:} false; then :
2242 $as_echo_n "(cached) " >&6
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2246 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2248 #define $2 innocuous_$2
2250 /* System header to define __stub macros and hopefully few prototypes,
2251 which can conflict with char $2 (); below.
2252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2253 <limits.h> exists even on freestanding compilers. */
2256 # include <limits.h>
2258 # include <assert.h>
2263 /* Override any GCC internal prototype to avoid an error.
2264 Use char because int might match the return type of a GCC
2265 builtin and then its argument prototype would still apply. */
2270 /* The GNU C library defines this for functions which it implements
2271 to always fail with ENOSYS. Some functions are actually named
2272 something starting with __ and the normal name is an alias. */
2273 #if defined __stub_$2 || defined __stub___$2
2285 if ac_fn_c_try_link "$LINENO"; then :
2290 rm -f core conftest.err conftest.$ac_objext \
2291 conftest$ac_exeext conftest.$ac_ext
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 } # ac_fn_c_check_func
2300 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2301 # ----------------------------------------------------
2302 # Tries to find if the field MEMBER exists in type AGGR, after including
2303 # INCLUDES, setting cache variable VAR accordingly.
2304 ac_fn_c_check_member ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2308 $as_echo_n "checking for $2.$3... " >&6; }
2309 if eval \${$4+:} false; then :
2310 $as_echo_n "(cached) " >&6
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2325 if ac_fn_c_try_compile "$LINENO"; then :
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2335 if (sizeof ac_aggr.$3)
2341 if ac_fn_c_try_compile "$LINENO"; then :
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355 } # ac_fn_c_check_member
2357 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2358 # -------------------------------------------
2359 # Tests whether TYPE exists after having included INCLUDES, setting cache
2360 # variable VAR accordingly.
2361 ac_fn_c_check_type ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if eval \${$3+:} false; then :
2367 $as_echo_n "(cached) " >&6
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2382 if ac_fn_c_try_compile "$LINENO"; then :
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2395 if ac_fn_c_try_compile "$LINENO"; then :
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 } # ac_fn_c_check_type
2411 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2412 # ---------------------------------------------
2413 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2415 ac_fn_c_check_decl ()
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 as_decl_name=`echo $2|sed 's/ *(.*//'`
2419 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2421 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2422 if eval \${$3+:} false; then :
2423 $as_echo_n "(cached) " >&6
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2431 #ifndef $as_decl_name
2433 (void) $as_decl_use;
2435 (void) $as_decl_name;
2443 if ac_fn_c_try_compile "$LINENO"; then :
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455 } # ac_fn_c_check_decl
2456 cat >config.log <<_ACEOF
2457 This file contains any messages produced by compilers while
2458 running configure, to aid debugging if configure makes a mistake.
2460 It was created by $as_me, which was
2461 generated by GNU Autoconf 2.69. Invocation command line was
2473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2480 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2482 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2483 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2485 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2486 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2487 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2488 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 $as_echo "PATH: $as_dir"
2513 # Keep a trace of the command line.
2514 # Strip out --no-create and --no-recursion so they do not pile up.
2515 # Strip out --silent because we don't want to record it for future runs.
2516 # Also quote any args containing shell meta-characters.
2517 # Make two passes to allow for proper duplicate-argument suppression.
2521 ac_must_keep_next=false
2527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2529 | -silent | --silent | --silen | --sile | --sil)
2532 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2535 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2537 as_fn_append ac_configure_args1 " '$ac_arg'"
2538 if test $ac_must_keep_next = true; then
2539 ac_must_keep_next=false # Got value, back to normal.
2542 *=* | --config-cache | -C | -disable-* | --disable-* \
2543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2545 | -with-* | --with-* | -without-* | --without-* | --x)
2546 case "$ac_configure_args0 " in
2547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2550 -* ) ac_must_keep_next=true ;;
2553 as_fn_append ac_configure_args " '$ac_arg'"
2558 { ac_configure_args0=; unset ac_configure_args0;}
2559 { ac_configure_args1=; unset ac_configure_args1;}
2561 # When interrupted or exit'd, cleanup temporary files, and complete
2562 # config.log. We remove comments because anyway the quotes in there
2563 # would cause problems or look ugly.
2564 # WARNING: Use '\'' to represent an apostrophe within the trap.
2565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2566 trap 'exit_status=$?
2567 # Save into config.log some information that might help in debugging.
2571 $as_echo "## ---------------- ##
2572 ## Cache variables. ##
2573 ## ---------------- ##"
2575 # The following way of writing the cache mishandles newlines in values,
2577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2578 eval ac_val=\$$ac_var
2582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2586 _ | IFS | as_nl) ;; #(
2587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2588 *) { eval $ac_var=; unset $ac_var;} ;;
2593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2594 *${as_nl}ac_space=\ *)
2596 "s/'\''/'\''\\\\'\'''\''/g;
2597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2607 $as_echo "## ----------------- ##
2608 ## Output variables. ##
2609 ## ----------------- ##"
2611 for ac_var in $ac_subst_vars
2613 eval ac_val=\$$ac_var
2615 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2617 $as_echo "$ac_var='\''$ac_val'\''"
2621 if test -n "$ac_subst_files"; then
2622 $as_echo "## ------------------- ##
2623 ## File substitutions. ##
2624 ## ------------------- ##"
2626 for ac_var in $ac_subst_files
2628 eval ac_val=\$$ac_var
2630 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2632 $as_echo "$ac_var='\''$ac_val'\''"
2637 if test -s confdefs.h; then
2638 $as_echo "## ----------- ##
2645 test "$ac_signal" != 0 &&
2646 $as_echo "$as_me: caught signal $ac_signal"
2647 $as_echo "$as_me: exit $exit_status"
2649 rm -f core *.core core.conftest.* &&
2650 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2653 for ac_signal in 1 2 13 15; do
2654 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2658 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2659 rm -f -r conftest* confdefs.h
2661 $as_echo "/* confdefs.h */" > confdefs.h
2663 # Predefined preprocessor variables.
2665 cat >>confdefs.h <<_ACEOF
2666 #define PACKAGE_NAME "$PACKAGE_NAME"
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_STRING "$PACKAGE_STRING"
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE_URL "$PACKAGE_URL"
2690 # Let the site file select an alternate cache file if it wants to.
2691 # Prefer an explicitly selected file to automatically selected ones.
2694 if test -n "$CONFIG_SITE"; then
2695 # We do not want a PATH search for config.site.
2696 case $CONFIG_SITE in #((
2697 -*) ac_site_file1=./$CONFIG_SITE;;
2698 */*) ac_site_file1=$CONFIG_SITE;;
2699 *) ac_site_file1=./$CONFIG_SITE;;
2701 elif test "x$prefix" != xNONE; then
2702 ac_site_file1=$prefix/share/config.site
2703 ac_site_file2=$prefix/etc/config.site
2705 ac_site_file1=$ac_default_prefix/share/config.site
2706 ac_site_file2=$ac_default_prefix/etc/config.site
2708 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2710 test "x$ac_site_file" = xNONE && continue
2711 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2713 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2714 sed 's/^/| /' "$ac_site_file" >&5
2716 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718 as_fn_error $? "failed to load site script $ac_site_file
2719 See \`config.log' for more details" "$LINENO" 5; }
2723 if test -r "$cache_file"; then
2724 # Some versions of bash will fail to source /dev/null (special files
2725 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2726 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2728 $as_echo "$as_me: loading cache $cache_file" >&6;}
2730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2731 *) . "./$cache_file";;
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2736 $as_echo "$as_me: creating cache $cache_file" >&6;}
2740 as_fn_append ac_header_list " stdlib.h"
2741 as_fn_append ac_header_list " unistd.h"
2742 as_fn_append ac_header_list " sys/param.h"
2743 # Check that the precious variables saved in the cache have kept the same
2745 ac_cache_corrupted=false
2746 for ac_var in $ac_precious_vars; do
2747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2748 eval ac_new_set=\$ac_env_${ac_var}_set
2749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2750 eval ac_new_val=\$ac_env_${ac_var}_value
2751 case $ac_old_set,$ac_new_set in
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2754 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2755 ac_cache_corrupted=: ;;
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2758 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2759 ac_cache_corrupted=: ;;
2762 if test "x$ac_old_val" != "x$ac_new_val"; then
2763 # differences in whitespace do not lead to failure.
2764 ac_old_val_w=`echo x $ac_old_val`
2765 ac_new_val_w=`echo x $ac_new_val`
2766 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2768 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2769 ac_cache_corrupted=:
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2772 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2773 eval $ac_var=\$ac_old_val
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2776 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2778 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2781 # Pass precious variables to config.status.
2782 if test "$ac_new_set" = set; then
2784 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2785 *) ac_arg=$ac_var=$ac_new_val ;;
2787 case " $ac_configure_args " in
2788 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2789 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2793 if $ac_cache_corrupted; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2797 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2798 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2800 ## -------------------- ##
2801 ## Main body of script. ##
2802 ## -------------------- ##
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 ac_config_headers="$ac_config_headers config.h:config.in"
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2818 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2819 # Check whether --enable-maintainer-mode was given.
2820 if test "${enable_maintainer_mode+set}" = set; then :
2821 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2823 USE_MAINTAINER_MODE=no
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2827 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2828 if test $USE_MAINTAINER_MODE = yes; then
2829 MAINTAINER_MODE_TRUE=
2830 MAINTAINER_MODE_FALSE='#'
2832 MAINTAINER_MODE_TRUE='#'
2833 MAINTAINER_MODE_FALSE=
2836 MAINT=$MAINTAINER_MODE_TRUE
2840 # Set the 'development' global.
2841 . $srcdir/../bfd/development.sh
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2887 if test -z "$ac_cv_prog_CC"; then
2889 # Extract the first word of "gcc", so it can be a program name with args.
2890 set dummy gcc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_CC="gcc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919 $as_echo "$ac_ct_CC" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2925 if test "x$ac_ct_CC" = x; then
2928 case $cross_compiling:$ac_tool_warned in
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2940 if test -z "$CC"; then
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}cc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CC+:} false; then :
2947 $as_echo_n "(cached) " >&6
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="${ac_tool_prefix}cc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2981 if test -z "$CC"; then
2982 # Extract the first word of "cc", so it can be a program name with args.
2983 set dummy cc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3001 ac_prog_rejected=yes
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 if test $ac_prog_rejected = yes; then
3013 # We found a bogon in the path, so make sure we never use it.
3014 set dummy $ac_cv_prog_CC
3016 if test $# != 0; then
3017 # We chose a different compiler from the bogus one.
3018 # However, it has the same basename, so the bogon will be chosen
3019 # first if we set CC to just the basename; use the full file name.
3021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3027 if test -n "$CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3037 if test -z "$CC"; then
3038 if test -n "$ac_tool_prefix"; then
3039 for ac_prog in cl.exe
3041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3078 test -n "$CC" && break
3081 if test -z "$CC"; then
3083 for ac_prog in cl.exe
3085 # Extract the first word of "$ac_prog", so it can be a program name with args.
3086 set dummy $ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3090 $as_echo_n "(cached) " >&6
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 ac_cv_prog_ac_ct_CC="$ac_prog"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3115 $as_echo "$ac_ct_CC" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3122 test -n "$ac_ct_CC" && break
3125 if test "x$ac_ct_CC" = x; then
3128 case $cross_compiling:$ac_tool_warned in
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error $? "no acceptable C compiler found in \$PATH
3144 See \`config.log' for more details" "$LINENO" 5; }
3146 # Provide some information about the compiler.
3147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3150 for ac_option in --version -v -V -qversion; do
3151 { { ac_try="$ac_compiler $ac_option >&5"
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3160 if test -s conftest.err; then
3162 ... rest of stderr output deleted ...
3163 10q' conftest.err >conftest.er1
3164 cat conftest.er1 >&5
3166 rm -f conftest.er1 conftest.err
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3182 ac_clean_files_save=$ac_clean_files
3183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3184 # Try to create an executable without -o first, disregard a.out.
3185 # It will help us diagnose broken compilers, and finding out an intuition
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3188 $as_echo_n "checking whether the C compiler works... " >&6; }
3189 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3191 # The possible output files:
3192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3195 for ac_file in $ac_files
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3204 if { { ac_try="$ac_link_default"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_link_default") 2>&5
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then :
3215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3218 # so that the user can short-circuit this test for compilers unknown to
3220 for ac_file in $ac_files ''
3222 test -f "$ac_file" || continue
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3227 # We found the default executable, but exeext='' is most
3231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235 # We set ac_cv_exeext here because the later test for it is not
3236 # safe: cross compilers may not add the suffix if given an `-o'
3237 # argument, so we may need to know it at that point already.
3238 # Even if this section looks crufty: it has the advantage of
3245 test "$ac_cv_exeext" = no && ac_cv_exeext=
3250 if test -z "$ac_file"; then :
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 $as_echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error 77 "C compiler cannot create executables
3259 See \`config.log' for more details" "$LINENO" 5; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265 $as_echo_n "checking for C compiler default output file name... " >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267 $as_echo "$ac_file" >&6; }
3268 ac_exeext=$ac_cv_exeext
3270 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3271 ac_clean_files=$ac_clean_files_save
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3273 $as_echo_n "checking for suffix of executables... " >&6; }
3274 if { { ac_try="$ac_link"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_link") 2>&5
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
3285 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3286 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3287 # work properly (i.e., refer to `conftest.exe'), while it won't with
3289 for ac_file in conftest.exe conftest conftest.*; do
3290 test -f "$ac_file" || continue
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3302 See \`config.log' for more details" "$LINENO" 5; }
3304 rm -f conftest conftest$ac_cv_exeext
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3306 $as_echo "$ac_cv_exeext" >&6; }
3308 rm -f conftest.$ac_ext
3309 EXEEXT=$ac_cv_exeext
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3317 FILE *f = fopen ("conftest.out", "w");
3318 return ferror (f) || fclose (f) != 0;
3324 ac_clean_files="$ac_clean_files conftest.out"
3325 # Check that the compiler produces executables we can run. If not, either
3326 # the compiler is broken, or we cross compile.
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328 $as_echo_n "checking whether we are cross compiling... " >&6; }
3329 if test "$cross_compiling" != yes; then
3330 { { ac_try="$ac_link"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_link") 2>&5
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341 if { ac_try='./conftest$ac_cv_exeext'
3342 { { case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_try") 2>&5
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; }; then
3354 if test "$cross_compiling" = maybe; then
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $? "cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details" "$LINENO" 5; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366 $as_echo "$cross_compiling" >&6; }
3368 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369 ac_clean_files=$ac_clean_files_save
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371 $as_echo_n "checking for suffix of object files... " >&6; }
3372 if ${ac_cv_objext+:} false; then :
3373 $as_echo_n "(cached) " >&6
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3386 rm -f conftest.o conftest.obj
3387 if { { ac_try="$ac_compile"
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_compile") 2>&5
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 for ac_file in conftest.o conftest.obj conftest.*; do
3399 test -f "$ac_file" || continue;
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3407 $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "cannot compute suffix of object files: cannot compile
3413 See \`config.log' for more details" "$LINENO" 5; }
3415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3418 $as_echo "$ac_cv_objext" >&6; }
3419 OBJEXT=$ac_cv_objext
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3422 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3423 if ${ac_cv_c_compiler_gnu+:} false; then :
3424 $as_echo_n "(cached) " >&6
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3440 if ac_fn_c_try_compile "$LINENO"; then :
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3450 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3451 if test $ac_compiler_gnu = yes; then
3456 ac_test_CFLAGS=${CFLAGS+set}
3457 ac_save_CFLAGS=$CFLAGS
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3460 if ${ac_cv_prog_cc_g+:} false; then :
3461 $as_echo_n "(cached) " >&6
3463 ac_save_c_werror_flag=$ac_c_werror_flag
3464 ac_c_werror_flag=yes
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3478 if ac_fn_c_try_compile "$LINENO"; then :
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3493 if ac_fn_c_try_compile "$LINENO"; then :
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3509 if ac_fn_c_try_compile "$LINENO"; then :
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3520 $as_echo "$ac_cv_prog_cc_g" >&6; }
3521 if test "$ac_test_CFLAGS" = set; then
3522 CFLAGS=$ac_save_CFLAGS
3523 elif test $ac_cv_prog_cc_g = yes; then
3524 if test "$GCC" = yes; then
3530 if test "$GCC" = yes; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3537 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3538 if ${ac_cv_prog_cc_c89+:} false; then :
3539 $as_echo_n "(cached) " >&6
3541 ac_cv_prog_cc_c89=no
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3548 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3549 struct buf { int x; };
3550 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551 static char *e (p, i)
3557 static char *f (char * (*g) (char **, int), char **p, ...)
3562 s = g (p, va_arg (v,int));
3567 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3568 function prototypes and stuff, but not '\xHH' hex character constants.
3569 These don't provoke an error unfortunately, instead are silently treated
3570 as 'x'. The following induces an error, until -std is added to get
3571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3572 array size at least. It's necessary to write '\x00'==0 to get something
3573 that's true only with -std. */
3574 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577 inside strings and character constants. */
3579 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3590 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3595 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598 CC="$ac_save_CC $ac_arg"
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600 ac_cv_prog_cc_c89=$ac_arg
3602 rm -f core conftest.err conftest.$ac_objext
3603 test "x$ac_cv_prog_cc_c89" != "xno" && break
3605 rm -f conftest.$ac_ext
3610 case "x$ac_cv_prog_cc_c89" in
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3613 $as_echo "none needed" >&6; } ;;
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3616 $as_echo "unsupported" >&6; } ;;
3618 CC="$CC $ac_cv_prog_cc_c89"
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3620 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3622 if test "x$ac_cv_prog_cc_c89" != xno; then :
3627 ac_cpp='$CPP $CPPFLAGS'
3628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 ac_cpp='$CXXCPP $CPPFLAGS'
3634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3637 if test -z "$CXX"; then
3638 if test -n "$CCC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_CXX+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$CXX"; then
3652 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 if test -n "$CXX"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3674 $as_echo "$CXX" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 test -n "$CXX" && break
3684 if test -z "$CXX"; then
3686 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3693 $as_echo_n "(cached) " >&6
3695 if test -n "$ac_ct_CXX"; then
3696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705 ac_cv_prog_ac_ct_CXX="$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3716 if test -n "$ac_ct_CXX"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3718 $as_echo "$ac_ct_CXX" >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3725 test -n "$ac_ct_CXX" && break
3728 if test "x$ac_ct_CXX" = x; then
3731 case $cross_compiling:$ac_tool_warned in
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735 ac_tool_warned=yes ;;
3743 # Provide some information about the compiler.
3744 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3747 for ac_option in --version -v -V -qversion; do
3748 { { ac_try="$ac_compiler $ac_option >&5"
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3757 if test -s conftest.err; then
3759 ... rest of stderr output deleted ...
3760 10q' conftest.err >conftest.er1
3761 cat conftest.er1 >&5
3763 rm -f conftest.er1 conftest.err
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3769 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3770 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3771 $as_echo_n "(cached) " >&6
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3787 if ac_fn_cxx_try_compile "$LINENO"; then :
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3797 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3798 if test $ac_compiler_gnu = yes; then
3803 ac_test_CXXFLAGS=${CXXFLAGS+set}
3804 ac_save_CXXFLAGS=$CXXFLAGS
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3806 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3807 if ${ac_cv_prog_cxx_g+:} false; then :
3808 $as_echo_n "(cached) " >&6
3810 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3811 ac_cxx_werror_flag=yes
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3825 if ac_fn_cxx_try_compile "$LINENO"; then :
3826 ac_cv_prog_cxx_g=yes
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3840 if ac_fn_cxx_try_compile "$LINENO"; then :
3843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3856 if ac_fn_cxx_try_compile "$LINENO"; then :
3857 ac_cv_prog_cxx_g=yes
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3867 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3868 if test "$ac_test_CXXFLAGS" = set; then
3869 CXXFLAGS=$ac_save_CXXFLAGS
3870 elif test $ac_cv_prog_cxx_g = yes; then
3871 if test "$GXX" = yes; then
3877 if test "$GXX" = yes; then
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3897 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3898 # On Suns, sometimes $CPP names a directory.
3899 if test -n "$CPP" && test -d "$CPP"; then
3902 if test -z "$CPP"; then
3903 if ${ac_cv_prog_CPP+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 # Double quotes because CPP needs to be expanded
3907 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3910 for ac_c_preproc_warn_flag in '' yes
3912 # Use a header file that comes with gcc, so configuring glibc
3913 # with a fresh cross-compiler works.
3914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3915 # <limits.h> exists even on freestanding compilers.
3916 # On the NeXT, cc -E runs the code through the compiler's parser,
3917 # not just through cpp. "Syntax error" is here to catch this case.
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3921 # include <limits.h>
3923 # include <assert.h>
3927 if ac_fn_c_try_cpp "$LINENO"; then :
3930 # Broken: fails on valid input.
3933 rm -f conftest.err conftest.i conftest.$ac_ext
3935 # OK, works on sane cases. Now check whether nonexistent headers
3936 # can be detected and how.
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939 #include <ac_nonexistent.h>
3941 if ac_fn_c_try_cpp "$LINENO"; then :
3942 # Broken: success on invalid input.
3945 # Passes both tests.
3949 rm -f conftest.err conftest.i conftest.$ac_ext
3952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3953 rm -f conftest.i conftest.err conftest.$ac_ext
3954 if $ac_preproc_ok; then :
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3967 $as_echo "$CPP" >&6; }
3969 for ac_c_preproc_warn_flag in '' yes
3971 # Use a header file that comes with gcc, so configuring glibc
3972 # with a fresh cross-compiler works.
3973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3974 # <limits.h> exists even on freestanding compilers.
3975 # On the NeXT, cc -E runs the code through the compiler's parser,
3976 # not just through cpp. "Syntax error" is here to catch this case.
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3980 # include <limits.h>
3982 # include <assert.h>
3986 if ac_fn_c_try_cpp "$LINENO"; then :
3989 # Broken: fails on valid input.
3992 rm -f conftest.err conftest.i conftest.$ac_ext
3994 # OK, works on sane cases. Now check whether nonexistent headers
3995 # can be detected and how.
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 #include <ac_nonexistent.h>
4000 if ac_fn_c_try_cpp "$LINENO"; then :
4001 # Broken: success on invalid input.
4004 # Passes both tests.
4008 rm -f conftest.err conftest.i conftest.$ac_ext
4011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4012 rm -f conftest.i conftest.err conftest.$ac_ext
4013 if $ac_preproc_ok; then :
4016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4019 See \`config.log' for more details" "$LINENO" 5; }
4023 ac_cpp='$CPP $CPPFLAGS'
4024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4030 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4031 if ${ac_cv_path_GREP+:} false; then :
4032 $as_echo_n "(cached) " >&6
4034 if test -z "$GREP"; then
4035 ac_path_GREP_found=false
4036 # Loop through the user's path and test for each of PROGNAME-LIST
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4041 test -z "$as_dir" && as_dir=.
4042 for ac_prog in grep ggrep; do
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4045 as_fn_executable_p "$ac_path_GREP" || continue
4046 # Check for GNU ac_path_GREP and select it if it is found.
4047 # Check for GNU $ac_path_GREP
4048 case `"$ac_path_GREP" --version 2>&1` in
4050 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4053 $as_echo_n 0123456789 >"conftest.in"
4056 cat "conftest.in" "conftest.in" >"conftest.tmp"
4057 mv "conftest.tmp" "conftest.in"
4058 cp "conftest.in" "conftest.nl"
4059 $as_echo 'GREP' >> "conftest.nl"
4060 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4062 as_fn_arith $ac_count + 1 && ac_count=$as_val
4063 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4064 # Best one so far, save it but keep looking for a better one
4065 ac_cv_path_GREP="$ac_path_GREP"
4066 ac_path_GREP_max=$ac_count
4068 # 10*(2^10) chars as input seems more than enough
4069 test $ac_count -gt 10 && break
4071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4074 $ac_path_GREP_found && break 3
4079 if test -z "$ac_cv_path_GREP"; then
4080 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4083 ac_cv_path_GREP=$GREP
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4088 $as_echo "$ac_cv_path_GREP" >&6; }
4089 GREP="$ac_cv_path_GREP"
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4093 $as_echo_n "checking for egrep... " >&6; }
4094 if ${ac_cv_path_EGREP+:} false; then :
4095 $as_echo_n "(cached) " >&6
4097 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4098 then ac_cv_path_EGREP="$GREP -E"
4100 if test -z "$EGREP"; then
4101 ac_path_EGREP_found=false
4102 # Loop through the user's path and test for each of PROGNAME-LIST
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4107 test -z "$as_dir" && as_dir=.
4108 for ac_prog in egrep; do
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4111 as_fn_executable_p "$ac_path_EGREP" || continue
4112 # Check for GNU ac_path_EGREP and select it if it is found.
4113 # Check for GNU $ac_path_EGREP
4114 case `"$ac_path_EGREP" --version 2>&1` in
4116 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4119 $as_echo_n 0123456789 >"conftest.in"
4122 cat "conftest.in" "conftest.in" >"conftest.tmp"
4123 mv "conftest.tmp" "conftest.in"
4124 cp "conftest.in" "conftest.nl"
4125 $as_echo 'EGREP' >> "conftest.nl"
4126 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128 as_fn_arith $ac_count + 1 && ac_count=$as_val
4129 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4130 # Best one so far, save it but keep looking for a better one
4131 ac_cv_path_EGREP="$ac_path_EGREP"
4132 ac_path_EGREP_max=$ac_count
4134 # 10*(2^10) chars as input seems more than enough
4135 test $ac_count -gt 10 && break
4137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4140 $ac_path_EGREP_found && break 3
4145 if test -z "$ac_cv_path_EGREP"; then
4146 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4149 ac_cv_path_EGREP=$EGREP
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4155 $as_echo "$ac_cv_path_EGREP" >&6; }
4156 EGREP="$ac_cv_path_EGREP"
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4160 $as_echo_n "checking for ANSI C header files... " >&6; }
4161 if ${ac_cv_header_stdc+:} false; then :
4162 $as_echo_n "(cached) " >&6
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_header_stdc=yes
4182 ac_cv_header_stdc=no
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 if test $ac_cv_header_stdc = yes; then
4187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4194 $EGREP "memchr" >/dev/null 2>&1; then :
4197 ac_cv_header_stdc=no
4203 if test $ac_cv_header_stdc = yes; then
4204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211 $EGREP "free" >/dev/null 2>&1; then :
4214 ac_cv_header_stdc=no
4220 if test $ac_cv_header_stdc = yes; then
4221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4222 if test "$cross_compiling" = yes; then :
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4229 #if ((' ' & 0x0FF) == 0x020)
4230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4233 # define ISLOWER(c) \
4234 (('a' <= (c) && (c) <= 'i') \
4235 || ('j' <= (c) && (c) <= 'r') \
4236 || ('s' <= (c) && (c) <= 'z'))
4237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4245 for (i = 0; i < 256; i++)
4246 if (XOR (islower (i), ISLOWER (i))
4247 || toupper (i) != TOUPPER (i))
4252 if ac_fn_c_try_run "$LINENO"; then :
4255 ac_cv_header_stdc=no
4257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4258 conftest.$ac_objext conftest.beam conftest.$ac_ext
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4264 $as_echo "$ac_cv_header_stdc" >&6; }
4265 if test $ac_cv_header_stdc = yes; then
4267 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4272 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4273 inttypes.h stdint.h unistd.h
4275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4276 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4279 cat >>confdefs.h <<_ACEOF
4280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4289 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4290 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4297 if test "$MINIX" = yes; then
4299 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4302 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4305 $as_echo "#define _MINIX 1" >>confdefs.h
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4311 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4312 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4313 $as_echo_n "(cached) " >&6
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4318 # define __EXTENSIONS__ 1
4319 $ac_includes_default
4328 if ac_fn_c_try_compile "$LINENO"; then :
4329 ac_cv_safe_to_define___extensions__=yes
4331 ac_cv_safe_to_define___extensions__=no
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4336 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4337 test $ac_cv_safe_to_define___extensions__ = yes &&
4338 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4340 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4342 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4344 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4346 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4350 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4351 if test -f "$ac_dir/install-sh"; then
4353 ac_install_sh="$ac_aux_dir/install-sh -c"
4355 elif test -f "$ac_dir/install.sh"; then
4357 ac_install_sh="$ac_aux_dir/install.sh -c"
4359 elif test -f "$ac_dir/shtool"; then
4361 ac_install_sh="$ac_aux_dir/shtool install -c"
4365 if test -z "$ac_aux_dir"; then
4366 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4369 # These three variables are undocumented and unsupported,
4370 # and are intended to be withdrawn in a future Autoconf release.
4371 # They can cause serious problems if a builder's source tree is in a directory
4372 # whose full name contains unusual characters.
4373 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4374 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4375 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4378 # Make sure we can run config.sub.
4379 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4380 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4383 $as_echo_n "checking build system type... " >&6; }
4384 if ${ac_cv_build+:} false; then :
4385 $as_echo_n "(cached) " >&6
4387 ac_build_alias=$build_alias
4388 test "x$ac_build_alias" = x &&
4389 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4390 test "x$ac_build_alias" = x &&
4391 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4392 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4393 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4397 $as_echo "$ac_cv_build" >&6; }
4398 case $ac_cv_build in
4400 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4403 ac_save_IFS=$IFS; IFS='-'
4409 # Remember, the first character of IFS is used to create $*,
4410 # except with old shells:
4413 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4417 $as_echo_n "checking host system type... " >&6; }
4418 if ${ac_cv_host+:} false; then :
4419 $as_echo_n "(cached) " >&6
4421 if test "x$host_alias" = x; then
4422 ac_cv_host=$ac_cv_build
4424 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4425 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4430 $as_echo "$ac_cv_host" >&6; }
4433 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4436 ac_save_IFS=$IFS; IFS='-'
4442 # Remember, the first character of IFS is used to create $*,
4443 # except with old shells:
4446 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4450 $as_echo_n "checking target system type... " >&6; }
4451 if ${ac_cv_target+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 if test "x$target_alias" = x; then
4455 ac_cv_target=$ac_cv_host
4457 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4458 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4463 $as_echo "$ac_cv_target" >&6; }
4464 case $ac_cv_target in
4466 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4468 target=$ac_cv_target
4469 ac_save_IFS=$IFS; IFS='-'
4475 # Remember, the first character of IFS is used to create $*,
4476 # except with old shells:
4479 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4482 # The aliases save the names the user supplied, while $host etc.
4483 # will get canonicalized.
4484 test -n "$target_alias" &&
4485 test "$program_prefix$program_suffix$program_transform_name" = \
4487 program_prefix=${target_alias}-
4489 # The tests for host and target for $enable_largefile require
4494 # As the $enable_largefile decision depends on --enable-plugins we must set it
4495 # even in directories otherwise not depending on the $plugins option.
4499 for ac_header in dlfcn.h
4501 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4503 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4504 cat >>confdefs.h <<_ACEOF
4505 #define HAVE_DLFCN_H 1
4512 for ac_header in windows.h
4514 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4516 if test "x$ac_cv_header_windows_h" = xyes; then :
4517 cat >>confdefs.h <<_ACEOF
4518 #define HAVE_WINDOWS_H 1
4526 # Check whether --enable-plugins was given.
4527 if test "${enable_plugins+set}" = set; then :
4528 enableval=$enable_plugins; case "${enableval}" in
4531 if test "$maybe_plugins" != "yes" ; then
4532 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4536 plugins=$maybe_plugins
4540 if test "$plugins" = "yes"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4542 $as_echo_n "checking for library containing dlsym... " >&6; }
4543 if ${ac_cv_search_dlsym+:} false; then :
4544 $as_echo_n "(cached) " >&6
4546 ac_func_search_save_LIBS=$LIBS
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4550 /* Override any GCC internal prototype to avoid an error.
4551 Use char because int might match the return type of a GCC
4552 builtin and then its argument prototype would still apply. */
4565 for ac_lib in '' dl; do
4566 if test -z "$ac_lib"; then
4567 ac_res="none required"
4570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4572 if ac_fn_c_try_link "$LINENO"; then :
4573 ac_cv_search_dlsym=$ac_res
4575 rm -f core conftest.err conftest.$ac_objext \
4577 if ${ac_cv_search_dlsym+:} false; then :
4581 if ${ac_cv_search_dlsym+:} false; then :
4584 ac_cv_search_dlsym=no
4587 LIBS=$ac_func_search_save_LIBS
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4590 $as_echo "$ac_cv_search_dlsym" >&6; }
4591 ac_res=$ac_cv_search_dlsym
4592 if test "$ac_res" != no; then :
4593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4601 sparc-*-solaris*|i[3-7]86-*-solaris*)
4602 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4603 # are mutually exclusive; and without procfs support, the bfd/ elf module
4604 # cannot provide certain routines such as elfcore_write_prpsinfo
4605 # or elfcore_write_prstatus. So unless the user explicitly requested
4606 # large-file support through the --enable-largefile switch, disable
4607 # large-file support in favor of procfs support.
4608 test "${target}" = "${host}" -a "x$plugins" = xno \
4609 && : ${enable_largefile="no"}
4613 # Check whether --enable-largefile was given.
4614 if test "${enable_largefile+set}" = set; then :
4615 enableval=$enable_largefile;
4618 if test "$enable_largefile" != no; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4621 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4622 if ${ac_cv_sys_largefile_CC+:} false; then :
4623 $as_echo_n "(cached) " >&6
4625 ac_cv_sys_largefile_CC=no
4626 if test "$GCC" != yes; then
4629 # IRIX 6.2 and later do not support large files by default,
4630 # so use the C compiler's -n32 option if that helps.
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 #include <sys/types.h>
4634 /* Check that off_t can represent 2**63 - 1 correctly.
4635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4636 since some C++ compilers masquerading as C compilers
4637 incorrectly reject 9223372036854775807. */
4638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4640 && LARGE_OFF_T % 2147483647 == 1)
4650 if ac_fn_c_try_compile "$LINENO"; then :
4653 rm -f core conftest.err conftest.$ac_objext
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656 ac_cv_sys_largefile_CC=' -n32'; break
4658 rm -f core conftest.err conftest.$ac_objext
4662 rm -f conftest.$ac_ext
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4666 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4667 if test "$ac_cv_sys_largefile_CC" != no; then
4668 CC=$CC$ac_cv_sys_largefile_CC
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4672 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4673 if ${ac_cv_sys_file_offset_bits+:} false; then :
4674 $as_echo_n "(cached) " >&6
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 #include <sys/types.h>
4680 /* Check that off_t can represent 2**63 - 1 correctly.
4681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4682 since some C++ compilers masquerading as C compilers
4683 incorrectly reject 9223372036854775807. */
4684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4686 && LARGE_OFF_T % 2147483647 == 1)
4696 if ac_fn_c_try_compile "$LINENO"; then :
4697 ac_cv_sys_file_offset_bits=no; break
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 #define _FILE_OFFSET_BITS 64
4703 #include <sys/types.h>
4704 /* Check that off_t can represent 2**63 - 1 correctly.
4705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4706 since some C++ compilers masquerading as C compilers
4707 incorrectly reject 9223372036854775807. */
4708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4710 && LARGE_OFF_T % 2147483647 == 1)
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721 ac_cv_sys_file_offset_bits=64; break
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 ac_cv_sys_file_offset_bits=unknown
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4729 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4730 case $ac_cv_sys_file_offset_bits in #(
4733 cat >>confdefs.h <<_ACEOF
4734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4739 if test $ac_cv_sys_file_offset_bits = unknown; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4741 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4742 if ${ac_cv_sys_large_files+:} false; then :
4743 $as_echo_n "(cached) " >&6
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 #include <sys/types.h>
4749 /* Check that off_t can represent 2**63 - 1 correctly.
4750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4751 since some C++ compilers masquerading as C compilers
4752 incorrectly reject 9223372036854775807. */
4753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4755 && LARGE_OFF_T % 2147483647 == 1)
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766 ac_cv_sys_large_files=no; break
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771 #define _LARGE_FILES 1
4772 #include <sys/types.h>
4773 /* Check that off_t can represent 2**63 - 1 correctly.
4774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4775 since some C++ compilers masquerading as C compilers
4776 incorrectly reject 9223372036854775807. */
4777 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4779 && LARGE_OFF_T % 2147483647 == 1)
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790 ac_cv_sys_large_files=1; break
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 ac_cv_sys_large_files=unknown
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4798 $as_echo "$ac_cv_sys_large_files" >&6; }
4799 case $ac_cv_sys_large_files in #(
4802 cat >>confdefs.h <<_ACEOF
4803 #define _LARGE_FILES $ac_cv_sys_large_files
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4818 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4819 if ${am_cv_prog_cc_stdc+:} false; then :
4820 $as_echo_n "(cached) " >&6
4822 am_cv_prog_cc_stdc=no
4824 # Don't try gcc -ansi; that turns off useful extensions and
4825 # breaks some systems' header files.
4826 # AIX -qlanglvl=ansi
4827 # Ultrix and OSF/1 -std1
4828 # HP-UX 10.20 and later -Ae
4829 # HP-UX older versions -Aa -D_HPUX_SOURCE
4830 # SVR4 -Xc -D__EXTENSIONS__
4831 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4833 CC="$ac_save_CC $ac_arg"
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4838 #include <sys/types.h>
4839 #include <sys/stat.h>
4840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4841 struct buf { int x; };
4842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4843 static char *e (p, i)
4849 static char *f (char * (*g) (char **, int), char **p, ...)
4854 s = g (p, va_arg (v,int));
4858 int test (int i, double x);
4859 struct s1 {int (*f) (int a);};
4860 struct s2 {int (*f) (double a);};
4861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4869 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 am_cv_prog_cc_stdc="$ac_arg"; break
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 if test -z "$am_cv_prog_cc_stdc"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4886 $as_echo "none needed" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4889 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4891 case "x$am_cv_prog_cc_stdc" in
4893 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4896 # Expand $ac_aux_dir to an absolute path.
4897 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4899 if test x"${install_sh+set}" != xset; then
4902 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4904 install_sh="\${SHELL} $am_aux_dir/install-sh"
4908 # Installed binaries are usually stripped using 'strip' when the user
4909 # run "make install-strip". However 'strip' might not be the right
4910 # tool to use in cross-compilation environments, therefore Automake
4911 # will honor the 'STRIP' environment variable to overrule this program.
4912 if test "$cross_compiling" != no; then
4913 if test -n "$ac_tool_prefix"; then
4914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4915 set dummy ${ac_tool_prefix}strip; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_STRIP+:} false; then :
4919 $as_echo_n "(cached) " >&6
4921 if test -n "$STRIP"; then
4922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 STRIP=$ac_cv_prog_STRIP
4942 if test -n "$STRIP"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4944 $as_echo "$STRIP" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4952 if test -z "$ac_cv_prog_STRIP"; then
4954 # Extract the first word of "strip", so it can be a program name with args.
4955 set dummy strip; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4959 $as_echo_n "(cached) " >&6
4961 if test -n "$ac_ct_STRIP"; then
4962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_ac_ct_STRIP="strip"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4982 if test -n "$ac_ct_STRIP"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4984 $as_echo "$ac_ct_STRIP" >&6; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4990 if test "x$ac_ct_STRIP" = x; then
4993 case $cross_compiling:$ac_tool_warned in
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997 ac_tool_warned=yes ;;
5002 STRIP="$ac_cv_prog_STRIP"
5006 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5010 for ac_dir in .. "$srcdir"/..; do
5011 if test -f "$ac_dir/install-sh"; then
5013 ac_install_sh="$ac_aux_dir/install-sh -c"
5015 elif test -f "$ac_dir/install.sh"; then
5017 ac_install_sh="$ac_aux_dir/install.sh -c"
5019 elif test -f "$ac_dir/shtool"; then
5021 ac_install_sh="$ac_aux_dir/shtool install -c"
5025 if test -z "$ac_aux_dir"; then
5026 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5029 # These three variables are undocumented and unsupported,
5030 # and are intended to be withdrawn in a future Autoconf release.
5031 # They can cause serious problems if a builder's source tree is in a directory
5032 # whose full name contains unusual characters.
5033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5039 test "$program_prefix" != NONE &&
5040 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5041 # Use a double $ so make ignores it.
5042 test "$program_suffix" != NONE &&
5043 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5044 # Double any \ or $.
5045 # By default was `s,x,x', remove it if useless.
5046 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5047 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5050 # We require a C++11 compiler. Check if one is available, and if
5051 # necessary, set CXX_DIALECT to some -std=xxx switch.
5053 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5055 ac_cpp='$CXXCPP $CPPFLAGS'
5056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5062 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5063 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5064 $as_echo_n "(cached) " >&6
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5070 // If the compiler admits that it is not ready for C++11, why torture it?
5071 // Hopefully, this will speed up the test.
5075 #error "This is not a C++ compiler"
5077 #elif __cplusplus < 201103L
5079 #error "This is not a C++11 compiler"
5086 namespace test_static_assert
5089 template <typename T>
5092 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5097 namespace test_final_override
5105 struct Derived : public Base
5107 virtual void f() override {}
5112 namespace test_double_right_angle_brackets
5115 template < typename T >
5118 typedef check<void> single_type;
5119 typedef check<check<void>> double_type;
5120 typedef check<check<check<void>>> triple_type;
5121 typedef check<check<check<check<void>>>> quadruple_type;
5125 namespace test_decltype
5138 namespace test_type_deduction
5141 template < typename T1, typename T2 >
5144 static const bool value = false;
5147 template < typename T >
5148 struct is_same<T, T>
5150 static const bool value = true;
5153 template < typename T1, typename T2 >
5155 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5161 test(const int c, volatile int v)
5163 static_assert(is_same<int, decltype(0)>::value == true, "");
5164 static_assert(is_same<int, decltype(c)>::value == false, "");
5165 static_assert(is_same<int, decltype(v)>::value == false, "");
5168 auto sumi = ac + av + 'x';
5169 auto sumf = ac + av + 1.0;
5170 static_assert(is_same<int, decltype(ac)>::value == true, "");
5171 static_assert(is_same<int, decltype(av)>::value == true, "");
5172 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5173 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5174 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5175 return (sumf > 0.0) ? sumi : add(c, v);
5180 namespace test_noexcept
5183 int f() { return 0; }
5184 int g() noexcept { return 0; }
5186 static_assert(noexcept(f()) == false, "");
5187 static_assert(noexcept(g()) == true, "");
5191 namespace test_constexpr
5194 template < typename CharT >
5195 unsigned long constexpr
5196 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5198 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5201 template < typename CharT >
5202 unsigned long constexpr
5203 strlen_c(const CharT *const s) noexcept
5205 return strlen_c_r(s, 0UL);
5208 static_assert(strlen_c("") == 0UL, "");
5209 static_assert(strlen_c("1") == 1UL, "");
5210 static_assert(strlen_c("example") == 7UL, "");
5211 static_assert(strlen_c("another\0example") == 7UL, "");
5215 namespace test_rvalue_references
5221 static constexpr int value = N;
5224 answer<1> f(int&) { return answer<1>(); }
5225 answer<2> f(const int&) { return answer<2>(); }
5226 answer<3> f(int&&) { return answer<3>(); }
5233 static_assert(decltype(f(i))::value == 1, "");
5234 static_assert(decltype(f(c))::value == 2, "");
5235 static_assert(decltype(f(0))::value == 3, "");
5240 namespace test_uniform_initialization
5245 static const int zero {};
5246 static const int one {1};
5249 static_assert(test::zero == 0, "");
5250 static_assert(test::one == 1, "");
5254 namespace test_lambdas
5260 auto lambda1 = [](){};
5261 auto lambda2 = lambda1;
5269 auto a = [](int i, int j){ return i + j; }(1, 2);
5270 auto b = []() -> int { return '0'; }();
5271 auto c = [=](){ return a + b; }();
5272 auto d = [&](){ return c; }();
5273 auto e = [a, &b](int x) mutable {
5274 const auto identity = [](int y){ return y; };
5275 for (auto i = 0; i < a; ++i)
5277 return x + identity(a + b);
5279 return a + b + c + d + e;
5285 const auto nullary = [](){ return 0; };
5286 const auto unary = [](int x){ return x; };
5287 using nullary_t = decltype(nullary);
5288 using unary_t = decltype(unary);
5289 const auto higher1st = [](nullary_t f){ return f(); };
5290 const auto higher2nd = [unary](nullary_t f1){
5291 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5293 return higher1st(nullary) + higher2nd(nullary)(unary);
5298 namespace test_variadic_templates
5304 template <int N0, int... N1toN>
5305 struct sum<N0, N1toN...>
5307 static constexpr auto value = N0 + sum<N1toN...>::value;
5313 static constexpr auto value = 0;
5316 static_assert(sum<>::value == 0, "");
5317 static_assert(sum<1>::value == 1, "");
5318 static_assert(sum<23>::value == 23, "");
5319 static_assert(sum<1, 2>::value == 3, "");
5320 static_assert(sum<5, 5, 11>::value == 21, "");
5321 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5325 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5326 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5328 namespace test_template_alias_sfinae
5333 template<typename T>
5334 using member = typename T::member_type;
5336 template<typename T>
5339 template<typename T>
5340 void func(member<T>*) {}
5344 void test() { func<foo>(0); }
5348 } // namespace cxx11
5350 #endif // __cplusplus >= 201103L
5355 if ac_fn_cxx_try_compile "$LINENO"; then :
5356 ax_cv_cxx_compile_cxx11=yes
5358 ax_cv_cxx_compile_cxx11=no
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5363 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5364 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5368 if test x$ac_success = xno; then
5369 for alternative in ${ax_cxx_compile_alternatives}; do
5370 switch="-std=gnu++${alternative}"
5371 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5373 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5374 if eval \${$cachevar+:} false; then :
5375 $as_echo_n "(cached) " >&6
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5383 // If the compiler admits that it is not ready for C++11, why torture it?
5384 // Hopefully, this will speed up the test.
5388 #error "This is not a C++ compiler"
5390 #elif __cplusplus < 201103L
5392 #error "This is not a C++11 compiler"
5399 namespace test_static_assert
5402 template <typename T>
5405 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5410 namespace test_final_override
5418 struct Derived : public Base
5420 virtual void f() override {}
5425 namespace test_double_right_angle_brackets
5428 template < typename T >
5431 typedef check<void> single_type;
5432 typedef check<check<void>> double_type;
5433 typedef check<check<check<void>>> triple_type;
5434 typedef check<check<check<check<void>>>> quadruple_type;
5438 namespace test_decltype
5451 namespace test_type_deduction
5454 template < typename T1, typename T2 >
5457 static const bool value = false;
5460 template < typename T >
5461 struct is_same<T, T>
5463 static const bool value = true;
5466 template < typename T1, typename T2 >
5468 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5474 test(const int c, volatile int v)
5476 static_assert(is_same<int, decltype(0)>::value == true, "");
5477 static_assert(is_same<int, decltype(c)>::value == false, "");
5478 static_assert(is_same<int, decltype(v)>::value == false, "");
5481 auto sumi = ac + av + 'x';
5482 auto sumf = ac + av + 1.0;
5483 static_assert(is_same<int, decltype(ac)>::value == true, "");
5484 static_assert(is_same<int, decltype(av)>::value == true, "");
5485 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5486 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5487 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5488 return (sumf > 0.0) ? sumi : add(c, v);
5493 namespace test_noexcept
5496 int f() { return 0; }
5497 int g() noexcept { return 0; }
5499 static_assert(noexcept(f()) == false, "");
5500 static_assert(noexcept(g()) == true, "");
5504 namespace test_constexpr
5507 template < typename CharT >
5508 unsigned long constexpr
5509 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5511 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5514 template < typename CharT >
5515 unsigned long constexpr
5516 strlen_c(const CharT *const s) noexcept
5518 return strlen_c_r(s, 0UL);
5521 static_assert(strlen_c("") == 0UL, "");
5522 static_assert(strlen_c("1") == 1UL, "");
5523 static_assert(strlen_c("example") == 7UL, "");
5524 static_assert(strlen_c("another\0example") == 7UL, "");
5528 namespace test_rvalue_references
5534 static constexpr int value = N;
5537 answer<1> f(int&) { return answer<1>(); }
5538 answer<2> f(const int&) { return answer<2>(); }
5539 answer<3> f(int&&) { return answer<3>(); }
5546 static_assert(decltype(f(i))::value == 1, "");
5547 static_assert(decltype(f(c))::value == 2, "");
5548 static_assert(decltype(f(0))::value == 3, "");
5553 namespace test_uniform_initialization
5558 static const int zero {};
5559 static const int one {1};
5562 static_assert(test::zero == 0, "");
5563 static_assert(test::one == 1, "");
5567 namespace test_lambdas
5573 auto lambda1 = [](){};
5574 auto lambda2 = lambda1;
5582 auto a = [](int i, int j){ return i + j; }(1, 2);
5583 auto b = []() -> int { return '0'; }();
5584 auto c = [=](){ return a + b; }();
5585 auto d = [&](){ return c; }();
5586 auto e = [a, &b](int x) mutable {
5587 const auto identity = [](int y){ return y; };
5588 for (auto i = 0; i < a; ++i)
5590 return x + identity(a + b);
5592 return a + b + c + d + e;
5598 const auto nullary = [](){ return 0; };
5599 const auto unary = [](int x){ return x; };
5600 using nullary_t = decltype(nullary);
5601 using unary_t = decltype(unary);
5602 const auto higher1st = [](nullary_t f){ return f(); };
5603 const auto higher2nd = [unary](nullary_t f1){
5604 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5606 return higher1st(nullary) + higher2nd(nullary)(unary);
5611 namespace test_variadic_templates
5617 template <int N0, int... N1toN>
5618 struct sum<N0, N1toN...>
5620 static constexpr auto value = N0 + sum<N1toN...>::value;
5626 static constexpr auto value = 0;
5629 static_assert(sum<>::value == 0, "");
5630 static_assert(sum<1>::value == 1, "");
5631 static_assert(sum<23>::value == 23, "");
5632 static_assert(sum<1, 2>::value == 3, "");
5633 static_assert(sum<5, 5, 11>::value == 21, "");
5634 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5638 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5639 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5641 namespace test_template_alias_sfinae
5646 template<typename T>
5647 using member = typename T::member_type;
5649 template<typename T>
5652 template<typename T>
5653 void func(member<T>*) {}
5657 void test() { func<foo>(0); }
5661 } // namespace cxx11
5663 #endif // __cplusplus >= 201103L
5668 if ac_fn_cxx_try_compile "$LINENO"; then :
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 eval ac_res=\$$cachevar
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5678 $as_echo "$ac_res" >&6; }
5679 if eval test x\$$cachevar = xyes; then
5680 CXX_DIALECT="$switch"
5687 if test x$ac_success = xno; then
5688 for alternative in ${ax_cxx_compile_alternatives}; do
5689 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5690 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5692 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5693 if eval \${$cachevar+:} false; then :
5694 $as_echo_n "(cached) " >&6
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5702 // If the compiler admits that it is not ready for C++11, why torture it?
5703 // Hopefully, this will speed up the test.
5707 #error "This is not a C++ compiler"
5709 #elif __cplusplus < 201103L
5711 #error "This is not a C++11 compiler"
5718 namespace test_static_assert
5721 template <typename T>
5724 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5729 namespace test_final_override
5737 struct Derived : public Base
5739 virtual void f() override {}
5744 namespace test_double_right_angle_brackets
5747 template < typename T >
5750 typedef check<void> single_type;
5751 typedef check<check<void>> double_type;
5752 typedef check<check<check<void>>> triple_type;
5753 typedef check<check<check<check<void>>>> quadruple_type;
5757 namespace test_decltype
5770 namespace test_type_deduction
5773 template < typename T1, typename T2 >
5776 static const bool value = false;
5779 template < typename T >
5780 struct is_same<T, T>
5782 static const bool value = true;
5785 template < typename T1, typename T2 >
5787 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5793 test(const int c, volatile int v)
5795 static_assert(is_same<int, decltype(0)>::value == true, "");
5796 static_assert(is_same<int, decltype(c)>::value == false, "");
5797 static_assert(is_same<int, decltype(v)>::value == false, "");
5800 auto sumi = ac + av + 'x';
5801 auto sumf = ac + av + 1.0;
5802 static_assert(is_same<int, decltype(ac)>::value == true, "");
5803 static_assert(is_same<int, decltype(av)>::value == true, "");
5804 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5805 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5806 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5807 return (sumf > 0.0) ? sumi : add(c, v);
5812 namespace test_noexcept
5815 int f() { return 0; }
5816 int g() noexcept { return 0; }
5818 static_assert(noexcept(f()) == false, "");
5819 static_assert(noexcept(g()) == true, "");
5823 namespace test_constexpr
5826 template < typename CharT >
5827 unsigned long constexpr
5828 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5830 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5833 template < typename CharT >
5834 unsigned long constexpr
5835 strlen_c(const CharT *const s) noexcept
5837 return strlen_c_r(s, 0UL);
5840 static_assert(strlen_c("") == 0UL, "");
5841 static_assert(strlen_c("1") == 1UL, "");
5842 static_assert(strlen_c("example") == 7UL, "");
5843 static_assert(strlen_c("another\0example") == 7UL, "");
5847 namespace test_rvalue_references
5853 static constexpr int value = N;
5856 answer<1> f(int&) { return answer<1>(); }
5857 answer<2> f(const int&) { return answer<2>(); }
5858 answer<3> f(int&&) { return answer<3>(); }
5865 static_assert(decltype(f(i))::value == 1, "");
5866 static_assert(decltype(f(c))::value == 2, "");
5867 static_assert(decltype(f(0))::value == 3, "");
5872 namespace test_uniform_initialization
5877 static const int zero {};
5878 static const int one {1};
5881 static_assert(test::zero == 0, "");
5882 static_assert(test::one == 1, "");
5886 namespace test_lambdas
5892 auto lambda1 = [](){};
5893 auto lambda2 = lambda1;
5901 auto a = [](int i, int j){ return i + j; }(1, 2);
5902 auto b = []() -> int { return '0'; }();
5903 auto c = [=](){ return a + b; }();
5904 auto d = [&](){ return c; }();
5905 auto e = [a, &b](int x) mutable {
5906 const auto identity = [](int y){ return y; };
5907 for (auto i = 0; i < a; ++i)
5909 return x + identity(a + b);
5911 return a + b + c + d + e;
5917 const auto nullary = [](){ return 0; };
5918 const auto unary = [](int x){ return x; };
5919 using nullary_t = decltype(nullary);
5920 using unary_t = decltype(unary);
5921 const auto higher1st = [](nullary_t f){ return f(); };
5922 const auto higher2nd = [unary](nullary_t f1){
5923 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5925 return higher1st(nullary) + higher2nd(nullary)(unary);
5930 namespace test_variadic_templates
5936 template <int N0, int... N1toN>
5937 struct sum<N0, N1toN...>
5939 static constexpr auto value = N0 + sum<N1toN...>::value;
5945 static constexpr auto value = 0;
5948 static_assert(sum<>::value == 0, "");
5949 static_assert(sum<1>::value == 1, "");
5950 static_assert(sum<23>::value == 23, "");
5951 static_assert(sum<1, 2>::value == 3, "");
5952 static_assert(sum<5, 5, 11>::value == 21, "");
5953 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5957 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5958 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5960 namespace test_template_alias_sfinae
5965 template<typename T>
5966 using member = typename T::member_type;
5968 template<typename T>
5971 template<typename T>
5972 void func(member<T>*) {}
5976 void test() { func<foo>(0); }
5980 } // namespace cxx11
5982 #endif // __cplusplus >= 201103L
5987 if ac_fn_cxx_try_compile "$LINENO"; then :
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 eval ac_res=\$$cachevar
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5997 $as_echo "$ac_res" >&6; }
5998 if eval test x\$$cachevar = xyes; then
5999 CXX_DIALECT="$switch"
6004 if test x$ac_success = xyes; then
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6015 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6016 if test x$ac_success = xno; then
6017 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6020 if test x$ac_success = xno; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6023 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6027 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6034 # Dependency checking.
6035 rm -rf .tst 2>/dev/null
6036 mkdir .tst 2>/dev/null
6037 if test -d .tst; then
6042 rmdir .tst 2>/dev/null
6044 DEPDIR="${am__leading_dot}deps"
6046 ac_config_commands="$ac_config_commands depdir"
6049 depcc="$CC" am_compiler_list=
6051 am_depcomp=$ac_aux_dir/depcomp
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6053 $as_echo_n "checking dependency style of $depcc... " >&6; }
6054 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6055 $as_echo_n "(cached) " >&6
6057 if test -f "$am_depcomp"; then
6058 # We make a subdir and do the tests there. Otherwise we can end up
6059 # making bogus files that we don't know about and never remove. For
6060 # instance it was reported that on HP-UX the gcc test will end up
6061 # making a dummy file named `D' -- because `-MD' means `put the output
6064 # Copy depcomp to subdir because otherwise we won't find it if we're
6065 # using a relative directory.
6066 cp "$am_depcomp" conftest.dir
6068 # We will build objects and dependencies in a subdirectory because
6069 # it helps to detect inapplicable dependency modes. For instance
6070 # both Tru64's cc and ICC support -MD to output dependencies as a
6071 # side effect of compilation, but ICC will put the dependencies in
6072 # the current directory while Tru64 will put them in the object
6076 am_cv_CC_dependencies_compiler_type=none
6077 if test "$am_compiler_list" = ""; then
6078 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6080 for depmode in $am_compiler_list; do
6081 if test $depmode = none; then break; fi
6083 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6084 # Setup a source with many dependencies, because some compilers
6085 # like to wrap large dependency lists on column 80 (with \), and
6086 # we should not choose a depcomp mode which is confused by this.
6088 # We need to recreate these files for each test, as the compiler may
6089 # overwrite some of them when testing with obscure command lines.
6090 # This happens at least with the AIX C compiler.
6092 for i in 1 2 3 4 5 6; do
6093 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6094 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6095 # Solaris 8's {/usr,}/bin/sh.
6096 touch sub/conftst$i.h
6098 echo "include sub/conftest.Po" > confmf
6100 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6101 # mode. It turns out that the SunPro C++ compiler does not properly
6102 # handle `-M -o', and we need to detect this.
6103 depcmd="depmode=$depmode \
6104 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6105 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6106 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6107 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6108 if env $depcmd > conftest.err 2>&1 &&
6109 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6110 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6111 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6112 # icc doesn't choke on unknown options, it will just issue warnings
6113 # or remarks (even with -Werror). So we grep stderr for any message
6114 # that says an option was ignored or not supported.
6115 # When given -MP, icc 7.0 and 7.1 complain thusly:
6116 # icc: Command line warning: ignoring option '-M'; no argument required
6117 # The diagnosis changed in icc 8.0:
6118 # icc: Command line remark: option '-MP' not supported
6119 if (grep 'ignoring option' conftest.err ||
6120 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6121 am_cv_CC_dependencies_compiler_type=$depmode
6122 $as_echo "$as_me:$LINENO: success" >&5
6126 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6127 sed -e 's/^/| /' < conftest.err >&5
6133 am_cv_CC_dependencies_compiler_type=none
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6138 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6139 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
6140 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6141 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6146 gnulib_extra_configure_args=
6147 # If large-file support is disabled, make sure gnulib does the same.
6148 if test "$enable_largefile" = no; then
6149 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
6152 # Configure gnulib. We need to build gnulib under some other
6153 # directory not "gnulib", to avoid the problem of both GDB and
6154 # GDBserver wanting to build it in the same directory, when building
6155 # in the source dir.
6158 in_build="build-gnulib"
6159 in_extra_args="$gnulib_extra_configure_args"
6161 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6162 # so they do not pile up.
6163 ac_sub_configure_args=
6165 eval "set x $ac_configure_args"
6169 if test -n "$ac_prev"; then
6174 -cache-file | --cache-file | --cache-fil | --cache-fi \
6175 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6176 ac_prev=cache_file ;;
6177 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6178 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6181 --config-cache | -C)
6183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6191 --disable-option-checking)
6195 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6197 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
6201 # Always prepend --prefix to ensure using the same prefix
6202 # in subdir configurations.
6203 ac_arg="--prefix=$prefix"
6205 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6207 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
6210 if test "$silent" = yes; then
6211 ac_sub_configure_args="--silent $ac_sub_configure_args"
6214 # Always prepend --disable-option-checking to silence warnings, since
6215 # different subdirs can have different --enable and --with options.
6216 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
6221 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6223 $as_echo "$ac_msg" >&6
6224 as_dir="$ac_dir"; as_fn_mkdir_p
6228 ac_srcdir=$srcdir/$in_src ;;
6230 ac_srcdir=../$srcdir/$in_src ;;
6235 ac_sub_configure=$ac_srcdir/configure
6237 # Make the cache file name correct relative to the subdirectory.
6239 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6241 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
6244 if test -n "$in_extra_args"; then
6245 # Add the extra args at the end.
6246 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
6249 { $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
6250 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6251 # The eval makes quoting arguments work.
6252 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6253 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6254 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6270 # If we haven't got the data from the intl directory,
6271 # assume NLS is disabled.
6280 if test -f ../intl/config.intl; then
6281 . ../intl/config.intl
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6284 $as_echo_n "checking whether NLS is requested... " >&6; }
6285 if test x"$USE_NLS" != xyes; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6290 $as_echo "yes" >&6; }
6292 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6296 $as_echo_n "checking for catalogs to be installed... " >&6; }
6297 # Look for .po and .gmo files in the source directory.
6300 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6301 # If there aren't any .gmo files the shell will give us the
6302 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6304 case "$cat" in *\**)
6307 # The quadruple backslash is collapsed to a double backslash
6308 # by the backticks, then collapsed again by the double quotes,
6309 # leaving us with one backslash in the sed expression (right
6310 # before the dot that mustn't act as a wildcard).
6311 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6312 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6313 # The user is allowed to set LINGUAS to a list of languages to
6314 # install catalogs for. If it's empty that means "all of them."
6315 if test "x$LINGUAS" = x; then
6316 CATALOGS="$CATALOGS $cat"
6317 XLINGUAS="$XLINGUAS $lang"
6319 case "$LINGUAS" in *$lang*)
6320 CATALOGS="$CATALOGS $cat"
6321 XLINGUAS="$XLINGUAS $lang"
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6328 $as_echo "$LINGUAS" >&6; }
6341 localedir='${datadir}/locale'
6344 if test x"$USE_NLS" = xyes; then
6345 CONFIG_ALL="$CONFIG_ALL all-po"
6346 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
6347 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
6348 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
6351 GNULIB=build-gnulib/import
6353 # For Makefile dependencies.
6355 if test x"$STDINT_H" != x; then
6356 GNULIB_STDINT_H=$GNULIB/$STDINT_H
6362 cat >>confdefs.h <<_ACEOF
6363 #define PACKAGE "$PACKAGE"
6368 # We never need to detect it in this sub-configure.
6369 # But preserve it for config.status --recheck.
6373 MAKEINFO_EXTRA_FLAGS=""
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6375 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6376 if ${gdb_cv_have_makeinfo_click+:} false; then :
6377 $as_echo_n "(cached) " >&6
6379 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6380 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6381 gdb_cv_have_makeinfo_click=yes
6383 gdb_cv_have_makeinfo_click=no
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6387 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6388 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
6389 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6395 # Check whether --with-separate-debug-dir was given.
6396 if test "${with_separate_debug_dir+set}" = set; then :
6397 withval=$with_separate_debug_dir;
6400 DEBUGDIR=${libdir}/debug
6404 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6406 ac_define_dir=`eval echo $DEBUGDIR`
6407 ac_define_dir=`eval echo $ac_define_dir`
6409 cat >>confdefs.h <<_ACEOF
6410 #define DEBUGDIR "$ac_define_dir"
6416 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6417 if test "x$prefix" = xNONE; then
6418 test_prefix=/usr/local
6423 test_prefix=$exec_prefix
6426 case ${ac_define_dir} in
6427 "${test_prefix}"|"${test_prefix}/"*|\
6428 '${exec_prefix}'|'${exec_prefix}/'*)
6433 cat >>confdefs.h <<_ACEOF
6434 #define DEBUGDIR_RELOCATABLE $value
6440 # We can't pass paths as command line arguments.
6441 # Mingw32 tries to be clever and will convert the paths for us.
6442 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6443 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6444 # This breaks GDB's relocatable path conversions since paths passed in
6445 # config.h would not get so translated, the path prefixes no longer match.
6447 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6449 ac_define_dir=`eval echo $bindir`
6450 ac_define_dir=`eval echo $ac_define_dir`
6452 cat >>confdefs.h <<_ACEOF
6453 #define BINDIR "$ac_define_dir"
6458 # GDB's datadir relocation
6462 # Check whether --with-gdb-datadir was given.
6463 if test "${with_gdb_datadir+set}" = set; then :
6464 withval=$with_gdb_datadir;
6465 GDB_DATADIR=$withval
6467 GDB_DATADIR=${datadir}/gdb
6471 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6473 ac_define_dir=`eval echo $GDB_DATADIR`
6474 ac_define_dir=`eval echo $ac_define_dir`
6476 cat >>confdefs.h <<_ACEOF
6477 #define GDB_DATADIR "$ac_define_dir"
6483 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6484 if test "x$prefix" = xNONE; then
6485 test_prefix=/usr/local
6490 test_prefix=$exec_prefix
6493 case ${ac_define_dir} in
6494 "${test_prefix}"|"${test_prefix}/"*|\
6495 '${exec_prefix}'|'${exec_prefix}/'*)
6500 cat >>confdefs.h <<_ACEOF
6501 #define GDB_DATADIR_RELOCATABLE $value
6508 # Check whether --with-relocated-sources was given.
6509 if test "${with_relocated_sources+set}" = set; then :
6510 withval=$with_relocated_sources; reloc_srcdir="${withval}"
6512 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6513 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6514 ac_define_dir=`eval echo $reloc_srcdir`
6515 ac_define_dir=`eval echo $ac_define_dir`
6517 cat >>confdefs.h <<_ACEOF
6518 #define RELOC_SRCDIR "$ac_define_dir"
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6527 $as_echo_n "checking for default auto-load directory... " >&6; }
6529 # Check whether --with-auto-load-dir was given.
6530 if test "${with_auto_load_dir+set}" = set; then :
6531 withval=$with_auto_load_dir;
6533 with_auto_load_dir='$debugdir:$datadir/auto-load'
6536 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6538 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6540 ac_define_dir=`eval echo $escape_dir`
6541 ac_define_dir=`eval echo $ac_define_dir`
6543 cat >>confdefs.h <<_ACEOF
6544 #define AUTO_LOAD_DIR "$ac_define_dir"
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6549 $as_echo "$with_auto_load_dir" >&6; }
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6552 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6554 # Check whether --with-auto-load-safe-path was given.
6555 if test "${with_auto_load_safe_path+set}" = set; then :
6556 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6557 with_auto_load_safe_path="/"
6560 with_auto_load_safe_path="$with_auto_load_dir"
6563 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6565 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6567 ac_define_dir=`eval echo $escape_dir`
6568 ac_define_dir=`eval echo $ac_define_dir`
6570 cat >>confdefs.h <<_ACEOF
6571 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6576 $as_echo "$with_auto_load_safe_path" >&6; }
6580 subdirs="$subdirs testsuite"
6583 # Check whether to support alternative target configurations
6584 # Check whether --enable-targets was given.
6585 if test "${enable_targets+set}" = set; then :
6586 enableval=$enable_targets; case "${enableval}" in
6587 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6589 no) enable_targets= ;;
6590 *) enable_targets=$enableval ;;
6595 # Check whether to enable 64-bit support on 32-bit hosts
6596 # Check whether --enable-64-bit-bfd was given.
6597 if test "${enable_64_bit_bfd+set}" = set; then :
6598 enableval=$enable_64_bit_bfd; case "${enableval}" in
6601 *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6607 # Provide defaults for some variables set by the per-host and per-target
6609 gdb_host_obs=posix-hdep.o
6611 if test "${target}" = "${host}"; then
6617 . $srcdir/configure.host
6619 # Add in the common host objects.
6620 . $srcdir/common/common.host
6621 gdb_host_obs="$gdb_host_obs $common_host_obs"
6623 # Accumulate some settings from configure.tgt over all enabled targets
6627 HAVE_NATIVE_GCORE_TARGET=
6629 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6631 if test "$targ_alias" = "all"; then
6634 # Canonicalize the secondary target names.
6635 result=`$ac_config_sub $targ_alias 2>/dev/null`
6636 if test -n "$result"; then
6642 . ${srcdir}/configure.tgt
6644 if test -z "${gdb_target_obs}"; then :
6645 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
6648 # Target-specific object files
6649 for i in ${gdb_target_obs}; do
6650 case " $TARGET_OBS " in
6653 TARGET_OBS="$TARGET_OBS ${i}"
6658 # Check whether this target needs 64-bit CORE_ADDR
6659 if test x${want64} = xfalse; then
6660 . ${srcdir}/../bfd/config.bfd
6663 # Check whether this target is native and supports gcore.
6664 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6665 && $gdb_have_gcore; then
6666 HAVE_NATIVE_GCORE_TARGET=1
6671 if test x${all_targets} = xtrue; then
6673 # We want all 64-bit targets if we either:
6674 # - run on a 64-bit host or
6675 # - already require 64-bit support for some other target or
6676 # - the --enable-64-bit-bfd option was supplied
6677 # Otherwise we only support all 32-bit targets.
6679 # NOTE: This test must be in sync with the corresponding
6682 if test x${want64} = xfalse; then
6683 # The cast to long int works around a bug in the HP C Compiler
6684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6686 # This bug is HP SR number 8606223364.
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6688 $as_echo_n "checking size of long... " >&6; }
6689 if ${ac_cv_sizeof_long+:} false; then :
6690 $as_echo_n "(cached) " >&6
6692 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6695 if test "$ac_cv_type_long" = yes; then
6696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6698 as_fn_error 77 "cannot compute sizeof (long)
6699 See \`config.log' for more details" "$LINENO" 5; }
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6707 $as_echo "$ac_cv_sizeof_long" >&6; }
6711 cat >>confdefs.h <<_ACEOF
6712 #define SIZEOF_LONG $ac_cv_sizeof_long
6716 if test "x${ac_cv_sizeof_long}" = "x8"; then
6720 if test x${want64} = xtrue; then
6721 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6723 TARGET_OBS='$(ALL_TARGET_OBS)'
6730 # For other settings, only the main target counts.
6734 targ=$target; . ${srcdir}/configure.tgt
6736 # Fetch the default architecture and default target vector from BFD.
6737 targ=$target; . $srcdir/../bfd/config.bfd
6739 # We only want the first architecture, so strip off the others if
6740 # there is more than one.
6741 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6743 if test "x$targ_archs" != x; then
6745 cat >>confdefs.h <<_ACEOF
6746 #define DEFAULT_BFD_ARCH $targ_archs
6750 if test "x$targ_defvec" != x; then
6752 cat >>confdefs.h <<_ACEOF
6753 #define DEFAULT_BFD_VEC $targ_defvec
6758 # The CLI cannot be disabled yet, but may be in the future.
6761 # Check whether --enable-gdbcli was given.
6762 if test "${enable_gdbcli+set}" = set; then :
6763 enableval=$enable_gdbcli; case $enableval in
6767 as_fn_error $? "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
6769 as_fn_error $? "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
6775 if test x"$enable_gdbcli" = xyes; then
6776 if test -d $srcdir/cli; then
6777 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6778 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6779 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6780 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6785 # Check whether --enable-gdbmi was given.
6786 if test "${enable_gdbmi+set}" = set; then :
6787 enableval=$enable_gdbmi; case $enableval in
6791 as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6797 if test x"$enable_gdbmi" = xyes; then
6798 if test -d $srcdir/mi; then
6799 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6800 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6801 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6802 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6807 # Check whether --enable-tui was given.
6808 if test "${enable_tui+set}" = set; then :
6809 enableval=$enable_tui; case $enableval in
6813 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6821 # Check whether --enable-gdbtk was given.
6822 if test "${enable_gdbtk+set}" = set; then :
6823 enableval=$enable_gdbtk; case $enableval in
6827 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6830 if test -d $srcdir/gdbtk; then
6837 # We unconditionally disable gdbtk tests on selected platforms.
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6841 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6845 # Libunwind support for ia64.
6848 # Check whether --with-libunwind-ia64 was given.
6849 if test "${with_libunwind_ia64+set}" = set; then :
6850 withval=$with_libunwind_ia64;
6852 with_libunwind_ia64=auto
6856 # Backward compatibility option.
6857 if test "${with_libunwind+set}" = set; then
6858 if test x"$with_libunwind_ia64" != xauto; then
6859 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6862 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6863 with_libunwind_ia64="$with_libunwind"
6866 case "$with_libunwind_ia64" in
6870 for ac_header in libunwind-ia64.h
6872 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6873 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
6874 cat >>confdefs.h <<_ACEOF
6875 #define HAVE_LIBUNWIND_IA64_H 1
6882 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
6885 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6889 if test x"$with_libunwind_ia64" = xyes; then
6890 for ac_header in libunwind-ia64.h
6892 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6893 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
6894 cat >>confdefs.h <<_ACEOF
6895 #define HAVE_LIBUNWIND_IA64_H 1
6902 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
6903 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6905 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
6906 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
6907 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
6912 # Check whether --with-curses was given.
6913 if test "${with_curses+set}" = set; then :
6914 withval=$with_curses; opt_curses=$withval
6919 if test "$opt_curses" = "yes"; then
6923 # Profiling support.
6924 # Check whether --enable-profiling was given.
6925 if test "${enable_profiling+set}" = set; then :
6926 enableval=$enable_profiling; case $enableval in
6930 as_fn_error $? "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6937 for ac_func in monstartup _mcleanup
6939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6941 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6942 cat >>confdefs.h <<_ACEOF
6943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6950 $as_echo_n "checking for _etext... " >&6; }
6951 if ${ac_cv_var__etext+:} false; then :
6952 $as_echo_n "(cached) " >&6
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6967 if ac_fn_c_try_link "$LINENO"; then :
6968 ac_cv_var__etext=yes
6972 rm -f core conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6976 $as_echo "$ac_cv_var__etext" >&6; }
6977 if test $ac_cv_var__etext = yes; then
6979 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6983 $as_echo_n "checking for etext... " >&6; }
6984 if ${ac_cv_var_etext+:} false; then :
6985 $as_echo_n "(cached) " >&6
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
7000 if ac_fn_c_try_link "$LINENO"; then :
7005 rm -f core conftest.err conftest.$ac_objext \
7006 conftest$ac_exeext conftest.$ac_ext
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7009 $as_echo "$ac_cv_var_etext" >&6; }
7010 if test $ac_cv_var_etext = yes; then
7012 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7015 if test "$enable_profiling" = yes ; then
7016 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
7017 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7020 OLD_CFLAGS="$CFLAGS"
7021 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7024 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7025 if ${ac_cv_cc_supports_pg+:} false; then :
7026 $as_echo_n "(cached) " >&6
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7039 if ac_fn_c_try_compile "$LINENO"; then :
7040 ac_cv_cc_supports_pg=yes
7042 ac_cv_cc_supports_pg=no
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7047 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7049 if test $ac_cv_cc_supports_pg = no; then
7050 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7053 CFLAGS="$OLD_CFLAGS"
7057 # Check whether --enable-codesign was given.
7058 if test "${enable_codesign+set}" = set; then :
7059 enableval=$enable_codesign; CODESIGN_CERT=$enableval
7066 # Check whether --with-pkgversion was given.
7067 if test "${with_pkgversion+set}" = set; then :
7068 withval=$with_pkgversion; case "$withval" in
7069 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7071 *) PKGVERSION="($withval) " ;;
7082 # Check whether --with-bugurl was given.
7083 if test "${with_bugurl+set}" = set; then :
7084 withval=$with_bugurl; case "$withval" in
7085 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7088 *) BUGURL="$withval"
7092 BUGURL="http://www.gnu.org/software/gdb/bugs/"
7102 REPORT_BUGS_TO="<$BUGURL>"
7103 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7110 cat >>confdefs.h <<_ACEOF
7111 #define PKGVERSION "$PKGVERSION"
7115 cat >>confdefs.h <<_ACEOF
7116 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7120 # --------------------- #
7121 # Checks for programs. #
7122 # --------------------- #
7124 for ac_prog in gawk mawk nawk awk
7126 # Extract the first word of "$ac_prog", so it can be a program name with args.
7127 set dummy $ac_prog; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_AWK+:} false; then :
7131 $as_echo_n "(cached) " >&6
7133 if test -n "$AWK"; then
7134 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143 ac_cv_prog_AWK="$ac_prog"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 if test -n "$AWK"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7156 $as_echo "$AWK" >&6; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7163 test -n "$AWK" && break
7166 # Find a good install program. We prefer a C program (faster),
7167 # so one script is as good as another. But avoid the broken or
7168 # incompatible versions:
7169 # SysV /etc/install, /usr/sbin/install
7170 # SunOS /usr/etc/install
7171 # IRIX /sbin/install
7173 # AmigaOS /C/install, which installs bootblocks on floppy discs
7174 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7175 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7176 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7177 # OS/2's system install, which has a completely different semantic
7178 # ./install, which can be erroneously created by make from ./install.sh.
7179 # Reject install programs that cannot install multiple files.
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7181 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7182 if test -z "$INSTALL"; then
7183 if ${ac_cv_path_install+:} false; then :
7184 $as_echo_n "(cached) " >&6
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 test -z "$as_dir" && as_dir=.
7191 # Account for people who put trailing slashes in PATH elements.
7192 case $as_dir/ in #((
7193 ./ | .// | /[cC]/* | \
7194 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7195 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7198 # OSF1 and SCO ODT 3.0 have their own names for install.
7199 # Don't use installbsd from OSF since it installs stuff as root
7201 for ac_prog in ginstall scoinst install; do
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7204 if test $ac_prog = install &&
7205 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7206 # AIX install. It has an incompatible calling convention.
7208 elif test $ac_prog = install &&
7209 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7210 # program-specific install script used by HP pwplus--don't use.
7213 rm -rf conftest.one conftest.two conftest.dir
7214 echo one > conftest.one
7215 echo two > conftest.two
7217 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7218 test -s conftest.one && test -s conftest.two &&
7219 test -s conftest.dir/conftest.one &&
7220 test -s conftest.dir/conftest.two
7222 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7235 rm -rf conftest.one conftest.two conftest.dir
7238 if test "${ac_cv_path_install+set}" = set; then
7239 INSTALL=$ac_cv_path_install
7241 # As a last resort, use the slow shell script. Don't cache a
7242 # value for INSTALL within a source directory, because that will
7243 # break other packages using the cache if that directory is
7244 # removed, or if the value is a relative name.
7245 INSTALL=$ac_install_sh
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7249 $as_echo "$INSTALL" >&6; }
7251 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7252 # It thinks the first close brace ends the variable substitution.
7253 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7255 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7257 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7260 $as_echo_n "checking whether ln -s works... " >&6; }
7262 if test "$LN_S" = "ln -s"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7264 $as_echo "yes" >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7267 $as_echo "no, using $LN_S" >&6; }
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_RANLIB+:} false; then :
7276 $as_echo_n "(cached) " >&6
7278 if test -n "$RANLIB"; then
7279 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 RANLIB=$ac_cv_prog_RANLIB
7299 if test -n "$RANLIB"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7301 $as_echo "$RANLIB" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7309 if test -z "$ac_cv_prog_RANLIB"; then
7310 ac_ct_RANLIB=$RANLIB
7311 # Extract the first word of "ranlib", so it can be a program name with args.
7312 set dummy ranlib; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7316 $as_echo_n "(cached) " >&6
7318 if test -n "$ac_ct_RANLIB"; then
7319 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_ac_ct_RANLIB="ranlib"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7339 if test -n "$ac_ct_RANLIB"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7341 $as_echo "$ac_ct_RANLIB" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7347 if test "x$ac_ct_RANLIB" = x; then
7350 case $cross_compiling:$ac_tool_warned in
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354 ac_tool_warned=yes ;;
7356 RANLIB=$ac_ct_RANLIB
7359 RANLIB="$ac_cv_prog_RANLIB"
7362 for ac_prog in 'bison -y' byacc
7364 # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_YACC+:} false; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$YACC"; then
7372 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_YACC="$ac_prog"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 YACC=$ac_cv_prog_YACC
7392 if test -n "$YACC"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7394 $as_echo "$YACC" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7401 test -n "$YACC" && break
7403 test -n "$YACC" || YACC="yacc"
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}ar; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_AR+:} false; then :
7412 $as_echo_n "(cached) " >&6
7414 if test -n "$AR"; then
7415 ac_cv_prog_AR="$AR" # Let the user override the test.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424 ac_cv_prog_AR="${ac_tool_prefix}ar"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 if test -n "$AR"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7437 $as_echo "$AR" >&6; }
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7445 if test -z "$ac_cv_prog_AR"; then
7447 # Extract the first word of "ar", so it can be a program name with args.
7448 set dummy ar; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7452 $as_echo_n "(cached) " >&6
7454 if test -n "$ac_ct_AR"; then
7455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_ac_ct_AR="ar"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7475 if test -n "$ac_ct_AR"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7477 $as_echo "$ac_ct_AR" >&6; }
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7483 if test "x$ac_ct_AR" = x; then
7486 case $cross_compiling:$ac_tool_warned in
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490 ac_tool_warned=yes ;;
7498 if test -n "$ac_tool_prefix"; then
7499 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_DLLTOOL+:} false; then :
7504 $as_echo_n "(cached) " >&6
7506 if test -n "$DLLTOOL"; then
7507 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 DLLTOOL=$ac_cv_prog_DLLTOOL
7527 if test -n "$DLLTOOL"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7529 $as_echo "$DLLTOOL" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7537 if test -z "$ac_cv_prog_DLLTOOL"; then
7538 ac_ct_DLLTOOL=$DLLTOOL
7539 # Extract the first word of "dlltool", so it can be a program name with args.
7540 set dummy dlltool; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7544 $as_echo_n "(cached) " >&6
7546 if test -n "$ac_ct_DLLTOOL"; then
7547 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7567 if test -n "$ac_ct_DLLTOOL"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7569 $as_echo "$ac_ct_DLLTOOL" >&6; }
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7575 if test "x$ac_ct_DLLTOOL" = x; then
7578 case $cross_compiling:$ac_tool_warned in
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7584 DLLTOOL=$ac_ct_DLLTOOL
7587 DLLTOOL="$ac_cv_prog_DLLTOOL"
7590 if test -n "$ac_tool_prefix"; then
7591 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7592 set dummy ${ac_tool_prefix}windres; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_WINDRES+:} false; then :
7596 $as_echo_n "(cached) " >&6
7598 if test -n "$WINDRES"; then
7599 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 WINDRES=$ac_cv_prog_WINDRES
7619 if test -n "$WINDRES"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7621 $as_echo "$WINDRES" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7629 if test -z "$ac_cv_prog_WINDRES"; then
7630 ac_ct_WINDRES=$WINDRES
7631 # Extract the first word of "windres", so it can be a program name with args.
7632 set dummy windres; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7636 $as_echo_n "(cached) " >&6
7638 if test -n "$ac_ct_WINDRES"; then
7639 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648 ac_cv_prog_ac_ct_WINDRES="windres"
7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7659 if test -n "$ac_ct_WINDRES"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7661 $as_echo "$ac_ct_WINDRES" >&6; }
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7667 if test "x$ac_ct_WINDRES" = x; then
7670 case $cross_compiling:$ac_tool_warned in
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7674 ac_tool_warned=yes ;;
7676 WINDRES=$ac_ct_WINDRES
7679 WINDRES="$ac_cv_prog_WINDRES"
7685 # Needed for GNU Hurd hosts.
7686 if test -n "$ac_tool_prefix"; then
7687 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7688 set dummy ${ac_tool_prefix}mig; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if ${ac_cv_prog_MIG+:} false; then :
7692 $as_echo_n "(cached) " >&6
7694 if test -n "$MIG"; then
7695 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 if test -n "$MIG"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7717 $as_echo "$MIG" >&6; }
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7725 if test -z "$ac_cv_prog_MIG"; then
7727 # Extract the first word of "mig", so it can be a program name with args.
7728 set dummy mig; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
7732 $as_echo_n "(cached) " >&6
7734 if test -n "$ac_ct_MIG"; then
7735 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7744 ac_cv_prog_ac_ct_MIG="mig"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7755 if test -n "$ac_ct_MIG"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7757 $as_echo "$ac_ct_MIG" >&6; }
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7763 if test "x$ac_ct_MIG" = x; then
7766 case $cross_compiling:$ac_tool_warned in
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770 ac_tool_warned=yes ;;
7775 MIG="$ac_cv_prog_MIG"
7778 if test x"$MIG" = x; then
7779 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
7784 # ---------------------- #
7785 # Checks for libraries. #
7786 # ---------------------- #
7788 # We might need to link with -lm; most simulators need it.
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7790 $as_echo_n "checking for main in -lm... " >&6; }
7791 if ${ac_cv_lib_m_main+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 ac_check_lib_save_LIBS=$LIBS
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7808 if ac_fn_c_try_link "$LINENO"; then :
7809 ac_cv_lib_m_main=yes
7813 rm -f core conftest.err conftest.$ac_objext \
7814 conftest$ac_exeext conftest.$ac_ext
7815 LIBS=$ac_check_lib_save_LIBS
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7818 $as_echo "$ac_cv_lib_m_main" >&6; }
7819 if test "x$ac_cv_lib_m_main" = xyes; then :
7820 cat >>confdefs.h <<_ACEOF
7829 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7831 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7832 if ${ac_cv_search_gethostbyname+:} false; then :
7833 $as_echo_n "(cached) " >&6
7835 ac_func_search_save_LIBS=$LIBS
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7839 /* Override any GCC internal prototype to avoid an error.
7840 Use char because int might match the return type of a GCC
7841 builtin and then its argument prototype would still apply. */
7845 char gethostbyname ();
7849 return gethostbyname ();
7854 for ac_lib in '' nsl; do
7855 if test -z "$ac_lib"; then
7856 ac_res="none required"
7859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7861 if ac_fn_c_try_link "$LINENO"; then :
7862 ac_cv_search_gethostbyname=$ac_res
7864 rm -f core conftest.err conftest.$ac_objext \
7866 if ${ac_cv_search_gethostbyname+:} false; then :
7870 if ${ac_cv_search_gethostbyname+:} false; then :
7873 ac_cv_search_gethostbyname=no
7876 LIBS=$ac_func_search_save_LIBS
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7879 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7880 ac_res=$ac_cv_search_gethostbyname
7881 if test "$ac_res" != no; then :
7882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7887 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7889 $as_echo_n "checking for library containing socketpair... " >&6; }
7890 if ${ac_cv_search_socketpair+:} false; then :
7891 $as_echo_n "(cached) " >&6
7893 ac_func_search_save_LIBS=$LIBS
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7897 /* Override any GCC internal prototype to avoid an error.
7898 Use char because int might match the return type of a GCC
7899 builtin and then its argument prototype would still apply. */
7907 return socketpair ();
7912 for ac_lib in '' socket; do
7913 if test -z "$ac_lib"; then
7914 ac_res="none required"
7917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7919 if ac_fn_c_try_link "$LINENO"; then :
7920 ac_cv_search_socketpair=$ac_res
7922 rm -f core conftest.err conftest.$ac_objext \
7924 if ${ac_cv_search_socketpair+:} false; then :
7928 if ${ac_cv_search_socketpair+:} false; then :
7931 ac_cv_search_socketpair=no
7934 LIBS=$ac_func_search_save_LIBS
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7937 $as_echo "$ac_cv_search_socketpair" >&6; }
7938 ac_res=$ac_cv_search_socketpair
7939 if test "$ac_res" != no; then :
7940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7945 # Link in zlib if we can. This allows us to read compressed debug sections.
7947 # Use the system's zlib library.
7948 zlibdir="-L\$(top_builddir)/../zlib"
7949 zlibinc="-I\$(top_srcdir)/../zlib"
7951 # Check whether --with-system-zlib was given.
7952 if test "${with_system_zlib+set}" = set; then :
7953 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7964 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7965 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7967 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7968 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
7969 $as_echo_n "(cached) " >&6
7971 ac_func_search_save_LIBS=$LIBS
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7975 /* Override any GCC internal prototype to avoid an error.
7976 Use char because int might match the return type of a GCC
7977 builtin and then its argument prototype would still apply. */
7981 char kinfo_getvmmap ();
7985 return kinfo_getvmmap ();
7990 for ac_lib in '' util util-freebsd; do
7991 if test -z "$ac_lib"; then
7992 ac_res="none required"
7995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7997 if ac_fn_c_try_link "$LINENO"; then :
7998 ac_cv_search_kinfo_getvmmap=$ac_res
8000 rm -f core conftest.err conftest.$ac_objext \
8002 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
8006 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
8009 ac_cv_search_kinfo_getvmmap=no
8012 LIBS=$ac_func_search_save_LIBS
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8015 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8016 ac_res=$ac_cv_search_kinfo_getvmmap
8017 if test "$ac_res" != no; then :
8018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8020 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8025 # fbsd-nat.c can also use kinfo_getfile.
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8027 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8028 if ${ac_cv_search_kinfo_getfile+:} false; then :
8029 $as_echo_n "(cached) " >&6
8031 ac_func_search_save_LIBS=$LIBS
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8035 /* Override any GCC internal prototype to avoid an error.
8036 Use char because int might match the return type of a GCC
8037 builtin and then its argument prototype would still apply. */
8041 char kinfo_getfile ();
8045 return kinfo_getfile ();
8050 for ac_lib in '' util util-freebsd; do
8051 if test -z "$ac_lib"; then
8052 ac_res="none required"
8055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8057 if ac_fn_c_try_link "$LINENO"; then :
8058 ac_cv_search_kinfo_getfile=$ac_res
8060 rm -f core conftest.err conftest.$ac_objext \
8062 if ${ac_cv_search_kinfo_getfile+:} false; then :
8066 if ${ac_cv_search_kinfo_getfile+:} false; then :
8069 ac_cv_search_kinfo_getfile=no
8072 LIBS=$ac_func_search_save_LIBS
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8075 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8076 ac_res=$ac_cv_search_kinfo_getfile
8077 if test "$ac_res" != no; then :
8078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8080 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8086 if test "X$prefix" = "XNONE"; then
8087 acl_final_prefix="$ac_default_prefix"
8089 acl_final_prefix="$prefix"
8091 if test "X$exec_prefix" = "XNONE"; then
8092 acl_final_exec_prefix='${prefix}'
8094 acl_final_exec_prefix="$exec_prefix"
8096 acl_save_prefix="$prefix"
8097 prefix="$acl_final_prefix"
8098 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8099 prefix="$acl_save_prefix"
8102 # Check whether --with-gnu-ld was given.
8103 if test "${with_gnu_ld+set}" = set; then :
8104 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8109 # Prepare PATH_SEPARATOR.
8110 # The user is always right.
8111 if test "${PATH_SEPARATOR+set}" != set; then
8112 echo "#! /bin/sh" >conf$$.sh
8113 echo "exit 0" >>conf$$.sh
8115 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8123 if test "$GCC" = yes; then
8124 # Check if gcc -print-prog-name=ld gives a path.
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8126 $as_echo_n "checking for ld used by GCC... " >&6; }
8129 # gcc leaves a trailing carriage return which upsets mingw
8130 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8132 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8135 # Accept absolute paths.
8136 [\\/]* | [A-Za-z]:[\\/]*)
8137 re_direlt='/[^/][^/]*/\.\./'
8138 # Canonicalize the path of ld
8139 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8140 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8141 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8143 test -z "$LD" && LD="$ac_prog"
8146 # If it fails, then pretend we aren't using GCC.
8150 # If it is relative, then search for the first ld in PATH.
8154 elif test "$with_gnu_ld" = yes; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8156 $as_echo_n "checking for GNU ld... " >&6; }
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8159 $as_echo_n "checking for non-GNU ld... " >&6; }
8161 if ${acl_cv_path_LD+:} false; then :
8162 $as_echo_n "(cached) " >&6
8164 if test -z "$LD"; then
8165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8166 for ac_dir in $PATH; do
8167 test -z "$ac_dir" && ac_dir=.
8168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8169 acl_cv_path_LD="$ac_dir/$ac_prog"
8170 # Check to see if the program is GNU ld. I'd rather use --version,
8171 # but apparently some GNU ld's only accept -v.
8172 # Break only if it was the GNU/non-GNU ld that we prefer.
8173 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8174 test "$with_gnu_ld" != no && break
8176 test "$with_gnu_ld" != yes && break
8182 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8186 LD="$acl_cv_path_LD"
8187 if test -n "$LD"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8189 $as_echo "$LD" >&6; }
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8194 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8196 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8197 if ${acl_cv_prog_gnu_ld+:} false; then :
8198 $as_echo_n "(cached) " >&6
8200 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8201 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8202 acl_cv_prog_gnu_ld=yes
8204 acl_cv_prog_gnu_ld=no
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8208 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8209 with_gnu_ld=$acl_cv_prog_gnu_ld
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8214 $as_echo_n "checking for shared library run path origin... " >&6; }
8215 if ${acl_cv_rpath+:} false; then :
8216 $as_echo_n "(cached) " >&6
8219 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8220 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8227 $as_echo "$acl_cv_rpath" >&6; }
8229 libext="$acl_cv_libext"
8230 shlibext="$acl_cv_shlibext"
8231 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8232 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8233 hardcode_direct="$acl_cv_hardcode_direct"
8234 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8235 # Check whether --enable-rpath was given.
8236 if test "${enable_rpath+set}" = set; then :
8237 enableval=$enable_rpath; :
8251 acl_save_prefix="$prefix"
8252 prefix="$acl_final_prefix"
8253 acl_save_exec_prefix="$exec_prefix"
8254 exec_prefix="$acl_final_exec_prefix"
8256 eval additional_includedir=\"$includedir\"
8257 eval additional_libdir=\"$libdir\"
8259 exec_prefix="$acl_save_exec_prefix"
8260 prefix="$acl_save_prefix"
8263 # Check whether --with-libiconv-prefix was given.
8264 if test "${with_libiconv_prefix+set}" = set; then :
8265 withval=$with_libiconv_prefix;
8266 if test "X$withval" = "Xno"; then
8269 if test "X$withval" = "X"; then
8271 acl_save_prefix="$prefix"
8272 prefix="$acl_final_prefix"
8273 acl_save_exec_prefix="$exec_prefix"
8274 exec_prefix="$acl_final_exec_prefix"
8276 eval additional_includedir=\"$includedir\"
8277 eval additional_libdir=\"$libdir\"
8279 exec_prefix="$acl_save_exec_prefix"
8280 prefix="$acl_save_prefix"
8283 additional_includedir="$withval/include"
8284 additional_libdir="$withval/lib"
8295 names_already_handled=
8296 names_next_round='iconv '
8297 while test -n "$names_next_round"; do
8298 names_this_round="$names_next_round"
8300 for name in $names_this_round; do
8302 for n in $names_already_handled; do
8303 if test "$n" = "$name"; then
8308 if test -z "$already_handled"; then
8309 names_already_handled="$names_already_handled $name"
8310 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8311 eval value=\"\$HAVE_LIB$uppername\"
8312 if test -n "$value"; then
8313 if test "$value" = yes; then
8314 eval value=\"\$LIB$uppername\"
8315 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8316 eval value=\"\$LTLIB$uppername\"
8317 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8326 if test $use_additional = yes; then
8327 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8328 found_dir="$additional_libdir"
8329 found_so="$additional_libdir/lib$name.$shlibext"
8330 if test -f "$additional_libdir/lib$name.la"; then
8331 found_la="$additional_libdir/lib$name.la"
8334 if test -f "$additional_libdir/lib$name.$libext"; then
8335 found_dir="$additional_libdir"
8336 found_a="$additional_libdir/lib$name.$libext"
8337 if test -f "$additional_libdir/lib$name.la"; then
8338 found_la="$additional_libdir/lib$name.la"
8343 if test "X$found_dir" = "X"; then
8344 for x in $LDFLAGS $LTLIBICONV; do
8346 acl_save_prefix="$prefix"
8347 prefix="$acl_final_prefix"
8348 acl_save_exec_prefix="$exec_prefix"
8349 exec_prefix="$acl_final_exec_prefix"
8351 exec_prefix="$acl_save_exec_prefix"
8352 prefix="$acl_save_prefix"
8356 dir=`echo "X$x" | sed -e 's/^X-L//'`
8357 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8359 found_so="$dir/lib$name.$shlibext"
8360 if test -f "$dir/lib$name.la"; then
8361 found_la="$dir/lib$name.la"
8364 if test -f "$dir/lib$name.$libext"; then
8366 found_a="$dir/lib$name.$libext"
8367 if test -f "$dir/lib$name.la"; then
8368 found_la="$dir/lib$name.la"
8374 if test "X$found_dir" != "X"; then
8379 if test "X$found_dir" != "X"; then
8380 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8381 if test "X$found_so" != "X"; then
8382 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8383 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8386 for x in $ltrpathdirs; do
8387 if test "X$x" = "X$found_dir"; then
8392 if test -z "$haveit"; then
8393 ltrpathdirs="$ltrpathdirs $found_dir"
8395 if test "$hardcode_direct" = yes; then
8396 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8398 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8399 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8401 for x in $rpathdirs; do
8402 if test "X$x" = "X$found_dir"; then
8407 if test -z "$haveit"; then
8408 rpathdirs="$rpathdirs $found_dir"
8412 for x in $LDFLAGS $LIBICONV; do
8414 acl_save_prefix="$prefix"
8415 prefix="$acl_final_prefix"
8416 acl_save_exec_prefix="$exec_prefix"
8417 exec_prefix="$acl_final_exec_prefix"
8419 exec_prefix="$acl_save_exec_prefix"
8420 prefix="$acl_save_prefix"
8422 if test "X$x" = "X-L$found_dir"; then
8427 if test -z "$haveit"; then
8428 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8430 if test "$hardcode_minus_L" != no; then
8431 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8433 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8439 if test "X$found_a" != "X"; then
8440 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8442 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8445 additional_includedir=
8446 case "$found_dir" in
8448 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8449 additional_includedir="$basedir/include"
8452 if test "X$additional_includedir" != "X"; then
8453 if test "X$additional_includedir" != "X/usr/include"; then
8455 if test "X$additional_includedir" = "X/usr/local/include"; then
8456 if test -n "$GCC"; then
8458 linux*) haveit=yes;;
8462 if test -z "$haveit"; then
8463 for x in $CPPFLAGS $INCICONV; do
8465 acl_save_prefix="$prefix"
8466 prefix="$acl_final_prefix"
8467 acl_save_exec_prefix="$exec_prefix"
8468 exec_prefix="$acl_final_exec_prefix"
8470 exec_prefix="$acl_save_exec_prefix"
8471 prefix="$acl_save_prefix"
8473 if test "X$x" = "X-I$additional_includedir"; then
8478 if test -z "$haveit"; then
8479 if test -d "$additional_includedir"; then
8480 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8486 if test -n "$found_la"; then
8487 save_libdir="$libdir"
8489 */* | *\\*) . "$found_la" ;;
8490 *) . "./$found_la" ;;
8492 libdir="$save_libdir"
8493 for dep in $dependency_libs; do
8496 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8497 if test "X$additional_libdir" != "X/usr/lib"; then
8499 if test "X$additional_libdir" = "X/usr/local/lib"; then
8500 if test -n "$GCC"; then
8502 linux*) haveit=yes;;
8506 if test -z "$haveit"; then
8508 for x in $LDFLAGS $LIBICONV; do
8510 acl_save_prefix="$prefix"
8511 prefix="$acl_final_prefix"
8512 acl_save_exec_prefix="$exec_prefix"
8513 exec_prefix="$acl_final_exec_prefix"
8515 exec_prefix="$acl_save_exec_prefix"
8516 prefix="$acl_save_prefix"
8518 if test "X$x" = "X-L$additional_libdir"; then
8523 if test -z "$haveit"; then
8524 if test -d "$additional_libdir"; then
8525 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8529 for x in $LDFLAGS $LTLIBICONV; do
8531 acl_save_prefix="$prefix"
8532 prefix="$acl_final_prefix"
8533 acl_save_exec_prefix="$exec_prefix"
8534 exec_prefix="$acl_final_exec_prefix"
8536 exec_prefix="$acl_save_exec_prefix"
8537 prefix="$acl_save_prefix"
8539 if test "X$x" = "X-L$additional_libdir"; then
8544 if test -z "$haveit"; then
8545 if test -d "$additional_libdir"; then
8546 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8553 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8554 if test "$enable_rpath" != no; then
8556 for x in $rpathdirs; do
8557 if test "X$x" = "X$dir"; then
8562 if test -z "$haveit"; then
8563 rpathdirs="$rpathdirs $dir"
8566 for x in $ltrpathdirs; do
8567 if test "X$x" = "X$dir"; then
8572 if test -z "$haveit"; then
8573 ltrpathdirs="$ltrpathdirs $dir"
8578 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8581 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8584 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8585 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8591 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8592 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8598 if test "X$rpathdirs" != "X"; then
8599 if test -n "$hardcode_libdir_separator"; then
8601 for found_dir in $rpathdirs; do
8602 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8604 acl_save_libdir="$libdir"
8606 eval flag=\"$hardcode_libdir_flag_spec\"
8607 libdir="$acl_save_libdir"
8608 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8610 for found_dir in $rpathdirs; do
8611 acl_save_libdir="$libdir"
8613 eval flag=\"$hardcode_libdir_flag_spec\"
8614 libdir="$acl_save_libdir"
8615 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8619 if test "X$ltrpathdirs" != "X"; then
8620 for found_dir in $ltrpathdirs; do
8621 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8632 $as_echo_n "checking for iconv... " >&6; }
8633 if ${am_cv_func_iconv+:} false; then :
8634 $as_echo_n "(cached) " >&6
8637 am_cv_func_iconv="no, consider installing GNU libiconv"
8639 am_save_CPPFLAGS="$CPPFLAGS"
8640 CPPFLAGS="$CPPFLAGS $INCICONV"
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8648 iconv_t cd = iconv_open("","");
8649 iconv(cd,NULL,NULL,NULL,NULL);
8655 if ac_fn_c_try_link "$LINENO"; then :
8656 am_cv_func_iconv=yes
8658 rm -f core conftest.err conftest.$ac_objext \
8659 conftest$ac_exeext conftest.$ac_ext
8660 CPPFLAGS="$am_save_CPPFLAGS"
8662 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
8663 for _libs in .libs _libs; do
8664 am_save_CPPFLAGS="$CPPFLAGS"
8665 am_save_LIBS="$LIBS"
8666 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
8667 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8675 iconv_t cd = iconv_open("","");
8676 iconv(cd,NULL,NULL,NULL,NULL);
8682 if ac_fn_c_try_link "$LINENO"; then :
8683 INCICONV="-I../libiconv/include"
8684 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
8685 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
8687 am_cv_func_iconv=yes
8689 rm -f core conftest.err conftest.$ac_objext \
8690 conftest$ac_exeext conftest.$ac_ext
8691 CPPFLAGS="$am_save_CPPFLAGS"
8692 LIBS="$am_save_LIBS"
8693 if test "$am_cv_func_iconv" = "yes"; then
8699 if test "$am_cv_func_iconv" != yes; then
8700 am_save_CPPFLAGS="$CPPFLAGS"
8701 am_save_LIBS="$LIBS"
8702 CPPFLAGS="$LIBS $INCICONV"
8703 LIBS="$LIBS $LIBICONV"
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8711 iconv_t cd = iconv_open("","");
8712 iconv(cd,NULL,NULL,NULL,NULL);
8718 if ac_fn_c_try_link "$LINENO"; then :
8720 am_cv_func_iconv=yes
8722 rm -f core conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext conftest.$ac_ext
8724 CPPFLAGS="$am_save_CPPFLAGS"
8725 LIBS="$am_save_LIBS"
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8730 $as_echo "$am_cv_func_iconv" >&6; }
8731 if test "$am_cv_func_iconv" = yes; then
8733 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8736 if test "$am_cv_lib_iconv" = yes; then
8738 for element in $INCICONV; do
8740 for x in $CPPFLAGS; do
8742 acl_save_prefix="$prefix"
8743 prefix="$acl_final_prefix"
8744 acl_save_exec_prefix="$exec_prefix"
8745 exec_prefix="$acl_final_exec_prefix"
8747 exec_prefix="$acl_save_exec_prefix"
8748 prefix="$acl_save_prefix"
8750 if test "X$x" = "X$element"; then
8755 if test -z "$haveit"; then
8756 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8761 $as_echo_n "checking how to link with libiconv... " >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8763 $as_echo "$LIBICONV" >&6; }
8771 if test "$am_cv_func_iconv" = yes; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8773 $as_echo_n "checking for iconv declaration... " >&6; }
8774 if ${am_cv_proto_iconv+:} false; then :
8775 $as_echo_n "(cached) " >&6
8778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779 /* end confdefs.h. */
8787 #if defined(__STDC__) || defined(__cplusplus)
8788 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8801 if ac_fn_c_try_compile "$LINENO"; then :
8802 am_cv_proto_iconv_arg1=""
8804 am_cv_proto_iconv_arg1="const"
8806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807 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);"
8810 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8812 }$am_cv_proto_iconv" >&5
8814 }$am_cv_proto_iconv" >&6; }
8816 cat >>confdefs.h <<_ACEOF
8817 #define ICONV_CONST $am_cv_proto_iconv_arg1
8823 # GDB may fork/exec the iconv program to get the list of supported character
8824 # sets. Allow the user to specify where to find it.
8825 # There are several factors affecting the choice of option name:
8826 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8827 # the build-time location of libiconv files.
8828 # - The program we need to find is iconv, which comes with glibc. The user
8829 # doesn't necessarily have libiconv installed. Therefore naming this
8830 # --with-libiconv-foo feels wrong.
8831 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8832 # defined to work on directories not files (though it really doesn't know
8834 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8835 # with --with-libiconv-prefix.
8836 # Putting these together is why the option name is --with-iconv-bin.
8839 # Check whether --with-iconv-bin was given.
8840 if test "${with_iconv_bin+set}" = set; then :
8841 withval=$with_iconv_bin; iconv_bin="${withval}"
8843 cat >>confdefs.h <<_ACEOF
8844 #define ICONV_BIN "${iconv_bin}"
8848 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8849 if test "x$prefix" = xNONE; then
8850 test_prefix=/usr/local
8855 test_prefix=$exec_prefix
8858 case ${iconv_bin} in
8859 "${test_prefix}"|"${test_prefix}/"*|\
8860 '${exec_prefix}'|'${exec_prefix}/'*)
8865 cat >>confdefs.h <<_ACEOF
8866 #define ICONV_BIN_RELOCATABLE $value
8874 # For the TUI, we need enhanced curses functionality.
8875 if test x"$enable_tui" != xno; then
8880 if test x"$prefer_curses" = xyes; then
8881 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8882 # curses library because the latter might not provide all the
8883 # functionality we need. However, this leads to problems on systems
8884 # where the linker searches /usr/local/lib, but the compiler doesn't
8885 # search /usr/local/include, if ncurses is installed in /usr/local. A
8886 # default installation of ncurses on alpha*-dec-osf* will lead to such
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8889 $as_echo_n "checking for library containing waddstr... " >&6; }
8890 if ${ac_cv_search_waddstr+:} 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 '' ncursesw ncurses cursesX curses; 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_waddstr=$ac_res
8922 rm -f core conftest.err conftest.$ac_objext \
8924 if ${ac_cv_search_waddstr+:} false; then :
8928 if ${ac_cv_search_waddstr+:} false; then :
8931 ac_cv_search_waddstr=no
8934 LIBS=$ac_func_search_save_LIBS
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8937 $as_echo "$ac_cv_search_waddstr" >&6; }
8938 ac_res=$ac_cv_search_waddstr
8939 if test "$ac_res" != no; then :
8940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8945 if test "$ac_cv_search_waddstr" != no; then
8950 # Check whether we should enable the TUI, but only do so if we really
8952 if test x"$enable_tui" != xno; then
8953 if test -d $srcdir/tui; then
8954 if test "$curses_found" != no; then
8955 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8956 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8957 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8958 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8960 if test x"$enable_tui" = xyes; then
8961 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8964 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8970 # Since GDB uses Readline, we need termcap functionality. In many
8971 # cases this will be provided by the curses library, but some systems
8972 # have a separate termcap library, or no curses library at all.
8976 if test -d $srcdir/libtermcap; then
8977 LIBS="../libtermcap/libtermcap.a $LIBS"
8978 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8981 ac_cv_search_tgetent="none required"
8985 # These are the libraries checked by Readline.
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8987 $as_echo_n "checking for library containing tgetent... " >&6; }
8988 if ${ac_cv_search_tgetent+:} false; then :
8989 $as_echo_n "(cached) " >&6
8991 ac_func_search_save_LIBS=$LIBS
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8995 /* Override any GCC internal prototype to avoid an error.
8996 Use char because int might match the return type of a GCC
8997 builtin and then its argument prototype would still apply. */
9010 for ac_lib in '' termcap tinfo curses ncursesw ncurses; do
9011 if test -z "$ac_lib"; then
9012 ac_res="none required"
9015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9017 if ac_fn_c_try_link "$LINENO"; then :
9018 ac_cv_search_tgetent=$ac_res
9020 rm -f core conftest.err conftest.$ac_objext \
9022 if ${ac_cv_search_tgetent+:} false; then :
9026 if ${ac_cv_search_tgetent+:} false; then :
9029 ac_cv_search_tgetent=no
9032 LIBS=$ac_func_search_save_LIBS
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9035 $as_echo "$ac_cv_search_tgetent" >&6; }
9036 ac_res=$ac_cv_search_tgetent
9037 if test "$ac_res" != no; then :
9038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9043 if test "$ac_cv_search_tgetent" = no; then
9044 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
9048 # Check whether --with-system-readline was given.
9049 if test "${with_system_readline+set}" = set; then :
9050 withval=$with_system_readline;
9054 if test "$with_system_readline" = yes; then
9058 READLINE_TEXI_INCFLAG=
9060 READLINE='$(READLINE_DIR)/libreadline.a'
9061 READLINE_DEPS='$(READLINE)'
9062 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9063 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9070 # Generate jit-reader.h
9072 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9075 # The cast to long int works around a bug in the HP C Compiler
9076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9078 # This bug is HP SR number 8606223364.
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9080 $as_echo_n "checking size of unsigned long long... " >&6; }
9081 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
9082 $as_echo_n "(cached) " >&6
9084 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9087 if test "$ac_cv_type_unsigned_long_long" = yes; then
9088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9090 as_fn_error 77 "cannot compute sizeof (unsigned long long)
9091 See \`config.log' for more details" "$LINENO" 5; }
9093 ac_cv_sizeof_unsigned_long_long=0
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9099 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9103 cat >>confdefs.h <<_ACEOF
9104 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9108 # The cast to long int works around a bug in the HP C Compiler
9109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9111 # This bug is HP SR number 8606223364.
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9113 $as_echo_n "checking size of unsigned long... " >&6; }
9114 if ${ac_cv_sizeof_unsigned_long+:} false; then :
9115 $as_echo_n "(cached) " >&6
9117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9120 if test "$ac_cv_type_unsigned_long" = yes; then
9121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9123 as_fn_error 77 "cannot compute sizeof (unsigned long)
9124 See \`config.log' for more details" "$LINENO" 5; }
9126 ac_cv_sizeof_unsigned_long=0
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9132 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9136 cat >>confdefs.h <<_ACEOF
9137 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9141 # The cast to long int works around a bug in the HP C Compiler
9142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9144 # This bug is HP SR number 8606223364.
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9146 $as_echo_n "checking size of unsigned __int128... " >&6; }
9147 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
9148 $as_echo_n "(cached) " >&6
9150 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9153 if test "$ac_cv_type_unsigned___int128" = yes; then
9154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9156 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
9157 See \`config.log' for more details" "$LINENO" 5; }
9159 ac_cv_sizeof_unsigned___int128=0
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9165 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9169 cat >>confdefs.h <<_ACEOF
9170 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9175 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9176 TARGET_PTR="unsigned long"
9177 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9178 TARGET_PTR="unsigned long long"
9179 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9180 TARGET_PTR="unsigned __int128"
9182 TARGET_PTR="unsigned long"
9186 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9190 $as_echo_n "checking for library containing dlopen... " >&6; }
9191 if ${ac_cv_search_dlopen+:} false; then :
9192 $as_echo_n "(cached) " >&6
9194 ac_func_search_save_LIBS=$LIBS
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9198 /* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9213 for ac_lib in '' dl; do
9214 if test -z "$ac_lib"; then
9215 ac_res="none required"
9218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9220 if ac_fn_c_try_link "$LINENO"; then :
9221 ac_cv_search_dlopen=$ac_res
9223 rm -f core conftest.err conftest.$ac_objext \
9225 if ${ac_cv_search_dlopen+:} false; then :
9229 if ${ac_cv_search_dlopen+:} false; then :
9232 ac_cv_search_dlopen=no
9235 LIBS=$ac_func_search_save_LIBS
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9238 $as_echo "$ac_cv_search_dlopen" >&6; }
9239 ac_res=$ac_cv_search_dlopen
9240 if test "$ac_res" != no; then :
9241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9248 # Check whether --with-jit-reader-dir was given.
9249 if test "${with_jit_reader_dir+set}" = set; then :
9250 withval=$with_jit_reader_dir;
9251 JIT_READER_DIR=$withval
9253 JIT_READER_DIR=${libdir}/gdb
9257 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9258 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9259 ac_define_dir=`eval echo $JIT_READER_DIR`
9260 ac_define_dir=`eval echo $ac_define_dir`
9262 cat >>confdefs.h <<_ACEOF
9263 #define JIT_READER_DIR "$ac_define_dir"
9269 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9270 if test "x$prefix" = xNONE; then
9271 test_prefix=/usr/local
9276 test_prefix=$exec_prefix
9279 case ${ac_define_dir} in
9280 "${test_prefix}"|"${test_prefix}/"*|\
9281 '${exec_prefix}'|'${exec_prefix}/'*)
9286 cat >>confdefs.h <<_ACEOF
9287 #define JIT_READER_DIR_RELOCATABLE $value
9294 # Check whether --with-expat was given.
9295 if test "${with_expat+set}" = set; then :
9296 withval=$with_expat;
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9302 $as_echo_n "checking whether to use expat... " >&6; }
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9304 $as_echo "$with_expat" >&6; }
9306 if test "${with_expat}" = no; then
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9308 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9321 acl_save_prefix="$prefix"
9322 prefix="$acl_final_prefix"
9323 acl_save_exec_prefix="$exec_prefix"
9324 exec_prefix="$acl_final_exec_prefix"
9326 eval additional_includedir=\"$includedir\"
9327 eval additional_libdir=\"$libdir\"
9329 exec_prefix="$acl_save_exec_prefix"
9330 prefix="$acl_save_prefix"
9333 # Check whether --with-libexpat-prefix was given.
9334 if test "${with_libexpat_prefix+set}" = set; then :
9335 withval=$with_libexpat_prefix;
9336 if test "X$withval" = "Xno"; then
9339 if test "X$withval" = "X"; then
9341 acl_save_prefix="$prefix"
9342 prefix="$acl_final_prefix"
9343 acl_save_exec_prefix="$exec_prefix"
9344 exec_prefix="$acl_final_exec_prefix"
9346 eval additional_includedir=\"$includedir\"
9347 eval additional_libdir=\"$libdir\"
9349 exec_prefix="$acl_save_exec_prefix"
9350 prefix="$acl_save_prefix"
9353 additional_includedir="$withval/include"
9354 additional_libdir="$withval/lib"
9365 names_already_handled=
9366 names_next_round='expat '
9367 while test -n "$names_next_round"; do
9368 names_this_round="$names_next_round"
9370 for name in $names_this_round; do
9372 for n in $names_already_handled; do
9373 if test "$n" = "$name"; then
9378 if test -z "$already_handled"; then
9379 names_already_handled="$names_already_handled $name"
9380 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9381 eval value=\"\$HAVE_LIB$uppername\"
9382 if test -n "$value"; then
9383 if test "$value" = yes; then
9384 eval value=\"\$LIB$uppername\"
9385 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
9386 eval value=\"\$LTLIB$uppername\"
9387 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9396 if test $use_additional = yes; then
9397 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9398 found_dir="$additional_libdir"
9399 found_so="$additional_libdir/lib$name.$shlibext"
9400 if test -f "$additional_libdir/lib$name.la"; then
9401 found_la="$additional_libdir/lib$name.la"
9404 if test -f "$additional_libdir/lib$name.$libext"; then
9405 found_dir="$additional_libdir"
9406 found_a="$additional_libdir/lib$name.$libext"
9407 if test -f "$additional_libdir/lib$name.la"; then
9408 found_la="$additional_libdir/lib$name.la"
9413 if test "X$found_dir" = "X"; then
9414 for x in $LDFLAGS $LTLIBEXPAT; do
9416 acl_save_prefix="$prefix"
9417 prefix="$acl_final_prefix"
9418 acl_save_exec_prefix="$exec_prefix"
9419 exec_prefix="$acl_final_exec_prefix"
9421 exec_prefix="$acl_save_exec_prefix"
9422 prefix="$acl_save_prefix"
9426 dir=`echo "X$x" | sed -e 's/^X-L//'`
9427 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9429 found_so="$dir/lib$name.$shlibext"
9430 if test -f "$dir/lib$name.la"; then
9431 found_la="$dir/lib$name.la"
9434 if test -f "$dir/lib$name.$libext"; then
9436 found_a="$dir/lib$name.$libext"
9437 if test -f "$dir/lib$name.la"; then
9438 found_la="$dir/lib$name.la"
9444 if test "X$found_dir" != "X"; then
9449 if test "X$found_dir" != "X"; then
9450 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9451 if test "X$found_so" != "X"; then
9452 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9453 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9456 for x in $ltrpathdirs; do
9457 if test "X$x" = "X$found_dir"; then
9462 if test -z "$haveit"; then
9463 ltrpathdirs="$ltrpathdirs $found_dir"
9465 if test "$hardcode_direct" = yes; then
9466 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9468 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9469 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9471 for x in $rpathdirs; do
9472 if test "X$x" = "X$found_dir"; then
9477 if test -z "$haveit"; then
9478 rpathdirs="$rpathdirs $found_dir"
9482 for x in $LDFLAGS $LIBEXPAT; do
9484 acl_save_prefix="$prefix"
9485 prefix="$acl_final_prefix"
9486 acl_save_exec_prefix="$exec_prefix"
9487 exec_prefix="$acl_final_exec_prefix"
9489 exec_prefix="$acl_save_exec_prefix"
9490 prefix="$acl_save_prefix"
9492 if test "X$x" = "X-L$found_dir"; then
9497 if test -z "$haveit"; then
9498 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9500 if test "$hardcode_minus_L" != no; then
9501 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9503 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9509 if test "X$found_a" != "X"; then
9510 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9512 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9515 additional_includedir=
9516 case "$found_dir" in
9518 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9519 additional_includedir="$basedir/include"
9522 if test "X$additional_includedir" != "X"; then
9523 if test "X$additional_includedir" != "X/usr/include"; then
9525 if test "X$additional_includedir" = "X/usr/local/include"; then
9526 if test -n "$GCC"; then
9528 linux*) haveit=yes;;
9532 if test -z "$haveit"; then
9533 for x in $CPPFLAGS $INCEXPAT; do
9535 acl_save_prefix="$prefix"
9536 prefix="$acl_final_prefix"
9537 acl_save_exec_prefix="$exec_prefix"
9538 exec_prefix="$acl_final_exec_prefix"
9540 exec_prefix="$acl_save_exec_prefix"
9541 prefix="$acl_save_prefix"
9543 if test "X$x" = "X-I$additional_includedir"; then
9548 if test -z "$haveit"; then
9549 if test -d "$additional_includedir"; then
9550 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9556 if test -n "$found_la"; then
9557 save_libdir="$libdir"
9559 */* | *\\*) . "$found_la" ;;
9560 *) . "./$found_la" ;;
9562 libdir="$save_libdir"
9563 for dep in $dependency_libs; do
9566 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9567 if test "X$additional_libdir" != "X/usr/lib"; then
9569 if test "X$additional_libdir" = "X/usr/local/lib"; then
9570 if test -n "$GCC"; then
9572 linux*) haveit=yes;;
9576 if test -z "$haveit"; then
9578 for x in $LDFLAGS $LIBEXPAT; do
9580 acl_save_prefix="$prefix"
9581 prefix="$acl_final_prefix"
9582 acl_save_exec_prefix="$exec_prefix"
9583 exec_prefix="$acl_final_exec_prefix"
9585 exec_prefix="$acl_save_exec_prefix"
9586 prefix="$acl_save_prefix"
9588 if test "X$x" = "X-L$additional_libdir"; then
9593 if test -z "$haveit"; then
9594 if test -d "$additional_libdir"; then
9595 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9599 for x in $LDFLAGS $LTLIBEXPAT; do
9601 acl_save_prefix="$prefix"
9602 prefix="$acl_final_prefix"
9603 acl_save_exec_prefix="$exec_prefix"
9604 exec_prefix="$acl_final_exec_prefix"
9606 exec_prefix="$acl_save_exec_prefix"
9607 prefix="$acl_save_prefix"
9609 if test "X$x" = "X-L$additional_libdir"; then
9614 if test -z "$haveit"; then
9615 if test -d "$additional_libdir"; then
9616 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9623 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9624 if test "$enable_rpath" != no; then
9626 for x in $rpathdirs; do
9627 if test "X$x" = "X$dir"; then
9632 if test -z "$haveit"; then
9633 rpathdirs="$rpathdirs $dir"
9636 for x in $ltrpathdirs; do
9637 if test "X$x" = "X$dir"; then
9642 if test -z "$haveit"; then
9643 ltrpathdirs="$ltrpathdirs $dir"
9648 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9654 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9655 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9661 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9662 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9668 if test "X$rpathdirs" != "X"; then
9669 if test -n "$hardcode_libdir_separator"; then
9671 for found_dir in $rpathdirs; do
9672 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9674 acl_save_libdir="$libdir"
9676 eval flag=\"$hardcode_libdir_flag_spec\"
9677 libdir="$acl_save_libdir"
9678 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9680 for found_dir in $rpathdirs; do
9681 acl_save_libdir="$libdir"
9683 eval flag=\"$hardcode_libdir_flag_spec\"
9684 libdir="$acl_save_libdir"
9685 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9689 if test "X$ltrpathdirs" != "X"; then
9690 for found_dir in $ltrpathdirs; do
9691 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9696 ac_save_CPPFLAGS="$CPPFLAGS"
9698 for element in $INCEXPAT; do
9700 for x in $CPPFLAGS; do
9702 acl_save_prefix="$prefix"
9703 prefix="$acl_final_prefix"
9704 acl_save_exec_prefix="$exec_prefix"
9705 exec_prefix="$acl_final_exec_prefix"
9707 exec_prefix="$acl_save_exec_prefix"
9708 prefix="$acl_save_prefix"
9710 if test "X$x" = "X$element"; then
9715 if test -z "$haveit"; then
9716 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9722 $as_echo_n "checking for libexpat... " >&6; }
9723 if ${ac_cv_libexpat+:} false; then :
9724 $as_echo_n "(cached) " >&6
9727 ac_save_LIBS="$LIBS"
9728 LIBS="$LIBS $LIBEXPAT"
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9735 XML_Parser p = XML_ParserCreate (0);
9740 if ac_fn_c_try_link "$LINENO"; then :
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 LIBS="$ac_save_LIBS"
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9751 $as_echo "$ac_cv_libexpat" >&6; }
9752 if test "$ac_cv_libexpat" = yes; then
9755 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9758 $as_echo_n "checking how to link with libexpat... " >&6; }
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9760 $as_echo "$LIBEXPAT" >&6; }
9763 CPPFLAGS="$ac_save_CPPFLAGS"
9773 if test "$HAVE_LIBEXPAT" != yes; then
9774 if test "$with_expat" = yes; then
9775 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9778 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9782 LIBS="$LIBS $LIBEXPAT"
9783 for ac_func in XML_StopParser
9785 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9786 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
9787 cat >>confdefs.h <<_ACEOF
9788 #define HAVE_XML_STOPPARSER 1
9799 # Check whether --with-mpfr was given.
9800 if test "${with_mpfr+set}" = set; then :
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9807 $as_echo_n "checking whether to use MPFR... " >&6; }
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9809 $as_echo "$with_mpfr" >&6; }
9811 if test "${with_mpfr}" = no; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9813 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9826 acl_save_prefix="$prefix"
9827 prefix="$acl_final_prefix"
9828 acl_save_exec_prefix="$exec_prefix"
9829 exec_prefix="$acl_final_exec_prefix"
9831 eval additional_includedir=\"$includedir\"
9832 eval additional_libdir=\"$libdir\"
9834 exec_prefix="$acl_save_exec_prefix"
9835 prefix="$acl_save_prefix"
9838 # Check whether --with-libmpfr-prefix was given.
9839 if test "${with_libmpfr_prefix+set}" = set; then :
9840 withval=$with_libmpfr_prefix;
9841 if test "X$withval" = "Xno"; then
9844 if test "X$withval" = "X"; then
9846 acl_save_prefix="$prefix"
9847 prefix="$acl_final_prefix"
9848 acl_save_exec_prefix="$exec_prefix"
9849 exec_prefix="$acl_final_exec_prefix"
9851 eval additional_includedir=\"$includedir\"
9852 eval additional_libdir=\"$libdir\"
9854 exec_prefix="$acl_save_exec_prefix"
9855 prefix="$acl_save_prefix"
9858 additional_includedir="$withval/include"
9859 additional_libdir="$withval/lib"
9870 names_already_handled=
9871 names_next_round='mpfr '
9872 while test -n "$names_next_round"; do
9873 names_this_round="$names_next_round"
9875 for name in $names_this_round; do
9877 for n in $names_already_handled; do
9878 if test "$n" = "$name"; then
9883 if test -z "$already_handled"; then
9884 names_already_handled="$names_already_handled $name"
9885 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9886 eval value=\"\$HAVE_LIB$uppername\"
9887 if test -n "$value"; then
9888 if test "$value" = yes; then
9889 eval value=\"\$LIB$uppername\"
9890 test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
9891 eval value=\"\$LTLIB$uppername\"
9892 test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9901 if test $use_additional = yes; then
9902 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9903 found_dir="$additional_libdir"
9904 found_so="$additional_libdir/lib$name.$shlibext"
9905 if test -f "$additional_libdir/lib$name.la"; then
9906 found_la="$additional_libdir/lib$name.la"
9909 if test -f "$additional_libdir/lib$name.$libext"; then
9910 found_dir="$additional_libdir"
9911 found_a="$additional_libdir/lib$name.$libext"
9912 if test -f "$additional_libdir/lib$name.la"; then
9913 found_la="$additional_libdir/lib$name.la"
9918 if test "X$found_dir" = "X"; then
9919 for x in $LDFLAGS $LTLIBMPFR; do
9921 acl_save_prefix="$prefix"
9922 prefix="$acl_final_prefix"
9923 acl_save_exec_prefix="$exec_prefix"
9924 exec_prefix="$acl_final_exec_prefix"
9926 exec_prefix="$acl_save_exec_prefix"
9927 prefix="$acl_save_prefix"
9931 dir=`echo "X$x" | sed -e 's/^X-L//'`
9932 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9934 found_so="$dir/lib$name.$shlibext"
9935 if test -f "$dir/lib$name.la"; then
9936 found_la="$dir/lib$name.la"
9939 if test -f "$dir/lib$name.$libext"; then
9941 found_a="$dir/lib$name.$libext"
9942 if test -f "$dir/lib$name.la"; then
9943 found_la="$dir/lib$name.la"
9949 if test "X$found_dir" != "X"; then
9954 if test "X$found_dir" != "X"; then
9955 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9956 if test "X$found_so" != "X"; then
9957 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9958 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9961 for x in $ltrpathdirs; do
9962 if test "X$x" = "X$found_dir"; then
9967 if test -z "$haveit"; then
9968 ltrpathdirs="$ltrpathdirs $found_dir"
9970 if test "$hardcode_direct" = yes; then
9971 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9973 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9974 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9976 for x in $rpathdirs; do
9977 if test "X$x" = "X$found_dir"; then
9982 if test -z "$haveit"; then
9983 rpathdirs="$rpathdirs $found_dir"
9987 for x in $LDFLAGS $LIBMPFR; do
9989 acl_save_prefix="$prefix"
9990 prefix="$acl_final_prefix"
9991 acl_save_exec_prefix="$exec_prefix"
9992 exec_prefix="$acl_final_exec_prefix"
9994 exec_prefix="$acl_save_exec_prefix"
9995 prefix="$acl_save_prefix"
9997 if test "X$x" = "X-L$found_dir"; then
10002 if test -z "$haveit"; then
10003 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10005 if test "$hardcode_minus_L" != no; then
10006 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
10008 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10014 if test "X$found_a" != "X"; then
10015 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
10017 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10020 additional_includedir=
10021 case "$found_dir" in
10023 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10024 additional_includedir="$basedir/include"
10027 if test "X$additional_includedir" != "X"; then
10028 if test "X$additional_includedir" != "X/usr/include"; then
10030 if test "X$additional_includedir" = "X/usr/local/include"; then
10031 if test -n "$GCC"; then
10033 linux*) haveit=yes;;
10037 if test -z "$haveit"; then
10038 for x in $CPPFLAGS $INCMPFR; do
10040 acl_save_prefix="$prefix"
10041 prefix="$acl_final_prefix"
10042 acl_save_exec_prefix="$exec_prefix"
10043 exec_prefix="$acl_final_exec_prefix"
10045 exec_prefix="$acl_save_exec_prefix"
10046 prefix="$acl_save_prefix"
10048 if test "X$x" = "X-I$additional_includedir"; then
10053 if test -z "$haveit"; then
10054 if test -d "$additional_includedir"; then
10055 INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10061 if test -n "$found_la"; then
10062 save_libdir="$libdir"
10063 case "$found_la" in
10064 */* | *\\*) . "$found_la" ;;
10065 *) . "./$found_la" ;;
10067 libdir="$save_libdir"
10068 for dep in $dependency_libs; do
10071 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10072 if test "X$additional_libdir" != "X/usr/lib"; then
10074 if test "X$additional_libdir" = "X/usr/local/lib"; then
10075 if test -n "$GCC"; then
10077 linux*) haveit=yes;;
10081 if test -z "$haveit"; then
10083 for x in $LDFLAGS $LIBMPFR; do
10085 acl_save_prefix="$prefix"
10086 prefix="$acl_final_prefix"
10087 acl_save_exec_prefix="$exec_prefix"
10088 exec_prefix="$acl_final_exec_prefix"
10090 exec_prefix="$acl_save_exec_prefix"
10091 prefix="$acl_save_prefix"
10093 if test "X$x" = "X-L$additional_libdir"; then
10098 if test -z "$haveit"; then
10099 if test -d "$additional_libdir"; then
10100 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10104 for x in $LDFLAGS $LTLIBMPFR; do
10106 acl_save_prefix="$prefix"
10107 prefix="$acl_final_prefix"
10108 acl_save_exec_prefix="$exec_prefix"
10109 exec_prefix="$acl_final_exec_prefix"
10111 exec_prefix="$acl_save_exec_prefix"
10112 prefix="$acl_save_prefix"
10114 if test "X$x" = "X-L$additional_libdir"; then
10119 if test -z "$haveit"; then
10120 if test -d "$additional_libdir"; then
10121 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10128 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10129 if test "$enable_rpath" != no; then
10131 for x in $rpathdirs; do
10132 if test "X$x" = "X$dir"; then
10137 if test -z "$haveit"; then
10138 rpathdirs="$rpathdirs $dir"
10141 for x in $ltrpathdirs; do
10142 if test "X$x" = "X$dir"; then
10147 if test -z "$haveit"; then
10148 ltrpathdirs="$ltrpathdirs $dir"
10153 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10156 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10159 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
10160 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10166 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10167 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10173 if test "X$rpathdirs" != "X"; then
10174 if test -n "$hardcode_libdir_separator"; then
10176 for found_dir in $rpathdirs; do
10177 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10179 acl_save_libdir="$libdir"
10181 eval flag=\"$hardcode_libdir_flag_spec\"
10182 libdir="$acl_save_libdir"
10183 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10185 for found_dir in $rpathdirs; do
10186 acl_save_libdir="$libdir"
10187 libdir="$found_dir"
10188 eval flag=\"$hardcode_libdir_flag_spec\"
10189 libdir="$acl_save_libdir"
10190 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10194 if test "X$ltrpathdirs" != "X"; then
10195 for found_dir in $ltrpathdirs; do
10196 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10201 ac_save_CPPFLAGS="$CPPFLAGS"
10203 for element in $INCMPFR; do
10205 for x in $CPPFLAGS; do
10207 acl_save_prefix="$prefix"
10208 prefix="$acl_final_prefix"
10209 acl_save_exec_prefix="$exec_prefix"
10210 exec_prefix="$acl_final_exec_prefix"
10212 exec_prefix="$acl_save_exec_prefix"
10213 prefix="$acl_save_prefix"
10215 if test "X$x" = "X$element"; then
10220 if test -z "$haveit"; then
10221 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10227 $as_echo_n "checking for libmpfr... " >&6; }
10228 if ${ac_cv_libmpfr+:} false; then :
10229 $as_echo_n "(cached) " >&6
10232 ac_save_LIBS="$LIBS"
10233 LIBS="$LIBS $LIBMPFR"
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10240 mpfr_exp_t exp; mpfr_t x;
10241 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10246 if ac_fn_c_try_link "$LINENO"; then :
10251 rm -f core conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10253 LIBS="$ac_save_LIBS"
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10257 $as_echo "$ac_cv_libmpfr" >&6; }
10258 if test "$ac_cv_libmpfr" = yes; then
10261 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10264 $as_echo_n "checking how to link with libmpfr... " >&6; }
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10266 $as_echo "$LIBMPFR" >&6; }
10269 CPPFLAGS="$ac_save_CPPFLAGS"
10279 if test "$HAVE_LIBMPFR" != yes; then
10280 if test "$with_mpfr" = yes; then
10281 as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10284 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10289 # --------------------- #
10290 # Check for libpython. #
10291 # --------------------- #
10298 # Check whether --with-python was given.
10299 if test "${with_python+set}" = set; then :
10300 withval=$with_python;
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10306 $as_echo_n "checking whether to use python... " >&6; }
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10308 $as_echo "$with_python" >&6; }
10310 if test "${with_python}" = no; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10312 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10315 case "${with_python}" in
10317 if test -d ${with_python}; then
10318 # Assume the python binary is ${with_python}/bin/python.
10319 python_prog="${with_python}/bin/python"
10321 # If python does not exit ${with_python}/bin, then try in
10322 # ${with_python}. On Windows/MinGW, this is where the Python
10324 if test ! -x "${python_prog}"; then
10325 python_prog="${with_python}/python"
10328 if test ! -x "${python_prog}"; then
10329 # Fall back to gdb 7.0/7.1 behaviour.
10330 python_prog=missing
10331 python_prefix=${with_python}
10333 elif test -x "${with_python}"; then
10334 # While we can't run python compiled for $host (unless host == build),
10335 # the user could write a script that provides the needed information,
10336 # so we support that.
10337 python_prog=${with_python}
10340 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
10344 # Disallow --with-python=foo/bar.
10345 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
10348 # The user has either specified auto, yes, or the name of the python
10349 # program assumed to be in $PATH.
10351 case "${with_python}" in
10353 if test ${build} = ${host}; then
10354 # Extract the first word of "python", so it can be a program name with args.
10355 set dummy python; ac_word=$2
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357 $as_echo_n "checking for $ac_word... " >&6; }
10358 if ${ac_cv_path_python_prog_path+:} false; then :
10359 $as_echo_n "(cached) " >&6
10361 case $python_prog_path in
10363 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367 for as_dir in $PATH
10370 test -z "$as_dir" && as_dir=.
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10373 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10381 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10385 python_prog_path=$ac_cv_path_python_prog_path
10386 if test -n "$python_prog_path"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10388 $as_echo "$python_prog_path" >&6; }
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10395 if test "${python_prog_path}" = missing; then
10396 python_prog=missing
10398 python_prog=${python_prog_path}
10401 # Not much we can do except assume the cross-compiler will find the
10403 python_prog=missing
10407 # While we can't run python compiled for $host (unless host == build),
10408 # the user could write a script that provides the needed information,
10409 # so we support that.
10410 python_prog="${with_python}"
10411 # Extract the first word of "${python_prog}", so it can be a program name with args.
10412 set dummy ${python_prog}; ac_word=$2
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414 $as_echo_n "checking for $ac_word... " >&6; }
10415 if ${ac_cv_path_python_prog_path+:} false; then :
10416 $as_echo_n "(cached) " >&6
10418 case $python_prog_path in
10420 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10424 for as_dir in $PATH
10427 test -z "$as_dir" && as_dir=.
10428 for ac_exec_ext in '' $ac_executable_extensions; do
10429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10430 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10442 python_prog_path=$ac_cv_path_python_prog_path
10443 if test -n "$python_prog_path"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10445 $as_echo "$python_prog_path" >&6; }
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10452 if test "${python_prog_path}" = missing; then
10453 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
10459 if test "${python_prog}" != missing; then
10460 # We have a python program to use, but it may be too old.
10461 # Don't flag an error for --with-python=auto (the default).
10462 have_python_config=yes
10463 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10464 if test $? != 0; then
10465 have_python_config=failed
10466 if test "${with_python}" != auto; then
10467 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
10470 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10471 if test $? != 0; then
10472 have_python_config=failed
10473 if test "${with_python}" != auto; then
10474 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
10477 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10478 if test $? != 0; then
10479 have_python_config=failed
10480 if test "${with_python}" != auto; then
10481 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
10485 # We do not have a python executable we can use to determine where
10486 # to find the Python headers and libs. We cannot guess the include
10487 # path from the python_prefix either, because that include path
10488 # depends on the Python version. So, there is nothing much we can
10489 # do except assume that the compiler will be able to find those files.
10492 have_python_config=no
10495 # If we have python-config, only try the configuration it provides.
10496 # Otherwise fallback on the old way of trying different versions of
10500 if test "${have_python_config}" = yes; then
10501 # Determine the Python version by extracting "-lpython<version>"
10502 # part of the python_libs. <version> is usually X.Y with X and Y
10503 # being decimal numbers, but can also be XY (seen on Windows).
10505 # The extraction is performed using sed with a regular expression.
10506 # Initially, the regexp used was using the '?' quantifier to make
10507 # the dot in the version number optional. Unfortunately, this
10508 # does not work with non-GNU versions of sed because, because of
10509 # what looks like a limitation (the '?' quantifier does not work
10510 # with back-references). We work around this limitation by using
10511 # the '*' quantifier instead. It means that, in theory, we might
10512 # match unexpected version strings such as "-lpython2..7", but
10513 # this seems unlikely in practice. And even if that happens,
10514 # an error will be triggered later on, when checking that version
10516 python_version=`echo " ${python_libs} " \
10517 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10518 case "${python_version}" in
10521 version=${python_version}
10523 new_CPPFLAGS=${python_includes}
10524 new_LIBS=${python_libs}
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10526 $as_echo_n "checking for ${version}... " >&6; }
10527 save_CPPFLAGS=$CPPFLAGS
10529 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10530 LIBS="$new_LIBS $LIBS"
10531 found_usable_python=no
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10534 #include "Python.h"
10543 if ac_fn_c_try_link "$LINENO"; then :
10544 have_libpython=${version}
10545 found_usable_python=yes
10546 PYTHON_CPPFLAGS=$new_CPPFLAGS
10547 PYTHON_LIBS=$new_LIBS
10549 rm -f core conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10551 CPPFLAGS=$save_CPPFLAGS
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10554 $as_echo "${found_usable_python}" >&6; }
10558 as_fn_error $? "unable to determine python version from ${python_libs}" "$LINENO" 5
10561 elif test "${have_python_config}" != failed; then
10562 if test "${have_libpython}" = no; then
10566 new_CPPFLAGS=${python_includes}
10567 new_LIBS="-lpython2.7 ${python_libs}"
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10569 $as_echo_n "checking for ${version}... " >&6; }
10570 save_CPPFLAGS=$CPPFLAGS
10572 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10573 LIBS="$new_LIBS $LIBS"
10574 found_usable_python=no
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10577 #include "Python.h"
10586 if ac_fn_c_try_link "$LINENO"; then :
10587 have_libpython=${version}
10588 found_usable_python=yes
10589 PYTHON_CPPFLAGS=$new_CPPFLAGS
10590 PYTHON_LIBS=$new_LIBS
10592 rm -f core conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10594 CPPFLAGS=$save_CPPFLAGS
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10597 $as_echo "${found_usable_python}" >&6; }
10600 if test "${have_libpython}" = no; then
10604 new_CPPFLAGS=${python_includes}
10605 new_LIBS="-lpython2.6 ${python_libs}"
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10607 $as_echo_n "checking for ${version}... " >&6; }
10608 save_CPPFLAGS=$CPPFLAGS
10610 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10611 LIBS="$new_LIBS $LIBS"
10612 found_usable_python=no
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 #include "Python.h"
10624 if ac_fn_c_try_link "$LINENO"; then :
10625 have_libpython=${version}
10626 found_usable_python=yes
10627 PYTHON_CPPFLAGS=$new_CPPFLAGS
10628 PYTHON_LIBS=$new_LIBS
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 CPPFLAGS=$save_CPPFLAGS
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10635 $as_echo "${found_usable_python}" >&6; }
10638 if test ${have_libpython} = no; then
10642 new_CPPFLAGS=${python_includes}
10643 new_LIBS="-lpython2.5 ${python_libs}"
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10645 $as_echo_n "checking for ${version}... " >&6; }
10646 save_CPPFLAGS=$CPPFLAGS
10648 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10649 LIBS="$new_LIBS $LIBS"
10650 found_usable_python=no
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10653 #include "Python.h"
10662 if ac_fn_c_try_link "$LINENO"; then :
10663 have_libpython=${version}
10664 found_usable_python=yes
10665 PYTHON_CPPFLAGS=$new_CPPFLAGS
10666 PYTHON_LIBS=$new_LIBS
10668 rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670 CPPFLAGS=$save_CPPFLAGS
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10673 $as_echo "${found_usable_python}" >&6; }
10676 if test ${have_libpython} = no; then
10680 new_CPPFLAGS=${python_includes}
10681 new_LIBS="-lpython2.4 ${python_libs}"
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10683 $as_echo_n "checking for ${version}... " >&6; }
10684 save_CPPFLAGS=$CPPFLAGS
10686 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10687 LIBS="$new_LIBS $LIBS"
10688 found_usable_python=no
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 #include "Python.h"
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 have_libpython=${version}
10702 found_usable_python=yes
10703 PYTHON_CPPFLAGS=$new_CPPFLAGS
10704 PYTHON_LIBS=$new_LIBS
10706 rm -f core conftest.err conftest.$ac_objext \
10707 conftest$ac_exeext conftest.$ac_ext
10708 CPPFLAGS=$save_CPPFLAGS
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10711 $as_echo "${found_usable_python}" >&6; }
10715 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
10717 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10719 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
10721 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10723 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
10725 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10727 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
10729 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10733 if test "${have_libpython}" = no; then
10734 case "${with_python}" in
10736 as_fn_error $? "python is missing or unusable" "$LINENO" 5
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10740 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10743 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
10747 if test -n "${python_prefix}"; then
10749 cat >>confdefs.h <<_ACEOF
10750 #define WITH_PYTHON_PATH "${python_prefix}"
10754 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10755 if test "x$prefix" = xNONE; then
10756 test_prefix=/usr/local
10758 test_prefix=$prefix
10761 test_prefix=$exec_prefix
10764 case ${python_prefix} in
10765 "${test_prefix}"|"${test_prefix}/"*|\
10766 '${exec_prefix}'|'${exec_prefix}/'*)
10771 cat >>confdefs.h <<_ACEOF
10772 #define PYTHON_PATH_RELOCATABLE $value
10780 if test "${have_libpython}" != no; then
10782 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10784 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10785 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10786 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10787 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
10788 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10790 # Flags needed to compile Python code (taken from python-config --cflags).
10791 # We cannot call python-config directly because it will output whatever was
10792 # used when compiling the Python interpreter itself, including flags which
10793 # would make the python-related objects be compiled differently from the
10794 # rest of GDB (e.g., -O2 and -fPIC).
10795 if test "${GCC}" = yes; then
10796 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10799 if test "x${tentative_python_cflags}" != x; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10801 $as_echo_n "checking compiler flags for python code... " >&6; }
10802 for flag in ${tentative_python_cflags}; do
10803 # Check that the compiler accepts it
10804 saved_CFLAGS="$CFLAGS"
10805 CFLAGS="$CFLAGS $flag"
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10817 if ac_fn_c_try_compile "$LINENO"; then :
10818 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 CFLAGS="$saved_CFLAGS"
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10824 $as_echo "${PYTHON_CFLAGS}" >&6; }
10827 # On x64 Windows, Python's include headers, and pyconfig.h in
10828 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10829 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10830 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10831 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10832 # The issue was reported to the Python community, but still isn't
10833 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10835 case "$gdb_host" in
10837 if test "${GCC}" = yes; then
10838 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
10843 # Note that "python -m threading" cannot be used to check for
10844 # threading support due to a bug in Python 2.7.3
10845 # (http://bugs.python.org/issue15567).
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10847 $as_echo_n "checking whether python supports threads... " >&6; }
10848 saved_CPPFLAGS="${CPPFLAGS}"
10849 CPPFLAGS="${PYTHON_CPPFLAGS}"
10850 # Note that the test is reversed so that python_has_threads=yes on
10851 # unexpected failures.
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10855 #include <Python.h>
10861 if ac_fn_c_try_cpp "$LINENO"; then :
10862 python_has_threads=no
10864 python_has_threads=yes
10866 rm -f conftest.err conftest.i conftest.$ac_ext
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10868 $as_echo "${python_has_threads}" >&6; }
10869 CPPFLAGS="${saved_CPPFLAGS}"
10871 # Even if Python support is not compiled in, we need to have this file
10872 # included so that the "python" command, et.al., still exists.
10873 CONFIG_OBS="$CONFIG_OBS python/python.o"
10874 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
10877 # Work around Python http://bugs.python.org/issue10112. See also
10878 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10879 # no effect. Note that the only test after this that uses Python is
10880 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10881 # run without -export-dynamic too.
10882 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10887 if test "${have_libpython}" != no; then
10889 HAVE_PYTHON_FALSE='#'
10891 HAVE_PYTHON_TRUE='#'
10896 # -------------------- #
10897 # Check for libguile. #
10898 # -------------------- #
10905 # Check whether --with-guile was given.
10906 if test "${with_guile+set}" = set; then :
10907 withval=$with_guile;
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10913 $as_echo_n "checking whether to use guile... " >&6; }
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10915 $as_echo "$with_guile" >&6; }
10917 # Extract the first word of "pkg-config", so it can be a program name with args.
10918 set dummy pkg-config; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
10922 $as_echo_n "(cached) " >&6
10924 case $pkg_config_prog_path in
10926 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in $PATH
10933 test -z "$as_dir" && as_dir=.
10934 for ac_exec_ext in '' $ac_executable_extensions; do
10935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10936 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
10937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
10948 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
10949 if test -n "$pkg_config_prog_path"; then
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10951 $as_echo "$pkg_config_prog_path" >&6; }
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954 $as_echo "no" >&6; }
10959 try_guile_versions="guile-2.0"
10961 case "${with_guile}" in
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10964 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10967 if test "${pkg_config_prog_path}" = "missing"; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10969 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10972 pkg_config=${pkg_config_prog_path}
10973 guile_version_list=${try_guile_versions}
10976 found_usable_guile=checking
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10978 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10979 for guile_version in ${guile_version_list}; do
10980 ${pkg_config} --exists ${guile_version} 2>/dev/null
10981 if test $? != 0; then
10984 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
10985 if test $? != 0; then
10986 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10988 new_LIBS=`${pkg_config} --libs ${guile_version}`
10989 if test $? != 0; then
10990 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10992 found_usable_guile=${guile_version}
10995 if test "${found_usable_guile}" = "checking"; then
10996 if test "${flag_errors}" = "yes"; then
10997 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10999 found_usable_guile=no
11002 if test "${found_usable_guile}" != no; then
11003 save_CPPFLAGS=$CPPFLAGS
11005 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11006 LIBS="$LIBS $new_LIBS"
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009 #include "libguile.h"
11018 if ac_fn_c_try_link "$LINENO"; then :
11020 GUILE_CPPFLAGS=$new_CPPFLAGS
11021 GUILE_LIBS=$new_LIBS
11023 found_usable_guile=no
11025 rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11027 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11028 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11030 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11035 CPPFLAGS=$save_CPPFLAGS
11037 if test "${found_usable_guile}" = no; then
11038 if test "${flag_errors}" = yes; then
11039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11041 as_fn_error $? "linking guile version ${guile_version} test program failed
11042 See \`config.log' for more details" "$LINENO" 5; }
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11047 $as_echo "${found_usable_guile}" >&6; }
11052 if test "${pkg_config_prog_path}" = "missing"; then
11053 as_fn_error $? "pkg-config not found" "$LINENO" 5
11056 pkg_config=${pkg_config_prog_path}
11057 guile_version_list=${try_guile_versions}
11060 found_usable_guile=checking
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11062 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11063 for guile_version in ${guile_version_list}; do
11064 ${pkg_config} --exists ${guile_version} 2>/dev/null
11065 if test $? != 0; then
11068 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11069 if test $? != 0; then
11070 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11072 new_LIBS=`${pkg_config} --libs ${guile_version}`
11073 if test $? != 0; then
11074 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11076 found_usable_guile=${guile_version}
11079 if test "${found_usable_guile}" = "checking"; then
11080 if test "${flag_errors}" = "yes"; then
11081 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11083 found_usable_guile=no
11086 if test "${found_usable_guile}" != no; then
11087 save_CPPFLAGS=$CPPFLAGS
11089 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11090 LIBS="$LIBS $new_LIBS"
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093 #include "libguile.h"
11102 if ac_fn_c_try_link "$LINENO"; then :
11104 GUILE_CPPFLAGS=$new_CPPFLAGS
11105 GUILE_LIBS=$new_LIBS
11107 found_usable_guile=no
11109 rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11111 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11112 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11114 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11119 CPPFLAGS=$save_CPPFLAGS
11121 if test "${found_usable_guile}" = no; then
11122 if test "${flag_errors}" = yes; then
11123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11125 as_fn_error $? "linking guile version ${guile_version} test program failed
11126 See \`config.log' for more details" "$LINENO" 5; }
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11131 $as_echo "${found_usable_guile}" >&6; }
11135 if test -x "${with_guile}"; then
11137 pkg_config=${with_guile}
11138 guile_version_list=${try_guile_versions}
11141 found_usable_guile=checking
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11143 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11144 for guile_version in ${guile_version_list}; do
11145 ${pkg_config} --exists ${guile_version} 2>/dev/null
11146 if test $? != 0; then
11149 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11150 if test $? != 0; then
11151 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11153 new_LIBS=`${pkg_config} --libs ${guile_version}`
11154 if test $? != 0; then
11155 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11157 found_usable_guile=${guile_version}
11160 if test "${found_usable_guile}" = "checking"; then
11161 if test "${flag_errors}" = "yes"; then
11162 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11164 found_usable_guile=no
11167 if test "${found_usable_guile}" != no; then
11168 save_CPPFLAGS=$CPPFLAGS
11170 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11171 LIBS="$LIBS $new_LIBS"
11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h. */
11174 #include "libguile.h"
11183 if ac_fn_c_try_link "$LINENO"; then :
11185 GUILE_CPPFLAGS=$new_CPPFLAGS
11186 GUILE_LIBS=$new_LIBS
11188 found_usable_guile=no
11190 rm -f core conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11192 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11193 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11195 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11200 CPPFLAGS=$save_CPPFLAGS
11202 if test "${found_usable_guile}" = no; then
11203 if test "${flag_errors}" = yes; then
11204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11206 as_fn_error $? "linking guile version ${guile_version} test program failed
11207 See \`config.log' for more details" "$LINENO" 5; }
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11212 $as_echo "${found_usable_guile}" >&6; }
11215 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
11219 # Disallow --with=guile="" and --with-guile=foo/bar.
11220 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
11223 # A space separate list of guile versions to try, in order.
11224 if test "${pkg_config_prog_path}" = "missing"; then
11225 as_fn_error $? "pkg-config not found" "$LINENO" 5
11228 pkg_config=${pkg_config_prog_path}
11229 guile_version_list=${with_guile}
11232 found_usable_guile=checking
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11234 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11235 for guile_version in ${guile_version_list}; do
11236 ${pkg_config} --exists ${guile_version} 2>/dev/null
11237 if test $? != 0; then
11240 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11241 if test $? != 0; then
11242 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11244 new_LIBS=`${pkg_config} --libs ${guile_version}`
11245 if test $? != 0; then
11246 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11248 found_usable_guile=${guile_version}
11251 if test "${found_usable_guile}" = "checking"; then
11252 if test "${flag_errors}" = "yes"; then
11253 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11255 found_usable_guile=no
11258 if test "${found_usable_guile}" != no; then
11259 save_CPPFLAGS=$CPPFLAGS
11261 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11262 LIBS="$LIBS $new_LIBS"
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11265 #include "libguile.h"
11274 if ac_fn_c_try_link "$LINENO"; then :
11276 GUILE_CPPFLAGS=$new_CPPFLAGS
11277 GUILE_LIBS=$new_LIBS
11279 found_usable_guile=no
11281 rm -f core conftest.err conftest.$ac_objext \
11282 conftest$ac_exeext conftest.$ac_ext
11283 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11284 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11286 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11291 CPPFLAGS=$save_CPPFLAGS
11293 if test "${found_usable_guile}" = no; then
11294 if test "${flag_errors}" = yes; then
11295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11297 as_fn_error $? "linking guile version ${guile_version} test program failed
11298 See \`config.log' for more details" "$LINENO" 5; }
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11303 $as_echo "${found_usable_guile}" >&6; }
11308 if test "${have_libguile}" != no; then
11309 case "${with_guile}" in
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11313 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11314 if ${ac_cv_guild_program_name+:} false; then :
11315 $as_echo_n "(cached) " >&6
11317 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
11319 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11320 # the 'guild' and 'bindir' variables. In that case, try to guess
11321 # what the program name is, at the risk of getting it wrong if
11322 # Guile was configured with '--program-suffix' or similar.
11323 if test "x$ac_cv_guild_program_name" = "x"; then
11324 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11325 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11330 $as_echo "$ac_cv_guild_program_name" >&6; }
11332 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11333 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11336 GUILD="$ac_cv_guild_program_name"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11343 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11344 if ${ac_cv_guild_program_name+:} false; then :
11345 $as_echo_n "(cached) " >&6
11347 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11349 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11350 # the 'guild' and 'bindir' variables. In that case, try to guess
11351 # what the program name is, at the risk of getting it wrong if
11352 # Guile was configured with '--program-suffix' or similar.
11353 if test "x$ac_cv_guild_program_name" = "x"; then
11354 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11355 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11360 $as_echo "$ac_cv_guild_program_name" >&6; }
11362 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11363 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11366 GUILD="$ac_cv_guild_program_name"
11373 if test "$cross_compiling" = no; then
11376 GUILD_TARGET_FLAG="--target=$host"
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11383 $as_echo_n "checking whether guild supports this host... " >&6; }
11384 if ${ac_cv_guild_ok+:} false; then :
11385 $as_echo_n "(cached) " >&6
11387 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11388 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11395 $as_echo "$ac_cv_guild_ok" >&6; }
11397 if test "$ac_cv_guild_ok" = no; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11400 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11404 if test "${have_libguile}" != no; then
11406 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11408 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11409 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11410 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11411 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
11412 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11415 save_CPPFLAGS="$CPPFLAGS"
11417 CPPFLAGS="$GUILE_CPPFLAGS"
11418 for ac_func in scm_new_smob
11420 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11421 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
11422 cat >>confdefs.h <<_ACEOF
11423 #define HAVE_SCM_NEW_SMOB 1
11430 CPPFLAGS="$save_CPPFLAGS"
11432 # Even if Guile support is not compiled in, we need to have these files
11434 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
11435 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
11439 if test "${have_libguile}" != no; then
11441 HAVE_GUILE_FALSE='#'
11443 HAVE_GUILE_TRUE='#'
11448 # --------------------- #
11449 # Check for libmcheck. #
11450 # --------------------- #
11452 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11453 # but turn it off if Python is enabled with threads, since -lmcheck is
11454 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11455 # and for releases.
11456 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
11457 && $development; then
11458 libmcheck_default=yes
11460 libmcheck_default=no
11463 # Check whether --enable-libmcheck was given.
11464 if test "${enable_libmcheck+set}" = set; then :
11465 enableval=$enable_libmcheck; case "${enableval}" in
11466 yes | y) ENABLE_LIBMCHECK="yes" ;;
11467 no | n) ENABLE_LIBMCHECK="no" ;;
11468 *) as_fn_error $? "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11473 if test -z "${ENABLE_LIBMCHECK}"; then
11474 ENABLE_LIBMCHECK=${libmcheck_default}
11477 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11479 $as_echo_n "checking for main in -lmcheck... " >&6; }
11480 if ${ac_cv_lib_mcheck_main+:} false; then :
11481 $as_echo_n "(cached) " >&6
11483 ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-lmcheck $LIBS"
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11497 if ac_fn_c_try_link "$LINENO"; then :
11498 ac_cv_lib_mcheck_main=yes
11500 ac_cv_lib_mcheck_main=no
11502 rm -f core conftest.err conftest.$ac_objext \
11503 conftest$ac_exeext conftest.$ac_ext
11504 LIBS=$ac_check_lib_save_LIBS
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11507 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11508 if test "x$ac_cv_lib_mcheck_main" = xyes; then :
11509 cat >>confdefs.h <<_ACEOF
11510 #define HAVE_LIBMCHECK 1
11513 LIBS="-lmcheck $LIBS"
11520 if test "$ENABLE_LIBMCHECK" = "yes" \
11521 -a "${have_libpython}" != "no" \
11522 -a "${python_has_threads}" = "yes" ; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11524 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11528 # Check whether --with-intel_pt was given.
11529 if test "${with_intel_pt+set}" = set; then :
11530 withval=$with_intel_pt;
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11536 $as_echo_n "checking whether to use intel pt... " >&6; }
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11538 $as_echo "$with_intel_pt" >&6; }
11540 if test "${with_intel_pt}" = no; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11542 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11548 #include <linux/perf_event.h>
11549 #ifndef PERF_ATTR_SIZE_VER5
11554 if ac_fn_c_try_cpp "$LINENO"; then :
11559 rm -f conftest.err conftest.i conftest.$ac_ext
11560 if test "$perf_event" != yes; then
11561 if test "$with_intel_pt" = yes; then
11562 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11565 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11579 acl_save_prefix="$prefix"
11580 prefix="$acl_final_prefix"
11581 acl_save_exec_prefix="$exec_prefix"
11582 exec_prefix="$acl_final_exec_prefix"
11584 eval additional_includedir=\"$includedir\"
11585 eval additional_libdir=\"$libdir\"
11587 exec_prefix="$acl_save_exec_prefix"
11588 prefix="$acl_save_prefix"
11591 # Check whether --with-libipt-prefix was given.
11592 if test "${with_libipt_prefix+set}" = set; then :
11593 withval=$with_libipt_prefix;
11594 if test "X$withval" = "Xno"; then
11597 if test "X$withval" = "X"; then
11599 acl_save_prefix="$prefix"
11600 prefix="$acl_final_prefix"
11601 acl_save_exec_prefix="$exec_prefix"
11602 exec_prefix="$acl_final_exec_prefix"
11604 eval additional_includedir=\"$includedir\"
11605 eval additional_libdir=\"$libdir\"
11607 exec_prefix="$acl_save_exec_prefix"
11608 prefix="$acl_save_prefix"
11611 additional_includedir="$withval/include"
11612 additional_libdir="$withval/lib"
11623 names_already_handled=
11624 names_next_round='ipt '
11625 while test -n "$names_next_round"; do
11626 names_this_round="$names_next_round"
11628 for name in $names_this_round; do
11630 for n in $names_already_handled; do
11631 if test "$n" = "$name"; then
11632 already_handled=yes
11636 if test -z "$already_handled"; then
11637 names_already_handled="$names_already_handled $name"
11638 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11639 eval value=\"\$HAVE_LIB$uppername\"
11640 if test -n "$value"; then
11641 if test "$value" = yes; then
11642 eval value=\"\$LIB$uppername\"
11643 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
11644 eval value=\"\$LTLIB$uppername\"
11645 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
11654 if test $use_additional = yes; then
11655 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11656 found_dir="$additional_libdir"
11657 found_so="$additional_libdir/lib$name.$shlibext"
11658 if test -f "$additional_libdir/lib$name.la"; then
11659 found_la="$additional_libdir/lib$name.la"
11662 if test -f "$additional_libdir/lib$name.$libext"; then
11663 found_dir="$additional_libdir"
11664 found_a="$additional_libdir/lib$name.$libext"
11665 if test -f "$additional_libdir/lib$name.la"; then
11666 found_la="$additional_libdir/lib$name.la"
11671 if test "X$found_dir" = "X"; then
11672 for x in $LDFLAGS $LTLIBIPT; do
11674 acl_save_prefix="$prefix"
11675 prefix="$acl_final_prefix"
11676 acl_save_exec_prefix="$exec_prefix"
11677 exec_prefix="$acl_final_exec_prefix"
11679 exec_prefix="$acl_save_exec_prefix"
11680 prefix="$acl_save_prefix"
11684 dir=`echo "X$x" | sed -e 's/^X-L//'`
11685 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11687 found_so="$dir/lib$name.$shlibext"
11688 if test -f "$dir/lib$name.la"; then
11689 found_la="$dir/lib$name.la"
11692 if test -f "$dir/lib$name.$libext"; then
11694 found_a="$dir/lib$name.$libext"
11695 if test -f "$dir/lib$name.la"; then
11696 found_la="$dir/lib$name.la"
11702 if test "X$found_dir" != "X"; then
11707 if test "X$found_dir" != "X"; then
11708 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11709 if test "X$found_so" != "X"; then
11710 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11711 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11714 for x in $ltrpathdirs; do
11715 if test "X$x" = "X$found_dir"; then
11720 if test -z "$haveit"; then
11721 ltrpathdirs="$ltrpathdirs $found_dir"
11723 if test "$hardcode_direct" = yes; then
11724 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11726 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11727 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11729 for x in $rpathdirs; do
11730 if test "X$x" = "X$found_dir"; then
11735 if test -z "$haveit"; then
11736 rpathdirs="$rpathdirs $found_dir"
11740 for x in $LDFLAGS $LIBIPT; do
11742 acl_save_prefix="$prefix"
11743 prefix="$acl_final_prefix"
11744 acl_save_exec_prefix="$exec_prefix"
11745 exec_prefix="$acl_final_exec_prefix"
11747 exec_prefix="$acl_save_exec_prefix"
11748 prefix="$acl_save_prefix"
11750 if test "X$x" = "X-L$found_dir"; then
11755 if test -z "$haveit"; then
11756 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11758 if test "$hardcode_minus_L" != no; then
11759 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11761 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11767 if test "X$found_a" != "X"; then
11768 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
11770 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11773 additional_includedir=
11774 case "$found_dir" in
11776 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11777 additional_includedir="$basedir/include"
11780 if test "X$additional_includedir" != "X"; then
11781 if test "X$additional_includedir" != "X/usr/include"; then
11783 if test "X$additional_includedir" = "X/usr/local/include"; then
11784 if test -n "$GCC"; then
11786 linux*) haveit=yes;;
11790 if test -z "$haveit"; then
11791 for x in $CPPFLAGS $INCIPT; do
11793 acl_save_prefix="$prefix"
11794 prefix="$acl_final_prefix"
11795 acl_save_exec_prefix="$exec_prefix"
11796 exec_prefix="$acl_final_exec_prefix"
11798 exec_prefix="$acl_save_exec_prefix"
11799 prefix="$acl_save_prefix"
11801 if test "X$x" = "X-I$additional_includedir"; then
11806 if test -z "$haveit"; then
11807 if test -d "$additional_includedir"; then
11808 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11814 if test -n "$found_la"; then
11815 save_libdir="$libdir"
11816 case "$found_la" in
11817 */* | *\\*) . "$found_la" ;;
11818 *) . "./$found_la" ;;
11820 libdir="$save_libdir"
11821 for dep in $dependency_libs; do
11824 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11825 if test "X$additional_libdir" != "X/usr/lib"; then
11827 if test "X$additional_libdir" = "X/usr/local/lib"; then
11828 if test -n "$GCC"; then
11830 linux*) haveit=yes;;
11834 if test -z "$haveit"; then
11836 for x in $LDFLAGS $LIBIPT; do
11838 acl_save_prefix="$prefix"
11839 prefix="$acl_final_prefix"
11840 acl_save_exec_prefix="$exec_prefix"
11841 exec_prefix="$acl_final_exec_prefix"
11843 exec_prefix="$acl_save_exec_prefix"
11844 prefix="$acl_save_prefix"
11846 if test "X$x" = "X-L$additional_libdir"; then
11851 if test -z "$haveit"; then
11852 if test -d "$additional_libdir"; then
11853 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11857 for x in $LDFLAGS $LTLIBIPT; do
11859 acl_save_prefix="$prefix"
11860 prefix="$acl_final_prefix"
11861 acl_save_exec_prefix="$exec_prefix"
11862 exec_prefix="$acl_final_exec_prefix"
11864 exec_prefix="$acl_save_exec_prefix"
11865 prefix="$acl_save_prefix"
11867 if test "X$x" = "X-L$additional_libdir"; then
11872 if test -z "$haveit"; then
11873 if test -d "$additional_libdir"; then
11874 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11881 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11882 if test "$enable_rpath" != no; then
11884 for x in $rpathdirs; do
11885 if test "X$x" = "X$dir"; then
11890 if test -z "$haveit"; then
11891 rpathdirs="$rpathdirs $dir"
11894 for x in $ltrpathdirs; do
11895 if test "X$x" = "X$dir"; then
11900 if test -z "$haveit"; then
11901 ltrpathdirs="$ltrpathdirs $dir"
11906 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11909 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11912 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
11913 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11919 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11920 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11926 if test "X$rpathdirs" != "X"; then
11927 if test -n "$hardcode_libdir_separator"; then
11929 for found_dir in $rpathdirs; do
11930 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11932 acl_save_libdir="$libdir"
11934 eval flag=\"$hardcode_libdir_flag_spec\"
11935 libdir="$acl_save_libdir"
11936 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11938 for found_dir in $rpathdirs; do
11939 acl_save_libdir="$libdir"
11940 libdir="$found_dir"
11941 eval flag=\"$hardcode_libdir_flag_spec\"
11942 libdir="$acl_save_libdir"
11943 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11947 if test "X$ltrpathdirs" != "X"; then
11948 for found_dir in $ltrpathdirs; do
11949 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11954 ac_save_CPPFLAGS="$CPPFLAGS"
11956 for element in $INCIPT; do
11958 for x in $CPPFLAGS; do
11960 acl_save_prefix="$prefix"
11961 prefix="$acl_final_prefix"
11962 acl_save_exec_prefix="$exec_prefix"
11963 exec_prefix="$acl_final_exec_prefix"
11965 exec_prefix="$acl_save_exec_prefix"
11966 prefix="$acl_save_prefix"
11968 if test "X$x" = "X$element"; then
11973 if test -z "$haveit"; then
11974 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11980 $as_echo_n "checking for libipt... " >&6; }
11981 if ${ac_cv_libipt+:} false; then :
11982 $as_echo_n "(cached) " >&6
11985 ac_save_LIBS="$LIBS"
11986 LIBS="$LIBS $LIBIPT"
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989 #include "intel-pt.h"
11993 pt_insn_alloc_decoder (0);
11998 if ac_fn_c_try_link "$LINENO"; then :
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS="$ac_save_LIBS"
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
12009 $as_echo "$ac_cv_libipt" >&6; }
12010 if test "$ac_cv_libipt" = yes; then
12013 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
12016 $as_echo_n "checking how to link with libipt... " >&6; }
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
12018 $as_echo "$LIBIPT" >&6; }
12021 CPPFLAGS="$ac_save_CPPFLAGS"
12031 if test "$HAVE_LIBIPT" != yes; then
12032 if test "$with_intel_pt" = yes; then
12033 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
12036 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
12040 LIBS="$LIBS $LIBIPT"
12041 for ac_func in pt_insn_event
12043 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
12044 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
12045 cat >>confdefs.h <<_ACEOF
12046 #define HAVE_PT_INSN_EVENT 1
12052 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
12054 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
12056 cat >>confdefs.h <<_ACEOF
12057 #define HAVE_STRUCT_PT_INSN_ENABLED 1
12062 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
12064 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
12066 cat >>confdefs.h <<_ACEOF
12067 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
12077 # ------------------------- #
12078 # Checks for header files. #
12079 # ------------------------- #
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12082 $as_echo_n "checking for ANSI C header files... " >&6; }
12083 if ${ac_cv_header_stdc+:} false; then :
12084 $as_echo_n "(cached) " >&6
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088 #include <stdlib.h>
12089 #include <stdarg.h>
12090 #include <string.h>
12101 if ac_fn_c_try_compile "$LINENO"; then :
12102 ac_cv_header_stdc=yes
12104 ac_cv_header_stdc=no
12106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 if test $ac_cv_header_stdc = yes; then
12109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h. */
12112 #include <string.h>
12115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12116 $EGREP "memchr" >/dev/null 2>&1; then :
12119 ac_cv_header_stdc=no
12125 if test $ac_cv_header_stdc = yes; then
12126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12129 #include <stdlib.h>
12132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12133 $EGREP "free" >/dev/null 2>&1; then :
12136 ac_cv_header_stdc=no
12142 if test $ac_cv_header_stdc = yes; then
12143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12144 if test "$cross_compiling" = yes; then :
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12150 #include <stdlib.h>
12151 #if ((' ' & 0x0FF) == 0x020)
12152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12155 # define ISLOWER(c) \
12156 (('a' <= (c) && (c) <= 'i') \
12157 || ('j' <= (c) && (c) <= 'r') \
12158 || ('s' <= (c) && (c) <= 'z'))
12159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12167 for (i = 0; i < 256; i++)
12168 if (XOR (islower (i), ISLOWER (i))
12169 || toupper (i) != TOUPPER (i))
12174 if ac_fn_c_try_run "$LINENO"; then :
12177 ac_cv_header_stdc=no
12179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12180 conftest.$ac_objext conftest.beam conftest.$ac_ext
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12186 $as_echo "$ac_cv_header_stdc" >&6; }
12187 if test $ac_cv_header_stdc = yes; then
12189 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12193 # elf_hp.h is for HP/UX 64-bit shared library support.
12194 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12196 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12197 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12198 sys/reg.h sys/debugreg.h sys/select.h \
12199 termios.h elf_hp.h \
12202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12203 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12204 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12205 cat >>confdefs.h <<_ACEOF
12206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12213 for ac_header in sys/user.h
12215 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12216 # include <sys/param.h>
12220 if test "x$ac_cv_header_sys_user_h" = xyes; then :
12221 cat >>confdefs.h <<_ACEOF
12222 #define HAVE_SYS_USER_H 1
12230 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
12232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12233 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12234 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12235 cat >>confdefs.h <<_ACEOF
12236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12243 for ac_header in term.h
12245 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12246 # include <curses.h>
12250 if test "x$ac_cv_header_term_h" = xyes; then :
12251 cat >>confdefs.h <<_ACEOF
12252 #define HAVE_TERM_H 1
12260 # ------------------------- #
12261 # Checks for declarations. #
12262 # ------------------------- #
12265 # Check for presence and size of long long.
12266 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12267 if test "x$ac_cv_type_long_long" = xyes; then :
12269 cat >>confdefs.h <<_ACEOF
12270 #define HAVE_LONG_LONG 1
12273 # The cast to long int works around a bug in the HP C Compiler
12274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12276 # This bug is HP SR number 8606223364.
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12278 $as_echo_n "checking size of long long... " >&6; }
12279 if ${ac_cv_sizeof_long_long+:} false; then :
12280 $as_echo_n "(cached) " >&6
12282 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12285 if test "$ac_cv_type_long_long" = yes; then
12286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12288 as_fn_error 77 "cannot compute sizeof (long long)
12289 See \`config.log' for more details" "$LINENO" 5; }
12291 ac_cv_sizeof_long_long=0
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12297 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12301 cat >>confdefs.h <<_ACEOF
12302 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12309 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12310 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12311 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12317 cat >>confdefs.h <<_ACEOF
12318 #define HAVE_DECL_BASENAME $ac_have_decl
12320 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12321 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12327 cat >>confdefs.h <<_ACEOF
12328 #define HAVE_DECL_FFS $ac_have_decl
12330 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12331 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12337 cat >>confdefs.h <<_ACEOF
12338 #define HAVE_DECL_ASPRINTF $ac_have_decl
12340 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12341 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12347 cat >>confdefs.h <<_ACEOF
12348 #define HAVE_DECL_VASPRINTF $ac_have_decl
12350 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12351 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12357 cat >>confdefs.h <<_ACEOF
12358 #define HAVE_DECL_SNPRINTF $ac_have_decl
12360 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12361 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12367 cat >>confdefs.h <<_ACEOF
12368 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12371 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12372 if test "x$ac_cv_have_decl_strtol" = xyes; then :
12378 cat >>confdefs.h <<_ACEOF
12379 #define HAVE_DECL_STRTOL $ac_have_decl
12381 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12382 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
12388 cat >>confdefs.h <<_ACEOF
12389 #define HAVE_DECL_STRTOUL $ac_have_decl
12391 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12392 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
12398 cat >>confdefs.h <<_ACEOF
12399 #define HAVE_DECL_STRTOLL $ac_have_decl
12401 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12402 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
12408 cat >>confdefs.h <<_ACEOF
12409 #define HAVE_DECL_STRTOULL $ac_have_decl
12412 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12413 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12419 cat >>confdefs.h <<_ACEOF
12420 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12425 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12426 if test "x$ac_cv_have_decl_free" = xyes; then :
12432 cat >>confdefs.h <<_ACEOF
12433 #define HAVE_DECL_FREE $ac_have_decl
12435 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
12436 if test "x$ac_cv_have_decl_malloc" = xyes; then :
12442 cat >>confdefs.h <<_ACEOF
12443 #define HAVE_DECL_MALLOC $ac_have_decl
12445 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
12446 if test "x$ac_cv_have_decl_realloc" = xyes; then :
12452 cat >>confdefs.h <<_ACEOF
12453 #define HAVE_DECL_REALLOC $ac_have_decl
12455 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12456 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12462 cat >>confdefs.h <<_ACEOF
12463 #define HAVE_DECL_SNPRINTF $ac_have_decl
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12468 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12469 if ${am_cv_val_LC_MESSAGES+:} false; then :
12470 $as_echo_n "(cached) " >&6
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474 #include <locale.h>
12483 if ac_fn_c_try_link "$LINENO"; then :
12484 am_cv_val_LC_MESSAGES=yes
12486 am_cv_val_LC_MESSAGES=no
12488 rm -f core conftest.err conftest.$ac_objext \
12489 conftest$ac_exeext conftest.$ac_ext
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12492 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12493 if test $am_cv_val_LC_MESSAGES = yes; then
12495 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12500 # ----------------------- #
12501 # Checks for structures. #
12502 # ----------------------- #
12504 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12505 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
12507 cat >>confdefs.h <<_ACEOF
12508 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12513 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12514 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12524 # ------------------ #
12525 # Checks for types. #
12526 # ------------------ #
12528 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12529 #include <sys/socket.h>
12532 if test "x$ac_cv_type_socklen_t" = xyes; then :
12534 cat >>confdefs.h <<_ACEOF
12535 #define HAVE_SOCKLEN_T 1
12542 # ------------------------------------- #
12543 # Checks for compiler characteristics. #
12544 # ------------------------------------- #
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12547 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12548 if ${ac_cv_c_const+:} false; then :
12549 $as_echo_n "(cached) " >&6
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12558 #ifndef __cplusplus
12559 /* Ultrix mips cc rejects this sort of thing. */
12560 typedef int charset[2];
12561 const charset cs = { 0, 0 };
12562 /* SunOS 4.1.1 cc rejects this. */
12563 char const *const *pcpcc;
12565 /* NEC SVR4.0.2 mips cc rejects this. */
12566 struct point {int x, y;};
12567 static struct point const zero = {0,0};
12568 /* AIX XL C 1.02.0.0 rejects this.
12569 It does not let you subtract one const X* pointer from another in
12570 an arm of an if-expression whose if-part is not a constant
12572 const char *g = "string";
12573 pcpcc = &g + (g ? g-g : 0);
12574 /* HPUX 7.0 cc rejects these. */
12576 ppc = (char**) pcpcc;
12577 pcpcc = (char const *const *) ppc;
12578 { /* SCO 3.2v4 cc rejects this sort of thing. */
12581 char const *s = 0 ? (char *) 0 : (char const *) 0;
12586 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12587 int x[] = {25, 17};
12588 const int *foo = &x[0];
12591 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12592 typedef const int *iptr;
12596 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12597 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12598 struct s { int j; const int *ap[3]; } bx;
12599 struct s *b = &bx; b->j = 5;
12601 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12602 const int foo = 10;
12603 if (!foo) return 0;
12605 return !cs[0] && !zero.x;
12612 if ac_fn_c_try_compile "$LINENO"; then :
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12620 $as_echo "$ac_cv_c_const" >&6; }
12621 if test $ac_cv_c_const = no; then
12623 $as_echo "#define const /**/" >>confdefs.h
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12628 $as_echo_n "checking for inline... " >&6; }
12629 if ${ac_cv_c_inline+:} false; then :
12630 $as_echo_n "(cached) " >&6
12633 for ac_kw in inline __inline__ __inline; do
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12636 #ifndef __cplusplus
12638 static $ac_kw foo_t static_foo () {return 0; }
12639 $ac_kw foo_t foo () {return 0; }
12643 if ac_fn_c_try_compile "$LINENO"; then :
12644 ac_cv_c_inline=$ac_kw
12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647 test "$ac_cv_c_inline" != no && break
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12652 $as_echo "$ac_cv_c_inline" >&6; }
12654 case $ac_cv_c_inline in
12657 case $ac_cv_c_inline in
12659 *) ac_val=$ac_cv_c_inline;;
12661 cat >>confdefs.h <<_ACEOF
12662 #ifndef __cplusplus
12663 #define inline $ac_val
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12670 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12671 if ${ac_cv_c_bigendian+:} false; then :
12672 $as_echo_n "(cached) " >&6
12674 ac_cv_c_bigendian=unknown
12675 # See if we're dealing with a universal compiler.
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678 #ifndef __APPLE_CC__
12679 not a universal capable compiler
12684 if ac_fn_c_try_compile "$LINENO"; then :
12686 # Check for potential -arch flags. It is not universal unless
12687 # there are at least two -arch flags with different values.
12690 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12691 if test -n "$ac_prev"; then
12693 i?86 | x86_64 | ppc | ppc64)
12694 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12697 ac_cv_c_bigendian=universal
12703 elif test "x$ac_word" = "x-arch"; then
12708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12709 if test $ac_cv_c_bigendian = unknown; then
12710 # See if sys/param.h defines the BYTE_ORDER macro.
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12713 #include <sys/types.h>
12714 #include <sys/param.h>
12719 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12720 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12722 bogus endian macros
12729 if ac_fn_c_try_compile "$LINENO"; then :
12730 # It does; now see whether it defined to BIG_ENDIAN or not.
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12733 #include <sys/types.h>
12734 #include <sys/param.h>
12739 #if BYTE_ORDER != BIG_ENDIAN
12747 if ac_fn_c_try_compile "$LINENO"; then :
12748 ac_cv_c_bigendian=yes
12750 ac_cv_c_bigendian=no
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 if test $ac_cv_c_bigendian = unknown; then
12757 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760 #include <limits.h>
12765 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12766 bogus endian macros
12773 if ac_fn_c_try_compile "$LINENO"; then :
12774 # It does; now see whether it defined to _BIG_ENDIAN or not.
12775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12777 #include <limits.h>
12782 #ifndef _BIG_ENDIAN
12790 if ac_fn_c_try_compile "$LINENO"; then :
12791 ac_cv_c_bigendian=yes
12793 ac_cv_c_bigendian=no
12795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799 if test $ac_cv_c_bigendian = unknown; then
12800 # Compile a test program.
12801 if test "$cross_compiling" = yes; then :
12802 # Try to guess by grepping values from an object file.
12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12805 short int ascii_mm[] =
12806 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12807 short int ascii_ii[] =
12808 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12809 int use_ascii (int i) {
12810 return ascii_mm[i] + ascii_ii[i];
12812 short int ebcdic_ii[] =
12813 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12814 short int ebcdic_mm[] =
12815 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12816 int use_ebcdic (int i) {
12817 return ebcdic_mm[i] + ebcdic_ii[i];
12824 return use_ascii (foo) == use_ebcdic (foo);
12829 if ac_fn_c_try_compile "$LINENO"; then :
12830 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12831 ac_cv_c_bigendian=yes
12833 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12834 if test "$ac_cv_c_bigendian" = unknown; then
12835 ac_cv_c_bigendian=no
12837 # finding both strings is unlikely to happen, but who knows?
12838 ac_cv_c_bigendian=unknown
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 $ac_includes_default
12851 /* Are we little or big endian? From Harbison&Steele. */
12855 char c[sizeof (long int)];
12858 return u.c[sizeof (long int) - 1] == 1;
12864 if ac_fn_c_try_run "$LINENO"; then :
12865 ac_cv_c_bigendian=no
12867 ac_cv_c_bigendian=yes
12869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12870 conftest.$ac_objext conftest.beam conftest.$ac_ext
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12876 $as_echo "$ac_cv_c_bigendian" >&6; }
12877 case $ac_cv_c_bigendian in #(
12879 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12885 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12889 as_fn_error $? "unknown endianness
12890 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12894 # ------------------------------ #
12895 # Checks for library functions. #
12896 # ------------------------------ #
12901 for ac_header in $ac_header_list
12903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12904 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12907 cat >>confdefs.h <<_ACEOF
12908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12922 for ac_func in getpagesize
12924 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12925 if test "x$ac_cv_func_getpagesize" = xyes; then :
12926 cat >>confdefs.h <<_ACEOF
12927 #define HAVE_GETPAGESIZE 1
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12934 $as_echo_n "checking for working mmap... " >&6; }
12935 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12936 $as_echo_n "(cached) " >&6
12938 if test "$cross_compiling" = yes; then :
12939 ac_cv_func_mmap_fixed_mapped=no
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12943 $ac_includes_default
12944 /* malloc might have been renamed as rpl_malloc. */
12947 /* Thanks to Mike Haertel and Jim Avera for this test.
12948 Here is a matrix of mmap possibilities:
12949 mmap private not fixed
12950 mmap private fixed at somewhere currently unmapped
12951 mmap private fixed at somewhere already mapped
12952 mmap shared not fixed
12953 mmap shared fixed at somewhere currently unmapped
12954 mmap shared fixed at somewhere already mapped
12955 For private mappings, we should verify that changes cannot be read()
12956 back from the file, nor mmap's back from the file at a different
12957 address. (There have been systems where private was not correctly
12958 implemented like the infamous i386 svr4.0, and systems where the
12959 VM page cache was not coherent with the file system buffer cache
12960 like early versions of FreeBSD and possibly contemporary NetBSD.)
12961 For shared mappings, we should conversely verify that changes get
12962 propagated back to all the places they're supposed to be.
12964 Grep wants private fixed already mapped.
12965 The main things grep needs to know about mmap are:
12966 * does it exist and is it safe to write into the mmap'd area
12967 * how to use it (BSD variants) */
12970 #include <sys/mman.h>
12972 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12976 /* This mess was copied from the GNU getpagesize.h. */
12977 #ifndef HAVE_GETPAGESIZE
12978 # ifdef _SC_PAGESIZE
12979 # define getpagesize() sysconf(_SC_PAGESIZE)
12980 # else /* no _SC_PAGESIZE */
12981 # ifdef HAVE_SYS_PARAM_H
12982 # include <sys/param.h>
12983 # ifdef EXEC_PAGESIZE
12984 # define getpagesize() EXEC_PAGESIZE
12985 # else /* no EXEC_PAGESIZE */
12987 # define getpagesize() NBPG * CLSIZE
12990 # endif /* no CLSIZE */
12991 # else /* no NBPG */
12993 # define getpagesize() NBPC
12994 # else /* no NBPC */
12996 # define getpagesize() PAGESIZE
12997 # endif /* PAGESIZE */
12998 # endif /* no NBPC */
12999 # endif /* no NBPG */
13000 # endif /* no EXEC_PAGESIZE */
13001 # else /* no HAVE_SYS_PARAM_H */
13002 # define getpagesize() 8192 /* punt totally */
13003 # endif /* no HAVE_SYS_PARAM_H */
13004 # endif /* no _SC_PAGESIZE */
13006 #endif /* no HAVE_GETPAGESIZE */
13011 char *data, *data2, *data3;
13012 const char *cdata2;
13016 pagesize = getpagesize ();
13018 /* First, make a file with some known garbage in it. */
13019 data = (char *) malloc (pagesize);
13022 for (i = 0; i < pagesize; ++i)
13023 *(data + i) = rand ();
13025 fd = creat ("conftest.mmap", 0600);
13028 if (write (fd, data, pagesize) != pagesize)
13032 /* Next, check that the tail of a page is zero-filled. File must have
13033 non-zero length, otherwise we risk SIGBUS for entire page. */
13034 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13038 if (write (fd2, cdata2, 1) != 1)
13040 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13041 if (data2 == MAP_FAILED)
13043 for (i = 0; i < pagesize; ++i)
13047 if (munmap (data2, pagesize))
13050 /* Next, try to mmap the file at a fixed address which already has
13051 something else allocated at it. If we can, also make sure that
13052 we see the same garbage. */
13053 fd = open ("conftest.mmap", O_RDWR);
13056 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13057 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13059 for (i = 0; i < pagesize; ++i)
13060 if (*(data + i) != *(data2 + i))
13063 /* Finally, make sure that changes to the mapped area do not
13064 percolate back to the file as seen by read(). (This is a bug on
13065 some variants of i386 svr4.0.) */
13066 for (i = 0; i < pagesize; ++i)
13067 *(data2 + i) = *(data2 + i) + 1;
13068 data3 = (char *) malloc (pagesize);
13071 if (read (fd, data3, pagesize) != pagesize)
13073 for (i = 0; i < pagesize; ++i)
13074 if (*(data + i) != *(data3 + i))
13080 if ac_fn_c_try_run "$LINENO"; then :
13081 ac_cv_func_mmap_fixed_mapped=yes
13083 ac_cv_func_mmap_fixed_mapped=no
13085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13086 conftest.$ac_objext conftest.beam conftest.$ac_ext
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13091 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13092 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13094 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13097 rm -f conftest.mmap conftest.txt
13099 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13100 if test "x$ac_cv_type_pid_t" = xyes; then :
13104 cat >>confdefs.h <<_ACEOF
13110 for ac_header in vfork.h
13112 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13113 if test "x$ac_cv_header_vfork_h" = xyes; then :
13114 cat >>confdefs.h <<_ACEOF
13115 #define HAVE_VFORK_H 1
13122 for ac_func in fork vfork
13124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13125 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13126 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13127 cat >>confdefs.h <<_ACEOF
13128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13134 if test "x$ac_cv_func_fork" = xyes; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13136 $as_echo_n "checking for working fork... " >&6; }
13137 if ${ac_cv_func_fork_works+:} false; then :
13138 $as_echo_n "(cached) " >&6
13140 if test "$cross_compiling" = yes; then :
13141 ac_cv_func_fork_works=cross
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13145 $ac_includes_default
13150 /* By Ruediger Kuhlmann. */
13151 return fork () < 0;
13157 if ac_fn_c_try_run "$LINENO"; then :
13158 ac_cv_func_fork_works=yes
13160 ac_cv_func_fork_works=no
13162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13163 conftest.$ac_objext conftest.beam conftest.$ac_ext
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13168 $as_echo "$ac_cv_func_fork_works" >&6; }
13171 ac_cv_func_fork_works=$ac_cv_func_fork
13173 if test "x$ac_cv_func_fork_works" = xcross; then
13175 *-*-amigaos* | *-*-msdosdjgpp*)
13176 # Override, as these systems have only a dummy fork() stub
13177 ac_cv_func_fork_works=no
13180 ac_cv_func_fork_works=yes
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13184 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13186 ac_cv_func_vfork_works=$ac_cv_func_vfork
13187 if test "x$ac_cv_func_vfork" = xyes; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13189 $as_echo_n "checking for working vfork... " >&6; }
13190 if ${ac_cv_func_vfork_works+:} false; then :
13191 $as_echo_n "(cached) " >&6
13193 if test "$cross_compiling" = yes; then :
13194 ac_cv_func_vfork_works=cross
13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h. */
13198 /* Thanks to Paul Eggert for this test. */
13199 $ac_includes_default
13200 #include <sys/wait.h>
13201 #ifdef HAVE_VFORK_H
13202 # include <vfork.h>
13204 /* On some sparc systems, changes by the child to local and incoming
13205 argument registers are propagated back to the parent. The compiler
13206 is told about this with #include <vfork.h>, but some compilers
13207 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13208 static variable whose address is put into a register that is
13209 clobbered by the vfork. */
13212 sparc_address_test (int arg)
13214 sparc_address_test (arg) int arg;
13217 static pid_t child;
13235 pid_t parent = getpid ();
13238 sparc_address_test (0);
13243 /* Here is another test for sparc vfork register problems. This
13244 test uses lots of local variables, at least as many local
13245 variables as main has allocated so far including compiler
13246 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13247 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13248 reuse the register of parent for one of the local variables,
13249 since it will think that parent can't possibly be used any more
13250 in this routine. Assigning to the local variable will thus
13251 munge parent in the parent process. */
13253 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13254 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13255 /* Convince the compiler that p..p7 are live; otherwise, it might
13256 use the same hardware register for all 8 local variables. */
13257 if (p != p1 || p != p2 || p != p3 || p != p4
13258 || p != p5 || p != p6 || p != p7)
13261 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13262 from child file descriptors. If the child closes a descriptor
13263 before it execs or exits, this munges the parent's descriptor
13264 as well. Test for this by closing stdout in the child. */
13265 _exit(close(fileno(stdout)) != 0);
13270 while (wait(&status) != child)
13273 /* Was there some problem with vforking? */
13276 /* Did the child fail? (This shouldn't happen.) */
13279 /* Did the vfork/compiler bug occur? */
13280 || parent != getpid()
13282 /* Did the file descriptor bug occur? */
13283 || fstat(fileno(stdout), &st) != 0
13288 if ac_fn_c_try_run "$LINENO"; then :
13289 ac_cv_func_vfork_works=yes
13291 ac_cv_func_vfork_works=no
13293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13294 conftest.$ac_objext conftest.beam conftest.$ac_ext
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13299 $as_echo "$ac_cv_func_vfork_works" >&6; }
13302 if test "x$ac_cv_func_fork_works" = xcross; then
13303 ac_cv_func_vfork_works=$ac_cv_func_vfork
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13305 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13308 if test "x$ac_cv_func_vfork_works" = xyes; then
13310 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13314 $as_echo "#define vfork fork" >>confdefs.h
13317 if test "x$ac_cv_func_fork_works" = xyes; then
13319 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13323 for ac_func in getauxval getrusage getuid getgid \
13324 pipe poll pread pread64 pwrite resize_term \
13325 sbrk getpgid setpgid setpgrp setsid \
13326 sigaction sigprocmask sigsetmask socketpair \
13327 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13328 setrlimit getrlimit posix_madvise waitpid \
13329 ptrace64 sigaltstack mkdtemp setns
13331 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13332 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13333 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13334 cat >>confdefs.h <<_ACEOF
13335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13343 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13344 if ${am_cv_langinfo_codeset+:} false; then :
13345 $as_echo_n "(cached) " >&6
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349 #include <langinfo.h>
13353 char* cs = nl_langinfo(CODESET);
13358 if ac_fn_c_try_link "$LINENO"; then :
13359 am_cv_langinfo_codeset=yes
13361 am_cv_langinfo_codeset=no
13363 rm -f core conftest.err conftest.$ac_objext \
13364 conftest$ac_exeext conftest.$ac_ext
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13368 $as_echo "$am_cv_langinfo_codeset" >&6; }
13369 if test $am_cv_langinfo_codeset = yes; then
13371 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13375 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13376 if test "x$ac_cv_type_size_t" = xyes; then :
13380 cat >>confdefs.h <<_ACEOF
13381 #define size_t unsigned int
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13388 $as_echo_n "checking for ANSI C header files... " >&6; }
13389 if ${ac_cv_header_stdc+:} false; then :
13390 $as_echo_n "(cached) " >&6
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 #include <stdlib.h>
13395 #include <stdarg.h>
13396 #include <string.h>
13407 if ac_fn_c_try_compile "$LINENO"; then :
13408 ac_cv_header_stdc=yes
13410 ac_cv_header_stdc=no
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414 if test $ac_cv_header_stdc = yes; then
13415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418 #include <string.h>
13421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13422 $EGREP "memchr" >/dev/null 2>&1; then :
13425 ac_cv_header_stdc=no
13431 if test $ac_cv_header_stdc = yes; then
13432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h. */
13435 #include <stdlib.h>
13438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13439 $EGREP "free" >/dev/null 2>&1; then :
13442 ac_cv_header_stdc=no
13448 if test $ac_cv_header_stdc = yes; then
13449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13450 if test "$cross_compiling" = yes; then :
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13456 #include <stdlib.h>
13457 #if ((' ' & 0x0FF) == 0x020)
13458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13461 # define ISLOWER(c) \
13462 (('a' <= (c) && (c) <= 'i') \
13463 || ('j' <= (c) && (c) <= 'r') \
13464 || ('s' <= (c) && (c) <= 'z'))
13465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13473 for (i = 0; i < 256; i++)
13474 if (XOR (islower (i), ISLOWER (i))
13475 || toupper (i) != TOUPPER (i))
13480 if ac_fn_c_try_run "$LINENO"; then :
13483 ac_cv_header_stdc=no
13485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13486 conftest.$ac_objext conftest.beam conftest.$ac_ext
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13492 $as_echo "$ac_cv_header_stdc" >&6; }
13493 if test $ac_cv_header_stdc = yes; then
13495 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13499 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13500 # for constant arguments. Useless!
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13502 $as_echo_n "checking for working alloca.h... " >&6; }
13503 if ${ac_cv_working_alloca_h+:} false; then :
13504 $as_echo_n "(cached) " >&6
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508 #include <alloca.h>
13512 char *p = (char *) alloca (2 * sizeof (int));
13518 if ac_fn_c_try_link "$LINENO"; then :
13519 ac_cv_working_alloca_h=yes
13521 ac_cv_working_alloca_h=no
13523 rm -f core conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13527 $as_echo "$ac_cv_working_alloca_h" >&6; }
13528 if test $ac_cv_working_alloca_h = yes; then
13530 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13535 $as_echo_n "checking for alloca... " >&6; }
13536 if ${ac_cv_func_alloca_works+:} false; then :
13537 $as_echo_n "(cached) " >&6
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13542 # define alloca __builtin_alloca
13545 # include <malloc.h>
13546 # define alloca _alloca
13548 # ifdef HAVE_ALLOCA_H
13549 # include <alloca.h>
13554 # ifndef alloca /* predefined by HP cc +Olibcalls */
13555 void *alloca (size_t);
13565 char *p = (char *) alloca (1);
13571 if ac_fn_c_try_link "$LINENO"; then :
13572 ac_cv_func_alloca_works=yes
13574 ac_cv_func_alloca_works=no
13576 rm -f core conftest.err conftest.$ac_objext \
13577 conftest$ac_exeext conftest.$ac_ext
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13580 $as_echo "$ac_cv_func_alloca_works" >&6; }
13582 if test $ac_cv_func_alloca_works = yes; then
13584 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13587 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13588 # that cause trouble. Some versions do not even contain alloca or
13589 # contain a buggy version. If you still want to use their alloca,
13590 # use ar to extract alloca.o from them instead of compiling alloca.c.
13592 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13594 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13598 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13599 if ${ac_cv_os_cray+:} false; then :
13600 $as_echo_n "(cached) " >&6
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604 #if defined CRAY && ! defined CRAY2
13611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13612 $EGREP "webecray" >/dev/null 2>&1; then :
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13621 $as_echo "$ac_cv_os_cray" >&6; }
13622 if test $ac_cv_os_cray = yes; then
13623 for ac_func in _getb67 GETB67 getb67; do
13624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13625 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13626 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13628 cat >>confdefs.h <<_ACEOF
13629 #define CRAY_STACKSEG_END $ac_func
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13639 $as_echo_n "checking stack direction for C alloca... " >&6; }
13640 if ${ac_cv_c_stack_direction+:} false; then :
13641 $as_echo_n "(cached) " >&6
13643 if test "$cross_compiling" = yes; then :
13644 ac_cv_c_stack_direction=0
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648 $ac_includes_default
13650 find_stack_direction (int *addr, int depth)
13652 int dir, dummy = 0;
13655 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13656 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13657 return dir + dummy;
13661 main (int argc, char **argv)
13663 return find_stack_direction (0, argc + !argv + 20) < 0;
13666 if ac_fn_c_try_run "$LINENO"; then :
13667 ac_cv_c_stack_direction=1
13669 ac_cv_c_stack_direction=-1
13671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13672 conftest.$ac_objext conftest.beam conftest.$ac_ext
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13677 $as_echo "$ac_cv_c_stack_direction" >&6; }
13678 cat >>confdefs.h <<_ACEOF
13679 #define STACK_DIRECTION $ac_cv_c_stack_direction
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13688 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13689 if ${am_cv_langinfo_codeset+:} false; then :
13690 $as_echo_n "(cached) " >&6
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 #include <langinfo.h>
13698 char* cs = nl_langinfo(CODESET);
13703 if ac_fn_c_try_link "$LINENO"; then :
13704 am_cv_langinfo_codeset=yes
13706 am_cv_langinfo_codeset=no
13708 rm -f core conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13713 $as_echo "$am_cv_langinfo_codeset" >&6; }
13714 if test $am_cv_langinfo_codeset = yes; then
13716 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13721 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
13723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13724 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13725 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13726 cat >>confdefs.h <<_ACEOF
13727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13735 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
13737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13738 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13739 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13740 cat >>confdefs.h <<_ACEOF
13741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13748 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13749 if test "x$ac_cv_have_decl_strerror" = xyes; then :
13755 cat >>confdefs.h <<_ACEOF
13756 #define HAVE_DECL_STRERROR $ac_have_decl
13758 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13759 if test "x$ac_cv_have_decl_strstr" = xyes; then :
13765 cat >>confdefs.h <<_ACEOF
13766 #define HAVE_DECL_STRSTR $ac_have_decl
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13771 $as_echo_n "checking for sigsetjmp... " >&6; }
13772 if ${gdb_cv_func_sigsetjmp+:} false; then :
13773 $as_echo_n "(cached) " >&6
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13778 #include <setjmp.h>
13783 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13788 if ac_fn_c_try_compile "$LINENO"; then :
13789 gdb_cv_func_sigsetjmp=yes
13791 gdb_cv_func_sigsetjmp=no
13793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13796 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13797 if test $gdb_cv_func_sigsetjmp = yes; then
13799 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13804 # Check the return and argument types of ptrace.
13807 for ac_header in sys/ptrace.h ptrace.h
13809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13810 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13812 cat >>confdefs.h <<_ACEOF
13813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13821 gdb_ptrace_headers='
13822 #include <sys/types.h>
13823 #if HAVE_SYS_PTRACE_H
13824 # include <sys/ptrace.h>
13827 # include <unistd.h>
13830 # There is no point in checking if we don't have a prototype.
13831 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13833 if test "x$ac_cv_have_decl_ptrace" = xyes; then :
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_DECL_PTRACE $ac_have_decl
13842 if test $ac_have_decl = 1; then :
13846 : ${gdb_cv_func_ptrace_ret='int'}
13847 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13851 # Check return type. Varargs (used on GNU/Linux) conflict with the
13852 # empty argument list, so check for that explicitly.
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13854 $as_echo_n "checking return type of ptrace... " >&6; }
13855 if ${gdb_cv_func_ptrace_ret+:} false; then :
13856 $as_echo_n "(cached) " >&6
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860 $gdb_ptrace_headers
13864 extern long ptrace (enum __ptrace_request, ...);
13869 if ac_fn_c_try_compile "$LINENO"; then :
13870 gdb_cv_func_ptrace_ret='long'
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874 $gdb_ptrace_headers
13878 extern int ptrace ();
13883 if ac_fn_c_try_compile "$LINENO"; then :
13884 gdb_cv_func_ptrace_ret='int'
13886 gdb_cv_func_ptrace_ret='long'
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13893 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13895 cat >>confdefs.h <<_ACEOF
13896 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13899 # Check argument types.
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13901 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13902 if ${gdb_cv_func_ptrace_args+:} false; then :
13903 $as_echo_n "(cached) " >&6
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13908 $gdb_ptrace_headers
13912 extern long ptrace (enum __ptrace_request, ...);
13917 if ac_fn_c_try_compile "$LINENO"; then :
13918 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
13921 for gdb_arg1 in 'int' 'long'; do
13922 for gdb_arg2 in 'pid_t' 'int' 'long'; do
13923 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13924 for gdb_arg4 in 'int' 'long' 'void *'; do
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h. */
13927 $gdb_ptrace_headers
13932 extern $gdb_cv_func_ptrace_ret
13933 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13939 if ac_fn_c_try_compile "$LINENO"; then :
13940 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944 for gdb_arg5 in 'int *' 'int' 'long'; do
13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946 /* end confdefs.h. */
13947 $gdb_ptrace_headers
13952 extern $gdb_cv_func_ptrace_ret
13953 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13959 if ac_fn_c_try_compile "$LINENO"; then :
13961 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 # Provide a safe default value.
13971 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13977 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13978 ac_save_IFS=$IFS; IFS=','
13979 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13983 cat >>confdefs.h <<_ACEOF
13984 #define PTRACE_TYPE_ARG1 $1
13988 cat >>confdefs.h <<_ACEOF
13989 #define PTRACE_TYPE_ARG3 $3
13993 cat >>confdefs.h <<_ACEOF
13994 #define PTRACE_TYPE_ARG4 $4
13997 if test -n "$5"; then
13999 cat >>confdefs.h <<_ACEOF
14000 #define PTRACE_TYPE_ARG5 $5
14006 if test "$cross_compiling" = no; then
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14008 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14009 if ${ac_cv_func_setpgrp_void+:} false; then :
14010 $as_echo_n "(cached) " >&6
14012 if test "$cross_compiling" = yes; then :
14013 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14017 $ac_includes_default
14021 /* If this system has a BSD-style setpgrp which takes arguments,
14022 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14023 exit successfully. */
14024 return setpgrp (1,1) != -1;
14029 if ac_fn_c_try_run "$LINENO"; then :
14030 ac_cv_func_setpgrp_void=no
14032 ac_cv_func_setpgrp_void=yes
14034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14035 conftest.$ac_objext conftest.beam conftest.$ac_ext
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14040 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14041 if test $ac_cv_func_setpgrp_void = yes; then
14043 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14049 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14050 if ${ac_cv_func_setpgrp_void+:} false; then :
14051 $as_echo_n "(cached) " >&6
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14056 #include <unistd.h>
14062 if (setpgrp(1,1) == -1)
14071 if ac_fn_c_try_compile "$LINENO"; then :
14072 ac_cv_func_setpgrp_void=no
14074 ac_cv_func_setpgrp_void=yes
14076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14079 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14080 if test $ac_cv_func_setpgrp_void = yes; then
14081 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14086 # Assume we'll default to using the included libiberty regex.
14087 gdb_use_included_regex=yes
14089 # However, if the system regex is GNU regex, then default to *not*
14090 # using the included regex.
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14092 $as_echo_n "checking for GNU regex... " >&6; }
14093 if ${gdb_cv_have_gnu_regex+:} false; then :
14094 $as_echo_n "(cached) " >&6
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098 #include <gnu-versions.h>
14102 #define REGEX_INTERFACE_VERSION 1
14103 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14104 # error "Version mismatch"
14110 if ac_fn_c_try_compile "$LINENO"; then :
14111 gdb_cv_have_gnu_regex=yes
14113 gdb_cv_have_gnu_regex=no
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14118 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14119 if test $gdb_cv_have_gnu_regex = yes; then
14120 gdb_use_included_regex=no
14124 # Check whether --with-included-regex was given.
14125 if test "${with_included_regex+set}" = set; then :
14126 withval=$with_included_regex; gdb_with_regex=$withval
14128 gdb_with_regex=$gdb_use_included_regex
14131 if test "$gdb_with_regex" = yes; then
14133 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14137 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14138 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14139 #include <sys/proc.h>
14142 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
14144 cat >>confdefs.h <<_ACEOF
14145 #define HAVE_STRUCT_THREAD_TD_PCB 1
14152 # See if <sys/lwp.h> defines `struct lwp`.
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14154 $as_echo_n "checking for struct lwp... " >&6; }
14155 if ${gdb_cv_struct_lwp+:} false; then :
14156 $as_echo_n "(cached) " >&6
14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159 /* end confdefs.h. */
14160 #include <sys/param.h>
14162 #include <sys/lwp.h>
14171 if ac_fn_c_try_compile "$LINENO"; then :
14172 gdb_cv_struct_lwp=yes
14174 gdb_cv_struct_lwp=no
14176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14179 $as_echo "$gdb_cv_struct_lwp" >&6; }
14180 if test $gdb_cv_struct_lwp = yes; then
14182 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14186 # See if <machine/reg.h> degines `struct reg'.
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14188 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14189 if ${gdb_cv_struct_reg+:} false; then :
14190 $as_echo_n "(cached) " >&6
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14194 #include <sys/types.h>
14195 #include <machine/reg.h>
14204 if ac_fn_c_try_compile "$LINENO"; then :
14205 gdb_cv_struct_reg=yes
14207 gdb_cv_struct_reg=no
14209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14212 $as_echo "$gdb_cv_struct_reg" >&6; }
14213 if test $gdb_cv_struct_reg = yes; then
14215 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14219 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14220 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14221 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14222 #include <machine/reg.h>
14224 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
14226 cat >>confdefs.h <<_ACEOF
14227 #define HAVE_STRUCT_REG_R_FS 1
14232 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14233 #include <machine/reg.h>
14235 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
14237 cat >>confdefs.h <<_ACEOF
14238 #define HAVE_STRUCT_REG_R_GS 1
14245 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14246 # Older amd64 Linux's don't have the fs_base and gs_base members of
14247 # `struct user_regs_struct'.
14248 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>
14249 #include <sys/user.h>
14251 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
14253 cat >>confdefs.h <<_ACEOF
14254 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14259 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>
14260 #include <sys/user.h>
14262 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
14264 cat >>confdefs.h <<_ACEOF
14265 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14272 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14274 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14275 if ${gdb_cv_have_ptrace_getregs+:} false; then :
14276 $as_echo_n "(cached) " >&6
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14280 #include <sys/ptrace.h>
14289 if ac_fn_c_try_compile "$LINENO"; then :
14290 gdb_cv_have_ptrace_getregs=yes
14292 gdb_cv_have_ptrace_getregs=no
14294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14298 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14299 if test $gdb_cv_have_ptrace_getregs = yes; then
14301 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14305 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14307 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14308 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
14309 $as_echo_n "(cached) " >&6
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 #include <sys/ptrace.h>
14322 if ac_fn_c_try_compile "$LINENO"; then :
14323 gdb_cv_have_ptrace_getfpxregs=yes
14325 gdb_cv_have_ptrace_getfpxregs=no
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14331 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14332 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14334 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14338 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14340 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14341 if ${gdb_cv_have_pt_getdbregs+:} false; then :
14342 $as_echo_n "(cached) " >&6
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14346 #include <sys/types.h>
14347 #include <sys/ptrace.h>
14356 if ac_fn_c_try_compile "$LINENO"; then :
14357 gdb_cv_have_pt_getdbregs=yes
14359 gdb_cv_have_pt_getdbregs=no
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14365 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14366 if test $gdb_cv_have_pt_getdbregs = yes; then
14368 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14372 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14374 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14375 if ${gdb_cv_have_pt_getxmmregs+:} false; then :
14376 $as_echo_n "(cached) " >&6
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14380 #include <sys/types.h>
14381 #include <sys/ptrace.h>
14390 if ac_fn_c_try_compile "$LINENO"; then :
14391 gdb_cv_have_pt_getxmmregs=yes
14393 gdb_cv_have_pt_getxmmregs=no
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14399 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14400 if test $gdb_cv_have_pt_getxmmregs = yes; then
14402 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14406 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14407 # Older FreeBSD versions don't have the pl_tdname member of
14408 # `struct ptrace_lwpinfo'.
14409 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14411 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
14413 cat >>confdefs.h <<_ACEOF
14414 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14421 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14422 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14424 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>
14426 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
14428 cat >>confdefs.h <<_ACEOF
14429 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14436 if test "$ac_cv_header_sys_procfs_h" = yes; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14438 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14439 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
14440 $as_echo_n "(cached) " >&6
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14446 /* Needed for new procfs interface on sparc-solaris. */
14447 #define _STRUCTURED_PROC 1
14448 #include <sys/procfs.h>
14457 if ac_fn_c_try_compile "$LINENO"; then :
14458 bfd_cv_have_sys_procfs_type_gregset_t=yes
14460 bfd_cv_have_sys_procfs_type_gregset_t=no
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14468 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14472 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14475 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14476 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
14477 $as_echo_n "(cached) " >&6
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14483 /* Needed for new procfs interface on sparc-solaris. */
14484 #define _STRUCTURED_PROC 1
14485 #include <sys/procfs.h>
14494 if ac_fn_c_try_compile "$LINENO"; then :
14495 bfd_cv_have_sys_procfs_type_fpregset_t=yes
14497 bfd_cv_have_sys_procfs_type_fpregset_t=no
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14505 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14509 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14512 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14513 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
14514 $as_echo_n "(cached) " >&6
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14520 /* Needed for new procfs interface on sparc-solaris. */
14521 #define _STRUCTURED_PROC 1
14522 #include <sys/procfs.h>
14531 if ac_fn_c_try_compile "$LINENO"; then :
14532 bfd_cv_have_sys_procfs_type_prgregset_t=yes
14534 bfd_cv_have_sys_procfs_type_prgregset_t=no
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14542 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14546 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14549 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14550 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
14551 $as_echo_n "(cached) " >&6
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14557 /* Needed for new procfs interface on sparc-solaris. */
14558 #define _STRUCTURED_PROC 1
14559 #include <sys/procfs.h>
14568 if ac_fn_c_try_compile "$LINENO"; then :
14569 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
14571 bfd_cv_have_sys_procfs_type_prfpregset_t=no
14574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14579 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14583 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14586 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14587 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
14588 $as_echo_n "(cached) " >&6
14590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h. */
14594 /* Needed for new procfs interface on sparc-solaris. */
14595 #define _STRUCTURED_PROC 1
14596 #include <sys/procfs.h>
14605 if ac_fn_c_try_compile "$LINENO"; then :
14606 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
14608 bfd_cv_have_sys_procfs_type_prgregset32_t=no
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14616 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14620 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14623 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14624 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
14625 $as_echo_n "(cached) " >&6
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h. */
14631 /* Needed for new procfs interface on sparc-solaris. */
14632 #define _STRUCTURED_PROC 1
14633 #include <sys/procfs.h>
14642 if ac_fn_c_try_compile "$LINENO"; then :
14643 bfd_cv_have_sys_procfs_type_lwpid_t=yes
14645 bfd_cv_have_sys_procfs_type_lwpid_t=no
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14653 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14657 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14660 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14661 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
14662 $as_echo_n "(cached) " >&6
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h. */
14668 /* Needed for new procfs interface on sparc-solaris. */
14669 #define _STRUCTURED_PROC 1
14670 #include <sys/procfs.h>
14679 if ac_fn_c_try_compile "$LINENO"; then :
14680 bfd_cv_have_sys_procfs_type_psaddr_t=yes
14682 bfd_cv_have_sys_procfs_type_psaddr_t=no
14685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14688 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14690 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14694 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14699 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14701 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14702 if ${gdb_cv_prfpregset_t_broken+:} false; then :
14703 $as_echo_n "(cached) " >&6
14705 if test "$cross_compiling" = yes; then :
14706 gdb_cv_prfpregset_t_broken=yes
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710 #include <sys/procfs.h>
14713 if (sizeof (prfpregset_t) == sizeof (void *))
14718 if ac_fn_c_try_run "$LINENO"; then :
14719 gdb_cv_prfpregset_t_broken=no
14721 gdb_cv_prfpregset_t_broken=yes
14723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14724 conftest.$ac_objext conftest.beam conftest.$ac_ext
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14730 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14731 if test $gdb_cv_prfpregset_t_broken = yes; then
14733 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14739 # Check if the compiler supports the `long long' type.
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14742 $as_echo_n "checking for long long support in compiler... " >&6; }
14743 if ${gdb_cv_c_long_long+:} false; then :
14744 $as_echo_n "(cached) " >&6
14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14748 extern long long foo;
14752 switch (foo & 2) { case 0: return 1; }
14757 if ac_fn_c_try_compile "$LINENO"; then :
14758 gdb_cv_c_long_long=yes
14760 gdb_cv_c_long_long=no
14762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14765 $as_echo "$gdb_cv_c_long_long" >&6; }
14766 if test $gdb_cv_c_long_long != yes; then
14767 # libdecnumber requires long long.
14768 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
14771 # Check if the compiler and runtime support printing long longs.
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14774 $as_echo_n "checking for long long support in printf... " >&6; }
14775 if ${gdb_cv_printf_has_long_long+:} false; then :
14776 $as_echo_n "(cached) " >&6
14778 if test "$cross_compiling" = yes; then :
14779 gdb_cv_printf_has_long_long=no
14781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14783 $ac_includes_default
14789 l = (l << 16) + 0x0123;
14790 l = (l << 16) + 0x4567;
14791 l = (l << 16) + 0x89ab;
14792 l = (l << 16) + 0xcdef;
14793 sprintf (buf, "0x%016llx", l);
14794 return (strcmp ("0x0123456789abcdef", buf));
14799 if ac_fn_c_try_run "$LINENO"; then :
14800 gdb_cv_printf_has_long_long=yes
14802 gdb_cv_printf_has_long_long=no
14804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14805 conftest.$ac_objext conftest.beam conftest.$ac_ext
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14810 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14811 if test $gdb_cv_printf_has_long_long = yes; then
14813 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14817 # Check if the compiler and runtime support printing decfloats.
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14820 $as_echo_n "checking for decfloat support in printf... " >&6; }
14821 if ${gdb_cv_printf_has_decfloat+:} false; then :
14822 $as_echo_n "(cached) " >&6
14824 if test "$cross_compiling" = yes; then :
14825 gdb_cv_printf_has_decfloat=no
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14829 $ac_includes_default
14834 _Decimal32 d32 = 1.2345df;
14835 _Decimal64 d64 = 1.2345dd;
14836 _Decimal128 d128 = 1.2345dl;
14837 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14838 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14843 if ac_fn_c_try_run "$LINENO"; then :
14844 gdb_cv_printf_has_decfloat=yes
14846 gdb_cv_printf_has_decfloat=no
14848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14849 conftest.$ac_objext conftest.beam conftest.$ac_ext
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14854 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14855 if test $gdb_cv_printf_has_decfloat = yes; then
14857 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14861 # Check if the compiler supports the `long double' type. We can't use
14862 # AC_C_LONG_DOUBLE because that one does additional checks on the
14863 # constants defined in <float.h> that fail on some systems,
14864 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14867 $as_echo_n "checking for long double support in compiler... " >&6; }
14868 if ${gdb_cv_c_long_double+:} false; then :
14869 $as_echo_n "(cached) " >&6
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14875 if ac_fn_c_try_compile "$LINENO"; then :
14876 gdb_cv_c_long_double=yes
14878 gdb_cv_c_long_double=no
14880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14883 $as_echo "$gdb_cv_c_long_double" >&6; }
14884 if test $gdb_cv_c_long_double = yes; then
14886 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14890 # Check if the compiler and runtime support printing long doubles.
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14893 $as_echo_n "checking for long double support in printf... " >&6; }
14894 if ${gdb_cv_printf_has_long_double+:} false; then :
14895 $as_echo_n "(cached) " >&6
14897 if test "$cross_compiling" = yes; then :
14898 gdb_cv_printf_has_long_double=no
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902 $ac_includes_default
14907 long double f = 3.141592653;
14908 sprintf (buf, "%Lg", f);
14909 return (strncmp ("3.14159", buf, 7));
14914 if ac_fn_c_try_run "$LINENO"; then :
14915 gdb_cv_printf_has_long_double=yes
14917 gdb_cv_printf_has_long_double=no
14919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14920 conftest.$ac_objext conftest.beam conftest.$ac_ext
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14925 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14926 if test $gdb_cv_printf_has_long_double = yes; then
14928 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14932 # Check if the compiler and runtime support scanning long doubles.
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14935 $as_echo_n "checking for long double support in scanf... " >&6; }
14936 if ${gdb_cv_scanf_has_long_double+:} false; then :
14937 $as_echo_n "(cached) " >&6
14939 if test "$cross_compiling" = yes; then :
14940 gdb_cv_scanf_has_long_double=no
14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14948 char *buf = "3.141592653";
14950 sscanf (buf, "%Lg", &f);
14951 return !(f > 3.14159 && f < 3.14160);
14956 if ac_fn_c_try_run "$LINENO"; then :
14957 gdb_cv_scanf_has_long_double=yes
14959 gdb_cv_scanf_has_long_double=no
14961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14962 conftest.$ac_objext conftest.beam conftest.$ac_ext
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14967 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14968 if test $gdb_cv_scanf_has_long_double = yes; then
14970 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14977 $as_echo_n "checking for -bbigtoc option... " >&6; }
14978 if ${gdb_cv_bigtoc+:} false; then :
14979 $as_echo_n "(cached) " >&6
14982 SAVE_LDFLAGS=$LDFLAGS
14985 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14986 *) gdb_cv_bigtoc=-bbigtoc ;;
14989 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
15001 if ac_fn_c_try_link "$LINENO"; then :
15006 rm -f core conftest.err conftest.$ac_objext \
15007 conftest$ac_exeext conftest.$ac_ext
15008 LDFLAGS="${SAVE_LDFLAGS}"
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
15012 $as_echo "$gdb_cv_bigtoc" >&6; }
15013 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15018 $as_echo_n "checking for the dynamic export flag... " >&6; }
15020 if test "${gdb_native}" = yes; then
15021 # The dynamically loaded libthread_db needs access to symbols in the gdb
15022 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15023 # may not be supported there.
15024 old_LDFLAGS="$LDFLAGS"
15025 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15026 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15027 LDFLAGS="$LDFLAGS $RDYNAMIC"
15028 if test "${have_libpython}" = no; then
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15040 if ac_fn_c_try_link "$LINENO"; then :
15043 rm -f core conftest.err conftest.$ac_objext \
15044 conftest$ac_exeext conftest.$ac_ext
15046 # Workaround http://bugs.python.org/issue4434 where static
15047 # libpythonX.Y.a would get its symbols required for
15048 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15049 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15051 # Note the workaround for Python
15052 # http://bugs.python.org/issue10112 earlier has removed
15053 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15054 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15056 old_CFLAGS="$CFLAGS"
15057 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
15059 LIBS="$LIBS $PYTHON_LIBS"
15060 old_CPPFLAGS="$CPPFLAGS"
15061 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15062 if test "$cross_compiling" = yes; then :
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15067 #include "Python.h"
15073 err = PyRun_SimpleString ("import itertools\n");
15075 return err == 0 ? 0 : 1;
15080 if ac_fn_c_try_run "$LINENO"; then :
15083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15084 conftest.$ac_objext conftest.beam conftest.$ac_ext
15088 CFLAGS="$old_CFLAGS"
15089 CPPFLAGS="$old_CPPFLAGS"
15091 LDFLAGS="$old_LDFLAGS"
15093 if $dynamic_list; then
15094 found="-Wl,--dynamic-list"
15095 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15098 RDYNAMIC="-rdynamic"
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15102 $as_echo "$found" >&6; }
15105 if test ${build} = ${host} -a ${host} = ${target} ; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15109 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15110 if ${gdb_cv_have_aix_thread_debug+:} false; then :
15111 $as_echo_n "(cached) " >&6
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15115 #include <sys/pthdebug.h>
15119 #ifndef PTHDB_VERSION_3
15126 if ac_fn_c_try_compile "$LINENO"; then :
15127 gdb_cv_have_aix_thread_debug=yes
15129 gdb_cv_have_aix_thread_debug=no
15131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15135 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15136 if test $gdb_cv_have_aix_thread_debug = yes; then
15137 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
15138 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
15139 LIBS="$LIBS -lpthdebug"
15141 # Older versions of AIX do not provide the declaration for
15142 # the getthrds function (it appears that it was introduced
15144 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15146 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
15152 cat >>confdefs.h <<_ACEOF
15153 #define HAVE_DECL_GETTHRDS $ac_have_decl
15162 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15164 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15165 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
15166 $as_echo_n "(cached) " >&6
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15170 #include <thread_db.h>
15174 int i = TD_NOTALLOC;
15179 if ac_fn_c_try_compile "$LINENO"; then :
15180 gdb_cv_thread_db_h_has_td_notalloc=yes
15182 gdb_cv_thread_db_h_has_td_notalloc=no
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15189 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15191 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15192 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
15193 $as_echo_n "(cached) " >&6
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15197 #include <thread_db.h>
15201 int i = TD_VERSION;
15206 if ac_fn_c_try_compile "$LINENO"; then :
15207 gdb_cv_thread_db_h_has_td_version=yes
15209 gdb_cv_thread_db_h_has_td_version=no
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15216 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15218 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15219 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
15220 $as_echo_n "(cached) " >&6
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224 #include <thread_db.h>
15233 if ac_fn_c_try_compile "$LINENO"; then :
15234 gdb_cv_thread_db_h_has_td_notls=yes
15236 gdb_cv_thread_db_h_has_td_notls=no
15239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15243 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15245 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15247 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15250 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15252 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15255 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15257 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15261 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15263 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
15269 cat >>confdefs.h <<_ACEOF
15270 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15274 if test "$cross_compiling" = yes; then :
15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h. */
15277 #include <sys/personality.h>
15282 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15283 # define ADDR_NO_RANDOMIZE 0x0040000
15285 /* Test the flag could be set and stays set. */
15286 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15287 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15293 if ac_fn_c_try_link "$LINENO"; then :
15294 have_personality=true
15296 have_personality=false
15298 rm -f core conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext conftest.$ac_ext
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15303 #include <sys/personality.h>
15308 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15309 # define ADDR_NO_RANDOMIZE 0x0040000
15311 /* Test the flag could be set and stays set. */
15312 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15313 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15319 if ac_fn_c_try_run "$LINENO"; then :
15320 have_personality=true
15322 have_personality=false
15324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15325 conftest.$ac_objext conftest.beam conftest.$ac_ext
15328 if $have_personality
15331 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15344 cat >>confdefs.h <<_ACEOF
15345 #define GDBINIT "$gdbinit"
15350 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15351 # except that the argument to --with-sysroot is optional.
15352 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15353 if test "x$with_sysroot" = xyes; then
15354 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
15357 # Check whether --with-sysroot was given.
15358 if test "${with_sysroot+set}" = set; then :
15359 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
15361 TARGET_SYSTEM_ROOT=
15365 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15367 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
15368 ac_define_dir=`eval echo $ac_define_dir`
15370 cat >>confdefs.h <<_ACEOF
15371 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15377 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15378 if test "x$prefix" = xNONE; then
15379 test_prefix=/usr/local
15381 test_prefix=$prefix
15384 test_prefix=$exec_prefix
15387 case ${ac_define_dir} in
15388 "${test_prefix}"|"${test_prefix}/"*|\
15389 '${exec_prefix}'|'${exec_prefix}/'*)
15394 cat >>confdefs.h <<_ACEOF
15395 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15402 # Check whether --with-system-gdbinit was given.
15403 if test "${with_system_gdbinit+set}" = set; then :
15404 withval=$with_system_gdbinit;
15405 SYSTEM_GDBINIT=$withval
15411 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15412 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15413 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
15414 ac_define_dir=`eval echo $ac_define_dir`
15416 cat >>confdefs.h <<_ACEOF
15417 #define SYSTEM_GDBINIT "$ac_define_dir"
15423 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15424 if test "x$prefix" = xNONE; then
15425 test_prefix=/usr/local
15427 test_prefix=$prefix
15430 test_prefix=$exec_prefix
15433 case ${ac_define_dir} in
15434 "${test_prefix}"|"${test_prefix}/"*|\
15435 '${exec_prefix}'|'${exec_prefix}/'*)
15440 cat >>confdefs.h <<_ACEOF
15441 #define SYSTEM_GDBINIT_RELOCATABLE $value
15448 # Check whether --enable-werror was given.
15449 if test "${enable_werror+set}" = set; then :
15450 enableval=$enable_werror; case "${enableval}" in
15451 yes | y) ERROR_ON_WARNING="yes" ;;
15452 no | n) ERROR_ON_WARNING="no" ;;
15453 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15458 # Enable -Werror by default when using gcc. Turn it off for releases.
15459 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15460 ERROR_ON_WARNING=yes
15464 if test "${ERROR_ON_WARNING}" = yes ; then
15465 WERROR_CFLAGS="-Werror"
15468 # The options we'll try to enable.
15469 build_warnings="-Wall -Wpointer-arith \
15470 -Wno-unused -Wunused-value -Wunused-function \
15471 -Wno-switch -Wno-char-subscripts \
15472 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15473 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
15474 -Wno-mismatched-tags \
15475 -Wno-error=deprecated-register \
15476 -Wsuggest-override \
15477 -Wimplicit-fallthrough=3 \
15482 # Enable -Wno-format by default when using gcc on mingw since many
15483 # GCC versions complain about %I64.
15484 build_warnings="$build_warnings -Wno-format" ;;
15486 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15487 # doesn't understand.
15488 build_warnings="$build_warnings -Wno-unknown-pragmas"
15489 # Solaris 11 <unistd.h> marks vfork deprecated.
15490 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
15491 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
15494 # Check whether --enable-build-warnings was given.
15495 if test "${enable_build_warnings+set}" = set; then :
15496 enableval=$enable_build_warnings; case "${enableval}" in
15498 no) build_warnings="-w";;
15499 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15500 build_warnings="${build_warnings} ${t}";;
15501 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15502 build_warnings="${t} ${build_warnings}";;
15503 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15505 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15506 echo "Setting compiler warning flags = $build_warnings" 6>&1
15509 # Check whether --enable-gdb-build-warnings was given.
15510 if test "${enable_gdb_build_warnings+set}" = set; then :
15511 enableval=$enable_gdb_build_warnings; case "${enableval}" in
15513 no) build_warnings="-w";;
15514 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15515 build_warnings="${build_warnings} ${t}";;
15516 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15517 build_warnings="${t} ${build_warnings}";;
15518 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15520 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15521 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15525 # The set of warnings supported by a C++ compiler is not the same as
15526 # of the C compiler.
15528 ac_cpp='$CXXCPP $CPPFLAGS'
15529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15535 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15538 $as_echo_n "checking compiler warning flags... " >&6; }
15539 # Separate out the -Werror flag as some files just cannot be
15540 # compiled with it enabled.
15541 for w in ${build_warnings}; do
15542 # GCC does not complain about -Wno-unknown-warning. Invert
15543 # and test -Wunknown-warning instead.
15546 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
15552 -Werr*) WERROR_CFLAGS=-Werror ;;
15554 # Check whether GCC accepts it.
15555 saved_CFLAGS="$CFLAGS"
15556 CFLAGS="$CFLAGS -Werror $wtest"
15557 saved_CXXFLAGS="$CXXFLAGS"
15558 CXXFLAGS="$CXXFLAGS -Werror $wtest"
15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h. */
15570 if ac_fn_cxx_try_compile "$LINENO"; then :
15571 WARN_CFLAGS="${WARN_CFLAGS} $w"
15573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15574 CFLAGS="$saved_CFLAGS"
15575 CXXFLAGS="$saved_CXXFLAGS"
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15579 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15585 ac_cpp='$CPP $CPPFLAGS'
15586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15592 # In the Cygwin environment, we need some additional flags.
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
15594 $as_echo_n "checking for cygwin... " >&6; }
15595 if ${gdb_cv_os_cygwin+:} false; then :
15596 $as_echo_n "(cached) " >&6
15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15601 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15606 $EGREP "^lose$" >/dev/null 2>&1; then :
15607 gdb_cv_os_cygwin=yes
15609 gdb_cv_os_cygwin=no
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
15615 $as_echo "$gdb_cv_os_cygwin" >&6; }
15618 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
15620 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15621 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15622 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
15626 # libreadline needs libuser32.a in a cygwin environment
15628 if test x$gdb_cv_os_cygwin = xyes; then
15629 WIN32LIBS="-luser32"
15630 case "${target}" in
15631 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15636 # The ser-tcp.c module requires sockets.
15640 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15642 WIN32LIBS="$WIN32LIBS -lws2_32"
15647 # Add ELF support to GDB, but only if BFD includes ELF support.
15650 OLD_LDFLAGS=$LDFLAGS
15652 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15653 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15654 # always want our bfd.
15655 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15656 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15657 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15658 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15659 LIBS="-lbfd -liberty -lz $intl $LIBS"
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15661 $as_echo_n "checking for ELF support in BFD... " >&6; }
15662 if ${gdb_cv_var_elf+:} false; then :
15663 $as_echo_n "(cached) " >&6
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15667 #include <stdlib.h>
15669 #include "elf-bfd.h"
15674 return bfd_get_elf_phdr_upper_bound (NULL);
15679 if ac_fn_c_try_link "$LINENO"; then :
15684 rm -f core conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15688 $as_echo "$gdb_cv_var_elf" >&6; }
15690 LDFLAGS=$OLD_LDFLAGS
15692 if test $gdb_cv_var_elf = yes; then
15693 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15695 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15697 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15698 if test "$plugins" = "yes"; then
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15700 $as_echo_n "checking for library containing dlopen... " >&6; }
15701 if ${ac_cv_search_dlopen+:} false; then :
15702 $as_echo_n "(cached) " >&6
15704 ac_func_search_save_LIBS=$LIBS
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h. */
15708 /* Override any GCC internal prototype to avoid an error.
15709 Use char because int might match the return type of a GCC
15710 builtin and then its argument prototype would still apply. */
15723 for ac_lib in '' dl; do
15724 if test -z "$ac_lib"; then
15725 ac_res="none required"
15728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15730 if ac_fn_c_try_link "$LINENO"; then :
15731 ac_cv_search_dlopen=$ac_res
15733 rm -f core conftest.err conftest.$ac_objext \
15735 if ${ac_cv_search_dlopen+:} false; then :
15739 if ${ac_cv_search_dlopen+:} false; then :
15742 ac_cv_search_dlopen=no
15744 rm conftest.$ac_ext
15745 LIBS=$ac_func_search_save_LIBS
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15748 $as_echo "$ac_cv_search_dlopen" >&6; }
15749 ac_res=$ac_cv_search_dlopen
15750 if test "$ac_res" != no; then :
15751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15758 # Add macho support to GDB, but only if BFD includes it.
15761 OLD_LDFLAGS=$LDFLAGS
15763 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15764 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15765 # always want our bfd.
15766 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15767 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15768 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15769 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15770 LIBS="-lbfd -liberty -lz $intl $LIBS"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15772 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15773 if ${gdb_cv_var_macho+:} false; then :
15774 $as_echo_n "(cached) " >&6
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 #include <stdlib.h>
15780 #include "mach-o.h"
15785 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15790 if ac_fn_c_try_link "$LINENO"; then :
15791 gdb_cv_var_macho=yes
15793 gdb_cv_var_macho=no
15795 rm -f core conftest.err conftest.$ac_objext \
15796 conftest$ac_exeext conftest.$ac_ext
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15799 $as_echo "$gdb_cv_var_macho" >&6; }
15801 LDFLAGS=$OLD_LDFLAGS
15803 if test $gdb_cv_var_macho = yes; then
15804 CONFIG_OBS="$CONFIG_OBS machoread.o"
15807 # Add any host-specific objects to GDB.
15808 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
15810 # If building on ELF, look for lzma support for embedded compressed debug info.
15811 if test $gdb_cv_var_elf = yes; then
15813 # Check whether --with-lzma was given.
15814 if test "${with_lzma+set}" = set; then :
15815 withval=$with_lzma;
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15821 $as_echo_n "checking whether to use lzma... " >&6; }
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15823 $as_echo "$with_lzma" >&6; }
15825 if test "${with_lzma}" != no; then
15836 acl_save_prefix="$prefix"
15837 prefix="$acl_final_prefix"
15838 acl_save_exec_prefix="$exec_prefix"
15839 exec_prefix="$acl_final_exec_prefix"
15841 eval additional_includedir=\"$includedir\"
15842 eval additional_libdir=\"$libdir\"
15844 exec_prefix="$acl_save_exec_prefix"
15845 prefix="$acl_save_prefix"
15848 # Check whether --with-liblzma-prefix was given.
15849 if test "${with_liblzma_prefix+set}" = set; then :
15850 withval=$with_liblzma_prefix;
15851 if test "X$withval" = "Xno"; then
15854 if test "X$withval" = "X"; then
15856 acl_save_prefix="$prefix"
15857 prefix="$acl_final_prefix"
15858 acl_save_exec_prefix="$exec_prefix"
15859 exec_prefix="$acl_final_exec_prefix"
15861 eval additional_includedir=\"$includedir\"
15862 eval additional_libdir=\"$libdir\"
15864 exec_prefix="$acl_save_exec_prefix"
15865 prefix="$acl_save_prefix"
15868 additional_includedir="$withval/include"
15869 additional_libdir="$withval/lib"
15880 names_already_handled=
15881 names_next_round='lzma '
15882 while test -n "$names_next_round"; do
15883 names_this_round="$names_next_round"
15885 for name in $names_this_round; do
15887 for n in $names_already_handled; do
15888 if test "$n" = "$name"; then
15889 already_handled=yes
15893 if test -z "$already_handled"; then
15894 names_already_handled="$names_already_handled $name"
15895 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15896 eval value=\"\$HAVE_LIB$uppername\"
15897 if test -n "$value"; then
15898 if test "$value" = yes; then
15899 eval value=\"\$LIB$uppername\"
15900 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
15901 eval value=\"\$LTLIB$uppername\"
15902 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15911 if test $use_additional = yes; then
15912 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15913 found_dir="$additional_libdir"
15914 found_so="$additional_libdir/lib$name.$shlibext"
15915 if test -f "$additional_libdir/lib$name.la"; then
15916 found_la="$additional_libdir/lib$name.la"
15919 if test -f "$additional_libdir/lib$name.$libext"; then
15920 found_dir="$additional_libdir"
15921 found_a="$additional_libdir/lib$name.$libext"
15922 if test -f "$additional_libdir/lib$name.la"; then
15923 found_la="$additional_libdir/lib$name.la"
15928 if test "X$found_dir" = "X"; then
15929 for x in $LDFLAGS $LTLIBLZMA; 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"
15941 dir=`echo "X$x" | sed -e 's/^X-L//'`
15942 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15944 found_so="$dir/lib$name.$shlibext"
15945 if test -f "$dir/lib$name.la"; then
15946 found_la="$dir/lib$name.la"
15949 if test -f "$dir/lib$name.$libext"; then
15951 found_a="$dir/lib$name.$libext"
15952 if test -f "$dir/lib$name.la"; then
15953 found_la="$dir/lib$name.la"
15959 if test "X$found_dir" != "X"; then
15964 if test "X$found_dir" != "X"; then
15965 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15966 if test "X$found_so" != "X"; then
15967 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15968 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15971 for x in $ltrpathdirs; do
15972 if test "X$x" = "X$found_dir"; then
15977 if test -z "$haveit"; then
15978 ltrpathdirs="$ltrpathdirs $found_dir"
15980 if test "$hardcode_direct" = yes; then
15981 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15983 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15984 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15986 for x in $rpathdirs; do
15987 if test "X$x" = "X$found_dir"; then
15992 if test -z "$haveit"; then
15993 rpathdirs="$rpathdirs $found_dir"
15997 for x in $LDFLAGS $LIBLZMA; do
15999 acl_save_prefix="$prefix"
16000 prefix="$acl_final_prefix"
16001 acl_save_exec_prefix="$exec_prefix"
16002 exec_prefix="$acl_final_exec_prefix"
16004 exec_prefix="$acl_save_exec_prefix"
16005 prefix="$acl_save_prefix"
16007 if test "X$x" = "X-L$found_dir"; then
16012 if test -z "$haveit"; then
16013 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16015 if test "$hardcode_minus_L" != no; then
16016 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
16018 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
16024 if test "X$found_a" != "X"; then
16025 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
16027 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16030 additional_includedir=
16031 case "$found_dir" in
16033 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16034 additional_includedir="$basedir/include"
16037 if test "X$additional_includedir" != "X"; then
16038 if test "X$additional_includedir" != "X/usr/include"; then
16040 if test "X$additional_includedir" = "X/usr/local/include"; then
16041 if test -n "$GCC"; then
16043 linux*) haveit=yes;;
16047 if test -z "$haveit"; then
16048 for x in $CPPFLAGS $INCLZMA; do
16050 acl_save_prefix="$prefix"
16051 prefix="$acl_final_prefix"
16052 acl_save_exec_prefix="$exec_prefix"
16053 exec_prefix="$acl_final_exec_prefix"
16055 exec_prefix="$acl_save_exec_prefix"
16056 prefix="$acl_save_prefix"
16058 if test "X$x" = "X-I$additional_includedir"; then
16063 if test -z "$haveit"; then
16064 if test -d "$additional_includedir"; then
16065 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16071 if test -n "$found_la"; then
16072 save_libdir="$libdir"
16073 case "$found_la" in
16074 */* | *\\*) . "$found_la" ;;
16075 *) . "./$found_la" ;;
16077 libdir="$save_libdir"
16078 for dep in $dependency_libs; do
16081 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16082 if test "X$additional_libdir" != "X/usr/lib"; then
16084 if test "X$additional_libdir" = "X/usr/local/lib"; then
16085 if test -n "$GCC"; then
16087 linux*) haveit=yes;;
16091 if test -z "$haveit"; then
16093 for x in $LDFLAGS $LIBLZMA; do
16095 acl_save_prefix="$prefix"
16096 prefix="$acl_final_prefix"
16097 acl_save_exec_prefix="$exec_prefix"
16098 exec_prefix="$acl_final_exec_prefix"
16100 exec_prefix="$acl_save_exec_prefix"
16101 prefix="$acl_save_prefix"
16103 if test "X$x" = "X-L$additional_libdir"; then
16108 if test -z "$haveit"; then
16109 if test -d "$additional_libdir"; then
16110 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16114 for x in $LDFLAGS $LTLIBLZMA; do
16116 acl_save_prefix="$prefix"
16117 prefix="$acl_final_prefix"
16118 acl_save_exec_prefix="$exec_prefix"
16119 exec_prefix="$acl_final_exec_prefix"
16121 exec_prefix="$acl_save_exec_prefix"
16122 prefix="$acl_save_prefix"
16124 if test "X$x" = "X-L$additional_libdir"; then
16129 if test -z "$haveit"; then
16130 if test -d "$additional_libdir"; then
16131 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16138 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16139 if test "$enable_rpath" != no; then
16141 for x in $rpathdirs; do
16142 if test "X$x" = "X$dir"; then
16147 if test -z "$haveit"; then
16148 rpathdirs="$rpathdirs $dir"
16151 for x in $ltrpathdirs; do
16152 if test "X$x" = "X$dir"; then
16157 if test -z "$haveit"; then
16158 ltrpathdirs="$ltrpathdirs $dir"
16163 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16166 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16169 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
16170 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16176 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
16177 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16183 if test "X$rpathdirs" != "X"; then
16184 if test -n "$hardcode_libdir_separator"; then
16186 for found_dir in $rpathdirs; do
16187 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16189 acl_save_libdir="$libdir"
16191 eval flag=\"$hardcode_libdir_flag_spec\"
16192 libdir="$acl_save_libdir"
16193 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
16195 for found_dir in $rpathdirs; do
16196 acl_save_libdir="$libdir"
16197 libdir="$found_dir"
16198 eval flag=\"$hardcode_libdir_flag_spec\"
16199 libdir="$acl_save_libdir"
16200 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
16204 if test "X$ltrpathdirs" != "X"; then
16205 for found_dir in $ltrpathdirs; do
16206 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16211 ac_save_CPPFLAGS="$CPPFLAGS"
16213 for element in $INCLZMA; do
16215 for x in $CPPFLAGS; do
16217 acl_save_prefix="$prefix"
16218 prefix="$acl_final_prefix"
16219 acl_save_exec_prefix="$exec_prefix"
16220 exec_prefix="$acl_final_exec_prefix"
16222 exec_prefix="$acl_save_exec_prefix"
16223 prefix="$acl_save_prefix"
16225 if test "X$x" = "X$element"; then
16230 if test -z "$haveit"; then
16231 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16237 $as_echo_n "checking for liblzma... " >&6; }
16238 if ${ac_cv_liblzma+:} false; then :
16239 $as_echo_n "(cached) " >&6
16242 ac_save_LIBS="$LIBS"
16243 LIBS="$LIBS $LIBLZMA"
16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h. */
16250 lzma_index_iter iter;
16251 lzma_index_iter_init (&iter, 0);
16252 lzma_mf_is_supported (LZMA_MF_HC3);
16257 if ac_fn_c_try_link "$LINENO"; then :
16262 rm -f core conftest.err conftest.$ac_objext \
16263 conftest$ac_exeext conftest.$ac_ext
16264 LIBS="$ac_save_LIBS"
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16268 $as_echo "$ac_cv_liblzma" >&6; }
16269 if test "$ac_cv_liblzma" = yes; then
16272 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16275 $as_echo_n "checking how to link with liblzma... " >&6; }
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16277 $as_echo "$LIBLZMA" >&6; }
16280 CPPFLAGS="$ac_save_CPPFLAGS"
16290 if test "$HAVE_LIBLZMA" != yes; then
16291 if test "$with_lzma" = yes; then
16292 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
16298 LIBGUI="../libgui/src/libgui.a"
16299 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
16308 *-*-cygwin* | *-*-mingw* )
16317 if test "${enable_gdbtk}" = "yes"; then
16319 # Gdbtk must have an absolute path to srcdir in order to run
16320 # properly when not installed.
16323 GDBTK_SRC_DIR=`pwd`
16328 # Ok, lets find the tcl configuration
16329 # First, look for one uninstalled.
16330 # the alternative search directory is invoked by --with-tcl
16333 if test x"${no_tcl}" = x ; then
16334 # we reset no_tcl in case something fails here
16337 # Check whether --with-tcl was given.
16338 if test "${with_tcl+set}" = set; then :
16339 withval=$with_tcl; with_tclconfig=${withval}
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16343 $as_echo_n "checking for Tcl configuration... " >&6; }
16344 if ${ac_cv_c_tclconfig+:} false; then :
16345 $as_echo_n "(cached) " >&6
16349 # First check to see if --with-tcl was specified.
16351 *-*-cygwin*) platDir="win" ;;
16352 *) platDir="unix" ;;
16354 if test x"${with_tclconfig}" != x ; then
16355 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16356 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
16358 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16362 # then check for a private Tcl installation
16363 if test x"${ac_cv_c_tclconfig}" = x ; then
16366 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16367 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16368 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16370 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16371 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16372 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16374 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16375 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16376 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16377 if test -f "$i/$platDir/tclConfig.sh" ; then
16378 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16384 # on Darwin, check in Framework installation locations
16385 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
16386 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16387 `ls -d /Library/Frameworks 2>/dev/null` \
16388 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16389 `ls -d /System/Library/Frameworks 2>/dev/null` \
16391 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16392 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
16398 # check in a few common install locations
16399 if test x"${ac_cv_c_tclconfig}" = x ; then
16400 for i in `ls -d ${libdir} 2>/dev/null` \
16401 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16402 `ls -d ${prefix}/lib 2>/dev/null` \
16403 `ls -d /usr/local/lib 2>/dev/null` \
16404 `ls -d /usr/contrib/lib 2>/dev/null` \
16405 `ls -d /usr/lib 2>/dev/null` \
16407 if test -f "$i/tclConfig.sh" ; then
16408 ac_cv_c_tclconfig=`(cd $i; pwd)`
16414 # check in a few other private locations
16415 if test x"${ac_cv_c_tclconfig}" = x ; then
16418 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16419 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16420 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16421 if test -f "$i/$platDir/tclConfig.sh" ; then
16422 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16431 if test x"${ac_cv_c_tclconfig}" = x ; then
16432 TCL_BIN_DIR="# no Tcl configs found"
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16434 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16437 TCL_BIN_DIR=${ac_cv_c_tclconfig}
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16439 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16444 # If $no_tk is nonempty, then we can't do Tk, and there is no
16445 # point to doing Tcl.
16448 # Ok, lets find the tk configuration
16449 # First, look for one uninstalled.
16450 # the alternative search directory is invoked by --with-tk
16453 if test x"${no_tk}" = x ; then
16454 # we reset no_tk in case something fails here
16457 # Check whether --with-tk was given.
16458 if test "${with_tk+set}" = set; then :
16459 withval=$with_tk; with_tkconfig=${withval}
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16463 $as_echo_n "checking for Tk configuration... " >&6; }
16464 if ${ac_cv_c_tkconfig+:} false; then :
16465 $as_echo_n "(cached) " >&6
16469 # First check to see if --with-tkconfig was specified.
16470 if test x"${with_tkconfig}" != x ; then
16471 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16472 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
16474 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16478 # then check for a private Tk library
16480 *-*-cygwin*) platDir="win" ;;
16481 *) platDir="unix" ;;
16483 if test x"${ac_cv_c_tkconfig}" = x ; then
16486 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16487 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16488 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16490 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16491 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16492 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16494 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16495 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16496 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16497 if test -f "$i/$platDir/tkConfig.sh" ; then
16498 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16504 # on Darwin, check in Framework installation locations
16505 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
16506 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16507 `ls -d /Library/Frameworks 2>/dev/null` \
16508 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16509 `ls -d /System/Library/Frameworks 2>/dev/null` \
16511 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16512 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
16518 # check in a few common install locations
16519 if test x"${ac_cv_c_tkconfig}" = x ; then
16520 for i in `ls -d ${libdir} 2>/dev/null` \
16521 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16522 `ls -d ${prefix}/lib 2>/dev/null` \
16523 `ls -d /usr/local/lib 2>/dev/null` \
16524 `ls -d /usr/contrib/lib 2>/dev/null` \
16525 `ls -d /usr/lib 2>/dev/null` \
16527 if test -f "$i/tkConfig.sh" ; then
16528 ac_cv_c_tkconfig=`(cd $i; pwd)`
16533 # check in a few other private locations
16534 if test x"${ac_cv_c_tkconfig}" = x ; then
16537 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16538 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16539 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16540 if test -f "$i/$platDir/tkConfig.sh" ; then
16541 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16550 if test x"${ac_cv_c_tkconfig}" = x ; then
16551 TK_BIN_DIR="# no Tk configs found"
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16553 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16556 TK_BIN_DIR=${ac_cv_c_tkconfig}
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16558 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16563 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16566 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16568 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16570 $as_echo "loading" >&6; }
16571 . ${TCL_BIN_DIR}/tclConfig.sh
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16574 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16577 # eval is required to do the TCL_DBGX substitution
16578 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16579 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16581 # If the TCL_BIN_DIR is the build directory (not the install directory),
16582 # then set the common variable name to the value of the build variables.
16583 # For example, the variable TCL_LIB_SPEC will be set to the value
16584 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16585 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16586 # installed and uninstalled version of Tcl.
16587 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16588 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
16589 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
16590 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
16591 elif test "`uname -s`" = "Darwin"; then
16592 # If Tcl was built as a framework, attempt to use the libraries
16593 # from the framework at the given location so that linking works
16594 # against Tcl.framework installed in an arbitrary location.
16595 case ${TCL_DEFS} in
16597 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16598 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
16599 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16600 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16601 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16606 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16607 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16608 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16614 # eval is required to do the TCL_DBGX substitution
16615 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16616 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16617 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16618 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16634 # Check for in-tree tcl
16641 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16645 # Find Tcl private headers
16646 if test x"${intree}" = xno; then
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16649 $as_echo_n "checking for Tcl private headers... " >&6; }
16651 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16652 if test -f ${dir}/tclInt.h ; then
16656 if test x"${private_dir}" = x; then
16657 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
16659 TCL_PRIVATE_INCLUDE="-I${private_dir}"
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16661 $as_echo "${private_dir}" >&6; }
16664 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16665 TCL_LIBRARY="${TCL_LIB_SPEC}"
16668 # If building tcl in the same src tree, private headers
16669 # are not needed, but we need to be sure to use the right
16671 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
16672 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
16673 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16681 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16683 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16685 $as_echo "loading" >&6; }
16686 . ${TK_BIN_DIR}/tkConfig.sh
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16689 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16692 # eval is required to do the TK_DBGX substitution
16693 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16694 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16696 # If the TK_BIN_DIR is the build directory (not the install directory),
16697 # then set the common variable name to the value of the build variables.
16698 # For example, the variable TK_LIB_SPEC will be set to the value
16699 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16700 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16701 # installed and uninstalled version of Tcl.
16702 if test -f "${TK_BIN_DIR}/Makefile" ; then
16703 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
16704 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
16705 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
16706 elif test "`uname -s`" = "Darwin"; then
16707 # If Tk was built as a framework, attempt to use the libraries
16708 # from the framework at the given location so that linking works
16709 # against Tk.framework installed in an arbitrary location.
16712 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16713 for i in "`cd ${TK_BIN_DIR}; pwd`" \
16714 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16715 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16716 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16721 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16722 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16723 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16729 # eval is required to do the TK_DBGX substitution
16730 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16731 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16732 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16733 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16748 # Check for in-tree Tk
16750 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16754 # Find Tk private headers
16755 if test x"${intree}" = xno; then
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16758 $as_echo_n "checking for Tk private headers... " >&6; }
16760 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16761 if test -f ${dir}/tkInt.h; then
16765 if test x"${private_dir}" = x; then
16766 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
16768 TK_PRIVATE_INCLUDE="-I${private_dir}"
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16770 $as_echo "${private_dir}" >&6; }
16773 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16774 TK_LIBRARY=${TK_LIB_SPEC}
16777 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
16778 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
16779 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
16786 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16788 # Include some libraries that Tcl and Tk want.
16789 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16790 # Yes, the ordering seems wrong here. But it isn't.
16791 # TK_LIBS is the list of libraries that need to be linked
16792 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16793 # were in LIBS then any link tests after this point would
16794 # try to include things like `$(LIBGUI)', which wouldn't work.
16795 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
16797 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16798 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16799 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16800 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
16801 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
16802 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
16803 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
16805 if test x$gdb_cv_os_cygwin = xyes; then
16806 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16807 WIN32LDAPP="-Wl,--subsystem,console"
16808 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
16811 subdirs="$subdirs gdbtk"
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16824 $as_echo_n "checking for X... " >&6; }
16827 # Check whether --with-x was given.
16828 if test "${with_x+set}" = set; then :
16832 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16833 if test "x$with_x" = xno; then
16834 # The user explicitly disabled X.
16837 case $x_includes,$x_libraries in #(
16838 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
16839 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
16840 $as_echo_n "(cached) " >&6
16842 # One or both of the vars are not set, and there is no cached value.
16843 ac_x_includes=no ac_x_libraries=no
16844 rm -f -r conftest.dir
16845 if mkdir conftest.dir; then
16847 cat >Imakefile <<'_ACEOF'
16849 @echo incroot='${INCROOT}'
16851 @echo usrlibdir='${USRLIBDIR}'
16853 @echo libdir='${LIBDIR}'
16855 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16856 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16857 for ac_var in incroot usrlibdir libdir; do
16858 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16860 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16861 for ac_extension in a so sl dylib la dll; do
16862 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16863 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16864 ac_im_usrlibdir=$ac_im_libdir; break
16867 # Screen out bogus values from the imake configuration. They are
16868 # bogus both because they are the default anyway, and because
16869 # using them would break gcc on systems where it needs fixed includes.
16870 case $ac_im_incroot in
16871 /usr/include) ac_x_includes= ;;
16872 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16874 case $ac_im_usrlibdir in
16875 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
16876 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16880 rm -f -r conftest.dir
16883 # Standard set of common directories for X headers.
16884 # Check X11 before X11Rn because it is often a symlink to the current release.
16898 /usr/local/X11/include
16899 /usr/local/X11R7/include
16900 /usr/local/X11R6/include
16901 /usr/local/X11R5/include
16902 /usr/local/X11R4/include
16904 /usr/local/include/X11
16905 /usr/local/include/X11R7
16906 /usr/local/include/X11R6
16907 /usr/local/include/X11R5
16908 /usr/local/include/X11R4
16912 /usr/XFree86/include/X11
16916 /usr/unsupported/include
16917 /usr/athena/include
16918 /usr/local/x11r5/include
16919 /usr/lpp/Xamples/include
16921 /usr/openwin/include
16922 /usr/openwin/share/include'
16924 if test "$ac_x_includes" = no; then
16925 # Guess where to find include files, by looking for Xlib.h.
16926 # First, try using that file with no special directory specified.
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16929 #include <X11/Xlib.h>
16931 if ac_fn_c_try_cpp "$LINENO"; then :
16932 # We can compile using X headers with no special include directory.
16935 for ac_dir in $ac_x_header_dirs; do
16936 if test -r "$ac_dir/X11/Xlib.h"; then
16937 ac_x_includes=$ac_dir
16942 rm -f conftest.err conftest.i conftest.$ac_ext
16943 fi # $ac_x_includes = no
16945 if test "$ac_x_libraries" = no; then
16946 # Check for the libraries.
16947 # See if we find them without any special options.
16948 # Don't add to $LIBS permanently.
16951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16952 /* end confdefs.h. */
16953 #include <X11/Xlib.h>
16962 if ac_fn_c_try_link "$LINENO"; then :
16964 # We can link X programs with no special library path.
16968 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16970 # Don't even attempt the hair of trying to link an X program!
16971 for ac_extension in a so sl dylib la dll; do
16972 if test -r "$ac_dir/libX11.$ac_extension"; then
16973 ac_x_libraries=$ac_dir
16979 rm -f core conftest.err conftest.$ac_objext \
16980 conftest$ac_exeext conftest.$ac_ext
16981 fi # $ac_x_libraries = no
16983 case $ac_x_includes,$ac_x_libraries in #(
16984 no,* | *,no | *\'*)
16985 # Didn't find X, or a directory has "'" in its name.
16986 ac_cv_have_x="have_x=no";; #(
16988 # Record where we found X for the cache.
16989 ac_cv_have_x="have_x=yes\
16990 ac_x_includes='$ac_x_includes'\
16991 ac_x_libraries='$ac_x_libraries'"
16997 eval "$ac_cv_have_x"
17000 if test "$have_x" != yes; then
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17002 $as_echo "$have_x" >&6; }
17005 # If each of the values was on the command line, it overrides each guess.
17006 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17007 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17008 # Update the cache value to reflect the command line values.
17009 ac_cv_have_x="have_x=yes\
17010 ac_x_includes='$x_includes'\
17011 ac_x_libraries='$x_libraries'"
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17013 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17017 # Unlike the sim directory, whether a simulator is linked is controlled by
17018 # presence of a gdb_sim definition in the target configure.tgt entry.
17019 # This code just checks for a few cases where we'd like to ignore those
17020 # definitions, even when they're present in the '.mt' file. These cases
17021 # are when --disable-sim is specified, or if the simulator directory is
17022 # not part of the source tree.
17024 # Check whether --enable-sim was given.
17025 if test "${enable_sim+set}" = set; then :
17026 enableval=$enable_sim; echo "enable_sim = $enable_sim";
17027 echo "enableval = ${enableval}";
17028 case "${enableval}" in
17029 yes) ignore_sim=false ;;
17030 no) ignore_sim=true ;;
17031 *) ignore_sim=false ;;
17038 if test ! -d "${srcdir}/../sim"; then
17044 if test "${ignore_sim}" = "false"; then
17045 if test x"${gdb_sim}" != x ; then
17047 SIM_OBS="remote-sim.o"
17049 $as_echo "#define WITH_SIM 1" >>confdefs.h
17052 # Some tdep code should only be compiled in when the ppc sim is
17053 # built. PR sim/13418.
17057 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17077 # List of host floatformats.
17079 cat >>confdefs.h <<_ACEOF
17080 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17084 cat >>confdefs.h <<_ACEOF
17085 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17089 cat >>confdefs.h <<_ACEOF
17090 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17094 # target_subdir is used by the testsuite to find the target libraries.
17096 if test "${host}" != "${target}"; then
17097 target_subdir="${target_alias}/"
17101 # Import nat definitions.
17102 nat_makefile_frag=/dev/null
17103 if test "${gdb_native}" = "yes"; then
17104 . ${srcdir}/configure.nat
17105 nativefile=$NAT_FILE
17118 if test x"${gdb_osabi}" != x ; then
17120 cat >>confdefs.h <<_ACEOF
17121 #define GDB_OSABI_DEFAULT $gdb_osabi
17126 # Enable multi-ice-gdb-server.
17127 # Check whether --enable-multi-ice was given.
17128 if test "${enable_multi_ice+set}" = set; then :
17129 enableval=$enable_multi_ice; case $enableval in
17132 *) as_fn_error $? "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
17136 if test "x$enable_multi_ice" = xyes; then
17137 subdirs="$subdirs multi-ice"
17141 # Check whether --enable-gdbserver was given.
17142 if test "${enable_gdbserver+set}" = set; then :
17143 enableval=$enable_gdbserver; case "${enableval}" in
17145 *) as_fn_error $? "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17148 enable_gdbserver=auto
17152 # We only build gdbserver automatically in a native configuration, and
17153 # only if the user did not explicitly disable its build.
17154 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17156 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17157 if test "x$build_gdbserver" = xyes; then
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17159 $as_echo "yes" >&6; }
17160 subdirs="$subdirs gdbserver"
17162 gdbserver_build_enabled=yes
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17165 $as_echo "no" >&6; }
17169 # If the user explicitly request the gdbserver to be built, verify that
17170 # we were in fact able to enable it.
17171 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17172 as_fn_error $? "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17175 # Check for babeltrace and babeltrace-ctf
17177 # Check whether --with-babeltrace was given.
17178 if test "${with_babeltrace+set}" = set; then :
17179 withval=$with_babeltrace;
17181 with_babeltrace=auto
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17185 $as_echo_n "checking whether to use babeltrace... " >&6; }
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17187 $as_echo "$with_babeltrace" >&6; }
17189 if test "x$with_babeltrace" = "xno"; then
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17191 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17193 # Append -Werror to CFLAGS so that configure can catch the warning
17194 # "assignment from incompatible pointer type", which is related to
17195 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17196 # in GDB, while babeltrace 1.0.3 is broken.
17197 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17198 # safe to save and restore CFLAGS here.
17199 saved_CFLAGS=$CFLAGS
17200 CFLAGS="$CFLAGS -Werror"
17211 acl_save_prefix="$prefix"
17212 prefix="$acl_final_prefix"
17213 acl_save_exec_prefix="$exec_prefix"
17214 exec_prefix="$acl_final_exec_prefix"
17216 eval additional_includedir=\"$includedir\"
17217 eval additional_libdir=\"$libdir\"
17219 exec_prefix="$acl_save_exec_prefix"
17220 prefix="$acl_save_prefix"
17223 # Check whether --with-libbabeltrace-prefix was given.
17224 if test "${with_libbabeltrace_prefix+set}" = set; then :
17225 withval=$with_libbabeltrace_prefix;
17226 if test "X$withval" = "Xno"; then
17229 if test "X$withval" = "X"; then
17231 acl_save_prefix="$prefix"
17232 prefix="$acl_final_prefix"
17233 acl_save_exec_prefix="$exec_prefix"
17234 exec_prefix="$acl_final_exec_prefix"
17236 eval additional_includedir=\"$includedir\"
17237 eval additional_libdir=\"$libdir\"
17239 exec_prefix="$acl_save_exec_prefix"
17240 prefix="$acl_save_prefix"
17243 additional_includedir="$withval/include"
17244 additional_libdir="$withval/lib"
17255 names_already_handled=
17256 names_next_round='babeltrace babeltrace-ctf'
17257 while test -n "$names_next_round"; do
17258 names_this_round="$names_next_round"
17260 for name in $names_this_round; do
17262 for n in $names_already_handled; do
17263 if test "$n" = "$name"; then
17264 already_handled=yes
17268 if test -z "$already_handled"; then
17269 names_already_handled="$names_already_handled $name"
17270 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17271 eval value=\"\$HAVE_LIB$uppername\"
17272 if test -n "$value"; then
17273 if test "$value" = yes; then
17274 eval value=\"\$LIB$uppername\"
17275 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17276 eval value=\"\$LTLIB$uppername\"
17277 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17286 if test $use_additional = yes; then
17287 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17288 found_dir="$additional_libdir"
17289 found_so="$additional_libdir/lib$name.$shlibext"
17290 if test -f "$additional_libdir/lib$name.la"; then
17291 found_la="$additional_libdir/lib$name.la"
17294 if test -f "$additional_libdir/lib$name.$libext"; then
17295 found_dir="$additional_libdir"
17296 found_a="$additional_libdir/lib$name.$libext"
17297 if test -f "$additional_libdir/lib$name.la"; then
17298 found_la="$additional_libdir/lib$name.la"
17303 if test "X$found_dir" = "X"; then
17304 for x in $LDFLAGS $LTLIBBABELTRACE; do
17306 acl_save_prefix="$prefix"
17307 prefix="$acl_final_prefix"
17308 acl_save_exec_prefix="$exec_prefix"
17309 exec_prefix="$acl_final_exec_prefix"
17311 exec_prefix="$acl_save_exec_prefix"
17312 prefix="$acl_save_prefix"
17316 dir=`echo "X$x" | sed -e 's/^X-L//'`
17317 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17319 found_so="$dir/lib$name.$shlibext"
17320 if test -f "$dir/lib$name.la"; then
17321 found_la="$dir/lib$name.la"
17324 if test -f "$dir/lib$name.$libext"; then
17326 found_a="$dir/lib$name.$libext"
17327 if test -f "$dir/lib$name.la"; then
17328 found_la="$dir/lib$name.la"
17334 if test "X$found_dir" != "X"; then
17339 if test "X$found_dir" != "X"; then
17340 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17341 if test "X$found_so" != "X"; then
17342 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17343 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17346 for x in $ltrpathdirs; do
17347 if test "X$x" = "X$found_dir"; then
17352 if test -z "$haveit"; then
17353 ltrpathdirs="$ltrpathdirs $found_dir"
17355 if test "$hardcode_direct" = yes; then
17356 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17358 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17359 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17361 for x in $rpathdirs; do
17362 if test "X$x" = "X$found_dir"; then
17367 if test -z "$haveit"; then
17368 rpathdirs="$rpathdirs $found_dir"
17372 for x in $LDFLAGS $LIBBABELTRACE; do
17374 acl_save_prefix="$prefix"
17375 prefix="$acl_final_prefix"
17376 acl_save_exec_prefix="$exec_prefix"
17377 exec_prefix="$acl_final_exec_prefix"
17379 exec_prefix="$acl_save_exec_prefix"
17380 prefix="$acl_save_prefix"
17382 if test "X$x" = "X-L$found_dir"; then
17387 if test -z "$haveit"; then
17388 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17390 if test "$hardcode_minus_L" != no; then
17391 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17393 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17399 if test "X$found_a" != "X"; then
17400 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17402 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17405 additional_includedir=
17406 case "$found_dir" in
17408 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17409 additional_includedir="$basedir/include"
17412 if test "X$additional_includedir" != "X"; then
17413 if test "X$additional_includedir" != "X/usr/include"; then
17415 if test "X$additional_includedir" = "X/usr/local/include"; then
17416 if test -n "$GCC"; then
17418 linux*) haveit=yes;;
17422 if test -z "$haveit"; then
17423 for x in $CPPFLAGS $INCBABELTRACE; do
17425 acl_save_prefix="$prefix"
17426 prefix="$acl_final_prefix"
17427 acl_save_exec_prefix="$exec_prefix"
17428 exec_prefix="$acl_final_exec_prefix"
17430 exec_prefix="$acl_save_exec_prefix"
17431 prefix="$acl_save_prefix"
17433 if test "X$x" = "X-I$additional_includedir"; then
17438 if test -z "$haveit"; then
17439 if test -d "$additional_includedir"; then
17440 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17446 if test -n "$found_la"; then
17447 save_libdir="$libdir"
17448 case "$found_la" in
17449 */* | *\\*) . "$found_la" ;;
17450 *) . "./$found_la" ;;
17452 libdir="$save_libdir"
17453 for dep in $dependency_libs; do
17456 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17457 if test "X$additional_libdir" != "X/usr/lib"; then
17459 if test "X$additional_libdir" = "X/usr/local/lib"; then
17460 if test -n "$GCC"; then
17462 linux*) haveit=yes;;
17466 if test -z "$haveit"; then
17468 for x in $LDFLAGS $LIBBABELTRACE; do
17470 acl_save_prefix="$prefix"
17471 prefix="$acl_final_prefix"
17472 acl_save_exec_prefix="$exec_prefix"
17473 exec_prefix="$acl_final_exec_prefix"
17475 exec_prefix="$acl_save_exec_prefix"
17476 prefix="$acl_save_prefix"
17478 if test "X$x" = "X-L$additional_libdir"; then
17483 if test -z "$haveit"; then
17484 if test -d "$additional_libdir"; then
17485 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17489 for x in $LDFLAGS $LTLIBBABELTRACE; do
17491 acl_save_prefix="$prefix"
17492 prefix="$acl_final_prefix"
17493 acl_save_exec_prefix="$exec_prefix"
17494 exec_prefix="$acl_final_exec_prefix"
17496 exec_prefix="$acl_save_exec_prefix"
17497 prefix="$acl_save_prefix"
17499 if test "X$x" = "X-L$additional_libdir"; then
17504 if test -z "$haveit"; then
17505 if test -d "$additional_libdir"; then
17506 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17513 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17514 if test "$enable_rpath" != no; then
17516 for x in $rpathdirs; do
17517 if test "X$x" = "X$dir"; then
17522 if test -z "$haveit"; then
17523 rpathdirs="$rpathdirs $dir"
17526 for x in $ltrpathdirs; do
17527 if test "X$x" = "X$dir"; then
17532 if test -z "$haveit"; then
17533 ltrpathdirs="$ltrpathdirs $dir"
17538 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17541 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17544 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17545 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17551 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17552 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17558 if test "X$rpathdirs" != "X"; then
17559 if test -n "$hardcode_libdir_separator"; then
17561 for found_dir in $rpathdirs; do
17562 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17564 acl_save_libdir="$libdir"
17566 eval flag=\"$hardcode_libdir_flag_spec\"
17567 libdir="$acl_save_libdir"
17568 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17570 for found_dir in $rpathdirs; do
17571 acl_save_libdir="$libdir"
17572 libdir="$found_dir"
17573 eval flag=\"$hardcode_libdir_flag_spec\"
17574 libdir="$acl_save_libdir"
17575 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17579 if test "X$ltrpathdirs" != "X"; then
17580 for found_dir in $ltrpathdirs; do
17581 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17586 ac_save_CPPFLAGS="$CPPFLAGS"
17588 for element in $INCBABELTRACE; do
17590 for x in $CPPFLAGS; do
17592 acl_save_prefix="$prefix"
17593 prefix="$acl_final_prefix"
17594 acl_save_exec_prefix="$exec_prefix"
17595 exec_prefix="$acl_final_exec_prefix"
17597 exec_prefix="$acl_save_exec_prefix"
17598 prefix="$acl_save_prefix"
17600 if test "X$x" = "X$element"; then
17605 if test -z "$haveit"; then
17606 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17612 $as_echo_n "checking for libbabeltrace... " >&6; }
17613 if ${ac_cv_libbabeltrace+:} false; then :
17614 $as_echo_n "(cached) " >&6
17617 ac_save_LIBS="$LIBS"
17618 LIBS="$LIBS $LIBBABELTRACE"
17619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620 /* end confdefs.h. */
17621 #include <babeltrace/babeltrace.h>
17622 #include <babeltrace/ctf/events.h>
17623 #include <babeltrace/ctf/iterator.h>
17627 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17628 struct bt_ctf_event *event = NULL;
17629 const struct bt_definition *scope;
17631 pos->type = BT_SEEK_BEGIN;
17632 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17633 scope = bt_ctf_get_top_level_scope (event,
17634 BT_STREAM_EVENT_HEADER);
17635 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17641 if ac_fn_c_try_link "$LINENO"; then :
17642 ac_cv_libbabeltrace=yes
17644 ac_cv_libbabeltrace=no
17646 rm -f core conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17648 LIBS="$ac_save_LIBS"
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17652 $as_echo "$ac_cv_libbabeltrace" >&6; }
17653 if test "$ac_cv_libbabeltrace" = yes; then
17654 HAVE_LIBBABELTRACE=yes
17656 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17659 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17661 $as_echo "$LIBBABELTRACE" >&6; }
17663 HAVE_LIBBABELTRACE=no
17664 CPPFLAGS="$ac_save_CPPFLAGS"
17674 CFLAGS=$saved_CFLAGS
17676 if test "$HAVE_LIBBABELTRACE" != yes; then
17677 if test "$with_babeltrace" = yes; then
17678 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17681 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17686 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17693 if test "${nativefile}" != ""; then
17694 case "${nativefile}" in
17695 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
17696 * ) GDB_NM_FILE="${nativefile}"
17698 files="${files} ${GDB_NM_FILE}"
17699 links="${links} nm.h"
17701 cat >>confdefs.h <<_ACEOF
17702 #define GDB_NM_FILE "${GDB_NM_FILE}"
17708 for ac_prog in xsltproc
17710 # Extract the first word of "$ac_prog", so it can be a program name with args.
17711 set dummy $ac_prog; ac_word=$2
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17713 $as_echo_n "checking for $ac_word... " >&6; }
17714 if ${ac_cv_path_XSLTPROC+:} false; then :
17715 $as_echo_n "(cached) " >&6
17719 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17723 for as_dir in $PATH
17726 test -z "$as_dir" && as_dir=.
17727 for ac_exec_ext in '' $ac_executable_extensions; do
17728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17729 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
17730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17740 XSLTPROC=$ac_cv_path_XSLTPROC
17741 if test -n "$XSLTPROC"; then
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17743 $as_echo "$XSLTPROC" >&6; }
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17746 $as_echo "no" >&6; }
17750 test -n "$XSLTPROC" && break
17752 test -n "$XSLTPROC" || XSLTPROC="missing"
17754 if test "x$USE_MAINTAINER_MODE" = xyes; then
17755 if test "${XSLTPROC}" = missing; then
17756 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17761 ac_sources="$files"
17763 while test -n "$ac_sources"; do
17764 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17765 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17766 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
17768 ac_config_links="$ac_config_links $ac_config_links_1"
17774 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17777 if $development; then
17779 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17781 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
17782 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
17786 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17787 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
17788 if test "x$GDB_TRANSFORM_NAME" = x; then
17789 GDB_TRANSFORM_NAME=gdb
17794 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17795 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
17796 if test "x$GCORE_TRANSFORM_NAME" = x; then
17797 GCORE_TRANSFORM_NAME=gcore
17801 ac_config_files="$ac_config_files gcore"
17803 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
17806 cat >confcache <<\_ACEOF
17807 # This file is a shell script that caches the results of configure
17808 # tests run on this system so they can be shared between configure
17809 # scripts and configure runs, see configure's option --config-cache.
17810 # It is not useful on other systems. If it contains results you don't
17811 # want to keep, you may remove or edit it.
17813 # config.status only pays attention to the cache file if you give it
17814 # the --recheck option to rerun configure.
17816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17818 # following values.
17822 # The following way of writing the cache mishandles newlines in values,
17823 # but we know of no workaround that is simple, portable, and efficient.
17824 # So, we kill variables containing newlines.
17825 # Ultrix sh set writes to stderr and can't be redirected directly,
17826 # and sets the high bit in the cache file unless we assign to the vars.
17828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17829 eval ac_val=\$$ac_var
17833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17837 _ | IFS | as_nl) ;; #(
17838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17839 *) { eval $ac_var=; unset $ac_var;} ;;
17845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17846 *${as_nl}ac_space=\ *)
17847 # `set' does not quote correctly, so add quotes: double-quote
17848 # substitution turns \\\\ into \\, and sed turns \\ into \.
17851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17854 # `set' quotes correctly as required by POSIX, so do not add quotes.
17855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17868 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17869 if test -w "$cache_file"; then
17870 if test "x$cache_file" != "x/dev/null"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17872 $as_echo "$as_me: updating cache $cache_file" >&6;}
17873 if test ! -f "$cache_file" || test -h "$cache_file"; then
17874 cat confcache >"$cache_file"
17876 case $cache_file in #(
17878 mv -f confcache "$cache_file"$$ &&
17879 mv -f "$cache_file"$$ "$cache_file" ;; #(
17881 mv -f confcache "$cache_file" ;;
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17887 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17893 # Let make expand exec_prefix.
17894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17896 DEFS=-DHAVE_CONFIG_H
17901 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17902 # 1. Remove the extension, and $U if already installed.
17903 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17904 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17905 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17906 # will be set to the directory where LIBOBJS objects are built.
17907 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17908 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17910 LIBOBJS=$ac_libobjs
17912 LTLIBOBJS=$ac_ltlibobjs
17915 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17916 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17919 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17920 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17923 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17924 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
17925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17929 : "${CONFIG_STATUS=./config.status}"
17931 ac_clean_files_save=$ac_clean_files
17932 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17934 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17936 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17938 # Generated by $as_me.
17939 # Run this file to recreate the current configuration.
17940 # Compiler output produced by configure, useful for debugging
17941 # configure, is in config.log if it exists.
17944 ac_cs_recheck=false
17947 SHELL=\${CONFIG_SHELL-$SHELL}
17950 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17951 ## -------------------- ##
17952 ## M4sh Initialization. ##
17953 ## -------------------- ##
17955 # Be more Bourne compatible
17956 DUALCASE=1; export DUALCASE # for MKS sh
17957 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17960 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17961 # is contrary to our usage. Disable this feature.
17962 alias -g '${1+"$@"}'='"$@"'
17963 setopt NO_GLOB_SUBST
17965 case `(set -o) 2>/dev/null` in #(
17977 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17978 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17979 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17980 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17981 # Prefer a ksh shell builtin over an external printf program on Solaris,
17982 # but without wasting forks for bash or zsh.
17983 if test -z "$BASH_VERSION$ZSH_VERSION" \
17984 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17985 as_echo='print -r --'
17986 as_echo_n='print -rn --'
17987 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17988 as_echo='printf %s\n'
17989 as_echo_n='printf %s'
17991 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17992 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17993 as_echo_n='/usr/ucb/echo -n'
17995 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17996 as_echo_n_body='eval
18000 expr "X$arg" : "X\\(.*\\)$as_nl";
18001 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18003 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18005 export as_echo_n_body
18006 as_echo_n='sh -c $as_echo_n_body as_echo'
18008 export as_echo_body
18009 as_echo='sh -c $as_echo_body as_echo'
18012 # The user is always right.
18013 if test "${PATH_SEPARATOR+set}" != set; then
18015 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18016 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18023 # We need space, tab and new line, in precisely that order. Quoting is
18024 # there to prevent editors from complaining about space-tab.
18025 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18026 # splitting by setting IFS to empty value.)
18029 # Find who we are. Look in the path if we contain no directory separator.
18032 *[\\/]* ) as_myself=$0 ;;
18033 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18034 for as_dir in $PATH
18037 test -z "$as_dir" && as_dir=.
18038 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18044 # We did not find ourselves, most probably we were run as `sh COMMAND'
18045 # in which case we are not to be found in the path.
18046 if test "x$as_myself" = x; then
18049 if test ! -f "$as_myself"; then
18050 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18054 # Unset variables that we do not need and which cause bugs (e.g. in
18055 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18056 # suppresses any "Segmentation fault" message there. '((' could
18057 # trigger a bug in pdksh 5.2.14.
18058 for as_var in BASH_ENV ENV MAIL MAILPATH
18059 do eval test x\${$as_var+set} = xset \
18060 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18073 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18076 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18077 # ----------------------------------------
18078 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18079 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18080 # script with STATUS, using 1 if that was 0.
18083 as_status=$1; test $as_status -eq 0 && as_status=1
18085 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18086 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18088 $as_echo "$as_me: error: $2" >&2
18089 as_fn_exit $as_status
18093 # as_fn_set_status STATUS
18094 # -----------------------
18095 # Set $? to STATUS, without forking.
18096 as_fn_set_status ()
18099 } # as_fn_set_status
18101 # as_fn_exit STATUS
18102 # -----------------
18103 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18107 as_fn_set_status $1
18113 # Portably unset VAR.
18116 { eval $1=; unset $1;}
18118 as_unset=as_fn_unset
18119 # as_fn_append VAR VALUE
18120 # ----------------------
18121 # Append the text in VALUE to the end of the definition contained in VAR. Take
18122 # advantage of any shell optimizations that allow amortized linear growth over
18123 # repeated appends, instead of the typical quadratic growth present in naive
18125 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18126 eval 'as_fn_append ()
18137 # as_fn_arith ARG...
18138 # ------------------
18139 # Perform arithmetic evaluation on the ARGs, and store the result in the
18140 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18141 # must be portable across $(()) and expr.
18142 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18143 eval 'as_fn_arith ()
18150 as_val=`expr "$@" || test $? -eq 1`
18155 if expr a : '\(a\)' >/dev/null 2>&1 &&
18156 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18162 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18163 as_basename=basename
18168 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18174 as_me=`$as_basename -- "$0" ||
18175 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18176 X"$0" : 'X\(//\)$' \| \
18177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18179 sed '/^.*\/\([^/][^/]*\)\/*$/{
18193 # Avoid depending upon Character Ranges.
18194 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18195 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18196 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18197 as_cr_digits='0123456789'
18198 as_cr_alnum=$as_cr_Letters$as_cr_digits
18200 ECHO_C= ECHO_N= ECHO_T=
18201 case `echo -n x` in #(((((
18203 case `echo 'xy\c'` in
18204 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18206 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18213 rm -f conf$$ conf$$.exe conf$$.file
18214 if test -d conf$$.dir; then
18215 rm -f conf$$.dir/conf$$.file
18218 mkdir conf$$.dir 2>/dev/null
18220 if (echo >conf$$.file) 2>/dev/null; then
18221 if ln -s conf$$.file conf$$ 2>/dev/null; then
18223 # ... but there are two gotchas:
18224 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18225 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18226 # In both cases, we have to default to `cp -pR'.
18227 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18229 elif ln conf$$.file conf$$ 2>/dev/null; then
18237 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18238 rmdir conf$$.dir 2>/dev/null
18243 # Create "$as_dir" as a directory, including parents if necessary.
18248 -*) as_dir=./$as_dir;;
18250 test -d "$as_dir" || eval $as_mkdir_p || {
18254 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18255 *) as_qdir=$as_dir;;
18257 as_dirs="'$as_qdir' $as_dirs"
18258 as_dir=`$as_dirname -- "$as_dir" ||
18259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18260 X"$as_dir" : 'X\(//\)[^/]' \| \
18261 X"$as_dir" : 'X\(//\)$' \| \
18262 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18263 $as_echo X"$as_dir" |
18264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18268 /^X\(\/\/\)[^/].*/{
18281 test -d "$as_dir" && break
18283 test -z "$as_dirs" || eval "mkdir $as_dirs"
18284 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18288 if mkdir -p . 2>/dev/null; then
18289 as_mkdir_p='mkdir -p "$as_dir"'
18291 test -d ./-p && rmdir ./-p
18296 # as_fn_executable_p FILE
18297 # -----------------------
18298 # Test if FILE is an executable regular file.
18299 as_fn_executable_p ()
18301 test -f "$1" && test -x "$1"
18302 } # as_fn_executable_p
18303 as_test_x='test -x'
18304 as_executable_p=as_fn_executable_p
18306 # Sed expression to map a string onto a valid CPP name.
18307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18309 # Sed expression to map a string onto a valid variable name.
18310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18314 ## ----------------------------------- ##
18315 ## Main body of $CONFIG_STATUS script. ##
18316 ## ----------------------------------- ##
18318 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18321 # Save the log message, to keep $0 and so on meaningful, and to
18322 # report actual input values of CONFIG_FILES etc. instead of their
18323 # values after options handling.
18325 This file was extended by $as_me, which was
18326 generated by GNU Autoconf 2.69. Invocation command line was
18328 CONFIG_FILES = $CONFIG_FILES
18329 CONFIG_HEADERS = $CONFIG_HEADERS
18330 CONFIG_LINKS = $CONFIG_LINKS
18331 CONFIG_COMMANDS = $CONFIG_COMMANDS
18334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18339 case $ac_config_files in *"
18340 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18343 case $ac_config_headers in *"
18344 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18349 # Files that config.status was made for.
18350 config_files="$ac_config_files"
18351 config_headers="$ac_config_headers"
18352 config_links="$ac_config_links"
18353 config_commands="$ac_config_commands"
18357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18359 \`$as_me' instantiates files and other configuration actions
18360 from templates according to the current configuration. Unless the files
18361 and actions are specified as TAGs, all are instantiated by default.
18363 Usage: $0 [OPTION]... [TAG]...
18365 -h, --help print this help, then exit
18366 -V, --version print version number and configuration settings, then exit
18367 --config print configuration, then exit
18368 -q, --quiet, --silent
18369 do not print progress messages
18370 -d, --debug don't remove temporary files
18371 --recheck update $as_me by reconfiguring in the same conditions
18372 --file=FILE[:TEMPLATE]
18373 instantiate the configuration file FILE
18374 --header=FILE[:TEMPLATE]
18375 instantiate the configuration header FILE
18377 Configuration files:
18380 Configuration headers:
18383 Configuration links:
18386 Configuration commands:
18389 Report bugs to the package provider."
18392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18393 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18396 configured by $0, generated by GNU Autoconf 2.69,
18397 with options \\"\$ac_cs_config\\"
18399 Copyright (C) 2012 Free Software Foundation, Inc.
18400 This config.status script is free software; the Free Software Foundation
18401 gives unlimited permission to copy, distribute and modify it."
18407 test -n "\$AWK" || AWK=awk
18410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18411 # The default lists apply if the user does not specify any file.
18417 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18418 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18422 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18434 # Handling of the options.
18435 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18437 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18438 $as_echo "$ac_cs_version"; exit ;;
18439 --config | --confi | --conf | --con | --co | --c )
18440 $as_echo "$ac_cs_config"; exit ;;
18441 --debug | --debu | --deb | --de | --d | -d )
18443 --file | --fil | --fi | --f )
18446 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18447 '') as_fn_error $? "missing file argument" ;;
18449 as_fn_append CONFIG_FILES " '$ac_optarg'"
18450 ac_need_defaults=false;;
18451 --header | --heade | --head | --hea )
18454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18456 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18457 ac_need_defaults=false;;
18459 # Conflict between --help and --header
18460 as_fn_error $? "ambiguous option: \`$1'
18461 Try \`$0 --help' for more information.";;
18462 --help | --hel | -h )
18463 $as_echo "$ac_cs_usage"; exit ;;
18464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18465 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18468 # This is an error.
18469 -*) as_fn_error $? "unrecognized option: \`$1'
18470 Try \`$0 --help' for more information." ;;
18472 *) as_fn_append ac_config_targets " $1"
18473 ac_need_defaults=false ;;
18479 ac_configure_extra_args=
18481 if $ac_cs_silent; then
18483 ac_configure_extra_args="$ac_configure_extra_args --silent"
18487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18488 if \$ac_cs_recheck; then
18489 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18491 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18492 CONFIG_SHELL='$SHELL'
18493 export CONFIG_SHELL
18498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18502 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18503 ## Running $as_me. ##
18509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18513 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18519 # Handling of arguments.
18520 for ac_config_target in $ac_config_targets
18522 case $ac_config_target in
18523 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18524 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
18525 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18526 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
18527 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
18528 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18529 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
18530 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
18531 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18532 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
18534 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18539 # If the user did not use the arguments to specify the items to instantiate,
18540 # then the envvar interface is used. Set only those that are not.
18541 # We use the long form for the default assignment because of an extremely
18542 # bizarre bug on SunOS 4.1.3.
18543 if $ac_need_defaults; then
18544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18546 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18550 # Have a temporary directory for convenience. Make it in the build tree
18551 # simply because there is no reason against having it here, and in addition,
18552 # creating and moving files from /tmp can sometimes cause problems.
18553 # Hook for its removal unless debugging.
18554 # Note that there is a small window in which the directory will not be cleaned:
18555 # after its creation but before its name has been assigned to `$tmp'.
18559 trap 'exit_status=$?
18560 : "${ac_tmp:=$tmp}"
18561 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18563 trap 'as_fn_exit 1' 1 2 13 15
18565 # Create a (secure) tmp directory for tmp files.
18568 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18572 tmp=./conf$$-$RANDOM
18573 (umask 077 && mkdir "$tmp")
18574 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18577 # Set up the scripts for CONFIG_FILES section.
18578 # No need to generate them if there are no CONFIG_FILES.
18579 # This happens for instance with `./config.status config.h'.
18580 if test -n "$CONFIG_FILES"; then
18582 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18583 ac_cs_awk_getline=:
18584 ac_cs_awk_pipe_init=
18585 ac_cs_awk_read_file='
18586 while ((getline aline < (F[key])) > 0)
18589 ac_cs_awk_pipe_fini=
18591 ac_cs_awk_getline=false
18592 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18593 ac_cs_awk_read_file='
18595 print "cat " F[key] " &&"
18596 '$ac_cs_awk_pipe_init
18597 # The final `:' finishes the AND list.
18598 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18600 ac_cr=`echo X | tr X '\015'`
18601 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18602 # But we know of no other shell where ac_cr would be empty at this
18603 # point, so we can use a bashism as a fallback.
18604 if test "x$ac_cr" = x; then
18605 eval ac_cr=\$\'\\r\'
18607 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18608 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18611 ac_cs_awk_cr=$ac_cr
18614 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18617 # Create commands to substitute file output variables.
18619 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18620 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18621 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18624 } >conf$$files.sh &&
18625 . ./conf$$files.sh ||
18626 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18627 rm -f conf$$files.sh
18630 echo "cat >conf$$subs.awk <<_ACEOF" &&
18631 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18633 } >conf$$subs.sh ||
18634 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18635 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18637 for ac_last_try in false false false false false :; do
18638 . ./conf$$subs.sh ||
18639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18641 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18642 if test $ac_delim_n = $ac_delim_num; then
18644 elif $ac_last_try; then
18645 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18650 rm -f conf$$subs.sh
18652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18653 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18657 s/^/S["/; s/!.*/"]=/
18667 s/\(.\{148\}\)..*/\1/
18669 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18674 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18681 s/\(.\{148\}\)..*/\1/
18683 s/["\\]/\\&/g; s/^/"/; s/$/"/
18687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18692 ' <conf$$subs.awk | sed '
18697 ' >>$CONFIG_STATUS || ac_write_fail=1
18698 rm -f conf$$subs.awk
18699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18701 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18702 for (key in S) S_is_set[key] = 1
18704 \$ac_cs_awk_pipe_init
18708 nfields = split(line, field, "@")
18710 len = length(field[1])
18711 for (i = 2; i < nfields; i++) {
18713 keylen = length(key)
18714 if (S_is_set[key]) {
18716 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18717 len += length(value) + length(field[++i])
18722 if (nfields == 3 && !substed) {
18724 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18725 \$ac_cs_awk_read_file
18731 \$ac_cs_awk_pipe_fini
18734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18735 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18736 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18739 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18740 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18743 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18744 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18745 # trailing colons and then remove the whole line if VPATH becomes empty
18746 # (actually we leave an empty line to preserve line numbers).
18747 if test "x$srcdir" = x.; then
18748 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18767 fi # test -n "$CONFIG_FILES"
18769 # Set up the scripts for CONFIG_HEADERS section.
18770 # No need to generate them if there are no CONFIG_HEADERS.
18771 # This happens for instance with `./config.status Makefile'.
18772 if test -n "$CONFIG_HEADERS"; then
18773 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18777 # Transform confdefs.h into an awk script `defines.awk', embedded as
18778 # here-document in config.status, that substitutes the proper values into
18779 # config.h.in to produce config.h.
18781 # Create a delimiter string that does not exist in confdefs.h, to ease
18782 # handling of long lines.
18784 for ac_last_try in false false :; do
18785 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18786 if test -z "$ac_tt"; then
18788 elif $ac_last_try; then
18789 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18795 # For the awk script, D is an array of macro values keyed by name,
18796 # likewise P contains macro parameters if any. Preserve backslash
18797 # newline sequences.
18799 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18801 s/.\{148\}/&'"$ac_delim"'/g
18804 s/^[ ]*#[ ]*define[ ][ ]*/ /
18811 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18813 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18817 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18818 D["\1"]=" \3\\\\\\n"\\/p
18820 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18825 s/.\{148\}/&'"$ac_delim"'/g
18830 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18833 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18835 ' <confdefs.h | sed '
18836 s/'"$ac_delim"'/"\\\
18837 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18840 for (key in D) D_is_set[key] = 1
18843 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18845 split(line, arg, " ")
18846 if (arg[1] == "#") {
18850 defundef = substr(arg[1], 2)
18853 split(mac1, mac2, "(") #)
18855 prefix = substr(line, 1, index(line, defundef) - 1)
18856 if (D_is_set[macro]) {
18857 # Preserve the white space surrounding the "#".
18858 print prefix "define", macro P[macro] D[macro]
18861 # Replace #undef with comments. This is necessary, for example,
18862 # in the case of _POSIX_SOURCE, which is predefined and required
18863 # on some systems where configure will not decide to define it.
18864 if (defundef == "undef") {
18865 print "/*", prefix defundef, macro, "*/"
18873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18874 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18875 fi # test -n "$CONFIG_HEADERS"
18878 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18883 :[FHLC]) ac_mode=$ac_tag; continue;;
18885 case $ac_mode$ac_tag in
18887 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18888 :[FH]-) ac_tag=-:-;;
18889 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18906 -) ac_f="$ac_tmp/stdin";;
18907 *) # Look for the file first in the build tree, then in the source tree
18908 # (if the path is not absolute). The absolute path cannot be DOS-style,
18909 # because $ac_f cannot contain `:'.
18913 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18915 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18917 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18918 as_fn_append ac_file_inputs " '$ac_f'"
18921 # Let's still pretend it is `configure' which instantiates (i.e., don't
18922 # use $as_me), people would be surprised to read:
18923 # /* config.h. Generated by config.status. */
18924 configure_input='Generated from '`
18925 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18927 if test x"$ac_file" != x-; then
18928 configure_input="$ac_file. $configure_input"
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18930 $as_echo "$as_me: creating $ac_file" >&6;}
18932 # Neutralize special characters interpreted by sed in replacement strings.
18933 case $configure_input in #(
18934 *\&* | *\|* | *\\* )
18935 ac_sed_conf_input=`$as_echo "$configure_input" |
18936 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18937 *) ac_sed_conf_input=$configure_input;;
18941 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18947 ac_dir=`$as_dirname -- "$ac_file" ||
18948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18949 X"$ac_file" : 'X\(//\)[^/]' \| \
18950 X"$ac_file" : 'X\(//\)$' \| \
18951 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18952 $as_echo X"$ac_file" |
18953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18957 /^X\(\/\/\)[^/].*/{
18970 as_dir="$ac_dir"; as_fn_mkdir_p
18974 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18976 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18977 # A ".." for each directory in $ac_dir_suffix.
18978 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18979 case $ac_top_builddir_sub in
18980 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18981 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18984 ac_abs_top_builddir=$ac_pwd
18985 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18986 # for backward compatibility:
18987 ac_top_builddir=$ac_top_build_prefix
18990 .) # We are building in place.
18992 ac_top_srcdir=$ac_top_builddir_sub
18993 ac_abs_top_srcdir=$ac_pwd ;;
18994 [\\/]* | ?:[\\/]* ) # Absolute name.
18995 ac_srcdir=$srcdir$ac_dir_suffix;
18996 ac_top_srcdir=$srcdir
18997 ac_abs_top_srcdir=$srcdir ;;
18998 *) # Relative name.
18999 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19000 ac_top_srcdir=$ac_top_build_prefix$srcdir
19001 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19003 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19013 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19014 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19019 # If the template does not know about datarootdir, expand it.
19020 # FIXME: This hack should be removed a few years after 2.60.
19021 ac_datarootdir_hack=; ac_datarootdir_seen=
19032 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19033 *datarootdir*) ac_datarootdir_seen=yes;;
19034 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19036 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19039 ac_datarootdir_hack='
19040 s&@datadir@&$datadir&g
19041 s&@docdir@&$docdir&g
19042 s&@infodir@&$infodir&g
19043 s&@localedir@&$localedir&g
19044 s&@mandir@&$mandir&g
19045 s&\\\${datarootdir}&$datarootdir&g' ;;
19049 # Neutralize VPATH when `$srcdir' = `.'.
19050 # Shell code in configure.ac might set extrasub.
19051 # FIXME: do we really want to maintain this feature?
19052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19053 ac_sed_extra="$ac_vpsub
19056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19059 s|@configure_input@|$ac_sed_conf_input|;t t
19060 s&@top_builddir@&$ac_top_builddir_sub&;t t
19061 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19062 s&@srcdir@&$ac_srcdir&;t t
19063 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19064 s&@top_srcdir@&$ac_top_srcdir&;t t
19065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19066 s&@builddir@&$ac_builddir&;t t
19067 s&@abs_builddir@&$ac_abs_builddir&;t t
19068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19069 s&@INSTALL@&$ac_INSTALL&;t t
19070 $ac_datarootdir_hack
19072 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19073 if $ac_cs_awk_getline; then
19074 $AWK -f "$ac_tmp/subs.awk"
19076 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19078 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19081 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19082 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19083 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19085 which seems to be undefined. Please make sure it is defined" >&5
19086 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19087 which seems to be undefined. Please make sure it is defined" >&2;}
19089 rm -f "$ac_tmp/stdin"
19091 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19092 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19100 if test x"$ac_file" != x-; then
19102 $as_echo "/* $configure_input */" \
19103 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19104 } >"$ac_tmp/config.h" \
19105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19106 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19108 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19111 mv "$ac_tmp/config.h" "$ac_file" \
19112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19115 $as_echo "/* $configure_input */" \
19116 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19117 || as_fn_error $? "could not create -" "$LINENO" 5
19125 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19128 # Prefer the file from the source tree if names are identical.
19129 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19130 ac_source=$srcdir/$ac_source
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19134 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19136 if test ! -r "$ac_source"; then
19137 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19141 # Try a relative symlink, then a hard link, then a copy.
19143 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19144 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19146 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19147 ln "$ac_source" "$ac_file" 2>/dev/null ||
19148 cp -p "$ac_source" "$ac_file" ||
19149 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19152 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19153 $as_echo "$as_me: executing $ac_file commands" >&6;}
19158 case $ac_file$ac_mode in
19159 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19160 "gcore":F) chmod +x gcore ;;
19162 case x$CONFIG_HEADERS in
19163 xconfig.h:config.in)
19168 case x$CONFIG_HEADERS in
19169 xconfig.h:config.in)
19174 case x$CONFIG_HEADERS in
19175 xconfig.h:config.in)
19180 case x$CONFIG_HEADERS in
19181 xconfig.h:config.in)
19185 "data-directory/Makefile":F)
19186 case x$CONFIG_HEADERS in
19187 xconfig.h:config.in)
19198 ac_clean_files=$ac_clean_files_save
19200 test $ac_write_fail = 0 ||
19201 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19204 # configure is writing to config.log, and then calls config.status.
19205 # config.status does its own redirection, appending to config.log.
19206 # Unfortunately, on DOS this fails, as config.log is still kept open
19207 # by configure, so config.status won't be able to write to it; its
19208 # output is simply discarded. So we exec the FD to /dev/null,
19209 # effectively closing config.log, so it can be properly (re)opened and
19210 # appended to by config.status. When coming back to configure, we
19211 # need to make the FD available again.
19212 if test "$no_create" != yes; then
19214 ac_config_status_args=
19215 test "$silent" = yes &&
19216 ac_config_status_args="$ac_config_status_args --quiet"
19218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19221 # would make configure fail if this is the last instruction.
19222 $ac_cs_success || as_fn_exit 1
19226 # CONFIG_SUBDIRS section.
19228 if test "$no_recursion" != yes; then
19230 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19231 # so they do not pile up.
19232 ac_sub_configure_args=
19234 eval "set x $ac_configure_args"
19238 if test -n "$ac_prev"; then
19243 -cache-file | --cache-file | --cache-fil | --cache-fi \
19244 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19245 ac_prev=cache_file ;;
19246 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19247 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19250 --config-cache | -C)
19252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19260 --disable-option-checking)
19264 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19266 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19270 # Always prepend --prefix to ensure using the same prefix
19271 # in subdir configurations.
19272 ac_arg="--prefix=$prefix"
19274 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19276 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19279 if test "$silent" = yes; then
19280 ac_sub_configure_args="--silent $ac_sub_configure_args"
19283 # Always prepend --disable-option-checking to silence warnings, since
19284 # different subdirs can have different --enable and --with options.
19285 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19288 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19290 # Do not complain, so a configure script can configure whichever
19291 # parts of a large source tree are present.
19292 test -d "$srcdir/$ac_dir" || continue
19294 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19295 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19296 $as_echo "$ac_msg" >&6
19297 as_dir="$ac_dir"; as_fn_mkdir_p
19301 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19303 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19304 # A ".." for each directory in $ac_dir_suffix.
19305 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19306 case $ac_top_builddir_sub in
19307 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19308 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19311 ac_abs_top_builddir=$ac_pwd
19312 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19313 # for backward compatibility:
19314 ac_top_builddir=$ac_top_build_prefix
19317 .) # We are building in place.
19319 ac_top_srcdir=$ac_top_builddir_sub
19320 ac_abs_top_srcdir=$ac_pwd ;;
19321 [\\/]* | ?:[\\/]* ) # Absolute name.
19322 ac_srcdir=$srcdir$ac_dir_suffix;
19323 ac_top_srcdir=$srcdir
19324 ac_abs_top_srcdir=$srcdir ;;
19325 *) # Relative name.
19326 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19327 ac_top_srcdir=$ac_top_build_prefix$srcdir
19328 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19330 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19335 # Check for guested configure; otherwise get Cygnus style configure.
19336 if test -f "$ac_srcdir/configure.gnu"; then
19337 ac_sub_configure=$ac_srcdir/configure.gnu
19338 elif test -f "$ac_srcdir/configure"; then
19339 ac_sub_configure=$ac_srcdir/configure
19340 elif test -f "$ac_srcdir/configure.in"; then
19341 # This should be Cygnus configure.
19342 ac_sub_configure=$ac_aux_dir/configure
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19345 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19349 # The recursion is here.
19350 if test -n "$ac_sub_configure"; then
19351 # Make the cache file name correct relative to the subdirectory.
19352 case $cache_file in
19353 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19354 *) # Relative name.
19355 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19358 { $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
19359 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19360 # The eval makes quoting arguments work.
19361 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19362 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19363 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19369 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19371 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}