2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking=no
624 ac_subst_vars='LTLIBOBJS
633 HAVE_NATIVE_GCORE_HOST
727 READLINE_TEXI_INCFLAG
751 HAVE_NATIVE_GCORE_TARGET
777 INSTALL_STRIP_PROGRAM
806 MAINTAINER_MODE_FALSE
835 program_transform_name
846 ac_subst_files='nat_makefile_frag'
848 enable_option_checking
849 enable_maintainer_mode
852 with_separate_debug_dir
854 with_relocated_sources
856 with_auto_load_safe_path
881 enable_source_highlight
888 enable_build_warnings
889 enable_gdb_build_warnings
899 with_libbabeltrace_prefix
902 ac_precious_vars='build_alias
919 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-gdbmi disable machine-interface (MI)
1551 --enable-tui enable full-screen terminal user interface (TUI)
1552 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1553 --enable-profiling enable profiling of GDB
1554 --enable-codesign=CERT sign gdb with 'codesign -s CERT'
1555 --disable-rpath do not hardcode runtime library paths
1556 --enable-source-highlight
1557 enable source-highlight for source listings
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-ubsan enable undefined behavior sanitizer (auto/yes/no)
1564 --enable-sim link gdb with simulator
1565 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1567 --enable-unit-tests Enable the inclusion of unit tests when compiling
1571 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1572 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1573 --with-separate-debug-dir=PATH
1574 look for global separate debug info in this path
1576 --with-gdb-datadir=PATH look for global separate data files in this path
1578 --with-relocated-sources=PATH
1579 automatically relocate this path for source files
1580 --with-auto-load-dir=PATH
1581 directories from which to load auto-loaded scripts
1582 [$debugdir:$datadir/auto-load]
1583 --with-auto-load-safe-path=PATH
1584 directories safe to hold auto-loaded files
1585 [--with-auto-load-dir]
1586 --without-auto-load-safe-path
1587 do not restrict auto-loaded files locations
1588 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1589 --with-curses use the curses library instead of the termcap
1591 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1592 --with-bugurl=URL Direct users to URL to report a bug
1593 --with-system-zlib use installed libz
1594 --with-gnu-ld assume the C compiler uses GNU ld default=no
1595 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1596 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1597 --with-iconv-bin=PATH specify where to find the iconv program
1598 --with-system-readline use installed readline library
1599 --with-jit-reader-dir=PATH
1600 directory to load the JIT readers from
1601 --with-expat include expat support (auto/yes/no)
1602 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1603 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1604 --with-mpfr include MPFR support (auto/yes/no)
1605 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1606 --without-libmpfr-prefix don't search for libmpfr in includedir and libdir
1607 --with-python[=PYTHON] include python support
1608 (auto/yes/no/<python-program>)
1609 --with-guile[=GUILE] include guile support
1610 (auto/yes/no/<guile-version>/<pkg-config-program>)
1611 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1612 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1613 --without-libipt-prefix don't search for libipt in includedir and libdir
1614 --without-included-regex
1615 don't use included regex; this is the default on
1616 systems with version 2 of the GNU C library (use
1617 with caution on other system)
1618 --with-sysroot[=DIR] search for usr/lib et al within DIR
1619 --with-system-gdbinit=PATH
1620 automatically load a system-wide gdbinit file
1621 --with-lzma support lzma compression (auto/yes/no)
1622 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1623 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1624 --with-tcl directory containing tcl configuration (tclConfig.sh)
1625 --with-tk directory containing tk configuration (tkConfig.sh)
1626 --with-x use the X Window System
1627 --with-babeltrace include babeltrace support (auto/yes/no)
1628 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1629 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1631 Some influential environment variables:
1632 CC C compiler command
1633 CFLAGS C compiler flags
1634 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1635 nonstandard directory <lib dir>
1636 LIBS libraries to pass to the linker, e.g. -l<library>
1637 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1638 you have headers in a nonstandard directory <include dir>
1639 CXX C++ compiler command
1640 CXXFLAGS C++ compiler flags
1642 MAKEINFO Parent configure detects if it is of sufficient version.
1644 Parameters for MAKEINFO.
1645 YACC The `Yet Another Compiler Compiler' implementation to use.
1646 Defaults to the first program found out of: `bison -y', `byacc',
1648 YFLAGS The list of arguments that will be passed by default to $YACC.
1649 This script will default YFLAGS to the empty string to avoid a
1650 default value of `-d' given by some make applications.
1651 XMKMF Path to xmkmf, Makefile generator for X Window System
1653 Use these variables to override the choices made by `configure' or to help
1654 it to find libraries and programs with nonstandard names/locations.
1656 Report bugs to the package provider.
1661 if test "$ac_init_help" = "recursive"; then
1662 # If there are subdirs, report their specific --help.
1663 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1664 test -d "$ac_dir" ||
1665 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1673 # A ".." for each directory in $ac_dir_suffix.
1674 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1675 case $ac_top_builddir_sub in
1676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1680 ac_abs_top_builddir=$ac_pwd
1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682 # for backward compatibility:
1683 ac_top_builddir=$ac_top_build_prefix
1686 .) # We are building in place.
1688 ac_top_srcdir=$ac_top_builddir_sub
1689 ac_abs_top_srcdir=$ac_pwd ;;
1690 [\\/]* | ?:[\\/]* ) # Absolute name.
1691 ac_srcdir=$srcdir$ac_dir_suffix;
1692 ac_top_srcdir=$srcdir
1693 ac_abs_top_srcdir=$srcdir ;;
1695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696 ac_top_srcdir=$ac_top_build_prefix$srcdir
1697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1701 cd "$ac_dir" || { ac_status=$?; continue; }
1702 # Check for guested configure.
1703 if test -f "$ac_srcdir/configure.gnu"; then
1705 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1706 elif test -f "$ac_srcdir/configure"; then
1708 $SHELL "$ac_srcdir/configure" --help=recursive
1710 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1712 cd "$ac_pwd" || { ac_status=$?; break; }
1716 test -n "$ac_init_help" && exit $ac_status
1717 if $ac_init_version; then
1720 generated by GNU Autoconf 2.69
1722 Copyright (C) 2012 Free Software Foundation, Inc.
1723 This configure script is free software; the Free Software Foundation
1724 gives unlimited permission to copy, distribute and modify it.
1729 ## ------------------------ ##
1730 ## Autoconf initialization. ##
1731 ## ------------------------ ##
1733 # ac_fn_c_try_compile LINENO
1734 # --------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext
1740 if { { ac_try="$ac_compile"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext; then :
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_c_try_compile
1771 # ac_fn_cxx_try_compile LINENO
1772 # ----------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_cxx_try_compile ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_cxx_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1807 } # ac_fn_cxx_try_compile
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_cpp conftest.$ac_ext"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } > conftest.i && {
1831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1846 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849 # the include files in INCLUDES and setting the cache variable VAR
1851 ac_fn_c_check_header_mongrel ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if eval \${$3+:} false; then :
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1864 # Is the header compilable?
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866 $as_echo_n "checking $2 usability... " >&6; }
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873 ac_header_compiler=yes
1875 ac_header_compiler=no
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879 $as_echo "$ac_header_compiler" >&6; }
1881 # Is the header present?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883 $as_echo_n "checking $2 presence... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1888 if ac_fn_c_try_cpp "$LINENO"; then :
1889 ac_header_preproc=yes
1891 ac_header_preproc=no
1893 rm -f conftest.err conftest.i conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895 $as_echo "$ac_header_preproc" >&6; }
1897 # So? What about this header?
1898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1909 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1913 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1923 eval "$3=\$ac_header_compiler"
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_header_mongrel
1933 # ac_fn_c_try_run LINENO
1934 # ----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936 # that executables *can* be run.
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_link"
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>&5
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951 { { case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_try") 2>&5
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; }; }; then :
1963 $as_echo "$as_me: program exited with status $ac_status" >&5
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1967 ac_retval=$ac_status
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1975 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists and can be compiled using the include files in
1978 # INCLUDES, setting the cache variable VAR accordingly.
1979 ac_fn_c_check_header_compile ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1992 if ac_fn_c_try_compile "$LINENO"; then :
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_header_compile
2006 # ac_fn_c_try_link LINENO
2007 # -----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded.
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 rm -f conftest.$ac_objext conftest$ac_exeext
2013 if { { ac_try="$ac_link"
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>conftest.err
2022 if test -s conftest.err; then
2023 grep -v '^ *+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && {
2029 test -z "$ac_c_werror_flag" ||
2030 test ! -s conftest.err
2031 } && test -s conftest$ac_exeext && {
2032 test "$cross_compiling" = yes ||
2033 test -x conftest$ac_exeext
2037 $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2042 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2043 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2044 # interfere with the next link command; also delete a directory that is
2045 # left behind by Apple's compiler. We do this before executing the actions.
2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 as_fn_set_status $ac_retval
2050 } # ac_fn_c_try_link
2052 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2053 # --------------------------------------------
2054 # Tries to find the compile-time value of EXPR in a program that includes
2055 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2057 ac_fn_c_compute_int ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if test "$cross_compiling" = yes; then
2061 # Depending upon the size, compute the lo and hi bounds.
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2068 static int test_array [1 - 2 * !(($2) >= 0)];
2070 return test_array [0];
2076 if ac_fn_c_try_compile "$LINENO"; then :
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2085 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 return test_array [0];
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=$ac_mid; break
2096 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2097 if test $ac_lo -le $ac_mid; then
2101 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) < 0)];
2114 return test_array [0];
2120 if ac_fn_c_try_compile "$LINENO"; then :
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2129 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2131 return test_array [0];
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_lo=$ac_mid; break
2140 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2141 if test $ac_mid -le $ac_hi; then
2145 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 # Binary search between lo and hi bounds.
2156 while test "x$ac_lo" != "x$ac_hi"; do
2157 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2164 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2166 return test_array [0];
2172 if ac_fn_c_try_compile "$LINENO"; then :
2175 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2187 static long int longval () { return $2; }
2188 static unsigned long int ulongval () { return $2; }
2195 FILE *f = fopen ("conftest.val", "w");
2200 long int i = longval ();
2203 fprintf (f, "%ld", i);
2207 unsigned long int i = ulongval ();
2210 fprintf (f, "%lu", i);
2212 /* Do not output a trailing newline, as this causes \r\n confusion
2213 on some platforms. */
2214 return ferror (f) || fclose (f) != 0;
2220 if ac_fn_c_try_run "$LINENO"; then :
2221 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2226 conftest.$ac_objext conftest.beam conftest.$ac_ext
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 as_fn_set_status $ac_retval
2233 } # ac_fn_c_compute_int
2235 # ac_fn_c_check_func LINENO FUNC VAR
2236 # ----------------------------------
2237 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2238 ac_fn_c_check_func ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2248 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2250 #define $2 innocuous_$2
2252 /* System header to define __stub macros and hopefully few prototypes,
2253 which can conflict with char $2 (); below.
2254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2255 <limits.h> exists even on freestanding compilers. */
2258 # include <limits.h>
2260 # include <assert.h>
2265 /* Override any GCC internal prototype to avoid an error.
2266 Use char because int might match the return type of a GCC
2267 builtin and then its argument prototype would still apply. */
2272 /* The GNU C library defines this for functions which it implements
2273 to always fail with ENOSYS. Some functions are actually named
2274 something starting with __ and the normal name is an alias. */
2275 #if defined __stub_$2 || defined __stub___$2
2287 if ac_fn_c_try_link "$LINENO"; then :
2292 rm -f core conftest.err conftest.$ac_objext \
2293 conftest$ac_exeext conftest.$ac_ext
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2300 } # ac_fn_c_check_func
2302 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2303 # ----------------------------------------------------
2304 # Tries to find if the field MEMBER exists in type AGGR, after including
2305 # INCLUDES, setting cache variable VAR accordingly.
2306 ac_fn_c_check_member ()
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2310 $as_echo_n "checking for $2.$3... " >&6; }
2311 if eval \${$4+:} false; then :
2312 $as_echo_n "(cached) " >&6
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2327 if ac_fn_c_try_compile "$LINENO"; then :
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2337 if (sizeof ac_aggr.$3)
2343 if ac_fn_c_try_compile "$LINENO"; then :
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357 } # ac_fn_c_check_member
2359 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2360 # -------------------------------------------
2361 # Tests whether TYPE exists after having included INCLUDES, setting cache
2362 # variable VAR accordingly.
2363 ac_fn_c_check_type ()
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367 $as_echo_n "checking for $2... " >&6; }
2368 if eval \${$3+:} false; then :
2369 $as_echo_n "(cached) " >&6
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2397 if ac_fn_c_try_compile "$LINENO"; then :
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2411 } # ac_fn_c_check_type
2413 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2414 # ---------------------------------------------
2415 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2417 ac_fn_c_check_decl ()
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 as_decl_name=`echo $2|sed 's/ *(.*//'`
2421 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2423 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2424 if eval \${$3+:} false; then :
2425 $as_echo_n "(cached) " >&6
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2433 #ifndef $as_decl_name
2435 (void) $as_decl_use;
2437 (void) $as_decl_name;
2445 if ac_fn_c_try_compile "$LINENO"; then :
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457 } # ac_fn_c_check_decl
2459 # ac_fn_cxx_try_link LINENO
2460 # -------------------------
2461 # Try to link conftest.$ac_ext, and return whether this succeeded.
2462 ac_fn_cxx_try_link ()
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465 rm -f conftest.$ac_objext conftest$ac_exeext
2466 if { { ac_try="$ac_link"
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473 (eval "$ac_link") 2>conftest.err
2475 if test -s conftest.err; then
2476 grep -v '^ *+' conftest.err >conftest.er1
2477 cat conftest.er1 >&5
2478 mv -f conftest.er1 conftest.err
2480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2481 test $ac_status = 0; } && {
2482 test -z "$ac_cxx_werror_flag" ||
2483 test ! -s conftest.err
2484 } && test -s conftest$ac_exeext && {
2485 test "$cross_compiling" = yes ||
2486 test -x conftest$ac_exeext
2490 $as_echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2495 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2496 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2497 # interfere with the next link command; also delete a directory that is
2498 # left behind by Apple's compiler. We do this before executing the actions.
2499 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501 as_fn_set_status $ac_retval
2503 } # ac_fn_cxx_try_link
2504 cat >config.log <<_ACEOF
2505 This file contains any messages produced by compilers while
2506 running configure, to aid debugging if configure makes a mistake.
2508 It was created by $as_me, which was
2509 generated by GNU Autoconf 2.69. Invocation command line was
2521 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2522 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2523 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2524 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2525 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2527 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2528 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2530 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2531 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2532 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2533 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2534 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2535 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2536 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 $as_echo "PATH: $as_dir"
2561 # Keep a trace of the command line.
2562 # Strip out --no-create and --no-recursion so they do not pile up.
2563 # Strip out --silent because we don't want to record it for future runs.
2564 # Also quote any args containing shell meta-characters.
2565 # Make two passes to allow for proper duplicate-argument suppression.
2569 ac_must_keep_next=false
2575 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2577 | -silent | --silent | --silen | --sile | --sil)
2580 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2583 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2585 as_fn_append ac_configure_args1 " '$ac_arg'"
2586 if test $ac_must_keep_next = true; then
2587 ac_must_keep_next=false # Got value, back to normal.
2590 *=* | --config-cache | -C | -disable-* | --disable-* \
2591 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2592 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2593 | -with-* | --with-* | -without-* | --without-* | --x)
2594 case "$ac_configure_args0 " in
2595 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2598 -* ) ac_must_keep_next=true ;;
2601 as_fn_append ac_configure_args " '$ac_arg'"
2606 { ac_configure_args0=; unset ac_configure_args0;}
2607 { ac_configure_args1=; unset ac_configure_args1;}
2609 # When interrupted or exit'd, cleanup temporary files, and complete
2610 # config.log. We remove comments because anyway the quotes in there
2611 # would cause problems or look ugly.
2612 # WARNING: Use '\'' to represent an apostrophe within the trap.
2613 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2614 trap 'exit_status=$?
2615 # Save into config.log some information that might help in debugging.
2619 $as_echo "## ---------------- ##
2620 ## Cache variables. ##
2621 ## ---------------- ##"
2623 # The following way of writing the cache mishandles newlines in values,
2625 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2626 eval ac_val=\$$ac_var
2630 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2631 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2634 _ | IFS | as_nl) ;; #(
2635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2636 *) { eval $ac_var=; unset $ac_var;} ;;
2641 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2642 *${as_nl}ac_space=\ *)
2644 "s/'\''/'\''\\\\'\'''\''/g;
2645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2655 $as_echo "## ----------------- ##
2656 ## Output variables. ##
2657 ## ----------------- ##"
2659 for ac_var in $ac_subst_vars
2661 eval ac_val=\$$ac_var
2663 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2665 $as_echo "$ac_var='\''$ac_val'\''"
2669 if test -n "$ac_subst_files"; then
2670 $as_echo "## ------------------- ##
2671 ## File substitutions. ##
2672 ## ------------------- ##"
2674 for ac_var in $ac_subst_files
2676 eval ac_val=\$$ac_var
2678 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2680 $as_echo "$ac_var='\''$ac_val'\''"
2685 if test -s confdefs.h; then
2686 $as_echo "## ----------- ##
2693 test "$ac_signal" != 0 &&
2694 $as_echo "$as_me: caught signal $ac_signal"
2695 $as_echo "$as_me: exit $exit_status"
2697 rm -f core *.core core.conftest.* &&
2698 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2701 for ac_signal in 1 2 13 15; do
2702 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2706 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2707 rm -f -r conftest* confdefs.h
2709 $as_echo "/* confdefs.h */" > confdefs.h
2711 # Predefined preprocessor variables.
2713 cat >>confdefs.h <<_ACEOF
2714 #define PACKAGE_NAME "$PACKAGE_NAME"
2717 cat >>confdefs.h <<_ACEOF
2718 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2721 cat >>confdefs.h <<_ACEOF
2722 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE_STRING "$PACKAGE_STRING"
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2733 cat >>confdefs.h <<_ACEOF
2734 #define PACKAGE_URL "$PACKAGE_URL"
2738 # Let the site file select an alternate cache file if it wants to.
2739 # Prefer an explicitly selected file to automatically selected ones.
2742 if test -n "$CONFIG_SITE"; then
2743 # We do not want a PATH search for config.site.
2744 case $CONFIG_SITE in #((
2745 -*) ac_site_file1=./$CONFIG_SITE;;
2746 */*) ac_site_file1=$CONFIG_SITE;;
2747 *) ac_site_file1=./$CONFIG_SITE;;
2749 elif test "x$prefix" != xNONE; then
2750 ac_site_file1=$prefix/share/config.site
2751 ac_site_file2=$prefix/etc/config.site
2753 ac_site_file1=$ac_default_prefix/share/config.site
2754 ac_site_file2=$ac_default_prefix/etc/config.site
2756 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2758 test "x$ac_site_file" = xNONE && continue
2759 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2761 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2762 sed 's/^/| /' "$ac_site_file" >&5
2764 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 as_fn_error $? "failed to load site script $ac_site_file
2767 See \`config.log' for more details" "$LINENO" 5; }
2771 if test -r "$cache_file"; then
2772 # Some versions of bash will fail to source /dev/null (special files
2773 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2774 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2776 $as_echo "$as_me: loading cache $cache_file" >&6;}
2778 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2779 *) . "./$cache_file";;
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2784 $as_echo "$as_me: creating cache $cache_file" >&6;}
2788 as_fn_append ac_header_list " stdlib.h"
2789 as_fn_append ac_header_list " unistd.h"
2790 as_fn_append ac_header_list " sys/param.h"
2791 # Check that the precious variables saved in the cache have kept the same
2793 ac_cache_corrupted=false
2794 for ac_var in $ac_precious_vars; do
2795 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2796 eval ac_new_set=\$ac_env_${ac_var}_set
2797 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2798 eval ac_new_val=\$ac_env_${ac_var}_value
2799 case $ac_old_set,$ac_new_set in
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2802 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2803 ac_cache_corrupted=: ;;
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2806 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2807 ac_cache_corrupted=: ;;
2810 if test "x$ac_old_val" != "x$ac_new_val"; then
2811 # differences in whitespace do not lead to failure.
2812 ac_old_val_w=`echo x $ac_old_val`
2813 ac_new_val_w=`echo x $ac_new_val`
2814 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2816 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2817 ac_cache_corrupted=:
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2820 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2821 eval $ac_var=\$ac_old_val
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2824 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2826 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2829 # Pass precious variables to config.status.
2830 if test "$ac_new_set" = set; then
2832 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2833 *) ac_arg=$ac_var=$ac_new_val ;;
2835 case " $ac_configure_args " in
2836 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2837 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2841 if $ac_cache_corrupted; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2845 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2846 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2848 ## -------------------- ##
2849 ## Main body of script. ##
2850 ## -------------------- ##
2853 ac_cpp='$CPP $CPPFLAGS'
2854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862 ac_config_headers="$ac_config_headers config.h:config.in"
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2866 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2867 # Check whether --enable-maintainer-mode was given.
2868 if test "${enable_maintainer_mode+set}" = set; then :
2869 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2871 USE_MAINTAINER_MODE=no
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2875 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2876 if test $USE_MAINTAINER_MODE = yes; then
2877 MAINTAINER_MODE_TRUE=
2878 MAINTAINER_MODE_FALSE='#'
2880 MAINTAINER_MODE_TRUE='#'
2881 MAINTAINER_MODE_FALSE=
2884 MAINT=$MAINTAINER_MODE_TRUE
2888 # Set the 'development' global.
2889 . $srcdir/../bfd/development.sh
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2935 if test -z "$ac_cv_prog_CC"; then
2937 # Extract the first word of "gcc", so it can be a program name with args.
2938 set dummy gcc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$ac_ct_CC"; then
2945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_ac_ct_CC="gcc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965 if test -n "$ac_ct_CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2967 $as_echo "$ac_ct_CC" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2973 if test "x$ac_ct_CC" = x; then
2976 case $cross_compiling:$ac_tool_warned in
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980 ac_tool_warned=yes ;;
2988 if test -z "$CC"; then
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}cc; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_CC+:} false; then :
2995 $as_echo_n "(cached) " >&6
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_CC="${ac_tool_prefix}cc"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 if test -n "$CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 $as_echo "$CC" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3029 if test -z "$CC"; then
3030 # Extract the first word of "cc", so it can be a program name with args.
3031 set dummy cc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3049 ac_prog_rejected=yes
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 if test $ac_prog_rejected = yes; then
3061 # We found a bogon in the path, so make sure we never use it.
3062 set dummy $ac_cv_prog_CC
3064 if test $# != 0; then
3065 # We chose a different compiler from the bogus one.
3066 # However, it has the same basename, so the bogon will be chosen
3067 # first if we set CC to just the basename; use the full file name.
3069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3085 if test -z "$CC"; then
3086 if test -n "$ac_tool_prefix"; then
3087 for ac_prog in cl.exe
3089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3126 test -n "$CC" && break
3129 if test -z "$CC"; then
3131 for ac_prog in cl.exe
3133 # Extract the first word of "$ac_prog", so it can be a program name with args.
3134 set dummy $ac_prog; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_ac_ct_CC="$ac_prog"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3170 test -n "$ac_ct_CC" && break
3173 if test "x$ac_ct_CC" = x; then
3176 case $cross_compiling:$ac_tool_warned in
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180 ac_tool_warned=yes ;;
3189 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error $? "no acceptable C compiler found in \$PATH
3192 See \`config.log' for more details" "$LINENO" 5; }
3194 # Provide some information about the compiler.
3195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3198 for ac_option in --version -v -V -qversion; do
3199 { { ac_try="$ac_compiler $ac_option >&5"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3208 if test -s conftest.err; then
3210 ... rest of stderr output deleted ...
3211 10q' conftest.err >conftest.er1
3212 cat conftest.er1 >&5
3214 rm -f conftest.er1 conftest.err
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3230 ac_clean_files_save=$ac_clean_files
3231 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3232 # Try to create an executable without -o first, disregard a.out.
3233 # It will help us diagnose broken compilers, and finding out an intuition
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3236 $as_echo_n "checking whether the C compiler works... " >&6; }
3237 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3239 # The possible output files:
3240 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3243 for ac_file in $ac_files
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3247 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3252 if { { ac_try="$ac_link_default"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_link_default") 2>&5
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3265 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3266 # so that the user can short-circuit this test for compilers unknown to
3268 for ac_file in $ac_files ''
3270 test -f "$ac_file" || continue
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3275 # We found the default executable, but exeext='' is most
3279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283 # We set ac_cv_exeext here because the later test for it is not
3284 # safe: cross compilers may not add the suffix if given an `-o'
3285 # argument, so we may need to know it at that point already.
3286 # Even if this section looks crufty: it has the advantage of
3293 test "$ac_cv_exeext" = no && ac_cv_exeext=
3298 if test -z "$ac_file"; then :
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 $as_echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error 77 "C compiler cannot create executables
3307 See \`config.log' for more details" "$LINENO" 5; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3313 $as_echo_n "checking for C compiler default output file name... " >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 ac_exeext=$ac_cv_exeext
3318 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3319 ac_clean_files=$ac_clean_files_save
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3321 $as_echo_n "checking for suffix of executables... " >&6; }
3322 if { { ac_try="$ac_link"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link") 2>&5
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3334 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3335 # work properly (i.e., refer to `conftest.exe'), while it won't with
3337 for ac_file in conftest.exe conftest conftest.*; do
3338 test -f "$ac_file" || continue
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3341 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3350 See \`config.log' for more details" "$LINENO" 5; }
3352 rm -f conftest conftest$ac_cv_exeext
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3354 $as_echo "$ac_cv_exeext" >&6; }
3356 rm -f conftest.$ac_ext
3357 EXEEXT=$ac_cv_exeext
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3365 FILE *f = fopen ("conftest.out", "w");
3366 return ferror (f) || fclose (f) != 0;
3372 ac_clean_files="$ac_clean_files conftest.out"
3373 # Check that the compiler produces executables we can run. If not, either
3374 # the compiler is broken, or we cross compile.
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3376 $as_echo_n "checking whether we are cross compiling... " >&6; }
3377 if test "$cross_compiling" != yes; then
3378 { { ac_try="$ac_link"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_link") 2>&5
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }
3389 if { ac_try='./conftest$ac_cv_exeext'
3390 { { case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_try") 2>&5
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; }; then
3402 if test "$cross_compiling" = maybe; then
3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error $? "cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details" "$LINENO" 5; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3414 $as_echo "$cross_compiling" >&6; }
3416 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3417 ac_clean_files=$ac_clean_files_save
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3419 $as_echo_n "checking for suffix of object files... " >&6; }
3420 if ${ac_cv_objext+:} false; then :
3421 $as_echo_n "(cached) " >&6
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3434 rm -f conftest.o conftest.obj
3435 if { { ac_try="$ac_compile"
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_compile") 2>&5
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; then :
3446 for ac_file in conftest.o conftest.obj conftest.*; do
3447 test -f "$ac_file" || continue;
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error $? "cannot compute suffix of object files: cannot compile
3461 See \`config.log' for more details" "$LINENO" 5; }
3463 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3466 $as_echo "$ac_cv_objext" >&6; }
3467 OBJEXT=$ac_cv_objext
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3470 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3471 if ${ac_cv_c_compiler_gnu+:} false; then :
3472 $as_echo_n "(cached) " >&6
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3488 if ac_fn_c_try_compile "$LINENO"; then :
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3498 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3499 if test $ac_compiler_gnu = yes; then
3504 ac_test_CFLAGS=${CFLAGS+set}
3505 ac_save_CFLAGS=$CFLAGS
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3507 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3508 if ${ac_cv_prog_cc_g+:} false; then :
3509 $as_echo_n "(cached) " >&6
3511 ac_save_c_werror_flag=$ac_c_werror_flag
3512 ac_c_werror_flag=yes
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3526 if ac_fn_c_try_compile "$LINENO"; then :
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3541 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_c_werror_flag=$ac_save_c_werror_flag
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3557 if ac_fn_c_try_compile "$LINENO"; then :
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3568 $as_echo "$ac_cv_prog_cc_g" >&6; }
3569 if test "$ac_test_CFLAGS" = set; then
3570 CFLAGS=$ac_save_CFLAGS
3571 elif test $ac_cv_prog_cc_g = yes; then
3572 if test "$GCC" = yes; then
3578 if test "$GCC" = yes; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3585 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3586 if ${ac_cv_prog_cc_c89+:} false; then :
3587 $as_echo_n "(cached) " >&6
3589 ac_cv_prog_cc_c89=no
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3597 struct buf { int x; };
3598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599 static char *e (p, i)
3605 static char *f (char * (*g) (char **, int), char **p, ...)
3610 s = g (p, va_arg (v,int));
3615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3616 function prototypes and stuff, but not '\xHH' hex character constants.
3617 These don't provoke an error unfortunately, instead are silently treated
3618 as 'x'. The following induces an error, until -std is added to get
3619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3620 array size at least. It's necessary to write '\x00'==0 to get something
3621 that's true only with -std. */
3622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3625 inside strings and character constants. */
3627 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629 int test (int i, double x);
3630 struct s1 {int (*f) (int a);};
3631 struct s2 {int (*f) (double a);};
3632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3638 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646 CC="$ac_save_CC $ac_arg"
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_cv_prog_cc_c89=$ac_arg
3650 rm -f core conftest.err conftest.$ac_objext
3651 test "x$ac_cv_prog_cc_c89" != "xno" && break
3653 rm -f conftest.$ac_ext
3658 case "x$ac_cv_prog_cc_c89" in
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3661 $as_echo "none needed" >&6; } ;;
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3664 $as_echo "unsupported" >&6; } ;;
3666 CC="$CC $ac_cv_prog_cc_c89"
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3668 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3670 if test "x$ac_cv_prog_cc_c89" != xno; then :
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681 ac_cpp='$CXXCPP $CPPFLAGS'
3682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685 if test -z "$CXX"; then
3686 if test -n "$CCC"; then
3689 if test -n "$ac_tool_prefix"; then
3690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if ${ac_cv_prog_CXX+:} false; then :
3697 $as_echo_n "(cached) " >&6
3699 if test -n "$CXX"; then
3700 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3709 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 if test -n "$CXX"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3722 $as_echo "$CXX" >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3729 test -n "$CXX" && break
3732 if test -z "$CXX"; then
3734 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3736 # Extract the first word of "$ac_prog", so it can be a program name with args.
3737 set dummy $ac_prog; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3741 $as_echo_n "(cached) " >&6
3743 if test -n "$ac_ct_CXX"; then
3744 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 ac_cv_prog_ac_ct_CXX="$ac_prog"
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3764 if test -n "$ac_ct_CXX"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3766 $as_echo "$ac_ct_CXX" >&6; }
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3773 test -n "$ac_ct_CXX" && break
3776 if test "x$ac_ct_CXX" = x; then
3779 case $cross_compiling:$ac_tool_warned in
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3783 ac_tool_warned=yes ;;
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3795 for ac_option in --version -v -V -qversion; do
3796 { { ac_try="$ac_compiler $ac_option >&5"
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 if test -s conftest.err; then
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
3811 rm -f conftest.er1 conftest.err
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3817 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3818 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3819 $as_echo_n "(cached) " >&6
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3835 if ac_fn_cxx_try_compile "$LINENO"; then :
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3845 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3846 if test $ac_compiler_gnu = yes; then
3851 ac_test_CXXFLAGS=${CXXFLAGS+set}
3852 ac_save_CXXFLAGS=$CXXFLAGS
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3854 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3855 if ${ac_cv_prog_cxx_g+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3859 ac_cxx_werror_flag=yes
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3873 if ac_fn_cxx_try_compile "$LINENO"; then :
3874 ac_cv_prog_cxx_g=yes
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3888 if ac_fn_cxx_try_compile "$LINENO"; then :
3891 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3904 if ac_fn_cxx_try_compile "$LINENO"; then :
3905 ac_cv_prog_cxx_g=yes
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3915 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3916 if test "$ac_test_CXXFLAGS" = set; then
3917 CXXFLAGS=$ac_save_CXXFLAGS
3918 elif test $ac_cv_prog_cxx_g = yes; then
3919 if test "$GXX" = yes; then
3925 if test "$GXX" = yes; then
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3945 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3946 # On Suns, sometimes $CPP names a directory.
3947 if test -n "$CPP" && test -d "$CPP"; then
3950 if test -z "$CPP"; then
3951 if ${ac_cv_prog_CPP+:} false; then :
3952 $as_echo_n "(cached) " >&6
3954 # Double quotes because CPP needs to be expanded
3955 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3958 for ac_c_preproc_warn_flag in '' yes
3960 # Use a header file that comes with gcc, so configuring glibc
3961 # with a fresh cross-compiler works.
3962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3963 # <limits.h> exists even on freestanding compilers.
3964 # On the NeXT, cc -E runs the code through the compiler's parser,
3965 # not just through cpp. "Syntax error" is here to catch this case.
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3969 # include <limits.h>
3971 # include <assert.h>
3975 if ac_fn_c_try_cpp "$LINENO"; then :
3978 # Broken: fails on valid input.
3981 rm -f conftest.err conftest.i conftest.$ac_ext
3983 # OK, works on sane cases. Now check whether nonexistent headers
3984 # can be detected and how.
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987 #include <ac_nonexistent.h>
3989 if ac_fn_c_try_cpp "$LINENO"; then :
3990 # Broken: success on invalid input.
3993 # Passes both tests.
3997 rm -f conftest.err conftest.i conftest.$ac_ext
4000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4001 rm -f conftest.i conftest.err conftest.$ac_ext
4002 if $ac_preproc_ok; then :
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4015 $as_echo "$CPP" >&6; }
4017 for ac_c_preproc_warn_flag in '' yes
4019 # Use a header file that comes with gcc, so configuring glibc
4020 # with a fresh cross-compiler works.
4021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4022 # <limits.h> exists even on freestanding compilers.
4023 # On the NeXT, cc -E runs the code through the compiler's parser,
4024 # not just through cpp. "Syntax error" is here to catch this case.
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4028 # include <limits.h>
4030 # include <assert.h>
4034 if ac_fn_c_try_cpp "$LINENO"; then :
4037 # Broken: fails on valid input.
4040 rm -f conftest.err conftest.i conftest.$ac_ext
4042 # OK, works on sane cases. Now check whether nonexistent headers
4043 # can be detected and how.
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #include <ac_nonexistent.h>
4048 if ac_fn_c_try_cpp "$LINENO"; then :
4049 # Broken: success on invalid input.
4052 # Passes both tests.
4056 rm -f conftest.err conftest.i conftest.$ac_ext
4059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4060 rm -f conftest.i conftest.err conftest.$ac_ext
4061 if $ac_preproc_ok; then :
4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4067 See \`config.log' for more details" "$LINENO" 5; }
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4078 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4079 if ${ac_cv_path_GREP+:} false; then :
4080 $as_echo_n "(cached) " >&6
4082 if test -z "$GREP"; then
4083 ac_path_GREP_found=false
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089 test -z "$as_dir" && as_dir=.
4090 for ac_prog in grep ggrep; do
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4093 as_fn_executable_p "$ac_path_GREP" || continue
4094 # Check for GNU ac_path_GREP and select it if it is found.
4095 # Check for GNU $ac_path_GREP
4096 case `"$ac_path_GREP" --version 2>&1` in
4098 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4101 $as_echo_n 0123456789 >"conftest.in"
4104 cat "conftest.in" "conftest.in" >"conftest.tmp"
4105 mv "conftest.tmp" "conftest.in"
4106 cp "conftest.in" "conftest.nl"
4107 $as_echo 'GREP' >> "conftest.nl"
4108 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110 as_fn_arith $ac_count + 1 && ac_count=$as_val
4111 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4112 # Best one so far, save it but keep looking for a better one
4113 ac_cv_path_GREP="$ac_path_GREP"
4114 ac_path_GREP_max=$ac_count
4116 # 10*(2^10) chars as input seems more than enough
4117 test $ac_count -gt 10 && break
4119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122 $ac_path_GREP_found && break 3
4127 if test -z "$ac_cv_path_GREP"; then
4128 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4131 ac_cv_path_GREP=$GREP
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4136 $as_echo "$ac_cv_path_GREP" >&6; }
4137 GREP="$ac_cv_path_GREP"
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4141 $as_echo_n "checking for egrep... " >&6; }
4142 if ${ac_cv_path_EGREP+:} false; then :
4143 $as_echo_n "(cached) " >&6
4145 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4146 then ac_cv_path_EGREP="$GREP -E"
4148 if test -z "$EGREP"; then
4149 ac_path_EGREP_found=false
4150 # Loop through the user's path and test for each of PROGNAME-LIST
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4155 test -z "$as_dir" && as_dir=.
4156 for ac_prog in egrep; do
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4159 as_fn_executable_p "$ac_path_EGREP" || continue
4160 # Check for GNU ac_path_EGREP and select it if it is found.
4161 # Check for GNU $ac_path_EGREP
4162 case `"$ac_path_EGREP" --version 2>&1` in
4164 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4167 $as_echo_n 0123456789 >"conftest.in"
4170 cat "conftest.in" "conftest.in" >"conftest.tmp"
4171 mv "conftest.tmp" "conftest.in"
4172 cp "conftest.in" "conftest.nl"
4173 $as_echo 'EGREP' >> "conftest.nl"
4174 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4176 as_fn_arith $ac_count + 1 && ac_count=$as_val
4177 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4178 # Best one so far, save it but keep looking for a better one
4179 ac_cv_path_EGREP="$ac_path_EGREP"
4180 ac_path_EGREP_max=$ac_count
4182 # 10*(2^10) chars as input seems more than enough
4183 test $ac_count -gt 10 && break
4185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4188 $ac_path_EGREP_found && break 3
4193 if test -z "$ac_cv_path_EGREP"; then
4194 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4197 ac_cv_path_EGREP=$EGREP
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4203 $as_echo "$ac_cv_path_EGREP" >&6; }
4204 EGREP="$ac_cv_path_EGREP"
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4208 $as_echo_n "checking for ANSI C header files... " >&6; }
4209 if ${ac_cv_header_stdc+:} false; then :
4210 $as_echo_n "(cached) " >&6
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_header_stdc=yes
4230 ac_cv_header_stdc=no
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 if test $ac_cv_header_stdc = yes; then
4235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242 $EGREP "memchr" >/dev/null 2>&1; then :
4245 ac_cv_header_stdc=no
4251 if test $ac_cv_header_stdc = yes; then
4252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "free" >/dev/null 2>&1; then :
4262 ac_cv_header_stdc=no
4268 if test $ac_cv_header_stdc = yes; then
4269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4270 if test "$cross_compiling" = yes; then :
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4277 #if ((' ' & 0x0FF) == 0x020)
4278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4281 # define ISLOWER(c) \
4282 (('a' <= (c) && (c) <= 'i') \
4283 || ('j' <= (c) && (c) <= 'r') \
4284 || ('s' <= (c) && (c) <= 'z'))
4285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4293 for (i = 0; i < 256; i++)
4294 if (XOR (islower (i), ISLOWER (i))
4295 || toupper (i) != TOUPPER (i))
4300 if ac_fn_c_try_run "$LINENO"; then :
4303 ac_cv_header_stdc=no
4305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4306 conftest.$ac_objext conftest.beam conftest.$ac_ext
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4312 $as_echo "$ac_cv_header_stdc" >&6; }
4313 if test $ac_cv_header_stdc = yes; then
4315 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4319 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4321 inttypes.h stdint.h unistd.h
4323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4326 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4327 cat >>confdefs.h <<_ACEOF
4328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4337 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4338 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4345 if test "$MINIX" = yes; then
4347 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4350 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4353 $as_echo "#define _MINIX 1" >>confdefs.h
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4359 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4360 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4361 $as_echo_n "(cached) " >&6
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4366 # define __EXTENSIONS__ 1
4367 $ac_includes_default
4376 if ac_fn_c_try_compile "$LINENO"; then :
4377 ac_cv_safe_to_define___extensions__=yes
4379 ac_cv_safe_to_define___extensions__=no
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4384 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4385 test $ac_cv_safe_to_define___extensions__ = yes &&
4386 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4388 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4390 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4392 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4394 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4398 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4399 if test -f "$ac_dir/install-sh"; then
4401 ac_install_sh="$ac_aux_dir/install-sh -c"
4403 elif test -f "$ac_dir/install.sh"; then
4405 ac_install_sh="$ac_aux_dir/install.sh -c"
4407 elif test -f "$ac_dir/shtool"; then
4409 ac_install_sh="$ac_aux_dir/shtool install -c"
4413 if test -z "$ac_aux_dir"; then
4414 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4417 # These three variables are undocumented and unsupported,
4418 # and are intended to be withdrawn in a future Autoconf release.
4419 # They can cause serious problems if a builder's source tree is in a directory
4420 # whose full name contains unusual characters.
4421 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4422 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4423 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4426 # Make sure we can run config.sub.
4427 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4428 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4431 $as_echo_n "checking build system type... " >&6; }
4432 if ${ac_cv_build+:} false; then :
4433 $as_echo_n "(cached) " >&6
4435 ac_build_alias=$build_alias
4436 test "x$ac_build_alias" = x &&
4437 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4438 test "x$ac_build_alias" = x &&
4439 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4440 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4445 $as_echo "$ac_cv_build" >&6; }
4446 case $ac_cv_build in
4448 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4451 ac_save_IFS=$IFS; IFS='-'
4457 # Remember, the first character of IFS is used to create $*,
4458 # except with old shells:
4461 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4465 $as_echo_n "checking host system type... " >&6; }
4466 if ${ac_cv_host+:} false; then :
4467 $as_echo_n "(cached) " >&6
4469 if test "x$host_alias" = x; then
4470 ac_cv_host=$ac_cv_build
4472 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4478 $as_echo "$ac_cv_host" >&6; }
4481 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4484 ac_save_IFS=$IFS; IFS='-'
4490 # Remember, the first character of IFS is used to create $*,
4491 # except with old shells:
4494 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4498 $as_echo_n "checking target system type... " >&6; }
4499 if ${ac_cv_target+:} false; then :
4500 $as_echo_n "(cached) " >&6
4502 if test "x$target_alias" = x; then
4503 ac_cv_target=$ac_cv_host
4505 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4511 $as_echo "$ac_cv_target" >&6; }
4512 case $ac_cv_target in
4514 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4516 target=$ac_cv_target
4517 ac_save_IFS=$IFS; IFS='-'
4523 # Remember, the first character of IFS is used to create $*,
4524 # except with old shells:
4527 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4530 # The aliases save the names the user supplied, while $host etc.
4531 # will get canonicalized.
4532 test -n "$target_alias" &&
4533 test "$program_prefix$program_suffix$program_transform_name" = \
4535 program_prefix=${target_alias}-
4537 # The tests for host and target for $enable_largefile require
4542 # As the $enable_largefile decision depends on --enable-plugins we must set it
4543 # even in directories otherwise not depending on the $plugins option.
4547 for ac_header in dlfcn.h
4549 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4551 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4552 cat >>confdefs.h <<_ACEOF
4553 #define HAVE_DLFCN_H 1
4560 for ac_header in windows.h
4562 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4564 if test "x$ac_cv_header_windows_h" = xyes; then :
4565 cat >>confdefs.h <<_ACEOF
4566 #define HAVE_WINDOWS_H 1
4574 # Check whether --enable-plugins was given.
4575 if test "${enable_plugins+set}" = set; then :
4576 enableval=$enable_plugins; case "${enableval}" in
4579 if test "$maybe_plugins" != "yes" ; then
4580 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4584 plugins=$maybe_plugins
4588 if test "$plugins" = "yes"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4590 $as_echo_n "checking for library containing dlsym... " >&6; }
4591 if ${ac_cv_search_dlsym+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 ac_func_search_save_LIBS=$LIBS
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4598 /* Override any GCC internal prototype to avoid an error.
4599 Use char because int might match the return type of a GCC
4600 builtin and then its argument prototype would still apply. */
4613 for ac_lib in '' dl; do
4614 if test -z "$ac_lib"; then
4615 ac_res="none required"
4618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4620 if ac_fn_c_try_link "$LINENO"; then :
4621 ac_cv_search_dlsym=$ac_res
4623 rm -f core conftest.err conftest.$ac_objext \
4625 if ${ac_cv_search_dlsym+:} false; then :
4629 if ${ac_cv_search_dlsym+:} false; then :
4632 ac_cv_search_dlsym=no
4635 LIBS=$ac_func_search_save_LIBS
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4638 $as_echo "$ac_cv_search_dlsym" >&6; }
4639 ac_res=$ac_cv_search_dlsym
4640 if test "$ac_res" != no; then :
4641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4649 sparc-*-solaris*|i[3-7]86-*-solaris*)
4650 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4651 # are mutually exclusive; and without procfs support, the bfd/ elf module
4652 # cannot provide certain routines such as elfcore_write_prpsinfo
4653 # or elfcore_write_prstatus. So unless the user explicitly requested
4654 # large-file support through the --enable-largefile switch, disable
4655 # large-file support in favor of procfs support.
4656 test "${target}" = "${host}" -a "x$plugins" = xno \
4657 && : ${enable_largefile="no"}
4661 # Check whether --enable-largefile was given.
4662 if test "${enable_largefile+set}" = set; then :
4663 enableval=$enable_largefile;
4666 if test "$enable_largefile" != no; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4669 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4670 if ${ac_cv_sys_largefile_CC+:} false; then :
4671 $as_echo_n "(cached) " >&6
4673 ac_cv_sys_largefile_CC=no
4674 if test "$GCC" != yes; then
4677 # IRIX 6.2 and later do not support large files by default,
4678 # so use the C compiler's -n32 option if that helps.
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 #include <sys/types.h>
4682 /* Check that off_t can represent 2**63 - 1 correctly.
4683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4684 since some C++ compilers masquerading as C compilers
4685 incorrectly reject 9223372036854775807. */
4686 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4688 && LARGE_OFF_T % 2147483647 == 1)
4698 if ac_fn_c_try_compile "$LINENO"; then :
4701 rm -f core conftest.err conftest.$ac_objext
4703 if ac_fn_c_try_compile "$LINENO"; then :
4704 ac_cv_sys_largefile_CC=' -n32'; break
4706 rm -f core conftest.err conftest.$ac_objext
4710 rm -f conftest.$ac_ext
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4714 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4715 if test "$ac_cv_sys_largefile_CC" != no; then
4716 CC=$CC$ac_cv_sys_largefile_CC
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4720 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4721 if ${ac_cv_sys_file_offset_bits+:} false; then :
4722 $as_echo_n "(cached) " >&6
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727 #include <sys/types.h>
4728 /* Check that off_t can represent 2**63 - 1 correctly.
4729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4730 since some C++ compilers masquerading as C compilers
4731 incorrectly reject 9223372036854775807. */
4732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4734 && LARGE_OFF_T % 2147483647 == 1)
4744 if ac_fn_c_try_compile "$LINENO"; then :
4745 ac_cv_sys_file_offset_bits=no; break
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750 #define _FILE_OFFSET_BITS 64
4751 #include <sys/types.h>
4752 /* Check that off_t can represent 2**63 - 1 correctly.
4753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4754 since some C++ compilers masquerading as C compilers
4755 incorrectly reject 9223372036854775807. */
4756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4758 && LARGE_OFF_T % 2147483647 == 1)
4768 if ac_fn_c_try_compile "$LINENO"; then :
4769 ac_cv_sys_file_offset_bits=64; break
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 ac_cv_sys_file_offset_bits=unknown
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4777 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4778 case $ac_cv_sys_file_offset_bits in #(
4781 cat >>confdefs.h <<_ACEOF
4782 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4787 if test $ac_cv_sys_file_offset_bits = unknown; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4789 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4790 if ${ac_cv_sys_large_files+:} false; then :
4791 $as_echo_n "(cached) " >&6
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 #include <sys/types.h>
4797 /* Check that off_t can represent 2**63 - 1 correctly.
4798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4799 since some C++ compilers masquerading as C compilers
4800 incorrectly reject 9223372036854775807. */
4801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4803 && LARGE_OFF_T % 2147483647 == 1)
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814 ac_cv_sys_large_files=no; break
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4819 #define _LARGE_FILES 1
4820 #include <sys/types.h>
4821 /* Check that off_t can represent 2**63 - 1 correctly.
4822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4823 since some C++ compilers masquerading as C compilers
4824 incorrectly reject 9223372036854775807. */
4825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4827 && LARGE_OFF_T % 2147483647 == 1)
4837 if ac_fn_c_try_compile "$LINENO"; then :
4838 ac_cv_sys_large_files=1; break
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 ac_cv_sys_large_files=unknown
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4846 $as_echo "$ac_cv_sys_large_files" >&6; }
4847 case $ac_cv_sys_large_files in #(
4850 cat >>confdefs.h <<_ACEOF
4851 #define _LARGE_FILES $ac_cv_sys_large_files
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4866 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4867 if ${am_cv_prog_cc_stdc+:} false; then :
4868 $as_echo_n "(cached) " >&6
4870 am_cv_prog_cc_stdc=no
4872 # Don't try gcc -ansi; that turns off useful extensions and
4873 # breaks some systems' header files.
4874 # AIX -qlanglvl=ansi
4875 # Ultrix and OSF/1 -std1
4876 # HP-UX 10.20 and later -Ae
4877 # HP-UX older versions -Aa -D_HPUX_SOURCE
4878 # SVR4 -Xc -D__EXTENSIONS__
4879 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4881 CC="$ac_save_CC $ac_arg"
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4886 #include <sys/types.h>
4887 #include <sys/stat.h>
4888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4889 struct buf { int x; };
4890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4891 static char *e (p, i)
4897 static char *f (char * (*g) (char **, int), char **p, ...)
4902 s = g (p, va_arg (v,int));
4906 int test (int i, double x);
4907 struct s1 {int (*f) (int a);};
4908 struct s2 {int (*f) (double a);};
4909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 am_cv_prog_cc_stdc="$ac_arg"; break
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 if test -z "$am_cv_prog_cc_stdc"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4934 $as_echo "none needed" >&6; }
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4937 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4939 case "x$am_cv_prog_cc_stdc" in
4941 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4944 # Expand $ac_aux_dir to an absolute path.
4945 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4947 if test x"${install_sh+set}" != xset; then
4950 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4952 install_sh="\${SHELL} $am_aux_dir/install-sh"
4956 # Installed binaries are usually stripped using 'strip' when the user
4957 # run "make install-strip". However 'strip' might not be the right
4958 # tool to use in cross-compilation environments, therefore Automake
4959 # will honor the 'STRIP' environment variable to overrule this program.
4960 if test "$cross_compiling" != no; then
4961 if test -n "$ac_tool_prefix"; then
4962 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4963 set dummy ${ac_tool_prefix}strip; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if ${ac_cv_prog_STRIP+:} false; then :
4967 $as_echo_n "(cached) " >&6
4969 if test -n "$STRIP"; then
4970 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 STRIP=$ac_cv_prog_STRIP
4990 if test -n "$STRIP"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4992 $as_echo "$STRIP" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
5000 if test -z "$ac_cv_prog_STRIP"; then
5002 # Extract the first word of "strip", so it can be a program name with args.
5003 set dummy strip; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5007 $as_echo_n "(cached) " >&6
5009 if test -n "$ac_ct_STRIP"; then
5010 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_prog_ac_ct_STRIP="strip"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5030 if test -n "$ac_ct_STRIP"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5032 $as_echo "$ac_ct_STRIP" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5038 if test "x$ac_ct_STRIP" = x; then
5041 case $cross_compiling:$ac_tool_warned in
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5045 ac_tool_warned=yes ;;
5050 STRIP="$ac_cv_prog_STRIP"
5054 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5058 for ac_dir in .. "$srcdir"/..; do
5059 if test -f "$ac_dir/install-sh"; then
5061 ac_install_sh="$ac_aux_dir/install-sh -c"
5063 elif test -f "$ac_dir/install.sh"; then
5065 ac_install_sh="$ac_aux_dir/install.sh -c"
5067 elif test -f "$ac_dir/shtool"; then
5069 ac_install_sh="$ac_aux_dir/shtool install -c"
5073 if test -z "$ac_aux_dir"; then
5074 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5077 # These three variables are undocumented and unsupported,
5078 # and are intended to be withdrawn in a future Autoconf release.
5079 # They can cause serious problems if a builder's source tree is in a directory
5080 # whose full name contains unusual characters.
5081 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5082 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5083 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5087 test "$program_prefix" != NONE &&
5088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5089 # Use a double $ so make ignores it.
5090 test "$program_suffix" != NONE &&
5091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5092 # Double any \ or $.
5093 # By default was `s,x,x', remove it if useless.
5094 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5095 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5098 # We require a C++11 compiler. Check if one is available, and if
5099 # necessary, set CXX_DIALECT to some -std=xxx switch.
5101 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5103 ac_cpp='$CXXCPP $CPPFLAGS'
5104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5110 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5111 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5112 $as_echo_n "(cached) " >&6
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5118 // If the compiler admits that it is not ready for C++11, why torture it?
5119 // Hopefully, this will speed up the test.
5123 #error "This is not a C++ compiler"
5125 #elif __cplusplus < 201103L
5127 #error "This is not a C++11 compiler"
5134 namespace test_static_assert
5137 template <typename T>
5140 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5145 namespace test_final_override
5153 struct Derived : public Base
5155 virtual void f() override {}
5160 namespace test_double_right_angle_brackets
5163 template < typename T >
5166 typedef check<void> single_type;
5167 typedef check<check<void>> double_type;
5168 typedef check<check<check<void>>> triple_type;
5169 typedef check<check<check<check<void>>>> quadruple_type;
5173 namespace test_decltype
5186 namespace test_type_deduction
5189 template < typename T1, typename T2 >
5192 static const bool value = false;
5195 template < typename T >
5196 struct is_same<T, T>
5198 static const bool value = true;
5201 template < typename T1, typename T2 >
5203 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5209 test(const int c, volatile int v)
5211 static_assert(is_same<int, decltype(0)>::value == true, "");
5212 static_assert(is_same<int, decltype(c)>::value == false, "");
5213 static_assert(is_same<int, decltype(v)>::value == false, "");
5216 auto sumi = ac + av + 'x';
5217 auto sumf = ac + av + 1.0;
5218 static_assert(is_same<int, decltype(ac)>::value == true, "");
5219 static_assert(is_same<int, decltype(av)>::value == true, "");
5220 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5221 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5222 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5223 return (sumf > 0.0) ? sumi : add(c, v);
5228 namespace test_noexcept
5231 int f() { return 0; }
5232 int g() noexcept { return 0; }
5234 static_assert(noexcept(f()) == false, "");
5235 static_assert(noexcept(g()) == true, "");
5239 namespace test_constexpr
5242 template < typename CharT >
5243 unsigned long constexpr
5244 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5246 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5249 template < typename CharT >
5250 unsigned long constexpr
5251 strlen_c(const CharT *const s) noexcept
5253 return strlen_c_r(s, 0UL);
5256 static_assert(strlen_c("") == 0UL, "");
5257 static_assert(strlen_c("1") == 1UL, "");
5258 static_assert(strlen_c("example") == 7UL, "");
5259 static_assert(strlen_c("another\0example") == 7UL, "");
5263 namespace test_rvalue_references
5269 static constexpr int value = N;
5272 answer<1> f(int&) { return answer<1>(); }
5273 answer<2> f(const int&) { return answer<2>(); }
5274 answer<3> f(int&&) { return answer<3>(); }
5281 static_assert(decltype(f(i))::value == 1, "");
5282 static_assert(decltype(f(c))::value == 2, "");
5283 static_assert(decltype(f(0))::value == 3, "");
5288 namespace test_uniform_initialization
5293 static const int zero {};
5294 static const int one {1};
5297 static_assert(test::zero == 0, "");
5298 static_assert(test::one == 1, "");
5302 namespace test_lambdas
5308 auto lambda1 = [](){};
5309 auto lambda2 = lambda1;
5317 auto a = [](int i, int j){ return i + j; }(1, 2);
5318 auto b = []() -> int { return '0'; }();
5319 auto c = [=](){ return a + b; }();
5320 auto d = [&](){ return c; }();
5321 auto e = [a, &b](int x) mutable {
5322 const auto identity = [](int y){ return y; };
5323 for (auto i = 0; i < a; ++i)
5325 return x + identity(a + b);
5327 return a + b + c + d + e;
5333 const auto nullary = [](){ return 0; };
5334 const auto unary = [](int x){ return x; };
5335 using nullary_t = decltype(nullary);
5336 using unary_t = decltype(unary);
5337 const auto higher1st = [](nullary_t f){ return f(); };
5338 const auto higher2nd = [unary](nullary_t f1){
5339 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5341 return higher1st(nullary) + higher2nd(nullary)(unary);
5346 namespace test_variadic_templates
5352 template <int N0, int... N1toN>
5353 struct sum<N0, N1toN...>
5355 static constexpr auto value = N0 + sum<N1toN...>::value;
5361 static constexpr auto value = 0;
5364 static_assert(sum<>::value == 0, "");
5365 static_assert(sum<1>::value == 1, "");
5366 static_assert(sum<23>::value == 23, "");
5367 static_assert(sum<1, 2>::value == 3, "");
5368 static_assert(sum<5, 5, 11>::value == 21, "");
5369 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5373 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5374 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5376 namespace test_template_alias_sfinae
5381 template<typename T>
5382 using member = typename T::member_type;
5384 template<typename T>
5387 template<typename T>
5388 void func(member<T>*) {}
5392 void test() { func<foo>(0); }
5396 } // namespace cxx11
5398 #endif // __cplusplus >= 201103L
5403 if ac_fn_cxx_try_compile "$LINENO"; then :
5404 ax_cv_cxx_compile_cxx11=yes
5406 ax_cv_cxx_compile_cxx11=no
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5411 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5412 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5416 if test x$ac_success = xno; then
5417 for alternative in ${ax_cxx_compile_alternatives}; do
5418 switch="-std=gnu++${alternative}"
5419 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5421 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5422 if eval \${$cachevar+:} false; then :
5423 $as_echo_n "(cached) " >&6
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5431 // If the compiler admits that it is not ready for C++11, why torture it?
5432 // Hopefully, this will speed up the test.
5436 #error "This is not a C++ compiler"
5438 #elif __cplusplus < 201103L
5440 #error "This is not a C++11 compiler"
5447 namespace test_static_assert
5450 template <typename T>
5453 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5458 namespace test_final_override
5466 struct Derived : public Base
5468 virtual void f() override {}
5473 namespace test_double_right_angle_brackets
5476 template < typename T >
5479 typedef check<void> single_type;
5480 typedef check<check<void>> double_type;
5481 typedef check<check<check<void>>> triple_type;
5482 typedef check<check<check<check<void>>>> quadruple_type;
5486 namespace test_decltype
5499 namespace test_type_deduction
5502 template < typename T1, typename T2 >
5505 static const bool value = false;
5508 template < typename T >
5509 struct is_same<T, T>
5511 static const bool value = true;
5514 template < typename T1, typename T2 >
5516 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5522 test(const int c, volatile int v)
5524 static_assert(is_same<int, decltype(0)>::value == true, "");
5525 static_assert(is_same<int, decltype(c)>::value == false, "");
5526 static_assert(is_same<int, decltype(v)>::value == false, "");
5529 auto sumi = ac + av + 'x';
5530 auto sumf = ac + av + 1.0;
5531 static_assert(is_same<int, decltype(ac)>::value == true, "");
5532 static_assert(is_same<int, decltype(av)>::value == true, "");
5533 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5534 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5535 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5536 return (sumf > 0.0) ? sumi : add(c, v);
5541 namespace test_noexcept
5544 int f() { return 0; }
5545 int g() noexcept { return 0; }
5547 static_assert(noexcept(f()) == false, "");
5548 static_assert(noexcept(g()) == true, "");
5552 namespace test_constexpr
5555 template < typename CharT >
5556 unsigned long constexpr
5557 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5559 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5562 template < typename CharT >
5563 unsigned long constexpr
5564 strlen_c(const CharT *const s) noexcept
5566 return strlen_c_r(s, 0UL);
5569 static_assert(strlen_c("") == 0UL, "");
5570 static_assert(strlen_c("1") == 1UL, "");
5571 static_assert(strlen_c("example") == 7UL, "");
5572 static_assert(strlen_c("another\0example") == 7UL, "");
5576 namespace test_rvalue_references
5582 static constexpr int value = N;
5585 answer<1> f(int&) { return answer<1>(); }
5586 answer<2> f(const int&) { return answer<2>(); }
5587 answer<3> f(int&&) { return answer<3>(); }
5594 static_assert(decltype(f(i))::value == 1, "");
5595 static_assert(decltype(f(c))::value == 2, "");
5596 static_assert(decltype(f(0))::value == 3, "");
5601 namespace test_uniform_initialization
5606 static const int zero {};
5607 static const int one {1};
5610 static_assert(test::zero == 0, "");
5611 static_assert(test::one == 1, "");
5615 namespace test_lambdas
5621 auto lambda1 = [](){};
5622 auto lambda2 = lambda1;
5630 auto a = [](int i, int j){ return i + j; }(1, 2);
5631 auto b = []() -> int { return '0'; }();
5632 auto c = [=](){ return a + b; }();
5633 auto d = [&](){ return c; }();
5634 auto e = [a, &b](int x) mutable {
5635 const auto identity = [](int y){ return y; };
5636 for (auto i = 0; i < a; ++i)
5638 return x + identity(a + b);
5640 return a + b + c + d + e;
5646 const auto nullary = [](){ return 0; };
5647 const auto unary = [](int x){ return x; };
5648 using nullary_t = decltype(nullary);
5649 using unary_t = decltype(unary);
5650 const auto higher1st = [](nullary_t f){ return f(); };
5651 const auto higher2nd = [unary](nullary_t f1){
5652 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5654 return higher1st(nullary) + higher2nd(nullary)(unary);
5659 namespace test_variadic_templates
5665 template <int N0, int... N1toN>
5666 struct sum<N0, N1toN...>
5668 static constexpr auto value = N0 + sum<N1toN...>::value;
5674 static constexpr auto value = 0;
5677 static_assert(sum<>::value == 0, "");
5678 static_assert(sum<1>::value == 1, "");
5679 static_assert(sum<23>::value == 23, "");
5680 static_assert(sum<1, 2>::value == 3, "");
5681 static_assert(sum<5, 5, 11>::value == 21, "");
5682 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5686 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5687 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5689 namespace test_template_alias_sfinae
5694 template<typename T>
5695 using member = typename T::member_type;
5697 template<typename T>
5700 template<typename T>
5701 void func(member<T>*) {}
5705 void test() { func<foo>(0); }
5709 } // namespace cxx11
5711 #endif // __cplusplus >= 201103L
5716 if ac_fn_cxx_try_compile "$LINENO"; then :
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 eval ac_res=\$$cachevar
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5726 $as_echo "$ac_res" >&6; }
5727 if eval test x\$$cachevar = xyes; then
5728 CXX_DIALECT="$switch"
5735 if test x$ac_success = xno; then
5736 for alternative in ${ax_cxx_compile_alternatives}; do
5737 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5738 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5740 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5741 if eval \${$cachevar+:} false; then :
5742 $as_echo_n "(cached) " >&6
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5750 // If the compiler admits that it is not ready for C++11, why torture it?
5751 // Hopefully, this will speed up the test.
5755 #error "This is not a C++ compiler"
5757 #elif __cplusplus < 201103L
5759 #error "This is not a C++11 compiler"
5766 namespace test_static_assert
5769 template <typename T>
5772 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5777 namespace test_final_override
5785 struct Derived : public Base
5787 virtual void f() override {}
5792 namespace test_double_right_angle_brackets
5795 template < typename T >
5798 typedef check<void> single_type;
5799 typedef check<check<void>> double_type;
5800 typedef check<check<check<void>>> triple_type;
5801 typedef check<check<check<check<void>>>> quadruple_type;
5805 namespace test_decltype
5818 namespace test_type_deduction
5821 template < typename T1, typename T2 >
5824 static const bool value = false;
5827 template < typename T >
5828 struct is_same<T, T>
5830 static const bool value = true;
5833 template < typename T1, typename T2 >
5835 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5841 test(const int c, volatile int v)
5843 static_assert(is_same<int, decltype(0)>::value == true, "");
5844 static_assert(is_same<int, decltype(c)>::value == false, "");
5845 static_assert(is_same<int, decltype(v)>::value == false, "");
5848 auto sumi = ac + av + 'x';
5849 auto sumf = ac + av + 1.0;
5850 static_assert(is_same<int, decltype(ac)>::value == true, "");
5851 static_assert(is_same<int, decltype(av)>::value == true, "");
5852 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5853 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5854 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5855 return (sumf > 0.0) ? sumi : add(c, v);
5860 namespace test_noexcept
5863 int f() { return 0; }
5864 int g() noexcept { return 0; }
5866 static_assert(noexcept(f()) == false, "");
5867 static_assert(noexcept(g()) == true, "");
5871 namespace test_constexpr
5874 template < typename CharT >
5875 unsigned long constexpr
5876 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5878 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5881 template < typename CharT >
5882 unsigned long constexpr
5883 strlen_c(const CharT *const s) noexcept
5885 return strlen_c_r(s, 0UL);
5888 static_assert(strlen_c("") == 0UL, "");
5889 static_assert(strlen_c("1") == 1UL, "");
5890 static_assert(strlen_c("example") == 7UL, "");
5891 static_assert(strlen_c("another\0example") == 7UL, "");
5895 namespace test_rvalue_references
5901 static constexpr int value = N;
5904 answer<1> f(int&) { return answer<1>(); }
5905 answer<2> f(const int&) { return answer<2>(); }
5906 answer<3> f(int&&) { return answer<3>(); }
5913 static_assert(decltype(f(i))::value == 1, "");
5914 static_assert(decltype(f(c))::value == 2, "");
5915 static_assert(decltype(f(0))::value == 3, "");
5920 namespace test_uniform_initialization
5925 static const int zero {};
5926 static const int one {1};
5929 static_assert(test::zero == 0, "");
5930 static_assert(test::one == 1, "");
5934 namespace test_lambdas
5940 auto lambda1 = [](){};
5941 auto lambda2 = lambda1;
5949 auto a = [](int i, int j){ return i + j; }(1, 2);
5950 auto b = []() -> int { return '0'; }();
5951 auto c = [=](){ return a + b; }();
5952 auto d = [&](){ return c; }();
5953 auto e = [a, &b](int x) mutable {
5954 const auto identity = [](int y){ return y; };
5955 for (auto i = 0; i < a; ++i)
5957 return x + identity(a + b);
5959 return a + b + c + d + e;
5965 const auto nullary = [](){ return 0; };
5966 const auto unary = [](int x){ return x; };
5967 using nullary_t = decltype(nullary);
5968 using unary_t = decltype(unary);
5969 const auto higher1st = [](nullary_t f){ return f(); };
5970 const auto higher2nd = [unary](nullary_t f1){
5971 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5973 return higher1st(nullary) + higher2nd(nullary)(unary);
5978 namespace test_variadic_templates
5984 template <int N0, int... N1toN>
5985 struct sum<N0, N1toN...>
5987 static constexpr auto value = N0 + sum<N1toN...>::value;
5993 static constexpr auto value = 0;
5996 static_assert(sum<>::value == 0, "");
5997 static_assert(sum<1>::value == 1, "");
5998 static_assert(sum<23>::value == 23, "");
5999 static_assert(sum<1, 2>::value == 3, "");
6000 static_assert(sum<5, 5, 11>::value == 21, "");
6001 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6005 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6006 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6008 namespace test_template_alias_sfinae
6013 template<typename T>
6014 using member = typename T::member_type;
6016 template<typename T>
6019 template<typename T>
6020 void func(member<T>*) {}
6024 void test() { func<foo>(0); }
6028 } // namespace cxx11
6030 #endif // __cplusplus >= 201103L
6035 if ac_fn_cxx_try_compile "$LINENO"; then :
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 eval ac_res=\$$cachevar
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6045 $as_echo "$ac_res" >&6; }
6046 if eval test x\$$cachevar = xyes; then
6047 CXX_DIALECT="$switch"
6052 if test x$ac_success = xyes; then
6058 ac_cpp='$CPP $CPPFLAGS'
6059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6063 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6064 if test x$ac_success = xno; then
6065 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6068 if test x$ac_success = xno; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6071 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6075 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6082 # Dependency checking.
6083 rm -rf .tst 2>/dev/null
6084 mkdir .tst 2>/dev/null
6085 if test -d .tst; then
6090 rmdir .tst 2>/dev/null
6092 DEPDIR="${am__leading_dot}deps"
6094 ac_config_commands="$ac_config_commands depdir"
6097 depcc="$CC" am_compiler_list=
6099 am_depcomp=$ac_aux_dir/depcomp
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6101 $as_echo_n "checking dependency style of $depcc... " >&6; }
6102 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6103 $as_echo_n "(cached) " >&6
6105 if test -f "$am_depcomp"; then
6106 # We make a subdir and do the tests there. Otherwise we can end up
6107 # making bogus files that we don't know about and never remove. For
6108 # instance it was reported that on HP-UX the gcc test will end up
6109 # making a dummy file named `D' -- because `-MD' means `put the output
6112 # Copy depcomp to subdir because otherwise we won't find it if we're
6113 # using a relative directory.
6114 cp "$am_depcomp" conftest.dir
6116 # We will build objects and dependencies in a subdirectory because
6117 # it helps to detect inapplicable dependency modes. For instance
6118 # both Tru64's cc and ICC support -MD to output dependencies as a
6119 # side effect of compilation, but ICC will put the dependencies in
6120 # the current directory while Tru64 will put them in the object
6124 am_cv_CC_dependencies_compiler_type=none
6125 if test "$am_compiler_list" = ""; then
6126 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6128 for depmode in $am_compiler_list; do
6129 if test $depmode = none; then break; fi
6131 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6132 # Setup a source with many dependencies, because some compilers
6133 # like to wrap large dependency lists on column 80 (with \), and
6134 # we should not choose a depcomp mode which is confused by this.
6136 # We need to recreate these files for each test, as the compiler may
6137 # overwrite some of them when testing with obscure command lines.
6138 # This happens at least with the AIX C compiler.
6140 for i in 1 2 3 4 5 6; do
6141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6143 # Solaris 8's {/usr,}/bin/sh.
6144 touch sub/conftst$i.h
6146 echo "include sub/conftest.Po" > confmf
6148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6149 # mode. It turns out that the SunPro C++ compiler does not properly
6150 # handle `-M -o', and we need to detect this.
6151 depcmd="depmode=$depmode \
6152 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6153 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6154 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6155 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6156 if env $depcmd > conftest.err 2>&1 &&
6157 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6158 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6159 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6160 # icc doesn't choke on unknown options, it will just issue warnings
6161 # or remarks (even with -Werror). So we grep stderr for any message
6162 # that says an option was ignored or not supported.
6163 # When given -MP, icc 7.0 and 7.1 complain thusly:
6164 # icc: Command line warning: ignoring option '-M'; no argument required
6165 # The diagnosis changed in icc 8.0:
6166 # icc: Command line remark: option '-MP' not supported
6167 if (grep 'ignoring option' conftest.err ||
6168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6169 am_cv_CC_dependencies_compiler_type=$depmode
6170 $as_echo "$as_me:$LINENO: success" >&5
6174 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6175 sed -e 's/^/| /' < conftest.err >&5
6181 am_cv_CC_dependencies_compiler_type=none
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6186 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6187 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
6188 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6189 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6205 # If we haven't got the data from the intl directory,
6206 # assume NLS is disabled.
6215 if test -f ../intl/config.intl; then
6216 . ../intl/config.intl
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6219 $as_echo_n "checking whether NLS is requested... " >&6; }
6220 if test x"$USE_NLS" != xyes; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6225 $as_echo "yes" >&6; }
6227 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6231 $as_echo_n "checking for catalogs to be installed... " >&6; }
6232 # Look for .po and .gmo files in the source directory.
6235 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6236 # If there aren't any .gmo files the shell will give us the
6237 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6239 case "$cat" in *\**)
6242 # The quadruple backslash is collapsed to a double backslash
6243 # by the backticks, then collapsed again by the double quotes,
6244 # leaving us with one backslash in the sed expression (right
6245 # before the dot that mustn't act as a wildcard).
6246 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6247 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6248 # The user is allowed to set LINGUAS to a list of languages to
6249 # install catalogs for. If it's empty that means "all of them."
6250 if test "x$LINGUAS" = x; then
6251 CATALOGS="$CATALOGS $cat"
6252 XLINGUAS="$XLINGUAS $lang"
6254 case "$LINGUAS" in *$lang*)
6255 CATALOGS="$CATALOGS $cat"
6256 XLINGUAS="$XLINGUAS $lang"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6263 $as_echo "$LINGUAS" >&6; }
6276 localedir='${datadir}/locale'
6279 if test x"$USE_NLS" = xyes; then
6280 CONFIG_ALL="$CONFIG_ALL all-po"
6281 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
6282 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
6283 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
6288 cat >>confdefs.h <<_ACEOF
6289 #define PACKAGE "$PACKAGE"
6294 # We never need to detect it in this sub-configure.
6295 # But preserve it for config.status --recheck.
6299 MAKEINFO_EXTRA_FLAGS=""
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6301 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6302 if ${gdb_cv_have_makeinfo_click+:} false; then :
6303 $as_echo_n "(cached) " >&6
6305 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6306 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6307 gdb_cv_have_makeinfo_click=yes
6309 gdb_cv_have_makeinfo_click=no
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6313 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6314 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
6315 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6321 # Check whether --with-separate-debug-dir was given.
6322 if test "${with_separate_debug_dir+set}" = set; then :
6323 withval=$with_separate_debug_dir;
6326 DEBUGDIR=${libdir}/debug
6330 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6331 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6332 ac_define_dir=`eval echo $DEBUGDIR`
6333 ac_define_dir=`eval echo $ac_define_dir`
6335 cat >>confdefs.h <<_ACEOF
6336 #define DEBUGDIR "$ac_define_dir"
6342 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6343 if test "x$prefix" = xNONE; then
6344 test_prefix=/usr/local
6349 test_prefix=$exec_prefix
6352 case ${ac_define_dir} in
6353 "${test_prefix}"|"${test_prefix}/"*|\
6354 '${exec_prefix}'|'${exec_prefix}/'*)
6359 cat >>confdefs.h <<_ACEOF
6360 #define DEBUGDIR_RELOCATABLE $value
6366 # We can't pass paths as command line arguments.
6367 # Mingw32 tries to be clever and will convert the paths for us.
6368 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6369 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6370 # This breaks GDB's relocatable path conversions since paths passed in
6371 # config.h would not get so translated, the path prefixes no longer match.
6373 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6374 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6375 ac_define_dir=`eval echo $bindir`
6376 ac_define_dir=`eval echo $ac_define_dir`
6378 cat >>confdefs.h <<_ACEOF
6379 #define BINDIR "$ac_define_dir"
6384 # GDB's datadir relocation
6388 # Check whether --with-gdb-datadir was given.
6389 if test "${with_gdb_datadir+set}" = set; then :
6390 withval=$with_gdb_datadir;
6391 GDB_DATADIR=$withval
6393 GDB_DATADIR=${datadir}/gdb
6397 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6399 ac_define_dir=`eval echo $GDB_DATADIR`
6400 ac_define_dir=`eval echo $ac_define_dir`
6402 cat >>confdefs.h <<_ACEOF
6403 #define GDB_DATADIR "$ac_define_dir"
6409 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6410 if test "x$prefix" = xNONE; then
6411 test_prefix=/usr/local
6416 test_prefix=$exec_prefix
6419 case ${ac_define_dir} in
6420 "${test_prefix}"|"${test_prefix}/"*|\
6421 '${exec_prefix}'|'${exec_prefix}/'*)
6426 cat >>confdefs.h <<_ACEOF
6427 #define GDB_DATADIR_RELOCATABLE $value
6434 # Check whether --with-relocated-sources was given.
6435 if test "${with_relocated_sources+set}" = set; then :
6436 withval=$with_relocated_sources; reloc_srcdir="${withval}"
6438 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6439 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6440 ac_define_dir=`eval echo $reloc_srcdir`
6441 ac_define_dir=`eval echo $ac_define_dir`
6443 cat >>confdefs.h <<_ACEOF
6444 #define RELOC_SRCDIR "$ac_define_dir"
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6453 $as_echo_n "checking for default auto-load directory... " >&6; }
6455 # Check whether --with-auto-load-dir was given.
6456 if test "${with_auto_load_dir+set}" = set; then :
6457 withval=$with_auto_load_dir;
6459 with_auto_load_dir='$debugdir:$datadir/auto-load'
6462 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6464 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6465 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6466 ac_define_dir=`eval echo $escape_dir`
6467 ac_define_dir=`eval echo $ac_define_dir`
6469 cat >>confdefs.h <<_ACEOF
6470 #define AUTO_LOAD_DIR "$ac_define_dir"
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6475 $as_echo "$with_auto_load_dir" >&6; }
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6478 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6480 # Check whether --with-auto-load-safe-path was given.
6481 if test "${with_auto_load_safe_path+set}" = set; then :
6482 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6483 with_auto_load_safe_path="/"
6486 with_auto_load_safe_path="$with_auto_load_dir"
6489 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6491 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6492 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6493 ac_define_dir=`eval echo $escape_dir`
6494 ac_define_dir=`eval echo $ac_define_dir`
6496 cat >>confdefs.h <<_ACEOF
6497 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6502 $as_echo "$with_auto_load_safe_path" >&6; }
6506 subdirs="$subdirs testsuite"
6509 # Check whether to support alternative target configurations
6510 # Check whether --enable-targets was given.
6511 if test "${enable_targets+set}" = set; then :
6512 enableval=$enable_targets; case "${enableval}" in
6513 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6515 no) enable_targets= ;;
6516 *) enable_targets=$enableval ;;
6521 # Check whether to enable 64-bit support on 32-bit hosts
6522 # Check whether --enable-64-bit-bfd was given.
6523 if test "${enable_64_bit_bfd+set}" = set; then :
6524 enableval=$enable_64_bit_bfd; case "${enableval}" in
6527 *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6533 # Provide defaults for some variables set by the per-host and per-target
6535 gdb_host_obs=posix-hdep.o
6537 if test "${target}" = "${host}"; then
6543 . $srcdir/configure.host
6545 # Add in the common host objects.
6546 . $srcdir/gdbsupport/common.host
6547 gdb_host_obs="$gdb_host_obs $common_host_obs"
6549 # Accumulate some settings from configure.tgt over all enabled targets
6553 HAVE_NATIVE_GCORE_TARGET=
6555 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6557 if test "$targ_alias" = "all"; then
6560 # Canonicalize the secondary target names.
6561 result=`$ac_config_sub $targ_alias 2>/dev/null`
6562 if test -n "$result"; then
6568 . ${srcdir}/configure.tgt
6570 if test -z "${gdb_target_obs}"; then :
6571 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
6574 # Target-specific object files
6575 for i in ${gdb_target_obs}; do
6576 case " $TARGET_OBS " in
6579 TARGET_OBS="$TARGET_OBS ${i}"
6584 # Check whether this target needs 64-bit CORE_ADDR
6585 if test x${want64} = xfalse; then
6586 . ${srcdir}/../bfd/config.bfd
6589 # Check whether this target is native and supports gcore.
6590 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6591 && $gdb_have_gcore; then
6592 HAVE_NATIVE_GCORE_TARGET=1
6597 if test x${all_targets} = xtrue; then
6599 # We want all 64-bit targets if we either:
6600 # - run on a 64-bit host or
6601 # - already require 64-bit support for some other target or
6602 # - the --enable-64-bit-bfd option was supplied
6603 # Otherwise we only support all 32-bit targets.
6605 # NOTE: This test must be in sync with the corresponding
6608 if test x${want64} = xfalse; then
6609 # The cast to long int works around a bug in the HP C Compiler
6610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6612 # This bug is HP SR number 8606223364.
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6614 $as_echo_n "checking size of long... " >&6; }
6615 if ${ac_cv_sizeof_long+:} false; then :
6616 $as_echo_n "(cached) " >&6
6618 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6621 if test "$ac_cv_type_long" = yes; then
6622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6624 as_fn_error 77 "cannot compute sizeof (long)
6625 See \`config.log' for more details" "$LINENO" 5; }
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6633 $as_echo "$ac_cv_sizeof_long" >&6; }
6637 cat >>confdefs.h <<_ACEOF
6638 #define SIZEOF_LONG $ac_cv_sizeof_long
6642 if test "x${ac_cv_sizeof_long}" = "x8"; then
6646 if test x${want64} = xtrue; then
6647 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6649 TARGET_OBS='$(ALL_TARGET_OBS)'
6656 # For other settings, only the main target counts.
6660 targ=$target; . ${srcdir}/configure.tgt
6662 # Fetch the default architecture and default target vector from BFD.
6663 targ=$target; . $srcdir/../bfd/config.bfd
6665 # We only want the first architecture, so strip off the others if
6666 # there is more than one.
6667 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6669 if test "x$targ_archs" != x; then
6671 cat >>confdefs.h <<_ACEOF
6672 #define DEFAULT_BFD_ARCH $targ_archs
6676 if test "x$targ_defvec" != x; then
6678 cat >>confdefs.h <<_ACEOF
6679 #define DEFAULT_BFD_VEC $targ_defvec
6685 # Check whether --enable-gdbmi was given.
6686 if test "${enable_gdbmi+set}" = set; then :
6687 enableval=$enable_gdbmi; case $enableval in
6691 as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6697 if test x"$enable_gdbmi" = xyes; then
6698 if test -d $srcdir/mi; then
6699 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6700 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6701 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6702 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6707 # Check whether --enable-tui was given.
6708 if test "${enable_tui+set}" = set; then :
6709 enableval=$enable_tui; case $enableval in
6713 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6721 # Check whether --enable-gdbtk was given.
6722 if test "${enable_gdbtk+set}" = set; then :
6723 enableval=$enable_gdbtk; case $enableval in
6727 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6730 if test -d $srcdir/gdbtk; then
6737 # We unconditionally disable gdbtk tests on selected platforms.
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6741 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6745 # Libunwind support for ia64.
6748 # Check whether --with-libunwind-ia64 was given.
6749 if test "${with_libunwind_ia64+set}" = set; then :
6750 withval=$with_libunwind_ia64;
6752 with_libunwind_ia64=auto
6756 # Backward compatibility option.
6757 if test "${with_libunwind+set}" = set; then
6758 if test x"$with_libunwind_ia64" != xauto; then
6759 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6762 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6763 with_libunwind_ia64="$with_libunwind"
6766 case "$with_libunwind_ia64" in
6770 for ac_header in libunwind-ia64.h
6772 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6773 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
6774 cat >>confdefs.h <<_ACEOF
6775 #define HAVE_LIBUNWIND_IA64_H 1
6782 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
6785 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6789 if test x"$with_libunwind_ia64" = xyes; then
6790 for ac_header in libunwind-ia64.h
6792 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6793 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
6794 cat >>confdefs.h <<_ACEOF
6795 #define HAVE_LIBUNWIND_IA64_H 1
6802 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
6803 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6805 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
6806 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
6807 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
6812 # Check whether --with-curses was given.
6813 if test "${with_curses+set}" = set; then :
6814 withval=$with_curses; opt_curses=$withval
6819 if test "$opt_curses" = "yes"; then
6823 # Profiling support.
6824 # Check whether --enable-profiling was given.
6825 if test "${enable_profiling+set}" = set; then :
6826 enableval=$enable_profiling; case $enableval in
6830 as_fn_error $? "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6837 for ac_func in monstartup _mcleanup
6839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6841 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6842 cat >>confdefs.h <<_ACEOF
6843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6850 $as_echo_n "checking for _etext... " >&6; }
6851 if ${ac_cv_var__etext+:} false; then :
6852 $as_echo_n "(cached) " >&6
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6867 if ac_fn_c_try_link "$LINENO"; then :
6868 ac_cv_var__etext=yes
6872 rm -f core conftest.err conftest.$ac_objext \
6873 conftest$ac_exeext conftest.$ac_ext
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6876 $as_echo "$ac_cv_var__etext" >&6; }
6877 if test $ac_cv_var__etext = yes; then
6879 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6883 $as_echo_n "checking for etext... " >&6; }
6884 if ${ac_cv_var_etext+:} false; then :
6885 $as_echo_n "(cached) " >&6
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6900 if ac_fn_c_try_link "$LINENO"; then :
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6909 $as_echo "$ac_cv_var_etext" >&6; }
6910 if test $ac_cv_var_etext = yes; then
6912 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6915 if test "$enable_profiling" = yes ; then
6916 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6917 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6920 OLD_CFLAGS="$CFLAGS"
6921 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6924 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6925 if ${ac_cv_cc_supports_pg+:} false; then :
6926 $as_echo_n "(cached) " >&6
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6939 if ac_fn_c_try_compile "$LINENO"; then :
6940 ac_cv_cc_supports_pg=yes
6942 ac_cv_cc_supports_pg=no
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6947 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6949 if test $ac_cv_cc_supports_pg = no; then
6950 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6953 CFLAGS="$OLD_CFLAGS"
6957 # Check whether --enable-codesign was given.
6958 if test "${enable_codesign+set}" = set; then :
6959 enableval=$enable_codesign; CODESIGN_CERT=$enableval
6966 # Check whether --with-pkgversion was given.
6967 if test "${with_pkgversion+set}" = set; then :
6968 withval=$with_pkgversion; case "$withval" in
6969 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6971 *) PKGVERSION="($withval) " ;;
6982 # Check whether --with-bugurl was given.
6983 if test "${with_bugurl+set}" = set; then :
6984 withval=$with_bugurl; case "$withval" in
6985 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6988 *) BUGURL="$withval"
6992 BUGURL="http://www.gnu.org/software/gdb/bugs/"
7002 REPORT_BUGS_TO="<$BUGURL>"
7003 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7010 cat >>confdefs.h <<_ACEOF
7011 #define PKGVERSION "$PKGVERSION"
7015 cat >>confdefs.h <<_ACEOF
7016 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7020 # --------------------- #
7021 # Checks for programs. #
7022 # --------------------- #
7024 for ac_prog in gawk mawk nawk awk
7026 # Extract the first word of "$ac_prog", so it can be a program name with args.
7027 set dummy $ac_prog; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_AWK+:} false; then :
7031 $as_echo_n "(cached) " >&6
7033 if test -n "$AWK"; then
7034 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_AWK="$ac_prog"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 if test -n "$AWK"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7056 $as_echo "$AWK" >&6; }
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7063 test -n "$AWK" && break
7066 # Find a good install program. We prefer a C program (faster),
7067 # so one script is as good as another. But avoid the broken or
7068 # incompatible versions:
7069 # SysV /etc/install, /usr/sbin/install
7070 # SunOS /usr/etc/install
7071 # IRIX /sbin/install
7073 # AmigaOS /C/install, which installs bootblocks on floppy discs
7074 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7077 # OS/2's system install, which has a completely different semantic
7078 # ./install, which can be erroneously created by make from ./install.sh.
7079 # Reject install programs that cannot install multiple files.
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7081 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7082 if test -z "$INSTALL"; then
7083 if ${ac_cv_path_install+:} false; then :
7084 $as_echo_n "(cached) " >&6
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 test -z "$as_dir" && as_dir=.
7091 # Account for people who put trailing slashes in PATH elements.
7092 case $as_dir/ in #((
7093 ./ | .// | /[cC]/* | \
7094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7095 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7098 # OSF1 and SCO ODT 3.0 have their own names for install.
7099 # Don't use installbsd from OSF since it installs stuff as root
7101 for ac_prog in ginstall scoinst install; do
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7104 if test $ac_prog = install &&
7105 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7106 # AIX install. It has an incompatible calling convention.
7108 elif test $ac_prog = install &&
7109 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7110 # program-specific install script used by HP pwplus--don't use.
7113 rm -rf conftest.one conftest.two conftest.dir
7114 echo one > conftest.one
7115 echo two > conftest.two
7117 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7118 test -s conftest.one && test -s conftest.two &&
7119 test -s conftest.dir/conftest.one &&
7120 test -s conftest.dir/conftest.two
7122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7135 rm -rf conftest.one conftest.two conftest.dir
7138 if test "${ac_cv_path_install+set}" = set; then
7139 INSTALL=$ac_cv_path_install
7141 # As a last resort, use the slow shell script. Don't cache a
7142 # value for INSTALL within a source directory, because that will
7143 # break other packages using the cache if that directory is
7144 # removed, or if the value is a relative name.
7145 INSTALL=$ac_install_sh
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7149 $as_echo "$INSTALL" >&6; }
7151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7152 # It thinks the first close brace ends the variable substitution.
7153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7160 $as_echo_n "checking whether ln -s works... " >&6; }
7162 if test "$LN_S" = "ln -s"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7164 $as_echo "yes" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7167 $as_echo "no, using $LN_S" >&6; }
7170 if test -n "$ac_tool_prefix"; then
7171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_RANLIB+:} false; then :
7176 $as_echo_n "(cached) " >&6
7178 if test -n "$RANLIB"; then
7179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 RANLIB=$ac_cv_prog_RANLIB
7199 if test -n "$RANLIB"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7201 $as_echo "$RANLIB" >&6; }
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7209 if test -z "$ac_cv_prog_RANLIB"; then
7210 ac_ct_RANLIB=$RANLIB
7211 # Extract the first word of "ranlib", so it can be a program name with args.
7212 set dummy ranlib; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7216 $as_echo_n "(cached) " >&6
7218 if test -n "$ac_ct_RANLIB"; then
7219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_ac_ct_RANLIB="ranlib"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7239 if test -n "$ac_ct_RANLIB"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7241 $as_echo "$ac_ct_RANLIB" >&6; }
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7247 if test "x$ac_ct_RANLIB" = x; then
7250 case $cross_compiling:$ac_tool_warned in
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254 ac_tool_warned=yes ;;
7256 RANLIB=$ac_ct_RANLIB
7259 RANLIB="$ac_cv_prog_RANLIB"
7262 for ac_prog in 'bison -y' byacc
7264 # Extract the first word of "$ac_prog", so it can be a program name with args.
7265 set dummy $ac_prog; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_prog_YACC+:} false; then :
7269 $as_echo_n "(cached) " >&6
7271 if test -n "$YACC"; then
7272 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_YACC="$ac_prog"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 YACC=$ac_cv_prog_YACC
7292 if test -n "$YACC"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7294 $as_echo "$YACC" >&6; }
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7301 test -n "$YACC" && break
7303 test -n "$YACC" || YACC="yacc"
7306 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7308 set dummy ${ac_tool_prefix}ar; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_AR+:} false; then :
7312 $as_echo_n "(cached) " >&6
7314 if test -n "$AR"; then
7315 ac_cv_prog_AR="$AR" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_AR="${ac_tool_prefix}ar"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 if test -n "$AR"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7337 $as_echo "$AR" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7345 if test -z "$ac_cv_prog_AR"; then
7347 # Extract the first word of "ar", so it can be a program name with args.
7348 set dummy ar; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$ac_ct_AR"; then
7355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_ac_ct_AR="ar"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7375 if test -n "$ac_ct_AR"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7377 $as_echo "$ac_ct_AR" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7383 if test "x$ac_ct_AR" = x; then
7386 case $cross_compiling:$ac_tool_warned in
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390 ac_tool_warned=yes ;;
7398 if test -n "$ac_tool_prefix"; then
7399 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7400 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_DLLTOOL+:} false; then :
7404 $as_echo_n "(cached) " >&6
7406 if test -n "$DLLTOOL"; then
7407 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 DLLTOOL=$ac_cv_prog_DLLTOOL
7427 if test -n "$DLLTOOL"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7429 $as_echo "$DLLTOOL" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7437 if test -z "$ac_cv_prog_DLLTOOL"; then
7438 ac_ct_DLLTOOL=$DLLTOOL
7439 # Extract the first word of "dlltool", so it can be a program name with args.
7440 set dummy dlltool; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 if test -n "$ac_ct_DLLTOOL"; then
7447 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7467 if test -n "$ac_ct_DLLTOOL"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7469 $as_echo "$ac_ct_DLLTOOL" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7475 if test "x$ac_ct_DLLTOOL" = x; then
7478 case $cross_compiling:$ac_tool_warned in
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482 ac_tool_warned=yes ;;
7484 DLLTOOL=$ac_ct_DLLTOOL
7487 DLLTOOL="$ac_cv_prog_DLLTOOL"
7490 if test -n "$ac_tool_prefix"; then
7491 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7492 set dummy ${ac_tool_prefix}windres; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_prog_WINDRES+:} false; then :
7496 $as_echo_n "(cached) " >&6
7498 if test -n "$WINDRES"; then
7499 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 WINDRES=$ac_cv_prog_WINDRES
7519 if test -n "$WINDRES"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7521 $as_echo "$WINDRES" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7529 if test -z "$ac_cv_prog_WINDRES"; then
7530 ac_ct_WINDRES=$WINDRES
7531 # Extract the first word of "windres", so it can be a program name with args.
7532 set dummy windres; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7536 $as_echo_n "(cached) " >&6
7538 if test -n "$ac_ct_WINDRES"; then
7539 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548 ac_cv_prog_ac_ct_WINDRES="windres"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7559 if test -n "$ac_ct_WINDRES"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7561 $as_echo "$ac_ct_WINDRES" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7567 if test "x$ac_ct_WINDRES" = x; then
7570 case $cross_compiling:$ac_tool_warned in
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574 ac_tool_warned=yes ;;
7576 WINDRES=$ac_ct_WINDRES
7579 WINDRES="$ac_cv_prog_WINDRES"
7585 # Needed for GNU Hurd hosts.
7586 if test -n "$ac_tool_prefix"; then
7587 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7588 set dummy ${ac_tool_prefix}mig; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_MIG+:} false; then :
7592 $as_echo_n "(cached) " >&6
7594 if test -n "$MIG"; then
7595 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 if test -n "$MIG"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7617 $as_echo "$MIG" >&6; }
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7625 if test -z "$ac_cv_prog_MIG"; then
7627 # Extract the first word of "mig", so it can be a program name with args.
7628 set dummy mig; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
7632 $as_echo_n "(cached) " >&6
7634 if test -n "$ac_ct_MIG"; then
7635 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_ac_ct_MIG="mig"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7655 if test -n "$ac_ct_MIG"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7657 $as_echo "$ac_ct_MIG" >&6; }
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7663 if test "x$ac_ct_MIG" = x; then
7666 case $cross_compiling:$ac_tool_warned in
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670 ac_tool_warned=yes ;;
7675 MIG="$ac_cv_prog_MIG"
7678 if test x"$MIG" = x; then
7679 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
7684 # ---------------------- #
7685 # Checks for libraries. #
7686 # ---------------------- #
7688 # We might need to link with -lm; most simulators need it.
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7690 $as_echo_n "checking for main in -lm... " >&6; }
7691 if ${ac_cv_lib_m_main+:} false; then :
7692 $as_echo_n "(cached) " >&6
7694 ac_check_lib_save_LIBS=$LIBS
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7708 if ac_fn_c_try_link "$LINENO"; then :
7709 ac_cv_lib_m_main=yes
7713 rm -f core conftest.err conftest.$ac_objext \
7714 conftest$ac_exeext conftest.$ac_ext
7715 LIBS=$ac_check_lib_save_LIBS
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7718 $as_echo "$ac_cv_lib_m_main" >&6; }
7719 if test "x$ac_cv_lib_m_main" = xyes; then :
7720 cat >>confdefs.h <<_ACEOF
7729 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7731 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7732 if ${ac_cv_search_gethostbyname+:} false; then :
7733 $as_echo_n "(cached) " >&6
7735 ac_func_search_save_LIBS=$LIBS
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7739 /* Override any GCC internal prototype to avoid an error.
7740 Use char because int might match the return type of a GCC
7741 builtin and then its argument prototype would still apply. */
7745 char gethostbyname ();
7749 return gethostbyname ();
7754 for ac_lib in '' nsl; do
7755 if test -z "$ac_lib"; then
7756 ac_res="none required"
7759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7761 if ac_fn_c_try_link "$LINENO"; then :
7762 ac_cv_search_gethostbyname=$ac_res
7764 rm -f core conftest.err conftest.$ac_objext \
7766 if ${ac_cv_search_gethostbyname+:} false; then :
7770 if ${ac_cv_search_gethostbyname+:} false; then :
7773 ac_cv_search_gethostbyname=no
7776 LIBS=$ac_func_search_save_LIBS
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7779 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7780 ac_res=$ac_cv_search_gethostbyname
7781 if test "$ac_res" != no; then :
7782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7787 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7789 $as_echo_n "checking for library containing socketpair... " >&6; }
7790 if ${ac_cv_search_socketpair+:} false; then :
7791 $as_echo_n "(cached) " >&6
7793 ac_func_search_save_LIBS=$LIBS
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7797 /* Override any GCC internal prototype to avoid an error.
7798 Use char because int might match the return type of a GCC
7799 builtin and then its argument prototype would still apply. */
7807 return socketpair ();
7812 for ac_lib in '' socket; do
7813 if test -z "$ac_lib"; then
7814 ac_res="none required"
7817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7819 if ac_fn_c_try_link "$LINENO"; then :
7820 ac_cv_search_socketpair=$ac_res
7822 rm -f core conftest.err conftest.$ac_objext \
7824 if ${ac_cv_search_socketpair+:} false; then :
7828 if ${ac_cv_search_socketpair+:} false; then :
7831 ac_cv_search_socketpair=no
7834 LIBS=$ac_func_search_save_LIBS
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7837 $as_echo "$ac_cv_search_socketpair" >&6; }
7838 ac_res=$ac_cv_search_socketpair
7839 if test "$ac_res" != no; then :
7840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7845 # Link in zlib if we can. This allows us to read compressed debug sections.
7847 # Use the system's zlib library.
7848 zlibdir="-L\$(top_builddir)/../zlib"
7849 zlibinc="-I\$(top_srcdir)/../zlib"
7851 # Check whether --with-system-zlib was given.
7852 if test "${with_system_zlib+set}" = set; then :
7853 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7864 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7865 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7867 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7868 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
7869 $as_echo_n "(cached) " >&6
7871 ac_func_search_save_LIBS=$LIBS
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7875 /* Override any GCC internal prototype to avoid an error.
7876 Use char because int might match the return type of a GCC
7877 builtin and then its argument prototype would still apply. */
7881 char kinfo_getvmmap ();
7885 return kinfo_getvmmap ();
7890 for ac_lib in '' util util-freebsd; do
7891 if test -z "$ac_lib"; then
7892 ac_res="none required"
7895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7897 if ac_fn_c_try_link "$LINENO"; then :
7898 ac_cv_search_kinfo_getvmmap=$ac_res
7900 rm -f core conftest.err conftest.$ac_objext \
7902 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
7906 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
7909 ac_cv_search_kinfo_getvmmap=no
7912 LIBS=$ac_func_search_save_LIBS
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7915 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7916 ac_res=$ac_cv_search_kinfo_getvmmap
7917 if test "$ac_res" != no; then :
7918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7920 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7925 # fbsd-nat.c can also use kinfo_getfile.
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7927 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7928 if ${ac_cv_search_kinfo_getfile+:} false; then :
7929 $as_echo_n "(cached) " >&6
7931 ac_func_search_save_LIBS=$LIBS
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7935 /* Override any GCC internal prototype to avoid an error.
7936 Use char because int might match the return type of a GCC
7937 builtin and then its argument prototype would still apply. */
7941 char kinfo_getfile ();
7945 return kinfo_getfile ();
7950 for ac_lib in '' util util-freebsd; do
7951 if test -z "$ac_lib"; then
7952 ac_res="none required"
7955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7957 if ac_fn_c_try_link "$LINENO"; then :
7958 ac_cv_search_kinfo_getfile=$ac_res
7960 rm -f core conftest.err conftest.$ac_objext \
7962 if ${ac_cv_search_kinfo_getfile+:} false; then :
7966 if ${ac_cv_search_kinfo_getfile+:} false; then :
7969 ac_cv_search_kinfo_getfile=no
7972 LIBS=$ac_func_search_save_LIBS
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7975 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7976 ac_res=$ac_cv_search_kinfo_getfile
7977 if test "$ac_res" != no; then :
7978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7980 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
7986 if test "X$prefix" = "XNONE"; then
7987 acl_final_prefix="$ac_default_prefix"
7989 acl_final_prefix="$prefix"
7991 if test "X$exec_prefix" = "XNONE"; then
7992 acl_final_exec_prefix='${prefix}'
7994 acl_final_exec_prefix="$exec_prefix"
7996 acl_save_prefix="$prefix"
7997 prefix="$acl_final_prefix"
7998 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7999 prefix="$acl_save_prefix"
8002 # Check whether --with-gnu-ld was given.
8003 if test "${with_gnu_ld+set}" = set; then :
8004 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8009 # Prepare PATH_SEPARATOR.
8010 # The user is always right.
8011 if test "${PATH_SEPARATOR+set}" != set; then
8012 echo "#! /bin/sh" >conf$$.sh
8013 echo "exit 0" >>conf$$.sh
8015 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8023 if test "$GCC" = yes; then
8024 # Check if gcc -print-prog-name=ld gives a path.
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8026 $as_echo_n "checking for ld used by GCC... " >&6; }
8029 # gcc leaves a trailing carriage return which upsets mingw
8030 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8032 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8035 # Accept absolute paths.
8036 [\\/]* | [A-Za-z]:[\\/]*)
8037 re_direlt='/[^/][^/]*/\.\./'
8038 # Canonicalize the path of ld
8039 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8040 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8041 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8043 test -z "$LD" && LD="$ac_prog"
8046 # If it fails, then pretend we aren't using GCC.
8050 # If it is relative, then search for the first ld in PATH.
8054 elif test "$with_gnu_ld" = yes; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8056 $as_echo_n "checking for GNU ld... " >&6; }
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8059 $as_echo_n "checking for non-GNU ld... " >&6; }
8061 if ${acl_cv_path_LD+:} false; then :
8062 $as_echo_n "(cached) " >&6
8064 if test -z "$LD"; then
8065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8066 for ac_dir in $PATH; do
8067 test -z "$ac_dir" && ac_dir=.
8068 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8069 acl_cv_path_LD="$ac_dir/$ac_prog"
8070 # Check to see if the program is GNU ld. I'd rather use --version,
8071 # but apparently some GNU ld's only accept -v.
8072 # Break only if it was the GNU/non-GNU ld that we prefer.
8073 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8074 test "$with_gnu_ld" != no && break
8076 test "$with_gnu_ld" != yes && break
8082 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8086 LD="$acl_cv_path_LD"
8087 if test -n "$LD"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8089 $as_echo "$LD" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8094 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8096 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8097 if ${acl_cv_prog_gnu_ld+:} false; then :
8098 $as_echo_n "(cached) " >&6
8100 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8101 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8102 acl_cv_prog_gnu_ld=yes
8104 acl_cv_prog_gnu_ld=no
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8108 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8109 with_gnu_ld=$acl_cv_prog_gnu_ld
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8114 $as_echo_n "checking for shared library run path origin... " >&6; }
8115 if ${acl_cv_rpath+:} false; then :
8116 $as_echo_n "(cached) " >&6
8119 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8120 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8127 $as_echo "$acl_cv_rpath" >&6; }
8129 libext="$acl_cv_libext"
8130 shlibext="$acl_cv_shlibext"
8131 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8132 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8133 hardcode_direct="$acl_cv_hardcode_direct"
8134 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8135 # Check whether --enable-rpath was given.
8136 if test "${enable_rpath+set}" = set; then :
8137 enableval=$enable_rpath; :
8151 acl_save_prefix="$prefix"
8152 prefix="$acl_final_prefix"
8153 acl_save_exec_prefix="$exec_prefix"
8154 exec_prefix="$acl_final_exec_prefix"
8156 eval additional_includedir=\"$includedir\"
8157 eval additional_libdir=\"$libdir\"
8159 exec_prefix="$acl_save_exec_prefix"
8160 prefix="$acl_save_prefix"
8163 # Check whether --with-libiconv-prefix was given.
8164 if test "${with_libiconv_prefix+set}" = set; then :
8165 withval=$with_libiconv_prefix;
8166 if test "X$withval" = "Xno"; then
8169 if test "X$withval" = "X"; then
8171 acl_save_prefix="$prefix"
8172 prefix="$acl_final_prefix"
8173 acl_save_exec_prefix="$exec_prefix"
8174 exec_prefix="$acl_final_exec_prefix"
8176 eval additional_includedir=\"$includedir\"
8177 eval additional_libdir=\"$libdir\"
8179 exec_prefix="$acl_save_exec_prefix"
8180 prefix="$acl_save_prefix"
8183 additional_includedir="$withval/include"
8184 additional_libdir="$withval/lib"
8195 names_already_handled=
8196 names_next_round='iconv '
8197 while test -n "$names_next_round"; do
8198 names_this_round="$names_next_round"
8200 for name in $names_this_round; do
8202 for n in $names_already_handled; do
8203 if test "$n" = "$name"; then
8208 if test -z "$already_handled"; then
8209 names_already_handled="$names_already_handled $name"
8210 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8211 eval value=\"\$HAVE_LIB$uppername\"
8212 if test -n "$value"; then
8213 if test "$value" = yes; then
8214 eval value=\"\$LIB$uppername\"
8215 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8216 eval value=\"\$LTLIB$uppername\"
8217 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8226 if test $use_additional = yes; then
8227 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8228 found_dir="$additional_libdir"
8229 found_so="$additional_libdir/lib$name.$shlibext"
8230 if test -f "$additional_libdir/lib$name.la"; then
8231 found_la="$additional_libdir/lib$name.la"
8234 if test -f "$additional_libdir/lib$name.$libext"; then
8235 found_dir="$additional_libdir"
8236 found_a="$additional_libdir/lib$name.$libext"
8237 if test -f "$additional_libdir/lib$name.la"; then
8238 found_la="$additional_libdir/lib$name.la"
8243 if test "X$found_dir" = "X"; then
8244 for x in $LDFLAGS $LTLIBICONV; do
8246 acl_save_prefix="$prefix"
8247 prefix="$acl_final_prefix"
8248 acl_save_exec_prefix="$exec_prefix"
8249 exec_prefix="$acl_final_exec_prefix"
8251 exec_prefix="$acl_save_exec_prefix"
8252 prefix="$acl_save_prefix"
8256 dir=`echo "X$x" | sed -e 's/^X-L//'`
8257 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8259 found_so="$dir/lib$name.$shlibext"
8260 if test -f "$dir/lib$name.la"; then
8261 found_la="$dir/lib$name.la"
8264 if test -f "$dir/lib$name.$libext"; then
8266 found_a="$dir/lib$name.$libext"
8267 if test -f "$dir/lib$name.la"; then
8268 found_la="$dir/lib$name.la"
8274 if test "X$found_dir" != "X"; then
8279 if test "X$found_dir" != "X"; then
8280 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8281 if test "X$found_so" != "X"; then
8282 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8283 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8286 for x in $ltrpathdirs; do
8287 if test "X$x" = "X$found_dir"; then
8292 if test -z "$haveit"; then
8293 ltrpathdirs="$ltrpathdirs $found_dir"
8295 if test "$hardcode_direct" = yes; then
8296 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8298 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8299 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8301 for x in $rpathdirs; do
8302 if test "X$x" = "X$found_dir"; then
8307 if test -z "$haveit"; then
8308 rpathdirs="$rpathdirs $found_dir"
8312 for x in $LDFLAGS $LIBICONV; do
8314 acl_save_prefix="$prefix"
8315 prefix="$acl_final_prefix"
8316 acl_save_exec_prefix="$exec_prefix"
8317 exec_prefix="$acl_final_exec_prefix"
8319 exec_prefix="$acl_save_exec_prefix"
8320 prefix="$acl_save_prefix"
8322 if test "X$x" = "X-L$found_dir"; then
8327 if test -z "$haveit"; then
8328 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8330 if test "$hardcode_minus_L" != no; then
8331 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8333 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8339 if test "X$found_a" != "X"; then
8340 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8342 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8345 additional_includedir=
8346 case "$found_dir" in
8348 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8349 additional_includedir="$basedir/include"
8352 if test "X$additional_includedir" != "X"; then
8353 if test "X$additional_includedir" != "X/usr/include"; then
8355 if test "X$additional_includedir" = "X/usr/local/include"; then
8356 if test -n "$GCC"; then
8358 linux*) haveit=yes;;
8362 if test -z "$haveit"; then
8363 for x in $CPPFLAGS $INCICONV; do
8365 acl_save_prefix="$prefix"
8366 prefix="$acl_final_prefix"
8367 acl_save_exec_prefix="$exec_prefix"
8368 exec_prefix="$acl_final_exec_prefix"
8370 exec_prefix="$acl_save_exec_prefix"
8371 prefix="$acl_save_prefix"
8373 if test "X$x" = "X-I$additional_includedir"; then
8378 if test -z "$haveit"; then
8379 if test -d "$additional_includedir"; then
8380 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8386 if test -n "$found_la"; then
8387 save_libdir="$libdir"
8389 */* | *\\*) . "$found_la" ;;
8390 *) . "./$found_la" ;;
8392 libdir="$save_libdir"
8393 for dep in $dependency_libs; do
8396 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8397 if test "X$additional_libdir" != "X/usr/lib"; then
8399 if test "X$additional_libdir" = "X/usr/local/lib"; then
8400 if test -n "$GCC"; then
8402 linux*) haveit=yes;;
8406 if test -z "$haveit"; then
8408 for x in $LDFLAGS $LIBICONV; do
8410 acl_save_prefix="$prefix"
8411 prefix="$acl_final_prefix"
8412 acl_save_exec_prefix="$exec_prefix"
8413 exec_prefix="$acl_final_exec_prefix"
8415 exec_prefix="$acl_save_exec_prefix"
8416 prefix="$acl_save_prefix"
8418 if test "X$x" = "X-L$additional_libdir"; then
8423 if test -z "$haveit"; then
8424 if test -d "$additional_libdir"; then
8425 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8429 for x in $LDFLAGS $LTLIBICONV; do
8431 acl_save_prefix="$prefix"
8432 prefix="$acl_final_prefix"
8433 acl_save_exec_prefix="$exec_prefix"
8434 exec_prefix="$acl_final_exec_prefix"
8436 exec_prefix="$acl_save_exec_prefix"
8437 prefix="$acl_save_prefix"
8439 if test "X$x" = "X-L$additional_libdir"; then
8444 if test -z "$haveit"; then
8445 if test -d "$additional_libdir"; then
8446 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8453 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8454 if test "$enable_rpath" != no; then
8456 for x in $rpathdirs; do
8457 if test "X$x" = "X$dir"; then
8462 if test -z "$haveit"; then
8463 rpathdirs="$rpathdirs $dir"
8466 for x in $ltrpathdirs; do
8467 if test "X$x" = "X$dir"; then
8472 if test -z "$haveit"; then
8473 ltrpathdirs="$ltrpathdirs $dir"
8478 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8481 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8484 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8485 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8491 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8492 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8498 if test "X$rpathdirs" != "X"; then
8499 if test -n "$hardcode_libdir_separator"; then
8501 for found_dir in $rpathdirs; do
8502 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8504 acl_save_libdir="$libdir"
8506 eval flag=\"$hardcode_libdir_flag_spec\"
8507 libdir="$acl_save_libdir"
8508 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8510 for found_dir in $rpathdirs; do
8511 acl_save_libdir="$libdir"
8513 eval flag=\"$hardcode_libdir_flag_spec\"
8514 libdir="$acl_save_libdir"
8515 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8519 if test "X$ltrpathdirs" != "X"; then
8520 for found_dir in $ltrpathdirs; do
8521 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8532 $as_echo_n "checking for iconv... " >&6; }
8533 if ${am_cv_func_iconv+:} false; then :
8534 $as_echo_n "(cached) " >&6
8537 am_cv_func_iconv="no, consider installing GNU libiconv"
8539 am_save_CPPFLAGS="$CPPFLAGS"
8540 CPPFLAGS="$CPPFLAGS $INCICONV"
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8548 iconv_t cd = iconv_open("","");
8549 iconv(cd,NULL,NULL,NULL,NULL);
8555 if ac_fn_c_try_link "$LINENO"; then :
8556 am_cv_func_iconv=yes
8558 rm -f core conftest.err conftest.$ac_objext \
8559 conftest$ac_exeext conftest.$ac_ext
8560 CPPFLAGS="$am_save_CPPFLAGS"
8562 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
8563 for _libs in .libs _libs; do
8564 am_save_CPPFLAGS="$CPPFLAGS"
8565 am_save_LIBS="$LIBS"
8566 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
8567 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8575 iconv_t cd = iconv_open("","");
8576 iconv(cd,NULL,NULL,NULL,NULL);
8582 if ac_fn_c_try_link "$LINENO"; then :
8583 INCICONV="-I../libiconv/include"
8584 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
8585 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
8587 am_cv_func_iconv=yes
8589 rm -f core conftest.err conftest.$ac_objext \
8590 conftest$ac_exeext conftest.$ac_ext
8591 CPPFLAGS="$am_save_CPPFLAGS"
8592 LIBS="$am_save_LIBS"
8593 if test "$am_cv_func_iconv" = "yes"; then
8599 if test "$am_cv_func_iconv" != yes; then
8600 am_save_CPPFLAGS="$CPPFLAGS"
8601 am_save_LIBS="$LIBS"
8602 CPPFLAGS="$CPPFLAGS $INCICONV"
8603 LIBS="$LIBS $LIBICONV"
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8611 iconv_t cd = iconv_open("","");
8612 iconv(cd,NULL,NULL,NULL,NULL);
8618 if ac_fn_c_try_link "$LINENO"; then :
8620 am_cv_func_iconv=yes
8622 rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 CPPFLAGS="$am_save_CPPFLAGS"
8625 LIBS="$am_save_LIBS"
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8630 $as_echo "$am_cv_func_iconv" >&6; }
8631 if test "$am_cv_func_iconv" = yes; then
8633 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8636 if test "$am_cv_lib_iconv" = yes; then
8638 for element in $INCICONV; do
8640 for x in $CPPFLAGS; do
8642 acl_save_prefix="$prefix"
8643 prefix="$acl_final_prefix"
8644 acl_save_exec_prefix="$exec_prefix"
8645 exec_prefix="$acl_final_exec_prefix"
8647 exec_prefix="$acl_save_exec_prefix"
8648 prefix="$acl_save_prefix"
8650 if test "X$x" = "X$element"; then
8655 if test -z "$haveit"; then
8656 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8661 $as_echo_n "checking how to link with libiconv... " >&6; }
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8663 $as_echo "$LIBICONV" >&6; }
8671 if test "$am_cv_func_iconv" = yes; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8673 $as_echo_n "checking for iconv declaration... " >&6; }
8674 if ${am_cv_proto_iconv+:} false; then :
8675 $as_echo_n "(cached) " >&6
8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8687 #if defined(__STDC__) || defined(__cplusplus)
8688 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8701 if ac_fn_c_try_compile "$LINENO"; then :
8702 am_cv_proto_iconv_arg1=""
8704 am_cv_proto_iconv_arg1="const"
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 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);"
8710 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8712 }$am_cv_proto_iconv" >&5
8714 }$am_cv_proto_iconv" >&6; }
8716 cat >>confdefs.h <<_ACEOF
8717 #define ICONV_CONST $am_cv_proto_iconv_arg1
8723 # GDB may fork/exec the iconv program to get the list of supported character
8724 # sets. Allow the user to specify where to find it.
8725 # There are several factors affecting the choice of option name:
8726 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8727 # the build-time location of libiconv files.
8728 # - The program we need to find is iconv, which comes with glibc. The user
8729 # doesn't necessarily have libiconv installed. Therefore naming this
8730 # --with-libiconv-foo feels wrong.
8731 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8732 # defined to work on directories not files (though it really doesn't know
8734 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8735 # with --with-libiconv-prefix.
8736 # Putting these together is why the option name is --with-iconv-bin.
8739 # Check whether --with-iconv-bin was given.
8740 if test "${with_iconv_bin+set}" = set; then :
8741 withval=$with_iconv_bin; iconv_bin="${withval}"
8743 cat >>confdefs.h <<_ACEOF
8744 #define ICONV_BIN "${iconv_bin}"
8748 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8749 if test "x$prefix" = xNONE; then
8750 test_prefix=/usr/local
8755 test_prefix=$exec_prefix
8758 case ${iconv_bin} in
8759 "${test_prefix}"|"${test_prefix}/"*|\
8760 '${exec_prefix}'|'${exec_prefix}/'*)
8765 cat >>confdefs.h <<_ACEOF
8766 #define ICONV_BIN_RELOCATABLE $value
8774 # For the TUI, we need enhanced curses functionality.
8775 if test x"$enable_tui" != xno; then
8780 if test x"$prefer_curses" = xyes; then
8781 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8782 # curses library because the latter might not provide all the
8783 # functionality we need. However, this leads to problems on systems
8784 # where the linker searches /usr/local/lib, but the compiler doesn't
8785 # search /usr/local/include, if ncurses is installed in /usr/local. A
8786 # default installation of ncurses on alpha*-dec-osf* will lead to such
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8789 $as_echo_n "checking for library containing waddstr... " >&6; }
8790 if ${ac_cv_search_waddstr+:} false; then :
8791 $as_echo_n "(cached) " >&6
8793 ac_func_search_save_LIBS=$LIBS
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8797 /* Override any GCC internal prototype to avoid an error.
8798 Use char because int might match the return type of a GCC
8799 builtin and then its argument prototype would still apply. */
8812 for ac_lib in '' ncursesw ncurses cursesX curses; do
8813 if test -z "$ac_lib"; then
8814 ac_res="none required"
8817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8819 if ac_fn_c_try_link "$LINENO"; then :
8820 ac_cv_search_waddstr=$ac_res
8822 rm -f core conftest.err conftest.$ac_objext \
8824 if ${ac_cv_search_waddstr+:} false; then :
8828 if ${ac_cv_search_waddstr+:} false; then :
8831 ac_cv_search_waddstr=no
8834 LIBS=$ac_func_search_save_LIBS
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8837 $as_echo "$ac_cv_search_waddstr" >&6; }
8838 ac_res=$ac_cv_search_waddstr
8839 if test "$ac_res" != no; then :
8840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8845 if test "$ac_cv_search_waddstr" != no; then
8850 # Check whether we should enable the TUI, but only do so if we really
8852 if test x"$enable_tui" != xno; then
8853 if test -d $srcdir/tui; then
8854 if test "$curses_found" != no; then
8855 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8856 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8857 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8858 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8860 if test x"$enable_tui" = xyes; then
8861 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8864 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8870 # Since GDB uses Readline, we need termcap functionality. In many
8871 # cases this will be provided by the curses library, but some systems
8872 # have a separate termcap library, or no curses library at all.
8876 if test -d $srcdir/libtermcap; then
8877 LIBS="../libtermcap/libtermcap.a $LIBS"
8878 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8881 ac_cv_search_tgetent="none required"
8885 # These are the libraries checked by Readline.
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8887 $as_echo_n "checking for library containing tgetent... " >&6; }
8888 if ${ac_cv_search_tgetent+:} false; then :
8889 $as_echo_n "(cached) " >&6
8891 ac_func_search_save_LIBS=$LIBS
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8895 /* Override any GCC internal prototype to avoid an error.
8896 Use char because int might match the return type of a GCC
8897 builtin and then its argument prototype would still apply. */
8910 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
8911 if test -z "$ac_lib"; then
8912 ac_res="none required"
8915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8917 if ac_fn_c_try_link "$LINENO"; then :
8918 ac_cv_search_tgetent=$ac_res
8920 rm -f core conftest.err conftest.$ac_objext \
8922 if ${ac_cv_search_tgetent+:} false; then :
8926 if ${ac_cv_search_tgetent+:} false; then :
8929 ac_cv_search_tgetent=no
8932 LIBS=$ac_func_search_save_LIBS
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8935 $as_echo "$ac_cv_search_tgetent" >&6; }
8936 ac_res=$ac_cv_search_tgetent
8937 if test "$ac_res" != no; then :
8938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8943 if test "$ac_cv_search_tgetent" = no; then
8944 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
8948 # Check whether --with-system-readline was given.
8949 if test "${with_system_readline+set}" = set; then :
8950 withval=$with_system_readline;
8954 if test "$with_system_readline" = yes; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
8956 $as_echo_n "checking whether system readline is new enough... " >&6; }
8957 if ${gdb_cv_readline_ok+:} false; then :
8958 $as_echo_n "(cached) " >&6
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8963 #include <readline/readline.h>
8967 #if RL_VERSION_MAJOR < 7
8968 # error "readline version 7 required"
8974 if ac_fn_c_try_compile "$LINENO"; then :
8975 gdb_cv_readline_ok=yes
8977 gdb_cv_readline_ok=no
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
8982 $as_echo "$gdb_cv_readline_ok" >&6; }
8983 if test "$gdb_cv_readline_ok" != yes; then
8984 as_fn_error $? "system readline is not new enough" "$LINENO" 5
8990 READLINE_TEXI_INCFLAG=
8992 READLINE='$(READLINE_DIR)/libreadline.a'
8993 READLINE_DEPS='$(READLINE)'
8994 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8995 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9002 # Generate jit-reader.h
9004 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9007 # The cast to long int works around a bug in the HP C Compiler
9008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9010 # This bug is HP SR number 8606223364.
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9012 $as_echo_n "checking size of unsigned long long... " >&6; }
9013 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
9014 $as_echo_n "(cached) " >&6
9016 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9019 if test "$ac_cv_type_unsigned_long_long" = yes; then
9020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9022 as_fn_error 77 "cannot compute sizeof (unsigned long long)
9023 See \`config.log' for more details" "$LINENO" 5; }
9025 ac_cv_sizeof_unsigned_long_long=0
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9031 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9035 cat >>confdefs.h <<_ACEOF
9036 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9040 # The cast to long int works around a bug in the HP C Compiler
9041 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9042 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9043 # This bug is HP SR number 8606223364.
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9045 $as_echo_n "checking size of unsigned long... " >&6; }
9046 if ${ac_cv_sizeof_unsigned_long+:} false; then :
9047 $as_echo_n "(cached) " >&6
9049 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9052 if test "$ac_cv_type_unsigned_long" = yes; then
9053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9055 as_fn_error 77 "cannot compute sizeof (unsigned long)
9056 See \`config.log' for more details" "$LINENO" 5; }
9058 ac_cv_sizeof_unsigned_long=0
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9064 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9068 cat >>confdefs.h <<_ACEOF
9069 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9073 # The cast to long int works around a bug in the HP C Compiler
9074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9076 # This bug is HP SR number 8606223364.
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9078 $as_echo_n "checking size of unsigned __int128... " >&6; }
9079 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
9080 $as_echo_n "(cached) " >&6
9082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9085 if test "$ac_cv_type_unsigned___int128" = yes; then
9086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9088 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
9089 See \`config.log' for more details" "$LINENO" 5; }
9091 ac_cv_sizeof_unsigned___int128=0
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9097 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9101 cat >>confdefs.h <<_ACEOF
9102 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9107 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9108 TARGET_PTR="unsigned long"
9109 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9110 TARGET_PTR="unsigned long long"
9111 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9112 TARGET_PTR="unsigned __int128"
9114 TARGET_PTR="unsigned long"
9118 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9122 $as_echo_n "checking for library containing dlopen... " >&6; }
9123 if ${ac_cv_search_dlopen+:} false; then :
9124 $as_echo_n "(cached) " >&6
9126 ac_func_search_save_LIBS=$LIBS
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9130 /* Override any GCC internal prototype to avoid an error.
9131 Use char because int might match the return type of a GCC
9132 builtin and then its argument prototype would still apply. */
9145 for ac_lib in '' dl; do
9146 if test -z "$ac_lib"; then
9147 ac_res="none required"
9150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9152 if ac_fn_c_try_link "$LINENO"; then :
9153 ac_cv_search_dlopen=$ac_res
9155 rm -f core conftest.err conftest.$ac_objext \
9157 if ${ac_cv_search_dlopen+:} false; then :
9161 if ${ac_cv_search_dlopen+:} false; then :
9164 ac_cv_search_dlopen=no
9167 LIBS=$ac_func_search_save_LIBS
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9170 $as_echo "$ac_cv_search_dlopen" >&6; }
9171 ac_res=$ac_cv_search_dlopen
9172 if test "$ac_res" != no; then :
9173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9180 # Check whether --with-jit-reader-dir was given.
9181 if test "${with_jit_reader_dir+set}" = set; then :
9182 withval=$with_jit_reader_dir;
9183 JIT_READER_DIR=$withval
9185 JIT_READER_DIR=${libdir}/gdb
9189 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9191 ac_define_dir=`eval echo $JIT_READER_DIR`
9192 ac_define_dir=`eval echo $ac_define_dir`
9194 cat >>confdefs.h <<_ACEOF
9195 #define JIT_READER_DIR "$ac_define_dir"
9201 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9202 if test "x$prefix" = xNONE; then
9203 test_prefix=/usr/local
9208 test_prefix=$exec_prefix
9211 case ${ac_define_dir} in
9212 "${test_prefix}"|"${test_prefix}/"*|\
9213 '${exec_prefix}'|'${exec_prefix}/'*)
9218 cat >>confdefs.h <<_ACEOF
9219 #define JIT_READER_DIR_RELOCATABLE $value
9226 # Check whether --with-expat was given.
9227 if test "${with_expat+set}" = set; then :
9228 withval=$with_expat;
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9234 $as_echo_n "checking whether to use expat... " >&6; }
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9236 $as_echo "$with_expat" >&6; }
9238 if test "${with_expat}" = no; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9240 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9253 acl_save_prefix="$prefix"
9254 prefix="$acl_final_prefix"
9255 acl_save_exec_prefix="$exec_prefix"
9256 exec_prefix="$acl_final_exec_prefix"
9258 eval additional_includedir=\"$includedir\"
9259 eval additional_libdir=\"$libdir\"
9261 exec_prefix="$acl_save_exec_prefix"
9262 prefix="$acl_save_prefix"
9265 # Check whether --with-libexpat-prefix was given.
9266 if test "${with_libexpat_prefix+set}" = set; then :
9267 withval=$with_libexpat_prefix;
9268 if test "X$withval" = "Xno"; then
9271 if test "X$withval" = "X"; then
9273 acl_save_prefix="$prefix"
9274 prefix="$acl_final_prefix"
9275 acl_save_exec_prefix="$exec_prefix"
9276 exec_prefix="$acl_final_exec_prefix"
9278 eval additional_includedir=\"$includedir\"
9279 eval additional_libdir=\"$libdir\"
9281 exec_prefix="$acl_save_exec_prefix"
9282 prefix="$acl_save_prefix"
9285 additional_includedir="$withval/include"
9286 additional_libdir="$withval/lib"
9297 names_already_handled=
9298 names_next_round='expat '
9299 while test -n "$names_next_round"; do
9300 names_this_round="$names_next_round"
9302 for name in $names_this_round; do
9304 for n in $names_already_handled; do
9305 if test "$n" = "$name"; then
9310 if test -z "$already_handled"; then
9311 names_already_handled="$names_already_handled $name"
9312 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9313 eval value=\"\$HAVE_LIB$uppername\"
9314 if test -n "$value"; then
9315 if test "$value" = yes; then
9316 eval value=\"\$LIB$uppername\"
9317 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
9318 eval value=\"\$LTLIB$uppername\"
9319 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9328 if test $use_additional = yes; then
9329 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9330 found_dir="$additional_libdir"
9331 found_so="$additional_libdir/lib$name.$shlibext"
9332 if test -f "$additional_libdir/lib$name.la"; then
9333 found_la="$additional_libdir/lib$name.la"
9336 if test -f "$additional_libdir/lib$name.$libext"; then
9337 found_dir="$additional_libdir"
9338 found_a="$additional_libdir/lib$name.$libext"
9339 if test -f "$additional_libdir/lib$name.la"; then
9340 found_la="$additional_libdir/lib$name.la"
9345 if test "X$found_dir" = "X"; then
9346 for x in $LDFLAGS $LTLIBEXPAT; do
9348 acl_save_prefix="$prefix"
9349 prefix="$acl_final_prefix"
9350 acl_save_exec_prefix="$exec_prefix"
9351 exec_prefix="$acl_final_exec_prefix"
9353 exec_prefix="$acl_save_exec_prefix"
9354 prefix="$acl_save_prefix"
9358 dir=`echo "X$x" | sed -e 's/^X-L//'`
9359 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9361 found_so="$dir/lib$name.$shlibext"
9362 if test -f "$dir/lib$name.la"; then
9363 found_la="$dir/lib$name.la"
9366 if test -f "$dir/lib$name.$libext"; then
9368 found_a="$dir/lib$name.$libext"
9369 if test -f "$dir/lib$name.la"; then
9370 found_la="$dir/lib$name.la"
9376 if test "X$found_dir" != "X"; then
9381 if test "X$found_dir" != "X"; then
9382 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9383 if test "X$found_so" != "X"; then
9384 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9385 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9388 for x in $ltrpathdirs; do
9389 if test "X$x" = "X$found_dir"; then
9394 if test -z "$haveit"; then
9395 ltrpathdirs="$ltrpathdirs $found_dir"
9397 if test "$hardcode_direct" = yes; then
9398 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9400 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9401 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9403 for x in $rpathdirs; do
9404 if test "X$x" = "X$found_dir"; then
9409 if test -z "$haveit"; then
9410 rpathdirs="$rpathdirs $found_dir"
9414 for x in $LDFLAGS $LIBEXPAT; 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"
9424 if test "X$x" = "X-L$found_dir"; then
9429 if test -z "$haveit"; then
9430 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9432 if test "$hardcode_minus_L" != no; then
9433 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9435 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9441 if test "X$found_a" != "X"; then
9442 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9444 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9447 additional_includedir=
9448 case "$found_dir" in
9450 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9451 additional_includedir="$basedir/include"
9454 if test "X$additional_includedir" != "X"; then
9455 if test "X$additional_includedir" != "X/usr/include"; then
9457 if test "X$additional_includedir" = "X/usr/local/include"; then
9458 if test -n "$GCC"; then
9460 linux*) haveit=yes;;
9464 if test -z "$haveit"; then
9465 for x in $CPPFLAGS $INCEXPAT; do
9467 acl_save_prefix="$prefix"
9468 prefix="$acl_final_prefix"
9469 acl_save_exec_prefix="$exec_prefix"
9470 exec_prefix="$acl_final_exec_prefix"
9472 exec_prefix="$acl_save_exec_prefix"
9473 prefix="$acl_save_prefix"
9475 if test "X$x" = "X-I$additional_includedir"; then
9480 if test -z "$haveit"; then
9481 if test -d "$additional_includedir"; then
9482 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9488 if test -n "$found_la"; then
9489 save_libdir="$libdir"
9491 */* | *\\*) . "$found_la" ;;
9492 *) . "./$found_la" ;;
9494 libdir="$save_libdir"
9495 for dep in $dependency_libs; do
9498 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9499 if test "X$additional_libdir" != "X/usr/lib"; then
9501 if test "X$additional_libdir" = "X/usr/local/lib"; then
9502 if test -n "$GCC"; then
9504 linux*) haveit=yes;;
9508 if test -z "$haveit"; then
9510 for x in $LDFLAGS $LIBEXPAT; do
9512 acl_save_prefix="$prefix"
9513 prefix="$acl_final_prefix"
9514 acl_save_exec_prefix="$exec_prefix"
9515 exec_prefix="$acl_final_exec_prefix"
9517 exec_prefix="$acl_save_exec_prefix"
9518 prefix="$acl_save_prefix"
9520 if test "X$x" = "X-L$additional_libdir"; then
9525 if test -z "$haveit"; then
9526 if test -d "$additional_libdir"; then
9527 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9531 for x in $LDFLAGS $LTLIBEXPAT; do
9533 acl_save_prefix="$prefix"
9534 prefix="$acl_final_prefix"
9535 acl_save_exec_prefix="$exec_prefix"
9536 exec_prefix="$acl_final_exec_prefix"
9538 exec_prefix="$acl_save_exec_prefix"
9539 prefix="$acl_save_prefix"
9541 if test "X$x" = "X-L$additional_libdir"; then
9546 if test -z "$haveit"; then
9547 if test -d "$additional_libdir"; then
9548 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9555 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9556 if test "$enable_rpath" != no; then
9558 for x in $rpathdirs; do
9559 if test "X$x" = "X$dir"; then
9564 if test -z "$haveit"; then
9565 rpathdirs="$rpathdirs $dir"
9568 for x in $ltrpathdirs; do
9569 if test "X$x" = "X$dir"; then
9574 if test -z "$haveit"; then
9575 ltrpathdirs="$ltrpathdirs $dir"
9580 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9583 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9586 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9587 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9593 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9594 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9600 if test "X$rpathdirs" != "X"; then
9601 if test -n "$hardcode_libdir_separator"; then
9603 for found_dir in $rpathdirs; do
9604 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9606 acl_save_libdir="$libdir"
9608 eval flag=\"$hardcode_libdir_flag_spec\"
9609 libdir="$acl_save_libdir"
9610 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9612 for found_dir in $rpathdirs; do
9613 acl_save_libdir="$libdir"
9615 eval flag=\"$hardcode_libdir_flag_spec\"
9616 libdir="$acl_save_libdir"
9617 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9621 if test "X$ltrpathdirs" != "X"; then
9622 for found_dir in $ltrpathdirs; do
9623 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9628 ac_save_CPPFLAGS="$CPPFLAGS"
9630 for element in $INCEXPAT; do
9632 for x in $CPPFLAGS; do
9634 acl_save_prefix="$prefix"
9635 prefix="$acl_final_prefix"
9636 acl_save_exec_prefix="$exec_prefix"
9637 exec_prefix="$acl_final_exec_prefix"
9639 exec_prefix="$acl_save_exec_prefix"
9640 prefix="$acl_save_prefix"
9642 if test "X$x" = "X$element"; then
9647 if test -z "$haveit"; then
9648 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9654 $as_echo_n "checking for libexpat... " >&6; }
9655 if ${ac_cv_libexpat+:} false; then :
9656 $as_echo_n "(cached) " >&6
9659 ac_save_LIBS="$LIBS"
9660 LIBS="$LIBS $LIBEXPAT"
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9667 XML_Parser p = XML_ParserCreate (0);
9672 if ac_fn_c_try_link "$LINENO"; then :
9677 rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9679 LIBS="$ac_save_LIBS"
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9683 $as_echo "$ac_cv_libexpat" >&6; }
9684 if test "$ac_cv_libexpat" = yes; then
9687 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9690 $as_echo_n "checking how to link with libexpat... " >&6; }
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9692 $as_echo "$LIBEXPAT" >&6; }
9695 CPPFLAGS="$ac_save_CPPFLAGS"
9705 if test "$HAVE_LIBEXPAT" != yes; then
9706 if test "$with_expat" = yes; then
9707 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9710 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9714 LIBS="$LIBS $LIBEXPAT"
9715 for ac_func in XML_StopParser
9717 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9718 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
9719 cat >>confdefs.h <<_ACEOF
9720 #define HAVE_XML_STOPPARSER 1
9731 # Check whether --with-mpfr was given.
9732 if test "${with_mpfr+set}" = set; then :
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9739 $as_echo_n "checking whether to use MPFR... " >&6; }
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9741 $as_echo "$with_mpfr" >&6; }
9743 if test "${with_mpfr}" = no; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9745 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9758 acl_save_prefix="$prefix"
9759 prefix="$acl_final_prefix"
9760 acl_save_exec_prefix="$exec_prefix"
9761 exec_prefix="$acl_final_exec_prefix"
9763 eval additional_includedir=\"$includedir\"
9764 eval additional_libdir=\"$libdir\"
9766 exec_prefix="$acl_save_exec_prefix"
9767 prefix="$acl_save_prefix"
9770 # Check whether --with-libmpfr-prefix was given.
9771 if test "${with_libmpfr_prefix+set}" = set; then :
9772 withval=$with_libmpfr_prefix;
9773 if test "X$withval" = "Xno"; then
9776 if test "X$withval" = "X"; then
9778 acl_save_prefix="$prefix"
9779 prefix="$acl_final_prefix"
9780 acl_save_exec_prefix="$exec_prefix"
9781 exec_prefix="$acl_final_exec_prefix"
9783 eval additional_includedir=\"$includedir\"
9784 eval additional_libdir=\"$libdir\"
9786 exec_prefix="$acl_save_exec_prefix"
9787 prefix="$acl_save_prefix"
9790 additional_includedir="$withval/include"
9791 additional_libdir="$withval/lib"
9802 names_already_handled=
9803 names_next_round='mpfr gmp'
9804 while test -n "$names_next_round"; do
9805 names_this_round="$names_next_round"
9807 for name in $names_this_round; do
9809 for n in $names_already_handled; do
9810 if test "$n" = "$name"; then
9815 if test -z "$already_handled"; then
9816 names_already_handled="$names_already_handled $name"
9817 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9818 eval value=\"\$HAVE_LIB$uppername\"
9819 if test -n "$value"; then
9820 if test "$value" = yes; then
9821 eval value=\"\$LIB$uppername\"
9822 test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
9823 eval value=\"\$LTLIB$uppername\"
9824 test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9833 if test $use_additional = yes; then
9834 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9835 found_dir="$additional_libdir"
9836 found_so="$additional_libdir/lib$name.$shlibext"
9837 if test -f "$additional_libdir/lib$name.la"; then
9838 found_la="$additional_libdir/lib$name.la"
9841 if test -f "$additional_libdir/lib$name.$libext"; then
9842 found_dir="$additional_libdir"
9843 found_a="$additional_libdir/lib$name.$libext"
9844 if test -f "$additional_libdir/lib$name.la"; then
9845 found_la="$additional_libdir/lib$name.la"
9850 if test "X$found_dir" = "X"; then
9851 for x in $LDFLAGS $LTLIBMPFR; do
9853 acl_save_prefix="$prefix"
9854 prefix="$acl_final_prefix"
9855 acl_save_exec_prefix="$exec_prefix"
9856 exec_prefix="$acl_final_exec_prefix"
9858 exec_prefix="$acl_save_exec_prefix"
9859 prefix="$acl_save_prefix"
9863 dir=`echo "X$x" | sed -e 's/^X-L//'`
9864 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9866 found_so="$dir/lib$name.$shlibext"
9867 if test -f "$dir/lib$name.la"; then
9868 found_la="$dir/lib$name.la"
9871 if test -f "$dir/lib$name.$libext"; then
9873 found_a="$dir/lib$name.$libext"
9874 if test -f "$dir/lib$name.la"; then
9875 found_la="$dir/lib$name.la"
9881 if test "X$found_dir" != "X"; then
9886 if test "X$found_dir" != "X"; then
9887 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9888 if test "X$found_so" != "X"; then
9889 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9890 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9893 for x in $ltrpathdirs; do
9894 if test "X$x" = "X$found_dir"; then
9899 if test -z "$haveit"; then
9900 ltrpathdirs="$ltrpathdirs $found_dir"
9902 if test "$hardcode_direct" = yes; then
9903 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9905 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9906 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9908 for x in $rpathdirs; do
9909 if test "X$x" = "X$found_dir"; then
9914 if test -z "$haveit"; then
9915 rpathdirs="$rpathdirs $found_dir"
9919 for x in $LDFLAGS $LIBMPFR; 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"
9929 if test "X$x" = "X-L$found_dir"; then
9934 if test -z "$haveit"; then
9935 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
9937 if test "$hardcode_minus_L" != no; then
9938 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9940 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
9946 if test "X$found_a" != "X"; then
9947 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
9949 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
9952 additional_includedir=
9953 case "$found_dir" in
9955 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9956 additional_includedir="$basedir/include"
9959 if test "X$additional_includedir" != "X"; then
9960 if test "X$additional_includedir" != "X/usr/include"; then
9962 if test "X$additional_includedir" = "X/usr/local/include"; then
9963 if test -n "$GCC"; then
9965 linux*) haveit=yes;;
9969 if test -z "$haveit"; then
9970 for x in $CPPFLAGS $INCMPFR; do
9972 acl_save_prefix="$prefix"
9973 prefix="$acl_final_prefix"
9974 acl_save_exec_prefix="$exec_prefix"
9975 exec_prefix="$acl_final_exec_prefix"
9977 exec_prefix="$acl_save_exec_prefix"
9978 prefix="$acl_save_prefix"
9980 if test "X$x" = "X-I$additional_includedir"; then
9985 if test -z "$haveit"; then
9986 if test -d "$additional_includedir"; then
9987 INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
9993 if test -n "$found_la"; then
9994 save_libdir="$libdir"
9996 */* | *\\*) . "$found_la" ;;
9997 *) . "./$found_la" ;;
9999 libdir="$save_libdir"
10000 for dep in $dependency_libs; do
10003 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10004 if test "X$additional_libdir" != "X/usr/lib"; then
10006 if test "X$additional_libdir" = "X/usr/local/lib"; then
10007 if test -n "$GCC"; then
10009 linux*) haveit=yes;;
10013 if test -z "$haveit"; then
10015 for x in $LDFLAGS $LIBMPFR; do
10017 acl_save_prefix="$prefix"
10018 prefix="$acl_final_prefix"
10019 acl_save_exec_prefix="$exec_prefix"
10020 exec_prefix="$acl_final_exec_prefix"
10022 exec_prefix="$acl_save_exec_prefix"
10023 prefix="$acl_save_prefix"
10025 if test "X$x" = "X-L$additional_libdir"; then
10030 if test -z "$haveit"; then
10031 if test -d "$additional_libdir"; then
10032 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10036 for x in $LDFLAGS $LTLIBMPFR; do
10038 acl_save_prefix="$prefix"
10039 prefix="$acl_final_prefix"
10040 acl_save_exec_prefix="$exec_prefix"
10041 exec_prefix="$acl_final_exec_prefix"
10043 exec_prefix="$acl_save_exec_prefix"
10044 prefix="$acl_save_prefix"
10046 if test "X$x" = "X-L$additional_libdir"; then
10051 if test -z "$haveit"; then
10052 if test -d "$additional_libdir"; then
10053 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10060 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10061 if test "$enable_rpath" != no; then
10063 for x in $rpathdirs; do
10064 if test "X$x" = "X$dir"; then
10069 if test -z "$haveit"; then
10070 rpathdirs="$rpathdirs $dir"
10073 for x in $ltrpathdirs; do
10074 if test "X$x" = "X$dir"; then
10079 if test -z "$haveit"; then
10080 ltrpathdirs="$ltrpathdirs $dir"
10085 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10088 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10091 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
10092 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10098 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10099 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10105 if test "X$rpathdirs" != "X"; then
10106 if test -n "$hardcode_libdir_separator"; then
10108 for found_dir in $rpathdirs; do
10109 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10111 acl_save_libdir="$libdir"
10113 eval flag=\"$hardcode_libdir_flag_spec\"
10114 libdir="$acl_save_libdir"
10115 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10117 for found_dir in $rpathdirs; do
10118 acl_save_libdir="$libdir"
10119 libdir="$found_dir"
10120 eval flag=\"$hardcode_libdir_flag_spec\"
10121 libdir="$acl_save_libdir"
10122 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10126 if test "X$ltrpathdirs" != "X"; then
10127 for found_dir in $ltrpathdirs; do
10128 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10133 ac_save_CPPFLAGS="$CPPFLAGS"
10135 for element in $INCMPFR; do
10137 for x in $CPPFLAGS; do
10139 acl_save_prefix="$prefix"
10140 prefix="$acl_final_prefix"
10141 acl_save_exec_prefix="$exec_prefix"
10142 exec_prefix="$acl_final_exec_prefix"
10144 exec_prefix="$acl_save_exec_prefix"
10145 prefix="$acl_save_prefix"
10147 if test "X$x" = "X$element"; then
10152 if test -z "$haveit"; then
10153 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10159 $as_echo_n "checking for libmpfr... " >&6; }
10160 if ${ac_cv_libmpfr+:} false; then :
10161 $as_echo_n "(cached) " >&6
10164 ac_save_LIBS="$LIBS"
10165 LIBS="$LIBS $LIBMPFR"
10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10172 mpfr_exp_t exp; mpfr_t x;
10173 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10178 if ac_fn_c_try_link "$LINENO"; then :
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LIBS="$ac_save_LIBS"
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10189 $as_echo "$ac_cv_libmpfr" >&6; }
10190 if test "$ac_cv_libmpfr" = yes; then
10193 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10196 $as_echo_n "checking how to link with libmpfr... " >&6; }
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10198 $as_echo "$LIBMPFR" >&6; }
10201 CPPFLAGS="$ac_save_CPPFLAGS"
10211 if test "$HAVE_LIBMPFR" != yes; then
10212 if test "$with_mpfr" = yes; then
10213 as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10216 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10221 # --------------------- #
10222 # Check for libpython. #
10223 # --------------------- #
10230 # Check whether --with-python was given.
10231 if test "${with_python+set}" = set; then :
10232 withval=$with_python;
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10238 $as_echo_n "checking whether to use python... " >&6; }
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10240 $as_echo "$with_python" >&6; }
10242 if test "${with_python}" = no; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10244 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10247 case "${with_python}" in
10249 if test -d ${with_python}; then
10250 # Assume the python binary is ${with_python}/bin/python.
10251 python_prog="${with_python}/bin/python"
10253 # If python does not exit ${with_python}/bin, then try in
10254 # ${with_python}. On Windows/MinGW, this is where the Python
10256 if test ! -x "${python_prog}"; then
10257 python_prog="${with_python}/python"
10260 if test ! -x "${python_prog}"; then
10261 # Fall back to gdb 7.0/7.1 behaviour.
10262 python_prog=missing
10263 python_prefix=${with_python}
10265 elif test -x "${with_python}"; then
10266 # While we can't run python compiled for $host (unless host == build),
10267 # the user could write a script that provides the needed information,
10268 # so we support that.
10269 python_prog=${with_python}
10272 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
10276 # Disallow --with-python=foo/bar.
10277 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
10280 # The user has either specified auto, yes, or the name of the python
10281 # program assumed to be in $PATH.
10283 case "${with_python}" in
10285 if test ${build} = ${host}; then
10286 # Extract the first word of "python", so it can be a program name with args.
10287 set dummy python; ac_word=$2
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10289 $as_echo_n "checking for $ac_word... " >&6; }
10290 if ${ac_cv_path_python_prog_path+:} false; then :
10291 $as_echo_n "(cached) " >&6
10293 case $python_prog_path in
10295 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10313 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10317 python_prog_path=$ac_cv_path_python_prog_path
10318 if test -n "$python_prog_path"; then
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10320 $as_echo "$python_prog_path" >&6; }
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323 $as_echo "no" >&6; }
10327 if test "${python_prog_path}" = missing; then
10328 python_prog=missing
10330 python_prog=${python_prog_path}
10333 # Not much we can do except assume the cross-compiler will find the
10335 python_prog=missing
10339 # While we can't run python compiled for $host (unless host == build),
10340 # the user could write a script that provides the needed information,
10341 # so we support that.
10342 python_prog="${with_python}"
10343 # Extract the first word of "${python_prog}", so it can be a program name with args.
10344 set dummy ${python_prog}; ac_word=$2
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346 $as_echo_n "checking for $ac_word... " >&6; }
10347 if ${ac_cv_path_python_prog_path+:} false; then :
10348 $as_echo_n "(cached) " >&6
10350 case $python_prog_path in
10352 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10374 python_prog_path=$ac_cv_path_python_prog_path
10375 if test -n "$python_prog_path"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10377 $as_echo "$python_prog_path" >&6; }
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10384 if test "${python_prog_path}" = missing; then
10385 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
10391 if test "${python_prog}" != missing; then
10392 # We have a python program to use, but it may be too old.
10393 # Don't flag an error for --with-python=auto (the default).
10394 have_python_config=yes
10395 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10396 if test $? != 0; then
10397 have_python_config=failed
10398 if test "${with_python}" != auto; then
10399 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
10402 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10403 if test $? != 0; then
10404 have_python_config=failed
10405 if test "${with_python}" != auto; then
10406 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
10409 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10410 if test $? != 0; then
10411 have_python_config=failed
10412 if test "${with_python}" != auto; then
10413 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
10417 # We do not have a python executable we can use to determine where
10418 # to find the Python headers and libs. We cannot guess the include
10419 # path from the python_prefix either, because that include path
10420 # depends on the Python version. So, there is nothing much we can
10421 # do except assume that the compiler will be able to find those files.
10424 have_python_config=no
10427 # If we have python-config, only try the configuration it provides.
10428 # Otherwise fallback on the old way of trying different versions of
10432 if test "${have_python_config}" = yes; then
10433 # Determine the Python version by extracting "-lpython<version>"
10434 # part of the python_libs. <version> is usually X.Y with X and Y
10435 # being decimal numbers, but can also be XY (seen on Windows).
10437 # The extraction is performed using sed with a regular expression.
10438 # Initially, the regexp used was using the '?' quantifier to make
10439 # the dot in the version number optional. Unfortunately, this
10440 # does not work with non-GNU versions of sed because, because of
10441 # what looks like a limitation (the '?' quantifier does not work
10442 # with back-references). We work around this limitation by using
10443 # the '*' quantifier instead. It means that, in theory, we might
10444 # match unexpected version strings such as "-lpython2..7", but
10445 # this seems unlikely in practice. And even if that happens,
10446 # an error will be triggered later on, when checking that version
10448 python_version=`echo " ${python_libs} " \
10449 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10450 case "${python_version}" in
10453 version=${python_version}
10455 new_CPPFLAGS=${python_includes}
10456 new_LIBS=${python_libs}
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10458 $as_echo_n "checking for ${version}... " >&6; }
10459 save_CPPFLAGS=$CPPFLAGS
10461 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10462 LIBS="$new_LIBS $LIBS"
10463 found_usable_python=no
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10466 #include "Python.h"
10475 if ac_fn_c_try_link "$LINENO"; then :
10476 have_libpython=${version}
10477 found_usable_python=yes
10478 PYTHON_CPPFLAGS=$new_CPPFLAGS
10479 PYTHON_LIBS=$new_LIBS
10481 rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483 CPPFLAGS=$save_CPPFLAGS
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10486 $as_echo "${found_usable_python}" >&6; }
10490 as_fn_error $? "unable to determine python version from ${python_libs}" "$LINENO" 5
10493 elif test "${have_python_config}" != failed; then
10494 if test "${have_libpython}" = no; then
10498 new_CPPFLAGS=${python_includes}
10499 new_LIBS="-lpython2.7 ${python_libs}"
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10501 $as_echo_n "checking for ${version}... " >&6; }
10502 save_CPPFLAGS=$CPPFLAGS
10504 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10505 LIBS="$new_LIBS $LIBS"
10506 found_usable_python=no
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 #include "Python.h"
10518 if ac_fn_c_try_link "$LINENO"; then :
10519 have_libpython=${version}
10520 found_usable_python=yes
10521 PYTHON_CPPFLAGS=$new_CPPFLAGS
10522 PYTHON_LIBS=$new_LIBS
10524 rm -f core conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 CPPFLAGS=$save_CPPFLAGS
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10529 $as_echo "${found_usable_python}" >&6; }
10532 if test "${have_libpython}" = no; then
10536 new_CPPFLAGS=${python_includes}
10537 new_LIBS="-lpython2.6 ${python_libs}"
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10539 $as_echo_n "checking for ${version}... " >&6; }
10540 save_CPPFLAGS=$CPPFLAGS
10542 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10543 LIBS="$new_LIBS $LIBS"
10544 found_usable_python=no
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10547 #include "Python.h"
10556 if ac_fn_c_try_link "$LINENO"; then :
10557 have_libpython=${version}
10558 found_usable_python=yes
10559 PYTHON_CPPFLAGS=$new_CPPFLAGS
10560 PYTHON_LIBS=$new_LIBS
10562 rm -f core conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext conftest.$ac_ext
10564 CPPFLAGS=$save_CPPFLAGS
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10567 $as_echo "${found_usable_python}" >&6; }
10571 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
10573 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10575 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
10577 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10581 if test "${have_libpython}" = no; then
10582 case "${with_python}" in
10584 as_fn_error $? "python is missing or unusable" "$LINENO" 5
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10588 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10591 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
10595 if test -n "${python_prefix}"; then
10597 cat >>confdefs.h <<_ACEOF
10598 #define WITH_PYTHON_PATH "${python_prefix}"
10602 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10603 if test "x$prefix" = xNONE; then
10604 test_prefix=/usr/local
10606 test_prefix=$prefix
10609 test_prefix=$exec_prefix
10612 case ${python_prefix} in
10613 "${test_prefix}"|"${test_prefix}/"*|\
10614 '${exec_prefix}'|'${exec_prefix}/'*)
10619 cat >>confdefs.h <<_ACEOF
10620 #define PYTHON_PATH_RELOCATABLE $value
10628 if test "${have_libpython}" != no; then
10630 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10632 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10633 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10634 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10635 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
10636 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10638 # Flags needed to compile Python code (taken from python-config --cflags).
10639 # We cannot call python-config directly because it will output whatever was
10640 # used when compiling the Python interpreter itself, including flags which
10641 # would make the python-related objects be compiled differently from the
10642 # rest of GDB (e.g., -O2 and -fPIC).
10643 if test "${GCC}" = yes; then
10644 tentative_python_cflags="-fno-strict-aliasing -fwrapv"
10645 # Python headers recommend -DNDEBUG, but it's unclear if that just
10646 # refers to building Python itself. In release mode, though, it
10647 # doesn't hurt for the Python code in gdb to follow.
10648 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
10651 if test "x${tentative_python_cflags}" != x; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10653 $as_echo_n "checking compiler flags for python code... " >&6; }
10654 for flag in ${tentative_python_cflags}; do
10655 # Check that the compiler accepts it
10656 saved_CFLAGS="$CFLAGS"
10657 CFLAGS="$CFLAGS $flag"
10658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10659 /* end confdefs.h. */
10669 if ac_fn_c_try_compile "$LINENO"; then :
10670 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673 CFLAGS="$saved_CFLAGS"
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10676 $as_echo "${PYTHON_CFLAGS}" >&6; }
10679 # On x64 Windows, Python's include headers, and pyconfig.h in
10680 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10681 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10682 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10683 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10684 # The issue was reported to the Python community, but still isn't
10685 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10687 case "$gdb_host" in
10689 if test "${GCC}" = yes; then
10690 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
10695 # Note that "python -m threading" cannot be used to check for
10696 # threading support due to a bug in Python 2.7.3
10697 # (http://bugs.python.org/issue15567).
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10699 $as_echo_n "checking whether python supports threads... " >&6; }
10700 saved_CPPFLAGS="${CPPFLAGS}"
10701 CPPFLAGS="${PYTHON_CPPFLAGS}"
10702 # Note that the test is reversed so that python_has_threads=yes on
10703 # unexpected failures.
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10707 #include <Python.h>
10713 if ac_fn_c_try_cpp "$LINENO"; then :
10714 python_has_threads=no
10716 python_has_threads=yes
10718 rm -f conftest.err conftest.i conftest.$ac_ext
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10720 $as_echo "${python_has_threads}" >&6; }
10721 CPPFLAGS="${saved_CPPFLAGS}"
10723 # Even if Python support is not compiled in, we need to have this file
10724 # included so that the "python" command, et.al., still exists.
10725 CONFIG_OBS="$CONFIG_OBS python/python.o"
10726 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
10729 # Work around Python http://bugs.python.org/issue10112. See also
10730 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10731 # no effect. Note that the only test after this that uses Python is
10732 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10733 # run without -export-dynamic too.
10734 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10739 if test "${have_libpython}" != no; then
10741 HAVE_PYTHON_FALSE='#'
10743 HAVE_PYTHON_TRUE='#'
10748 # -------------------- #
10749 # Check for libguile. #
10750 # -------------------- #
10757 # Check whether --with-guile was given.
10758 if test "${with_guile+set}" = set; then :
10759 withval=$with_guile;
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10765 $as_echo_n "checking whether to use guile... " >&6; }
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10767 $as_echo "$with_guile" >&6; }
10769 # Extract the first word of "pkg-config", so it can be a program name with args.
10770 set dummy pkg-config; ac_word=$2
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10772 $as_echo_n "checking for $ac_word... " >&6; }
10773 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
10774 $as_echo_n "(cached) " >&6
10776 case $pkg_config_prog_path in
10778 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
10781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782 for as_dir in $PATH
10785 test -z "$as_dir" && as_dir=.
10786 for ac_exec_ext in '' $ac_executable_extensions; do
10787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10788 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
10789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10796 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
10800 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
10801 if test -n "$pkg_config_prog_path"; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10803 $as_echo "$pkg_config_prog_path" >&6; }
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806 $as_echo "no" >&6; }
10811 try_guile_versions="guile-2.0"
10813 case "${with_guile}" in
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10816 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10819 if test "${pkg_config_prog_path}" = "missing"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10821 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10824 pkg_config=${pkg_config_prog_path}
10825 guile_version_list=${try_guile_versions}
10828 found_usable_guile=checking
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10830 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10831 for guile_version in ${guile_version_list}; do
10832 ${pkg_config} --exists ${guile_version} 2>/dev/null
10833 if test $? != 0; then
10836 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
10837 if test $? != 0; then
10838 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10840 new_LIBS=`${pkg_config} --libs ${guile_version}`
10841 if test $? != 0; then
10842 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10844 found_usable_guile=${guile_version}
10847 if test "${found_usable_guile}" = "checking"; then
10848 if test "${flag_errors}" = "yes"; then
10849 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10851 found_usable_guile=no
10854 if test "${found_usable_guile}" != no; then
10855 save_CPPFLAGS=$CPPFLAGS
10857 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10858 LIBS="$LIBS $new_LIBS"
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10861 #include "libguile.h"
10870 if ac_fn_c_try_link "$LINENO"; then :
10872 GUILE_CPPFLAGS=$new_CPPFLAGS
10873 GUILE_LIBS=$new_LIBS
10875 found_usable_guile=no
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10880 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
10882 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10887 CPPFLAGS=$save_CPPFLAGS
10889 if test "${found_usable_guile}" = no; then
10890 if test "${flag_errors}" = yes; then
10891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10893 as_fn_error $? "linking guile version ${guile_version} test program failed
10894 See \`config.log' for more details" "$LINENO" 5; }
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10899 $as_echo "${found_usable_guile}" >&6; }
10904 if test "${pkg_config_prog_path}" = "missing"; then
10905 as_fn_error $? "pkg-config not found" "$LINENO" 5
10908 pkg_config=${pkg_config_prog_path}
10909 guile_version_list=${try_guile_versions}
10912 found_usable_guile=checking
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10914 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10915 for guile_version in ${guile_version_list}; do
10916 ${pkg_config} --exists ${guile_version} 2>/dev/null
10917 if test $? != 0; then
10920 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
10921 if test $? != 0; then
10922 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10924 new_LIBS=`${pkg_config} --libs ${guile_version}`
10925 if test $? != 0; then
10926 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10928 found_usable_guile=${guile_version}
10931 if test "${found_usable_guile}" = "checking"; then
10932 if test "${flag_errors}" = "yes"; then
10933 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10935 found_usable_guile=no
10938 if test "${found_usable_guile}" != no; then
10939 save_CPPFLAGS=$CPPFLAGS
10941 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10942 LIBS="$LIBS $new_LIBS"
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10945 #include "libguile.h"
10954 if ac_fn_c_try_link "$LINENO"; then :
10956 GUILE_CPPFLAGS=$new_CPPFLAGS
10957 GUILE_LIBS=$new_LIBS
10959 found_usable_guile=no
10961 rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10964 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
10966 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10971 CPPFLAGS=$save_CPPFLAGS
10973 if test "${found_usable_guile}" = no; then
10974 if test "${flag_errors}" = yes; then
10975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10977 as_fn_error $? "linking guile version ${guile_version} test program failed
10978 See \`config.log' for more details" "$LINENO" 5; }
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10983 $as_echo "${found_usable_guile}" >&6; }
10987 if test -x "${with_guile}"; then
10989 pkg_config=${with_guile}
10990 guile_version_list=${try_guile_versions}
10993 found_usable_guile=checking
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10995 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10996 for guile_version in ${guile_version_list}; do
10997 ${pkg_config} --exists ${guile_version} 2>/dev/null
10998 if test $? != 0; then
11001 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11002 if test $? != 0; then
11003 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11005 new_LIBS=`${pkg_config} --libs ${guile_version}`
11006 if test $? != 0; then
11007 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11009 found_usable_guile=${guile_version}
11012 if test "${found_usable_guile}" = "checking"; then
11013 if test "${flag_errors}" = "yes"; then
11014 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11016 found_usable_guile=no
11019 if test "${found_usable_guile}" != no; then
11020 save_CPPFLAGS=$CPPFLAGS
11022 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11023 LIBS="$LIBS $new_LIBS"
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11026 #include "libguile.h"
11035 if ac_fn_c_try_link "$LINENO"; then :
11037 GUILE_CPPFLAGS=$new_CPPFLAGS
11038 GUILE_LIBS=$new_LIBS
11040 found_usable_guile=no
11042 rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11044 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11045 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11047 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11052 CPPFLAGS=$save_CPPFLAGS
11054 if test "${found_usable_guile}" = no; then
11055 if test "${flag_errors}" = yes; then
11056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11058 as_fn_error $? "linking guile version ${guile_version} test program failed
11059 See \`config.log' for more details" "$LINENO" 5; }
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11064 $as_echo "${found_usable_guile}" >&6; }
11067 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
11071 # Disallow --with=guile="" and --with-guile=foo/bar.
11072 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
11075 # A space separate list of guile versions to try, in order.
11076 if test "${pkg_config_prog_path}" = "missing"; then
11077 as_fn_error $? "pkg-config not found" "$LINENO" 5
11080 pkg_config=${pkg_config_prog_path}
11081 guile_version_list=${with_guile}
11084 found_usable_guile=checking
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11086 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11087 for guile_version in ${guile_version_list}; do
11088 ${pkg_config} --exists ${guile_version} 2>/dev/null
11089 if test $? != 0; then
11092 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11093 if test $? != 0; then
11094 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11096 new_LIBS=`${pkg_config} --libs ${guile_version}`
11097 if test $? != 0; then
11098 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11100 found_usable_guile=${guile_version}
11103 if test "${found_usable_guile}" = "checking"; then
11104 if test "${flag_errors}" = "yes"; then
11105 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11107 found_usable_guile=no
11110 if test "${found_usable_guile}" != no; then
11111 save_CPPFLAGS=$CPPFLAGS
11113 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11114 LIBS="$LIBS $new_LIBS"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117 #include "libguile.h"
11126 if ac_fn_c_try_link "$LINENO"; then :
11128 GUILE_CPPFLAGS=$new_CPPFLAGS
11129 GUILE_LIBS=$new_LIBS
11131 found_usable_guile=no
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11136 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11138 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11143 CPPFLAGS=$save_CPPFLAGS
11145 if test "${found_usable_guile}" = no; then
11146 if test "${flag_errors}" = yes; then
11147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11149 as_fn_error $? "linking guile version ${guile_version} test program failed
11150 See \`config.log' for more details" "$LINENO" 5; }
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11155 $as_echo "${found_usable_guile}" >&6; }
11160 if test "${have_libguile}" != no; then
11161 case "${with_guile}" in
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11165 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11166 if ${ac_cv_guild_program_name+:} false; then :
11167 $as_echo_n "(cached) " >&6
11169 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
11171 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11172 # the 'guild' and 'bindir' variables. In that case, try to guess
11173 # what the program name is, at the risk of getting it wrong if
11174 # Guile was configured with '--program-suffix' or similar.
11175 if test "x$ac_cv_guild_program_name" = "x"; then
11176 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11177 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11182 $as_echo "$ac_cv_guild_program_name" >&6; }
11184 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11185 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11188 GUILD="$ac_cv_guild_program_name"
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11195 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11196 if ${ac_cv_guild_program_name+:} false; then :
11197 $as_echo_n "(cached) " >&6
11199 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11201 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11202 # the 'guild' and 'bindir' variables. In that case, try to guess
11203 # what the program name is, at the risk of getting it wrong if
11204 # Guile was configured with '--program-suffix' or similar.
11205 if test "x$ac_cv_guild_program_name" = "x"; then
11206 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11207 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11212 $as_echo "$ac_cv_guild_program_name" >&6; }
11214 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11215 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11218 GUILD="$ac_cv_guild_program_name"
11225 if test "$cross_compiling" = no; then
11228 GUILD_TARGET_FLAG="--target=$host"
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11235 $as_echo_n "checking whether guild supports this host... " >&6; }
11236 if ${ac_cv_guild_ok+:} false; then :
11237 $as_echo_n "(cached) " >&6
11239 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11240 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11247 $as_echo "$ac_cv_guild_ok" >&6; }
11249 if test "$ac_cv_guild_ok" = no; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11252 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11256 if test "${have_libguile}" != no; then
11258 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11260 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11261 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11262 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11263 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
11264 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11267 save_CPPFLAGS="$CPPFLAGS"
11269 CPPFLAGS="$GUILE_CPPFLAGS"
11270 for ac_func in scm_new_smob
11272 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11273 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
11274 cat >>confdefs.h <<_ACEOF
11275 #define HAVE_SCM_NEW_SMOB 1
11282 CPPFLAGS="$save_CPPFLAGS"
11284 # Even if Guile support is not compiled in, we need to have these files
11286 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
11287 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
11291 if test "${have_libguile}" != no; then
11293 HAVE_GUILE_FALSE='#'
11295 HAVE_GUILE_TRUE='#'
11300 # ---------------------------- #
11301 # Check for source highlight. #
11302 # ---------------------------- #
11307 # Check whether --enable-source-highlight was given.
11308 if test "${enable_source_highlight+set}" = set; then :
11309 enableval=$enable_source_highlight; case "${enableval}" in
11310 yes) enable_source_highlight=yes ;;
11311 no) enable_source_highlight=no ;;
11312 *) as_fn_error $? "bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11315 enable_source_highlight=auto
11319 if test "${enable_source_highlight}" != "no"; then
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11321 $as_echo_n "checking for the source-highlight library... " >&6; }
11322 if test "${pkg_config_prog_path}" = "missing"; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11324 $as_echo "no - pkg-config not found" >&6; }
11325 if test "${enable_source_highlight}" = "yes"; then
11326 as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
11331 as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11335 if ${pkg_config_prog_path} --exists source-highlight; then
11336 SRCHIGH_CFLAGS=`${pkg_config_prog_path} --cflags source-highlight`
11337 SRCHIGH_LIBS=`${pkg_config_prog_path} --libs source-highlight`
11339 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11342 $as_echo "yes" >&6; }
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11346 if test "${enable_source_highlight}" = "yes"; then
11347 as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
11356 # Check whether --with-intel_pt was given.
11357 if test "${with_intel_pt+set}" = set; then :
11358 withval=$with_intel_pt;
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11364 $as_echo_n "checking whether to use intel pt... " >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11366 $as_echo "$with_intel_pt" >&6; }
11368 if test "${with_intel_pt}" = no; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11370 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11376 #include <linux/perf_event.h>
11377 #ifndef PERF_ATTR_SIZE_VER5
11382 if ac_fn_c_try_cpp "$LINENO"; then :
11387 rm -f conftest.err conftest.i conftest.$ac_ext
11388 if test "$perf_event" != yes; then
11389 if test "$with_intel_pt" = yes; then
11390 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11393 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11407 acl_save_prefix="$prefix"
11408 prefix="$acl_final_prefix"
11409 acl_save_exec_prefix="$exec_prefix"
11410 exec_prefix="$acl_final_exec_prefix"
11412 eval additional_includedir=\"$includedir\"
11413 eval additional_libdir=\"$libdir\"
11415 exec_prefix="$acl_save_exec_prefix"
11416 prefix="$acl_save_prefix"
11419 # Check whether --with-libipt-prefix was given.
11420 if test "${with_libipt_prefix+set}" = set; then :
11421 withval=$with_libipt_prefix;
11422 if test "X$withval" = "Xno"; then
11425 if test "X$withval" = "X"; then
11427 acl_save_prefix="$prefix"
11428 prefix="$acl_final_prefix"
11429 acl_save_exec_prefix="$exec_prefix"
11430 exec_prefix="$acl_final_exec_prefix"
11432 eval additional_includedir=\"$includedir\"
11433 eval additional_libdir=\"$libdir\"
11435 exec_prefix="$acl_save_exec_prefix"
11436 prefix="$acl_save_prefix"
11439 additional_includedir="$withval/include"
11440 additional_libdir="$withval/lib"
11451 names_already_handled=
11452 names_next_round='ipt '
11453 while test -n "$names_next_round"; do
11454 names_this_round="$names_next_round"
11456 for name in $names_this_round; do
11458 for n in $names_already_handled; do
11459 if test "$n" = "$name"; then
11460 already_handled=yes
11464 if test -z "$already_handled"; then
11465 names_already_handled="$names_already_handled $name"
11466 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11467 eval value=\"\$HAVE_LIB$uppername\"
11468 if test -n "$value"; then
11469 if test "$value" = yes; then
11470 eval value=\"\$LIB$uppername\"
11471 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
11472 eval value=\"\$LTLIB$uppername\"
11473 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
11482 if test $use_additional = yes; then
11483 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11484 found_dir="$additional_libdir"
11485 found_so="$additional_libdir/lib$name.$shlibext"
11486 if test -f "$additional_libdir/lib$name.la"; then
11487 found_la="$additional_libdir/lib$name.la"
11490 if test -f "$additional_libdir/lib$name.$libext"; then
11491 found_dir="$additional_libdir"
11492 found_a="$additional_libdir/lib$name.$libext"
11493 if test -f "$additional_libdir/lib$name.la"; then
11494 found_la="$additional_libdir/lib$name.la"
11499 if test "X$found_dir" = "X"; then
11500 for x in $LDFLAGS $LTLIBIPT; do
11502 acl_save_prefix="$prefix"
11503 prefix="$acl_final_prefix"
11504 acl_save_exec_prefix="$exec_prefix"
11505 exec_prefix="$acl_final_exec_prefix"
11507 exec_prefix="$acl_save_exec_prefix"
11508 prefix="$acl_save_prefix"
11512 dir=`echo "X$x" | sed -e 's/^X-L//'`
11513 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11515 found_so="$dir/lib$name.$shlibext"
11516 if test -f "$dir/lib$name.la"; then
11517 found_la="$dir/lib$name.la"
11520 if test -f "$dir/lib$name.$libext"; then
11522 found_a="$dir/lib$name.$libext"
11523 if test -f "$dir/lib$name.la"; then
11524 found_la="$dir/lib$name.la"
11530 if test "X$found_dir" != "X"; then
11535 if test "X$found_dir" != "X"; then
11536 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11537 if test "X$found_so" != "X"; then
11538 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11539 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11542 for x in $ltrpathdirs; do
11543 if test "X$x" = "X$found_dir"; then
11548 if test -z "$haveit"; then
11549 ltrpathdirs="$ltrpathdirs $found_dir"
11551 if test "$hardcode_direct" = yes; then
11552 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11554 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11555 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11557 for x in $rpathdirs; do
11558 if test "X$x" = "X$found_dir"; then
11563 if test -z "$haveit"; then
11564 rpathdirs="$rpathdirs $found_dir"
11568 for x in $LDFLAGS $LIBIPT; do
11570 acl_save_prefix="$prefix"
11571 prefix="$acl_final_prefix"
11572 acl_save_exec_prefix="$exec_prefix"
11573 exec_prefix="$acl_final_exec_prefix"
11575 exec_prefix="$acl_save_exec_prefix"
11576 prefix="$acl_save_prefix"
11578 if test "X$x" = "X-L$found_dir"; then
11583 if test -z "$haveit"; then
11584 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11586 if test "$hardcode_minus_L" != no; then
11587 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11589 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11595 if test "X$found_a" != "X"; then
11596 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
11598 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11601 additional_includedir=
11602 case "$found_dir" in
11604 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11605 additional_includedir="$basedir/include"
11608 if test "X$additional_includedir" != "X"; then
11609 if test "X$additional_includedir" != "X/usr/include"; then
11611 if test "X$additional_includedir" = "X/usr/local/include"; then
11612 if test -n "$GCC"; then
11614 linux*) haveit=yes;;
11618 if test -z "$haveit"; then
11619 for x in $CPPFLAGS $INCIPT; do
11621 acl_save_prefix="$prefix"
11622 prefix="$acl_final_prefix"
11623 acl_save_exec_prefix="$exec_prefix"
11624 exec_prefix="$acl_final_exec_prefix"
11626 exec_prefix="$acl_save_exec_prefix"
11627 prefix="$acl_save_prefix"
11629 if test "X$x" = "X-I$additional_includedir"; then
11634 if test -z "$haveit"; then
11635 if test -d "$additional_includedir"; then
11636 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11642 if test -n "$found_la"; then
11643 save_libdir="$libdir"
11644 case "$found_la" in
11645 */* | *\\*) . "$found_la" ;;
11646 *) . "./$found_la" ;;
11648 libdir="$save_libdir"
11649 for dep in $dependency_libs; do
11652 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11653 if test "X$additional_libdir" != "X/usr/lib"; then
11655 if test "X$additional_libdir" = "X/usr/local/lib"; then
11656 if test -n "$GCC"; then
11658 linux*) haveit=yes;;
11662 if test -z "$haveit"; then
11664 for x in $LDFLAGS $LIBIPT; do
11666 acl_save_prefix="$prefix"
11667 prefix="$acl_final_prefix"
11668 acl_save_exec_prefix="$exec_prefix"
11669 exec_prefix="$acl_final_exec_prefix"
11671 exec_prefix="$acl_save_exec_prefix"
11672 prefix="$acl_save_prefix"
11674 if test "X$x" = "X-L$additional_libdir"; then
11679 if test -z "$haveit"; then
11680 if test -d "$additional_libdir"; then
11681 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11685 for x in $LDFLAGS $LTLIBIPT; do
11687 acl_save_prefix="$prefix"
11688 prefix="$acl_final_prefix"
11689 acl_save_exec_prefix="$exec_prefix"
11690 exec_prefix="$acl_final_exec_prefix"
11692 exec_prefix="$acl_save_exec_prefix"
11693 prefix="$acl_save_prefix"
11695 if test "X$x" = "X-L$additional_libdir"; then
11700 if test -z "$haveit"; then
11701 if test -d "$additional_libdir"; then
11702 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11709 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11710 if test "$enable_rpath" != no; then
11712 for x in $rpathdirs; do
11713 if test "X$x" = "X$dir"; then
11718 if test -z "$haveit"; then
11719 rpathdirs="$rpathdirs $dir"
11722 for x in $ltrpathdirs; do
11723 if test "X$x" = "X$dir"; then
11728 if test -z "$haveit"; then
11729 ltrpathdirs="$ltrpathdirs $dir"
11734 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11737 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11740 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
11741 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11747 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11748 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11754 if test "X$rpathdirs" != "X"; then
11755 if test -n "$hardcode_libdir_separator"; then
11757 for found_dir in $rpathdirs; do
11758 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11760 acl_save_libdir="$libdir"
11762 eval flag=\"$hardcode_libdir_flag_spec\"
11763 libdir="$acl_save_libdir"
11764 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11766 for found_dir in $rpathdirs; do
11767 acl_save_libdir="$libdir"
11768 libdir="$found_dir"
11769 eval flag=\"$hardcode_libdir_flag_spec\"
11770 libdir="$acl_save_libdir"
11771 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11775 if test "X$ltrpathdirs" != "X"; then
11776 for found_dir in $ltrpathdirs; do
11777 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11782 ac_save_CPPFLAGS="$CPPFLAGS"
11784 for element in $INCIPT; do
11786 for x in $CPPFLAGS; do
11788 acl_save_prefix="$prefix"
11789 prefix="$acl_final_prefix"
11790 acl_save_exec_prefix="$exec_prefix"
11791 exec_prefix="$acl_final_exec_prefix"
11793 exec_prefix="$acl_save_exec_prefix"
11794 prefix="$acl_save_prefix"
11796 if test "X$x" = "X$element"; then
11801 if test -z "$haveit"; then
11802 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11808 $as_echo_n "checking for libipt... " >&6; }
11809 if ${ac_cv_libipt+:} false; then :
11810 $as_echo_n "(cached) " >&6
11813 ac_save_LIBS="$LIBS"
11814 LIBS="$LIBS $LIBIPT"
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11817 #include "intel-pt.h"
11821 pt_insn_alloc_decoder (0);
11826 if ac_fn_c_try_link "$LINENO"; then :
11831 rm -f core conftest.err conftest.$ac_objext \
11832 conftest$ac_exeext conftest.$ac_ext
11833 LIBS="$ac_save_LIBS"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11837 $as_echo "$ac_cv_libipt" >&6; }
11838 if test "$ac_cv_libipt" = yes; then
11841 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11844 $as_echo_n "checking how to link with libipt... " >&6; }
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11846 $as_echo "$LIBIPT" >&6; }
11849 CPPFLAGS="$ac_save_CPPFLAGS"
11859 if test "$HAVE_LIBIPT" != yes; then
11860 if test "$with_intel_pt" = yes; then
11861 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11864 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11868 LIBS="$LIBS $LIBIPT"
11869 for ac_func in pt_insn_event
11871 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
11872 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
11873 cat >>confdefs.h <<_ACEOF
11874 #define HAVE_PT_INSN_EVENT 1
11880 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
11882 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
11884 cat >>confdefs.h <<_ACEOF
11885 #define HAVE_STRUCT_PT_INSN_ENABLED 1
11890 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
11892 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
11894 cat >>confdefs.h <<_ACEOF
11895 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
11905 # ------------------------- #
11906 # Checks for header files. #
11907 # ------------------------- #
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11910 $as_echo_n "checking for ANSI C header files... " >&6; }
11911 if ${ac_cv_header_stdc+:} false; then :
11912 $as_echo_n "(cached) " >&6
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11916 #include <stdlib.h>
11917 #include <stdarg.h>
11918 #include <string.h>
11929 if ac_fn_c_try_compile "$LINENO"; then :
11930 ac_cv_header_stdc=yes
11932 ac_cv_header_stdc=no
11934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 if test $ac_cv_header_stdc = yes; then
11937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940 #include <string.h>
11943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11944 $EGREP "memchr" >/dev/null 2>&1; then :
11947 ac_cv_header_stdc=no
11953 if test $ac_cv_header_stdc = yes; then
11954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11957 #include <stdlib.h>
11960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11961 $EGREP "free" >/dev/null 2>&1; then :
11964 ac_cv_header_stdc=no
11970 if test $ac_cv_header_stdc = yes; then
11971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11972 if test "$cross_compiling" = yes; then :
11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h. */
11978 #include <stdlib.h>
11979 #if ((' ' & 0x0FF) == 0x020)
11980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11983 # define ISLOWER(c) \
11984 (('a' <= (c) && (c) <= 'i') \
11985 || ('j' <= (c) && (c) <= 'r') \
11986 || ('s' <= (c) && (c) <= 'z'))
11987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11995 for (i = 0; i < 256; i++)
11996 if (XOR (islower (i), ISLOWER (i))
11997 || toupper (i) != TOUPPER (i))
12002 if ac_fn_c_try_run "$LINENO"; then :
12005 ac_cv_header_stdc=no
12007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12008 conftest.$ac_objext conftest.beam conftest.$ac_ext
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12014 $as_echo "$ac_cv_header_stdc" >&6; }
12015 if test $ac_cv_header_stdc = yes; then
12017 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12021 # elf_hp.h is for HP/UX 64-bit shared library support.
12022 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12023 thread_db.h linux/elf.h \
12024 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12025 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12026 sys/reg.h sys/debugreg.h sys/select.h \
12027 termios.h elf_hp.h \
12030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12031 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12033 cat >>confdefs.h <<_ACEOF
12034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12041 for ac_header in sys/user.h
12043 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12044 # include <sys/param.h>
12048 if test "x$ac_cv_header_sys_user_h" = xyes; then :
12049 cat >>confdefs.h <<_ACEOF
12050 #define HAVE_SYS_USER_H 1
12058 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
12060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12061 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12063 cat >>confdefs.h <<_ACEOF
12064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12071 for ac_header in term.h
12073 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12074 # include <curses.h>
12078 if test "x$ac_cv_header_term_h" = xyes; then :
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_TERM_H 1
12088 # ------------------------- #
12089 # Checks for declarations. #
12090 # ------------------------- #
12093 # Check for presence and size of long long.
12094 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12095 if test "x$ac_cv_type_long_long" = xyes; then :
12097 cat >>confdefs.h <<_ACEOF
12098 #define HAVE_LONG_LONG 1
12101 # The cast to long int works around a bug in the HP C Compiler
12102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12104 # This bug is HP SR number 8606223364.
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12106 $as_echo_n "checking size of long long... " >&6; }
12107 if ${ac_cv_sizeof_long_long+:} false; then :
12108 $as_echo_n "(cached) " >&6
12110 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12113 if test "$ac_cv_type_long_long" = yes; then
12114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12116 as_fn_error 77 "cannot compute sizeof (long long)
12117 See \`config.log' for more details" "$LINENO" 5; }
12119 ac_cv_sizeof_long_long=0
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12125 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12129 cat >>confdefs.h <<_ACEOF
12130 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12137 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12138 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12139 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12145 cat >>confdefs.h <<_ACEOF
12146 #define HAVE_DECL_BASENAME $ac_have_decl
12148 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12149 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12155 cat >>confdefs.h <<_ACEOF
12156 #define HAVE_DECL_FFS $ac_have_decl
12158 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12159 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12165 cat >>confdefs.h <<_ACEOF
12166 #define HAVE_DECL_ASPRINTF $ac_have_decl
12168 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12169 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12175 cat >>confdefs.h <<_ACEOF
12176 #define HAVE_DECL_VASPRINTF $ac_have_decl
12178 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12179 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12185 cat >>confdefs.h <<_ACEOF
12186 #define HAVE_DECL_SNPRINTF $ac_have_decl
12188 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12189 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12195 cat >>confdefs.h <<_ACEOF
12196 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12199 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12200 if test "x$ac_cv_have_decl_strtol" = xyes; then :
12206 cat >>confdefs.h <<_ACEOF
12207 #define HAVE_DECL_STRTOL $ac_have_decl
12209 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12210 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
12216 cat >>confdefs.h <<_ACEOF
12217 #define HAVE_DECL_STRTOUL $ac_have_decl
12219 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12220 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
12226 cat >>confdefs.h <<_ACEOF
12227 #define HAVE_DECL_STRTOLL $ac_have_decl
12229 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12230 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
12236 cat >>confdefs.h <<_ACEOF
12237 #define HAVE_DECL_STRTOULL $ac_have_decl
12240 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12241 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12247 cat >>confdefs.h <<_ACEOF
12248 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12253 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12254 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12260 cat >>confdefs.h <<_ACEOF
12261 #define HAVE_DECL_SNPRINTF $ac_have_decl
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12266 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12267 if ${am_cv_val_LC_MESSAGES+:} false; then :
12268 $as_echo_n "(cached) " >&6
12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h. */
12272 #include <locale.h>
12281 if ac_fn_c_try_link "$LINENO"; then :
12282 am_cv_val_LC_MESSAGES=yes
12284 am_cv_val_LC_MESSAGES=no
12286 rm -f core conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12290 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12291 if test $am_cv_val_LC_MESSAGES = yes; then
12293 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12298 # ----------------------- #
12299 # Checks for structures. #
12300 # ----------------------- #
12302 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12303 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
12305 cat >>confdefs.h <<_ACEOF
12306 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12311 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12312 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
12314 cat >>confdefs.h <<_ACEOF
12315 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12322 # ------------------ #
12323 # Checks for types. #
12324 # ------------------ #
12326 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12327 #include <sys/socket.h>
12330 if test "x$ac_cv_type_socklen_t" = xyes; then :
12332 cat >>confdefs.h <<_ACEOF
12333 #define HAVE_SOCKLEN_T 1
12340 # ------------------------------------- #
12341 # Checks for compiler characteristics. #
12342 # ------------------------------------- #
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12345 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12346 if ${ac_cv_c_const+:} false; then :
12347 $as_echo_n "(cached) " >&6
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12356 #ifndef __cplusplus
12357 /* Ultrix mips cc rejects this sort of thing. */
12358 typedef int charset[2];
12359 const charset cs = { 0, 0 };
12360 /* SunOS 4.1.1 cc rejects this. */
12361 char const *const *pcpcc;
12363 /* NEC SVR4.0.2 mips cc rejects this. */
12364 struct point {int x, y;};
12365 static struct point const zero = {0,0};
12366 /* AIX XL C 1.02.0.0 rejects this.
12367 It does not let you subtract one const X* pointer from another in
12368 an arm of an if-expression whose if-part is not a constant
12370 const char *g = "string";
12371 pcpcc = &g + (g ? g-g : 0);
12372 /* HPUX 7.0 cc rejects these. */
12374 ppc = (char**) pcpcc;
12375 pcpcc = (char const *const *) ppc;
12376 { /* SCO 3.2v4 cc rejects this sort of thing. */
12379 char const *s = 0 ? (char *) 0 : (char const *) 0;
12384 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12385 int x[] = {25, 17};
12386 const int *foo = &x[0];
12389 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12390 typedef const int *iptr;
12394 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12395 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12396 struct s { int j; const int *ap[3]; } bx;
12397 struct s *b = &bx; b->j = 5;
12399 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12400 const int foo = 10;
12401 if (!foo) return 0;
12403 return !cs[0] && !zero.x;
12410 if ac_fn_c_try_compile "$LINENO"; then :
12415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12418 $as_echo "$ac_cv_c_const" >&6; }
12419 if test $ac_cv_c_const = no; then
12421 $as_echo "#define const /**/" >>confdefs.h
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12426 $as_echo_n "checking for inline... " >&6; }
12427 if ${ac_cv_c_inline+:} false; then :
12428 $as_echo_n "(cached) " >&6
12431 for ac_kw in inline __inline__ __inline; do
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434 #ifndef __cplusplus
12436 static $ac_kw foo_t static_foo () {return 0; }
12437 $ac_kw foo_t foo () {return 0; }
12441 if ac_fn_c_try_compile "$LINENO"; then :
12442 ac_cv_c_inline=$ac_kw
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445 test "$ac_cv_c_inline" != no && break
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12450 $as_echo "$ac_cv_c_inline" >&6; }
12452 case $ac_cv_c_inline in
12455 case $ac_cv_c_inline in
12457 *) ac_val=$ac_cv_c_inline;;
12459 cat >>confdefs.h <<_ACEOF
12460 #ifndef __cplusplus
12461 #define inline $ac_val
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12468 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12469 if ${ac_cv_c_bigendian+:} false; then :
12470 $as_echo_n "(cached) " >&6
12472 ac_cv_c_bigendian=unknown
12473 # See if we're dealing with a universal compiler.
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12476 #ifndef __APPLE_CC__
12477 not a universal capable compiler
12482 if ac_fn_c_try_compile "$LINENO"; then :
12484 # Check for potential -arch flags. It is not universal unless
12485 # there are at least two -arch flags with different values.
12488 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12489 if test -n "$ac_prev"; then
12491 i?86 | x86_64 | ppc | ppc64)
12492 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12495 ac_cv_c_bigendian=universal
12501 elif test "x$ac_word" = "x-arch"; then
12506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507 if test $ac_cv_c_bigendian = unknown; then
12508 # See if sys/param.h defines the BYTE_ORDER macro.
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12511 #include <sys/types.h>
12512 #include <sys/param.h>
12517 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12518 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12520 bogus endian macros
12527 if ac_fn_c_try_compile "$LINENO"; then :
12528 # It does; now see whether it defined to BIG_ENDIAN or not.
12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12531 #include <sys/types.h>
12532 #include <sys/param.h>
12537 #if BYTE_ORDER != BIG_ENDIAN
12545 if ac_fn_c_try_compile "$LINENO"; then :
12546 ac_cv_c_bigendian=yes
12548 ac_cv_c_bigendian=no
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12554 if test $ac_cv_c_bigendian = unknown; then
12555 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12558 #include <limits.h>
12563 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12564 bogus endian macros
12571 if ac_fn_c_try_compile "$LINENO"; then :
12572 # It does; now see whether it defined to _BIG_ENDIAN or not.
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575 #include <limits.h>
12580 #ifndef _BIG_ENDIAN
12588 if ac_fn_c_try_compile "$LINENO"; then :
12589 ac_cv_c_bigendian=yes
12591 ac_cv_c_bigendian=no
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12597 if test $ac_cv_c_bigendian = unknown; then
12598 # Compile a test program.
12599 if test "$cross_compiling" = yes; then :
12600 # Try to guess by grepping values from an object file.
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12603 short int ascii_mm[] =
12604 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12605 short int ascii_ii[] =
12606 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12607 int use_ascii (int i) {
12608 return ascii_mm[i] + ascii_ii[i];
12610 short int ebcdic_ii[] =
12611 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12612 short int ebcdic_mm[] =
12613 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12614 int use_ebcdic (int i) {
12615 return ebcdic_mm[i] + ebcdic_ii[i];
12622 return use_ascii (foo) == use_ebcdic (foo);
12627 if ac_fn_c_try_compile "$LINENO"; then :
12628 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12629 ac_cv_c_bigendian=yes
12631 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12632 if test "$ac_cv_c_bigendian" = unknown; then
12633 ac_cv_c_bigendian=no
12635 # finding both strings is unlikely to happen, but who knows?
12636 ac_cv_c_bigendian=unknown
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12644 $ac_includes_default
12649 /* Are we little or big endian? From Harbison&Steele. */
12653 char c[sizeof (long int)];
12656 return u.c[sizeof (long int) - 1] == 1;
12662 if ac_fn_c_try_run "$LINENO"; then :
12663 ac_cv_c_bigendian=no
12665 ac_cv_c_bigendian=yes
12667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12668 conftest.$ac_objext conftest.beam conftest.$ac_ext
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12674 $as_echo "$ac_cv_c_bigendian" >&6; }
12675 case $ac_cv_c_bigendian in #(
12677 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12683 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12687 as_fn_error $? "unknown endianness
12688 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12692 # ------------------------------ #
12693 # Checks for library functions. #
12694 # ------------------------------ #
12699 for ac_header in $ac_header_list
12701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12702 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12704 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12705 cat >>confdefs.h <<_ACEOF
12706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12720 for ac_func in getpagesize
12722 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12723 if test "x$ac_cv_func_getpagesize" = xyes; then :
12724 cat >>confdefs.h <<_ACEOF
12725 #define HAVE_GETPAGESIZE 1
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12732 $as_echo_n "checking for working mmap... " >&6; }
12733 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12734 $as_echo_n "(cached) " >&6
12736 if test "$cross_compiling" = yes; then :
12737 ac_cv_func_mmap_fixed_mapped=no
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12741 $ac_includes_default
12742 /* malloc might have been renamed as rpl_malloc. */
12745 /* Thanks to Mike Haertel and Jim Avera for this test.
12746 Here is a matrix of mmap possibilities:
12747 mmap private not fixed
12748 mmap private fixed at somewhere currently unmapped
12749 mmap private fixed at somewhere already mapped
12750 mmap shared not fixed
12751 mmap shared fixed at somewhere currently unmapped
12752 mmap shared fixed at somewhere already mapped
12753 For private mappings, we should verify that changes cannot be read()
12754 back from the file, nor mmap's back from the file at a different
12755 address. (There have been systems where private was not correctly
12756 implemented like the infamous i386 svr4.0, and systems where the
12757 VM page cache was not coherent with the file system buffer cache
12758 like early versions of FreeBSD and possibly contemporary NetBSD.)
12759 For shared mappings, we should conversely verify that changes get
12760 propagated back to all the places they're supposed to be.
12762 Grep wants private fixed already mapped.
12763 The main things grep needs to know about mmap are:
12764 * does it exist and is it safe to write into the mmap'd area
12765 * how to use it (BSD variants) */
12768 #include <sys/mman.h>
12770 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12774 /* This mess was copied from the GNU getpagesize.h. */
12775 #ifndef HAVE_GETPAGESIZE
12776 # ifdef _SC_PAGESIZE
12777 # define getpagesize() sysconf(_SC_PAGESIZE)
12778 # else /* no _SC_PAGESIZE */
12779 # ifdef HAVE_SYS_PARAM_H
12780 # include <sys/param.h>
12781 # ifdef EXEC_PAGESIZE
12782 # define getpagesize() EXEC_PAGESIZE
12783 # else /* no EXEC_PAGESIZE */
12785 # define getpagesize() NBPG * CLSIZE
12788 # endif /* no CLSIZE */
12789 # else /* no NBPG */
12791 # define getpagesize() NBPC
12792 # else /* no NBPC */
12794 # define getpagesize() PAGESIZE
12795 # endif /* PAGESIZE */
12796 # endif /* no NBPC */
12797 # endif /* no NBPG */
12798 # endif /* no EXEC_PAGESIZE */
12799 # else /* no HAVE_SYS_PARAM_H */
12800 # define getpagesize() 8192 /* punt totally */
12801 # endif /* no HAVE_SYS_PARAM_H */
12802 # endif /* no _SC_PAGESIZE */
12804 #endif /* no HAVE_GETPAGESIZE */
12809 char *data, *data2, *data3;
12810 const char *cdata2;
12814 pagesize = getpagesize ();
12816 /* First, make a file with some known garbage in it. */
12817 data = (char *) malloc (pagesize);
12820 for (i = 0; i < pagesize; ++i)
12821 *(data + i) = rand ();
12823 fd = creat ("conftest.mmap", 0600);
12826 if (write (fd, data, pagesize) != pagesize)
12830 /* Next, check that the tail of a page is zero-filled. File must have
12831 non-zero length, otherwise we risk SIGBUS for entire page. */
12832 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12836 if (write (fd2, cdata2, 1) != 1)
12838 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12839 if (data2 == MAP_FAILED)
12841 for (i = 0; i < pagesize; ++i)
12845 if (munmap (data2, pagesize))
12848 /* Next, try to mmap the file at a fixed address which already has
12849 something else allocated at it. If we can, also make sure that
12850 we see the same garbage. */
12851 fd = open ("conftest.mmap", O_RDWR);
12854 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12855 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12857 for (i = 0; i < pagesize; ++i)
12858 if (*(data + i) != *(data2 + i))
12861 /* Finally, make sure that changes to the mapped area do not
12862 percolate back to the file as seen by read(). (This is a bug on
12863 some variants of i386 svr4.0.) */
12864 for (i = 0; i < pagesize; ++i)
12865 *(data2 + i) = *(data2 + i) + 1;
12866 data3 = (char *) malloc (pagesize);
12869 if (read (fd, data3, pagesize) != pagesize)
12871 for (i = 0; i < pagesize; ++i)
12872 if (*(data + i) != *(data3 + i))
12878 if ac_fn_c_try_run "$LINENO"; then :
12879 ac_cv_func_mmap_fixed_mapped=yes
12881 ac_cv_func_mmap_fixed_mapped=no
12883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12884 conftest.$ac_objext conftest.beam conftest.$ac_ext
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12889 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12890 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12892 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12895 rm -f conftest.mmap conftest.txt
12897 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12898 if test "x$ac_cv_type_pid_t" = xyes; then :
12902 cat >>confdefs.h <<_ACEOF
12908 for ac_header in vfork.h
12910 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12911 if test "x$ac_cv_header_vfork_h" = xyes; then :
12912 cat >>confdefs.h <<_ACEOF
12913 #define HAVE_VFORK_H 1
12920 for ac_func in fork vfork
12922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12923 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12924 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12925 cat >>confdefs.h <<_ACEOF
12926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12932 if test "x$ac_cv_func_fork" = xyes; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12934 $as_echo_n "checking for working fork... " >&6; }
12935 if ${ac_cv_func_fork_works+:} false; then :
12936 $as_echo_n "(cached) " >&6
12938 if test "$cross_compiling" = yes; then :
12939 ac_cv_func_fork_works=cross
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12943 $ac_includes_default
12948 /* By Ruediger Kuhlmann. */
12949 return fork () < 0;
12955 if ac_fn_c_try_run "$LINENO"; then :
12956 ac_cv_func_fork_works=yes
12958 ac_cv_func_fork_works=no
12960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12961 conftest.$ac_objext conftest.beam conftest.$ac_ext
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12966 $as_echo "$ac_cv_func_fork_works" >&6; }
12969 ac_cv_func_fork_works=$ac_cv_func_fork
12971 if test "x$ac_cv_func_fork_works" = xcross; then
12973 *-*-amigaos* | *-*-msdosdjgpp*)
12974 # Override, as these systems have only a dummy fork() stub
12975 ac_cv_func_fork_works=no
12978 ac_cv_func_fork_works=yes
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12982 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12984 ac_cv_func_vfork_works=$ac_cv_func_vfork
12985 if test "x$ac_cv_func_vfork" = xyes; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12987 $as_echo_n "checking for working vfork... " >&6; }
12988 if ${ac_cv_func_vfork_works+:} false; then :
12989 $as_echo_n "(cached) " >&6
12991 if test "$cross_compiling" = yes; then :
12992 ac_cv_func_vfork_works=cross
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12996 /* Thanks to Paul Eggert for this test. */
12997 $ac_includes_default
12998 #include <sys/wait.h>
12999 #ifdef HAVE_VFORK_H
13000 # include <vfork.h>
13002 /* On some sparc systems, changes by the child to local and incoming
13003 argument registers are propagated back to the parent. The compiler
13004 is told about this with #include <vfork.h>, but some compilers
13005 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13006 static variable whose address is put into a register that is
13007 clobbered by the vfork. */
13010 sparc_address_test (int arg)
13012 sparc_address_test (arg) int arg;
13015 static pid_t child;
13033 pid_t parent = getpid ();
13036 sparc_address_test (0);
13041 /* Here is another test for sparc vfork register problems. This
13042 test uses lots of local variables, at least as many local
13043 variables as main has allocated so far including compiler
13044 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13045 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13046 reuse the register of parent for one of the local variables,
13047 since it will think that parent can't possibly be used any more
13048 in this routine. Assigning to the local variable will thus
13049 munge parent in the parent process. */
13051 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13052 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13053 /* Convince the compiler that p..p7 are live; otherwise, it might
13054 use the same hardware register for all 8 local variables. */
13055 if (p != p1 || p != p2 || p != p3 || p != p4
13056 || p != p5 || p != p6 || p != p7)
13059 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13060 from child file descriptors. If the child closes a descriptor
13061 before it execs or exits, this munges the parent's descriptor
13062 as well. Test for this by closing stdout in the child. */
13063 _exit(close(fileno(stdout)) != 0);
13068 while (wait(&status) != child)
13071 /* Was there some problem with vforking? */
13074 /* Did the child fail? (This shouldn't happen.) */
13077 /* Did the vfork/compiler bug occur? */
13078 || parent != getpid()
13080 /* Did the file descriptor bug occur? */
13081 || fstat(fileno(stdout), &st) != 0
13086 if ac_fn_c_try_run "$LINENO"; then :
13087 ac_cv_func_vfork_works=yes
13089 ac_cv_func_vfork_works=no
13091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13092 conftest.$ac_objext conftest.beam conftest.$ac_ext
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13097 $as_echo "$ac_cv_func_vfork_works" >&6; }
13100 if test "x$ac_cv_func_fork_works" = xcross; then
13101 ac_cv_func_vfork_works=$ac_cv_func_vfork
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13103 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13106 if test "x$ac_cv_func_vfork_works" = xyes; then
13108 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13112 $as_echo "#define vfork fork" >>confdefs.h
13115 if test "x$ac_cv_func_fork_works" = xyes; then
13117 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13121 for ac_func in getauxval getrusage getuid getgid \
13122 pipe poll pread pread64 pwrite resize_term \
13123 sbrk getpgid setpgid setpgrp setsid \
13124 sigaction sigprocmask sigsetmask socketpair \
13125 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13126 setrlimit getrlimit posix_madvise waitpid \
13127 ptrace64 sigaltstack setns use_default_colors
13129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13131 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13132 cat >>confdefs.h <<_ACEOF
13133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13141 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13142 if ${am_cv_langinfo_codeset+:} false; then :
13143 $as_echo_n "(cached) " >&6
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147 #include <langinfo.h>
13151 char* cs = nl_langinfo(CODESET);
13156 if ac_fn_c_try_link "$LINENO"; then :
13157 am_cv_langinfo_codeset=yes
13159 am_cv_langinfo_codeset=no
13161 rm -f core conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13166 $as_echo "$am_cv_langinfo_codeset" >&6; }
13167 if test $am_cv_langinfo_codeset = yes; then
13169 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13173 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13174 if test "x$ac_cv_type_size_t" = xyes; then :
13178 cat >>confdefs.h <<_ACEOF
13179 #define size_t unsigned int
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13186 $as_echo_n "checking for ANSI C header files... " >&6; }
13187 if ${ac_cv_header_stdc+:} false; then :
13188 $as_echo_n "(cached) " >&6
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13192 #include <stdlib.h>
13193 #include <stdarg.h>
13194 #include <string.h>
13205 if ac_fn_c_try_compile "$LINENO"; then :
13206 ac_cv_header_stdc=yes
13208 ac_cv_header_stdc=no
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 if test $ac_cv_header_stdc = yes; then
13213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13216 #include <string.h>
13219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13220 $EGREP "memchr" >/dev/null 2>&1; then :
13223 ac_cv_header_stdc=no
13229 if test $ac_cv_header_stdc = yes; then
13230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13233 #include <stdlib.h>
13236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13237 $EGREP "free" >/dev/null 2>&1; then :
13240 ac_cv_header_stdc=no
13246 if test $ac_cv_header_stdc = yes; then
13247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13248 if test "$cross_compiling" = yes; then :
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13254 #include <stdlib.h>
13255 #if ((' ' & 0x0FF) == 0x020)
13256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13259 # define ISLOWER(c) \
13260 (('a' <= (c) && (c) <= 'i') \
13261 || ('j' <= (c) && (c) <= 'r') \
13262 || ('s' <= (c) && (c) <= 'z'))
13263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13271 for (i = 0; i < 256; i++)
13272 if (XOR (islower (i), ISLOWER (i))
13273 || toupper (i) != TOUPPER (i))
13278 if ac_fn_c_try_run "$LINENO"; then :
13281 ac_cv_header_stdc=no
13283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13284 conftest.$ac_objext conftest.beam conftest.$ac_ext
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13290 $as_echo "$ac_cv_header_stdc" >&6; }
13291 if test $ac_cv_header_stdc = yes; then
13293 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13297 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13298 # for constant arguments. Useless!
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13300 $as_echo_n "checking for working alloca.h... " >&6; }
13301 if ${ac_cv_working_alloca_h+:} false; then :
13302 $as_echo_n "(cached) " >&6
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306 #include <alloca.h>
13310 char *p = (char *) alloca (2 * sizeof (int));
13316 if ac_fn_c_try_link "$LINENO"; then :
13317 ac_cv_working_alloca_h=yes
13319 ac_cv_working_alloca_h=no
13321 rm -f core conftest.err conftest.$ac_objext \
13322 conftest$ac_exeext conftest.$ac_ext
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13325 $as_echo "$ac_cv_working_alloca_h" >&6; }
13326 if test $ac_cv_working_alloca_h = yes; then
13328 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13333 $as_echo_n "checking for alloca... " >&6; }
13334 if ${ac_cv_func_alloca_works+:} false; then :
13335 $as_echo_n "(cached) " >&6
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13340 # define alloca __builtin_alloca
13343 # include <malloc.h>
13344 # define alloca _alloca
13346 # ifdef HAVE_ALLOCA_H
13347 # include <alloca.h>
13352 # ifndef alloca /* predefined by HP cc +Olibcalls */
13353 void *alloca (size_t);
13363 char *p = (char *) alloca (1);
13369 if ac_fn_c_try_link "$LINENO"; then :
13370 ac_cv_func_alloca_works=yes
13372 ac_cv_func_alloca_works=no
13374 rm -f core conftest.err conftest.$ac_objext \
13375 conftest$ac_exeext conftest.$ac_ext
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13378 $as_echo "$ac_cv_func_alloca_works" >&6; }
13380 if test $ac_cv_func_alloca_works = yes; then
13382 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13385 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13386 # that cause trouble. Some versions do not even contain alloca or
13387 # contain a buggy version. If you still want to use their alloca,
13388 # use ar to extract alloca.o from them instead of compiling alloca.c.
13390 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13392 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13396 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13397 if ${ac_cv_os_cray+:} false; then :
13398 $as_echo_n "(cached) " >&6
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402 #if defined CRAY && ! defined CRAY2
13409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13410 $EGREP "webecray" >/dev/null 2>&1; then :
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13419 $as_echo "$ac_cv_os_cray" >&6; }
13420 if test $ac_cv_os_cray = yes; then
13421 for ac_func in _getb67 GETB67 getb67; do
13422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13424 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13426 cat >>confdefs.h <<_ACEOF
13427 #define CRAY_STACKSEG_END $ac_func
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13437 $as_echo_n "checking stack direction for C alloca... " >&6; }
13438 if ${ac_cv_c_stack_direction+:} false; then :
13439 $as_echo_n "(cached) " >&6
13441 if test "$cross_compiling" = yes; then :
13442 ac_cv_c_stack_direction=0
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13446 $ac_includes_default
13448 find_stack_direction (int *addr, int depth)
13450 int dir, dummy = 0;
13453 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13454 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13455 return dir + dummy;
13459 main (int argc, char **argv)
13461 return find_stack_direction (0, argc + !argv + 20) < 0;
13464 if ac_fn_c_try_run "$LINENO"; then :
13465 ac_cv_c_stack_direction=1
13467 ac_cv_c_stack_direction=-1
13469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13470 conftest.$ac_objext conftest.beam conftest.$ac_ext
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13475 $as_echo "$ac_cv_c_stack_direction" >&6; }
13476 cat >>confdefs.h <<_ACEOF
13477 #define STACK_DIRECTION $ac_cv_c_stack_direction
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13486 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13487 if ${am_cv_langinfo_codeset+:} false; then :
13488 $as_echo_n "(cached) " >&6
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h. */
13492 #include <langinfo.h>
13496 char* cs = nl_langinfo(CODESET);
13501 if ac_fn_c_try_link "$LINENO"; then :
13502 am_cv_langinfo_codeset=yes
13504 am_cv_langinfo_codeset=no
13506 rm -f core conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13511 $as_echo "$am_cv_langinfo_codeset" >&6; }
13512 if test $am_cv_langinfo_codeset = yes; then
13514 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13519 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
13521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13522 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13523 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13524 cat >>confdefs.h <<_ACEOF
13525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13533 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
13535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13537 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13538 cat >>confdefs.h <<_ACEOF
13539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13546 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13547 if test "x$ac_cv_have_decl_strerror" = xyes; then :
13553 cat >>confdefs.h <<_ACEOF
13554 #define HAVE_DECL_STRERROR $ac_have_decl
13556 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13557 if test "x$ac_cv_have_decl_strstr" = xyes; then :
13563 cat >>confdefs.h <<_ACEOF
13564 #define HAVE_DECL_STRSTR $ac_have_decl
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13569 $as_echo_n "checking for sigsetjmp... " >&6; }
13570 if ${gdb_cv_func_sigsetjmp+:} false; then :
13571 $as_echo_n "(cached) " >&6
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13576 #include <setjmp.h>
13581 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13586 if ac_fn_c_try_compile "$LINENO"; then :
13587 gdb_cv_func_sigsetjmp=yes
13589 gdb_cv_func_sigsetjmp=no
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13594 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13595 if test $gdb_cv_func_sigsetjmp = yes; then
13597 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13602 # Check the return and argument types of ptrace.
13605 for ac_header in sys/ptrace.h ptrace.h
13607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13608 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13610 cat >>confdefs.h <<_ACEOF
13611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13619 gdb_ptrace_headers='
13620 #include <sys/types.h>
13621 #if HAVE_SYS_PTRACE_H
13622 # include <sys/ptrace.h>
13625 # include <unistd.h>
13628 # There is no point in checking if we don't have a prototype.
13629 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13631 if test "x$ac_cv_have_decl_ptrace" = xyes; then :
13637 cat >>confdefs.h <<_ACEOF
13638 #define HAVE_DECL_PTRACE $ac_have_decl
13640 if test $ac_have_decl = 1; then :
13644 : ${gdb_cv_func_ptrace_ret='int'}
13645 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13649 # Check return type. Varargs (used on GNU/Linux) conflict with the
13650 # empty argument list, so check for that explicitly.
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13652 $as_echo_n "checking return type of ptrace... " >&6; }
13653 if ${gdb_cv_func_ptrace_ret+:} false; then :
13654 $as_echo_n "(cached) " >&6
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13658 $gdb_ptrace_headers
13662 extern long ptrace (enum __ptrace_request, ...);
13667 if ac_fn_c_try_compile "$LINENO"; then :
13668 gdb_cv_func_ptrace_ret='long'
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13672 $gdb_ptrace_headers
13676 extern int ptrace ();
13681 if ac_fn_c_try_compile "$LINENO"; then :
13682 gdb_cv_func_ptrace_ret='int'
13684 gdb_cv_func_ptrace_ret='long'
13686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13691 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13693 cat >>confdefs.h <<_ACEOF
13694 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13697 # Check argument types.
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13699 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13700 if ${gdb_cv_func_ptrace_args+:} false; then :
13701 $as_echo_n "(cached) " >&6
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13706 $gdb_ptrace_headers
13710 extern long ptrace (enum __ptrace_request, ...);
13715 if ac_fn_c_try_compile "$LINENO"; then :
13716 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
13719 for gdb_arg1 in 'int' 'long'; do
13720 for gdb_arg2 in 'pid_t' 'int' 'long'; do
13721 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13722 for gdb_arg4 in 'int' 'long' 'void *'; do
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13725 $gdb_ptrace_headers
13730 extern $gdb_cv_func_ptrace_ret
13731 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13737 if ac_fn_c_try_compile "$LINENO"; then :
13738 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742 for gdb_arg5 in 'int *' 'int' 'long'; do
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13745 $gdb_ptrace_headers
13750 extern $gdb_cv_func_ptrace_ret
13751 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13757 if ac_fn_c_try_compile "$LINENO"; then :
13759 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768 # Provide a safe default value.
13769 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13775 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13776 ac_save_IFS=$IFS; IFS=','
13777 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13781 cat >>confdefs.h <<_ACEOF
13782 #define PTRACE_TYPE_ARG1 $1
13786 cat >>confdefs.h <<_ACEOF
13787 #define PTRACE_TYPE_ARG3 $3
13791 cat >>confdefs.h <<_ACEOF
13792 #define PTRACE_TYPE_ARG4 $4
13795 if test -n "$5"; then
13797 cat >>confdefs.h <<_ACEOF
13798 #define PTRACE_TYPE_ARG5 $5
13804 if test "$cross_compiling" = no; then
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13806 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13807 if ${ac_cv_func_setpgrp_void+:} false; then :
13808 $as_echo_n "(cached) " >&6
13810 if test "$cross_compiling" = yes; then :
13811 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13815 $ac_includes_default
13819 /* If this system has a BSD-style setpgrp which takes arguments,
13820 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13821 exit successfully. */
13822 return setpgrp (1,1) != -1;
13827 if ac_fn_c_try_run "$LINENO"; then :
13828 ac_cv_func_setpgrp_void=no
13830 ac_cv_func_setpgrp_void=yes
13832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13833 conftest.$ac_objext conftest.beam conftest.$ac_ext
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13838 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13839 if test $ac_cv_func_setpgrp_void = yes; then
13841 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13847 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13848 if ${ac_cv_func_setpgrp_void+:} false; then :
13849 $as_echo_n "(cached) " >&6
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13854 #include <unistd.h>
13860 if (setpgrp(1,1) == -1)
13869 if ac_fn_c_try_compile "$LINENO"; then :
13870 ac_cv_func_setpgrp_void=no
13872 ac_cv_func_setpgrp_void=yes
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13877 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13878 if test $ac_cv_func_setpgrp_void = yes; then
13879 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13884 # Assume we'll default to using the included libiberty regex.
13885 gdb_use_included_regex=yes
13887 # However, if the system regex is GNU regex, then default to *not*
13888 # using the included regex.
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13890 $as_echo_n "checking for GNU regex... " >&6; }
13891 if ${gdb_cv_have_gnu_regex+:} false; then :
13892 $as_echo_n "(cached) " >&6
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13896 #include <gnu-versions.h>
13900 #define REGEX_INTERFACE_VERSION 1
13901 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13902 # error "Version mismatch"
13908 if ac_fn_c_try_compile "$LINENO"; then :
13909 gdb_cv_have_gnu_regex=yes
13911 gdb_cv_have_gnu_regex=no
13913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13916 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13917 if test $gdb_cv_have_gnu_regex = yes; then
13918 gdb_use_included_regex=no
13922 # Check whether --with-included-regex was given.
13923 if test "${with_included_regex+set}" = set; then :
13924 withval=$with_included_regex; gdb_with_regex=$withval
13926 gdb_with_regex=$gdb_use_included_regex
13929 if test "$gdb_with_regex" = yes; then
13931 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13935 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13936 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13937 #include <sys/proc.h>
13940 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
13942 cat >>confdefs.h <<_ACEOF
13943 #define HAVE_STRUCT_THREAD_TD_PCB 1
13950 # See if <sys/lwp.h> defines `struct lwp`.
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13952 $as_echo_n "checking for struct lwp... " >&6; }
13953 if ${gdb_cv_struct_lwp+:} false; then :
13954 $as_echo_n "(cached) " >&6
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13958 #include <sys/param.h>
13960 #include <sys/lwp.h>
13969 if ac_fn_c_try_compile "$LINENO"; then :
13970 gdb_cv_struct_lwp=yes
13972 gdb_cv_struct_lwp=no
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13977 $as_echo "$gdb_cv_struct_lwp" >&6; }
13978 if test $gdb_cv_struct_lwp = yes; then
13980 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13984 # See if <machine/reg.h> degines `struct reg'.
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13986 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13987 if ${gdb_cv_struct_reg+:} false; then :
13988 $as_echo_n "(cached) " >&6
13990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991 /* end confdefs.h. */
13992 #include <sys/types.h>
13993 #include <machine/reg.h>
14002 if ac_fn_c_try_compile "$LINENO"; then :
14003 gdb_cv_struct_reg=yes
14005 gdb_cv_struct_reg=no
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14010 $as_echo "$gdb_cv_struct_reg" >&6; }
14011 if test $gdb_cv_struct_reg = yes; then
14013 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14017 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14018 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14019 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14020 #include <machine/reg.h>
14022 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
14024 cat >>confdefs.h <<_ACEOF
14025 #define HAVE_STRUCT_REG_R_FS 1
14030 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14031 #include <machine/reg.h>
14033 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
14035 cat >>confdefs.h <<_ACEOF
14036 #define HAVE_STRUCT_REG_R_GS 1
14043 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14044 # Older amd64 Linux's don't have the fs_base and gs_base members of
14045 # `struct user_regs_struct'.
14046 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>
14047 #include <sys/user.h>
14049 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
14051 cat >>confdefs.h <<_ACEOF
14052 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14057 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>
14058 #include <sys/user.h>
14060 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
14062 cat >>confdefs.h <<_ACEOF
14063 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14070 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14072 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14073 if ${gdb_cv_have_ptrace_getregs+:} false; then :
14074 $as_echo_n "(cached) " >&6
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14078 #include <sys/ptrace.h>
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088 gdb_cv_have_ptrace_getregs=yes
14090 gdb_cv_have_ptrace_getregs=no
14092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14096 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14097 if test $gdb_cv_have_ptrace_getregs = yes; then
14099 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14103 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14105 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14106 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
14107 $as_echo_n "(cached) " >&6
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111 #include <sys/ptrace.h>
14120 if ac_fn_c_try_compile "$LINENO"; then :
14121 gdb_cv_have_ptrace_getfpxregs=yes
14123 gdb_cv_have_ptrace_getfpxregs=no
14125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14129 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14130 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14132 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14136 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14138 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14139 if ${gdb_cv_have_pt_getdbregs+:} false; then :
14140 $as_echo_n "(cached) " >&6
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14144 #include <sys/types.h>
14145 #include <sys/ptrace.h>
14154 if ac_fn_c_try_compile "$LINENO"; then :
14155 gdb_cv_have_pt_getdbregs=yes
14157 gdb_cv_have_pt_getdbregs=no
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14163 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14164 if test $gdb_cv_have_pt_getdbregs = yes; then
14166 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14170 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14172 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14173 if ${gdb_cv_have_pt_getxmmregs+:} false; then :
14174 $as_echo_n "(cached) " >&6
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14178 #include <sys/types.h>
14179 #include <sys/ptrace.h>
14188 if ac_fn_c_try_compile "$LINENO"; then :
14189 gdb_cv_have_pt_getxmmregs=yes
14191 gdb_cv_have_pt_getxmmregs=no
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14197 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14198 if test $gdb_cv_have_pt_getxmmregs = yes; then
14200 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14204 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14205 # Older FreeBSD versions don't have the pl_tdname member of
14206 # `struct ptrace_lwpinfo'.
14207 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14209 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
14211 cat >>confdefs.h <<_ACEOF
14212 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14219 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14220 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14222 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>
14224 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
14226 cat >>confdefs.h <<_ACEOF
14227 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14234 if test "$ac_cv_header_sys_procfs_h" = yes; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14236 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14237 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
14238 $as_echo_n "(cached) " >&6
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14244 /* Needed for new procfs interface on sparc-solaris. */
14245 #define _STRUCTURED_PROC 1
14246 #include <sys/procfs.h>
14255 if ac_fn_c_try_compile "$LINENO"; then :
14256 bfd_cv_have_sys_procfs_type_gregset_t=yes
14258 bfd_cv_have_sys_procfs_type_gregset_t=no
14261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14266 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14270 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14273 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14274 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
14275 $as_echo_n "(cached) " >&6
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14281 /* Needed for new procfs interface on sparc-solaris. */
14282 #define _STRUCTURED_PROC 1
14283 #include <sys/procfs.h>
14292 if ac_fn_c_try_compile "$LINENO"; then :
14293 bfd_cv_have_sys_procfs_type_fpregset_t=yes
14295 bfd_cv_have_sys_procfs_type_fpregset_t=no
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14303 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14307 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14310 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14311 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
14312 $as_echo_n "(cached) " >&6
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14318 /* Needed for new procfs interface on sparc-solaris. */
14319 #define _STRUCTURED_PROC 1
14320 #include <sys/procfs.h>
14329 if ac_fn_c_try_compile "$LINENO"; then :
14330 bfd_cv_have_sys_procfs_type_prgregset_t=yes
14332 bfd_cv_have_sys_procfs_type_prgregset_t=no
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14340 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14344 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14347 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14348 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
14349 $as_echo_n "(cached) " >&6
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14355 /* Needed for new procfs interface on sparc-solaris. */
14356 #define _STRUCTURED_PROC 1
14357 #include <sys/procfs.h>
14366 if ac_fn_c_try_compile "$LINENO"; then :
14367 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
14369 bfd_cv_have_sys_procfs_type_prfpregset_t=no
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14375 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14377 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14381 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14384 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14385 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
14386 $as_echo_n "(cached) " >&6
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14392 /* Needed for new procfs interface on sparc-solaris. */
14393 #define _STRUCTURED_PROC 1
14394 #include <sys/procfs.h>
14403 if ac_fn_c_try_compile "$LINENO"; then :
14404 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
14406 bfd_cv_have_sys_procfs_type_prgregset32_t=no
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14414 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14418 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14421 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14422 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
14423 $as_echo_n "(cached) " >&6
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14429 /* Needed for new procfs interface on sparc-solaris. */
14430 #define _STRUCTURED_PROC 1
14431 #include <sys/procfs.h>
14440 if ac_fn_c_try_compile "$LINENO"; then :
14441 bfd_cv_have_sys_procfs_type_lwpid_t=yes
14443 bfd_cv_have_sys_procfs_type_lwpid_t=no
14446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14451 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14455 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14458 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14459 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
14460 $as_echo_n "(cached) " >&6
14462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14466 /* Needed for new procfs interface on sparc-solaris. */
14467 #define _STRUCTURED_PROC 1
14468 #include <sys/procfs.h>
14477 if ac_fn_c_try_compile "$LINENO"; then :
14478 bfd_cv_have_sys_procfs_type_psaddr_t=yes
14480 bfd_cv_have_sys_procfs_type_psaddr_t=no
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14488 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14492 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
14495 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
14496 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
14497 $as_echo_n "(cached) " >&6
14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14503 /* Needed for new procfs interface on sparc-solaris. */
14504 #define _STRUCTURED_PROC 1
14505 #include <sys/procfs.h>
14509 elf_fpregset_t avar
14514 if ac_fn_c_try_compile "$LINENO"; then :
14515 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
14517 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
14520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
14525 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
14529 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
14533 # Check if the compiler supports the `long long' type.
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14536 $as_echo_n "checking for long long support in compiler... " >&6; }
14537 if ${gdb_cv_c_long_long+:} false; then :
14538 $as_echo_n "(cached) " >&6
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 extern long long foo;
14546 switch (foo & 2) { case 0: return 1; }
14551 if ac_fn_c_try_compile "$LINENO"; then :
14552 gdb_cv_c_long_long=yes
14554 gdb_cv_c_long_long=no
14556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14559 $as_echo "$gdb_cv_c_long_long" >&6; }
14560 if test $gdb_cv_c_long_long != yes; then
14561 # libdecnumber requires long long.
14562 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
14565 # Check if the compiler and runtime support printing long longs.
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14568 $as_echo_n "checking for long long support in printf... " >&6; }
14569 if ${gdb_cv_printf_has_long_long+:} false; then :
14570 $as_echo_n "(cached) " >&6
14572 if test "$cross_compiling" = yes; then :
14573 gdb_cv_printf_has_long_long=no
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577 $ac_includes_default
14583 l = (l << 16) + 0x0123;
14584 l = (l << 16) + 0x4567;
14585 l = (l << 16) + 0x89ab;
14586 l = (l << 16) + 0xcdef;
14587 sprintf (buf, "0x%016llx", l);
14588 return (strcmp ("0x0123456789abcdef", buf));
14593 if ac_fn_c_try_run "$LINENO"; then :
14594 gdb_cv_printf_has_long_long=yes
14596 gdb_cv_printf_has_long_long=no
14598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14599 conftest.$ac_objext conftest.beam conftest.$ac_ext
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14604 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14605 if test $gdb_cv_printf_has_long_long = yes; then
14607 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14611 # Check if the compiler and runtime support printing decfloats.
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14614 $as_echo_n "checking for decfloat support in printf... " >&6; }
14615 if ${gdb_cv_printf_has_decfloat+:} false; then :
14616 $as_echo_n "(cached) " >&6
14618 if test "$cross_compiling" = yes; then :
14619 gdb_cv_printf_has_decfloat=no
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14623 $ac_includes_default
14628 _Decimal32 d32 = 1.2345df;
14629 _Decimal64 d64 = 1.2345dd;
14630 _Decimal128 d128 = 1.2345dl;
14631 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14632 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14637 if ac_fn_c_try_run "$LINENO"; then :
14638 gdb_cv_printf_has_decfloat=yes
14640 gdb_cv_printf_has_decfloat=no
14642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14643 conftest.$ac_objext conftest.beam conftest.$ac_ext
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14648 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14649 if test $gdb_cv_printf_has_decfloat = yes; then
14651 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14655 # Check if the compiler supports the `long double' type. We can't use
14656 # AC_C_LONG_DOUBLE because that one does additional checks on the
14657 # constants defined in <float.h> that fail on some systems,
14658 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14661 $as_echo_n "checking for long double support in compiler... " >&6; }
14662 if ${gdb_cv_c_long_double+:} false; then :
14663 $as_echo_n "(cached) " >&6
14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14669 if ac_fn_c_try_compile "$LINENO"; then :
14670 gdb_cv_c_long_double=yes
14672 gdb_cv_c_long_double=no
14674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14677 $as_echo "$gdb_cv_c_long_double" >&6; }
14678 if test $gdb_cv_c_long_double = yes; then
14680 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14684 # Check if the compiler and runtime support printing long doubles.
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14687 $as_echo_n "checking for long double support in printf... " >&6; }
14688 if ${gdb_cv_printf_has_long_double+:} false; then :
14689 $as_echo_n "(cached) " >&6
14691 if test "$cross_compiling" = yes; then :
14692 gdb_cv_printf_has_long_double=no
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h. */
14696 $ac_includes_default
14701 long double f = 3.141592653;
14702 sprintf (buf, "%Lg", f);
14703 return (strncmp ("3.14159", buf, 7));
14708 if ac_fn_c_try_run "$LINENO"; then :
14709 gdb_cv_printf_has_long_double=yes
14711 gdb_cv_printf_has_long_double=no
14713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14714 conftest.$ac_objext conftest.beam conftest.$ac_ext
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14719 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14720 if test $gdb_cv_printf_has_long_double = yes; then
14722 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14726 # Check if the compiler and runtime support scanning long doubles.
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14729 $as_echo_n "checking for long double support in scanf... " >&6; }
14730 if ${gdb_cv_scanf_has_long_double+:} false; then :
14731 $as_echo_n "(cached) " >&6
14733 if test "$cross_compiling" = yes; then :
14734 gdb_cv_scanf_has_long_double=no
14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14742 char *buf = "3.141592653";
14744 sscanf (buf, "%Lg", &f);
14745 return !(f > 3.14159 && f < 3.14160);
14750 if ac_fn_c_try_run "$LINENO"; then :
14751 gdb_cv_scanf_has_long_double=yes
14753 gdb_cv_scanf_has_long_double=no
14755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14756 conftest.$ac_objext conftest.beam conftest.$ac_ext
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14761 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14762 if test $gdb_cv_scanf_has_long_double = yes; then
14764 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14771 $as_echo_n "checking for -bbigtoc option... " >&6; }
14772 if ${gdb_cv_bigtoc+:} false; then :
14773 $as_echo_n "(cached) " >&6
14776 SAVE_LDFLAGS=$LDFLAGS
14779 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14780 *) gdb_cv_bigtoc=-bbigtoc ;;
14783 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14795 if ac_fn_c_try_link "$LINENO"; then :
14800 rm -f core conftest.err conftest.$ac_objext \
14801 conftest$ac_exeext conftest.$ac_ext
14802 LDFLAGS="${SAVE_LDFLAGS}"
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14806 $as_echo "$gdb_cv_bigtoc" >&6; }
14807 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14812 $as_echo_n "checking for the dynamic export flag... " >&6; }
14814 if test "${gdb_native}" = yes; then
14815 # The dynamically loaded libthread_db needs access to symbols in the gdb
14816 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14817 # may not be supported there.
14818 old_LDFLAGS="$LDFLAGS"
14819 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14820 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14821 LDFLAGS="$LDFLAGS $RDYNAMIC"
14822 if test "${have_libpython}" = no; then
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14834 if ac_fn_c_try_link "$LINENO"; then :
14837 rm -f core conftest.err conftest.$ac_objext \
14838 conftest$ac_exeext conftest.$ac_ext
14840 # Workaround http://bugs.python.org/issue4434 where static
14841 # libpythonX.Y.a would get its symbols required for
14842 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14843 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14845 # Note the workaround for Python
14846 # http://bugs.python.org/issue10112 earlier has removed
14847 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
14848 # here too, as otherwise it'd make this -Wl,--dynamic-list test
14850 old_CFLAGS="$CFLAGS"
14851 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14853 LIBS="$LIBS $PYTHON_LIBS"
14854 old_CPPFLAGS="$CPPFLAGS"
14855 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
14856 if test "$cross_compiling" = yes; then :
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 #include "Python.h"
14867 err = PyRun_SimpleString ("import itertools\n");
14869 return err == 0 ? 0 : 1;
14874 if ac_fn_c_try_run "$LINENO"; then :
14877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14878 conftest.$ac_objext conftest.beam conftest.$ac_ext
14882 CFLAGS="$old_CFLAGS"
14883 CPPFLAGS="$old_CPPFLAGS"
14885 LDFLAGS="$old_LDFLAGS"
14887 if $dynamic_list; then
14888 found="-Wl,--dynamic-list"
14889 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14892 RDYNAMIC="-rdynamic"
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14896 $as_echo "$found" >&6; }
14899 if test ${build} = ${host} -a ${host} = ${target} ; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14903 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14904 if ${gdb_cv_have_aix_thread_debug+:} false; then :
14905 $as_echo_n "(cached) " >&6
14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908 /* end confdefs.h. */
14909 #include <sys/pthdebug.h>
14913 #ifndef PTHDB_VERSION_3
14920 if ac_fn_c_try_compile "$LINENO"; then :
14921 gdb_cv_have_aix_thread_debug=yes
14923 gdb_cv_have_aix_thread_debug=no
14925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14929 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14930 if test $gdb_cv_have_aix_thread_debug = yes; then
14931 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14932 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14933 LIBS="$LIBS -lpthdebug"
14935 # Older versions of AIX do not provide the declaration for
14936 # the getthrds function (it appears that it was introduced
14938 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14940 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
14946 cat >>confdefs.h <<_ACEOF
14947 #define HAVE_DECL_GETTHRDS $ac_have_decl
14956 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14958 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14959 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
14960 $as_echo_n "(cached) " >&6
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14964 #include <thread_db.h>
14968 int i = TD_NOTALLOC;
14973 if ac_fn_c_try_compile "$LINENO"; then :
14974 gdb_cv_thread_db_h_has_td_notalloc=yes
14976 gdb_cv_thread_db_h_has_td_notalloc=no
14979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14983 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14985 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14986 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
14987 $as_echo_n "(cached) " >&6
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h. */
14991 #include <thread_db.h>
14995 int i = TD_VERSION;
15000 if ac_fn_c_try_compile "$LINENO"; then :
15001 gdb_cv_thread_db_h_has_td_version=yes
15003 gdb_cv_thread_db_h_has_td_version=no
15006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15010 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15012 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15013 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
15014 $as_echo_n "(cached) " >&6
15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15018 #include <thread_db.h>
15027 if ac_fn_c_try_compile "$LINENO"; then :
15028 gdb_cv_thread_db_h_has_td_notls=yes
15030 gdb_cv_thread_db_h_has_td_notls=no
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15037 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15039 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15041 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15044 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15046 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15049 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15051 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15055 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15057 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
15063 cat >>confdefs.h <<_ACEOF
15064 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15068 if test "$cross_compiling" = yes; then :
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15071 #include <sys/personality.h>
15076 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15077 # define ADDR_NO_RANDOMIZE 0x0040000
15079 /* Test the flag could be set and stays set. */
15080 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15081 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15087 if ac_fn_c_try_link "$LINENO"; then :
15088 have_personality=true
15090 have_personality=false
15092 rm -f core conftest.err conftest.$ac_objext \
15093 conftest$ac_exeext conftest.$ac_ext
15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096 /* end confdefs.h. */
15097 #include <sys/personality.h>
15102 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15103 # define ADDR_NO_RANDOMIZE 0x0040000
15105 /* Test the flag could be set and stays set. */
15106 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15107 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15113 if ac_fn_c_try_run "$LINENO"; then :
15114 have_personality=true
15116 have_personality=false
15118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15119 conftest.$ac_objext conftest.beam conftest.$ac_ext
15122 if $have_personality
15125 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15138 cat >>confdefs.h <<_ACEOF
15139 #define GDBINIT "$gdbinit"
15144 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15145 # except that the argument to --with-sysroot is optional.
15146 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15147 if test "x$with_sysroot" = xyes; then
15148 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
15151 # Check whether --with-sysroot was given.
15152 if test "${with_sysroot+set}" = set; then :
15153 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
15155 TARGET_SYSTEM_ROOT=
15159 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15161 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
15162 ac_define_dir=`eval echo $ac_define_dir`
15164 cat >>confdefs.h <<_ACEOF
15165 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15171 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15172 if test "x$prefix" = xNONE; then
15173 test_prefix=/usr/local
15175 test_prefix=$prefix
15178 test_prefix=$exec_prefix
15181 case ${ac_define_dir} in
15182 "${test_prefix}"|"${test_prefix}/"*|\
15183 '${exec_prefix}'|'${exec_prefix}/'*)
15188 cat >>confdefs.h <<_ACEOF
15189 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15196 # Check whether --with-system-gdbinit was given.
15197 if test "${with_system_gdbinit+set}" = set; then :
15198 withval=$with_system_gdbinit;
15199 SYSTEM_GDBINIT=$withval
15205 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15206 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15207 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
15208 ac_define_dir=`eval echo $ac_define_dir`
15210 cat >>confdefs.h <<_ACEOF
15211 #define SYSTEM_GDBINIT "$ac_define_dir"
15217 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15218 if test "x$prefix" = xNONE; then
15219 test_prefix=/usr/local
15221 test_prefix=$prefix
15224 test_prefix=$exec_prefix
15227 case ${ac_define_dir} in
15228 "${test_prefix}"|"${test_prefix}/"*|\
15229 '${exec_prefix}'|'${exec_prefix}/'*)
15234 cat >>confdefs.h <<_ACEOF
15235 #define SYSTEM_GDBINIT_RELOCATABLE $value
15242 # Check whether --enable-werror was given.
15243 if test "${enable_werror+set}" = set; then :
15244 enableval=$enable_werror; case "${enableval}" in
15245 yes | y) ERROR_ON_WARNING="yes" ;;
15246 no | n) ERROR_ON_WARNING="no" ;;
15247 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15252 # Enable -Werror by default when using gcc. Turn it off for releases.
15253 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15254 ERROR_ON_WARNING=yes
15258 if test "${ERROR_ON_WARNING}" = yes ; then
15259 WERROR_CFLAGS="-Werror"
15262 # The options we'll try to enable.
15263 build_warnings="-Wall -Wpointer-arith \
15264 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
15265 -Wno-switch -Wno-char-subscripts \
15266 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15267 -Wno-sign-compare -Wno-error=maybe-uninitialized \
15268 -Wno-mismatched-tags \
15269 -Wno-error=deprecated-register \
15270 -Wsuggest-override \
15271 -Wimplicit-fallthrough=3 \
15272 -Wduplicated-cond \
15274 -Wdeprecated-copy \
15275 -Wdeprecated-copy-dtor \
15280 # Enable -Wno-format by default when using gcc on mingw since many
15281 # GCC versions complain about %I64.
15282 build_warnings="$build_warnings -Wno-format" ;;
15284 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15285 # doesn't understand.
15286 build_warnings="$build_warnings -Wno-unknown-pragmas"
15287 # Solaris 11 <unistd.h> marks vfork deprecated.
15288 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
15290 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
15291 # but there's a special case for this below.
15292 build_warnings="$build_warnings -Wformat-nonliteral" ;;
15295 # Check whether --enable-build-warnings was given.
15296 if test "${enable_build_warnings+set}" = set; then :
15297 enableval=$enable_build_warnings; case "${enableval}" in
15299 no) build_warnings="-w";;
15300 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15301 build_warnings="${build_warnings} ${t}";;
15302 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15303 build_warnings="${t} ${build_warnings}";;
15304 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15306 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15307 echo "Setting compiler warning flags = $build_warnings" 6>&1
15310 # Check whether --enable-gdb-build-warnings was given.
15311 if test "${enable_gdb_build_warnings+set}" = set; then :
15312 enableval=$enable_gdb_build_warnings; case "${enableval}" in
15314 no) build_warnings="-w";;
15315 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15316 build_warnings="${build_warnings} ${t}";;
15317 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15318 build_warnings="${t} ${build_warnings}";;
15319 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15321 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15322 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15326 # The set of warnings supported by a C++ compiler is not the same as
15327 # of the C compiler.
15329 ac_cpp='$CXXCPP $CPPFLAGS'
15330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15336 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15339 $as_echo_n "checking compiler warning flags... " >&6; }
15340 # Separate out the -Werror flag as some files just cannot be
15341 # compiled with it enabled.
15342 for w in ${build_warnings}; do
15343 # GCC does not complain about -Wno-unknown-warning. Invert
15344 # and test -Wunknown-warning instead.
15347 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
15348 -Wformat-nonliteral)
15349 # gcc requires -Wformat before -Wformat-nonliteral
15350 # will work, so stick them together.
15359 -Werr*) WERROR_CFLAGS=-Werror ;;
15361 # Check whether GCC accepts it.
15362 saved_CFLAGS="$CFLAGS"
15363 CFLAGS="$CFLAGS -Werror $wtest"
15364 saved_CXXFLAGS="$CXXFLAGS"
15365 CXXFLAGS="$CXXFLAGS -Werror $wtest"
15366 if test "x$w" = "x-Wunused-variable"; then
15367 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
15368 # fixed in GCC 4.9. This test is derived from the gdb
15369 # source code that triggered this bug in GCC.
15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15372 struct scoped_restore_base {};
15373 struct scoped_restore_tmpl : public scoped_restore_base {
15374 ~scoped_restore_tmpl() {}
15379 const scoped_restore_base &b = scoped_restore_tmpl();
15384 if ac_fn_cxx_try_compile "$LINENO"; then :
15385 WARN_CFLAGS="${WARN_CFLAGS} $w"
15387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15400 if ac_fn_cxx_try_compile "$LINENO"; then :
15401 WARN_CFLAGS="${WARN_CFLAGS} $w"
15403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15405 CFLAGS="$saved_CFLAGS"
15406 CXXFLAGS="$saved_CXXFLAGS"
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15410 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15416 ac_cpp='$CPP $CPPFLAGS'
15417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15423 # Check whether --enable-ubsan was given.
15424 if test "${enable_ubsan+set}" = set; then :
15425 enableval=$enable_ubsan;
15430 if test "x$enable_ubsan" = xauto; then
15431 if $development; then
15436 ac_cpp='$CXXCPP $CPPFLAGS'
15437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15441 if test "x$enable_ubsan" = xyes; then
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
15443 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
15444 saved_CXXFLAGS="$CXXFLAGS"
15445 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15457 if ac_fn_cxx_try_link "$LINENO"; then :
15462 rm -f core conftest.err conftest.$ac_objext \
15463 conftest$ac_exeext conftest.$ac_ext
15464 CXXFLAGS="$saved_CXXFLAGS"
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
15466 $as_echo "$enable_ubsan" >&6; }
15467 if test "x$enable_ubsan" = xyes; then
15468 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
15469 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
15473 ac_cpp='$CPP $CPPFLAGS'
15474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15480 # In the Cygwin environment, we need some additional flags.
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
15482 $as_echo_n "checking for cygwin... " >&6; }
15483 if ${gdb_cv_os_cygwin+:} false; then :
15484 $as_echo_n "(cached) " >&6
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15489 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15494 $EGREP "^lose$" >/dev/null 2>&1; then :
15495 gdb_cv_os_cygwin=yes
15497 gdb_cv_os_cygwin=no
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
15503 $as_echo "$gdb_cv_os_cygwin" >&6; }
15506 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
15508 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15509 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15510 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
15511 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
15515 # libreadline needs libuser32.a in a cygwin environment
15517 if test x$gdb_cv_os_cygwin = xyes; then
15518 WIN32LIBS="-luser32"
15519 case "${target}" in
15520 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15525 # The ser-tcp.c module requires sockets.
15529 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15531 WIN32LIBS="$WIN32LIBS -lws2_32"
15536 # Add ELF support to GDB, but only if BFD includes ELF support.
15539 OLD_LDFLAGS=$LDFLAGS
15541 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15542 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15543 # always want our bfd.
15544 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15545 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15546 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15547 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15548 LIBS="-lbfd -liberty -lz $intl $LIBS"
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15550 $as_echo_n "checking for ELF support in BFD... " >&6; }
15551 if ${gdb_cv_var_elf+:} false; then :
15552 $as_echo_n "(cached) " >&6
15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h. */
15556 #include <stdlib.h>
15558 #include "elf-bfd.h"
15563 return bfd_get_elf_phdr_upper_bound (NULL);
15568 if ac_fn_c_try_link "$LINENO"; then :
15573 rm -f core conftest.err conftest.$ac_objext \
15574 conftest$ac_exeext conftest.$ac_ext
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15577 $as_echo "$gdb_cv_var_elf" >&6; }
15579 LDFLAGS=$OLD_LDFLAGS
15581 if test $gdb_cv_var_elf = yes; then
15582 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15584 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15586 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15587 if test "$plugins" = "yes"; then
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15589 $as_echo_n "checking for library containing dlopen... " >&6; }
15590 if ${ac_cv_search_dlopen+:} false; then :
15591 $as_echo_n "(cached) " >&6
15593 ac_func_search_save_LIBS=$LIBS
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15597 /* Override any GCC internal prototype to avoid an error.
15598 Use char because int might match the return type of a GCC
15599 builtin and then its argument prototype would still apply. */
15612 for ac_lib in '' dl; do
15613 if test -z "$ac_lib"; then
15614 ac_res="none required"
15617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15619 if ac_fn_c_try_link "$LINENO"; then :
15620 ac_cv_search_dlopen=$ac_res
15622 rm -f core conftest.err conftest.$ac_objext \
15624 if ${ac_cv_search_dlopen+:} false; then :
15628 if ${ac_cv_search_dlopen+:} false; then :
15631 ac_cv_search_dlopen=no
15633 rm conftest.$ac_ext
15634 LIBS=$ac_func_search_save_LIBS
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15637 $as_echo "$ac_cv_search_dlopen" >&6; }
15638 ac_res=$ac_cv_search_dlopen
15639 if test "$ac_res" != no; then :
15640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15647 # Add macho support to GDB, but only if BFD includes it.
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 Mach-O support in BFD" >&5
15661 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15662 if ${gdb_cv_var_macho+:} 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 "mach-o.h"
15674 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15679 if ac_fn_c_try_link "$LINENO"; then :
15680 gdb_cv_var_macho=yes
15682 gdb_cv_var_macho=no
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_macho" >&5
15688 $as_echo "$gdb_cv_var_macho" >&6; }
15690 LDFLAGS=$OLD_LDFLAGS
15692 if test $gdb_cv_var_macho = yes; then
15693 CONFIG_OBS="$CONFIG_OBS machoread.o"
15696 # Add any host-specific objects to GDB.
15697 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
15699 # If building on ELF, look for lzma support for embedded compressed debug info.
15700 if test $gdb_cv_var_elf = yes; then
15702 # Check whether --with-lzma was given.
15703 if test "${with_lzma+set}" = set; then :
15704 withval=$with_lzma;
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15710 $as_echo_n "checking whether to use lzma... " >&6; }
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15712 $as_echo "$with_lzma" >&6; }
15714 if test "${with_lzma}" != no; then
15725 acl_save_prefix="$prefix"
15726 prefix="$acl_final_prefix"
15727 acl_save_exec_prefix="$exec_prefix"
15728 exec_prefix="$acl_final_exec_prefix"
15730 eval additional_includedir=\"$includedir\"
15731 eval additional_libdir=\"$libdir\"
15733 exec_prefix="$acl_save_exec_prefix"
15734 prefix="$acl_save_prefix"
15737 # Check whether --with-liblzma-prefix was given.
15738 if test "${with_liblzma_prefix+set}" = set; then :
15739 withval=$with_liblzma_prefix;
15740 if test "X$withval" = "Xno"; then
15743 if test "X$withval" = "X"; then
15745 acl_save_prefix="$prefix"
15746 prefix="$acl_final_prefix"
15747 acl_save_exec_prefix="$exec_prefix"
15748 exec_prefix="$acl_final_exec_prefix"
15750 eval additional_includedir=\"$includedir\"
15751 eval additional_libdir=\"$libdir\"
15753 exec_prefix="$acl_save_exec_prefix"
15754 prefix="$acl_save_prefix"
15757 additional_includedir="$withval/include"
15758 additional_libdir="$withval/lib"
15769 names_already_handled=
15770 names_next_round='lzma '
15771 while test -n "$names_next_round"; do
15772 names_this_round="$names_next_round"
15774 for name in $names_this_round; do
15776 for n in $names_already_handled; do
15777 if test "$n" = "$name"; then
15778 already_handled=yes
15782 if test -z "$already_handled"; then
15783 names_already_handled="$names_already_handled $name"
15784 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15785 eval value=\"\$HAVE_LIB$uppername\"
15786 if test -n "$value"; then
15787 if test "$value" = yes; then
15788 eval value=\"\$LIB$uppername\"
15789 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
15790 eval value=\"\$LTLIB$uppername\"
15791 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15800 if test $use_additional = yes; then
15801 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15802 found_dir="$additional_libdir"
15803 found_so="$additional_libdir/lib$name.$shlibext"
15804 if test -f "$additional_libdir/lib$name.la"; then
15805 found_la="$additional_libdir/lib$name.la"
15808 if test -f "$additional_libdir/lib$name.$libext"; then
15809 found_dir="$additional_libdir"
15810 found_a="$additional_libdir/lib$name.$libext"
15811 if test -f "$additional_libdir/lib$name.la"; then
15812 found_la="$additional_libdir/lib$name.la"
15817 if test "X$found_dir" = "X"; then
15818 for x in $LDFLAGS $LTLIBLZMA; do
15820 acl_save_prefix="$prefix"
15821 prefix="$acl_final_prefix"
15822 acl_save_exec_prefix="$exec_prefix"
15823 exec_prefix="$acl_final_exec_prefix"
15825 exec_prefix="$acl_save_exec_prefix"
15826 prefix="$acl_save_prefix"
15830 dir=`echo "X$x" | sed -e 's/^X-L//'`
15831 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15833 found_so="$dir/lib$name.$shlibext"
15834 if test -f "$dir/lib$name.la"; then
15835 found_la="$dir/lib$name.la"
15838 if test -f "$dir/lib$name.$libext"; then
15840 found_a="$dir/lib$name.$libext"
15841 if test -f "$dir/lib$name.la"; then
15842 found_la="$dir/lib$name.la"
15848 if test "X$found_dir" != "X"; then
15853 if test "X$found_dir" != "X"; then
15854 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15855 if test "X$found_so" != "X"; then
15856 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15857 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15860 for x in $ltrpathdirs; do
15861 if test "X$x" = "X$found_dir"; then
15866 if test -z "$haveit"; then
15867 ltrpathdirs="$ltrpathdirs $found_dir"
15869 if test "$hardcode_direct" = yes; then
15870 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15872 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15873 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15875 for x in $rpathdirs; do
15876 if test "X$x" = "X$found_dir"; then
15881 if test -z "$haveit"; then
15882 rpathdirs="$rpathdirs $found_dir"
15886 for x in $LDFLAGS $LIBLZMA; do
15888 acl_save_prefix="$prefix"
15889 prefix="$acl_final_prefix"
15890 acl_save_exec_prefix="$exec_prefix"
15891 exec_prefix="$acl_final_exec_prefix"
15893 exec_prefix="$acl_save_exec_prefix"
15894 prefix="$acl_save_prefix"
15896 if test "X$x" = "X-L$found_dir"; then
15901 if test -z "$haveit"; then
15902 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
15904 if test "$hardcode_minus_L" != no; then
15905 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15907 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
15913 if test "X$found_a" != "X"; then
15914 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
15916 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
15919 additional_includedir=
15920 case "$found_dir" in
15922 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15923 additional_includedir="$basedir/include"
15926 if test "X$additional_includedir" != "X"; then
15927 if test "X$additional_includedir" != "X/usr/include"; then
15929 if test "X$additional_includedir" = "X/usr/local/include"; then
15930 if test -n "$GCC"; then
15932 linux*) haveit=yes;;
15936 if test -z "$haveit"; then
15937 for x in $CPPFLAGS $INCLZMA; do
15939 acl_save_prefix="$prefix"
15940 prefix="$acl_final_prefix"
15941 acl_save_exec_prefix="$exec_prefix"
15942 exec_prefix="$acl_final_exec_prefix"
15944 exec_prefix="$acl_save_exec_prefix"
15945 prefix="$acl_save_prefix"
15947 if test "X$x" = "X-I$additional_includedir"; then
15952 if test -z "$haveit"; then
15953 if test -d "$additional_includedir"; then
15954 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
15960 if test -n "$found_la"; then
15961 save_libdir="$libdir"
15962 case "$found_la" in
15963 */* | *\\*) . "$found_la" ;;
15964 *) . "./$found_la" ;;
15966 libdir="$save_libdir"
15967 for dep in $dependency_libs; do
15970 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15971 if test "X$additional_libdir" != "X/usr/lib"; then
15973 if test "X$additional_libdir" = "X/usr/local/lib"; then
15974 if test -n "$GCC"; then
15976 linux*) haveit=yes;;
15980 if test -z "$haveit"; then
15982 for x in $LDFLAGS $LIBLZMA; do
15984 acl_save_prefix="$prefix"
15985 prefix="$acl_final_prefix"
15986 acl_save_exec_prefix="$exec_prefix"
15987 exec_prefix="$acl_final_exec_prefix"
15989 exec_prefix="$acl_save_exec_prefix"
15990 prefix="$acl_save_prefix"
15992 if test "X$x" = "X-L$additional_libdir"; then
15997 if test -z "$haveit"; then
15998 if test -d "$additional_libdir"; then
15999 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16003 for x in $LDFLAGS $LTLIBLZMA; do
16005 acl_save_prefix="$prefix"
16006 prefix="$acl_final_prefix"
16007 acl_save_exec_prefix="$exec_prefix"
16008 exec_prefix="$acl_final_exec_prefix"
16010 exec_prefix="$acl_save_exec_prefix"
16011 prefix="$acl_save_prefix"
16013 if test "X$x" = "X-L$additional_libdir"; then
16018 if test -z "$haveit"; then
16019 if test -d "$additional_libdir"; then
16020 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16027 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16028 if test "$enable_rpath" != no; then
16030 for x in $rpathdirs; do
16031 if test "X$x" = "X$dir"; then
16036 if test -z "$haveit"; then
16037 rpathdirs="$rpathdirs $dir"
16040 for x in $ltrpathdirs; do
16041 if test "X$x" = "X$dir"; then
16046 if test -z "$haveit"; then
16047 ltrpathdirs="$ltrpathdirs $dir"
16052 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16055 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16058 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
16059 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16065 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
16066 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16072 if test "X$rpathdirs" != "X"; then
16073 if test -n "$hardcode_libdir_separator"; then
16075 for found_dir in $rpathdirs; do
16076 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16078 acl_save_libdir="$libdir"
16080 eval flag=\"$hardcode_libdir_flag_spec\"
16081 libdir="$acl_save_libdir"
16082 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
16084 for found_dir in $rpathdirs; do
16085 acl_save_libdir="$libdir"
16086 libdir="$found_dir"
16087 eval flag=\"$hardcode_libdir_flag_spec\"
16088 libdir="$acl_save_libdir"
16089 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
16093 if test "X$ltrpathdirs" != "X"; then
16094 for found_dir in $ltrpathdirs; do
16095 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16100 ac_save_CPPFLAGS="$CPPFLAGS"
16102 for element in $INCLZMA; do
16104 for x in $CPPFLAGS; do
16106 acl_save_prefix="$prefix"
16107 prefix="$acl_final_prefix"
16108 acl_save_exec_prefix="$exec_prefix"
16109 exec_prefix="$acl_final_exec_prefix"
16111 exec_prefix="$acl_save_exec_prefix"
16112 prefix="$acl_save_prefix"
16114 if test "X$x" = "X$element"; then
16119 if test -z "$haveit"; then
16120 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16126 $as_echo_n "checking for liblzma... " >&6; }
16127 if ${ac_cv_liblzma+:} false; then :
16128 $as_echo_n "(cached) " >&6
16131 ac_save_LIBS="$LIBS"
16132 LIBS="$LIBS $LIBLZMA"
16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134 /* end confdefs.h. */
16139 lzma_index_iter iter;
16140 lzma_index_iter_init (&iter, 0);
16141 lzma_mf_is_supported (LZMA_MF_HC3);
16146 if ac_fn_c_try_link "$LINENO"; then :
16151 rm -f core conftest.err conftest.$ac_objext \
16152 conftest$ac_exeext conftest.$ac_ext
16153 LIBS="$ac_save_LIBS"
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16157 $as_echo "$ac_cv_liblzma" >&6; }
16158 if test "$ac_cv_liblzma" = yes; then
16161 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16164 $as_echo_n "checking how to link with liblzma... " >&6; }
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16166 $as_echo "$LIBLZMA" >&6; }
16169 CPPFLAGS="$ac_save_CPPFLAGS"
16179 if test "$HAVE_LIBLZMA" != yes; then
16180 if test "$with_lzma" = yes; then
16181 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
16187 LIBGUI="../libgui/src/libgui.a"
16188 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
16197 *-*-cygwin* | *-*-mingw* )
16206 if test "${enable_gdbtk}" = "yes"; then
16208 # Gdbtk must have an absolute path to srcdir in order to run
16209 # properly when not installed.
16212 GDBTK_SRC_DIR=`pwd`
16217 # Ok, lets find the tcl configuration
16218 # First, look for one uninstalled.
16219 # the alternative search directory is invoked by --with-tcl
16222 if test x"${no_tcl}" = x ; then
16223 # we reset no_tcl in case something fails here
16226 # Check whether --with-tcl was given.
16227 if test "${with_tcl+set}" = set; then :
16228 withval=$with_tcl; with_tclconfig=${withval}
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16232 $as_echo_n "checking for Tcl configuration... " >&6; }
16233 if ${ac_cv_c_tclconfig+:} false; then :
16234 $as_echo_n "(cached) " >&6
16238 # First check to see if --with-tcl was specified.
16240 *-*-cygwin*) platDir="win" ;;
16241 *) platDir="unix" ;;
16243 if test x"${with_tclconfig}" != x ; then
16244 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16245 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
16247 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16251 # then check for a private Tcl installation
16252 if test x"${ac_cv_c_tclconfig}" = x ; then
16255 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16256 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16257 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16259 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16260 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16261 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16263 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16264 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16265 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16266 if test -f "$i/$platDir/tclConfig.sh" ; then
16267 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16273 # on Darwin, check in Framework installation locations
16274 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
16275 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16276 `ls -d /Library/Frameworks 2>/dev/null` \
16277 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16278 `ls -d /System/Library/Frameworks 2>/dev/null` \
16280 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16281 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
16287 # check in a few common install locations
16288 if test x"${ac_cv_c_tclconfig}" = x ; then
16289 for i in `ls -d ${libdir} 2>/dev/null` \
16290 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16291 `ls -d ${prefix}/lib 2>/dev/null` \
16292 `ls -d /usr/local/lib 2>/dev/null` \
16293 `ls -d /usr/contrib/lib 2>/dev/null` \
16294 `ls -d /usr/lib 2>/dev/null` \
16296 if test -f "$i/tclConfig.sh" ; then
16297 ac_cv_c_tclconfig=`(cd $i; pwd)`
16303 # check in a few other private locations
16304 if test x"${ac_cv_c_tclconfig}" = x ; then
16307 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16308 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16309 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16310 if test -f "$i/$platDir/tclConfig.sh" ; then
16311 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16320 if test x"${ac_cv_c_tclconfig}" = x ; then
16321 TCL_BIN_DIR="# no Tcl configs found"
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16323 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16326 TCL_BIN_DIR=${ac_cv_c_tclconfig}
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16328 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16333 # If $no_tk is nonempty, then we can't do Tk, and there is no
16334 # point to doing Tcl.
16337 # Ok, lets find the tk configuration
16338 # First, look for one uninstalled.
16339 # the alternative search directory is invoked by --with-tk
16342 if test x"${no_tk}" = x ; then
16343 # we reset no_tk in case something fails here
16346 # Check whether --with-tk was given.
16347 if test "${with_tk+set}" = set; then :
16348 withval=$with_tk; with_tkconfig=${withval}
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16352 $as_echo_n "checking for Tk configuration... " >&6; }
16353 if ${ac_cv_c_tkconfig+:} false; then :
16354 $as_echo_n "(cached) " >&6
16358 # First check to see if --with-tkconfig was specified.
16359 if test x"${with_tkconfig}" != x ; then
16360 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16361 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
16363 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16367 # then check for a private Tk library
16369 *-*-cygwin*) platDir="win" ;;
16370 *) platDir="unix" ;;
16372 if test x"${ac_cv_c_tkconfig}" = x ; then
16375 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16376 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16377 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16379 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16380 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16381 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16383 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16384 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16385 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16386 if test -f "$i/$platDir/tkConfig.sh" ; then
16387 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16393 # on Darwin, check in Framework installation locations
16394 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
16395 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16396 `ls -d /Library/Frameworks 2>/dev/null` \
16397 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16398 `ls -d /System/Library/Frameworks 2>/dev/null` \
16400 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16401 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
16407 # check in a few common install locations
16408 if test x"${ac_cv_c_tkconfig}" = x ; then
16409 for i in `ls -d ${libdir} 2>/dev/null` \
16410 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16411 `ls -d ${prefix}/lib 2>/dev/null` \
16412 `ls -d /usr/local/lib 2>/dev/null` \
16413 `ls -d /usr/contrib/lib 2>/dev/null` \
16414 `ls -d /usr/lib 2>/dev/null` \
16416 if test -f "$i/tkConfig.sh" ; then
16417 ac_cv_c_tkconfig=`(cd $i; pwd)`
16422 # check in a few other private locations
16423 if test x"${ac_cv_c_tkconfig}" = x ; then
16426 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16427 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16428 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16429 if test -f "$i/$platDir/tkConfig.sh" ; then
16430 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16439 if test x"${ac_cv_c_tkconfig}" = x ; then
16440 TK_BIN_DIR="# no Tk configs found"
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16442 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16445 TK_BIN_DIR=${ac_cv_c_tkconfig}
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16447 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16452 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16455 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16457 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16459 $as_echo "loading" >&6; }
16460 . ${TCL_BIN_DIR}/tclConfig.sh
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16463 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16466 # eval is required to do the TCL_DBGX substitution
16467 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16468 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16470 # If the TCL_BIN_DIR is the build directory (not the install directory),
16471 # then set the common variable name to the value of the build variables.
16472 # For example, the variable TCL_LIB_SPEC will be set to the value
16473 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16474 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16475 # installed and uninstalled version of Tcl.
16476 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16477 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
16478 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
16479 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
16480 elif test "`uname -s`" = "Darwin"; then
16481 # If Tcl was built as a framework, attempt to use the libraries
16482 # from the framework at the given location so that linking works
16483 # against Tcl.framework installed in an arbitrary location.
16484 case ${TCL_DEFS} in
16486 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16487 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
16488 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16489 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16490 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16495 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16496 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16497 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16503 # eval is required to do the TCL_DBGX substitution
16504 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16505 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16506 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16507 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16523 # Check for in-tree tcl
16530 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16534 # Find Tcl private headers
16535 if test x"${intree}" = xno; then
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16538 $as_echo_n "checking for Tcl private headers... " >&6; }
16540 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16541 if test -f ${dir}/tclInt.h ; then
16545 if test x"${private_dir}" = x; then
16546 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
16548 TCL_PRIVATE_INCLUDE="-I${private_dir}"
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16550 $as_echo "${private_dir}" >&6; }
16553 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16554 TCL_LIBRARY="${TCL_LIB_SPEC}"
16557 # If building tcl in the same src tree, private headers
16558 # are not needed, but we need to be sure to use the right
16560 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
16561 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
16562 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16570 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16572 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16574 $as_echo "loading" >&6; }
16575 . ${TK_BIN_DIR}/tkConfig.sh
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16578 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16581 # eval is required to do the TK_DBGX substitution
16582 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16583 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16585 # If the TK_BIN_DIR is the build directory (not the install directory),
16586 # then set the common variable name to the value of the build variables.
16587 # For example, the variable TK_LIB_SPEC will be set to the value
16588 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16589 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16590 # installed and uninstalled version of Tcl.
16591 if test -f "${TK_BIN_DIR}/Makefile" ; then
16592 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
16593 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
16594 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
16595 elif test "`uname -s`" = "Darwin"; then
16596 # If Tk was built as a framework, attempt to use the libraries
16597 # from the framework at the given location so that linking works
16598 # against Tk.framework installed in an arbitrary location.
16601 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16602 for i in "`cd ${TK_BIN_DIR}; pwd`" \
16603 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16604 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16605 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16610 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16611 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16612 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16618 # eval is required to do the TK_DBGX substitution
16619 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16620 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16621 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16622 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16637 # Check for in-tree Tk
16639 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16643 # Find Tk private headers
16644 if test x"${intree}" = xno; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16647 $as_echo_n "checking for Tk private headers... " >&6; }
16649 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16650 if test -f ${dir}/tkInt.h; then
16654 if test x"${private_dir}" = x; then
16655 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
16657 TK_PRIVATE_INCLUDE="-I${private_dir}"
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16659 $as_echo "${private_dir}" >&6; }
16662 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16663 TK_LIBRARY=${TK_LIB_SPEC}
16666 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
16667 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
16668 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
16675 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16677 # Include some libraries that Tcl and Tk want.
16678 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16679 # Yes, the ordering seems wrong here. But it isn't.
16680 # TK_LIBS is the list of libraries that need to be linked
16681 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16682 # were in LIBS then any link tests after this point would
16683 # try to include things like `$(LIBGUI)', which wouldn't work.
16684 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
16686 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16687 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16688 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16689 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
16690 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
16691 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
16692 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
16694 if test x$gdb_cv_os_cygwin = xyes; then
16695 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16696 WIN32LDAPP="-Wl,--subsystem,console"
16697 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
16700 subdirs="$subdirs gdbtk"
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16713 $as_echo_n "checking for X... " >&6; }
16716 # Check whether --with-x was given.
16717 if test "${with_x+set}" = set; then :
16721 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16722 if test "x$with_x" = xno; then
16723 # The user explicitly disabled X.
16726 case $x_includes,$x_libraries in #(
16727 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
16728 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
16729 $as_echo_n "(cached) " >&6
16731 # One or both of the vars are not set, and there is no cached value.
16732 ac_x_includes=no ac_x_libraries=no
16733 rm -f -r conftest.dir
16734 if mkdir conftest.dir; then
16736 cat >Imakefile <<'_ACEOF'
16738 @echo incroot='${INCROOT}'
16740 @echo usrlibdir='${USRLIBDIR}'
16742 @echo libdir='${LIBDIR}'
16744 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16745 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16746 for ac_var in incroot usrlibdir libdir; do
16747 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16749 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16750 for ac_extension in a so sl dylib la dll; do
16751 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16752 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16753 ac_im_usrlibdir=$ac_im_libdir; break
16756 # Screen out bogus values from the imake configuration. They are
16757 # bogus both because they are the default anyway, and because
16758 # using them would break gcc on systems where it needs fixed includes.
16759 case $ac_im_incroot in
16760 /usr/include) ac_x_includes= ;;
16761 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16763 case $ac_im_usrlibdir in
16764 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
16765 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16769 rm -f -r conftest.dir
16772 # Standard set of common directories for X headers.
16773 # Check X11 before X11Rn because it is often a symlink to the current release.
16787 /usr/local/X11/include
16788 /usr/local/X11R7/include
16789 /usr/local/X11R6/include
16790 /usr/local/X11R5/include
16791 /usr/local/X11R4/include
16793 /usr/local/include/X11
16794 /usr/local/include/X11R7
16795 /usr/local/include/X11R6
16796 /usr/local/include/X11R5
16797 /usr/local/include/X11R4
16801 /usr/XFree86/include/X11
16805 /usr/unsupported/include
16806 /usr/athena/include
16807 /usr/local/x11r5/include
16808 /usr/lpp/Xamples/include
16810 /usr/openwin/include
16811 /usr/openwin/share/include'
16813 if test "$ac_x_includes" = no; then
16814 # Guess where to find include files, by looking for Xlib.h.
16815 # First, try using that file with no special directory specified.
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16818 #include <X11/Xlib.h>
16820 if ac_fn_c_try_cpp "$LINENO"; then :
16821 # We can compile using X headers with no special include directory.
16824 for ac_dir in $ac_x_header_dirs; do
16825 if test -r "$ac_dir/X11/Xlib.h"; then
16826 ac_x_includes=$ac_dir
16831 rm -f conftest.err conftest.i conftest.$ac_ext
16832 fi # $ac_x_includes = no
16834 if test "$ac_x_libraries" = no; then
16835 # Check for the libraries.
16836 # See if we find them without any special options.
16837 # Don't add to $LIBS permanently.
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16842 #include <X11/Xlib.h>
16851 if ac_fn_c_try_link "$LINENO"; then :
16853 # We can link X programs with no special library path.
16857 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16859 # Don't even attempt the hair of trying to link an X program!
16860 for ac_extension in a so sl dylib la dll; do
16861 if test -r "$ac_dir/libX11.$ac_extension"; then
16862 ac_x_libraries=$ac_dir
16868 rm -f core conftest.err conftest.$ac_objext \
16869 conftest$ac_exeext conftest.$ac_ext
16870 fi # $ac_x_libraries = no
16872 case $ac_x_includes,$ac_x_libraries in #(
16873 no,* | *,no | *\'*)
16874 # Didn't find X, or a directory has "'" in its name.
16875 ac_cv_have_x="have_x=no";; #(
16877 # Record where we found X for the cache.
16878 ac_cv_have_x="have_x=yes\
16879 ac_x_includes='$ac_x_includes'\
16880 ac_x_libraries='$ac_x_libraries'"
16886 eval "$ac_cv_have_x"
16889 if test "$have_x" != yes; then
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16891 $as_echo "$have_x" >&6; }
16894 # If each of the values was on the command line, it overrides each guess.
16895 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16896 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16897 # Update the cache value to reflect the command line values.
16898 ac_cv_have_x="have_x=yes\
16899 ac_x_includes='$x_includes'\
16900 ac_x_libraries='$x_libraries'"
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16902 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16906 # Unlike the sim directory, whether a simulator is linked is controlled by
16907 # presence of a gdb_sim definition in the target configure.tgt entry.
16908 # This code just checks for a few cases where we'd like to ignore those
16909 # definitions, even when they're present in the '.mt' file. These cases
16910 # are when --disable-sim is specified, or if the simulator directory is
16911 # not part of the source tree.
16913 # Check whether --enable-sim was given.
16914 if test "${enable_sim+set}" = set; then :
16915 enableval=$enable_sim; echo "enable_sim = $enable_sim";
16916 echo "enableval = ${enableval}";
16917 case "${enableval}" in
16918 yes) ignore_sim=false ;;
16919 no) ignore_sim=true ;;
16920 *) ignore_sim=false ;;
16927 if test ! -d "${srcdir}/../sim"; then
16933 if test "${ignore_sim}" = "false"; then
16934 if test x"${gdb_sim}" != x ; then
16936 SIM_OBS="remote-sim.o"
16938 $as_echo "#define WITH_SIM 1" >>confdefs.h
16941 # Some tdep code should only be compiled in when the ppc sim is
16942 # built. PR sim/13418.
16946 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
16966 # List of host floatformats.
16968 cat >>confdefs.h <<_ACEOF
16969 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16973 cat >>confdefs.h <<_ACEOF
16974 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16978 cat >>confdefs.h <<_ACEOF
16979 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16983 # target_subdir is used by the testsuite to find the target libraries.
16985 if test "${host}" != "${target}"; then
16986 target_subdir="${target_alias}/"
16990 # Import nat definitions.
16991 nat_makefile_frag=/dev/null
16992 if test "${gdb_native}" = "yes"; then
16993 . ${srcdir}/configure.nat
16994 nativefile=$NAT_FILE
17007 if test x"${gdb_osabi}" != x ; then
17009 cat >>confdefs.h <<_ACEOF
17010 #define GDB_OSABI_DEFAULT $gdb_osabi
17015 # Check whether --enable-gdbserver was given.
17016 if test "${enable_gdbserver+set}" = set; then :
17017 enableval=$enable_gdbserver; case "${enableval}" in
17019 *) as_fn_error $? "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17022 enable_gdbserver=auto
17026 # We only build gdbserver automatically in a native configuration, and
17027 # only if the user did not explicitly disable its build.
17028 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17030 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17031 if test "x$build_gdbserver" = xyes; then
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17033 $as_echo "yes" >&6; }
17034 subdirs="$subdirs gdbserver"
17036 gdbserver_build_enabled=yes
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17039 $as_echo "no" >&6; }
17043 # If the user explicitly request the gdbserver to be built, verify that
17044 # we were in fact able to enable it.
17045 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17046 as_fn_error $? "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17049 # Check for babeltrace and babeltrace-ctf
17051 # Check whether --with-babeltrace was given.
17052 if test "${with_babeltrace+set}" = set; then :
17053 withval=$with_babeltrace;
17055 with_babeltrace=auto
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17059 $as_echo_n "checking whether to use babeltrace... " >&6; }
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17061 $as_echo "$with_babeltrace" >&6; }
17063 if test "x$with_babeltrace" = "xno"; then
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17065 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17067 # Append -Werror to CFLAGS so that configure can catch the warning
17068 # "assignment from incompatible pointer type", which is related to
17069 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17070 # in GDB, while babeltrace 1.0.3 is broken.
17071 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17072 # safe to save and restore CFLAGS here.
17073 saved_CFLAGS=$CFLAGS
17074 CFLAGS="$CFLAGS -Werror"
17085 acl_save_prefix="$prefix"
17086 prefix="$acl_final_prefix"
17087 acl_save_exec_prefix="$exec_prefix"
17088 exec_prefix="$acl_final_exec_prefix"
17090 eval additional_includedir=\"$includedir\"
17091 eval additional_libdir=\"$libdir\"
17093 exec_prefix="$acl_save_exec_prefix"
17094 prefix="$acl_save_prefix"
17097 # Check whether --with-libbabeltrace-prefix was given.
17098 if test "${with_libbabeltrace_prefix+set}" = set; then :
17099 withval=$with_libbabeltrace_prefix;
17100 if test "X$withval" = "Xno"; then
17103 if test "X$withval" = "X"; then
17105 acl_save_prefix="$prefix"
17106 prefix="$acl_final_prefix"
17107 acl_save_exec_prefix="$exec_prefix"
17108 exec_prefix="$acl_final_exec_prefix"
17110 eval additional_includedir=\"$includedir\"
17111 eval additional_libdir=\"$libdir\"
17113 exec_prefix="$acl_save_exec_prefix"
17114 prefix="$acl_save_prefix"
17117 additional_includedir="$withval/include"
17118 additional_libdir="$withval/lib"
17129 names_already_handled=
17130 names_next_round='babeltrace babeltrace-ctf'
17131 while test -n "$names_next_round"; do
17132 names_this_round="$names_next_round"
17134 for name in $names_this_round; do
17136 for n in $names_already_handled; do
17137 if test "$n" = "$name"; then
17138 already_handled=yes
17142 if test -z "$already_handled"; then
17143 names_already_handled="$names_already_handled $name"
17144 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17145 eval value=\"\$HAVE_LIB$uppername\"
17146 if test -n "$value"; then
17147 if test "$value" = yes; then
17148 eval value=\"\$LIB$uppername\"
17149 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17150 eval value=\"\$LTLIB$uppername\"
17151 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17160 if test $use_additional = yes; then
17161 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17162 found_dir="$additional_libdir"
17163 found_so="$additional_libdir/lib$name.$shlibext"
17164 if test -f "$additional_libdir/lib$name.la"; then
17165 found_la="$additional_libdir/lib$name.la"
17168 if test -f "$additional_libdir/lib$name.$libext"; then
17169 found_dir="$additional_libdir"
17170 found_a="$additional_libdir/lib$name.$libext"
17171 if test -f "$additional_libdir/lib$name.la"; then
17172 found_la="$additional_libdir/lib$name.la"
17177 if test "X$found_dir" = "X"; then
17178 for x in $LDFLAGS $LTLIBBABELTRACE; do
17180 acl_save_prefix="$prefix"
17181 prefix="$acl_final_prefix"
17182 acl_save_exec_prefix="$exec_prefix"
17183 exec_prefix="$acl_final_exec_prefix"
17185 exec_prefix="$acl_save_exec_prefix"
17186 prefix="$acl_save_prefix"
17190 dir=`echo "X$x" | sed -e 's/^X-L//'`
17191 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17193 found_so="$dir/lib$name.$shlibext"
17194 if test -f "$dir/lib$name.la"; then
17195 found_la="$dir/lib$name.la"
17198 if test -f "$dir/lib$name.$libext"; then
17200 found_a="$dir/lib$name.$libext"
17201 if test -f "$dir/lib$name.la"; then
17202 found_la="$dir/lib$name.la"
17208 if test "X$found_dir" != "X"; then
17213 if test "X$found_dir" != "X"; then
17214 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17215 if test "X$found_so" != "X"; then
17216 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17217 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17220 for x in $ltrpathdirs; do
17221 if test "X$x" = "X$found_dir"; then
17226 if test -z "$haveit"; then
17227 ltrpathdirs="$ltrpathdirs $found_dir"
17229 if test "$hardcode_direct" = yes; then
17230 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17232 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17233 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17235 for x in $rpathdirs; do
17236 if test "X$x" = "X$found_dir"; then
17241 if test -z "$haveit"; then
17242 rpathdirs="$rpathdirs $found_dir"
17246 for x in $LDFLAGS $LIBBABELTRACE; do
17248 acl_save_prefix="$prefix"
17249 prefix="$acl_final_prefix"
17250 acl_save_exec_prefix="$exec_prefix"
17251 exec_prefix="$acl_final_exec_prefix"
17253 exec_prefix="$acl_save_exec_prefix"
17254 prefix="$acl_save_prefix"
17256 if test "X$x" = "X-L$found_dir"; then
17261 if test -z "$haveit"; then
17262 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17264 if test "$hardcode_minus_L" != no; then
17265 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17267 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17273 if test "X$found_a" != "X"; then
17274 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17276 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17279 additional_includedir=
17280 case "$found_dir" in
17282 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17283 additional_includedir="$basedir/include"
17286 if test "X$additional_includedir" != "X"; then
17287 if test "X$additional_includedir" != "X/usr/include"; then
17289 if test "X$additional_includedir" = "X/usr/local/include"; then
17290 if test -n "$GCC"; then
17292 linux*) haveit=yes;;
17296 if test -z "$haveit"; then
17297 for x in $CPPFLAGS $INCBABELTRACE; do
17299 acl_save_prefix="$prefix"
17300 prefix="$acl_final_prefix"
17301 acl_save_exec_prefix="$exec_prefix"
17302 exec_prefix="$acl_final_exec_prefix"
17304 exec_prefix="$acl_save_exec_prefix"
17305 prefix="$acl_save_prefix"
17307 if test "X$x" = "X-I$additional_includedir"; then
17312 if test -z "$haveit"; then
17313 if test -d "$additional_includedir"; then
17314 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17320 if test -n "$found_la"; then
17321 save_libdir="$libdir"
17322 case "$found_la" in
17323 */* | *\\*) . "$found_la" ;;
17324 *) . "./$found_la" ;;
17326 libdir="$save_libdir"
17327 for dep in $dependency_libs; do
17330 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17331 if test "X$additional_libdir" != "X/usr/lib"; then
17333 if test "X$additional_libdir" = "X/usr/local/lib"; then
17334 if test -n "$GCC"; then
17336 linux*) haveit=yes;;
17340 if test -z "$haveit"; then
17342 for x in $LDFLAGS $LIBBABELTRACE; do
17344 acl_save_prefix="$prefix"
17345 prefix="$acl_final_prefix"
17346 acl_save_exec_prefix="$exec_prefix"
17347 exec_prefix="$acl_final_exec_prefix"
17349 exec_prefix="$acl_save_exec_prefix"
17350 prefix="$acl_save_prefix"
17352 if test "X$x" = "X-L$additional_libdir"; then
17357 if test -z "$haveit"; then
17358 if test -d "$additional_libdir"; then
17359 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17363 for x in $LDFLAGS $LTLIBBABELTRACE; do
17365 acl_save_prefix="$prefix"
17366 prefix="$acl_final_prefix"
17367 acl_save_exec_prefix="$exec_prefix"
17368 exec_prefix="$acl_final_exec_prefix"
17370 exec_prefix="$acl_save_exec_prefix"
17371 prefix="$acl_save_prefix"
17373 if test "X$x" = "X-L$additional_libdir"; then
17378 if test -z "$haveit"; then
17379 if test -d "$additional_libdir"; then
17380 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17387 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17388 if test "$enable_rpath" != no; then
17390 for x in $rpathdirs; do
17391 if test "X$x" = "X$dir"; then
17396 if test -z "$haveit"; then
17397 rpathdirs="$rpathdirs $dir"
17400 for x in $ltrpathdirs; do
17401 if test "X$x" = "X$dir"; then
17406 if test -z "$haveit"; then
17407 ltrpathdirs="$ltrpathdirs $dir"
17412 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17415 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17418 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17419 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17425 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17426 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17432 if test "X$rpathdirs" != "X"; then
17433 if test -n "$hardcode_libdir_separator"; then
17435 for found_dir in $rpathdirs; do
17436 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17438 acl_save_libdir="$libdir"
17440 eval flag=\"$hardcode_libdir_flag_spec\"
17441 libdir="$acl_save_libdir"
17442 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17444 for found_dir in $rpathdirs; do
17445 acl_save_libdir="$libdir"
17446 libdir="$found_dir"
17447 eval flag=\"$hardcode_libdir_flag_spec\"
17448 libdir="$acl_save_libdir"
17449 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17453 if test "X$ltrpathdirs" != "X"; then
17454 for found_dir in $ltrpathdirs; do
17455 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17460 ac_save_CPPFLAGS="$CPPFLAGS"
17462 for element in $INCBABELTRACE; do
17464 for x in $CPPFLAGS; do
17466 acl_save_prefix="$prefix"
17467 prefix="$acl_final_prefix"
17468 acl_save_exec_prefix="$exec_prefix"
17469 exec_prefix="$acl_final_exec_prefix"
17471 exec_prefix="$acl_save_exec_prefix"
17472 prefix="$acl_save_prefix"
17474 if test "X$x" = "X$element"; then
17479 if test -z "$haveit"; then
17480 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17486 $as_echo_n "checking for libbabeltrace... " >&6; }
17487 if ${ac_cv_libbabeltrace+:} false; then :
17488 $as_echo_n "(cached) " >&6
17491 ac_save_LIBS="$LIBS"
17492 LIBS="$LIBS $LIBBABELTRACE"
17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h. */
17495 #include <babeltrace/babeltrace.h>
17496 #include <babeltrace/ctf/events.h>
17497 #include <babeltrace/ctf/iterator.h>
17501 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17502 struct bt_ctf_event *event = NULL;
17503 const struct bt_definition *scope;
17505 pos->type = BT_SEEK_BEGIN;
17506 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17507 scope = bt_ctf_get_top_level_scope (event,
17508 BT_STREAM_EVENT_HEADER);
17509 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17515 if ac_fn_c_try_link "$LINENO"; then :
17516 ac_cv_libbabeltrace=yes
17518 ac_cv_libbabeltrace=no
17520 rm -f core conftest.err conftest.$ac_objext \
17521 conftest$ac_exeext conftest.$ac_ext
17522 LIBS="$ac_save_LIBS"
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17526 $as_echo "$ac_cv_libbabeltrace" >&6; }
17527 if test "$ac_cv_libbabeltrace" = yes; then
17528 HAVE_LIBBABELTRACE=yes
17530 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17533 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17535 $as_echo "$LIBBABELTRACE" >&6; }
17537 HAVE_LIBBABELTRACE=no
17538 CPPFLAGS="$ac_save_CPPFLAGS"
17548 CFLAGS=$saved_CFLAGS
17550 if test "$HAVE_LIBBABELTRACE" != yes; then
17551 if test "$with_babeltrace" = yes; then
17552 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17555 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17560 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17567 if test "${nativefile}" != ""; then
17568 case "${nativefile}" in
17569 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
17570 * ) GDB_NM_FILE="${nativefile}"
17572 files="${files} ${GDB_NM_FILE}"
17573 links="${links} nm.h"
17575 cat >>confdefs.h <<_ACEOF
17576 #define GDB_NM_FILE "${GDB_NM_FILE}"
17582 for ac_prog in xsltproc
17584 # Extract the first word of "$ac_prog", so it can be a program name with args.
17585 set dummy $ac_prog; ac_word=$2
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17587 $as_echo_n "checking for $ac_word... " >&6; }
17588 if ${ac_cv_path_XSLTPROC+:} false; then :
17589 $as_echo_n "(cached) " >&6
17593 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17597 for as_dir in $PATH
17600 test -z "$as_dir" && as_dir=.
17601 for ac_exec_ext in '' $ac_executable_extensions; do
17602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17603 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
17604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17614 XSLTPROC=$ac_cv_path_XSLTPROC
17615 if test -n "$XSLTPROC"; then
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17617 $as_echo "$XSLTPROC" >&6; }
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17620 $as_echo "no" >&6; }
17624 test -n "$XSLTPROC" && break
17626 test -n "$XSLTPROC" || XSLTPROC="missing"
17628 if test "x$USE_MAINTAINER_MODE" = xyes; then
17629 if test "${XSLTPROC}" = missing; then
17630 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17635 ac_sources="$files"
17637 while test -n "$ac_sources"; do
17638 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17639 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17640 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
17642 ac_config_links="$ac_config_links $ac_config_links_1"
17648 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17652 # Check whether we will enable the inclusion of unit tests when
17655 # The default value of this option changes depending whether we're on
17656 # development mode (in which case it's "true") or not (in which case
17658 # Check whether --enable-unit-tests was given.
17659 if test "${enable_unit_tests+set}" = set; then :
17660 enableval=$enable_unit_tests; case "${enableval}" in
17661 yes) enable_unittests=true ;;
17662 no) enable_unittests=false ;;
17663 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
17666 enable_unittests=$development
17670 if $enable_unittests; then
17672 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17675 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) gdbsupport/selftest.o selftest-arch.o"
17676 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) gdbsupport/selftest.c selftest-arch.c"
17682 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17683 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
17684 if test "x$GDB_TRANSFORM_NAME" = x; then
17685 GDB_TRANSFORM_NAME=gdb
17690 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17691 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
17692 if test "x$GCORE_TRANSFORM_NAME" = x; then
17693 GCORE_TRANSFORM_NAME=gcore
17697 ac_config_files="$ac_config_files gcore"
17699 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
17702 cat >confcache <<\_ACEOF
17703 # This file is a shell script that caches the results of configure
17704 # tests run on this system so they can be shared between configure
17705 # scripts and configure runs, see configure's option --config-cache.
17706 # It is not useful on other systems. If it contains results you don't
17707 # want to keep, you may remove or edit it.
17709 # config.status only pays attention to the cache file if you give it
17710 # the --recheck option to rerun configure.
17712 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17713 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17714 # following values.
17718 # The following way of writing the cache mishandles newlines in values,
17719 # but we know of no workaround that is simple, portable, and efficient.
17720 # So, we kill variables containing newlines.
17721 # Ultrix sh set writes to stderr and can't be redirected directly,
17722 # and sets the high bit in the cache file unless we assign to the vars.
17724 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17725 eval ac_val=\$$ac_var
17729 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17730 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17733 _ | IFS | as_nl) ;; #(
17734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17735 *) { eval $ac_var=; unset $ac_var;} ;;
17741 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17742 *${as_nl}ac_space=\ *)
17743 # `set' does not quote correctly, so add quotes: double-quote
17744 # substitution turns \\\\ into \\, and sed turns \\ into \.
17747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17750 # `set' quotes correctly as required by POSIX, so do not add quotes.
17751 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17762 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17764 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17765 if test -w "$cache_file"; then
17766 if test "x$cache_file" != "x/dev/null"; then
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17768 $as_echo "$as_me: updating cache $cache_file" >&6;}
17769 if test ! -f "$cache_file" || test -h "$cache_file"; then
17770 cat confcache >"$cache_file"
17772 case $cache_file in #(
17774 mv -f confcache "$cache_file"$$ &&
17775 mv -f "$cache_file"$$ "$cache_file" ;; #(
17777 mv -f confcache "$cache_file" ;;
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17783 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17788 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17789 # Let make expand exec_prefix.
17790 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17792 DEFS=-DHAVE_CONFIG_H
17797 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17798 # 1. Remove the extension, and $U if already installed.
17799 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17800 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17801 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17802 # will be set to the directory where LIBOBJS objects are built.
17803 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17804 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17806 LIBOBJS=$ac_libobjs
17808 LTLIBOBJS=$ac_ltlibobjs
17811 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17812 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17815 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17816 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17819 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17820 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
17821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17825 : "${CONFIG_STATUS=./config.status}"
17827 ac_clean_files_save=$ac_clean_files
17828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17830 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17832 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17834 # Generated by $as_me.
17835 # Run this file to recreate the current configuration.
17836 # Compiler output produced by configure, useful for debugging
17837 # configure, is in config.log if it exists.
17840 ac_cs_recheck=false
17843 SHELL=\${CONFIG_SHELL-$SHELL}
17846 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17847 ## -------------------- ##
17848 ## M4sh Initialization. ##
17849 ## -------------------- ##
17851 # Be more Bourne compatible
17852 DUALCASE=1; export DUALCASE # for MKS sh
17853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17856 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17857 # is contrary to our usage. Disable this feature.
17858 alias -g '${1+"$@"}'='"$@"'
17859 setopt NO_GLOB_SUBST
17861 case `(set -o) 2>/dev/null` in #(
17873 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17874 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17877 # Prefer a ksh shell builtin over an external printf program on Solaris,
17878 # but without wasting forks for bash or zsh.
17879 if test -z "$BASH_VERSION$ZSH_VERSION" \
17880 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17881 as_echo='print -r --'
17882 as_echo_n='print -rn --'
17883 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17884 as_echo='printf %s\n'
17885 as_echo_n='printf %s'
17887 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17888 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17889 as_echo_n='/usr/ucb/echo -n'
17891 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17892 as_echo_n_body='eval
17896 expr "X$arg" : "X\\(.*\\)$as_nl";
17897 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17899 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17901 export as_echo_n_body
17902 as_echo_n='sh -c $as_echo_n_body as_echo'
17904 export as_echo_body
17905 as_echo='sh -c $as_echo_body as_echo'
17908 # The user is always right.
17909 if test "${PATH_SEPARATOR+set}" != set; then
17911 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17912 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17919 # We need space, tab and new line, in precisely that order. Quoting is
17920 # there to prevent editors from complaining about space-tab.
17921 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17922 # splitting by setting IFS to empty value.)
17925 # Find who we are. Look in the path if we contain no directory separator.
17928 *[\\/]* ) as_myself=$0 ;;
17929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17930 for as_dir in $PATH
17933 test -z "$as_dir" && as_dir=.
17934 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17940 # We did not find ourselves, most probably we were run as `sh COMMAND'
17941 # in which case we are not to be found in the path.
17942 if test "x$as_myself" = x; then
17945 if test ! -f "$as_myself"; then
17946 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17950 # Unset variables that we do not need and which cause bugs (e.g. in
17951 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17952 # suppresses any "Segmentation fault" message there. '((' could
17953 # trigger a bug in pdksh 5.2.14.
17954 for as_var in BASH_ENV ENV MAIL MAILPATH
17955 do eval test x\${$as_var+set} = xset \
17956 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17969 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17972 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17973 # ----------------------------------------
17974 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17975 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17976 # script with STATUS, using 1 if that was 0.
17979 as_status=$1; test $as_status -eq 0 && as_status=1
17981 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17982 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17984 $as_echo "$as_me: error: $2" >&2
17985 as_fn_exit $as_status
17989 # as_fn_set_status STATUS
17990 # -----------------------
17991 # Set $? to STATUS, without forking.
17992 as_fn_set_status ()
17995 } # as_fn_set_status
17997 # as_fn_exit STATUS
17998 # -----------------
17999 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18003 as_fn_set_status $1
18009 # Portably unset VAR.
18012 { eval $1=; unset $1;}
18014 as_unset=as_fn_unset
18015 # as_fn_append VAR VALUE
18016 # ----------------------
18017 # Append the text in VALUE to the end of the definition contained in VAR. Take
18018 # advantage of any shell optimizations that allow amortized linear growth over
18019 # repeated appends, instead of the typical quadratic growth present in naive
18021 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18022 eval 'as_fn_append ()
18033 # as_fn_arith ARG...
18034 # ------------------
18035 # Perform arithmetic evaluation on the ARGs, and store the result in the
18036 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18037 # must be portable across $(()) and expr.
18038 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18039 eval 'as_fn_arith ()
18046 as_val=`expr "$@" || test $? -eq 1`
18051 if expr a : '\(a\)' >/dev/null 2>&1 &&
18052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18059 as_basename=basename
18064 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18070 as_me=`$as_basename -- "$0" ||
18071 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18072 X"$0" : 'X\(//\)$' \| \
18073 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18075 sed '/^.*\/\([^/][^/]*\)\/*$/{
18089 # Avoid depending upon Character Ranges.
18090 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18091 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18092 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18093 as_cr_digits='0123456789'
18094 as_cr_alnum=$as_cr_Letters$as_cr_digits
18096 ECHO_C= ECHO_N= ECHO_T=
18097 case `echo -n x` in #(((((
18099 case `echo 'xy\c'` in
18100 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18102 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18109 rm -f conf$$ conf$$.exe conf$$.file
18110 if test -d conf$$.dir; then
18111 rm -f conf$$.dir/conf$$.file
18114 mkdir conf$$.dir 2>/dev/null
18116 if (echo >conf$$.file) 2>/dev/null; then
18117 if ln -s conf$$.file conf$$ 2>/dev/null; then
18119 # ... but there are two gotchas:
18120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18122 # In both cases, we have to default to `cp -pR'.
18123 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18125 elif ln conf$$.file conf$$ 2>/dev/null; then
18133 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18134 rmdir conf$$.dir 2>/dev/null
18139 # Create "$as_dir" as a directory, including parents if necessary.
18144 -*) as_dir=./$as_dir;;
18146 test -d "$as_dir" || eval $as_mkdir_p || {
18150 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18151 *) as_qdir=$as_dir;;
18153 as_dirs="'$as_qdir' $as_dirs"
18154 as_dir=`$as_dirname -- "$as_dir" ||
18155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18156 X"$as_dir" : 'X\(//\)[^/]' \| \
18157 X"$as_dir" : 'X\(//\)$' \| \
18158 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18159 $as_echo X"$as_dir" |
18160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18164 /^X\(\/\/\)[^/].*/{
18177 test -d "$as_dir" && break
18179 test -z "$as_dirs" || eval "mkdir $as_dirs"
18180 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18184 if mkdir -p . 2>/dev/null; then
18185 as_mkdir_p='mkdir -p "$as_dir"'
18187 test -d ./-p && rmdir ./-p
18192 # as_fn_executable_p FILE
18193 # -----------------------
18194 # Test if FILE is an executable regular file.
18195 as_fn_executable_p ()
18197 test -f "$1" && test -x "$1"
18198 } # as_fn_executable_p
18199 as_test_x='test -x'
18200 as_executable_p=as_fn_executable_p
18202 # Sed expression to map a string onto a valid CPP name.
18203 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18205 # Sed expression to map a string onto a valid variable name.
18206 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18210 ## ----------------------------------- ##
18211 ## Main body of $CONFIG_STATUS script. ##
18212 ## ----------------------------------- ##
18214 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18217 # Save the log message, to keep $0 and so on meaningful, and to
18218 # report actual input values of CONFIG_FILES etc. instead of their
18219 # values after options handling.
18221 This file was extended by $as_me, which was
18222 generated by GNU Autoconf 2.69. Invocation command line was
18224 CONFIG_FILES = $CONFIG_FILES
18225 CONFIG_HEADERS = $CONFIG_HEADERS
18226 CONFIG_LINKS = $CONFIG_LINKS
18227 CONFIG_COMMANDS = $CONFIG_COMMANDS
18230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18235 case $ac_config_files in *"
18236 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18239 case $ac_config_headers in *"
18240 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18245 # Files that config.status was made for.
18246 config_files="$ac_config_files"
18247 config_headers="$ac_config_headers"
18248 config_links="$ac_config_links"
18249 config_commands="$ac_config_commands"
18253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18255 \`$as_me' instantiates files and other configuration actions
18256 from templates according to the current configuration. Unless the files
18257 and actions are specified as TAGs, all are instantiated by default.
18259 Usage: $0 [OPTION]... [TAG]...
18261 -h, --help print this help, then exit
18262 -V, --version print version number and configuration settings, then exit
18263 --config print configuration, then exit
18264 -q, --quiet, --silent
18265 do not print progress messages
18266 -d, --debug don't remove temporary files
18267 --recheck update $as_me by reconfiguring in the same conditions
18268 --file=FILE[:TEMPLATE]
18269 instantiate the configuration file FILE
18270 --header=FILE[:TEMPLATE]
18271 instantiate the configuration header FILE
18273 Configuration files:
18276 Configuration headers:
18279 Configuration links:
18282 Configuration commands:
18285 Report bugs to the package provider."
18288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18289 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18292 configured by $0, generated by GNU Autoconf 2.69,
18293 with options \\"\$ac_cs_config\\"
18295 Copyright (C) 2012 Free Software Foundation, Inc.
18296 This config.status script is free software; the Free Software Foundation
18297 gives unlimited permission to copy, distribute and modify it."
18303 test -n "\$AWK" || AWK=awk
18306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18307 # The default lists apply if the user does not specify any file.
18313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18314 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18318 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18330 # Handling of the options.
18331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18333 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18334 $as_echo "$ac_cs_version"; exit ;;
18335 --config | --confi | --conf | --con | --co | --c )
18336 $as_echo "$ac_cs_config"; exit ;;
18337 --debug | --debu | --deb | --de | --d | -d )
18339 --file | --fil | --fi | --f )
18342 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18343 '') as_fn_error $? "missing file argument" ;;
18345 as_fn_append CONFIG_FILES " '$ac_optarg'"
18346 ac_need_defaults=false;;
18347 --header | --heade | --head | --hea )
18350 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18352 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18353 ac_need_defaults=false;;
18355 # Conflict between --help and --header
18356 as_fn_error $? "ambiguous option: \`$1'
18357 Try \`$0 --help' for more information.";;
18358 --help | --hel | -h )
18359 $as_echo "$ac_cs_usage"; exit ;;
18360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18361 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18364 # This is an error.
18365 -*) as_fn_error $? "unrecognized option: \`$1'
18366 Try \`$0 --help' for more information." ;;
18368 *) as_fn_append ac_config_targets " $1"
18369 ac_need_defaults=false ;;
18375 ac_configure_extra_args=
18377 if $ac_cs_silent; then
18379 ac_configure_extra_args="$ac_configure_extra_args --silent"
18383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18384 if \$ac_cs_recheck; then
18385 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18387 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18388 CONFIG_SHELL='$SHELL'
18389 export CONFIG_SHELL
18394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18398 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18399 ## Running $as_me. ##
18405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18409 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18415 # Handling of arguments.
18416 for ac_config_target in $ac_config_targets
18418 case $ac_config_target in
18419 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18420 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
18421 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18422 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
18423 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
18424 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18425 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
18426 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
18427 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18428 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
18430 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18435 # If the user did not use the arguments to specify the items to instantiate,
18436 # then the envvar interface is used. Set only those that are not.
18437 # We use the long form for the default assignment because of an extremely
18438 # bizarre bug on SunOS 4.1.3.
18439 if $ac_need_defaults; then
18440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18442 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18443 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18446 # Have a temporary directory for convenience. Make it in the build tree
18447 # simply because there is no reason against having it here, and in addition,
18448 # creating and moving files from /tmp can sometimes cause problems.
18449 # Hook for its removal unless debugging.
18450 # Note that there is a small window in which the directory will not be cleaned:
18451 # after its creation but before its name has been assigned to `$tmp'.
18455 trap 'exit_status=$?
18456 : "${ac_tmp:=$tmp}"
18457 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18459 trap 'as_fn_exit 1' 1 2 13 15
18461 # Create a (secure) tmp directory for tmp files.
18464 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18468 tmp=./conf$$-$RANDOM
18469 (umask 077 && mkdir "$tmp")
18470 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18473 # Set up the scripts for CONFIG_FILES section.
18474 # No need to generate them if there are no CONFIG_FILES.
18475 # This happens for instance with `./config.status config.h'.
18476 if test -n "$CONFIG_FILES"; then
18478 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18479 ac_cs_awk_getline=:
18480 ac_cs_awk_pipe_init=
18481 ac_cs_awk_read_file='
18482 while ((getline aline < (F[key])) > 0)
18485 ac_cs_awk_pipe_fini=
18487 ac_cs_awk_getline=false
18488 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18489 ac_cs_awk_read_file='
18491 print "cat " F[key] " &&"
18492 '$ac_cs_awk_pipe_init
18493 # The final `:' finishes the AND list.
18494 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18496 ac_cr=`echo X | tr X '\015'`
18497 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18498 # But we know of no other shell where ac_cr would be empty at this
18499 # point, so we can use a bashism as a fallback.
18500 if test "x$ac_cr" = x; then
18501 eval ac_cr=\$\'\\r\'
18503 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18504 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18507 ac_cs_awk_cr=$ac_cr
18510 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18513 # Create commands to substitute file output variables.
18515 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18516 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18517 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18520 } >conf$$files.sh &&
18521 . ./conf$$files.sh ||
18522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18523 rm -f conf$$files.sh
18526 echo "cat >conf$$subs.awk <<_ACEOF" &&
18527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18529 } >conf$$subs.sh ||
18530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18533 for ac_last_try in false false false false false :; do
18534 . ./conf$$subs.sh ||
18535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18537 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18538 if test $ac_delim_n = $ac_delim_num; then
18540 elif $ac_last_try; then
18541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18546 rm -f conf$$subs.sh
18548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18553 s/^/S["/; s/!.*/"]=/
18563 s/\(.\{148\}\)..*/\1/
18565 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18577 s/\(.\{148\}\)..*/\1/
18579 s/["\\]/\\&/g; s/^/"/; s/$/"/
18583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18588 ' <conf$$subs.awk | sed '
18593 ' >>$CONFIG_STATUS || ac_write_fail=1
18594 rm -f conf$$subs.awk
18595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18597 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18598 for (key in S) S_is_set[key] = 1
18600 \$ac_cs_awk_pipe_init
18604 nfields = split(line, field, "@")
18606 len = length(field[1])
18607 for (i = 2; i < nfields; i++) {
18609 keylen = length(key)
18610 if (S_is_set[key]) {
18612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18613 len += length(value) + length(field[++i])
18618 if (nfields == 3 && !substed) {
18620 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18621 \$ac_cs_awk_read_file
18627 \$ac_cs_awk_pipe_fini
18630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18631 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18632 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18635 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18636 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18639 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18640 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18641 # trailing colons and then remove the whole line if VPATH becomes empty
18642 # (actually we leave an empty line to preserve line numbers).
18643 if test "x$srcdir" = x.; then
18644 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18663 fi # test -n "$CONFIG_FILES"
18665 # Set up the scripts for CONFIG_HEADERS section.
18666 # No need to generate them if there are no CONFIG_HEADERS.
18667 # This happens for instance with `./config.status Makefile'.
18668 if test -n "$CONFIG_HEADERS"; then
18669 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18673 # Transform confdefs.h into an awk script `defines.awk', embedded as
18674 # here-document in config.status, that substitutes the proper values into
18675 # config.h.in to produce config.h.
18677 # Create a delimiter string that does not exist in confdefs.h, to ease
18678 # handling of long lines.
18680 for ac_last_try in false false :; do
18681 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18682 if test -z "$ac_tt"; then
18684 elif $ac_last_try; then
18685 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18691 # For the awk script, D is an array of macro values keyed by name,
18692 # likewise P contains macro parameters if any. Preserve backslash
18693 # newline sequences.
18695 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18697 s/.\{148\}/&'"$ac_delim"'/g
18700 s/^[ ]*#[ ]*define[ ][ ]*/ /
18707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18709 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18713 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18714 D["\1"]=" \3\\\\\\n"\\/p
18716 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18721 s/.\{148\}/&'"$ac_delim"'/g
18726 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18729 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18731 ' <confdefs.h | sed '
18732 s/'"$ac_delim"'/"\\\
18733 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18736 for (key in D) D_is_set[key] = 1
18739 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18741 split(line, arg, " ")
18742 if (arg[1] == "#") {
18746 defundef = substr(arg[1], 2)
18749 split(mac1, mac2, "(") #)
18751 prefix = substr(line, 1, index(line, defundef) - 1)
18752 if (D_is_set[macro]) {
18753 # Preserve the white space surrounding the "#".
18754 print prefix "define", macro P[macro] D[macro]
18757 # Replace #undef with comments. This is necessary, for example,
18758 # in the case of _POSIX_SOURCE, which is predefined and required
18759 # on some systems where configure will not decide to define it.
18760 if (defundef == "undef") {
18761 print "/*", prefix defundef, macro, "*/"
18769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18770 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18771 fi # test -n "$CONFIG_HEADERS"
18774 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18779 :[FHLC]) ac_mode=$ac_tag; continue;;
18781 case $ac_mode$ac_tag in
18783 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18784 :[FH]-) ac_tag=-:-;;
18785 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18802 -) ac_f="$ac_tmp/stdin";;
18803 *) # Look for the file first in the build tree, then in the source tree
18804 # (if the path is not absolute). The absolute path cannot be DOS-style,
18805 # because $ac_f cannot contain `:'.
18809 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18811 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18813 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18814 as_fn_append ac_file_inputs " '$ac_f'"
18817 # Let's still pretend it is `configure' which instantiates (i.e., don't
18818 # use $as_me), people would be surprised to read:
18819 # /* config.h. Generated by config.status. */
18820 configure_input='Generated from '`
18821 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18823 if test x"$ac_file" != x-; then
18824 configure_input="$ac_file. $configure_input"
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18826 $as_echo "$as_me: creating $ac_file" >&6;}
18828 # Neutralize special characters interpreted by sed in replacement strings.
18829 case $configure_input in #(
18830 *\&* | *\|* | *\\* )
18831 ac_sed_conf_input=`$as_echo "$configure_input" |
18832 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18833 *) ac_sed_conf_input=$configure_input;;
18837 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18843 ac_dir=`$as_dirname -- "$ac_file" ||
18844 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18845 X"$ac_file" : 'X\(//\)[^/]' \| \
18846 X"$ac_file" : 'X\(//\)$' \| \
18847 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18848 $as_echo X"$ac_file" |
18849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18853 /^X\(\/\/\)[^/].*/{
18866 as_dir="$ac_dir"; as_fn_mkdir_p
18870 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18872 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18873 # A ".." for each directory in $ac_dir_suffix.
18874 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18875 case $ac_top_builddir_sub in
18876 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18877 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18880 ac_abs_top_builddir=$ac_pwd
18881 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18882 # for backward compatibility:
18883 ac_top_builddir=$ac_top_build_prefix
18886 .) # We are building in place.
18888 ac_top_srcdir=$ac_top_builddir_sub
18889 ac_abs_top_srcdir=$ac_pwd ;;
18890 [\\/]* | ?:[\\/]* ) # Absolute name.
18891 ac_srcdir=$srcdir$ac_dir_suffix;
18892 ac_top_srcdir=$srcdir
18893 ac_abs_top_srcdir=$srcdir ;;
18894 *) # Relative name.
18895 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18896 ac_top_srcdir=$ac_top_build_prefix$srcdir
18897 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18899 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18909 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18910 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18915 # If the template does not know about datarootdir, expand it.
18916 # FIXME: This hack should be removed a few years after 2.60.
18917 ac_datarootdir_hack=; ac_datarootdir_seen=
18928 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18929 *datarootdir*) ac_datarootdir_seen=yes;;
18930 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18932 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18935 ac_datarootdir_hack='
18936 s&@datadir@&$datadir&g
18937 s&@docdir@&$docdir&g
18938 s&@infodir@&$infodir&g
18939 s&@localedir@&$localedir&g
18940 s&@mandir@&$mandir&g
18941 s&\\\${datarootdir}&$datarootdir&g' ;;
18945 # Neutralize VPATH when `$srcdir' = `.'.
18946 # Shell code in configure.ac might set extrasub.
18947 # FIXME: do we really want to maintain this feature?
18948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18949 ac_sed_extra="$ac_vpsub
18952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18955 s|@configure_input@|$ac_sed_conf_input|;t t
18956 s&@top_builddir@&$ac_top_builddir_sub&;t t
18957 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18958 s&@srcdir@&$ac_srcdir&;t t
18959 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18960 s&@top_srcdir@&$ac_top_srcdir&;t t
18961 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18962 s&@builddir@&$ac_builddir&;t t
18963 s&@abs_builddir@&$ac_abs_builddir&;t t
18964 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18965 s&@INSTALL@&$ac_INSTALL&;t t
18966 $ac_datarootdir_hack
18968 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18969 if $ac_cs_awk_getline; then
18970 $AWK -f "$ac_tmp/subs.awk"
18972 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18974 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18976 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18977 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18979 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18981 which seems to be undefined. Please make sure it is defined" >&5
18982 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18983 which seems to be undefined. Please make sure it is defined" >&2;}
18985 rm -f "$ac_tmp/stdin"
18987 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18988 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18996 if test x"$ac_file" != x-; then
18998 $as_echo "/* $configure_input */" \
18999 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19000 } >"$ac_tmp/config.h" \
19001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19002 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19004 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19007 mv "$ac_tmp/config.h" "$ac_file" \
19008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19011 $as_echo "/* $configure_input */" \
19012 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19013 || as_fn_error $? "could not create -" "$LINENO" 5
19021 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19024 # Prefer the file from the source tree if names are identical.
19025 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19026 ac_source=$srcdir/$ac_source
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19030 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19032 if test ! -r "$ac_source"; then
19033 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19037 # Try a relative symlink, then a hard link, then a copy.
19039 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19040 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19042 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19043 ln "$ac_source" "$ac_file" 2>/dev/null ||
19044 cp -p "$ac_source" "$ac_file" ||
19045 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19048 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19049 $as_echo "$as_me: executing $ac_file commands" >&6;}
19054 case $ac_file$ac_mode in
19055 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19056 "gcore":F) chmod +x gcore ;;
19058 case x$CONFIG_HEADERS in
19059 xconfig.h:config.in)
19064 case x$CONFIG_HEADERS in
19065 xconfig.h:config.in)
19070 case x$CONFIG_HEADERS in
19071 xconfig.h:config.in)
19076 case x$CONFIG_HEADERS in
19077 xconfig.h:config.in)
19081 "data-directory/Makefile":F)
19082 case x$CONFIG_HEADERS in
19083 xconfig.h:config.in)
19094 ac_clean_files=$ac_clean_files_save
19096 test $ac_write_fail = 0 ||
19097 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19100 # configure is writing to config.log, and then calls config.status.
19101 # config.status does its own redirection, appending to config.log.
19102 # Unfortunately, on DOS this fails, as config.log is still kept open
19103 # by configure, so config.status won't be able to write to it; its
19104 # output is simply discarded. So we exec the FD to /dev/null,
19105 # effectively closing config.log, so it can be properly (re)opened and
19106 # appended to by config.status. When coming back to configure, we
19107 # need to make the FD available again.
19108 if test "$no_create" != yes; then
19110 ac_config_status_args=
19111 test "$silent" = yes &&
19112 ac_config_status_args="$ac_config_status_args --quiet"
19114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19117 # would make configure fail if this is the last instruction.
19118 $ac_cs_success || as_fn_exit 1
19122 # CONFIG_SUBDIRS section.
19124 if test "$no_recursion" != yes; then
19126 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19127 # so they do not pile up.
19128 ac_sub_configure_args=
19130 eval "set x $ac_configure_args"
19134 if test -n "$ac_prev"; then
19139 -cache-file | --cache-file | --cache-fil | --cache-fi \
19140 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19141 ac_prev=cache_file ;;
19142 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19143 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19146 --config-cache | -C)
19148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19152 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19154 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19156 --disable-option-checking)
19160 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19162 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19166 # Always prepend --prefix to ensure using the same prefix
19167 # in subdir configurations.
19168 ac_arg="--prefix=$prefix"
19170 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19172 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19175 if test "$silent" = yes; then
19176 ac_sub_configure_args="--silent $ac_sub_configure_args"
19179 # Always prepend --disable-option-checking to silence warnings, since
19180 # different subdirs can have different --enable and --with options.
19181 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19184 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19186 # Do not complain, so a configure script can configure whichever
19187 # parts of a large source tree are present.
19188 test -d "$srcdir/$ac_dir" || continue
19190 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19191 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19192 $as_echo "$ac_msg" >&6
19193 as_dir="$ac_dir"; as_fn_mkdir_p
19197 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19199 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19200 # A ".." for each directory in $ac_dir_suffix.
19201 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19202 case $ac_top_builddir_sub in
19203 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19204 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19207 ac_abs_top_builddir=$ac_pwd
19208 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19209 # for backward compatibility:
19210 ac_top_builddir=$ac_top_build_prefix
19213 .) # We are building in place.
19215 ac_top_srcdir=$ac_top_builddir_sub
19216 ac_abs_top_srcdir=$ac_pwd ;;
19217 [\\/]* | ?:[\\/]* ) # Absolute name.
19218 ac_srcdir=$srcdir$ac_dir_suffix;
19219 ac_top_srcdir=$srcdir
19220 ac_abs_top_srcdir=$srcdir ;;
19221 *) # Relative name.
19222 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19223 ac_top_srcdir=$ac_top_build_prefix$srcdir
19224 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19226 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19231 # Check for guested configure; otherwise get Cygnus style configure.
19232 if test -f "$ac_srcdir/configure.gnu"; then
19233 ac_sub_configure=$ac_srcdir/configure.gnu
19234 elif test -f "$ac_srcdir/configure"; then
19235 ac_sub_configure=$ac_srcdir/configure
19236 elif test -f "$ac_srcdir/configure.in"; then
19237 # This should be Cygnus configure.
19238 ac_sub_configure=$ac_aux_dir/configure
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19241 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19245 # The recursion is here.
19246 if test -n "$ac_sub_configure"; then
19247 # Make the cache file name correct relative to the subdirectory.
19248 case $cache_file in
19249 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19250 *) # Relative name.
19251 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19254 { $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
19255 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19256 # The eval makes quoting arguments work.
19257 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19258 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19259 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19265 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19267 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}