2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 enable_option_checking=no
592 ac_subst_vars='LTLIBOBJS
683 READLINE_TEXI_INCFLAG
706 HAVE_NATIVE_GCORE_TARGET
733 INSTALL_STRIP_PROGRAM
762 MAINTAINER_MODE_FALSE
791 program_transform_name
802 ac_subst_files='host_makefile_frag'
804 enable_option_checking
805 enable_maintainer_mode
808 with_separate_debug_dir
810 with_relocated_sources
812 with_auto_load_safe_path
842 enable_build_warnings
843 enable_gdb_build_warnings
853 with_libbabeltrace_prefix
855 ac_precious_vars='build_alias
872 ac_subdirs_all='testsuite
877 # Initialize some variables set by options.
879 ac_init_version=false
880 ac_unrecognized_opts=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
891 program_transform_name=s,x,x,
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 # Accept the important Cygnus configure options, so we can diagnose typos.
943 case $ac_dashdash$ac_option in
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
965 cache_file=config.cache ;;
967 -datadir | --datadir | --datadi | --datad)
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
979 -disable-* | --disable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
993 eval enable_$ac_useropt=no ;;
995 -docdir | --docdir | --docdi | --doc | --do)
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
1005 -enable-* | --enable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_$ac_useropt"
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1019 eval enable_$ac_useropt=\$ac_optarg ;;
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 htmldir=$ac_optarg ;;
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1064 -libdir | --libdir | --libdi | --libd)
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1155 -psdir | --psdir | --psdi | --psd | --ps)
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1183 -site=* | --site=* | --sit=*)
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=\$ac_optarg ;;
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1239 eval with_$ac_useropt=no ;;
1242 # Obsolete; use --with-x.
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) as_fn_error "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information."
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error "missing argument to $ac_option"
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1292 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1310 # Be sure to have absolute directory names.
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1323 target=$target_alias
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1330 If a cross compiler is detected then cross compile mode will be used." >&2
1331 elif test "x$build_alias" != "x$host_alias"; then
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339 test "$silent" = yes && exec 6>/dev/null
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 as_fn_error "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 as_fn_error "pwd does not report name of working directory"
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1382 ac_srcdir_defaulted=no
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 # Report the --help message.
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1416 \`configure' configures this package to adapt to many kinds of systems.
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1423 Defaults for the options are specified in brackets.
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1479 --x-includes=DIR X include files are in DIR
1480 --x-libraries=DIR X library files are in DIR
1483 --build=BUILD configure for building on BUILD [guessed]
1484 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1485 --target=TARGET configure for building compilers for TARGET [HOST]
1489 if test -n "$ac_init_help"; then
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --enable-maintainer-mode enable make rules and dependencies not useful
1498 (and sometimes confusing) to the casual installer
1499 --enable-plugins Enable support for plugins
1500 --disable-largefile omit support for large files
1501 --enable-targets=TARGETS
1502 alternative target configurations
1503 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1504 --disable-gdbcli disable command-line interface (CLI)
1505 --disable-gdbmi disable machine-interface (MI)
1506 --enable-tui enable full-screen terminal user interface (TUI)
1507 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1508 --enable-profiling enable profiling of GDB
1509 --disable-rpath do not hardcode runtime library paths
1510 --enable-libmcheck Try linking with -lmcheck if available
1511 --enable-werror treat compile warnings as errors
1512 --enable-build-warnings enable build-time compiler warnings if gcc is used
1513 --enable-gdb-build-warnings
1514 enable GDB specific build-time compiler warnings if
1516 --enable-sim link gdb with simulator
1517 --enable-multi-ice build the multi-ice-gdb-server
1518 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-separate-debug-dir=PATH
1525 look for global separate debug info in this path
1527 --with-gdb-datadir=PATH look for global separate data files in this path
1529 --with-relocated-sources=PATH
1530 automatically relocate this path for source files
1531 --with-auto-load-dir=PATH
1532 directories from which to load auto-loaded scripts
1533 [$debugdir:$datadir/auto-load]
1534 --with-auto-load-safe-path=PATH
1535 directories safe to hold auto-loaded files
1536 [--with-auto-load-dir]
1537 --without-auto-load-safe-path
1538 do not restrict auto-loaded files locations
1539 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1540 --with-curses use the curses library instead of the termcap
1542 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1543 --with-bugurl=URL Direct users to URL to report a bug
1544 --with-system-zlib use installed libz
1545 --with-gnu-ld assume the C compiler uses GNU ld default=no
1546 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1547 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1548 --with-iconv-bin=PATH specify where to find the iconv program
1549 --with-system-readline use installed readline library
1550 --with-jit-reader-dir=PATH
1551 directory to load the JIT readers from
1552 --with-expat include expat support (auto/yes/no)
1553 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1554 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1555 --with-python[=PYTHON] include python support
1556 (auto/yes/no/<python-program>)
1557 --with-guile[=GUILE] include guile support
1558 (auto/yes/no/<guile-version>/<pkg-config-program>)
1559 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1560 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1561 --without-libipt-prefix don't search for libipt in includedir and libdir
1562 --without-included-regex
1563 don't use included regex; this is the default on
1564 systems with version 2 of the GNU C library (use
1565 with caution on other system)
1566 --with-sysroot[=DIR] search for usr/lib et al within DIR
1567 --with-system-gdbinit=PATH
1568 automatically load a system-wide gdbinit file
1569 --with-lzma support lzma compression (auto/yes/no)
1570 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1571 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1572 --with-tcl directory containing tcl configuration (tclConfig.sh)
1573 --with-tk directory containing tk configuration (tkConfig.sh)
1574 --with-x use the X Window System
1575 --with-babeltrace include babeltrace support (auto/yes/no)
1576 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1577 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 LIBS libraries to pass to the linker, e.g. -l<library>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1587 CXX C++ compiler command
1588 CXXFLAGS C++ compiler flags
1590 MAKEINFO Parent configure detects if it is of sufficient version.
1592 Parameters for MAKEINFO.
1593 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1594 the first program found out of: `bison -y', `byacc', `yacc'.
1595 YFLAGS The list of arguments that will be passed by default to $YACC.
1596 This script will default YFLAGS to the empty string to avoid a
1597 default value of `-d' given by some make applications.
1598 XMKMF Path to xmkmf, Makefile generator for X Window System
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1603 Report bugs to the package provider.
1608 if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
1610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611 test -d "$ac_dir" ||
1612 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1633 .) # We are building in place.
1635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
1638 ac_srcdir=$srcdir$ac_dir_suffix;
1639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1655 $SHELL "$ac_srcdir/configure" --help=recursive
1657 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 cd "$ac_pwd" || { ac_status=$?; break; }
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1667 generated by GNU Autoconf 2.64
1669 Copyright (C) 2009 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1676 ## ------------------------ ##
1677 ## Autoconf initialization. ##
1678 ## ------------------------ ##
1680 # ac_fn_c_try_compile LINENO
1681 # --------------------------
1682 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_compile ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext
1687 if { { ac_try="$ac_compile"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_compile") 2>conftest.err
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest.$ac_objext; then :
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 } # ac_fn_c_try_compile
1718 # ac_fn_cxx_try_compile LINENO
1719 # ----------------------------
1720 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_cxx_try_compile ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_cxx_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 } # ac_fn_cxx_try_compile
1756 # ac_fn_c_try_cpp LINENO
1757 # ----------------------
1758 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_cpp conftest.$ac_ext"
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } >/dev/null && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1796 # the include files in INCLUDES and setting the cache variable VAR
1798 ac_fn_c_check_header_mongrel ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1805 $as_echo_n "(cached) " >&6
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1811 # Is the header compilable?
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1813 $as_echo_n "checking $2 usability... " >&6; }
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 ac_header_compiler=yes
1822 ac_header_compiler=no
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1826 $as_echo "$ac_header_compiler" >&6; }
1828 # Is the header present?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1830 $as_echo_n "checking $2 presence... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1835 if ac_fn_c_try_cpp "$LINENO"; then :
1836 ac_header_preproc=yes
1838 ac_header_preproc=no
1840 rm -f conftest.err conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1842 $as_echo "$ac_header_preproc" >&6; }
1844 # So? What about this header?
1845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1848 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1854 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1856 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1858 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1860 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1870 eval "$3=\$ac_header_compiler"
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 } # ac_fn_c_check_header_mongrel
1880 # ac_fn_c_try_run LINENO
1881 # ----------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1883 # that executables *can* be run.
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_link"
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>&5
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1898 { { case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_try") 2>&5
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; }; }; then :
1910 $as_echo "$as_me: program exited with status $ac_status" >&5
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=$ac_status
1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1923 # -------------------------------------------------------
1924 # Tests whether HEADER exists and can be compiled using the include files in
1925 # INCLUDES, setting the cache variable VAR accordingly.
1926 ac_fn_c_check_header_compile ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1932 $as_echo_n "(cached) " >&6
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1939 if ac_fn_c_try_compile "$LINENO"; then :
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_c_check_header_compile
1953 # ac_fn_c_try_link LINENO
1954 # -----------------------
1955 # Try to link conftest.$ac_ext, and return whether this succeeded.
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 rm -f conftest.$ac_objext conftest$ac_exeext
1960 if { { ac_try="$ac_link"
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_link") 2>conftest.err
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && {
1976 test -z "$ac_c_werror_flag" ||
1977 test ! -s conftest.err
1978 } && test -s conftest$ac_exeext && {
1979 test "$cross_compiling" = yes ||
1980 $as_test_x conftest$ac_exeext
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1989 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1990 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1991 # interfere with the next link command; also delete a directory that is
1992 # left behind by Apple's compiler. We do this before executing the actions.
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 } # ac_fn_c_try_link
1999 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2000 # --------------------------------------------
2001 # Tries to find the compile-time value of EXPR in a program that includes
2002 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2004 ac_fn_c_compute_int ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 if test "$cross_compiling" = yes; then
2008 # Depending upon the size, compute the lo and hi bounds.
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2015 static int test_array [1 - 2 * !(($2) >= 0)];
2022 if ac_fn_c_try_compile "$LINENO"; then :
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2031 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 ac_hi=$ac_mid; break
2041 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2042 if test $ac_lo -le $ac_mid; then
2046 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2057 static int test_array [1 - 2 * !(($2) < 0)];
2064 if ac_fn_c_try_compile "$LINENO"; then :
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2073 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081 ac_lo=$ac_mid; break
2083 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2084 if test $ac_mid -le $ac_hi; then
2088 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 # Binary search between lo and hi bounds.
2099 while test "x$ac_lo" != "x$ac_hi"; do
2100 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2114 if ac_fn_c_try_compile "$LINENO"; then :
2117 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2129 static long int longval () { return $2; }
2130 static unsigned long int ulongval () { return $2; }
2137 FILE *f = fopen ("conftest.val", "w");
2142 long int i = longval ();
2145 fprintf (f, "%ld", i);
2149 unsigned long int i = ulongval ();
2152 fprintf (f, "%lu", i);
2154 /* Do not output a trailing newline, as this causes \r\n confusion
2155 on some platforms. */
2156 return ferror (f) || fclose (f) != 0;
2162 if ac_fn_c_try_run "$LINENO"; then :
2163 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2168 conftest.$ac_objext conftest.beam conftest.$ac_ext
2172 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175 } # ac_fn_c_compute_int
2177 # ac_fn_c_check_func LINENO FUNC VAR
2178 # ----------------------------------
2179 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2180 ac_fn_c_check_func ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2186 $as_echo_n "(cached) " >&6
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2190 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2192 #define $2 innocuous_$2
2194 /* System header to define __stub macros and hopefully few prototypes,
2195 which can conflict with char $2 (); below.
2196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2197 <limits.h> exists even on freestanding compilers. */
2200 # include <limits.h>
2202 # include <assert.h>
2207 /* Override any GCC internal prototype to avoid an error.
2208 Use char because int might match the return type of a GCC
2209 builtin and then its argument prototype would still apply. */
2214 /* The GNU C library defines this for functions which it implements
2215 to always fail with ENOSYS. Some functions are actually named
2216 something starting with __ and the normal name is an alias. */
2217 #if defined __stub_$2 || defined __stub___$2
2229 if ac_fn_c_try_link "$LINENO"; then :
2234 rm -f core conftest.err conftest.$ac_objext \
2235 conftest$ac_exeext conftest.$ac_ext
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239 $as_echo "$ac_res" >&6; }
2240 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242 } # ac_fn_c_check_func
2244 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2245 # -------------------------------------------
2246 # Tests whether TYPE exists after having included INCLUDES, setting cache
2247 # variable VAR accordingly.
2248 ac_fn_c_check_type ()
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2254 $as_echo_n "(cached) " >&6
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2282 if ac_fn_c_try_compile "$LINENO"; then :
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2296 } # ac_fn_c_check_type
2298 # ac_fn_c_check_decl LINENO SYMBOL VAR
2299 # ------------------------------------
2300 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2301 ac_fn_c_check_decl ()
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 as_decl_name=`echo $2|sed 's/ *(.*//'`
2305 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2307 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2308 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2309 $as_echo_n "(cached) " >&6
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2317 #ifndef $as_decl_name
2319 (void) $as_decl_use;
2321 (void) $as_decl_name;
2329 if ac_fn_c_try_compile "$LINENO"; then :
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2339 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341 } # ac_fn_c_check_decl
2343 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2344 # ----------------------------------------------------
2345 # Tries to find if the field MEMBER exists in type AGGR, after including
2346 # INCLUDES, setting cache variable VAR accordingly.
2347 ac_fn_c_check_member ()
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2351 $as_echo_n "checking for $2.$3... " >&6; }
2352 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2353 $as_echo_n "(cached) " >&6
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2368 if ac_fn_c_try_compile "$LINENO"; then :
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2378 if (sizeof ac_aggr.$3)
2384 if ac_fn_c_try_compile "$LINENO"; then :
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398 } # ac_fn_c_check_member
2399 cat >config.log <<_ACEOF
2400 This file contains any messages produced by compilers while
2401 running configure, to aid debugging if configure makes a mistake.
2403 It was created by $as_me, which was
2404 generated by GNU Autoconf 2.64. Invocation command line was
2416 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2417 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2418 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2419 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2420 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2422 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2423 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2425 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2426 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2427 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2428 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2429 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2430 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2431 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 $as_echo "PATH: $as_dir"
2456 # Keep a trace of the command line.
2457 # Strip out --no-create and --no-recursion so they do not pile up.
2458 # Strip out --silent because we don't want to record it for future runs.
2459 # Also quote any args containing shell meta-characters.
2460 # Make two passes to allow for proper duplicate-argument suppression.
2464 ac_must_keep_next=false
2470 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2472 | -silent | --silent | --silen | --sile | --sil)
2475 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2480 as_fn_append ac_configure_args1 " '$ac_arg'"
2481 if test $ac_must_keep_next = true; then
2482 ac_must_keep_next=false # Got value, back to normal.
2485 *=* | --config-cache | -C | -disable-* | --disable-* \
2486 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2487 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2488 | -with-* | --with-* | -without-* | --without-* | --x)
2489 case "$ac_configure_args0 " in
2490 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2493 -* ) ac_must_keep_next=true ;;
2496 as_fn_append ac_configure_args " '$ac_arg'"
2501 { ac_configure_args0=; unset ac_configure_args0;}
2502 { ac_configure_args1=; unset ac_configure_args1;}
2504 # When interrupted or exit'd, cleanup temporary files, and complete
2505 # config.log. We remove comments because anyway the quotes in there
2506 # would cause problems or look ugly.
2507 # WARNING: Use '\'' to represent an apostrophe within the trap.
2508 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2509 trap 'exit_status=$?
2510 # Save into config.log some information that might help in debugging.
2515 ## ---------------- ##
2516 ## Cache variables. ##
2517 ## ---------------- ##
2520 # The following way of writing the cache mishandles newlines in values,
2522 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2523 eval ac_val=\$$ac_var
2527 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2528 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2531 _ | IFS | as_nl) ;; #(
2532 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2533 *) { eval $ac_var=; unset $ac_var;} ;;
2538 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2539 *${as_nl}ac_space=\ *)
2541 "s/'\''/'\''\\\\'\'''\''/g;
2542 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2545 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2553 ## ----------------- ##
2554 ## Output variables. ##
2555 ## ----------------- ##
2558 for ac_var in $ac_subst_vars
2560 eval ac_val=\$$ac_var
2562 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2564 $as_echo "$ac_var='\''$ac_val'\''"
2568 if test -n "$ac_subst_files"; then
2570 ## ------------------- ##
2571 ## File substitutions. ##
2572 ## ------------------- ##
2575 for ac_var in $ac_subst_files
2577 eval ac_val=\$$ac_var
2579 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2581 $as_echo "$ac_var='\''$ac_val'\''"
2586 if test -s confdefs.h; then
2596 test "$ac_signal" != 0 &&
2597 $as_echo "$as_me: caught signal $ac_signal"
2598 $as_echo "$as_me: exit $exit_status"
2600 rm -f core *.core core.conftest.* &&
2601 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2604 for ac_signal in 1 2 13 15; do
2605 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2609 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2610 rm -f -r conftest* confdefs.h
2612 $as_echo "/* confdefs.h */" > confdefs.h
2614 # Predefined preprocessor variables.
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_NAME "$PACKAGE_NAME"
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_STRING "$PACKAGE_STRING"
2632 cat >>confdefs.h <<_ACEOF
2633 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2636 cat >>confdefs.h <<_ACEOF
2637 #define PACKAGE_URL "$PACKAGE_URL"
2641 # Let the site file select an alternate cache file if it wants to.
2642 # Prefer an explicitly selected file to automatically selected ones.
2645 if test -n "$CONFIG_SITE"; then
2646 ac_site_file1=$CONFIG_SITE
2647 elif test "x$prefix" != xNONE; then
2648 ac_site_file1=$prefix/share/config.site
2649 ac_site_file2=$prefix/etc/config.site
2651 ac_site_file1=$ac_default_prefix/share/config.site
2652 ac_site_file2=$ac_default_prefix/etc/config.site
2654 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2656 test "x$ac_site_file" = xNONE && continue
2657 if test -r "$ac_site_file"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2659 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2660 sed 's/^/| /' "$ac_site_file" >&5
2665 if test -r "$cache_file"; then
2666 # Some versions of bash will fail to source /dev/null (special
2667 # files actually), so we avoid doing that.
2668 if test -f "$cache_file"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2670 $as_echo "$as_me: loading cache $cache_file" >&6;}
2672 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2673 *) . "./$cache_file";;
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2678 $as_echo "$as_me: creating cache $cache_file" >&6;}
2682 # Check that the precious variables saved in the cache have kept the same
2684 ac_cache_corrupted=false
2685 for ac_var in $ac_precious_vars; do
2686 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2687 eval ac_new_set=\$ac_env_${ac_var}_set
2688 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2689 eval ac_new_val=\$ac_env_${ac_var}_value
2690 case $ac_old_set,$ac_new_set in
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2693 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2694 ac_cache_corrupted=: ;;
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2697 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2698 ac_cache_corrupted=: ;;
2701 if test "x$ac_old_val" != "x$ac_new_val"; then
2702 # differences in whitespace do not lead to failure.
2703 ac_old_val_w=`echo x $ac_old_val`
2704 ac_new_val_w=`echo x $ac_new_val`
2705 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2707 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2708 ac_cache_corrupted=:
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2711 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2712 eval $ac_var=\$ac_old_val
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2715 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2717 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2720 # Pass precious variables to config.status.
2721 if test "$ac_new_set" = set; then
2723 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2724 *) ac_arg=$ac_var=$ac_new_val ;;
2726 case " $ac_configure_args " in
2727 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2728 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2732 if $ac_cache_corrupted; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2736 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2737 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2739 ## -------------------- ##
2740 ## Main body of script. ##
2741 ## -------------------- ##
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753 ac_config_headers="$ac_config_headers config.h:config.in"
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2757 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2758 # Check whether --enable-maintainer-mode was given.
2759 if test "${enable_maintainer_mode+set}" = set; then :
2760 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2762 USE_MAINTAINER_MODE=no
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2766 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2767 if test $USE_MAINTAINER_MODE = yes; then
2768 MAINTAINER_MODE_TRUE=
2769 MAINTAINER_MODE_FALSE='#'
2771 MAINTAINER_MODE_TRUE='#'
2772 MAINTAINER_MODE_FALSE=
2775 MAINT=$MAINTAINER_MODE_TRUE
2779 # Set the 'development' global.
2780 . $srcdir/../bfd/development.sh
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2789 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if test "${ac_cv_prog_CC+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2826 if test -z "$ac_cv_prog_CC"; then
2828 # Extract the first word of "gcc", so it can be a program name with args.
2829 set dummy gcc; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2833 $as_echo_n "(cached) " >&6
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_ac_ct_CC="gcc"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856 if test -n "$ac_ct_CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2858 $as_echo "$ac_ct_CC" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2864 if test "x$ac_ct_CC" = x; then
2867 case $cross_compiling:$ac_tool_warned in
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871 ac_tool_warned=yes ;;
2879 if test -z "$CC"; then
2880 if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2882 set dummy ${ac_tool_prefix}cc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if test "${ac_cv_prog_CC+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_CC="${ac_tool_prefix}cc"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2920 if test -z "$CC"; then
2921 # Extract the first word of "cc", so it can be a program name with args.
2922 set dummy cc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if test "${ac_cv_prog_CC+set}" = set; then :
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2940 ac_prog_rejected=yes
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 if test $ac_prog_rejected = yes; then
2952 # We found a bogon in the path, so make sure we never use it.
2953 set dummy $ac_cv_prog_CC
2955 if test $# != 0; then
2956 # We chose a different compiler from the bogus one.
2957 # However, it has the same basename, so the bogon will be chosen
2958 # first if we set CC to just the basename; use the full file name.
2960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2976 if test -z "$CC"; then
2977 if test -n "$ac_tool_prefix"; then
2978 for ac_prog in cl.exe
2980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if test "${ac_cv_prog_CC+set}" = set; then :
2985 $as_echo_n "(cached) " >&6
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3017 test -n "$CC" && break
3020 if test -z "$CC"; then
3022 for ac_prog in cl.exe
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3029 $as_echo_n "(cached) " >&6
3031 if test -n "$ac_ct_CC"; then
3032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041 ac_cv_prog_ac_ct_CC="$ac_prog"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3052 if test -n "$ac_ct_CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3054 $as_echo "$ac_ct_CC" >&6; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3061 test -n "$ac_ct_CC" && break
3064 if test "x$ac_ct_CC" = x; then
3067 case $cross_compiling:$ac_tool_warned in
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071 ac_tool_warned=yes ;;
3080 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error "no acceptable C compiler found in \$PATH
3083 See \`config.log' for more details." "$LINENO" 5; }
3085 # Provide some information about the compiler.
3086 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3089 for ac_option in --version -v -V -qversion; do
3090 { { ac_try="$ac_compiler $ac_option >&5"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096 $as_echo "$ac_try_echo"; } >&5
3097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3099 if test -s conftest.err; then
3101 ... rest of stderr output deleted ...
3102 10q' conftest.err >conftest.er1
3103 cat conftest.er1 >&5
3104 rm -f conftest.er1 conftest.err
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3121 ac_clean_files_save=$ac_clean_files
3122 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3123 # Try to create an executable without -o first, disregard a.out.
3124 # It will help us diagnose broken compilers, and finding out an intuition
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3127 $as_echo_n "checking for C compiler default output file name... " >&6; }
3128 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3130 # The possible output files:
3131 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3134 for ac_file in $ac_files
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3143 if { { ac_try="$ac_link_default"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link_default") 2>&5
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; then :
3154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3156 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3157 # so that the user can short-circuit this test for compilers unknown to
3159 for ac_file in $ac_files ''
3161 test -f "$ac_file" || continue
3163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3166 # We found the default executable, but exeext='' is most
3170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 # We set ac_cv_exeext here because the later test for it is not
3175 # safe: cross compilers may not add the suffix if given an `-o'
3176 # argument, so we may need to know it at that point already.
3177 # Even if this section looks crufty: it has the advantage of
3184 test "$ac_cv_exeext" = no && ac_cv_exeext=
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3190 $as_echo "$ac_file" >&6; }
3191 if test -z "$ac_file"; then :
3192 $as_echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 { as_fn_set_status 77
3198 as_fn_error "C compiler cannot create executables
3199 See \`config.log' for more details." "$LINENO" 5; }; }
3201 ac_exeext=$ac_cv_exeext
3203 # Check that the compiler produces executables we can run. If not, either
3204 # the compiler is broken, or we cross compile.
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3206 $as_echo_n "checking whether the C compiler works... " >&6; }
3207 # If not cross compiling, check that we can run a simple program.
3208 if test "$cross_compiling" != yes; then
3209 if { ac_try='./$ac_file'
3210 { { case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_try") 2>&5
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; }; then
3222 if test "$cross_compiling" = maybe; then
3225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 as_fn_error "cannot run C compiled programs.
3228 If you meant to cross compile, use \`--host'.
3229 See \`config.log' for more details." "$LINENO" 5; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234 $as_echo "yes" >&6; }
3236 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3237 ac_clean_files=$ac_clean_files_save
3238 # Check that the compiler produces executables we can run. If not, either
3239 # the compiler is broken, or we cross compile.
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3241 $as_echo_n "checking whether we are cross compiling... " >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3243 $as_echo "$cross_compiling" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3246 $as_echo_n "checking for suffix of executables... " >&6; }
3247 if { { ac_try="$ac_link"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link") 2>&5
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }; then :
3258 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3259 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3260 # work properly (i.e., refer to `conftest.exe'), while it won't with
3262 for ac_file in conftest.exe conftest conftest.*; do
3263 test -f "$ac_file" || continue
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3266 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error "cannot compute suffix of executables: cannot compile and link
3275 See \`config.log' for more details." "$LINENO" 5; }
3277 rm -f conftest$ac_cv_exeext
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3279 $as_echo "$ac_cv_exeext" >&6; }
3281 rm -f conftest.$ac_ext
3282 EXEEXT=$ac_cv_exeext
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3285 $as_echo_n "checking for suffix of object files... " >&6; }
3286 if test "${ac_cv_objext+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3300 rm -f conftest.o conftest.obj
3301 if { { ac_try="$ac_compile"
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308 (eval "$ac_compile") 2>&5
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }; then :
3312 for ac_file in conftest.o conftest.obj conftest.*; do
3313 test -f "$ac_file" || continue;
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3321 $as_echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error "cannot compute suffix of object files: cannot compile
3327 See \`config.log' for more details." "$LINENO" 5; }
3329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3332 $as_echo "$ac_cv_objext" >&6; }
3333 OBJEXT=$ac_cv_objext
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3336 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3337 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3338 $as_echo_n "(cached) " >&6
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3354 if ac_fn_c_try_compile "$LINENO"; then :
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3364 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3365 if test $ac_compiler_gnu = yes; then
3370 ac_test_CFLAGS=${CFLAGS+set}
3371 ac_save_CFLAGS=$CFLAGS
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3373 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3374 if test "${ac_cv_prog_cc_g+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
3377 ac_save_c_werror_flag=$ac_c_werror_flag
3378 ac_c_werror_flag=yes
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3392 if ac_fn_c_try_compile "$LINENO"; then :
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3407 if ac_fn_c_try_compile "$LINENO"; then :
3410 ac_c_werror_flag=$ac_save_c_werror_flag
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3423 if ac_fn_c_try_compile "$LINENO"; then :
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_c_werror_flag=$ac_save_c_werror_flag
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3434 $as_echo "$ac_cv_prog_cc_g" >&6; }
3435 if test "$ac_test_CFLAGS" = set; then
3436 CFLAGS=$ac_save_CFLAGS
3437 elif test $ac_cv_prog_cc_g = yes; then
3438 if test "$GCC" = yes; then
3444 if test "$GCC" = yes; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3451 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3452 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3453 $as_echo_n "(cached) " >&6
3455 ac_cv_prog_cc_c89=no
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3461 #include <sys/types.h>
3462 #include <sys/stat.h>
3463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3464 struct buf { int x; };
3465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3466 static char *e (p, i)
3472 static char *f (char * (*g) (char **, int), char **p, ...)
3477 s = g (p, va_arg (v,int));
3482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3483 function prototypes and stuff, but not '\xHH' hex character constants.
3484 These don't provoke an error unfortunately, instead are silently treated
3485 as 'x'. The following induces an error, until -std is added to get
3486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3487 array size at least. It's necessary to write '\x00'==0 to get something
3488 that's true only with -std. */
3489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3491 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3492 inside strings and character constants. */
3494 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3496 int test (int i, double x);
3497 struct s1 {int (*f) (int a);};
3498 struct s2 {int (*f) (double a);};
3499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3505 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3510 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3511 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513 CC="$ac_save_CC $ac_arg"
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_cv_prog_cc_c89=$ac_arg
3517 rm -f core conftest.err conftest.$ac_objext
3518 test "x$ac_cv_prog_cc_c89" != "xno" && break
3520 rm -f conftest.$ac_ext
3525 case "x$ac_cv_prog_cc_c89" in
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3528 $as_echo "none needed" >&6; } ;;
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3531 $as_echo "unsupported" >&6; } ;;
3533 CC="$CC $ac_cv_prog_cc_c89"
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3535 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3537 if test "x$ac_cv_prog_cc_c89" != xno; then :
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 ac_cpp='$CXXCPP $CPPFLAGS'
3549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3552 if test -z "$CXX"; then
3553 if test -n "$CCC"; then
3556 if test -n "$ac_tool_prefix"; then
3557 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if test "${ac_cv_prog_CXX+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3566 if test -n "$CXX"; then
3567 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 if test -n "$CXX"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3589 $as_echo "$CXX" >&6; }
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3596 test -n "$CXX" && break
3599 if test -z "$CXX"; then
3601 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3603 # Extract the first word of "$ac_prog", so it can be a program name with args.
3604 set dummy $ac_prog; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
3610 if test -n "$ac_ct_CXX"; then
3611 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3620 ac_cv_prog_ac_ct_CXX="$ac_prog"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3631 if test -n "$ac_ct_CXX"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3633 $as_echo "$ac_ct_CXX" >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3640 test -n "$ac_ct_CXX" && break
3643 if test "x$ac_ct_CXX" = x; then
3646 case $cross_compiling:$ac_tool_warned in
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3650 ac_tool_warned=yes ;;
3658 # Provide some information about the compiler.
3659 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3662 for ac_option in --version -v -V -qversion; do
3663 { { ac_try="$ac_compiler $ac_option >&5"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3672 if test -s conftest.err; then
3674 ... rest of stderr output deleted ...
3675 10q' conftest.err >conftest.er1
3676 cat conftest.er1 >&5
3677 rm -f conftest.er1 conftest.err
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3684 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3685 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3702 if ac_fn_cxx_try_compile "$LINENO"; then :
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3712 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3713 if test $ac_compiler_gnu = yes; then
3718 ac_test_CXXFLAGS=${CXXFLAGS+set}
3719 ac_save_CXXFLAGS=$CXXFLAGS
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3721 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3722 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3725 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3726 ac_cxx_werror_flag=yes
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3740 if ac_fn_cxx_try_compile "$LINENO"; then :
3741 ac_cv_prog_cxx_g=yes
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3755 if ac_fn_cxx_try_compile "$LINENO"; then :
3758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3771 if ac_fn_cxx_try_compile "$LINENO"; then :
3772 ac_cv_prog_cxx_g=yes
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3782 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3783 if test "$ac_test_CXXFLAGS" = set; then
3784 CXXFLAGS=$ac_save_CXXFLAGS
3785 elif test $ac_cv_prog_cxx_g = yes; then
3786 if test "$GXX" = yes; then
3792 if test "$GXX" = yes; then
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3813 # On Suns, sometimes $CPP names a directory.
3814 if test -n "$CPP" && test -d "$CPP"; then
3817 if test -z "$CPP"; then
3818 if test "${ac_cv_prog_CPP+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
3821 # Double quotes because CPP needs to be expanded
3822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3825 for ac_c_preproc_warn_flag in '' yes
3827 # Use a header file that comes with gcc, so configuring glibc
3828 # with a fresh cross-compiler works.
3829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3830 # <limits.h> exists even on freestanding compilers.
3831 # On the NeXT, cc -E runs the code through the compiler's parser,
3832 # not just through cpp. "Syntax error" is here to catch this case.
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3836 # include <limits.h>
3838 # include <assert.h>
3842 if ac_fn_c_try_cpp "$LINENO"; then :
3845 # Broken: fails on valid input.
3848 rm -f conftest.err conftest.$ac_ext
3850 # OK, works on sane cases. Now check whether nonexistent headers
3851 # can be detected and how.
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854 #include <ac_nonexistent.h>
3856 if ac_fn_c_try_cpp "$LINENO"; then :
3857 # Broken: success on invalid input.
3860 # Passes both tests.
3864 rm -f conftest.err conftest.$ac_ext
3867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3868 rm -f conftest.err conftest.$ac_ext
3869 if $ac_preproc_ok; then :
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3882 $as_echo "$CPP" >&6; }
3884 for ac_c_preproc_warn_flag in '' yes
3886 # Use a header file that comes with gcc, so configuring glibc
3887 # with a fresh cross-compiler works.
3888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889 # <limits.h> exists even on freestanding compilers.
3890 # On the NeXT, cc -E runs the code through the compiler's parser,
3891 # not just through cpp. "Syntax error" is here to catch this case.
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3895 # include <limits.h>
3897 # include <assert.h>
3901 if ac_fn_c_try_cpp "$LINENO"; then :
3904 # Broken: fails on valid input.
3907 rm -f conftest.err conftest.$ac_ext
3909 # OK, works on sane cases. Now check whether nonexistent headers
3910 # can be detected and how.
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913 #include <ac_nonexistent.h>
3915 if ac_fn_c_try_cpp "$LINENO"; then :
3916 # Broken: success on invalid input.
3919 # Passes both tests.
3923 rm -f conftest.err conftest.$ac_ext
3926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3927 rm -f conftest.err conftest.$ac_ext
3928 if $ac_preproc_ok; then :
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3934 See \`config.log' for more details." "$LINENO" 5; }
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3945 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3946 if test "${ac_cv_path_GREP+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3949 if test -z "$GREP"; then
3950 ac_path_GREP_found=false
3951 # Loop through the user's path and test for each of PROGNAME-LIST
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956 test -z "$as_dir" && as_dir=.
3957 for ac_prog in grep ggrep; do
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3960 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3961 # Check for GNU ac_path_GREP and select it if it is found.
3962 # Check for GNU $ac_path_GREP
3963 case `"$ac_path_GREP" --version 2>&1` in
3965 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3968 $as_echo_n 0123456789 >"conftest.in"
3971 cat "conftest.in" "conftest.in" >"conftest.tmp"
3972 mv "conftest.tmp" "conftest.in"
3973 cp "conftest.in" "conftest.nl"
3974 $as_echo 'GREP' >> "conftest.nl"
3975 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3977 as_fn_arith $ac_count + 1 && ac_count=$as_val
3978 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3979 # Best one so far, save it but keep looking for a better one
3980 ac_cv_path_GREP="$ac_path_GREP"
3981 ac_path_GREP_max=$ac_count
3983 # 10*(2^10) chars as input seems more than enough
3984 test $ac_count -gt 10 && break
3986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989 $ac_path_GREP_found && break 3
3994 if test -z "$ac_cv_path_GREP"; then
3995 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3998 ac_cv_path_GREP=$GREP
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4003 $as_echo "$ac_cv_path_GREP" >&6; }
4004 GREP="$ac_cv_path_GREP"
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4008 $as_echo_n "checking for egrep... " >&6; }
4009 if test "${ac_cv_path_EGREP+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
4012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4013 then ac_cv_path_EGREP="$GREP -E"
4015 if test -z "$EGREP"; then
4016 ac_path_EGREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022 test -z "$as_dir" && as_dir=.
4023 for ac_prog in egrep; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4027 # Check for GNU ac_path_EGREP and select it if it is found.
4028 # Check for GNU $ac_path_EGREP
4029 case `"$ac_path_EGREP" --version 2>&1` in
4031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4034 $as_echo_n 0123456789 >"conftest.in"
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
4040 $as_echo 'EGREP' >> "conftest.nl"
4041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043 as_fn_arith $ac_count + 1 && ac_count=$as_val
4044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_EGREP="$ac_path_EGREP"
4047 ac_path_EGREP_max=$ac_count
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055 $ac_path_EGREP_found && break 3
4060 if test -z "$ac_cv_path_EGREP"; then
4061 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4064 ac_cv_path_EGREP=$EGREP
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4070 $as_echo "$ac_cv_path_EGREP" >&6; }
4071 EGREP="$ac_cv_path_EGREP"
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4075 $as_echo_n "checking for ANSI C header files... " >&6; }
4076 if test "${ac_cv_header_stdc+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_header_stdc=yes
4097 ac_cv_header_stdc=no
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 if test $ac_cv_header_stdc = yes; then
4102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 $EGREP "memchr" >/dev/null 2>&1; then :
4112 ac_cv_header_stdc=no
4118 if test $ac_cv_header_stdc = yes; then
4119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126 $EGREP "free" >/dev/null 2>&1; then :
4129 ac_cv_header_stdc=no
4135 if test $ac_cv_header_stdc = yes; then
4136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4137 if test "$cross_compiling" = yes; then :
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4144 #if ((' ' & 0x0FF) == 0x020)
4145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4148 # define ISLOWER(c) \
4149 (('a' <= (c) && (c) <= 'i') \
4150 || ('j' <= (c) && (c) <= 'r') \
4151 || ('s' <= (c) && (c) <= 'z'))
4152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4160 for (i = 0; i < 256; i++)
4161 if (XOR (islower (i), ISLOWER (i))
4162 || toupper (i) != TOUPPER (i))
4167 if ac_fn_c_try_run "$LINENO"; then :
4170 ac_cv_header_stdc=no
4172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4173 conftest.$ac_objext conftest.beam conftest.$ac_ext
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4179 $as_echo "$ac_cv_header_stdc" >&6; }
4180 if test $ac_cv_header_stdc = yes; then
4182 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4186 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4187 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4188 inttypes.h stdint.h unistd.h
4190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4191 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4193 eval as_val=\$$as_ac_Header
4194 if test "x$as_val" = x""yes; then :
4195 cat >>confdefs.h <<_ACEOF
4196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4205 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4206 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4213 if test "$MINIX" = yes; then
4215 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4218 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4221 $as_echo "#define _MINIX 1" >>confdefs.h
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4227 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4228 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4234 # define __EXTENSIONS__ 1
4235 $ac_includes_default
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245 ac_cv_safe_to_define___extensions__=yes
4247 ac_cv_safe_to_define___extensions__=no
4249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4252 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4253 test $ac_cv_safe_to_define___extensions__ = yes &&
4254 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4256 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4258 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4260 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4262 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4266 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4267 for ac_t in install-sh install.sh shtool; do
4268 if test -f "$ac_dir/$ac_t"; then
4270 ac_install_sh="$ac_aux_dir/$ac_t -c"
4275 if test -z "$ac_aux_dir"; then
4276 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4279 # These three variables are undocumented and unsupported,
4280 # and are intended to be withdrawn in a future Autoconf release.
4281 # They can cause serious problems if a builder's source tree is in a directory
4282 # whose full name contains unusual characters.
4283 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4284 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4285 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4288 # Make sure we can run config.sub.
4289 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4290 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4293 $as_echo_n "checking build system type... " >&6; }
4294 if test "${ac_cv_build+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
4297 ac_build_alias=$build_alias
4298 test "x$ac_build_alias" = x &&
4299 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4300 test "x$ac_build_alias" = x &&
4301 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4302 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4303 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4307 $as_echo "$ac_cv_build" >&6; }
4308 case $ac_cv_build in
4310 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4313 ac_save_IFS=$IFS; IFS='-'
4319 # Remember, the first character of IFS is used to create $*,
4320 # except with old shells:
4323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4327 $as_echo_n "checking host system type... " >&6; }
4328 if test "${ac_cv_host+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4331 if test "x$host_alias" = x; then
4332 ac_cv_host=$ac_cv_build
4334 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4335 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4340 $as_echo "$ac_cv_host" >&6; }
4343 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4346 ac_save_IFS=$IFS; IFS='-'
4352 # Remember, the first character of IFS is used to create $*,
4353 # except with old shells:
4356 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4360 $as_echo_n "checking target system type... " >&6; }
4361 if test "${ac_cv_target+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4364 if test "x$target_alias" = x; then
4365 ac_cv_target=$ac_cv_host
4367 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4368 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4373 $as_echo "$ac_cv_target" >&6; }
4374 case $ac_cv_target in
4376 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4378 target=$ac_cv_target
4379 ac_save_IFS=$IFS; IFS='-'
4385 # Remember, the first character of IFS is used to create $*,
4386 # except with old shells:
4389 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4392 # The aliases save the names the user supplied, while $host etc.
4393 # will get canonicalized.
4394 test -n "$target_alias" &&
4395 test "$program_prefix$program_suffix$program_transform_name" = \
4397 program_prefix=${target_alias}-
4399 # The tests for host and target for $enable_largefile require
4404 # As the $enable_largefile decision depends on --enable-plugins we must set it
4405 # even in directories otherwise not depending on the $plugins option.
4409 for ac_header in dlfcn.h
4411 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4413 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4414 cat >>confdefs.h <<_ACEOF
4415 #define HAVE_DLFCN_H 1
4422 for ac_header in windows.h
4424 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4426 if test "x$ac_cv_header_windows_h" = x""yes; then :
4427 cat >>confdefs.h <<_ACEOF
4428 #define HAVE_WINDOWS_H 1
4436 # Check whether --enable-plugins was given.
4437 if test "${enable_plugins+set}" = set; then :
4438 enableval=$enable_plugins; case "${enableval}" in
4441 if test "$maybe_plugins" != "yes" ; then
4442 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4446 plugins=$maybe_plugins
4450 if test "$plugins" = "yes"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4452 $as_echo_n "checking for library containing dlopen... " >&6; }
4453 if test "${ac_cv_search_dlopen+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4456 ac_func_search_save_LIBS=$LIBS
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4460 /* Override any GCC internal prototype to avoid an error.
4461 Use char because int might match the return type of a GCC
4462 builtin and then its argument prototype would still apply. */
4475 for ac_lib in '' dl; do
4476 if test -z "$ac_lib"; then
4477 ac_res="none required"
4480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4482 if ac_fn_c_try_link "$LINENO"; then :
4483 ac_cv_search_dlopen=$ac_res
4485 rm -f core conftest.err conftest.$ac_objext \
4487 if test "${ac_cv_search_dlopen+set}" = set; then :
4491 if test "${ac_cv_search_dlopen+set}" = set; then :
4494 ac_cv_search_dlopen=no
4497 LIBS=$ac_func_search_save_LIBS
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4500 $as_echo "$ac_cv_search_dlopen" >&6; }
4501 ac_res=$ac_cv_search_dlopen
4502 if test "$ac_res" != no; then :
4503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4511 sparc-*-solaris*|i[3-7]86-*-solaris*)
4512 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4513 # are mutually exclusive; and without procfs support, the bfd/ elf module
4514 # cannot provide certain routines such as elfcore_write_prpsinfo
4515 # or elfcore_write_prstatus. So unless the user explicitly requested
4516 # large-file support through the --enable-largefile switch, disable
4517 # large-file support in favor of procfs support.
4518 test "${target}" = "${host}" -a "x$plugins" = xno \
4519 && : ${enable_largefile="no"}
4523 # Check whether --enable-largefile was given.
4524 if test "${enable_largefile+set}" = set; then :
4525 enableval=$enable_largefile;
4528 if test "$enable_largefile" != no; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4531 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4532 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4535 ac_cv_sys_largefile_CC=no
4536 if test "$GCC" != yes; then
4539 # IRIX 6.2 and later do not support large files by default,
4540 # so use the C compiler's -n32 option if that helps.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #include <sys/types.h>
4544 /* Check that off_t can represent 2**63 - 1 correctly.
4545 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4546 since some C++ compilers masquerading as C compilers
4547 incorrectly reject 9223372036854775807. */
4548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4550 && LARGE_OFF_T % 2147483647 == 1)
4560 if ac_fn_c_try_compile "$LINENO"; then :
4563 rm -f core conftest.err conftest.$ac_objext
4565 if ac_fn_c_try_compile "$LINENO"; then :
4566 ac_cv_sys_largefile_CC=' -n32'; break
4568 rm -f core conftest.err conftest.$ac_objext
4572 rm -f conftest.$ac_ext
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4576 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4577 if test "$ac_cv_sys_largefile_CC" != no; then
4578 CC=$CC$ac_cv_sys_largefile_CC
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4582 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4583 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <sys/types.h>
4590 /* Check that off_t can represent 2**63 - 1 correctly.
4591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4592 since some C++ compilers masquerading as C compilers
4593 incorrectly reject 9223372036854775807. */
4594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4596 && LARGE_OFF_T % 2147483647 == 1)
4606 if ac_fn_c_try_compile "$LINENO"; then :
4607 ac_cv_sys_file_offset_bits=no; break
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612 #define _FILE_OFFSET_BITS 64
4613 #include <sys/types.h>
4614 /* Check that off_t can represent 2**63 - 1 correctly.
4615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4616 since some C++ compilers masquerading as C compilers
4617 incorrectly reject 9223372036854775807. */
4618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4620 && LARGE_OFF_T % 2147483647 == 1)
4630 if ac_fn_c_try_compile "$LINENO"; then :
4631 ac_cv_sys_file_offset_bits=64; break
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_cv_sys_file_offset_bits=unknown
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4639 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4640 case $ac_cv_sys_file_offset_bits in #(
4643 cat >>confdefs.h <<_ACEOF
4644 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4649 if test $ac_cv_sys_file_offset_bits = unknown; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4651 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4652 if test "${ac_cv_sys_large_files+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 #include <sys/types.h>
4659 /* Check that off_t can represent 2**63 - 1 correctly.
4660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4661 since some C++ compilers masquerading as C compilers
4662 incorrectly reject 9223372036854775807. */
4663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4665 && LARGE_OFF_T % 2147483647 == 1)
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_cv_sys_large_files=no; break
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 #define _LARGE_FILES 1
4682 #include <sys/types.h>
4683 /* Check that off_t can represent 2**63 - 1 correctly.
4684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4685 since some C++ compilers masquerading as C compilers
4686 incorrectly reject 9223372036854775807. */
4687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4689 && LARGE_OFF_T % 2147483647 == 1)
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700 ac_cv_sys_large_files=1; break
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 ac_cv_sys_large_files=unknown
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4708 $as_echo "$ac_cv_sys_large_files" >&6; }
4709 case $ac_cv_sys_large_files in #(
4712 cat >>confdefs.h <<_ACEOF
4713 #define _LARGE_FILES $ac_cv_sys_large_files
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4726 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4727 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4730 am_cv_prog_cc_stdc=no
4732 # Don't try gcc -ansi; that turns off useful extensions and
4733 # breaks some systems' header files.
4734 # AIX -qlanglvl=ansi
4735 # Ultrix and OSF/1 -std1
4736 # HP-UX 10.20 and later -Ae
4737 # HP-UX older versions -Aa -D_HPUX_SOURCE
4738 # SVR4 -Xc -D__EXTENSIONS__
4739 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4741 CC="$ac_save_CC $ac_arg"
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4746 #include <sys/types.h>
4747 #include <sys/stat.h>
4748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4749 struct buf { int x; };
4750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4751 static char *e (p, i)
4757 static char *f (char * (*g) (char **, int), char **p, ...)
4762 s = g (p, va_arg (v,int));
4766 int test (int i, double x);
4767 struct s1 {int (*f) (int a);};
4768 struct s2 {int (*f) (double a);};
4769 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4777 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784 am_cv_prog_cc_stdc="$ac_arg"; break
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 if test -z "$am_cv_prog_cc_stdc"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4794 $as_echo "none needed" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4797 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4799 case "x$am_cv_prog_cc_stdc" in
4801 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4804 # expand $ac_aux_dir to an absolute path
4805 am_aux_dir=`cd $ac_aux_dir && pwd`
4807 if test x"${install_sh}" != xset; then
4810 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4812 install_sh="\${SHELL} $am_aux_dir/install-sh"
4816 # Installed binaries are usually stripped using `strip' when the user
4817 # run `make install-strip'. However `strip' might not be the right
4818 # tool to use in cross-compilation environments, therefore Automake
4819 # will honor the `STRIP' environment variable to overrule this program.
4820 if test "$cross_compiling" != no; then
4821 if test -n "$ac_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4823 set dummy ${ac_tool_prefix}strip; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_STRIP+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4829 if test -n "$STRIP"; then
4830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 STRIP=$ac_cv_prog_STRIP
4850 if test -n "$STRIP"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4852 $as_echo "$STRIP" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4860 if test -z "$ac_cv_prog_STRIP"; then
4862 # Extract the first word of "strip", so it can be a program name with args.
4863 set dummy strip; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -n "$ac_ct_STRIP"; then
4870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_ac_ct_STRIP="strip"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4890 if test -n "$ac_ct_STRIP"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4892 $as_echo "$ac_ct_STRIP" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4898 if test "x$ac_ct_STRIP" = x; then
4901 case $cross_compiling:$ac_tool_warned in
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905 ac_tool_warned=yes ;;
4910 STRIP="$ac_cv_prog_STRIP"
4914 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4918 for ac_dir in .. "$srcdir"/..; do
4919 for ac_t in install-sh install.sh shtool; do
4920 if test -f "$ac_dir/$ac_t"; then
4922 ac_install_sh="$ac_aux_dir/$ac_t -c"
4927 if test -z "$ac_aux_dir"; then
4928 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4931 # These three variables are undocumented and unsupported,
4932 # and are intended to be withdrawn in a future Autoconf release.
4933 # They can cause serious problems if a builder's source tree is in a directory
4934 # whose full name contains unusual characters.
4935 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4936 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4937 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4941 test "$program_prefix" != NONE &&
4942 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4943 # Use a double $ so make ignores it.
4944 test "$program_suffix" != NONE &&
4945 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4946 # Double any \ or $.
4947 # By default was `s,x,x', remove it if useless.
4948 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4949 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4952 # We require a C++11 compiler. Check if one is available, and if
4953 # necessary, set CXX_DIALECT to some -std=xxx switch.
4955 ax_cxx_compile_cxx11_required=true
4957 ac_cpp='$CXXCPP $CPPFLAGS'
4958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4964 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4965 if test "${ax_cv_cxx_compile_cxx11+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4972 // If the compiler admits that it is not ready for C++11, why torture it?
4973 // Hopefully, this will speed up the test.
4977 #error "This is not a C++ compiler"
4979 #elif __cplusplus < 201103L
4981 #error "This is not a C++11 compiler"
4988 namespace test_static_assert
4991 template <typename T>
4994 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4999 namespace test_final_override
5007 struct Derived : public Base
5009 virtual void f() override {}
5014 namespace test_double_right_angle_brackets
5017 template < typename T >
5020 typedef check<void> single_type;
5021 typedef check<check<void>> double_type;
5022 typedef check<check<check<void>>> triple_type;
5023 typedef check<check<check<check<void>>>> quadruple_type;
5027 namespace test_decltype
5040 namespace test_type_deduction
5043 template < typename T1, typename T2 >
5046 static const bool value = false;
5049 template < typename T >
5050 struct is_same<T, T>
5052 static const bool value = true;
5055 template < typename T1, typename T2 >
5057 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5063 test(const int c, volatile int v)
5065 static_assert(is_same<int, decltype(0)>::value == true, "");
5066 static_assert(is_same<int, decltype(c)>::value == false, "");
5067 static_assert(is_same<int, decltype(v)>::value == false, "");
5070 auto sumi = ac + av + 'x';
5071 auto sumf = ac + av + 1.0;
5072 static_assert(is_same<int, decltype(ac)>::value == true, "");
5073 static_assert(is_same<int, decltype(av)>::value == true, "");
5074 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5075 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5076 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5077 return (sumf > 0.0) ? sumi : add(c, v);
5082 namespace test_noexcept
5085 int f() { return 0; }
5086 int g() noexcept { return 0; }
5088 static_assert(noexcept(f()) == false, "");
5089 static_assert(noexcept(g()) == true, "");
5093 namespace test_constexpr
5096 template < typename CharT >
5097 unsigned long constexpr
5098 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5100 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5103 template < typename CharT >
5104 unsigned long constexpr
5105 strlen_c(const CharT *const s) noexcept
5107 return strlen_c_r(s, 0UL);
5110 static_assert(strlen_c("") == 0UL, "");
5111 static_assert(strlen_c("1") == 1UL, "");
5112 static_assert(strlen_c("example") == 7UL, "");
5113 static_assert(strlen_c("another\0example") == 7UL, "");
5117 namespace test_rvalue_references
5123 static constexpr int value = N;
5126 answer<1> f(int&) { return answer<1>(); }
5127 answer<2> f(const int&) { return answer<2>(); }
5128 answer<3> f(int&&) { return answer<3>(); }
5135 static_assert(decltype(f(i))::value == 1, "");
5136 static_assert(decltype(f(c))::value == 2, "");
5137 static_assert(decltype(f(0))::value == 3, "");
5142 namespace test_uniform_initialization
5147 static const int zero {};
5148 static const int one {1};
5151 static_assert(test::zero == 0, "");
5152 static_assert(test::one == 1, "");
5156 namespace test_lambdas
5162 auto lambda1 = [](){};
5163 auto lambda2 = lambda1;
5171 auto a = [](int i, int j){ return i + j; }(1, 2);
5172 auto b = []() -> int { return '0'; }();
5173 auto c = [=](){ return a + b; }();
5174 auto d = [&](){ return c; }();
5175 auto e = [a, &b](int x) mutable {
5176 const auto identity = [](int y){ return y; };
5177 for (auto i = 0; i < a; ++i)
5179 return x + identity(a + b);
5181 return a + b + c + d + e;
5187 const auto nullary = [](){ return 0; };
5188 const auto unary = [](int x){ return x; };
5189 using nullary_t = decltype(nullary);
5190 using unary_t = decltype(unary);
5191 const auto higher1st = [](nullary_t f){ return f(); };
5192 const auto higher2nd = [unary](nullary_t f1){
5193 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5195 return higher1st(nullary) + higher2nd(nullary)(unary);
5200 namespace test_variadic_templates
5206 template <int N0, int... N1toN>
5207 struct sum<N0, N1toN...>
5209 static constexpr auto value = N0 + sum<N1toN...>::value;
5215 static constexpr auto value = 0;
5218 static_assert(sum<>::value == 0, "");
5219 static_assert(sum<1>::value == 1, "");
5220 static_assert(sum<23>::value == 23, "");
5221 static_assert(sum<1, 2>::value == 3, "");
5222 static_assert(sum<5, 5, 11>::value == 21, "");
5223 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5227 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5228 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5230 namespace test_template_alias_sfinae
5235 template<typename T>
5236 using member = typename T::member_type;
5238 template<typename T>
5241 template<typename T>
5242 void func(member<T>*) {}
5246 void test() { func<foo>(0); }
5250 } // namespace cxx11
5252 #endif // __cplusplus >= 201103L
5257 if ac_fn_cxx_try_compile "$LINENO"; then :
5258 ax_cv_cxx_compile_cxx11=yes
5260 ax_cv_cxx_compile_cxx11=no
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5265 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5266 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5270 if test x$ac_success = xno; then
5271 for switch in -std=gnu++11 -std=gnu++0x; do
5272 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5274 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5275 if { as_var=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5276 $as_echo_n "(cached) " >&6
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5284 // If the compiler admits that it is not ready for C++11, why torture it?
5285 // Hopefully, this will speed up the test.
5289 #error "This is not a C++ compiler"
5291 #elif __cplusplus < 201103L
5293 #error "This is not a C++11 compiler"
5300 namespace test_static_assert
5303 template <typename T>
5306 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5311 namespace test_final_override
5319 struct Derived : public Base
5321 virtual void f() override {}
5326 namespace test_double_right_angle_brackets
5329 template < typename T >
5332 typedef check<void> single_type;
5333 typedef check<check<void>> double_type;
5334 typedef check<check<check<void>>> triple_type;
5335 typedef check<check<check<check<void>>>> quadruple_type;
5339 namespace test_decltype
5352 namespace test_type_deduction
5355 template < typename T1, typename T2 >
5358 static const bool value = false;
5361 template < typename T >
5362 struct is_same<T, T>
5364 static const bool value = true;
5367 template < typename T1, typename T2 >
5369 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5375 test(const int c, volatile int v)
5377 static_assert(is_same<int, decltype(0)>::value == true, "");
5378 static_assert(is_same<int, decltype(c)>::value == false, "");
5379 static_assert(is_same<int, decltype(v)>::value == false, "");
5382 auto sumi = ac + av + 'x';
5383 auto sumf = ac + av + 1.0;
5384 static_assert(is_same<int, decltype(ac)>::value == true, "");
5385 static_assert(is_same<int, decltype(av)>::value == true, "");
5386 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5387 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5388 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5389 return (sumf > 0.0) ? sumi : add(c, v);
5394 namespace test_noexcept
5397 int f() { return 0; }
5398 int g() noexcept { return 0; }
5400 static_assert(noexcept(f()) == false, "");
5401 static_assert(noexcept(g()) == true, "");
5405 namespace test_constexpr
5408 template < typename CharT >
5409 unsigned long constexpr
5410 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5412 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5415 template < typename CharT >
5416 unsigned long constexpr
5417 strlen_c(const CharT *const s) noexcept
5419 return strlen_c_r(s, 0UL);
5422 static_assert(strlen_c("") == 0UL, "");
5423 static_assert(strlen_c("1") == 1UL, "");
5424 static_assert(strlen_c("example") == 7UL, "");
5425 static_assert(strlen_c("another\0example") == 7UL, "");
5429 namespace test_rvalue_references
5435 static constexpr int value = N;
5438 answer<1> f(int&) { return answer<1>(); }
5439 answer<2> f(const int&) { return answer<2>(); }
5440 answer<3> f(int&&) { return answer<3>(); }
5447 static_assert(decltype(f(i))::value == 1, "");
5448 static_assert(decltype(f(c))::value == 2, "");
5449 static_assert(decltype(f(0))::value == 3, "");
5454 namespace test_uniform_initialization
5459 static const int zero {};
5460 static const int one {1};
5463 static_assert(test::zero == 0, "");
5464 static_assert(test::one == 1, "");
5468 namespace test_lambdas
5474 auto lambda1 = [](){};
5475 auto lambda2 = lambda1;
5483 auto a = [](int i, int j){ return i + j; }(1, 2);
5484 auto b = []() -> int { return '0'; }();
5485 auto c = [=](){ return a + b; }();
5486 auto d = [&](){ return c; }();
5487 auto e = [a, &b](int x) mutable {
5488 const auto identity = [](int y){ return y; };
5489 for (auto i = 0; i < a; ++i)
5491 return x + identity(a + b);
5493 return a + b + c + d + e;
5499 const auto nullary = [](){ return 0; };
5500 const auto unary = [](int x){ return x; };
5501 using nullary_t = decltype(nullary);
5502 using unary_t = decltype(unary);
5503 const auto higher1st = [](nullary_t f){ return f(); };
5504 const auto higher2nd = [unary](nullary_t f1){
5505 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5507 return higher1st(nullary) + higher2nd(nullary)(unary);
5512 namespace test_variadic_templates
5518 template <int N0, int... N1toN>
5519 struct sum<N0, N1toN...>
5521 static constexpr auto value = N0 + sum<N1toN...>::value;
5527 static constexpr auto value = 0;
5530 static_assert(sum<>::value == 0, "");
5531 static_assert(sum<1>::value == 1, "");
5532 static_assert(sum<23>::value == 23, "");
5533 static_assert(sum<1, 2>::value == 3, "");
5534 static_assert(sum<5, 5, 11>::value == 21, "");
5535 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5539 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5540 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5542 namespace test_template_alias_sfinae
5547 template<typename T>
5548 using member = typename T::member_type;
5550 template<typename T>
5553 template<typename T>
5554 void func(member<T>*) {}
5558 void test() { func<foo>(0); }
5562 } // namespace cxx11
5564 #endif // __cplusplus >= 201103L
5569 if ac_fn_cxx_try_compile "$LINENO"; then :
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 eval ac_res=\$$cachevar
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5579 $as_echo "$ac_res" >&6; }
5580 if eval test x\$$cachevar = xyes; then
5581 CXX_DIALECT="$switch"
5588 if test x$ac_success = xno; then
5589 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
5590 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5592 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5593 if { as_var=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5594 $as_echo_n "(cached) " >&6
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5602 // If the compiler admits that it is not ready for C++11, why torture it?
5603 // Hopefully, this will speed up the test.
5607 #error "This is not a C++ compiler"
5609 #elif __cplusplus < 201103L
5611 #error "This is not a C++11 compiler"
5618 namespace test_static_assert
5621 template <typename T>
5624 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5629 namespace test_final_override
5637 struct Derived : public Base
5639 virtual void f() override {}
5644 namespace test_double_right_angle_brackets
5647 template < typename T >
5650 typedef check<void> single_type;
5651 typedef check<check<void>> double_type;
5652 typedef check<check<check<void>>> triple_type;
5653 typedef check<check<check<check<void>>>> quadruple_type;
5657 namespace test_decltype
5670 namespace test_type_deduction
5673 template < typename T1, typename T2 >
5676 static const bool value = false;
5679 template < typename T >
5680 struct is_same<T, T>
5682 static const bool value = true;
5685 template < typename T1, typename T2 >
5687 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5693 test(const int c, volatile int v)
5695 static_assert(is_same<int, decltype(0)>::value == true, "");
5696 static_assert(is_same<int, decltype(c)>::value == false, "");
5697 static_assert(is_same<int, decltype(v)>::value == false, "");
5700 auto sumi = ac + av + 'x';
5701 auto sumf = ac + av + 1.0;
5702 static_assert(is_same<int, decltype(ac)>::value == true, "");
5703 static_assert(is_same<int, decltype(av)>::value == true, "");
5704 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5705 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5706 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5707 return (sumf > 0.0) ? sumi : add(c, v);
5712 namespace test_noexcept
5715 int f() { return 0; }
5716 int g() noexcept { return 0; }
5718 static_assert(noexcept(f()) == false, "");
5719 static_assert(noexcept(g()) == true, "");
5723 namespace test_constexpr
5726 template < typename CharT >
5727 unsigned long constexpr
5728 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5730 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5733 template < typename CharT >
5734 unsigned long constexpr
5735 strlen_c(const CharT *const s) noexcept
5737 return strlen_c_r(s, 0UL);
5740 static_assert(strlen_c("") == 0UL, "");
5741 static_assert(strlen_c("1") == 1UL, "");
5742 static_assert(strlen_c("example") == 7UL, "");
5743 static_assert(strlen_c("another\0example") == 7UL, "");
5747 namespace test_rvalue_references
5753 static constexpr int value = N;
5756 answer<1> f(int&) { return answer<1>(); }
5757 answer<2> f(const int&) { return answer<2>(); }
5758 answer<3> f(int&&) { return answer<3>(); }
5765 static_assert(decltype(f(i))::value == 1, "");
5766 static_assert(decltype(f(c))::value == 2, "");
5767 static_assert(decltype(f(0))::value == 3, "");
5772 namespace test_uniform_initialization
5777 static const int zero {};
5778 static const int one {1};
5781 static_assert(test::zero == 0, "");
5782 static_assert(test::one == 1, "");
5786 namespace test_lambdas
5792 auto lambda1 = [](){};
5793 auto lambda2 = lambda1;
5801 auto a = [](int i, int j){ return i + j; }(1, 2);
5802 auto b = []() -> int { return '0'; }();
5803 auto c = [=](){ return a + b; }();
5804 auto d = [&](){ return c; }();
5805 auto e = [a, &b](int x) mutable {
5806 const auto identity = [](int y){ return y; };
5807 for (auto i = 0; i < a; ++i)
5809 return x + identity(a + b);
5811 return a + b + c + d + e;
5817 const auto nullary = [](){ return 0; };
5818 const auto unary = [](int x){ return x; };
5819 using nullary_t = decltype(nullary);
5820 using unary_t = decltype(unary);
5821 const auto higher1st = [](nullary_t f){ return f(); };
5822 const auto higher2nd = [unary](nullary_t f1){
5823 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5825 return higher1st(nullary) + higher2nd(nullary)(unary);
5830 namespace test_variadic_templates
5836 template <int N0, int... N1toN>
5837 struct sum<N0, N1toN...>
5839 static constexpr auto value = N0 + sum<N1toN...>::value;
5845 static constexpr auto value = 0;
5848 static_assert(sum<>::value == 0, "");
5849 static_assert(sum<1>::value == 1, "");
5850 static_assert(sum<23>::value == 23, "");
5851 static_assert(sum<1, 2>::value == 3, "");
5852 static_assert(sum<5, 5, 11>::value == 21, "");
5853 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5857 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5858 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5860 namespace test_template_alias_sfinae
5865 template<typename T>
5866 using member = typename T::member_type;
5868 template<typename T>
5871 template<typename T>
5872 void func(member<T>*) {}
5876 void test() { func<foo>(0); }
5880 } // namespace cxx11
5882 #endif // __cplusplus >= 201103L
5887 if ac_fn_cxx_try_compile "$LINENO"; then :
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 eval ac_res=\$$cachevar
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5897 $as_echo "$ac_res" >&6; }
5898 if eval test x\$$cachevar = xyes; then
5899 CXX_DIALECT="$switch"
5906 ac_cpp='$CPP $CPPFLAGS'
5907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5911 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5912 if test x$ac_success = xno; then
5913 as_fn_error "*** A compiler with support for C++11 language features is required." "$LINENO" 5
5916 if test x$ac_success = xno; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5919 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5923 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5930 # Dependency checking.
5931 rm -rf .tst 2>/dev/null
5932 mkdir .tst 2>/dev/null
5933 if test -d .tst; then
5938 rmdir .tst 2>/dev/null
5940 DEPDIR="${am__leading_dot}deps"
5942 ac_config_commands="$ac_config_commands depdir"
5945 depcc="$CC" am_compiler_list=
5947 am_depcomp=$ac_aux_dir/depcomp
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5949 $as_echo_n "checking dependency style of $depcc... " >&6; }
5950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5953 if test -f "$am_depcomp"; then
5954 # We make a subdir and do the tests there. Otherwise we can end up
5955 # making bogus files that we don't know about and never remove. For
5956 # instance it was reported that on HP-UX the gcc test will end up
5957 # making a dummy file named `D' -- because `-MD' means `put the output
5960 # Copy depcomp to subdir because otherwise we won't find it if we're
5961 # using a relative directory.
5962 cp "$am_depcomp" conftest.dir
5964 # We will build objects and dependencies in a subdirectory because
5965 # it helps to detect inapplicable dependency modes. For instance
5966 # both Tru64's cc and ICC support -MD to output dependencies as a
5967 # side effect of compilation, but ICC will put the dependencies in
5968 # the current directory while Tru64 will put them in the object
5972 am_cv_CC_dependencies_compiler_type=none
5973 if test "$am_compiler_list" = ""; then
5974 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5976 for depmode in $am_compiler_list; do
5977 if test $depmode = none; then break; fi
5979 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5980 # Setup a source with many dependencies, because some compilers
5981 # like to wrap large dependency lists on column 80 (with \), and
5982 # we should not choose a depcomp mode which is confused by this.
5984 # We need to recreate these files for each test, as the compiler may
5985 # overwrite some of them when testing with obscure command lines.
5986 # This happens at least with the AIX C compiler.
5988 for i in 1 2 3 4 5 6; do
5989 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5990 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5991 # Solaris 8's {/usr,}/bin/sh.
5992 touch sub/conftst$i.h
5994 echo "include sub/conftest.Po" > confmf
5996 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5997 # mode. It turns out that the SunPro C++ compiler does not properly
5998 # handle `-M -o', and we need to detect this.
5999 depcmd="depmode=$depmode \
6000 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6002 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6003 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6004 if env $depcmd > conftest.err 2>&1 &&
6005 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6006 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6007 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6008 # icc doesn't choke on unknown options, it will just issue warnings
6009 # or remarks (even with -Werror). So we grep stderr for any message
6010 # that says an option was ignored or not supported.
6011 # When given -MP, icc 7.0 and 7.1 complain thusly:
6012 # icc: Command line warning: ignoring option '-M'; no argument required
6013 # The diagnosis changed in icc 8.0:
6014 # icc: Command line remark: option '-MP' not supported
6015 if (grep 'ignoring option' conftest.err ||
6016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6017 am_cv_CC_dependencies_compiler_type=$depmode
6018 $as_echo "$as_me:$LINENO: success" >&5
6022 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6023 sed -e 's/^/| /' < conftest.err >&5
6029 am_cv_CC_dependencies_compiler_type=none
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6034 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6035 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
6036 then as_fn_error "no usable dependency style found" "$LINENO" 5
6037 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6042 gnulib_extra_configure_args=
6043 # If large-file support is disabled, make sure gnulib does the same.
6044 if test "$enable_largefile" = no; then
6045 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
6048 # Configure gnulib. We need to build gnulib under some other
6049 # directory not "gnulib", to avoid the problem of both GDB and
6050 # GDBserver wanting to build it in the same directory, when building
6051 # in the source dir.
6054 in_build="build-gnulib"
6055 in_extra_args="$gnulib_extra_configure_args"
6057 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6058 # so they do not pile up.
6059 ac_sub_configure_args=
6061 eval "set x $ac_configure_args"
6065 if test -n "$ac_prev"; then
6070 -cache-file | --cache-file | --cache-fil | --cache-fi \
6071 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6072 ac_prev=cache_file ;;
6073 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6074 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6077 --config-cache | -C)
6079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6087 --disable-option-checking)
6091 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6093 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
6097 # Always prepend --prefix to ensure using the same prefix
6098 # in subdir configurations.
6099 ac_arg="--prefix=$prefix"
6101 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6103 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
6106 if test "$silent" = yes; then
6107 ac_sub_configure_args="--silent $ac_sub_configure_args"
6110 # Always prepend --disable-option-checking to silence warnings, since
6111 # different subdirs can have different --enable and --with options.
6112 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
6117 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6118 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6119 $as_echo "$ac_msg" >&6
6120 as_dir="$ac_dir"; as_fn_mkdir_p
6124 ac_srcdir=$srcdir/$in_src ;;
6126 ac_srcdir=../$srcdir/$in_src ;;
6131 ac_sub_configure=$ac_srcdir/configure
6133 # Make the cache file name correct relative to the subdirectory.
6135 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6137 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
6140 if test -n "$in_extra_args"; then
6141 # Add the extra args at the end.
6142 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
6145 { $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
6146 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6147 # The eval makes quoting arguments work.
6148 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6149 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6150 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6166 # If we haven't got the data from the intl directory,
6167 # assume NLS is disabled.
6176 if test -f ../intl/config.intl; then
6177 . ../intl/config.intl
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6180 $as_echo_n "checking whether NLS is requested... " >&6; }
6181 if test x"$USE_NLS" != xyes; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6186 $as_echo "yes" >&6; }
6188 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6192 $as_echo_n "checking for catalogs to be installed... " >&6; }
6193 # Look for .po and .gmo files in the source directory.
6196 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6197 # If there aren't any .gmo files the shell will give us the
6198 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6200 case "$cat" in *\**)
6203 # The quadruple backslash is collapsed to a double backslash
6204 # by the backticks, then collapsed again by the double quotes,
6205 # leaving us with one backslash in the sed expression (right
6206 # before the dot that mustn't act as a wildcard).
6207 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6208 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6209 # The user is allowed to set LINGUAS to a list of languages to
6210 # install catalogs for. If it's empty that means "all of them."
6211 if test "x$LINGUAS" = x; then
6212 CATALOGS="$CATALOGS $cat"
6213 XLINGUAS="$XLINGUAS $lang"
6215 case "$LINGUAS" in *$lang*)
6216 CATALOGS="$CATALOGS $cat"
6217 XLINGUAS="$XLINGUAS $lang"
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6224 $as_echo "$LINGUAS" >&6; }
6237 localedir='${datadir}/locale'
6240 if test x"$USE_NLS" = xyes; then
6241 CONFIG_ALL="$CONFIG_ALL all-po"
6242 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
6243 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
6244 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
6247 GNULIB=build-gnulib/import
6249 # For Makefile dependencies.
6251 if test x"$STDINT_H" != x; then
6252 GNULIB_STDINT_H=$GNULIB/$STDINT_H
6258 cat >>confdefs.h <<_ACEOF
6259 #define PACKAGE "$PACKAGE"
6264 # We never need to detect it in this sub-configure.
6265 # But preserve it for config.status --recheck.
6269 MAKEINFO_EXTRA_FLAGS=""
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6271 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6272 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6275 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6276 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6277 gdb_cv_have_makeinfo_click=yes
6279 gdb_cv_have_makeinfo_click=no
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6283 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6284 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
6285 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6291 # Check whether --with-separate-debug-dir was given.
6292 if test "${with_separate_debug_dir+set}" = set; then :
6293 withval=$with_separate_debug_dir;
6296 DEBUGDIR=${libdir}/debug
6300 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6302 ac_define_dir=`eval echo $DEBUGDIR`
6303 ac_define_dir=`eval echo $ac_define_dir`
6305 cat >>confdefs.h <<_ACEOF
6306 #define DEBUGDIR "$ac_define_dir"
6312 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6313 if test "x$prefix" = xNONE; then
6314 test_prefix=/usr/local
6319 test_prefix=$exec_prefix
6322 case ${ac_define_dir} in
6323 "${test_prefix}"|"${test_prefix}/"*|\
6324 '${exec_prefix}'|'${exec_prefix}/'*)
6329 cat >>confdefs.h <<_ACEOF
6330 #define DEBUGDIR_RELOCATABLE $value
6336 # We can't pass paths as command line arguments.
6337 # Mingw32 tries to be clever and will convert the paths for us.
6338 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6339 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6340 # This breaks GDB's relocatable path conversions since paths passed in
6341 # config.h would not get so translated, the path prefixes no longer match.
6343 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6345 ac_define_dir=`eval echo $bindir`
6346 ac_define_dir=`eval echo $ac_define_dir`
6348 cat >>confdefs.h <<_ACEOF
6349 #define BINDIR "$ac_define_dir"
6354 # GDB's datadir relocation
6358 # Check whether --with-gdb-datadir was given.
6359 if test "${with_gdb_datadir+set}" = set; then :
6360 withval=$with_gdb_datadir;
6361 GDB_DATADIR=$withval
6363 GDB_DATADIR=${datadir}/gdb
6367 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6368 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6369 ac_define_dir=`eval echo $GDB_DATADIR`
6370 ac_define_dir=`eval echo $ac_define_dir`
6372 cat >>confdefs.h <<_ACEOF
6373 #define GDB_DATADIR "$ac_define_dir"
6379 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6380 if test "x$prefix" = xNONE; then
6381 test_prefix=/usr/local
6386 test_prefix=$exec_prefix
6389 case ${ac_define_dir} in
6390 "${test_prefix}"|"${test_prefix}/"*|\
6391 '${exec_prefix}'|'${exec_prefix}/'*)
6396 cat >>confdefs.h <<_ACEOF
6397 #define GDB_DATADIR_RELOCATABLE $value
6404 # Check whether --with-relocated-sources was given.
6405 if test "${with_relocated_sources+set}" = set; then :
6406 withval=$with_relocated_sources; reloc_srcdir="${withval}"
6408 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6409 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6410 ac_define_dir=`eval echo $reloc_srcdir`
6411 ac_define_dir=`eval echo $ac_define_dir`
6413 cat >>confdefs.h <<_ACEOF
6414 #define RELOC_SRCDIR "$ac_define_dir"
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6423 $as_echo_n "checking for default auto-load directory... " >&6; }
6425 # Check whether --with-auto-load-dir was given.
6426 if test "${with_auto_load_dir+set}" = set; then :
6427 withval=$with_auto_load_dir;
6429 with_auto_load_dir='$debugdir:$datadir/auto-load'
6432 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6434 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6435 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6436 ac_define_dir=`eval echo $escape_dir`
6437 ac_define_dir=`eval echo $ac_define_dir`
6439 cat >>confdefs.h <<_ACEOF
6440 #define AUTO_LOAD_DIR "$ac_define_dir"
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6445 $as_echo "$with_auto_load_dir" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6448 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6450 # Check whether --with-auto-load-safe-path was given.
6451 if test "${with_auto_load_safe_path+set}" = set; then :
6452 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6453 with_auto_load_safe_path="/"
6456 with_auto_load_safe_path="$with_auto_load_dir"
6459 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6461 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6463 ac_define_dir=`eval echo $escape_dir`
6464 ac_define_dir=`eval echo $ac_define_dir`
6466 cat >>confdefs.h <<_ACEOF
6467 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6472 $as_echo "$with_auto_load_safe_path" >&6; }
6476 subdirs="$subdirs testsuite"
6479 # Check whether to support alternative target configurations
6480 # Check whether --enable-targets was given.
6481 if test "${enable_targets+set}" = set; then :
6482 enableval=$enable_targets; case "${enableval}" in
6483 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
6485 no) enable_targets= ;;
6486 *) enable_targets=$enableval ;;
6491 # Check whether to enable 64-bit support on 32-bit hosts
6492 # Check whether --enable-64-bit-bfd was given.
6493 if test "${enable_64_bit_bfd+set}" = set; then :
6494 enableval=$enable_64_bit_bfd; case "${enableval}" in
6497 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6503 # Provide defaults for some variables set by the per-host and per-target
6505 gdb_host_obs=posix-hdep.o
6507 if test "${target}" = "${host}"; then
6513 . $srcdir/configure.host
6515 # Add in the common host objects.
6516 . $srcdir/common/common.host
6517 gdb_host_obs="$gdb_host_obs $common_host_obs"
6519 # Accumulate some settings from configure.tgt over all enabled targets
6523 HAVE_NATIVE_GCORE_TARGET=
6525 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6527 if test "$targ_alias" = "all"; then
6530 # Canonicalize the secondary target names.
6531 result=`$ac_config_sub $targ_alias 2>/dev/null`
6532 if test -n "$result"; then
6538 . ${srcdir}/configure.tgt
6540 if test -z "${gdb_target_obs}"; then :
6541 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
6544 # Target-specific object files
6545 for i in ${gdb_target_obs}; do
6546 case " $TARGET_OBS " in
6549 TARGET_OBS="$TARGET_OBS ${i}"
6554 # Check whether this target needs 64-bit CORE_ADDR
6555 if test x${want64} = xfalse; then
6556 . ${srcdir}/../bfd/config.bfd
6559 # Check whether this target is native and supports gcore.
6560 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6561 && $gdb_have_gcore; then
6562 HAVE_NATIVE_GCORE_TARGET=1
6567 if test x${all_targets} = xtrue; then
6569 # We want all 64-bit targets if we either:
6570 # - run on a 64-bit host or
6571 # - already require 64-bit support for some other target or
6572 # - the --enable-64-bit-bfd option was supplied
6573 # Otherwise we only support all 32-bit targets.
6575 # NOTE: This test must be in sync with the corresponding
6578 if test x${want64} = xfalse; then
6579 # The cast to long int works around a bug in the HP C Compiler
6580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6582 # This bug is HP SR number 8606223364.
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6584 $as_echo_n "checking size of long... " >&6; }
6585 if test "${ac_cv_sizeof_long+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6588 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6591 if test "$ac_cv_type_long" = yes; then
6592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6594 { as_fn_set_status 77
6595 as_fn_error "cannot compute sizeof (long)
6596 See \`config.log' for more details." "$LINENO" 5; }; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6604 $as_echo "$ac_cv_sizeof_long" >&6; }
6608 cat >>confdefs.h <<_ACEOF
6609 #define SIZEOF_LONG $ac_cv_sizeof_long
6613 if test "x${ac_cv_sizeof_long}" = "x8"; then
6617 if test x${want64} = xtrue; then
6618 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6620 TARGET_OBS='$(ALL_TARGET_OBS)'
6627 # For other settings, only the main target counts.
6631 targ=$target; . ${srcdir}/configure.tgt
6633 # Fetch the default architecture and default target vector from BFD.
6634 targ=$target; . $srcdir/../bfd/config.bfd
6636 # We only want the first architecture, so strip off the others if
6637 # there is more than one.
6638 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6640 if test "x$targ_archs" != x; then
6642 cat >>confdefs.h <<_ACEOF
6643 #define DEFAULT_BFD_ARCH $targ_archs
6647 if test "x$targ_defvec" != x; then
6649 cat >>confdefs.h <<_ACEOF
6650 #define DEFAULT_BFD_VEC $targ_defvec
6655 # The CLI cannot be disabled yet, but may be in the future.
6658 # Check whether --enable-gdbcli was given.
6659 if test "${enable_gdbcli+set}" = set; then :
6660 enableval=$enable_gdbcli; case $enableval in
6664 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
6666 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
6672 if test x"$enable_gdbcli" = xyes; then
6673 if test -d $srcdir/cli; then
6674 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6675 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6676 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6677 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6682 # Check whether --enable-gdbmi was given.
6683 if test "${enable_gdbmi+set}" = set; then :
6684 enableval=$enable_gdbmi; case $enableval in
6688 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6694 if test x"$enable_gdbmi" = xyes; then
6695 if test -d $srcdir/mi; then
6696 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6697 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6698 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6699 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6704 # Check whether --enable-tui was given.
6705 if test "${enable_tui+set}" = set; then :
6706 enableval=$enable_tui; case $enableval in
6710 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6718 # Check whether --enable-gdbtk was given.
6719 if test "${enable_gdbtk+set}" = set; then :
6720 enableval=$enable_gdbtk; case $enableval in
6724 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6727 if test -d $srcdir/gdbtk; then
6734 # We unconditionally disable gdbtk tests on selected platforms.
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6738 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6742 # Libunwind support for ia64.
6745 # Check whether --with-libunwind-ia64 was given.
6746 if test "${with_libunwind_ia64+set}" = set; then :
6747 withval=$with_libunwind_ia64;
6749 with_libunwind_ia64=auto
6753 # Backward compatibility option.
6754 if test "${with_libunwind+set}" = set; then
6755 if test x"$with_libunwind_ia64" != xauto; then
6756 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6759 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6760 with_libunwind_ia64="$with_libunwind"
6763 case "$with_libunwind_ia64" in
6767 for ac_header in libunwind-ia64.h
6769 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6770 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
6771 cat >>confdefs.h <<_ACEOF
6772 #define HAVE_LIBUNWIND_IA64_H 1
6779 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
6782 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6786 if test x"$with_libunwind_ia64" = xyes; then
6787 for ac_header in libunwind-ia64.h
6789 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6790 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
6791 cat >>confdefs.h <<_ACEOF
6792 #define HAVE_LIBUNWIND_IA64_H 1
6799 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
6800 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6802 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
6803 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
6804 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
6809 # Check whether --with-curses was given.
6810 if test "${with_curses+set}" = set; then :
6811 withval=$with_curses; opt_curses=$withval
6816 if test "$opt_curses" = "yes"; then
6820 # Profiling support.
6821 # Check whether --enable-profiling was given.
6822 if test "${enable_profiling+set}" = set; then :
6823 enableval=$enable_profiling; case $enableval in
6827 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6834 for ac_func in monstartup _mcleanup
6836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6837 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6838 eval as_val=\$$as_ac_var
6839 if test "x$as_val" = x""yes; then :
6840 cat >>confdefs.h <<_ACEOF
6841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6848 $as_echo_n "checking for _etext... " >&6; }
6849 if test "${ac_cv_var__etext+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6865 if ac_fn_c_try_link "$LINENO"; then :
6866 ac_cv_var__etext=yes
6870 rm -f core conftest.err conftest.$ac_objext \
6871 conftest$ac_exeext conftest.$ac_ext
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6874 $as_echo "$ac_cv_var__etext" >&6; }
6875 if test $ac_cv_var__etext = yes; then
6877 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6881 $as_echo_n "checking for etext... " >&6; }
6882 if test "${ac_cv_var_etext+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6898 if ac_fn_c_try_link "$LINENO"; then :
6903 rm -f core conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6907 $as_echo "$ac_cv_var_etext" >&6; }
6908 if test $ac_cv_var_etext = yes; then
6910 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6913 if test "$enable_profiling" = yes ; then
6914 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6915 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6918 OLD_CFLAGS="$CFLAGS"
6919 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6922 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6923 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6937 if ac_fn_c_try_compile "$LINENO"; then :
6938 ac_cv_cc_supports_pg=yes
6940 ac_cv_cc_supports_pg=no
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6945 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6947 if test $ac_cv_cc_supports_pg = no; then
6948 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6951 CFLAGS="$OLD_CFLAGS"
6956 # Check whether --with-pkgversion was given.
6957 if test "${with_pkgversion+set}" = set; then :
6958 withval=$with_pkgversion; case "$withval" in
6959 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6961 *) PKGVERSION="($withval) " ;;
6972 # Check whether --with-bugurl was given.
6973 if test "${with_bugurl+set}" = set; then :
6974 withval=$with_bugurl; case "$withval" in
6975 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6978 *) BUGURL="$withval"
6982 BUGURL="http://www.gnu.org/software/gdb/bugs/"
6992 REPORT_BUGS_TO="<$BUGURL>"
6993 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7000 cat >>confdefs.h <<_ACEOF
7001 #define PKGVERSION "$PKGVERSION"
7005 cat >>confdefs.h <<_ACEOF
7006 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7010 # --------------------- #
7011 # Checks for programs. #
7012 # --------------------- #
7014 for ac_prog in gawk mawk nawk awk
7016 # Extract the first word of "$ac_prog", so it can be a program name with args.
7017 set dummy $ac_prog; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if test "${ac_cv_prog_AWK+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7023 if test -n "$AWK"; then
7024 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_AWK="$ac_prog"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 if test -n "$AWK"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7046 $as_echo "$AWK" >&6; }
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7053 test -n "$AWK" && break
7056 # Find a good install program. We prefer a C program (faster),
7057 # so one script is as good as another. But avoid the broken or
7058 # incompatible versions:
7059 # SysV /etc/install, /usr/sbin/install
7060 # SunOS /usr/etc/install
7061 # IRIX /sbin/install
7063 # AmigaOS /C/install, which installs bootblocks on floppy discs
7064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7067 # OS/2's system install, which has a completely different semantic
7068 # ./install, which can be erroneously created by make from ./install.sh.
7069 # Reject install programs that cannot install multiple files.
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7071 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7072 if test -z "$INSTALL"; then
7073 if test "${ac_cv_path_install+set}" = set; then :
7074 $as_echo_n "(cached) " >&6
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir=.
7081 # Account for people who put trailing slashes in PATH elements.
7082 case $as_dir/ in #((
7083 ./ | .// | /[cC]/* | \
7084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7085 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7088 # OSF1 and SCO ODT 3.0 have their own names for install.
7089 # Don't use installbsd from OSF since it installs stuff as root
7091 for ac_prog in ginstall scoinst install; do
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7094 if test $ac_prog = install &&
7095 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7096 # AIX install. It has an incompatible calling convention.
7098 elif test $ac_prog = install &&
7099 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7100 # program-specific install script used by HP pwplus--don't use.
7103 rm -rf conftest.one conftest.two conftest.dir
7104 echo one > conftest.one
7105 echo two > conftest.two
7107 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7108 test -s conftest.one && test -s conftest.two &&
7109 test -s conftest.dir/conftest.one &&
7110 test -s conftest.dir/conftest.two
7112 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7125 rm -rf conftest.one conftest.two conftest.dir
7128 if test "${ac_cv_path_install+set}" = set; then
7129 INSTALL=$ac_cv_path_install
7131 # As a last resort, use the slow shell script. Don't cache a
7132 # value for INSTALL within a source directory, because that will
7133 # break other packages using the cache if that directory is
7134 # removed, or if the value is a relative name.
7135 INSTALL=$ac_install_sh
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7139 $as_echo "$INSTALL" >&6; }
7141 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7142 # It thinks the first close brace ends the variable substitution.
7143 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7145 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7147 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7150 $as_echo_n "checking whether ln -s works... " >&6; }
7152 if test "$LN_S" = "ln -s"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7154 $as_echo "yes" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7157 $as_echo "no, using $LN_S" >&6; }
7160 if test -n "$ac_tool_prefix"; then
7161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7166 $as_echo_n "(cached) " >&6
7168 if test -n "$RANLIB"; then
7169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 RANLIB=$ac_cv_prog_RANLIB
7189 if test -n "$RANLIB"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7191 $as_echo "$RANLIB" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7199 if test -z "$ac_cv_prog_RANLIB"; then
7200 ac_ct_RANLIB=$RANLIB
7201 # Extract the first word of "ranlib", so it can be a program name with args.
7202 set dummy ranlib; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
7208 if test -n "$ac_ct_RANLIB"; then
7209 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218 ac_cv_prog_ac_ct_RANLIB="ranlib"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7229 if test -n "$ac_ct_RANLIB"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7231 $as_echo "$ac_ct_RANLIB" >&6; }
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7237 if test "x$ac_ct_RANLIB" = x; then
7240 case $cross_compiling:$ac_tool_warned in
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7246 RANLIB=$ac_ct_RANLIB
7249 RANLIB="$ac_cv_prog_RANLIB"
7252 for ac_prog in 'bison -y' byacc
7254 # Extract the first word of "$ac_prog", so it can be a program name with args.
7255 set dummy $ac_prog; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if test "${ac_cv_prog_YACC+set}" = set; then :
7259 $as_echo_n "(cached) " >&6
7261 if test -n "$YACC"; then
7262 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_prog_YACC="$ac_prog"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 YACC=$ac_cv_prog_YACC
7282 if test -n "$YACC"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7284 $as_echo "$YACC" >&6; }
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7291 test -n "$YACC" && break
7293 test -n "$YACC" || YACC="yacc"
7296 if test -n "$ac_tool_prefix"; then
7297 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7298 set dummy ${ac_tool_prefix}ar; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if test "${ac_cv_prog_AR+set}" = set; then :
7302 $as_echo_n "(cached) " >&6
7304 if test -n "$AR"; then
7305 ac_cv_prog_AR="$AR" # Let the user override the test.
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_prog_AR="${ac_tool_prefix}ar"
7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 if test -n "$AR"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7327 $as_echo "$AR" >&6; }
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7335 if test -z "$ac_cv_prog_AR"; then
7337 # Extract the first word of "ar", so it can be a program name with args.
7338 set dummy ar; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
7344 if test -n "$ac_ct_AR"; then
7345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_prog_ac_ct_AR="ar"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7365 if test -n "$ac_ct_AR"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7367 $as_echo "$ac_ct_AR" >&6; }
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7373 if test "x$ac_ct_AR" = x; then
7376 case $cross_compiling:$ac_tool_warned in
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7380 ac_tool_warned=yes ;;
7388 if test -n "$ac_tool_prefix"; then
7389 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7390 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
7396 if test -n "$DLLTOOL"; then
7397 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 DLLTOOL=$ac_cv_prog_DLLTOOL
7417 if test -n "$DLLTOOL"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7419 $as_echo "$DLLTOOL" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7427 if test -z "$ac_cv_prog_DLLTOOL"; then
7428 ac_ct_DLLTOOL=$DLLTOOL
7429 # Extract the first word of "dlltool", so it can be a program name with args.
7430 set dummy dlltool; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7434 $as_echo_n "(cached) " >&6
7436 if test -n "$ac_ct_DLLTOOL"; then
7437 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7457 if test -n "$ac_ct_DLLTOOL"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7459 $as_echo "$ac_ct_DLLTOOL" >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7465 if test "x$ac_ct_DLLTOOL" = x; then
7468 case $cross_compiling:$ac_tool_warned in
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472 ac_tool_warned=yes ;;
7474 DLLTOOL=$ac_ct_DLLTOOL
7477 DLLTOOL="$ac_cv_prog_DLLTOOL"
7480 if test -n "$ac_tool_prefix"; then
7481 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7482 set dummy ${ac_tool_prefix}windres; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_WINDRES+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7488 if test -n "$WINDRES"; then
7489 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 WINDRES=$ac_cv_prog_WINDRES
7509 if test -n "$WINDRES"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7511 $as_echo "$WINDRES" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7519 if test -z "$ac_cv_prog_WINDRES"; then
7520 ac_ct_WINDRES=$WINDRES
7521 # Extract the first word of "windres", so it can be a program name with args.
7522 set dummy windres; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7528 if test -n "$ac_ct_WINDRES"; then
7529 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_prog_ac_ct_WINDRES="windres"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7549 if test -n "$ac_ct_WINDRES"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7551 $as_echo "$ac_ct_WINDRES" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7557 if test "x$ac_ct_WINDRES" = x; then
7560 case $cross_compiling:$ac_tool_warned in
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564 ac_tool_warned=yes ;;
7566 WINDRES=$ac_ct_WINDRES
7569 WINDRES="$ac_cv_prog_WINDRES"
7575 # Needed for GNU Hurd hosts.
7576 if test -n "$ac_tool_prefix"; then
7577 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7578 set dummy ${ac_tool_prefix}mig; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_prog_MIG+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7584 if test -n "$MIG"; then
7585 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 if test -n "$MIG"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7607 $as_echo "$MIG" >&6; }
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7615 if test -z "$ac_cv_prog_MIG"; then
7617 # Extract the first word of "mig", so it can be a program name with args.
7618 set dummy mig; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7624 if test -n "$ac_ct_MIG"; then
7625 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_ac_ct_MIG="mig"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7645 if test -n "$ac_ct_MIG"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7647 $as_echo "$ac_ct_MIG" >&6; }
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7653 if test "x$ac_ct_MIG" = x; then
7656 case $cross_compiling:$ac_tool_warned in
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7660 ac_tool_warned=yes ;;
7665 MIG="$ac_cv_prog_MIG"
7668 if test x"$MIG" = x; then
7669 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
7674 # ---------------------- #
7675 # Checks for libraries. #
7676 # ---------------------- #
7678 # We might need to link with -lm; most simulators need it.
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7680 $as_echo_n "checking for main in -lm... " >&6; }
7681 if test "${ac_cv_lib_m_main+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
7684 ac_check_lib_save_LIBS=$LIBS
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7698 if ac_fn_c_try_link "$LINENO"; then :
7699 ac_cv_lib_m_main=yes
7703 rm -f core conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7705 LIBS=$ac_check_lib_save_LIBS
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7708 $as_echo "$ac_cv_lib_m_main" >&6; }
7709 if test "x$ac_cv_lib_m_main" = x""yes; then :
7710 cat >>confdefs.h <<_ACEOF
7719 # We need to link with -lw to get `wctype' on Solaris before Solaris
7720 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7721 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7722 # is known to have this problem). Therefore we avoid libw if we can.
7723 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
7724 if test "x$ac_cv_func_wctype" = x""yes; then :
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
7728 $as_echo_n "checking for wctype in -lw... " >&6; }
7729 if test "${ac_cv_lib_w_wctype+set}" = set; then :
7730 $as_echo_n "(cached) " >&6
7732 ac_check_lib_save_LIBS=$LIBS
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7737 /* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7752 if ac_fn_c_try_link "$LINENO"; then :
7753 ac_cv_lib_w_wctype=yes
7755 ac_cv_lib_w_wctype=no
7757 rm -f core conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7759 LIBS=$ac_check_lib_save_LIBS
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
7762 $as_echo "$ac_cv_lib_w_wctype" >&6; }
7763 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
7764 cat >>confdefs.h <<_ACEOF
7775 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7777 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7778 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7781 ac_func_search_save_LIBS=$LIBS
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7785 /* Override any GCC internal prototype to avoid an error.
7786 Use char because int might match the return type of a GCC
7787 builtin and then its argument prototype would still apply. */
7791 char gethostbyname ();
7795 return gethostbyname ();
7800 for ac_lib in '' nsl; do
7801 if test -z "$ac_lib"; then
7802 ac_res="none required"
7805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7807 if ac_fn_c_try_link "$LINENO"; then :
7808 ac_cv_search_gethostbyname=$ac_res
7810 rm -f core conftest.err conftest.$ac_objext \
7812 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7816 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7819 ac_cv_search_gethostbyname=no
7822 LIBS=$ac_func_search_save_LIBS
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7825 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7826 ac_res=$ac_cv_search_gethostbyname
7827 if test "$ac_res" != no; then :
7828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7833 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7835 $as_echo_n "checking for library containing socketpair... " >&6; }
7836 if test "${ac_cv_search_socketpair+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
7839 ac_func_search_save_LIBS=$LIBS
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7843 /* Override any GCC internal prototype to avoid an error.
7844 Use char because int might match the return type of a GCC
7845 builtin and then its argument prototype would still apply. */
7853 return socketpair ();
7858 for ac_lib in '' socket; do
7859 if test -z "$ac_lib"; then
7860 ac_res="none required"
7863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7865 if ac_fn_c_try_link "$LINENO"; then :
7866 ac_cv_search_socketpair=$ac_res
7868 rm -f core conftest.err conftest.$ac_objext \
7870 if test "${ac_cv_search_socketpair+set}" = set; then :
7874 if test "${ac_cv_search_socketpair+set}" = set; then :
7877 ac_cv_search_socketpair=no
7880 LIBS=$ac_func_search_save_LIBS
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7883 $as_echo "$ac_cv_search_socketpair" >&6; }
7884 ac_res=$ac_cv_search_socketpair
7885 if test "$ac_res" != no; then :
7886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7891 # Link in zlib if we can. This allows us to read compressed debug sections.
7893 # Use the system's zlib library.
7894 zlibdir="-L\$(top_builddir)/../zlib"
7895 zlibinc="-I\$(top_srcdir)/../zlib"
7897 # Check whether --with-system-zlib was given.
7898 if test "${with_system_zlib+set}" = set; then :
7899 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7910 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7911 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7913 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7914 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
7917 ac_func_search_save_LIBS=$LIBS
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7921 /* Override any GCC internal prototype to avoid an error.
7922 Use char because int might match the return type of a GCC
7923 builtin and then its argument prototype would still apply. */
7927 char kinfo_getvmmap ();
7931 return kinfo_getvmmap ();
7936 for ac_lib in '' util util-freebsd; do
7937 if test -z "$ac_lib"; then
7938 ac_res="none required"
7941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7943 if ac_fn_c_try_link "$LINENO"; then :
7944 ac_cv_search_kinfo_getvmmap=$ac_res
7946 rm -f core conftest.err conftest.$ac_objext \
7948 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7952 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7955 ac_cv_search_kinfo_getvmmap=no
7958 LIBS=$ac_func_search_save_LIBS
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7961 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7962 ac_res=$ac_cv_search_kinfo_getvmmap
7963 if test "$ac_res" != no; then :
7964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7966 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7972 if test "X$prefix" = "XNONE"; then
7973 acl_final_prefix="$ac_default_prefix"
7975 acl_final_prefix="$prefix"
7977 if test "X$exec_prefix" = "XNONE"; then
7978 acl_final_exec_prefix='${prefix}'
7980 acl_final_exec_prefix="$exec_prefix"
7982 acl_save_prefix="$prefix"
7983 prefix="$acl_final_prefix"
7984 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7985 prefix="$acl_save_prefix"
7988 # Check whether --with-gnu-ld was given.
7989 if test "${with_gnu_ld+set}" = set; then :
7990 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7995 # Prepare PATH_SEPARATOR.
7996 # The user is always right.
7997 if test "${PATH_SEPARATOR+set}" != set; then
7998 echo "#! /bin/sh" >conf$$.sh
7999 echo "exit 0" >>conf$$.sh
8001 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8009 if test "$GCC" = yes; then
8010 # Check if gcc -print-prog-name=ld gives a path.
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8012 $as_echo_n "checking for ld used by GCC... " >&6; }
8015 # gcc leaves a trailing carriage return which upsets mingw
8016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8021 # Accept absolute paths.
8022 [\\/]* | [A-Za-z]:[\\/]*)
8023 re_direlt='/[^/][^/]*/\.\./'
8024 # Canonicalize the path of ld
8025 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8026 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8027 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8029 test -z "$LD" && LD="$ac_prog"
8032 # If it fails, then pretend we aren't using GCC.
8036 # If it is relative, then search for the first ld in PATH.
8040 elif test "$with_gnu_ld" = yes; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8042 $as_echo_n "checking for GNU ld... " >&6; }
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8045 $as_echo_n "checking for non-GNU ld... " >&6; }
8047 if test "${acl_cv_path_LD+set}" = set; then :
8048 $as_echo_n "(cached) " >&6
8050 if test -z "$LD"; then
8051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8052 for ac_dir in $PATH; do
8053 test -z "$ac_dir" && ac_dir=.
8054 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8055 acl_cv_path_LD="$ac_dir/$ac_prog"
8056 # Check to see if the program is GNU ld. I'd rather use --version,
8057 # but apparently some GNU ld's only accept -v.
8058 # Break only if it was the GNU/non-GNU ld that we prefer.
8059 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8060 test "$with_gnu_ld" != no && break
8062 test "$with_gnu_ld" != yes && break
8068 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8072 LD="$acl_cv_path_LD"
8073 if test -n "$LD"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8075 $as_echo "$LD" >&6; }
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8080 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8082 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8083 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8086 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8087 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8088 acl_cv_prog_gnu_ld=yes
8090 acl_cv_prog_gnu_ld=no
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8094 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8095 with_gnu_ld=$acl_cv_prog_gnu_ld
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8100 $as_echo_n "checking for shared library run path origin... " >&6; }
8101 if test "${acl_cv_rpath+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8105 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8106 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8113 $as_echo "$acl_cv_rpath" >&6; }
8115 libext="$acl_cv_libext"
8116 shlibext="$acl_cv_shlibext"
8117 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8118 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8119 hardcode_direct="$acl_cv_hardcode_direct"
8120 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8121 # Check whether --enable-rpath was given.
8122 if test "${enable_rpath+set}" = set; then :
8123 enableval=$enable_rpath; :
8137 acl_save_prefix="$prefix"
8138 prefix="$acl_final_prefix"
8139 acl_save_exec_prefix="$exec_prefix"
8140 exec_prefix="$acl_final_exec_prefix"
8142 eval additional_includedir=\"$includedir\"
8143 eval additional_libdir=\"$libdir\"
8145 exec_prefix="$acl_save_exec_prefix"
8146 prefix="$acl_save_prefix"
8149 # Check whether --with-libiconv-prefix was given.
8150 if test "${with_libiconv_prefix+set}" = set; then :
8151 withval=$with_libiconv_prefix;
8152 if test "X$withval" = "Xno"; then
8155 if test "X$withval" = "X"; then
8157 acl_save_prefix="$prefix"
8158 prefix="$acl_final_prefix"
8159 acl_save_exec_prefix="$exec_prefix"
8160 exec_prefix="$acl_final_exec_prefix"
8162 eval additional_includedir=\"$includedir\"
8163 eval additional_libdir=\"$libdir\"
8165 exec_prefix="$acl_save_exec_prefix"
8166 prefix="$acl_save_prefix"
8169 additional_includedir="$withval/include"
8170 additional_libdir="$withval/lib"
8181 names_already_handled=
8182 names_next_round='iconv '
8183 while test -n "$names_next_round"; do
8184 names_this_round="$names_next_round"
8186 for name in $names_this_round; do
8188 for n in $names_already_handled; do
8189 if test "$n" = "$name"; then
8194 if test -z "$already_handled"; then
8195 names_already_handled="$names_already_handled $name"
8196 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8197 eval value=\"\$HAVE_LIB$uppername\"
8198 if test -n "$value"; then
8199 if test "$value" = yes; then
8200 eval value=\"\$LIB$uppername\"
8201 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8202 eval value=\"\$LTLIB$uppername\"
8203 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8212 if test $use_additional = yes; then
8213 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8214 found_dir="$additional_libdir"
8215 found_so="$additional_libdir/lib$name.$shlibext"
8216 if test -f "$additional_libdir/lib$name.la"; then
8217 found_la="$additional_libdir/lib$name.la"
8220 if test -f "$additional_libdir/lib$name.$libext"; then
8221 found_dir="$additional_libdir"
8222 found_a="$additional_libdir/lib$name.$libext"
8223 if test -f "$additional_libdir/lib$name.la"; then
8224 found_la="$additional_libdir/lib$name.la"
8229 if test "X$found_dir" = "X"; then
8230 for x in $LDFLAGS $LTLIBICONV; do
8232 acl_save_prefix="$prefix"
8233 prefix="$acl_final_prefix"
8234 acl_save_exec_prefix="$exec_prefix"
8235 exec_prefix="$acl_final_exec_prefix"
8237 exec_prefix="$acl_save_exec_prefix"
8238 prefix="$acl_save_prefix"
8242 dir=`echo "X$x" | sed -e 's/^X-L//'`
8243 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8245 found_so="$dir/lib$name.$shlibext"
8246 if test -f "$dir/lib$name.la"; then
8247 found_la="$dir/lib$name.la"
8250 if test -f "$dir/lib$name.$libext"; then
8252 found_a="$dir/lib$name.$libext"
8253 if test -f "$dir/lib$name.la"; then
8254 found_la="$dir/lib$name.la"
8260 if test "X$found_dir" != "X"; then
8265 if test "X$found_dir" != "X"; then
8266 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8267 if test "X$found_so" != "X"; then
8268 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8269 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8272 for x in $ltrpathdirs; do
8273 if test "X$x" = "X$found_dir"; then
8278 if test -z "$haveit"; then
8279 ltrpathdirs="$ltrpathdirs $found_dir"
8281 if test "$hardcode_direct" = yes; then
8282 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8284 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8285 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8287 for x in $rpathdirs; do
8288 if test "X$x" = "X$found_dir"; then
8293 if test -z "$haveit"; then
8294 rpathdirs="$rpathdirs $found_dir"
8298 for x in $LDFLAGS $LIBICONV; do
8300 acl_save_prefix="$prefix"
8301 prefix="$acl_final_prefix"
8302 acl_save_exec_prefix="$exec_prefix"
8303 exec_prefix="$acl_final_exec_prefix"
8305 exec_prefix="$acl_save_exec_prefix"
8306 prefix="$acl_save_prefix"
8308 if test "X$x" = "X-L$found_dir"; then
8313 if test -z "$haveit"; then
8314 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8316 if test "$hardcode_minus_L" != no; then
8317 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8319 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8325 if test "X$found_a" != "X"; then
8326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8328 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8331 additional_includedir=
8332 case "$found_dir" in
8334 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8335 additional_includedir="$basedir/include"
8338 if test "X$additional_includedir" != "X"; then
8339 if test "X$additional_includedir" != "X/usr/include"; then
8341 if test "X$additional_includedir" = "X/usr/local/include"; then
8342 if test -n "$GCC"; then
8344 linux*) haveit=yes;;
8348 if test -z "$haveit"; then
8349 for x in $CPPFLAGS $INCICONV; do
8351 acl_save_prefix="$prefix"
8352 prefix="$acl_final_prefix"
8353 acl_save_exec_prefix="$exec_prefix"
8354 exec_prefix="$acl_final_exec_prefix"
8356 exec_prefix="$acl_save_exec_prefix"
8357 prefix="$acl_save_prefix"
8359 if test "X$x" = "X-I$additional_includedir"; then
8364 if test -z "$haveit"; then
8365 if test -d "$additional_includedir"; then
8366 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8372 if test -n "$found_la"; then
8373 save_libdir="$libdir"
8375 */* | *\\*) . "$found_la" ;;
8376 *) . "./$found_la" ;;
8378 libdir="$save_libdir"
8379 for dep in $dependency_libs; do
8382 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8383 if test "X$additional_libdir" != "X/usr/lib"; then
8385 if test "X$additional_libdir" = "X/usr/local/lib"; then
8386 if test -n "$GCC"; then
8388 linux*) haveit=yes;;
8392 if test -z "$haveit"; then
8394 for x in $LDFLAGS $LIBICONV; do
8396 acl_save_prefix="$prefix"
8397 prefix="$acl_final_prefix"
8398 acl_save_exec_prefix="$exec_prefix"
8399 exec_prefix="$acl_final_exec_prefix"
8401 exec_prefix="$acl_save_exec_prefix"
8402 prefix="$acl_save_prefix"
8404 if test "X$x" = "X-L$additional_libdir"; then
8409 if test -z "$haveit"; then
8410 if test -d "$additional_libdir"; then
8411 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8415 for x in $LDFLAGS $LTLIBICONV; do
8417 acl_save_prefix="$prefix"
8418 prefix="$acl_final_prefix"
8419 acl_save_exec_prefix="$exec_prefix"
8420 exec_prefix="$acl_final_exec_prefix"
8422 exec_prefix="$acl_save_exec_prefix"
8423 prefix="$acl_save_prefix"
8425 if test "X$x" = "X-L$additional_libdir"; then
8430 if test -z "$haveit"; then
8431 if test -d "$additional_libdir"; then
8432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8439 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8440 if test "$enable_rpath" != no; then
8442 for x in $rpathdirs; do
8443 if test "X$x" = "X$dir"; then
8448 if test -z "$haveit"; then
8449 rpathdirs="$rpathdirs $dir"
8452 for x in $ltrpathdirs; do
8453 if test "X$x" = "X$dir"; then
8458 if test -z "$haveit"; then
8459 ltrpathdirs="$ltrpathdirs $dir"
8464 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8467 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8470 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8471 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8477 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8478 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8484 if test "X$rpathdirs" != "X"; then
8485 if test -n "$hardcode_libdir_separator"; then
8487 for found_dir in $rpathdirs; do
8488 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8490 acl_save_libdir="$libdir"
8492 eval flag=\"$hardcode_libdir_flag_spec\"
8493 libdir="$acl_save_libdir"
8494 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8496 for found_dir in $rpathdirs; do
8497 acl_save_libdir="$libdir"
8499 eval flag=\"$hardcode_libdir_flag_spec\"
8500 libdir="$acl_save_libdir"
8501 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8505 if test "X$ltrpathdirs" != "X"; then
8506 for found_dir in $ltrpathdirs; do
8507 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8518 $as_echo_n "checking for iconv... " >&6; }
8519 if test "${am_cv_func_iconv+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8523 am_cv_func_iconv="no, consider installing GNU libiconv"
8525 am_save_CPPFLAGS="$CPPFLAGS"
8526 CPPFLAGS="$CPPFLAGS $INCICONV"
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8534 iconv_t cd = iconv_open("","");
8535 iconv(cd,NULL,NULL,NULL,NULL);
8541 if ac_fn_c_try_link "$LINENO"; then :
8542 am_cv_func_iconv=yes
8544 rm -f core conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8546 CPPFLAGS="$am_save_CPPFLAGS"
8548 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
8549 for _libs in .libs _libs; do
8550 am_save_CPPFLAGS="$CPPFLAGS"
8551 am_save_LIBS="$LIBS"
8552 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
8553 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8561 iconv_t cd = iconv_open("","");
8562 iconv(cd,NULL,NULL,NULL,NULL);
8568 if ac_fn_c_try_link "$LINENO"; then :
8569 INCICONV="-I../libiconv/include"
8570 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
8571 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
8573 am_cv_func_iconv=yes
8575 rm -f core conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577 CPPFLAGS="$am_save_CPPFLAGS"
8578 LIBS="$am_save_LIBS"
8579 if test "$am_cv_func_iconv" = "yes"; then
8585 if test "$am_cv_func_iconv" != yes; then
8586 am_save_CPPFLAGS="$CPPFLAGS"
8587 am_save_LIBS="$LIBS"
8588 CPPFLAGS="$LIBS $INCICONV"
8589 LIBS="$LIBS $LIBICONV"
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8597 iconv_t cd = iconv_open("","");
8598 iconv(cd,NULL,NULL,NULL,NULL);
8604 if ac_fn_c_try_link "$LINENO"; then :
8606 am_cv_func_iconv=yes
8608 rm -f core conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
8610 CPPFLAGS="$am_save_CPPFLAGS"
8611 LIBS="$am_save_LIBS"
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8616 $as_echo "$am_cv_func_iconv" >&6; }
8617 if test "$am_cv_func_iconv" = yes; then
8619 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8622 if test "$am_cv_lib_iconv" = yes; then
8624 for element in $INCICONV; do
8626 for x in $CPPFLAGS; do
8628 acl_save_prefix="$prefix"
8629 prefix="$acl_final_prefix"
8630 acl_save_exec_prefix="$exec_prefix"
8631 exec_prefix="$acl_final_exec_prefix"
8633 exec_prefix="$acl_save_exec_prefix"
8634 prefix="$acl_save_prefix"
8636 if test "X$x" = "X$element"; then
8641 if test -z "$haveit"; then
8642 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8647 $as_echo_n "checking how to link with libiconv... " >&6; }
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8649 $as_echo "$LIBICONV" >&6; }
8657 if test "$am_cv_func_iconv" = yes; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8659 $as_echo_n "checking for iconv declaration... " >&6; }
8660 if test "${am_cv_proto_iconv+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8673 #if defined(__STDC__) || defined(__cplusplus)
8674 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8687 if ac_fn_c_try_compile "$LINENO"; then :
8688 am_cv_proto_iconv_arg1=""
8690 am_cv_proto_iconv_arg1="const"
8692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 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);"
8696 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8698 }$am_cv_proto_iconv" >&5
8700 }$am_cv_proto_iconv" >&6; }
8702 cat >>confdefs.h <<_ACEOF
8703 #define ICONV_CONST $am_cv_proto_iconv_arg1
8709 # GDB may fork/exec the iconv program to get the list of supported character
8710 # sets. Allow the user to specify where to find it.
8711 # There are several factors affecting the choice of option name:
8712 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8713 # the build-time location of libiconv files.
8714 # - The program we need to find is iconv, which comes with glibc. The user
8715 # doesn't necessarily have libiconv installed. Therefore naming this
8716 # --with-libiconv-foo feels wrong.
8717 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8718 # defined to work on directories not files (though it really doesn't know
8720 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8721 # with --with-libiconv-prefix.
8722 # Putting these together is why the option name is --with-iconv-bin.
8725 # Check whether --with-iconv-bin was given.
8726 if test "${with_iconv_bin+set}" = set; then :
8727 withval=$with_iconv_bin; iconv_bin="${withval}"
8729 cat >>confdefs.h <<_ACEOF
8730 #define ICONV_BIN "${iconv_bin}"
8734 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8735 if test "x$prefix" = xNONE; then
8736 test_prefix=/usr/local
8741 test_prefix=$exec_prefix
8744 case ${iconv_bin} in
8745 "${test_prefix}"|"${test_prefix}/"*|\
8746 '${exec_prefix}'|'${exec_prefix}/'*)
8751 cat >>confdefs.h <<_ACEOF
8752 #define ICONV_BIN_RELOCATABLE $value
8760 # For the TUI, we need enhanced curses functionality.
8761 if test x"$enable_tui" != xno; then
8766 if test x"$prefer_curses" = xyes; then
8767 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8768 # curses library because the latter might not provide all the
8769 # functionality we need. However, this leads to problems on systems
8770 # where the linker searches /usr/local/lib, but the compiler doesn't
8771 # search /usr/local/include, if ncurses is installed in /usr/local. A
8772 # default installation of ncurses on alpha*-dec-osf* will lead to such
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8775 $as_echo_n "checking for library containing waddstr... " >&6; }
8776 if test "${ac_cv_search_waddstr+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8779 ac_func_search_save_LIBS=$LIBS
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8783 /* Override any GCC internal prototype to avoid an error.
8784 Use char because int might match the return type of a GCC
8785 builtin and then its argument prototype would still apply. */
8798 for ac_lib in '' ncurses cursesX curses; do
8799 if test -z "$ac_lib"; then
8800 ac_res="none required"
8803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8805 if ac_fn_c_try_link "$LINENO"; then :
8806 ac_cv_search_waddstr=$ac_res
8808 rm -f core conftest.err conftest.$ac_objext \
8810 if test "${ac_cv_search_waddstr+set}" = set; then :
8814 if test "${ac_cv_search_waddstr+set}" = set; then :
8817 ac_cv_search_waddstr=no
8820 LIBS=$ac_func_search_save_LIBS
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8823 $as_echo "$ac_cv_search_waddstr" >&6; }
8824 ac_res=$ac_cv_search_waddstr
8825 if test "$ac_res" != no; then :
8826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8831 if test "$ac_cv_search_waddstr" != no; then
8836 # Check whether we should enable the TUI, but only do so if we really
8838 if test x"$enable_tui" != xno; then
8839 if test -d $srcdir/tui; then
8840 if test "$curses_found" != no; then
8841 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8842 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8843 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8844 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8846 if test x"$enable_tui" = xyes; then
8847 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8850 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8856 # Since GDB uses Readline, we need termcap functionality. In many
8857 # cases this will be provided by the curses library, but some systems
8858 # have a separate termcap library, or no curses library at all.
8862 if test -d $srcdir/libtermcap; then
8863 LIBS="../libtermcap/libtermcap.a $LIBS"
8864 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8867 ac_cv_search_tgetent="none required"
8871 # These are the libraries checked by Readline.
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8873 $as_echo_n "checking for library containing tgetent... " >&6; }
8874 if test "${ac_cv_search_tgetent+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
8877 ac_func_search_save_LIBS=$LIBS
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8881 /* Override any GCC internal prototype to avoid an error.
8882 Use char because int might match the return type of a GCC
8883 builtin and then its argument prototype would still apply. */
8896 for ac_lib in '' termcap tinfo curses ncurses; do
8897 if test -z "$ac_lib"; then
8898 ac_res="none required"
8901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8903 if ac_fn_c_try_link "$LINENO"; then :
8904 ac_cv_search_tgetent=$ac_res
8906 rm -f core conftest.err conftest.$ac_objext \
8908 if test "${ac_cv_search_tgetent+set}" = set; then :
8912 if test "${ac_cv_search_tgetent+set}" = set; then :
8915 ac_cv_search_tgetent=no
8918 LIBS=$ac_func_search_save_LIBS
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8921 $as_echo "$ac_cv_search_tgetent" >&6; }
8922 ac_res=$ac_cv_search_tgetent
8923 if test "$ac_res" != no; then :
8924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8929 if test "$ac_cv_search_tgetent" = no; then
8930 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
8934 # Check whether --with-system-readline was given.
8935 if test "${with_system_readline+set}" = set; then :
8936 withval=$with_system_readline;
8940 if test "$with_system_readline" = yes; then
8944 READLINE_TEXI_INCFLAG=
8946 READLINE='$(READLINE_DIR)/libreadline.a'
8947 READLINE_DEPS='$(READLINE)'
8948 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8949 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
8956 # Generate jit-reader.h
8958 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8961 # The cast to long int works around a bug in the HP C Compiler
8962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8964 # This bug is HP SR number 8606223364.
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8966 $as_echo_n "checking size of unsigned long long... " >&6; }
8967 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
8970 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8973 if test "$ac_cv_type_unsigned_long_long" = yes; then
8974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8976 { as_fn_set_status 77
8977 as_fn_error "cannot compute sizeof (unsigned long long)
8978 See \`config.log' for more details." "$LINENO" 5; }; }
8980 ac_cv_sizeof_unsigned_long_long=0
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8986 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8990 cat >>confdefs.h <<_ACEOF
8991 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8995 # The cast to long int works around a bug in the HP C Compiler
8996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8998 # This bug is HP SR number 8606223364.
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9000 $as_echo_n "checking size of unsigned long... " >&6; }
9001 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
9002 $as_echo_n "(cached) " >&6
9004 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9007 if test "$ac_cv_type_unsigned_long" = yes; then
9008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9010 { as_fn_set_status 77
9011 as_fn_error "cannot compute sizeof (unsigned long)
9012 See \`config.log' for more details." "$LINENO" 5; }; }
9014 ac_cv_sizeof_unsigned_long=0
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9020 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9024 cat >>confdefs.h <<_ACEOF
9025 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9029 # The cast to long int works around a bug in the HP C Compiler
9030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9032 # This bug is HP SR number 8606223364.
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9034 $as_echo_n "checking size of unsigned __int128... " >&6; }
9035 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
9038 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9041 if test "$ac_cv_type_unsigned___int128" = yes; then
9042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9044 { as_fn_set_status 77
9045 as_fn_error "cannot compute sizeof (unsigned __int128)
9046 See \`config.log' for more details." "$LINENO" 5; }; }
9048 ac_cv_sizeof_unsigned___int128=0
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9054 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9058 cat >>confdefs.h <<_ACEOF
9059 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9064 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9065 TARGET_PTR="unsigned long"
9066 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9067 TARGET_PTR="unsigned long long"
9068 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9069 TARGET_PTR="unsigned __int128"
9071 TARGET_PTR="unsigned long"
9075 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9079 $as_echo_n "checking for library containing dlopen... " >&6; }
9080 if test "${ac_cv_search_dlopen+set}" = set; then :
9081 $as_echo_n "(cached) " >&6
9083 ac_func_search_save_LIBS=$LIBS
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9087 /* Override any GCC internal prototype to avoid an error.
9088 Use char because int might match the return type of a GCC
9089 builtin and then its argument prototype would still apply. */
9102 for ac_lib in '' dl; do
9103 if test -z "$ac_lib"; then
9104 ac_res="none required"
9107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9109 if ac_fn_c_try_link "$LINENO"; then :
9110 ac_cv_search_dlopen=$ac_res
9112 rm -f core conftest.err conftest.$ac_objext \
9114 if test "${ac_cv_search_dlopen+set}" = set; then :
9118 if test "${ac_cv_search_dlopen+set}" = set; then :
9121 ac_cv_search_dlopen=no
9124 LIBS=$ac_func_search_save_LIBS
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9127 $as_echo "$ac_cv_search_dlopen" >&6; }
9128 ac_res=$ac_cv_search_dlopen
9129 if test "$ac_res" != no; then :
9130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9137 # Check whether --with-jit-reader-dir was given.
9138 if test "${with_jit_reader_dir+set}" = set; then :
9139 withval=$with_jit_reader_dir;
9140 JIT_READER_DIR=$withval
9142 JIT_READER_DIR=${libdir}/gdb
9146 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9147 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9148 ac_define_dir=`eval echo $JIT_READER_DIR`
9149 ac_define_dir=`eval echo $ac_define_dir`
9151 cat >>confdefs.h <<_ACEOF
9152 #define JIT_READER_DIR "$ac_define_dir"
9158 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9159 if test "x$prefix" = xNONE; then
9160 test_prefix=/usr/local
9165 test_prefix=$exec_prefix
9168 case ${ac_define_dir} in
9169 "${test_prefix}"|"${test_prefix}/"*|\
9170 '${exec_prefix}'|'${exec_prefix}/'*)
9175 cat >>confdefs.h <<_ACEOF
9176 #define JIT_READER_DIR_RELOCATABLE $value
9183 # Check whether --with-expat was given.
9184 if test "${with_expat+set}" = set; then :
9185 withval=$with_expat;
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9191 $as_echo_n "checking whether to use expat... " >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9193 $as_echo "$with_expat" >&6; }
9195 if test "${with_expat}" = no; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9197 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9210 acl_save_prefix="$prefix"
9211 prefix="$acl_final_prefix"
9212 acl_save_exec_prefix="$exec_prefix"
9213 exec_prefix="$acl_final_exec_prefix"
9215 eval additional_includedir=\"$includedir\"
9216 eval additional_libdir=\"$libdir\"
9218 exec_prefix="$acl_save_exec_prefix"
9219 prefix="$acl_save_prefix"
9222 # Check whether --with-libexpat-prefix was given.
9223 if test "${with_libexpat_prefix+set}" = set; then :
9224 withval=$with_libexpat_prefix;
9225 if test "X$withval" = "Xno"; then
9228 if test "X$withval" = "X"; then
9230 acl_save_prefix="$prefix"
9231 prefix="$acl_final_prefix"
9232 acl_save_exec_prefix="$exec_prefix"
9233 exec_prefix="$acl_final_exec_prefix"
9235 eval additional_includedir=\"$includedir\"
9236 eval additional_libdir=\"$libdir\"
9238 exec_prefix="$acl_save_exec_prefix"
9239 prefix="$acl_save_prefix"
9242 additional_includedir="$withval/include"
9243 additional_libdir="$withval/lib"
9254 names_already_handled=
9255 names_next_round='expat '
9256 while test -n "$names_next_round"; do
9257 names_this_round="$names_next_round"
9259 for name in $names_this_round; do
9261 for n in $names_already_handled; do
9262 if test "$n" = "$name"; then
9267 if test -z "$already_handled"; then
9268 names_already_handled="$names_already_handled $name"
9269 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9270 eval value=\"\$HAVE_LIB$uppername\"
9271 if test -n "$value"; then
9272 if test "$value" = yes; then
9273 eval value=\"\$LIB$uppername\"
9274 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
9275 eval value=\"\$LTLIB$uppername\"
9276 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9285 if test $use_additional = yes; then
9286 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9287 found_dir="$additional_libdir"
9288 found_so="$additional_libdir/lib$name.$shlibext"
9289 if test -f "$additional_libdir/lib$name.la"; then
9290 found_la="$additional_libdir/lib$name.la"
9293 if test -f "$additional_libdir/lib$name.$libext"; then
9294 found_dir="$additional_libdir"
9295 found_a="$additional_libdir/lib$name.$libext"
9296 if test -f "$additional_libdir/lib$name.la"; then
9297 found_la="$additional_libdir/lib$name.la"
9302 if test "X$found_dir" = "X"; then
9303 for x in $LDFLAGS $LTLIBEXPAT; do
9305 acl_save_prefix="$prefix"
9306 prefix="$acl_final_prefix"
9307 acl_save_exec_prefix="$exec_prefix"
9308 exec_prefix="$acl_final_exec_prefix"
9310 exec_prefix="$acl_save_exec_prefix"
9311 prefix="$acl_save_prefix"
9315 dir=`echo "X$x" | sed -e 's/^X-L//'`
9316 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9318 found_so="$dir/lib$name.$shlibext"
9319 if test -f "$dir/lib$name.la"; then
9320 found_la="$dir/lib$name.la"
9323 if test -f "$dir/lib$name.$libext"; then
9325 found_a="$dir/lib$name.$libext"
9326 if test -f "$dir/lib$name.la"; then
9327 found_la="$dir/lib$name.la"
9333 if test "X$found_dir" != "X"; then
9338 if test "X$found_dir" != "X"; then
9339 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9340 if test "X$found_so" != "X"; then
9341 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9342 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9345 for x in $ltrpathdirs; do
9346 if test "X$x" = "X$found_dir"; then
9351 if test -z "$haveit"; then
9352 ltrpathdirs="$ltrpathdirs $found_dir"
9354 if test "$hardcode_direct" = yes; then
9355 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9357 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9358 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9360 for x in $rpathdirs; do
9361 if test "X$x" = "X$found_dir"; then
9366 if test -z "$haveit"; then
9367 rpathdirs="$rpathdirs $found_dir"
9371 for x in $LDFLAGS $LIBEXPAT; do
9373 acl_save_prefix="$prefix"
9374 prefix="$acl_final_prefix"
9375 acl_save_exec_prefix="$exec_prefix"
9376 exec_prefix="$acl_final_exec_prefix"
9378 exec_prefix="$acl_save_exec_prefix"
9379 prefix="$acl_save_prefix"
9381 if test "X$x" = "X-L$found_dir"; then
9386 if test -z "$haveit"; then
9387 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9389 if test "$hardcode_minus_L" != no; then
9390 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9392 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9398 if test "X$found_a" != "X"; then
9399 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9401 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9404 additional_includedir=
9405 case "$found_dir" in
9407 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9408 additional_includedir="$basedir/include"
9411 if test "X$additional_includedir" != "X"; then
9412 if test "X$additional_includedir" != "X/usr/include"; then
9414 if test "X$additional_includedir" = "X/usr/local/include"; then
9415 if test -n "$GCC"; then
9417 linux*) haveit=yes;;
9421 if test -z "$haveit"; then
9422 for x in $CPPFLAGS $INCEXPAT; do
9424 acl_save_prefix="$prefix"
9425 prefix="$acl_final_prefix"
9426 acl_save_exec_prefix="$exec_prefix"
9427 exec_prefix="$acl_final_exec_prefix"
9429 exec_prefix="$acl_save_exec_prefix"
9430 prefix="$acl_save_prefix"
9432 if test "X$x" = "X-I$additional_includedir"; then
9437 if test -z "$haveit"; then
9438 if test -d "$additional_includedir"; then
9439 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9445 if test -n "$found_la"; then
9446 save_libdir="$libdir"
9448 */* | *\\*) . "$found_la" ;;
9449 *) . "./$found_la" ;;
9451 libdir="$save_libdir"
9452 for dep in $dependency_libs; do
9455 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9456 if test "X$additional_libdir" != "X/usr/lib"; then
9458 if test "X$additional_libdir" = "X/usr/local/lib"; then
9459 if test -n "$GCC"; then
9461 linux*) haveit=yes;;
9465 if test -z "$haveit"; then
9467 for x in $LDFLAGS $LIBEXPAT; do
9469 acl_save_prefix="$prefix"
9470 prefix="$acl_final_prefix"
9471 acl_save_exec_prefix="$exec_prefix"
9472 exec_prefix="$acl_final_exec_prefix"
9474 exec_prefix="$acl_save_exec_prefix"
9475 prefix="$acl_save_prefix"
9477 if test "X$x" = "X-L$additional_libdir"; then
9482 if test -z "$haveit"; then
9483 if test -d "$additional_libdir"; then
9484 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9488 for x in $LDFLAGS $LTLIBEXPAT; do
9490 acl_save_prefix="$prefix"
9491 prefix="$acl_final_prefix"
9492 acl_save_exec_prefix="$exec_prefix"
9493 exec_prefix="$acl_final_exec_prefix"
9495 exec_prefix="$acl_save_exec_prefix"
9496 prefix="$acl_save_prefix"
9498 if test "X$x" = "X-L$additional_libdir"; then
9503 if test -z "$haveit"; then
9504 if test -d "$additional_libdir"; then
9505 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9512 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9513 if test "$enable_rpath" != no; then
9515 for x in $rpathdirs; do
9516 if test "X$x" = "X$dir"; then
9521 if test -z "$haveit"; then
9522 rpathdirs="$rpathdirs $dir"
9525 for x in $ltrpathdirs; do
9526 if test "X$x" = "X$dir"; then
9531 if test -z "$haveit"; then
9532 ltrpathdirs="$ltrpathdirs $dir"
9537 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9540 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9543 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9544 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9550 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9551 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9557 if test "X$rpathdirs" != "X"; then
9558 if test -n "$hardcode_libdir_separator"; then
9560 for found_dir in $rpathdirs; do
9561 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9563 acl_save_libdir="$libdir"
9565 eval flag=\"$hardcode_libdir_flag_spec\"
9566 libdir="$acl_save_libdir"
9567 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9569 for found_dir in $rpathdirs; do
9570 acl_save_libdir="$libdir"
9572 eval flag=\"$hardcode_libdir_flag_spec\"
9573 libdir="$acl_save_libdir"
9574 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9578 if test "X$ltrpathdirs" != "X"; then
9579 for found_dir in $ltrpathdirs; do
9580 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9585 ac_save_CPPFLAGS="$CPPFLAGS"
9587 for element in $INCEXPAT; do
9589 for x in $CPPFLAGS; do
9591 acl_save_prefix="$prefix"
9592 prefix="$acl_final_prefix"
9593 acl_save_exec_prefix="$exec_prefix"
9594 exec_prefix="$acl_final_exec_prefix"
9596 exec_prefix="$acl_save_exec_prefix"
9597 prefix="$acl_save_prefix"
9599 if test "X$x" = "X$element"; then
9604 if test -z "$haveit"; then
9605 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9611 $as_echo_n "checking for libexpat... " >&6; }
9612 if test "${ac_cv_libexpat+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9616 ac_save_LIBS="$LIBS"
9617 LIBS="$LIBS $LIBEXPAT"
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9624 XML_Parser p = XML_ParserCreate (0);
9629 if ac_fn_c_try_link "$LINENO"; then :
9634 rm -f core conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636 LIBS="$ac_save_LIBS"
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9640 $as_echo "$ac_cv_libexpat" >&6; }
9641 if test "$ac_cv_libexpat" = yes; then
9644 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9647 $as_echo_n "checking how to link with libexpat... " >&6; }
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9649 $as_echo "$LIBEXPAT" >&6; }
9652 CPPFLAGS="$ac_save_CPPFLAGS"
9662 if test "$HAVE_LIBEXPAT" != yes; then
9663 if test "$with_expat" = yes; then
9664 as_fn_error "expat is missing or unusable" "$LINENO" 5
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9667 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9671 LIBS="$LIBS $LIBEXPAT"
9672 for ac_func in XML_StopParser
9674 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9675 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
9676 cat >>confdefs.h <<_ACEOF
9677 #define HAVE_XML_STOPPARSER 1
9687 # --------------------- #
9688 # Check for libpython. #
9689 # --------------------- #
9696 # Check whether --with-python was given.
9697 if test "${with_python+set}" = set; then :
9698 withval=$with_python;
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
9704 $as_echo_n "checking whether to use python... " >&6; }
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
9706 $as_echo "$with_python" >&6; }
9708 if test "${with_python}" = no; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
9710 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
9713 case "${with_python}" in
9715 if test -d ${with_python}; then
9716 # Assume the python binary is ${with_python}/bin/python.
9717 python_prog="${with_python}/bin/python"
9719 # If python does not exit ${with_python}/bin, then try in
9720 # ${with_python}. On Windows/MinGW, this is where the Python
9722 if test ! -x "${python_prog}"; then
9723 python_prog="${with_python}/python"
9726 if test ! -x "${python_prog}"; then
9727 # Fall back to gdb 7.0/7.1 behaviour.
9729 python_prefix=${with_python}
9731 elif test -x "${with_python}"; then
9732 # While we can't run python compiled for $host (unless host == build),
9733 # the user could write a script that provides the needed information,
9734 # so we support that.
9735 python_prog=${with_python}
9738 as_fn_error "invalid value for --with-python" "$LINENO" 5
9742 # Disallow --with-python=foo/bar.
9743 as_fn_error "invalid value for --with-python" "$LINENO" 5
9746 # The user has either specified auto, yes, or the name of the python
9747 # program assumed to be in $PATH.
9749 case "${with_python}" in
9751 if test ${build} = ${host}; then
9752 # Extract the first word of "python", so it can be a program name with args.
9753 set dummy python; ac_word=$2
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755 $as_echo_n "checking for $ac_word... " >&6; }
9756 if test "${ac_cv_path_python_prog_path+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9759 case $python_prog_path in
9761 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
9764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 test -z "$as_dir" && as_dir=.
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9771 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
9772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
9783 python_prog_path=$ac_cv_path_python_prog_path
9784 if test -n "$python_prog_path"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
9786 $as_echo "$python_prog_path" >&6; }
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9793 if test "${python_prog_path}" = missing; then
9796 python_prog=${python_prog_path}
9799 # Not much we can do except assume the cross-compiler will find the
9805 # While we can't run python compiled for $host (unless host == build),
9806 # the user could write a script that provides the needed information,
9807 # so we support that.
9808 python_prog="${with_python}"
9809 # Extract the first word of "${python_prog}", so it can be a program name with args.
9810 set dummy ${python_prog}; ac_word=$2
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812 $as_echo_n "checking for $ac_word... " >&6; }
9813 if test "${ac_cv_path_python_prog_path+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9816 case $python_prog_path in
9818 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9828 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
9840 python_prog_path=$ac_cv_path_python_prog_path
9841 if test -n "$python_prog_path"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
9843 $as_echo "$python_prog_path" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846 $as_echo "no" >&6; }
9850 if test "${python_prog_path}" = missing; then
9851 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
9857 if test "${python_prog}" != missing; then
9858 # We have a python program to use, but it may be too old.
9859 # Don't flag an error for --with-python=auto (the default).
9860 have_python_config=yes
9861 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
9862 if test $? != 0; then
9863 have_python_config=failed
9864 if test "${with_python}" != auto; then
9865 as_fn_error "failure running python-config --includes" "$LINENO" 5
9868 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
9869 if test $? != 0; then
9870 have_python_config=failed
9871 if test "${with_python}" != auto; then
9872 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
9875 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
9876 if test $? != 0; then
9877 have_python_config=failed
9878 if test "${with_python}" != auto; then
9879 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
9883 # We do not have a python executable we can use to determine where
9884 # to find the Python headers and libs. We cannot guess the include
9885 # path from the python_prefix either, because that include path
9886 # depends on the Python version. So, there is nothing much we can
9887 # do except assume that the compiler will be able to find those files.
9890 have_python_config=no
9893 # If we have python-config, only try the configuration it provides.
9894 # Otherwise fallback on the old way of trying different versions of
9898 if test "${have_python_config}" = yes; then
9899 # Determine the Python version by extracting "-lpython<version>"
9900 # part of the python_libs. <version> is usually X.Y with X and Y
9901 # being decimal numbers, but can also be XY (seen on Windows).
9903 # The extraction is performed using sed with a regular expression.
9904 # Initially, the regexp used was using the '?' quantifier to make
9905 # the dot in the version number optional. Unfortunately, this
9906 # does not work with non-GNU versions of sed because, because of
9907 # what looks like a limitation (the '?' quantifier does not work
9908 # with back-references). We work around this limitation by using
9909 # the '*' quantifier instead. It means that, in theory, we might
9910 # match unexpected version strings such as "-lpython2..7", but
9911 # this seems unlikely in practice. And even if that happens,
9912 # an error will be triggered later on, when checking that version
9914 python_version=`echo " ${python_libs} " \
9915 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
9916 case "${python_version}" in
9919 version=${python_version}
9921 new_CPPFLAGS=${python_includes}
9922 new_LIBS=${python_libs}
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9924 $as_echo_n "checking for ${version}... " >&6; }
9925 save_CPPFLAGS=$CPPFLAGS
9927 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9928 LIBS="$LIBS $new_LIBS"
9929 found_usable_python=no
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9941 if ac_fn_c_try_link "$LINENO"; then :
9942 have_libpython=${version}
9943 found_usable_python=yes
9944 PYTHON_CPPFLAGS=$new_CPPFLAGS
9945 PYTHON_LIBS=$new_LIBS
9947 rm -f core conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 CPPFLAGS=$save_CPPFLAGS
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9952 $as_echo "${found_usable_python}" >&6; }
9956 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
9959 elif test "${have_python_config}" != failed; then
9960 if test "${have_libpython}" = no; then
9964 new_CPPFLAGS=${python_includes}
9965 new_LIBS="${python_libs} -lpython2.7"
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9967 $as_echo_n "checking for ${version}... " >&6; }
9968 save_CPPFLAGS=$CPPFLAGS
9970 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9971 LIBS="$LIBS $new_LIBS"
9972 found_usable_python=no
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9984 if ac_fn_c_try_link "$LINENO"; then :
9985 have_libpython=${version}
9986 found_usable_python=yes
9987 PYTHON_CPPFLAGS=$new_CPPFLAGS
9988 PYTHON_LIBS=$new_LIBS
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 CPPFLAGS=$save_CPPFLAGS
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9995 $as_echo "${found_usable_python}" >&6; }
9998 if test "${have_libpython}" = no; then
10002 new_CPPFLAGS=${python_includes}
10003 new_LIBS="${python_libs} -lpython2.6"
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10005 $as_echo_n "checking for ${version}... " >&6; }
10006 save_CPPFLAGS=$CPPFLAGS
10008 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10009 LIBS="$LIBS $new_LIBS"
10010 found_usable_python=no
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013 #include "Python.h"
10022 if ac_fn_c_try_link "$LINENO"; then :
10023 have_libpython=${version}
10024 found_usable_python=yes
10025 PYTHON_CPPFLAGS=$new_CPPFLAGS
10026 PYTHON_LIBS=$new_LIBS
10028 rm -f core conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10030 CPPFLAGS=$save_CPPFLAGS
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10033 $as_echo "${found_usable_python}" >&6; }
10036 if test ${have_libpython} = no; then
10040 new_CPPFLAGS=${python_includes}
10041 new_LIBS="${python_libs} -lpython2.5"
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10043 $as_echo_n "checking for ${version}... " >&6; }
10044 save_CPPFLAGS=$CPPFLAGS
10046 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10047 LIBS="$LIBS $new_LIBS"
10048 found_usable_python=no
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */
10051 #include "Python.h"
10060 if ac_fn_c_try_link "$LINENO"; then :
10061 have_libpython=${version}
10062 found_usable_python=yes
10063 PYTHON_CPPFLAGS=$new_CPPFLAGS
10064 PYTHON_LIBS=$new_LIBS
10066 rm -f core conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 CPPFLAGS=$save_CPPFLAGS
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10071 $as_echo "${found_usable_python}" >&6; }
10074 if test ${have_libpython} = no; then
10078 new_CPPFLAGS=${python_includes}
10079 new_LIBS="${python_libs} -lpython2.4"
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10081 $as_echo_n "checking for ${version}... " >&6; }
10082 save_CPPFLAGS=$CPPFLAGS
10084 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10085 LIBS="$LIBS $new_LIBS"
10086 found_usable_python=no
10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10089 #include "Python.h"
10098 if ac_fn_c_try_link "$LINENO"; then :
10099 have_libpython=${version}
10100 found_usable_python=yes
10101 PYTHON_CPPFLAGS=$new_CPPFLAGS
10102 PYTHON_LIBS=$new_LIBS
10104 rm -f core conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10106 CPPFLAGS=$save_CPPFLAGS
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10109 $as_echo "${found_usable_python}" >&6; }
10113 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
10115 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10117 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
10119 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10121 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
10123 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10125 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
10127 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10131 if test "${have_libpython}" = no; then
10132 case "${with_python}" in
10134 as_fn_error "python is missing or unusable" "$LINENO" 5
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10138 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10141 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10145 if test -n "${python_prefix}"; then
10147 cat >>confdefs.h <<_ACEOF
10148 #define WITH_PYTHON_PATH "${python_prefix}"
10152 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10153 if test "x$prefix" = xNONE; then
10154 test_prefix=/usr/local
10156 test_prefix=$prefix
10159 test_prefix=$exec_prefix
10162 case ${python_prefix} in
10163 "${test_prefix}"|"${test_prefix}/"*|\
10164 '${exec_prefix}'|'${exec_prefix}/'*)
10169 cat >>confdefs.h <<_ACEOF
10170 #define PYTHON_PATH_RELOCATABLE $value
10178 if test "${have_libpython}" != no; then
10180 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10182 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10183 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10184 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10185 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
10186 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10188 # Flags needed to compile Python code (taken from python-config --cflags).
10189 # We cannot call python-config directly because it will output whatever was
10190 # used when compiling the Python interpreter itself, including flags which
10191 # would make the python-related objects be compiled differently from the
10192 # rest of GDB (e.g., -O2 and -fPIC).
10193 if test "${GCC}" = yes; then
10194 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10197 if test "x${tentative_python_cflags}" != x; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10199 $as_echo_n "checking compiler flags for python code... " >&6; }
10200 for flag in ${tentative_python_cflags}; do
10201 # Check that the compiler accepts it
10202 saved_CFLAGS="$CFLAGS"
10203 CFLAGS="$CFLAGS $flag"
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10215 if ac_fn_c_try_compile "$LINENO"; then :
10216 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10219 CFLAGS="$saved_CFLAGS"
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10222 $as_echo "${PYTHON_CFLAGS}" >&6; }
10225 # On x64 Windows, Python's include headers, and pyconfig.h in
10226 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10227 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10228 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10229 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10230 # The issue was reported to the Python community, but still isn't
10231 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10233 case "$gdb_host" in
10235 if test "${GCC}" = yes; then
10236 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
10241 # Note that "python -m threading" cannot be used to check for
10242 # threading support due to a bug in Python 2.7.3
10243 # (http://bugs.python.org/issue15567).
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10245 $as_echo_n "checking whether python supports threads... " >&6; }
10246 saved_CPPFLAGS="${CPPFLAGS}"
10247 CPPFLAGS="${PYTHON_CPPFLAGS}"
10248 # Note that the test is reversed so that python_has_threads=yes on
10249 # unexpected failures.
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10253 #include <Python.h>
10259 if ac_fn_c_try_cpp "$LINENO"; then :
10260 python_has_threads=no
10262 python_has_threads=yes
10264 rm -f conftest.err conftest.$ac_ext
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10266 $as_echo "${python_has_threads}" >&6; }
10267 CPPFLAGS="${saved_CPPFLAGS}"
10269 # Even if Python support is not compiled in, we need to have this file
10270 # included so that the "python" command, et.al., still exists.
10271 CONFIG_OBS="$CONFIG_OBS python.o"
10272 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
10275 # Work around Python http://bugs.python.org/issue10112. See also
10276 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10277 # no effect. Note that the only test after this that uses Python is
10278 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10279 # run without -export-dynamic too.
10280 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10285 if test "${have_libpython}" != no; then
10287 HAVE_PYTHON_FALSE='#'
10289 HAVE_PYTHON_TRUE='#'
10294 # -------------------- #
10295 # Check for libguile. #
10296 # -------------------- #
10303 # Check whether --with-guile was given.
10304 if test "${with_guile+set}" = set; then :
10305 withval=$with_guile;
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10311 $as_echo_n "checking whether to use guile... " >&6; }
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10313 $as_echo "$with_guile" >&6; }
10315 # Extract the first word of "pkg-config", so it can be a program name with args.
10316 set dummy pkg-config; ac_word=$2
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10318 $as_echo_n "checking for $ac_word... " >&6; }
10319 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10322 case $pkg_config_prog_path in
10324 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
10327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328 for as_dir in $PATH
10331 test -z "$as_dir" && as_dir=.
10332 for ac_exec_ext in '' $ac_executable_extensions; do
10333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10334 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
10335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10342 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
10346 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
10347 if test -n "$pkg_config_prog_path"; then
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10349 $as_echo "$pkg_config_prog_path" >&6; }
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10357 try_guile_versions="guile-2.2 guile-2.0"
10359 case "${with_guile}" in
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10362 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10365 if test "${pkg_config_prog_path}" = "missing"; then
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10367 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10370 pkg_config=${pkg_config_prog_path}
10371 guile_version_list=${try_guile_versions}
10374 found_usable_guile=checking
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10376 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10377 for guile_version in ${guile_version_list}; do
10378 ${pkg_config} --exists ${guile_version} 2>/dev/null
10379 if test $? != 0; then
10382 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
10383 if test $? != 0; then
10384 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10386 new_LIBS=`${pkg_config} --libs ${guile_version}`
10387 if test $? != 0; then
10388 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10390 found_usable_guile=${guile_version}
10393 if test "${found_usable_guile}" = "checking"; then
10394 if test "${flag_errors}" = "yes"; then
10395 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10397 found_usable_guile=no
10400 if test "${found_usable_guile}" != no; then
10401 save_CPPFLAGS=$CPPFLAGS
10403 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10404 LIBS="$LIBS $new_LIBS"
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10407 #include "libguile.h"
10416 if ac_fn_c_try_link "$LINENO"; then :
10418 GUILE_CPPFLAGS=$new_CPPFLAGS
10419 GUILE_LIBS=$new_LIBS
10421 found_usable_guile=no
10423 rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10426 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
10428 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10433 CPPFLAGS=$save_CPPFLAGS
10435 if test "${found_usable_guile}" = no; then
10436 if test "${flag_errors}" = yes; then
10437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10439 as_fn_error "linking guile version ${guile_version} test program failed
10440 See \`config.log' for more details." "$LINENO" 5; }
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10445 $as_echo "${found_usable_guile}" >&6; }
10450 if test "${pkg_config_prog_path}" = "missing"; then
10451 as_fn_error "pkg-config not found" "$LINENO" 5
10454 pkg_config=${pkg_config_prog_path}
10455 guile_version_list=${try_guile_versions}
10458 found_usable_guile=checking
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10460 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10461 for guile_version in ${guile_version_list}; do
10462 ${pkg_config} --exists ${guile_version} 2>/dev/null
10463 if test $? != 0; then
10466 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
10467 if test $? != 0; then
10468 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10470 new_LIBS=`${pkg_config} --libs ${guile_version}`
10471 if test $? != 0; then
10472 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10474 found_usable_guile=${guile_version}
10477 if test "${found_usable_guile}" = "checking"; then
10478 if test "${flag_errors}" = "yes"; then
10479 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10481 found_usable_guile=no
10484 if test "${found_usable_guile}" != no; then
10485 save_CPPFLAGS=$CPPFLAGS
10487 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10488 LIBS="$LIBS $new_LIBS"
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491 #include "libguile.h"
10500 if ac_fn_c_try_link "$LINENO"; then :
10502 GUILE_CPPFLAGS=$new_CPPFLAGS
10503 GUILE_LIBS=$new_LIBS
10505 found_usable_guile=no
10507 rm -f core conftest.err conftest.$ac_objext \
10508 conftest$ac_exeext conftest.$ac_ext
10509 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10510 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
10512 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10517 CPPFLAGS=$save_CPPFLAGS
10519 if test "${found_usable_guile}" = no; then
10520 if test "${flag_errors}" = yes; then
10521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10523 as_fn_error "linking guile version ${guile_version} test program failed
10524 See \`config.log' for more details." "$LINENO" 5; }
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10529 $as_echo "${found_usable_guile}" >&6; }
10533 if test -x "${with_guile}"; then
10535 pkg_config=${with_guile}
10536 guile_version_list=${try_guile_versions}
10539 found_usable_guile=checking
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10541 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10542 for guile_version in ${guile_version_list}; do
10543 ${pkg_config} --exists ${guile_version} 2>/dev/null
10544 if test $? != 0; then
10547 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
10548 if test $? != 0; then
10549 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10551 new_LIBS=`${pkg_config} --libs ${guile_version}`
10552 if test $? != 0; then
10553 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10555 found_usable_guile=${guile_version}
10558 if test "${found_usable_guile}" = "checking"; then
10559 if test "${flag_errors}" = "yes"; then
10560 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10562 found_usable_guile=no
10565 if test "${found_usable_guile}" != no; then
10566 save_CPPFLAGS=$CPPFLAGS
10568 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10569 LIBS="$LIBS $new_LIBS"
10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10572 #include "libguile.h"
10581 if ac_fn_c_try_link "$LINENO"; then :
10583 GUILE_CPPFLAGS=$new_CPPFLAGS
10584 GUILE_LIBS=$new_LIBS
10586 found_usable_guile=no
10588 rm -f core conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10591 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
10593 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10598 CPPFLAGS=$save_CPPFLAGS
10600 if test "${found_usable_guile}" = no; then
10601 if test "${flag_errors}" = yes; then
10602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10604 as_fn_error "linking guile version ${guile_version} test program failed
10605 See \`config.log' for more details." "$LINENO" 5; }
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10610 $as_echo "${found_usable_guile}" >&6; }
10613 as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
10617 # Disallow --with=guile="" and --with-guile=foo/bar.
10618 as_fn_error "invalid value for --with-guile" "$LINENO" 5
10621 # A space separate list of guile versions to try, in order.
10622 if test "${pkg_config_prog_path}" = "missing"; then
10623 as_fn_error "pkg-config not found" "$LINENO" 5
10626 pkg_config=${pkg_config_prog_path}
10627 guile_version_list=${with_guile}
10630 found_usable_guile=checking
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10632 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10633 for guile_version in ${guile_version_list}; do
10634 ${pkg_config} --exists ${guile_version} 2>/dev/null
10635 if test $? != 0; then
10638 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
10639 if test $? != 0; then
10640 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10642 new_LIBS=`${pkg_config} --libs ${guile_version}`
10643 if test $? != 0; then
10644 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10646 found_usable_guile=${guile_version}
10649 if test "${found_usable_guile}" = "checking"; then
10650 if test "${flag_errors}" = "yes"; then
10651 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10653 found_usable_guile=no
10656 if test "${found_usable_guile}" != no; then
10657 save_CPPFLAGS=$CPPFLAGS
10659 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10660 LIBS="$LIBS $new_LIBS"
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10663 #include "libguile.h"
10672 if ac_fn_c_try_link "$LINENO"; then :
10674 GUILE_CPPFLAGS=$new_CPPFLAGS
10675 GUILE_LIBS=$new_LIBS
10677 found_usable_guile=no
10679 rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10682 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
10684 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10689 CPPFLAGS=$save_CPPFLAGS
10691 if test "${found_usable_guile}" = no; then
10692 if test "${flag_errors}" = yes; then
10693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10695 as_fn_error "linking guile version ${guile_version} test program failed
10696 See \`config.log' for more details." "$LINENO" 5; }
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10701 $as_echo "${found_usable_guile}" >&6; }
10706 if test "${have_libguile}" != no; then
10707 case "${with_guile}" in
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
10711 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
10712 if test "${ac_cv_guild_program_name+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10715 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
10717 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
10718 # the 'guild' and 'bindir' variables. In that case, try to guess
10719 # what the program name is, at the risk of getting it wrong if
10720 # Guile was configured with '--program-suffix' or similar.
10721 if test "x$ac_cv_guild_program_name" = "x"; then
10722 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
10723 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
10728 $as_echo "$ac_cv_guild_program_name" >&6; }
10730 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
10731 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
10734 GUILD="$ac_cv_guild_program_name"
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
10741 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
10742 if test "${ac_cv_guild_program_name+set}" = set; then :
10743 $as_echo_n "(cached) " >&6
10745 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
10747 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
10748 # the 'guild' and 'bindir' variables. In that case, try to guess
10749 # what the program name is, at the risk of getting it wrong if
10750 # Guile was configured with '--program-suffix' or similar.
10751 if test "x$ac_cv_guild_program_name" = "x"; then
10752 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
10753 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
10758 $as_echo "$ac_cv_guild_program_name" >&6; }
10760 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
10761 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
10764 GUILD="$ac_cv_guild_program_name"
10771 if test "$cross_compiling" = no; then
10774 GUILD_TARGET_FLAG="--target=$host"
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
10781 $as_echo_n "checking whether guild supports this host... " >&6; }
10782 if test "${ac_cv_guild_ok+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
10785 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
10786 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
10793 $as_echo "$ac_cv_guild_ok" >&6; }
10795 if test "$ac_cv_guild_ok" = no; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
10798 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
10802 if test "${have_libguile}" != no; then
10804 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
10806 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
10807 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
10808 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
10809 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
10810 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
10813 save_CPPFLAGS="$CPPFLAGS"
10815 CPPFLAGS="$GUILE_CPPFLAGS"
10816 for ac_func in scm_new_smob
10818 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
10819 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
10820 cat >>confdefs.h <<_ACEOF
10821 #define HAVE_SCM_NEW_SMOB 1
10828 CPPFLAGS="$save_CPPFLAGS"
10830 # Even if Guile support is not compiled in, we need to have these files
10832 CONFIG_OBS="$CONFIG_OBS guile.o"
10833 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
10837 if test "${have_libguile}" != no; then
10839 HAVE_GUILE_FALSE='#'
10841 HAVE_GUILE_TRUE='#'
10846 # --------------------- #
10847 # Check for libmcheck. #
10848 # --------------------- #
10850 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
10851 # but turn it off if Python is enabled with threads, since -lmcheck is
10852 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
10853 # and for releases.
10854 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
10855 && $development; then
10856 libmcheck_default=yes
10858 libmcheck_default=no
10861 # Check whether --enable-libmcheck was given.
10862 if test "${enable_libmcheck+set}" = set; then :
10863 enableval=$enable_libmcheck; case "${enableval}" in
10864 yes | y) ENABLE_LIBMCHECK="yes" ;;
10865 no | n) ENABLE_LIBMCHECK="no" ;;
10866 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
10871 if test -z "${ENABLE_LIBMCHECK}"; then
10872 ENABLE_LIBMCHECK=${libmcheck_default}
10875 if test "$ENABLE_LIBMCHECK" = "yes" ; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
10877 $as_echo_n "checking for main in -lmcheck... " >&6; }
10878 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
10879 $as_echo_n "(cached) " >&6
10881 ac_check_lib_save_LIBS=$LIBS
10882 LIBS="-lmcheck $LIBS"
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10895 if ac_fn_c_try_link "$LINENO"; then :
10896 ac_cv_lib_mcheck_main=yes
10898 ac_cv_lib_mcheck_main=no
10900 rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902 LIBS=$ac_check_lib_save_LIBS
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
10905 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
10906 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
10907 cat >>confdefs.h <<_ACEOF
10908 #define HAVE_LIBMCHECK 1
10911 LIBS="-lmcheck $LIBS"
10918 if test "$ENABLE_LIBMCHECK" = "yes" \
10919 -a "${have_libpython}" != "no" \
10920 -a "${python_has_threads}" = "yes" ; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
10922 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
10926 # Check whether --with-intel_pt was given.
10927 if test "${with_intel_pt+set}" = set; then :
10928 withval=$with_intel_pt;
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10934 $as_echo_n "checking whether to use intel pt... " >&6; }
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10936 $as_echo "$with_intel_pt" >&6; }
10938 if test "${with_intel_pt}" = no; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
10940 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10946 #include <linux/perf_event.h>
10947 #ifndef PERF_ATTR_SIZE_VER5
10952 if ac_fn_c_try_cpp "$LINENO"; then :
10957 rm -f conftest.err conftest.$ac_ext
10958 if test "$perf_event" != yes; then
10959 if test "$with_intel_pt" = yes; then
10960 as_fn_error "linux/perf_event.h missing or too old" "$LINENO" 5
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10963 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10977 acl_save_prefix="$prefix"
10978 prefix="$acl_final_prefix"
10979 acl_save_exec_prefix="$exec_prefix"
10980 exec_prefix="$acl_final_exec_prefix"
10982 eval additional_includedir=\"$includedir\"
10983 eval additional_libdir=\"$libdir\"
10985 exec_prefix="$acl_save_exec_prefix"
10986 prefix="$acl_save_prefix"
10989 # Check whether --with-libipt-prefix was given.
10990 if test "${with_libipt_prefix+set}" = set; then :
10991 withval=$with_libipt_prefix;
10992 if test "X$withval" = "Xno"; then
10995 if test "X$withval" = "X"; then
10997 acl_save_prefix="$prefix"
10998 prefix="$acl_final_prefix"
10999 acl_save_exec_prefix="$exec_prefix"
11000 exec_prefix="$acl_final_exec_prefix"
11002 eval additional_includedir=\"$includedir\"
11003 eval additional_libdir=\"$libdir\"
11005 exec_prefix="$acl_save_exec_prefix"
11006 prefix="$acl_save_prefix"
11009 additional_includedir="$withval/include"
11010 additional_libdir="$withval/lib"
11021 names_already_handled=
11022 names_next_round='ipt '
11023 while test -n "$names_next_round"; do
11024 names_this_round="$names_next_round"
11026 for name in $names_this_round; do
11028 for n in $names_already_handled; do
11029 if test "$n" = "$name"; then
11030 already_handled=yes
11034 if test -z "$already_handled"; then
11035 names_already_handled="$names_already_handled $name"
11036 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11037 eval value=\"\$HAVE_LIB$uppername\"
11038 if test -n "$value"; then
11039 if test "$value" = yes; then
11040 eval value=\"\$LIB$uppername\"
11041 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
11042 eval value=\"\$LTLIB$uppername\"
11043 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
11052 if test $use_additional = yes; then
11053 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11054 found_dir="$additional_libdir"
11055 found_so="$additional_libdir/lib$name.$shlibext"
11056 if test -f "$additional_libdir/lib$name.la"; then
11057 found_la="$additional_libdir/lib$name.la"
11060 if test -f "$additional_libdir/lib$name.$libext"; then
11061 found_dir="$additional_libdir"
11062 found_a="$additional_libdir/lib$name.$libext"
11063 if test -f "$additional_libdir/lib$name.la"; then
11064 found_la="$additional_libdir/lib$name.la"
11069 if test "X$found_dir" = "X"; then
11070 for x in $LDFLAGS $LTLIBIPT; do
11072 acl_save_prefix="$prefix"
11073 prefix="$acl_final_prefix"
11074 acl_save_exec_prefix="$exec_prefix"
11075 exec_prefix="$acl_final_exec_prefix"
11077 exec_prefix="$acl_save_exec_prefix"
11078 prefix="$acl_save_prefix"
11082 dir=`echo "X$x" | sed -e 's/^X-L//'`
11083 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11085 found_so="$dir/lib$name.$shlibext"
11086 if test -f "$dir/lib$name.la"; then
11087 found_la="$dir/lib$name.la"
11090 if test -f "$dir/lib$name.$libext"; then
11092 found_a="$dir/lib$name.$libext"
11093 if test -f "$dir/lib$name.la"; then
11094 found_la="$dir/lib$name.la"
11100 if test "X$found_dir" != "X"; then
11105 if test "X$found_dir" != "X"; then
11106 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11107 if test "X$found_so" != "X"; then
11108 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11109 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11112 for x in $ltrpathdirs; do
11113 if test "X$x" = "X$found_dir"; then
11118 if test -z "$haveit"; then
11119 ltrpathdirs="$ltrpathdirs $found_dir"
11121 if test "$hardcode_direct" = yes; then
11122 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11124 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11125 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11127 for x in $rpathdirs; do
11128 if test "X$x" = "X$found_dir"; then
11133 if test -z "$haveit"; then
11134 rpathdirs="$rpathdirs $found_dir"
11138 for x in $LDFLAGS $LIBIPT; do
11140 acl_save_prefix="$prefix"
11141 prefix="$acl_final_prefix"
11142 acl_save_exec_prefix="$exec_prefix"
11143 exec_prefix="$acl_final_exec_prefix"
11145 exec_prefix="$acl_save_exec_prefix"
11146 prefix="$acl_save_prefix"
11148 if test "X$x" = "X-L$found_dir"; then
11153 if test -z "$haveit"; then
11154 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11156 if test "$hardcode_minus_L" != no; then
11157 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11159 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11165 if test "X$found_a" != "X"; then
11166 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
11168 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11171 additional_includedir=
11172 case "$found_dir" in
11174 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11175 additional_includedir="$basedir/include"
11178 if test "X$additional_includedir" != "X"; then
11179 if test "X$additional_includedir" != "X/usr/include"; then
11181 if test "X$additional_includedir" = "X/usr/local/include"; then
11182 if test -n "$GCC"; then
11184 linux*) haveit=yes;;
11188 if test -z "$haveit"; then
11189 for x in $CPPFLAGS $INCIPT; do
11191 acl_save_prefix="$prefix"
11192 prefix="$acl_final_prefix"
11193 acl_save_exec_prefix="$exec_prefix"
11194 exec_prefix="$acl_final_exec_prefix"
11196 exec_prefix="$acl_save_exec_prefix"
11197 prefix="$acl_save_prefix"
11199 if test "X$x" = "X-I$additional_includedir"; then
11204 if test -z "$haveit"; then
11205 if test -d "$additional_includedir"; then
11206 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11212 if test -n "$found_la"; then
11213 save_libdir="$libdir"
11214 case "$found_la" in
11215 */* | *\\*) . "$found_la" ;;
11216 *) . "./$found_la" ;;
11218 libdir="$save_libdir"
11219 for dep in $dependency_libs; do
11222 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11223 if test "X$additional_libdir" != "X/usr/lib"; then
11225 if test "X$additional_libdir" = "X/usr/local/lib"; then
11226 if test -n "$GCC"; then
11228 linux*) haveit=yes;;
11232 if test -z "$haveit"; then
11234 for x in $LDFLAGS $LIBIPT; do
11236 acl_save_prefix="$prefix"
11237 prefix="$acl_final_prefix"
11238 acl_save_exec_prefix="$exec_prefix"
11239 exec_prefix="$acl_final_exec_prefix"
11241 exec_prefix="$acl_save_exec_prefix"
11242 prefix="$acl_save_prefix"
11244 if test "X$x" = "X-L$additional_libdir"; then
11249 if test -z "$haveit"; then
11250 if test -d "$additional_libdir"; then
11251 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11255 for x in $LDFLAGS $LTLIBIPT; do
11257 acl_save_prefix="$prefix"
11258 prefix="$acl_final_prefix"
11259 acl_save_exec_prefix="$exec_prefix"
11260 exec_prefix="$acl_final_exec_prefix"
11262 exec_prefix="$acl_save_exec_prefix"
11263 prefix="$acl_save_prefix"
11265 if test "X$x" = "X-L$additional_libdir"; then
11270 if test -z "$haveit"; then
11271 if test -d "$additional_libdir"; then
11272 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11279 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11280 if test "$enable_rpath" != no; then
11282 for x in $rpathdirs; do
11283 if test "X$x" = "X$dir"; then
11288 if test -z "$haveit"; then
11289 rpathdirs="$rpathdirs $dir"
11292 for x in $ltrpathdirs; do
11293 if test "X$x" = "X$dir"; then
11298 if test -z "$haveit"; then
11299 ltrpathdirs="$ltrpathdirs $dir"
11304 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11307 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11310 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
11311 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11317 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11318 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11324 if test "X$rpathdirs" != "X"; then
11325 if test -n "$hardcode_libdir_separator"; then
11327 for found_dir in $rpathdirs; do
11328 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11330 acl_save_libdir="$libdir"
11332 eval flag=\"$hardcode_libdir_flag_spec\"
11333 libdir="$acl_save_libdir"
11334 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11336 for found_dir in $rpathdirs; do
11337 acl_save_libdir="$libdir"
11338 libdir="$found_dir"
11339 eval flag=\"$hardcode_libdir_flag_spec\"
11340 libdir="$acl_save_libdir"
11341 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11345 if test "X$ltrpathdirs" != "X"; then
11346 for found_dir in $ltrpathdirs; do
11347 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11352 ac_save_CPPFLAGS="$CPPFLAGS"
11354 for element in $INCIPT; do
11356 for x in $CPPFLAGS; do
11358 acl_save_prefix="$prefix"
11359 prefix="$acl_final_prefix"
11360 acl_save_exec_prefix="$exec_prefix"
11361 exec_prefix="$acl_final_exec_prefix"
11363 exec_prefix="$acl_save_exec_prefix"
11364 prefix="$acl_save_prefix"
11366 if test "X$x" = "X$element"; then
11371 if test -z "$haveit"; then
11372 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11378 $as_echo_n "checking for libipt... " >&6; }
11379 if test "${ac_cv_libipt+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11383 ac_save_LIBS="$LIBS"
11384 LIBS="$LIBS $LIBIPT"
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11387 #include "intel-pt.h"
11391 pt_insn_alloc_decoder (0);
11396 if ac_fn_c_try_link "$LINENO"; then :
11401 rm -f core conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11403 LIBS="$ac_save_LIBS"
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11407 $as_echo "$ac_cv_libipt" >&6; }
11408 if test "$ac_cv_libipt" = yes; then
11411 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11414 $as_echo_n "checking how to link with libipt... " >&6; }
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11416 $as_echo "$LIBIPT" >&6; }
11419 CPPFLAGS="$ac_save_CPPFLAGS"
11429 if test "$HAVE_LIBIPT" != yes; then
11430 if test "$with_intel_pt" = yes; then
11431 as_fn_error "libipt is missing or unusable" "$LINENO" 5
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11434 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11439 # ------------------------- #
11440 # Checks for header files. #
11441 # ------------------------- #
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11444 $as_echo_n "checking for ANSI C header files... " >&6; }
11445 if test "${ac_cv_header_stdc+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11450 #include <stdlib.h>
11451 #include <stdarg.h>
11452 #include <string.h>
11463 if ac_fn_c_try_compile "$LINENO"; then :
11464 ac_cv_header_stdc=yes
11466 ac_cv_header_stdc=no
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 if test $ac_cv_header_stdc = yes; then
11471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11474 #include <string.h>
11477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11478 $EGREP "memchr" >/dev/null 2>&1; then :
11481 ac_cv_header_stdc=no
11487 if test $ac_cv_header_stdc = yes; then
11488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11491 #include <stdlib.h>
11494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11495 $EGREP "free" >/dev/null 2>&1; then :
11498 ac_cv_header_stdc=no
11504 if test $ac_cv_header_stdc = yes; then
11505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11506 if test "$cross_compiling" = yes; then :
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11512 #include <stdlib.h>
11513 #if ((' ' & 0x0FF) == 0x020)
11514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11517 # define ISLOWER(c) \
11518 (('a' <= (c) && (c) <= 'i') \
11519 || ('j' <= (c) && (c) <= 'r') \
11520 || ('s' <= (c) && (c) <= 'z'))
11521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11529 for (i = 0; i < 256; i++)
11530 if (XOR (islower (i), ISLOWER (i))
11531 || toupper (i) != TOUPPER (i))
11536 if ac_fn_c_try_run "$LINENO"; then :
11539 ac_cv_header_stdc=no
11541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11542 conftest.$ac_objext conftest.beam conftest.$ac_ext
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11548 $as_echo "$ac_cv_header_stdc" >&6; }
11549 if test $ac_cv_header_stdc = yes; then
11551 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11555 # elf_hp.h is for HP/UX 64-bit shared library support.
11556 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11559 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11560 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11561 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11562 termios.h termio.h \
11566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11567 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11568 eval as_val=\$$as_ac_Header
11569 if test "x$as_val" = x""yes; then :
11570 cat >>confdefs.h <<_ACEOF
11571 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11578 for ac_header in sys/proc.h
11580 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11581 # include <sys/param.h>
11585 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11586 cat >>confdefs.h <<_ACEOF
11587 #define HAVE_SYS_PROC_H 1
11594 for ac_header in sys/user.h
11596 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11597 # include <sys/param.h>
11601 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11602 cat >>confdefs.h <<_ACEOF
11603 #define HAVE_SYS_USER_H 1
11611 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11612 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11613 # think that we don't have <curses.h> if we're using GCC.
11616 if test "$GCC" = yes; then
11618 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11622 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11625 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11626 eval as_val=\$$as_ac_Header
11627 if test "x$as_val" = x""yes; then :
11628 cat >>confdefs.h <<_ACEOF
11629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11636 for ac_header in term.h
11638 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11639 # include <curses.h>
11643 if test "x$ac_cv_header_term_h" = x""yes; then :
11644 cat >>confdefs.h <<_ACEOF
11645 #define HAVE_TERM_H 1
11653 # ------------------------- #
11654 # Checks for declarations. #
11655 # ------------------------- #
11658 # Check for presence and size of long long.
11659 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11660 if test "x$ac_cv_type_long_long" = x""yes; then :
11662 cat >>confdefs.h <<_ACEOF
11663 #define HAVE_LONG_LONG 1
11666 # The cast to long int works around a bug in the HP C Compiler
11667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11669 # This bug is HP SR number 8606223364.
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11671 $as_echo_n "checking size of long long... " >&6; }
11672 if test "${ac_cv_sizeof_long_long+set}" = set; then :
11673 $as_echo_n "(cached) " >&6
11675 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11678 if test "$ac_cv_type_long_long" = yes; then
11679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11681 { as_fn_set_status 77
11682 as_fn_error "cannot compute sizeof (long long)
11683 See \`config.log' for more details." "$LINENO" 5; }; }
11685 ac_cv_sizeof_long_long=0
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11691 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11695 cat >>confdefs.h <<_ACEOF
11696 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11703 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
11704 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
11710 cat >>confdefs.h <<_ACEOF
11711 #define HAVE_DECL_BASENAME $ac_have_decl
11713 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
11714 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
11720 cat >>confdefs.h <<_ACEOF
11721 #define HAVE_DECL_FFS $ac_have_decl
11723 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
11724 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
11730 cat >>confdefs.h <<_ACEOF
11731 #define HAVE_DECL_ASPRINTF $ac_have_decl
11733 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
11734 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
11740 cat >>confdefs.h <<_ACEOF
11741 #define HAVE_DECL_VASPRINTF $ac_have_decl
11743 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11744 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11750 cat >>confdefs.h <<_ACEOF
11751 #define HAVE_DECL_SNPRINTF $ac_have_decl
11753 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11754 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11760 cat >>confdefs.h <<_ACEOF
11761 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11764 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
11765 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
11771 cat >>confdefs.h <<_ACEOF
11772 #define HAVE_DECL_STRTOL $ac_have_decl
11774 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
11775 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
11781 cat >>confdefs.h <<_ACEOF
11782 #define HAVE_DECL_STRTOUL $ac_have_decl
11784 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
11785 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
11791 cat >>confdefs.h <<_ACEOF
11792 #define HAVE_DECL_STRTOLL $ac_have_decl
11794 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
11795 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
11801 cat >>confdefs.h <<_ACEOF
11802 #define HAVE_DECL_STRTOULL $ac_have_decl
11805 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
11806 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
11812 cat >>confdefs.h <<_ACEOF
11813 #define HAVE_DECL_STRVERSCMP $ac_have_decl
11818 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11819 if test "x$ac_cv_have_decl_free" = x""yes; then :
11825 cat >>confdefs.h <<_ACEOF
11826 #define HAVE_DECL_FREE $ac_have_decl
11828 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11829 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11835 cat >>confdefs.h <<_ACEOF
11836 #define HAVE_DECL_MALLOC $ac_have_decl
11838 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11839 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11845 cat >>confdefs.h <<_ACEOF
11846 #define HAVE_DECL_REALLOC $ac_have_decl
11848 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11849 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11855 cat >>confdefs.h <<_ACEOF
11856 #define HAVE_DECL_SNPRINTF $ac_have_decl
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11861 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11862 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867 #include <locale.h>
11876 if ac_fn_c_try_link "$LINENO"; then :
11877 am_cv_val_LC_MESSAGES=yes
11879 am_cv_val_LC_MESSAGES=no
11881 rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11885 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11886 if test $am_cv_val_LC_MESSAGES = yes; then
11888 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11893 # ----------------------- #
11894 # Checks for structures. #
11895 # ----------------------- #
11897 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11898 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11900 cat >>confdefs.h <<_ACEOF
11901 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11906 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11907 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11909 cat >>confdefs.h <<_ACEOF
11910 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11917 # ------------------ #
11918 # Checks for types. #
11919 # ------------------ #
11921 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11922 #include <sys/socket.h>
11925 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11927 cat >>confdefs.h <<_ACEOF
11928 #define HAVE_SOCKLEN_T 1
11935 # ------------------------------------- #
11936 # Checks for compiler characteristics. #
11937 # ------------------------------------- #
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11940 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11941 if test "${ac_cv_c_const+set}" = set; then :
11942 $as_echo_n "(cached) " >&6
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11950 /* FIXME: Include the comments suggested by Paul. */
11951 #ifndef __cplusplus
11952 /* Ultrix mips cc rejects this. */
11953 typedef int charset[2];
11955 /* SunOS 4.1.1 cc rejects this. */
11956 char const *const *pcpcc;
11958 /* NEC SVR4.0.2 mips cc rejects this. */
11959 struct point {int x, y;};
11960 static struct point const zero = {0,0};
11961 /* AIX XL C 1.02.0.0 rejects this.
11962 It does not let you subtract one const X* pointer from another in
11963 an arm of an if-expression whose if-part is not a constant
11965 const char *g = "string";
11966 pcpcc = &g + (g ? g-g : 0);
11967 /* HPUX 7.0 cc rejects these. */
11969 ppc = (char**) pcpcc;
11970 pcpcc = (char const *const *) ppc;
11971 { /* SCO 3.2v4 cc rejects this. */
11973 char const *s = 0 ? (char *) 0 : (char const *) 0;
11978 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11979 int x[] = {25, 17};
11980 const int *foo = &x[0];
11983 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11984 typedef const int *iptr;
11988 { /* AIX XL C 1.02.0.0 rejects this saying
11989 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11990 struct s { int j; const int *ap[3]; };
11991 struct s *b; b->j = 5;
11993 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11994 const int foo = 10;
11995 if (!foo) return 0;
11997 return !cs[0] && !zero.x;
12004 if ac_fn_c_try_compile "$LINENO"; then :
12009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12012 $as_echo "$ac_cv_c_const" >&6; }
12013 if test $ac_cv_c_const = no; then
12015 $as_echo "#define const /**/" >>confdefs.h
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12020 $as_echo_n "checking for inline... " >&6; }
12021 if test "${ac_cv_c_inline+set}" = set; then :
12022 $as_echo_n "(cached) " >&6
12025 for ac_kw in inline __inline__ __inline; do
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12028 #ifndef __cplusplus
12030 static $ac_kw foo_t static_foo () {return 0; }
12031 $ac_kw foo_t foo () {return 0; }
12035 if ac_fn_c_try_compile "$LINENO"; then :
12036 ac_cv_c_inline=$ac_kw
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 test "$ac_cv_c_inline" != no && break
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12044 $as_echo "$ac_cv_c_inline" >&6; }
12046 case $ac_cv_c_inline in
12049 case $ac_cv_c_inline in
12051 *) ac_val=$ac_cv_c_inline;;
12053 cat >>confdefs.h <<_ACEOF
12054 #ifndef __cplusplus
12055 #define inline $ac_val
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12062 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12063 if test "${ac_cv_c_bigendian+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12066 ac_cv_c_bigendian=unknown
12067 # See if we're dealing with a universal compiler.
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12070 #ifndef __APPLE_CC__
12071 not a universal capable compiler
12076 if ac_fn_c_try_compile "$LINENO"; then :
12078 # Check for potential -arch flags. It is not universal unless
12079 # there are at least two -arch flags with different values.
12082 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12083 if test -n "$ac_prev"; then
12085 i?86 | x86_64 | ppc | ppc64)
12086 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12089 ac_cv_c_bigendian=universal
12095 elif test "x$ac_word" = "x-arch"; then
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101 if test $ac_cv_c_bigendian = unknown; then
12102 # See if sys/param.h defines the BYTE_ORDER macro.
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12105 #include <sys/types.h>
12106 #include <sys/param.h>
12111 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12112 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12114 bogus endian macros
12121 if ac_fn_c_try_compile "$LINENO"; then :
12122 # It does; now see whether it defined to BIG_ENDIAN or not.
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #include <sys/types.h>
12126 #include <sys/param.h>
12131 #if BYTE_ORDER != BIG_ENDIAN
12139 if ac_fn_c_try_compile "$LINENO"; then :
12140 ac_cv_c_bigendian=yes
12142 ac_cv_c_bigendian=no
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12148 if test $ac_cv_c_bigendian = unknown; then
12149 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152 #include <limits.h>
12157 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12158 bogus endian macros
12165 if ac_fn_c_try_compile "$LINENO"; then :
12166 # It does; now see whether it defined to _BIG_ENDIAN or not.
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169 #include <limits.h>
12174 #ifndef _BIG_ENDIAN
12182 if ac_fn_c_try_compile "$LINENO"; then :
12183 ac_cv_c_bigendian=yes
12185 ac_cv_c_bigendian=no
12187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 if test $ac_cv_c_bigendian = unknown; then
12192 # Compile a test program.
12193 if test "$cross_compiling" = yes; then :
12194 # Try to guess by grepping values from an object file.
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 short int ascii_mm[] =
12198 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12199 short int ascii_ii[] =
12200 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12201 int use_ascii (int i) {
12202 return ascii_mm[i] + ascii_ii[i];
12204 short int ebcdic_ii[] =
12205 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12206 short int ebcdic_mm[] =
12207 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12208 int use_ebcdic (int i) {
12209 return ebcdic_mm[i] + ebcdic_ii[i];
12216 return use_ascii (foo) == use_ebcdic (foo);
12221 if ac_fn_c_try_compile "$LINENO"; then :
12222 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12223 ac_cv_c_bigendian=yes
12225 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12226 if test "$ac_cv_c_bigendian" = unknown; then
12227 ac_cv_c_bigendian=no
12229 # finding both strings is unlikely to happen, but who knows?
12230 ac_cv_c_bigendian=unknown
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238 $ac_includes_default
12243 /* Are we little or big endian? From Harbison&Steele. */
12247 char c[sizeof (long int)];
12250 return u.c[sizeof (long int) - 1] == 1;
12256 if ac_fn_c_try_run "$LINENO"; then :
12257 ac_cv_c_bigendian=no
12259 ac_cv_c_bigendian=yes
12261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12262 conftest.$ac_objext conftest.beam conftest.$ac_ext
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12268 $as_echo "$ac_cv_c_bigendian" >&6; }
12269 case $ac_cv_c_bigendian in #(
12271 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12277 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12281 as_fn_error "unknown endianness
12282 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12286 # ------------------------------ #
12287 # Checks for library functions. #
12288 # ------------------------------ #
12290 for ac_header in stdlib.h unistd.h
12292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12293 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12294 eval as_val=\$$as_ac_Header
12295 if test "x$as_val" = x""yes; then :
12296 cat >>confdefs.h <<_ACEOF
12297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12304 for ac_func in getpagesize
12306 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12307 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12308 cat >>confdefs.h <<_ACEOF
12309 #define HAVE_GETPAGESIZE 1
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12316 $as_echo_n "checking for working mmap... " >&6; }
12317 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
12320 if test "$cross_compiling" = yes; then :
12321 ac_cv_func_mmap_fixed_mapped=no
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325 $ac_includes_default
12326 /* malloc might have been renamed as rpl_malloc. */
12329 /* Thanks to Mike Haertel and Jim Avera for this test.
12330 Here is a matrix of mmap possibilities:
12331 mmap private not fixed
12332 mmap private fixed at somewhere currently unmapped
12333 mmap private fixed at somewhere already mapped
12334 mmap shared not fixed
12335 mmap shared fixed at somewhere currently unmapped
12336 mmap shared fixed at somewhere already mapped
12337 For private mappings, we should verify that changes cannot be read()
12338 back from the file, nor mmap's back from the file at a different
12339 address. (There have been systems where private was not correctly
12340 implemented like the infamous i386 svr4.0, and systems where the
12341 VM page cache was not coherent with the file system buffer cache
12342 like early versions of FreeBSD and possibly contemporary NetBSD.)
12343 For shared mappings, we should conversely verify that changes get
12344 propagated back to all the places they're supposed to be.
12346 Grep wants private fixed already mapped.
12347 The main things grep needs to know about mmap are:
12348 * does it exist and is it safe to write into the mmap'd area
12349 * how to use it (BSD variants) */
12352 #include <sys/mman.h>
12354 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12358 /* This mess was copied from the GNU getpagesize.h. */
12359 #ifndef HAVE_GETPAGESIZE
12360 /* Assume that all systems that can run configure have sys/param.h. */
12361 # ifndef HAVE_SYS_PARAM_H
12362 # define HAVE_SYS_PARAM_H 1
12365 # ifdef _SC_PAGESIZE
12366 # define getpagesize() sysconf(_SC_PAGESIZE)
12367 # else /* no _SC_PAGESIZE */
12368 # ifdef HAVE_SYS_PARAM_H
12369 # include <sys/param.h>
12370 # ifdef EXEC_PAGESIZE
12371 # define getpagesize() EXEC_PAGESIZE
12372 # else /* no EXEC_PAGESIZE */
12374 # define getpagesize() NBPG * CLSIZE
12377 # endif /* no CLSIZE */
12378 # else /* no NBPG */
12380 # define getpagesize() NBPC
12381 # else /* no NBPC */
12383 # define getpagesize() PAGESIZE
12384 # endif /* PAGESIZE */
12385 # endif /* no NBPC */
12386 # endif /* no NBPG */
12387 # endif /* no EXEC_PAGESIZE */
12388 # else /* no HAVE_SYS_PARAM_H */
12389 # define getpagesize() 8192 /* punt totally */
12390 # endif /* no HAVE_SYS_PARAM_H */
12391 # endif /* no _SC_PAGESIZE */
12393 #endif /* no HAVE_GETPAGESIZE */
12398 char *data, *data2, *data3;
12402 pagesize = getpagesize ();
12404 /* First, make a file with some known garbage in it. */
12405 data = (char *) malloc (pagesize);
12408 for (i = 0; i < pagesize; ++i)
12409 *(data + i) = rand ();
12411 fd = creat ("conftest.mmap", 0600);
12414 if (write (fd, data, pagesize) != pagesize)
12418 /* Next, try to mmap the file at a fixed address which already has
12419 something else allocated at it. If we can, also make sure that
12420 we see the same garbage. */
12421 fd = open ("conftest.mmap", O_RDWR);
12424 data2 = (char *) malloc (2 * pagesize);
12427 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12428 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12429 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12431 for (i = 0; i < pagesize; ++i)
12432 if (*(data + i) != *(data2 + i))
12435 /* Finally, make sure that changes to the mapped area do not
12436 percolate back to the file as seen by read(). (This is a bug on
12437 some variants of i386 svr4.0.) */
12438 for (i = 0; i < pagesize; ++i)
12439 *(data2 + i) = *(data2 + i) + 1;
12440 data3 = (char *) malloc (pagesize);
12443 if (read (fd, data3, pagesize) != pagesize)
12445 for (i = 0; i < pagesize; ++i)
12446 if (*(data + i) != *(data3 + i))
12452 if ac_fn_c_try_run "$LINENO"; then :
12453 ac_cv_func_mmap_fixed_mapped=yes
12455 ac_cv_func_mmap_fixed_mapped=no
12457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12458 conftest.$ac_objext conftest.beam conftest.$ac_ext
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12463 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12464 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12466 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12469 rm -f conftest.mmap
12471 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12472 if test "x$ac_cv_type_pid_t" = x""yes; then :
12476 cat >>confdefs.h <<_ACEOF
12482 for ac_header in vfork.h
12484 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12485 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12486 cat >>confdefs.h <<_ACEOF
12487 #define HAVE_VFORK_H 1
12494 for ac_func in fork vfork
12496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12497 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12498 eval as_val=\$$as_ac_var
12499 if test "x$as_val" = x""yes; then :
12500 cat >>confdefs.h <<_ACEOF
12501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12507 if test "x$ac_cv_func_fork" = xyes; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12509 $as_echo_n "checking for working fork... " >&6; }
12510 if test "${ac_cv_func_fork_works+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12513 if test "$cross_compiling" = yes; then :
12514 ac_cv_func_fork_works=cross
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518 $ac_includes_default
12523 /* By Ruediger Kuhlmann. */
12524 return fork () < 0;
12530 if ac_fn_c_try_run "$LINENO"; then :
12531 ac_cv_func_fork_works=yes
12533 ac_cv_func_fork_works=no
12535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12536 conftest.$ac_objext conftest.beam conftest.$ac_ext
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12541 $as_echo "$ac_cv_func_fork_works" >&6; }
12544 ac_cv_func_fork_works=$ac_cv_func_fork
12546 if test "x$ac_cv_func_fork_works" = xcross; then
12548 *-*-amigaos* | *-*-msdosdjgpp*)
12549 # Override, as these systems have only a dummy fork() stub
12550 ac_cv_func_fork_works=no
12553 ac_cv_func_fork_works=yes
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12557 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12559 ac_cv_func_vfork_works=$ac_cv_func_vfork
12560 if test "x$ac_cv_func_vfork" = xyes; then
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12562 $as_echo_n "checking for working vfork... " >&6; }
12563 if test "${ac_cv_func_vfork_works+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
12566 if test "$cross_compiling" = yes; then :
12567 ac_cv_func_vfork_works=cross
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571 /* Thanks to Paul Eggert for this test. */
12572 $ac_includes_default
12573 #include <sys/wait.h>
12574 #ifdef HAVE_VFORK_H
12575 # include <vfork.h>
12577 /* On some sparc systems, changes by the child to local and incoming
12578 argument registers are propagated back to the parent. The compiler
12579 is told about this with #include <vfork.h>, but some compilers
12580 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12581 static variable whose address is put into a register that is
12582 clobbered by the vfork. */
12585 sparc_address_test (int arg)
12587 sparc_address_test (arg) int arg;
12590 static pid_t child;
12608 pid_t parent = getpid ();
12611 sparc_address_test (0);
12616 /* Here is another test for sparc vfork register problems. This
12617 test uses lots of local variables, at least as many local
12618 variables as main has allocated so far including compiler
12619 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12620 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12621 reuse the register of parent for one of the local variables,
12622 since it will think that parent can't possibly be used any more
12623 in this routine. Assigning to the local variable will thus
12624 munge parent in the parent process. */
12626 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12627 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12628 /* Convince the compiler that p..p7 are live; otherwise, it might
12629 use the same hardware register for all 8 local variables. */
12630 if (p != p1 || p != p2 || p != p3 || p != p4
12631 || p != p5 || p != p6 || p != p7)
12634 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12635 from child file descriptors. If the child closes a descriptor
12636 before it execs or exits, this munges the parent's descriptor
12637 as well. Test for this by closing stdout in the child. */
12638 _exit(close(fileno(stdout)) != 0);
12643 while (wait(&status) != child)
12646 /* Was there some problem with vforking? */
12649 /* Did the child fail? (This shouldn't happen.) */
12652 /* Did the vfork/compiler bug occur? */
12653 || parent != getpid()
12655 /* Did the file descriptor bug occur? */
12656 || fstat(fileno(stdout), &st) != 0
12661 if ac_fn_c_try_run "$LINENO"; then :
12662 ac_cv_func_vfork_works=yes
12664 ac_cv_func_vfork_works=no
12666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12667 conftest.$ac_objext conftest.beam conftest.$ac_ext
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12672 $as_echo "$ac_cv_func_vfork_works" >&6; }
12675 if test "x$ac_cv_func_fork_works" = xcross; then
12676 ac_cv_func_vfork_works=$ac_cv_func_vfork
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12678 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12681 if test "x$ac_cv_func_vfork_works" = xyes; then
12683 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12687 $as_echo "#define vfork fork" >>confdefs.h
12690 if test "x$ac_cv_func_fork_works" = xyes; then
12692 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12696 for ac_func in getauxval getrusage getuid getgid \
12697 pipe poll pread pread64 pwrite resize_term \
12698 sbrk setpgid setpgrp setsid \
12699 sigaction sigprocmask sigsetmask socketpair \
12700 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12701 setrlimit getrlimit posix_madvise waitpid \
12702 ptrace64 sigaltstack mkdtemp setns
12704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12706 eval as_val=\$$as_ac_var
12707 if test "x$as_val" = x""yes; then :
12708 cat >>confdefs.h <<_ACEOF
12709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12717 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12718 if test "${am_cv_langinfo_codeset+set}" = set; then :
12719 $as_echo_n "(cached) " >&6
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723 #include <langinfo.h>
12727 char* cs = nl_langinfo(CODESET);
12732 if ac_fn_c_try_link "$LINENO"; then :
12733 am_cv_langinfo_codeset=yes
12735 am_cv_langinfo_codeset=no
12737 rm -f core conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12742 $as_echo "$am_cv_langinfo_codeset" >&6; }
12743 if test $am_cv_langinfo_codeset = yes; then
12745 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12751 $as_echo_n "checking for ANSI C header files... " >&6; }
12752 if test "${ac_cv_header_stdc+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757 #include <stdlib.h>
12758 #include <stdarg.h>
12759 #include <string.h>
12770 if ac_fn_c_try_compile "$LINENO"; then :
12771 ac_cv_header_stdc=yes
12773 ac_cv_header_stdc=no
12775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 if test $ac_cv_header_stdc = yes; then
12778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780 /* end confdefs.h. */
12781 #include <string.h>
12784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12785 $EGREP "memchr" >/dev/null 2>&1; then :
12788 ac_cv_header_stdc=no
12794 if test $ac_cv_header_stdc = yes; then
12795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798 #include <stdlib.h>
12801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12802 $EGREP "free" >/dev/null 2>&1; then :
12805 ac_cv_header_stdc=no
12811 if test $ac_cv_header_stdc = yes; then
12812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12813 if test "$cross_compiling" = yes; then :
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12819 #include <stdlib.h>
12820 #if ((' ' & 0x0FF) == 0x020)
12821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12824 # define ISLOWER(c) \
12825 (('a' <= (c) && (c) <= 'i') \
12826 || ('j' <= (c) && (c) <= 'r') \
12827 || ('s' <= (c) && (c) <= 'z'))
12828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12836 for (i = 0; i < 256; i++)
12837 if (XOR (islower (i), ISLOWER (i))
12838 || toupper (i) != TOUPPER (i))
12843 if ac_fn_c_try_run "$LINENO"; then :
12846 ac_cv_header_stdc=no
12848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12849 conftest.$ac_objext conftest.beam conftest.$ac_ext
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12855 $as_echo "$ac_cv_header_stdc" >&6; }
12856 if test $ac_cv_header_stdc = yes; then
12858 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12862 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12863 # for constant arguments. Useless!
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12865 $as_echo_n "checking for working alloca.h... " >&6; }
12866 if test "${ac_cv_working_alloca_h+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871 #include <alloca.h>
12875 char *p = (char *) alloca (2 * sizeof (int));
12881 if ac_fn_c_try_link "$LINENO"; then :
12882 ac_cv_working_alloca_h=yes
12884 ac_cv_working_alloca_h=no
12886 rm -f core conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12890 $as_echo "$ac_cv_working_alloca_h" >&6; }
12891 if test $ac_cv_working_alloca_h = yes; then
12893 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12898 $as_echo_n "checking for alloca... " >&6; }
12899 if test "${ac_cv_func_alloca_works+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12905 # define alloca __builtin_alloca
12908 # include <malloc.h>
12909 # define alloca _alloca
12911 # ifdef HAVE_ALLOCA_H
12912 # include <alloca.h>
12917 # ifndef alloca /* predefined by HP cc +Olibcalls */
12928 char *p = (char *) alloca (1);
12934 if ac_fn_c_try_link "$LINENO"; then :
12935 ac_cv_func_alloca_works=yes
12937 ac_cv_func_alloca_works=no
12939 rm -f core conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12943 $as_echo "$ac_cv_func_alloca_works" >&6; }
12945 if test $ac_cv_func_alloca_works = yes; then
12947 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12950 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12951 # that cause trouble. Some versions do not even contain alloca or
12952 # contain a buggy version. If you still want to use their alloca,
12953 # use ar to extract alloca.o from them instead of compiling alloca.c.
12955 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12957 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12961 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12962 if test "${ac_cv_os_cray+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967 #if defined CRAY && ! defined CRAY2
12974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12975 $EGREP "webecray" >/dev/null 2>&1; then :
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12984 $as_echo "$ac_cv_os_cray" >&6; }
12985 if test $ac_cv_os_cray = yes; then
12986 for ac_func in _getb67 GETB67 getb67; do
12987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12988 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12989 eval as_val=\$$as_ac_var
12990 if test "x$as_val" = x""yes; then :
12992 cat >>confdefs.h <<_ACEOF
12993 #define CRAY_STACKSEG_END $ac_func
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13003 $as_echo_n "checking stack direction for C alloca... " >&6; }
13004 if test "${ac_cv_c_stack_direction+set}" = set; then :
13005 $as_echo_n "(cached) " >&6
13007 if test "$cross_compiling" = yes; then :
13008 ac_cv_c_stack_direction=0
13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13012 $ac_includes_default
13014 find_stack_direction ()
13016 static char *addr = 0;
13021 return find_stack_direction ();
13024 return (&dummy > addr) ? 1 : -1;
13030 return find_stack_direction () < 0;
13033 if ac_fn_c_try_run "$LINENO"; then :
13034 ac_cv_c_stack_direction=1
13036 ac_cv_c_stack_direction=-1
13038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13039 conftest.$ac_objext conftest.beam conftest.$ac_ext
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13044 $as_echo "$ac_cv_c_stack_direction" >&6; }
13045 cat >>confdefs.h <<_ACEOF
13046 #define STACK_DIRECTION $ac_cv_c_stack_direction
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13055 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13056 if test "${am_cv_langinfo_codeset+set}" = set; then :
13057 $as_echo_n "(cached) " >&6
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061 #include <langinfo.h>
13065 char* cs = nl_langinfo(CODESET);
13070 if ac_fn_c_try_link "$LINENO"; then :
13071 am_cv_langinfo_codeset=yes
13073 am_cv_langinfo_codeset=no
13075 rm -f core conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext conftest.$ac_ext
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13080 $as_echo "$am_cv_langinfo_codeset" >&6; }
13081 if test $am_cv_langinfo_codeset = yes; then
13083 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13088 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h termios.h termio.h sgtty.h
13090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13091 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13092 eval as_val=\$$as_ac_Header
13093 if test "x$as_val" = x""yes; then :
13094 cat >>confdefs.h <<_ACEOF
13095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13103 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
13105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13107 eval as_val=\$$as_ac_var
13108 if test "x$as_val" = x""yes; then :
13109 cat >>confdefs.h <<_ACEOF
13110 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13117 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13118 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
13124 cat >>confdefs.h <<_ACEOF
13125 #define HAVE_DECL_STRERROR $ac_have_decl
13127 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13128 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13134 cat >>confdefs.h <<_ACEOF
13135 #define HAVE_DECL_STRSTR $ac_have_decl
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13140 $as_echo_n "checking for sigsetjmp... " >&6; }
13141 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13147 #include <setjmp.h>
13152 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13157 if ac_fn_c_try_compile "$LINENO"; then :
13158 gdb_cv_func_sigsetjmp=yes
13160 gdb_cv_func_sigsetjmp=no
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13165 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13166 if test $gdb_cv_func_sigsetjmp = yes; then
13168 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13173 # Check the return and argument types of ptrace.
13176 for ac_header in sys/ptrace.h ptrace.h
13178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13179 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13180 eval as_val=\$$as_ac_Header
13181 if test "x$as_val" = x""yes; then :
13182 cat >>confdefs.h <<_ACEOF
13183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13191 gdb_ptrace_headers='
13192 #include <sys/types.h>
13193 #if HAVE_SYS_PTRACE_H
13194 # include <sys/ptrace.h>
13197 # include <unistd.h>
13200 # There is no point in checking if we don't have a prototype.
13201 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13203 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
13209 cat >>confdefs.h <<_ACEOF
13210 #define HAVE_DECL_PTRACE $ac_have_decl
13212 if test $ac_have_decl = 1; then :
13216 : ${gdb_cv_func_ptrace_ret='int'}
13217 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13221 # Check return type. Varargs (used on GNU/Linux) conflict with the
13222 # empty argument list, so check for that explicitly.
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13224 $as_echo_n "checking return type of ptrace... " >&6; }
13225 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
13226 $as_echo_n "(cached) " >&6
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230 $gdb_ptrace_headers
13234 extern long ptrace (enum __ptrace_request, ...);
13239 if ac_fn_c_try_compile "$LINENO"; then :
13240 gdb_cv_func_ptrace_ret='long'
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13244 $gdb_ptrace_headers
13248 extern int ptrace ();
13253 if ac_fn_c_try_compile "$LINENO"; then :
13254 gdb_cv_func_ptrace_ret='int'
13256 gdb_cv_func_ptrace_ret='long'
13258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13263 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13265 cat >>confdefs.h <<_ACEOF
13266 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13269 # Check argument types.
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13271 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13272 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
13273 $as_echo_n "(cached) " >&6
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278 $gdb_ptrace_headers
13282 extern long ptrace (enum __ptrace_request, ...);
13287 if ac_fn_c_try_compile "$LINENO"; then :
13288 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
13291 for gdb_arg1 in 'int' 'long'; do
13292 for gdb_arg2 in 'pid_t' 'int' 'long'; do
13293 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13294 for gdb_arg4 in 'int' 'long' 'void *'; do
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h. */
13297 $gdb_ptrace_headers
13302 extern $gdb_cv_func_ptrace_ret
13303 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13309 if ac_fn_c_try_compile "$LINENO"; then :
13310 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314 for gdb_arg5 in 'int *' 'int' 'long'; do
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317 $gdb_ptrace_headers
13322 extern $gdb_cv_func_ptrace_ret
13323 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13329 if ac_fn_c_try_compile "$LINENO"; then :
13331 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340 # Provide a safe default value.
13341 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13347 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13348 ac_save_IFS=$IFS; IFS=','
13349 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13353 cat >>confdefs.h <<_ACEOF
13354 #define PTRACE_TYPE_ARG1 $1
13358 cat >>confdefs.h <<_ACEOF
13359 #define PTRACE_TYPE_ARG3 $3
13363 cat >>confdefs.h <<_ACEOF
13364 #define PTRACE_TYPE_ARG4 $4
13367 if test -n "$5"; then
13369 cat >>confdefs.h <<_ACEOF
13370 #define PTRACE_TYPE_ARG5 $5
13376 if test "$cross_compiling" = no; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13378 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13379 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
13382 if test "$cross_compiling" = yes; then :
13383 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387 $ac_includes_default
13391 /* If this system has a BSD-style setpgrp which takes arguments,
13392 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13393 exit successfully. */
13394 return setpgrp (1,1) != -1;
13399 if ac_fn_c_try_run "$LINENO"; then :
13400 ac_cv_func_setpgrp_void=no
13402 ac_cv_func_setpgrp_void=yes
13404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13405 conftest.$ac_objext conftest.beam conftest.$ac_ext
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13410 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13411 if test $ac_cv_func_setpgrp_void = yes; then
13413 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13419 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13420 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13421 $as_echo_n "(cached) " >&6
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13426 #include <unistd.h>
13432 if (setpgrp(1,1) == -1)
13441 if ac_fn_c_try_compile "$LINENO"; then :
13442 ac_cv_func_setpgrp_void=no
13444 ac_cv_func_setpgrp_void=yes
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13449 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13450 if test $ac_cv_func_setpgrp_void = yes; then
13451 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13456 # Assume we'll default to using the included libiberty regex.
13457 gdb_use_included_regex=yes
13459 # However, if the system regex is GNU regex, then default to *not*
13460 # using the included regex.
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13462 $as_echo_n "checking for GNU regex... " >&6; }
13463 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13464 $as_echo_n "(cached) " >&6
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468 #include <gnu-versions.h>
13472 #define REGEX_INTERFACE_VERSION 1
13473 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13474 # error "Version mismatch"
13480 if ac_fn_c_try_compile "$LINENO"; then :
13481 gdb_cv_have_gnu_regex=yes
13483 gdb_cv_have_gnu_regex=no
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13488 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13489 if test $gdb_cv_have_gnu_regex = yes; then
13490 gdb_use_included_regex=no
13494 # Check whether --with-included-regex was given.
13495 if test "${with_included_regex+set}" = set; then :
13496 withval=$with_included_regex; gdb_with_regex=$withval
13498 gdb_with_regex=$gdb_use_included_regex
13501 if test "$gdb_with_regex" = yes; then
13503 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13507 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13508 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13509 #include <sys/proc.h>
13512 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
13514 cat >>confdefs.h <<_ACEOF
13515 #define HAVE_STRUCT_THREAD_TD_PCB 1
13522 # See if <sys/lwp.h> defines `struct lwp`.
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13524 $as_echo_n "checking for struct lwp... " >&6; }
13525 if test "${gdb_cv_struct_lwp+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 #include <sys/param.h>
13531 #include <sys/lwp.h>
13540 if ac_fn_c_try_compile "$LINENO"; then :
13541 gdb_cv_struct_lwp=yes
13543 gdb_cv_struct_lwp=no
13545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13548 $as_echo "$gdb_cv_struct_lwp" >&6; }
13549 if test $gdb_cv_struct_lwp = yes; then
13551 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13555 # See if <machine/reg.h> degines `struct reg'.
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13557 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13558 if test "${gdb_cv_struct_reg+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 #include <sys/types.h>
13564 #include <machine/reg.h>
13573 if ac_fn_c_try_compile "$LINENO"; then :
13574 gdb_cv_struct_reg=yes
13576 gdb_cv_struct_reg=no
13578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13581 $as_echo "$gdb_cv_struct_reg" >&6; }
13582 if test $gdb_cv_struct_reg = yes; then
13584 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13588 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13589 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13590 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
13591 #include <machine/reg.h>
13593 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
13595 cat >>confdefs.h <<_ACEOF
13596 #define HAVE_STRUCT_REG_R_FS 1
13601 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
13602 #include <machine/reg.h>
13604 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
13606 cat >>confdefs.h <<_ACEOF
13607 #define HAVE_STRUCT_REG_R_GS 1
13614 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
13615 # Older amd64 Linux's don't have the fs_base and gs_base members of
13616 # `struct user_regs_struct'.
13617 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/user.h>
13619 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
13621 cat >>confdefs.h <<_ACEOF
13622 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
13627 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/user.h>
13629 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
13631 cat >>confdefs.h <<_ACEOF
13632 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
13639 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13641 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13642 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13643 $as_echo_n "(cached) " >&6
13645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646 /* end confdefs.h. */
13647 #include <sys/ptrace.h>
13656 if ac_fn_c_try_compile "$LINENO"; then :
13657 gdb_cv_have_ptrace_getregs=yes
13659 gdb_cv_have_ptrace_getregs=no
13661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13665 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13666 if test $gdb_cv_have_ptrace_getregs = yes; then
13668 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13672 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13674 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13675 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 #include <sys/ptrace.h>
13689 if ac_fn_c_try_compile "$LINENO"; then :
13690 gdb_cv_have_ptrace_getfpxregs=yes
13692 gdb_cv_have_ptrace_getfpxregs=no
13694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13698 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13699 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13701 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13705 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13707 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13708 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13709 $as_echo_n "(cached) " >&6
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13713 #include <sys/types.h>
13714 #include <sys/ptrace.h>
13723 if ac_fn_c_try_compile "$LINENO"; then :
13724 gdb_cv_have_pt_getdbregs=yes
13726 gdb_cv_have_pt_getdbregs=no
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13732 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13733 if test $gdb_cv_have_pt_getdbregs = yes; then
13735 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13739 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13741 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13742 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 #include <sys/types.h>
13748 #include <sys/ptrace.h>
13757 if ac_fn_c_try_compile "$LINENO"; then :
13758 gdb_cv_have_pt_getxmmregs=yes
13760 gdb_cv_have_pt_getxmmregs=no
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13766 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13767 if test $gdb_cv_have_pt_getxmmregs = yes; then
13769 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13773 # See if <sys/ptrace.h> supports LWP names on FreeBSD
13774 # Older FreeBSD versions don't have the pl_tdname member of
13775 # `struct ptrace_lwpinfo'.
13776 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
13778 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x""yes; then :
13780 cat >>confdefs.h <<_ACEOF
13781 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
13788 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
13789 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
13791 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>
13793 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = x""yes; then :
13795 cat >>confdefs.h <<_ACEOF
13796 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
13803 # Detect which type of /proc is in use, such as for Solaris.
13805 if test "${target}" = "${host}"; then
13807 *-*-sysv4.2* | *-*-sysv5* )
13809 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13812 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13814 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13820 if test "$ac_cv_header_sys_procfs_h" = yes; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13822 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13823 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13824 $as_echo_n "(cached) " >&6
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13830 /* Needed for new procfs interface on sparc-solaris. */
13831 #define _STRUCTURED_PROC 1
13832 #include <sys/procfs.h>
13841 if ac_fn_c_try_compile "$LINENO"; then :
13842 bfd_cv_have_sys_procfs_type_gregset_t=yes
13844 bfd_cv_have_sys_procfs_type_gregset_t=no
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13850 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13852 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13856 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13859 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13860 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13861 $as_echo_n "(cached) " >&6
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13867 /* Needed for new procfs interface on sparc-solaris. */
13868 #define _STRUCTURED_PROC 1
13869 #include <sys/procfs.h>
13878 if ac_fn_c_try_compile "$LINENO"; then :
13879 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13881 bfd_cv_have_sys_procfs_type_fpregset_t=no
13884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13889 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13893 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13896 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13897 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13898 $as_echo_n "(cached) " >&6
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13904 /* Needed for new procfs interface on sparc-solaris. */
13905 #define _STRUCTURED_PROC 1
13906 #include <sys/procfs.h>
13915 if ac_fn_c_try_compile "$LINENO"; then :
13916 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13918 bfd_cv_have_sys_procfs_type_prgregset_t=no
13921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13926 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13930 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13933 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13934 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13935 $as_echo_n "(cached) " >&6
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13941 /* Needed for new procfs interface on sparc-solaris. */
13942 #define _STRUCTURED_PROC 1
13943 #include <sys/procfs.h>
13952 if ac_fn_c_try_compile "$LINENO"; then :
13953 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13955 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13963 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13967 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13970 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13971 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13972 $as_echo_n "(cached) " >&6
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13978 /* Needed for new procfs interface on sparc-solaris. */
13979 #define _STRUCTURED_PROC 1
13980 #include <sys/procfs.h>
13989 if ac_fn_c_try_compile "$LINENO"; then :
13990 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13992 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14000 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14004 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14007 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14008 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
14009 $as_echo_n "(cached) " >&6
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14015 /* Needed for new procfs interface on sparc-solaris. */
14016 #define _STRUCTURED_PROC 1
14017 #include <sys/procfs.h>
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027 bfd_cv_have_sys_procfs_type_lwpid_t=yes
14029 bfd_cv_have_sys_procfs_type_lwpid_t=no
14032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14035 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14037 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14041 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14044 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14045 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
14046 $as_echo_n "(cached) " >&6
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14052 /* Needed for new procfs interface on sparc-solaris. */
14053 #define _STRUCTURED_PROC 1
14054 #include <sys/procfs.h>
14063 if ac_fn_c_try_compile "$LINENO"; then :
14064 bfd_cv_have_sys_procfs_type_psaddr_t=yes
14066 bfd_cv_have_sys_procfs_type_psaddr_t=no
14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14074 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14078 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
14081 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
14082 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
14083 $as_echo_n "(cached) " >&6
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14089 /* Needed for new procfs interface on sparc-solaris. */
14090 #define _STRUCTURED_PROC 1
14091 #include <sys/procfs.h>
14100 if ac_fn_c_try_compile "$LINENO"; then :
14101 bfd_cv_have_sys_procfs_type_prsysent_t=yes
14103 bfd_cv_have_sys_procfs_type_prsysent_t=no
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
14111 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
14115 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
14118 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
14119 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
14120 $as_echo_n "(cached) " >&6
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14126 /* Needed for new procfs interface on sparc-solaris. */
14127 #define _STRUCTURED_PROC 1
14128 #include <sys/procfs.h>
14137 if ac_fn_c_try_compile "$LINENO"; then :
14138 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
14140 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
14143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14146 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
14148 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
14152 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
14155 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
14156 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
14157 $as_echo_n "(cached) " >&6
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14163 /* Needed for new procfs interface on sparc-solaris. */
14164 #define _STRUCTURED_PROC 1
14165 #include <sys/procfs.h>
14169 pr_sigaction64_t avar
14174 if ac_fn_c_try_compile "$LINENO"; then :
14175 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
14177 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
14185 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
14189 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
14192 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
14193 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
14194 $as_echo_n "(cached) " >&6
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14200 /* Needed for new procfs interface on sparc-solaris. */
14201 #define _STRUCTURED_PROC 1
14202 #include <sys/procfs.h>
14206 pr_siginfo64_t avar
14211 if ac_fn_c_try_compile "$LINENO"; then :
14212 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
14214 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
14217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
14222 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
14226 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
14232 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14234 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14235 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
14236 $as_echo_n "(cached) " >&6
14238 if test "$cross_compiling" = yes; then :
14239 gdb_cv_prfpregset_t_broken=yes
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14243 #include <sys/procfs.h>
14246 if (sizeof (prfpregset_t) == sizeof (void *))
14251 if ac_fn_c_try_run "$LINENO"; then :
14252 gdb_cv_prfpregset_t_broken=no
14254 gdb_cv_prfpregset_t_broken=yes
14256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14257 conftest.$ac_objext conftest.beam conftest.$ac_ext
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14263 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14264 if test $gdb_cv_prfpregset_t_broken = yes; then
14266 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14272 # Check if the compiler supports the `long long' type.
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14275 $as_echo_n "checking for long long support in compiler... " >&6; }
14276 if test "${gdb_cv_c_long_long+set}" = set; then :
14277 $as_echo_n "(cached) " >&6
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 extern long long foo;
14285 switch (foo & 2) { case 0: return 1; }
14290 if ac_fn_c_try_compile "$LINENO"; then :
14291 gdb_cv_c_long_long=yes
14293 gdb_cv_c_long_long=no
14295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14298 $as_echo "$gdb_cv_c_long_long" >&6; }
14299 if test $gdb_cv_c_long_long != yes; then
14300 # libdecnumber requires long long.
14301 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
14304 # Check if the compiler and runtime support printing long longs.
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14307 $as_echo_n "checking for long long support in printf... " >&6; }
14308 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14309 $as_echo_n "(cached) " >&6
14311 if test "$cross_compiling" = yes; then :
14312 gdb_cv_printf_has_long_long=no
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 $ac_includes_default
14322 l = (l << 16) + 0x0123;
14323 l = (l << 16) + 0x4567;
14324 l = (l << 16) + 0x89ab;
14325 l = (l << 16) + 0xcdef;
14326 sprintf (buf, "0x%016llx", l);
14327 return (strcmp ("0x0123456789abcdef", buf));
14332 if ac_fn_c_try_run "$LINENO"; then :
14333 gdb_cv_printf_has_long_long=yes
14335 gdb_cv_printf_has_long_long=no
14337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14338 conftest.$ac_objext conftest.beam conftest.$ac_ext
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14343 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14344 if test $gdb_cv_printf_has_long_long = yes; then
14346 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14350 # Check if the compiler and runtime support printing decfloats.
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14353 $as_echo_n "checking for decfloat support in printf... " >&6; }
14354 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14355 $as_echo_n "(cached) " >&6
14357 if test "$cross_compiling" = yes; then :
14358 gdb_cv_printf_has_decfloat=no
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14362 $ac_includes_default
14367 _Decimal32 d32 = 1.2345df;
14368 _Decimal64 d64 = 1.2345dd;
14369 _Decimal128 d128 = 1.2345dl;
14370 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14371 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14376 if ac_fn_c_try_run "$LINENO"; then :
14377 gdb_cv_printf_has_decfloat=yes
14379 gdb_cv_printf_has_decfloat=no
14381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14382 conftest.$ac_objext conftest.beam conftest.$ac_ext
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14387 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14388 if test $gdb_cv_printf_has_decfloat = yes; then
14390 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14394 # Check if the compiler supports the `long double' type. We can't use
14395 # AC_C_LONG_DOUBLE because that one does additional checks on the
14396 # constants defined in <float.h> that fail on some systems,
14397 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14400 $as_echo_n "checking for long double support in compiler... " >&6; }
14401 if test "${gdb_cv_c_long_double+set}" = set; then :
14402 $as_echo_n "(cached) " >&6
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14408 if ac_fn_c_try_compile "$LINENO"; then :
14409 gdb_cv_c_long_double=yes
14411 gdb_cv_c_long_double=no
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14416 $as_echo "$gdb_cv_c_long_double" >&6; }
14417 if test $gdb_cv_c_long_double = yes; then
14419 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14423 # Check if the compiler and runtime support printing long doubles.
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14426 $as_echo_n "checking for long double support in printf... " >&6; }
14427 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14428 $as_echo_n "(cached) " >&6
14430 if test "$cross_compiling" = yes; then :
14431 gdb_cv_printf_has_long_double=no
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14435 $ac_includes_default
14440 long double f = 3.141592653;
14441 sprintf (buf, "%Lg", f);
14442 return (strncmp ("3.14159", buf, 7));
14447 if ac_fn_c_try_run "$LINENO"; then :
14448 gdb_cv_printf_has_long_double=yes
14450 gdb_cv_printf_has_long_double=no
14452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14453 conftest.$ac_objext conftest.beam conftest.$ac_ext
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14458 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14459 if test $gdb_cv_printf_has_long_double = yes; then
14461 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14465 # Check if the compiler and runtime support scanning long doubles.
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14468 $as_echo_n "checking for long double support in scanf... " >&6; }
14469 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14470 $as_echo_n "(cached) " >&6
14472 if test "$cross_compiling" = yes; then :
14473 gdb_cv_scanf_has_long_double=no
14475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h. */
14481 char *buf = "3.141592653";
14483 sscanf (buf, "%Lg", &f);
14484 return !(f > 3.14159 && f < 3.14160);
14489 if ac_fn_c_try_run "$LINENO"; then :
14490 gdb_cv_scanf_has_long_double=yes
14492 gdb_cv_scanf_has_long_double=no
14494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14495 conftest.$ac_objext conftest.beam conftest.$ac_ext
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14500 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14501 if test $gdb_cv_scanf_has_long_double = yes; then
14503 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14510 $as_echo_n "checking for -bbigtoc option... " >&6; }
14511 if test "${gdb_cv_bigtoc+set}" = set; then :
14512 $as_echo_n "(cached) " >&6
14515 SAVE_LDFLAGS=$LDFLAGS
14518 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14519 *) gdb_cv_bigtoc=-bbigtoc ;;
14522 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14534 if ac_fn_c_try_link "$LINENO"; then :
14539 rm -f core conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext conftest.$ac_ext
14541 LDFLAGS="${SAVE_LDFLAGS}"
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14545 $as_echo "$gdb_cv_bigtoc" >&6; }
14546 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14551 $as_echo_n "checking for the dynamic export flag... " >&6; }
14553 if test "${gdb_native}" = yes; then
14554 # The dynamically loaded libthread_db needs access to symbols in the gdb
14555 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14556 # may not be supported there.
14557 old_LDFLAGS="$LDFLAGS"
14558 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14559 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14560 LDFLAGS="$LDFLAGS $RDYNAMIC"
14561 if test "${have_libpython}" = no; then
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14573 if ac_fn_c_try_link "$LINENO"; then :
14576 rm -f core conftest.err conftest.$ac_objext \
14577 conftest$ac_exeext conftest.$ac_ext
14579 # Workaround http://bugs.python.org/issue4434 where static
14580 # libpythonX.Y.a would get its symbols required for
14581 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14582 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14584 # Note the workaround for Python
14585 # http://bugs.python.org/issue10112 earlier has removed
14586 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
14587 # here too, as otherwise it'd make this -Wl,--dynamic-list test
14589 old_CFLAGS="$CFLAGS"
14590 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14592 LIBS="$LIBS $PYTHON_LIBS"
14593 old_CPPFLAGS="$CPPFLAGS"
14594 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
14595 if test "$cross_compiling" = yes; then :
14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h. */
14600 #include "Python.h"
14606 err = PyRun_SimpleString ("import itertools\n");
14608 return err == 0 ? 0 : 1;
14613 if ac_fn_c_try_run "$LINENO"; then :
14616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14617 conftest.$ac_objext conftest.beam conftest.$ac_ext
14621 CFLAGS="$old_CFLAGS"
14622 CPPFLAGS="$old_CPPFLAGS"
14624 LDFLAGS="$old_LDFLAGS"
14626 if $dynamic_list; then
14627 found="-Wl,--dynamic-list"
14628 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14631 RDYNAMIC="-rdynamic"
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14635 $as_echo "$found" >&6; }
14638 if test ${build} = ${host} -a ${host} = ${target} ; then
14641 # See if thread_db library is around for Solaris thread debugging.
14642 # Note that we must explicitly test for version 1 of the library
14643 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14646 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14647 if test -f /usr/lib/libthread_db.so.1 ; then
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14649 $as_echo "yes" >&6; }
14651 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14653 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14654 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14656 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14658 $as_echo_n "(cached) " >&6
14660 ac_check_lib_save_LIBS=$LIBS
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14665 /* Override any GCC internal prototype to avoid an error.
14666 Use char because int might match the return type of a GCC
14667 builtin and then its argument prototype would still apply. */
14680 if ac_fn_c_try_link "$LINENO"; then :
14681 ac_cv_lib_dl_dlopen=yes
14683 ac_cv_lib_dl_dlopen=no
14685 rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687 LIBS=$ac_check_lib_save_LIBS
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14691 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14692 cat >>confdefs.h <<_ACEOF
14693 #define HAVE_LIBDL 1
14700 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14701 # Sun randomly tweaked the prototypes in <proc_service.h>
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14704 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14705 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14706 $as_echo_n "(cached) " >&6
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14712 #include <proc_service.h>
14713 ps_err_e ps_pdwrite
14714 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14724 if ac_fn_c_try_compile "$LINENO"; then :
14725 gdb_cv_proc_service_is_old=no
14727 gdb_cv_proc_service_is_old=yes
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14734 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14735 if test $gdb_cv_proc_service_is_old = yes; then
14737 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14742 $as_echo "no" >&6; }
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14747 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14748 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14749 $as_echo_n "(cached) " >&6
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753 #include <sys/pthdebug.h>
14757 #ifndef PTHDB_VERSION_3
14764 if ac_fn_c_try_compile "$LINENO"; then :
14765 gdb_cv_have_aix_thread_debug=yes
14767 gdb_cv_have_aix_thread_debug=no
14769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14773 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14774 if test $gdb_cv_have_aix_thread_debug = yes; then
14775 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14776 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14777 LIBS="$LIBS -lpthdebug"
14779 # Older versions of AIX do not provide the declaration for
14780 # the getthrds function (it appears that it was introduced
14782 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14784 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
14790 cat >>confdefs.h <<_ACEOF
14791 #define HAVE_DECL_GETTHRDS $ac_have_decl
14800 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14802 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14803 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14804 $as_echo_n "(cached) " >&6
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14808 #include <thread_db.h>
14812 int i = TD_NOTALLOC;
14817 if ac_fn_c_try_compile "$LINENO"; then :
14818 gdb_cv_thread_db_h_has_td_notalloc=yes
14820 gdb_cv_thread_db_h_has_td_notalloc=no
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14827 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14829 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14830 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14831 $as_echo_n "(cached) " >&6
14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14835 #include <thread_db.h>
14839 int i = TD_VERSION;
14844 if ac_fn_c_try_compile "$LINENO"; then :
14845 gdb_cv_thread_db_h_has_td_version=yes
14847 gdb_cv_thread_db_h_has_td_version=no
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14854 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14856 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14857 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14858 $as_echo_n "(cached) " >&6
14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h. */
14862 #include <thread_db.h>
14871 if ac_fn_c_try_compile "$LINENO"; then :
14872 gdb_cv_thread_db_h_has_td_notls=yes
14874 gdb_cv_thread_db_h_has_td_notls=no
14877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14881 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14883 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14885 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14888 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14890 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14893 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14895 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14899 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14901 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14907 cat >>confdefs.h <<_ACEOF
14908 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14912 if test "$cross_compiling" = yes; then :
14913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14914 /* end confdefs.h. */
14915 #include <sys/personality.h>
14920 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14921 # define ADDR_NO_RANDOMIZE 0x0040000
14923 /* Test the flag could be set and stays set. */
14924 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14925 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 have_personality=true
14934 have_personality=false
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941 #include <sys/personality.h>
14946 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14947 # define ADDR_NO_RANDOMIZE 0x0040000
14949 /* Test the flag could be set and stays set. */
14950 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14951 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14957 if ac_fn_c_try_run "$LINENO"; then :
14958 have_personality=true
14960 have_personality=false
14962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14963 conftest.$ac_objext conftest.beam conftest.$ac_ext
14966 if $have_personality
14969 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14982 cat >>confdefs.h <<_ACEOF
14983 #define GDBINIT "$gdbinit"
14988 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
14989 # except that the argument to --with-sysroot is optional.
14990 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
14991 if test "x$with_sysroot" = xyes; then
14992 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
14995 # Check whether --with-sysroot was given.
14996 if test "${with_sysroot+set}" = set; then :
14997 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
14999 TARGET_SYSTEM_ROOT=
15003 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15004 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15005 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
15006 ac_define_dir=`eval echo $ac_define_dir`
15008 cat >>confdefs.h <<_ACEOF
15009 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15015 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15016 if test "x$prefix" = xNONE; then
15017 test_prefix=/usr/local
15019 test_prefix=$prefix
15022 test_prefix=$exec_prefix
15025 case ${ac_define_dir} in
15026 "${test_prefix}"|"${test_prefix}/"*|\
15027 '${exec_prefix}'|'${exec_prefix}/'*)
15032 cat >>confdefs.h <<_ACEOF
15033 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15040 # Check whether --with-system-gdbinit was given.
15041 if test "${with_system_gdbinit+set}" = set; then :
15042 withval=$with_system_gdbinit;
15043 SYSTEM_GDBINIT=$withval
15049 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15050 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15051 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
15052 ac_define_dir=`eval echo $ac_define_dir`
15054 cat >>confdefs.h <<_ACEOF
15055 #define SYSTEM_GDBINIT "$ac_define_dir"
15061 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15062 if test "x$prefix" = xNONE; then
15063 test_prefix=/usr/local
15065 test_prefix=$prefix
15068 test_prefix=$exec_prefix
15071 case ${ac_define_dir} in
15072 "${test_prefix}"|"${test_prefix}/"*|\
15073 '${exec_prefix}'|'${exec_prefix}/'*)
15078 cat >>confdefs.h <<_ACEOF
15079 #define SYSTEM_GDBINIT_RELOCATABLE $value
15086 # Check whether --enable-werror was given.
15087 if test "${enable_werror+set}" = set; then :
15088 enableval=$enable_werror; case "${enableval}" in
15089 yes | y) ERROR_ON_WARNING="yes" ;;
15090 no | n) ERROR_ON_WARNING="no" ;;
15091 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15096 # Enable -Werror by default when using gcc. Turn it off for releases.
15097 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15098 ERROR_ON_WARNING=yes
15102 if test "${ERROR_ON_WARNING}" = yes ; then
15103 WERROR_CFLAGS="-Werror"
15106 # The options we'll try to enable.
15107 build_warnings="-Wall -Wpointer-arith \
15108 -Wno-unused -Wunused-value -Wunused-function \
15109 -Wno-switch -Wno-char-subscripts \
15110 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15111 -Wno-sign-compare -Wno-narrowing"
15113 # Enable -Wno-format by default when using gcc on mingw since many
15114 # GCC versions complain about %I64.
15116 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
15117 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
15120 # Check whether --enable-build-warnings was given.
15121 if test "${enable_build_warnings+set}" = set; then :
15122 enableval=$enable_build_warnings; case "${enableval}" in
15124 no) build_warnings="-w";;
15125 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15126 build_warnings="${build_warnings} ${t}";;
15127 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15128 build_warnings="${t} ${build_warnings}";;
15129 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15131 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15132 echo "Setting compiler warning flags = $build_warnings" 6>&1
15135 # Check whether --enable-gdb-build-warnings was given.
15136 if test "${enable_gdb_build_warnings+set}" = set; then :
15137 enableval=$enable_gdb_build_warnings; case "${enableval}" in
15139 no) build_warnings="-w";;
15140 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15141 build_warnings="${build_warnings} ${t}";;
15142 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15143 build_warnings="${t} ${build_warnings}";;
15144 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15146 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15147 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15151 # The set of warnings supported by a C++ compiler is not the same as
15152 # of the C compiler.
15154 ac_cpp='$CXXCPP $CPPFLAGS'
15155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15161 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15164 $as_echo_n "checking compiler warning flags... " >&6; }
15165 # Separate out the -Werror flag as some files just cannot be
15166 # compiled with it enabled.
15167 for w in ${build_warnings}; do
15168 # GCC does not complain about -Wno-unknown-warning. Invert
15169 # and test -Wunknown-warning instead.
15172 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
15178 -Werr*) WERROR_CFLAGS=-Werror ;;
15180 # Check whether GCC accepts it.
15181 saved_CFLAGS="$CFLAGS"
15182 CFLAGS="$CFLAGS $wtest"
15183 saved_CXXFLAGS="$CXXFLAGS"
15184 CXXFLAGS="$CXXFLAGS $wtest"
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15196 if ac_fn_cxx_try_compile "$LINENO"; then :
15197 WARN_CFLAGS="${WARN_CFLAGS} $w"
15199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200 CFLAGS="$saved_CFLAGS"
15201 CXXFLAGS="$saved_CXXFLAGS"
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15205 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15211 ac_cpp='$CPP $CPPFLAGS'
15212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15218 # In the Cygwin environment, we need some additional flags.
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
15220 $as_echo_n "checking for cygwin... " >&6; }
15221 if test "${gdb_cv_os_cygwin+set}" = set; then :
15222 $as_echo_n "(cached) " >&6
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h. */
15227 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15232 $EGREP "^lose$" >/dev/null 2>&1; then :
15233 gdb_cv_os_cygwin=yes
15235 gdb_cv_os_cygwin=no
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
15241 $as_echo "$gdb_cv_os_cygwin" >&6; }
15244 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
15246 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15247 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15248 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
15252 # libreadline needs libuser32.a in a cygwin environment
15254 if test x$gdb_cv_os_cygwin = xyes; then
15255 WIN32LIBS="-luser32"
15256 case "${target}" in
15257 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15262 # The ser-tcp.c module requires sockets.
15266 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15268 WIN32LIBS="$WIN32LIBS -lws2_32"
15273 # Add ELF support to GDB, but only if BFD includes ELF support.
15276 OLD_LDFLAGS=$LDFLAGS
15278 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15279 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15280 # always want our bfd.
15281 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15282 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15283 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15284 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15285 LIBS="-lbfd -liberty -lz $intl $LIBS"
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15287 $as_echo_n "checking for ELF support in BFD... " >&6; }
15288 if test "${gdb_cv_var_elf+set}" = set; then :
15289 $as_echo_n "(cached) " >&6
15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15293 #include <stdlib.h>
15295 #include "elf-bfd.h"
15300 return bfd_get_elf_phdr_upper_bound (NULL);
15305 if ac_fn_c_try_link "$LINENO"; then :
15310 rm -f core conftest.err conftest.$ac_objext \
15311 conftest$ac_exeext conftest.$ac_ext
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15314 $as_echo "$gdb_cv_var_elf" >&6; }
15316 LDFLAGS=$OLD_LDFLAGS
15318 if test $gdb_cv_var_elf = yes; then
15319 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15321 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15323 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15324 if test "$plugins" = "yes"; then
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15326 $as_echo_n "checking for library containing dlopen... " >&6; }
15327 if test "${ac_cv_search_dlopen+set}" = set; then :
15328 $as_echo_n "(cached) " >&6
15330 ac_func_search_save_LIBS=$LIBS
15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15334 /* Override any GCC internal prototype to avoid an error.
15335 Use char because int might match the return type of a GCC
15336 builtin and then its argument prototype would still apply. */
15349 for ac_lib in '' dl; do
15350 if test -z "$ac_lib"; then
15351 ac_res="none required"
15354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15356 if ac_fn_c_try_link "$LINENO"; then :
15357 ac_cv_search_dlopen=$ac_res
15359 rm -f core conftest.err conftest.$ac_objext \
15361 if test "${ac_cv_search_dlopen+set}" = set; then :
15365 if test "${ac_cv_search_dlopen+set}" = set; then :
15368 ac_cv_search_dlopen=no
15370 rm conftest.$ac_ext
15371 LIBS=$ac_func_search_save_LIBS
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15374 $as_echo "$ac_cv_search_dlopen" >&6; }
15375 ac_res=$ac_cv_search_dlopen
15376 if test "$ac_res" != no; then :
15377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15384 # Add macho support to GDB, but only if BFD includes it.
15387 OLD_LDFLAGS=$LDFLAGS
15389 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15390 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15391 # always want our bfd.
15392 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15393 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15394 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15395 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15396 LIBS="-lbfd -liberty -lz $intl $LIBS"
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15398 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15399 if test "${gdb_cv_var_macho+set}" = set; then :
15400 $as_echo_n "(cached) " >&6
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15404 #include <stdlib.h>
15406 #include "mach-o.h"
15411 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15416 if ac_fn_c_try_link "$LINENO"; then :
15417 gdb_cv_var_macho=yes
15419 gdb_cv_var_macho=no
15421 rm -f core conftest.err conftest.$ac_objext \
15422 conftest$ac_exeext conftest.$ac_ext
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15425 $as_echo "$gdb_cv_var_macho" >&6; }
15427 LDFLAGS=$OLD_LDFLAGS
15429 if test $gdb_cv_var_macho = yes; then
15430 CONFIG_OBS="$CONFIG_OBS machoread.o"
15433 # Add any host-specific objects to GDB.
15434 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
15436 # If building on ELF, look for lzma support for embedded compressed debug info.
15437 if test $gdb_cv_var_elf = yes; then
15439 # Check whether --with-lzma was given.
15440 if test "${with_lzma+set}" = set; then :
15441 withval=$with_lzma;
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15447 $as_echo_n "checking whether to use lzma... " >&6; }
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15449 $as_echo "$with_lzma" >&6; }
15451 if test "${with_lzma}" != no; then
15462 acl_save_prefix="$prefix"
15463 prefix="$acl_final_prefix"
15464 acl_save_exec_prefix="$exec_prefix"
15465 exec_prefix="$acl_final_exec_prefix"
15467 eval additional_includedir=\"$includedir\"
15468 eval additional_libdir=\"$libdir\"
15470 exec_prefix="$acl_save_exec_prefix"
15471 prefix="$acl_save_prefix"
15474 # Check whether --with-liblzma-prefix was given.
15475 if test "${with_liblzma_prefix+set}" = set; then :
15476 withval=$with_liblzma_prefix;
15477 if test "X$withval" = "Xno"; then
15480 if test "X$withval" = "X"; then
15482 acl_save_prefix="$prefix"
15483 prefix="$acl_final_prefix"
15484 acl_save_exec_prefix="$exec_prefix"
15485 exec_prefix="$acl_final_exec_prefix"
15487 eval additional_includedir=\"$includedir\"
15488 eval additional_libdir=\"$libdir\"
15490 exec_prefix="$acl_save_exec_prefix"
15491 prefix="$acl_save_prefix"
15494 additional_includedir="$withval/include"
15495 additional_libdir="$withval/lib"
15506 names_already_handled=
15507 names_next_round='lzma '
15508 while test -n "$names_next_round"; do
15509 names_this_round="$names_next_round"
15511 for name in $names_this_round; do
15513 for n in $names_already_handled; do
15514 if test "$n" = "$name"; then
15515 already_handled=yes
15519 if test -z "$already_handled"; then
15520 names_already_handled="$names_already_handled $name"
15521 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15522 eval value=\"\$HAVE_LIB$uppername\"
15523 if test -n "$value"; then
15524 if test "$value" = yes; then
15525 eval value=\"\$LIB$uppername\"
15526 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
15527 eval value=\"\$LTLIB$uppername\"
15528 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15537 if test $use_additional = yes; then
15538 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15539 found_dir="$additional_libdir"
15540 found_so="$additional_libdir/lib$name.$shlibext"
15541 if test -f "$additional_libdir/lib$name.la"; then
15542 found_la="$additional_libdir/lib$name.la"
15545 if test -f "$additional_libdir/lib$name.$libext"; then
15546 found_dir="$additional_libdir"
15547 found_a="$additional_libdir/lib$name.$libext"
15548 if test -f "$additional_libdir/lib$name.la"; then
15549 found_la="$additional_libdir/lib$name.la"
15554 if test "X$found_dir" = "X"; then
15555 for x in $LDFLAGS $LTLIBLZMA; do
15557 acl_save_prefix="$prefix"
15558 prefix="$acl_final_prefix"
15559 acl_save_exec_prefix="$exec_prefix"
15560 exec_prefix="$acl_final_exec_prefix"
15562 exec_prefix="$acl_save_exec_prefix"
15563 prefix="$acl_save_prefix"
15567 dir=`echo "X$x" | sed -e 's/^X-L//'`
15568 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15570 found_so="$dir/lib$name.$shlibext"
15571 if test -f "$dir/lib$name.la"; then
15572 found_la="$dir/lib$name.la"
15575 if test -f "$dir/lib$name.$libext"; then
15577 found_a="$dir/lib$name.$libext"
15578 if test -f "$dir/lib$name.la"; then
15579 found_la="$dir/lib$name.la"
15585 if test "X$found_dir" != "X"; then
15590 if test "X$found_dir" != "X"; then
15591 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15592 if test "X$found_so" != "X"; then
15593 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15594 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15597 for x in $ltrpathdirs; do
15598 if test "X$x" = "X$found_dir"; then
15603 if test -z "$haveit"; then
15604 ltrpathdirs="$ltrpathdirs $found_dir"
15606 if test "$hardcode_direct" = yes; then
15607 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15609 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15610 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15612 for x in $rpathdirs; do
15613 if test "X$x" = "X$found_dir"; then
15618 if test -z "$haveit"; then
15619 rpathdirs="$rpathdirs $found_dir"
15623 for x in $LDFLAGS $LIBLZMA; do
15625 acl_save_prefix="$prefix"
15626 prefix="$acl_final_prefix"
15627 acl_save_exec_prefix="$exec_prefix"
15628 exec_prefix="$acl_final_exec_prefix"
15630 exec_prefix="$acl_save_exec_prefix"
15631 prefix="$acl_save_prefix"
15633 if test "X$x" = "X-L$found_dir"; then
15638 if test -z "$haveit"; then
15639 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
15641 if test "$hardcode_minus_L" != no; then
15642 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
15644 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
15650 if test "X$found_a" != "X"; then
15651 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
15653 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
15656 additional_includedir=
15657 case "$found_dir" in
15659 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15660 additional_includedir="$basedir/include"
15663 if test "X$additional_includedir" != "X"; then
15664 if test "X$additional_includedir" != "X/usr/include"; then
15666 if test "X$additional_includedir" = "X/usr/local/include"; then
15667 if test -n "$GCC"; then
15669 linux*) haveit=yes;;
15673 if test -z "$haveit"; then
15674 for x in $CPPFLAGS $INCLZMA; do
15676 acl_save_prefix="$prefix"
15677 prefix="$acl_final_prefix"
15678 acl_save_exec_prefix="$exec_prefix"
15679 exec_prefix="$acl_final_exec_prefix"
15681 exec_prefix="$acl_save_exec_prefix"
15682 prefix="$acl_save_prefix"
15684 if test "X$x" = "X-I$additional_includedir"; then
15689 if test -z "$haveit"; then
15690 if test -d "$additional_includedir"; then
15691 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
15697 if test -n "$found_la"; then
15698 save_libdir="$libdir"
15699 case "$found_la" in
15700 */* | *\\*) . "$found_la" ;;
15701 *) . "./$found_la" ;;
15703 libdir="$save_libdir"
15704 for dep in $dependency_libs; do
15707 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15708 if test "X$additional_libdir" != "X/usr/lib"; then
15710 if test "X$additional_libdir" = "X/usr/local/lib"; then
15711 if test -n "$GCC"; then
15713 linux*) haveit=yes;;
15717 if test -z "$haveit"; then
15719 for x in $LDFLAGS $LIBLZMA; do
15721 acl_save_prefix="$prefix"
15722 prefix="$acl_final_prefix"
15723 acl_save_exec_prefix="$exec_prefix"
15724 exec_prefix="$acl_final_exec_prefix"
15726 exec_prefix="$acl_save_exec_prefix"
15727 prefix="$acl_save_prefix"
15729 if test "X$x" = "X-L$additional_libdir"; then
15734 if test -z "$haveit"; then
15735 if test -d "$additional_libdir"; then
15736 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
15740 for x in $LDFLAGS $LTLIBLZMA; do
15742 acl_save_prefix="$prefix"
15743 prefix="$acl_final_prefix"
15744 acl_save_exec_prefix="$exec_prefix"
15745 exec_prefix="$acl_final_exec_prefix"
15747 exec_prefix="$acl_save_exec_prefix"
15748 prefix="$acl_save_prefix"
15750 if test "X$x" = "X-L$additional_libdir"; then
15755 if test -z "$haveit"; then
15756 if test -d "$additional_libdir"; then
15757 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
15764 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15765 if test "$enable_rpath" != no; then
15767 for x in $rpathdirs; do
15768 if test "X$x" = "X$dir"; then
15773 if test -z "$haveit"; then
15774 rpathdirs="$rpathdirs $dir"
15777 for x in $ltrpathdirs; do
15778 if test "X$x" = "X$dir"; then
15783 if test -z "$haveit"; then
15784 ltrpathdirs="$ltrpathdirs $dir"
15789 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15792 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15795 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
15796 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
15802 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
15803 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
15809 if test "X$rpathdirs" != "X"; then
15810 if test -n "$hardcode_libdir_separator"; then
15812 for found_dir in $rpathdirs; do
15813 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15815 acl_save_libdir="$libdir"
15817 eval flag=\"$hardcode_libdir_flag_spec\"
15818 libdir="$acl_save_libdir"
15819 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
15821 for found_dir in $rpathdirs; do
15822 acl_save_libdir="$libdir"
15823 libdir="$found_dir"
15824 eval flag=\"$hardcode_libdir_flag_spec\"
15825 libdir="$acl_save_libdir"
15826 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
15830 if test "X$ltrpathdirs" != "X"; then
15831 for found_dir in $ltrpathdirs; do
15832 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
15837 ac_save_CPPFLAGS="$CPPFLAGS"
15839 for element in $INCLZMA; do
15841 for x in $CPPFLAGS; do
15843 acl_save_prefix="$prefix"
15844 prefix="$acl_final_prefix"
15845 acl_save_exec_prefix="$exec_prefix"
15846 exec_prefix="$acl_final_exec_prefix"
15848 exec_prefix="$acl_save_exec_prefix"
15849 prefix="$acl_save_prefix"
15851 if test "X$x" = "X$element"; then
15856 if test -z "$haveit"; then
15857 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
15863 $as_echo_n "checking for liblzma... " >&6; }
15864 if test "${ac_cv_liblzma+set}" = set; then :
15865 $as_echo_n "(cached) " >&6
15868 ac_save_LIBS="$LIBS"
15869 LIBS="$LIBS $LIBLZMA"
15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15876 lzma_index_iter iter;
15877 lzma_index_iter_init (&iter, 0);
15878 lzma_mf_is_supported (LZMA_MF_HC3);
15883 if ac_fn_c_try_link "$LINENO"; then :
15888 rm -f core conftest.err conftest.$ac_objext \
15889 conftest$ac_exeext conftest.$ac_ext
15890 LIBS="$ac_save_LIBS"
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
15894 $as_echo "$ac_cv_liblzma" >&6; }
15895 if test "$ac_cv_liblzma" = yes; then
15898 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
15901 $as_echo_n "checking how to link with liblzma... " >&6; }
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
15903 $as_echo "$LIBLZMA" >&6; }
15906 CPPFLAGS="$ac_save_CPPFLAGS"
15916 if test "$HAVE_LIBLZMA" != yes; then
15917 if test "$with_lzma" = yes; then
15918 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
15924 LIBGUI="../libgui/src/libgui.a"
15925 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15934 *-*-cygwin* | *-*-mingw* )
15943 if test "${enable_gdbtk}" = "yes"; then
15945 # Gdbtk must have an absolute path to srcdir in order to run
15946 # properly when not installed.
15949 GDBTK_SRC_DIR=`pwd`
15954 # Ok, lets find the tcl configuration
15955 # First, look for one uninstalled.
15956 # the alternative search directory is invoked by --with-tcl
15959 if test x"${no_tcl}" = x ; then
15960 # we reset no_tcl in case something fails here
15963 # Check whether --with-tcl was given.
15964 if test "${with_tcl+set}" = set; then :
15965 withval=$with_tcl; with_tclconfig=${withval}
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15969 $as_echo_n "checking for Tcl configuration... " >&6; }
15970 if test "${ac_cv_c_tclconfig+set}" = set; then :
15971 $as_echo_n "(cached) " >&6
15975 # First check to see if --with-tcl was specified.
15977 *-*-cygwin*) platDir="win" ;;
15978 *) platDir="unix" ;;
15980 if test x"${with_tclconfig}" != x ; then
15981 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15982 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15984 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15988 # then check for a private Tcl installation
15989 if test x"${ac_cv_c_tclconfig}" = x ; then
15992 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15993 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15994 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15996 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15997 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15998 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16000 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16001 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16002 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16003 if test -f "$i/$platDir/tclConfig.sh" ; then
16004 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16010 # on Darwin, check in Framework installation locations
16011 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
16012 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16013 `ls -d /Library/Frameworks 2>/dev/null` \
16014 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16015 `ls -d /System/Library/Frameworks 2>/dev/null` \
16017 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16018 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
16024 # check in a few common install locations
16025 if test x"${ac_cv_c_tclconfig}" = x ; then
16026 for i in `ls -d ${libdir} 2>/dev/null` \
16027 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16028 `ls -d ${prefix}/lib 2>/dev/null` \
16029 `ls -d /usr/local/lib 2>/dev/null` \
16030 `ls -d /usr/contrib/lib 2>/dev/null` \
16031 `ls -d /usr/lib 2>/dev/null` \
16033 if test -f "$i/tclConfig.sh" ; then
16034 ac_cv_c_tclconfig=`(cd $i; pwd)`
16040 # check in a few other private locations
16041 if test x"${ac_cv_c_tclconfig}" = x ; then
16044 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16045 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16046 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16047 if test -f "$i/$platDir/tclConfig.sh" ; then
16048 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16057 if test x"${ac_cv_c_tclconfig}" = x ; then
16058 TCL_BIN_DIR="# no Tcl configs found"
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16060 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16063 TCL_BIN_DIR=${ac_cv_c_tclconfig}
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16065 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16070 # If $no_tk is nonempty, then we can't do Tk, and there is no
16071 # point to doing Tcl.
16074 # Ok, lets find the tk configuration
16075 # First, look for one uninstalled.
16076 # the alternative search directory is invoked by --with-tk
16079 if test x"${no_tk}" = x ; then
16080 # we reset no_tk in case something fails here
16083 # Check whether --with-tk was given.
16084 if test "${with_tk+set}" = set; then :
16085 withval=$with_tk; with_tkconfig=${withval}
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16089 $as_echo_n "checking for Tk configuration... " >&6; }
16090 if test "${ac_cv_c_tkconfig+set}" = set; then :
16091 $as_echo_n "(cached) " >&6
16095 # First check to see if --with-tkconfig was specified.
16096 if test x"${with_tkconfig}" != x ; then
16097 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16098 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
16100 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16104 # then check for a private Tk library
16106 *-*-cygwin*) platDir="win" ;;
16107 *) platDir="unix" ;;
16109 if test x"${ac_cv_c_tkconfig}" = x ; then
16112 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16113 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16114 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16116 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16117 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16118 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16120 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16121 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16122 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16123 if test -f "$i/$platDir/tkConfig.sh" ; then
16124 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16130 # on Darwin, check in Framework installation locations
16131 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
16132 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16133 `ls -d /Library/Frameworks 2>/dev/null` \
16134 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16135 `ls -d /System/Library/Frameworks 2>/dev/null` \
16137 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16138 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
16144 # check in a few common install locations
16145 if test x"${ac_cv_c_tkconfig}" = x ; then
16146 for i in `ls -d ${libdir} 2>/dev/null` \
16147 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16148 `ls -d ${prefix}/lib 2>/dev/null` \
16149 `ls -d /usr/local/lib 2>/dev/null` \
16150 `ls -d /usr/contrib/lib 2>/dev/null` \
16151 `ls -d /usr/lib 2>/dev/null` \
16153 if test -f "$i/tkConfig.sh" ; then
16154 ac_cv_c_tkconfig=`(cd $i; pwd)`
16159 # check in a few other private locations
16160 if test x"${ac_cv_c_tkconfig}" = x ; then
16163 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16164 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16165 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16166 if test -f "$i/$platDir/tkConfig.sh" ; then
16167 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16176 if test x"${ac_cv_c_tkconfig}" = x ; then
16177 TK_BIN_DIR="# no Tk configs found"
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16179 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16182 TK_BIN_DIR=${ac_cv_c_tkconfig}
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16184 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16189 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16192 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16194 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16196 $as_echo "loading" >&6; }
16197 . ${TCL_BIN_DIR}/tclConfig.sh
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16200 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16203 # eval is required to do the TCL_DBGX substitution
16204 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16205 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16207 # If the TCL_BIN_DIR is the build directory (not the install directory),
16208 # then set the common variable name to the value of the build variables.
16209 # For example, the variable TCL_LIB_SPEC will be set to the value
16210 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16211 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16212 # installed and uninstalled version of Tcl.
16213 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16214 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
16215 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
16216 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
16217 elif test "`uname -s`" = "Darwin"; then
16218 # If Tcl was built as a framework, attempt to use the libraries
16219 # from the framework at the given location so that linking works
16220 # against Tcl.framework installed in an arbitrary location.
16221 case ${TCL_DEFS} in
16223 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16224 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
16225 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16226 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16227 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16232 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16233 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16234 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16240 # eval is required to do the TCL_DBGX substitution
16241 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16242 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16243 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16244 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16260 # Check for in-tree tcl
16267 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16271 # Find Tcl private headers
16272 if test x"${intree}" = xno; then
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16275 $as_echo_n "checking for Tcl private headers... " >&6; }
16277 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16278 if test -f ${dir}/tclInt.h ; then
16282 if test x"${private_dir}" = x; then
16283 as_fn_error "could not find private Tcl headers" "$LINENO" 5
16285 TCL_PRIVATE_INCLUDE="-I${private_dir}"
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16287 $as_echo "${private_dir}" >&6; }
16290 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16291 TCL_LIBRARY="${TCL_LIB_SPEC}"
16294 # If building tcl in the same src tree, private headers
16295 # are not needed, but we need to be sure to use the right
16297 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
16298 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
16299 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16307 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16309 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16311 $as_echo "loading" >&6; }
16312 . ${TK_BIN_DIR}/tkConfig.sh
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16315 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16318 # eval is required to do the TK_DBGX substitution
16319 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16320 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16322 # If the TK_BIN_DIR is the build directory (not the install directory),
16323 # then set the common variable name to the value of the build variables.
16324 # For example, the variable TK_LIB_SPEC will be set to the value
16325 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16326 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16327 # installed and uninstalled version of Tcl.
16328 if test -f "${TK_BIN_DIR}/Makefile" ; then
16329 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
16330 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
16331 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
16332 elif test "`uname -s`" = "Darwin"; then
16333 # If Tk was built as a framework, attempt to use the libraries
16334 # from the framework at the given location so that linking works
16335 # against Tk.framework installed in an arbitrary location.
16338 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16339 for i in "`cd ${TK_BIN_DIR}; pwd`" \
16340 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16341 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16342 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16347 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16348 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16349 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16355 # eval is required to do the TK_DBGX substitution
16356 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16357 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16358 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16359 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16374 # Check for in-tree Tk
16376 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16380 # Find Tk private headers
16381 if test x"${intree}" = xno; then
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16384 $as_echo_n "checking for Tk private headers... " >&6; }
16386 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16387 if test -f ${dir}/tkInt.h; then
16391 if test x"${private_dir}" = x; then
16392 as_fn_error "could not find Tk private headers" "$LINENO" 5
16394 TK_PRIVATE_INCLUDE="-I${private_dir}"
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16396 $as_echo "${private_dir}" >&6; }
16399 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16400 TK_LIBRARY=${TK_LIB_SPEC}
16403 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
16404 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
16405 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
16412 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16414 # Include some libraries that Tcl and Tk want.
16415 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16416 # Yes, the ordering seems wrong here. But it isn't.
16417 # TK_LIBS is the list of libraries that need to be linked
16418 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16419 # were in LIBS then any link tests after this point would
16420 # try to include things like `$(LIBGUI)', which wouldn't work.
16421 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
16423 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16424 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16425 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16426 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
16427 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
16428 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
16429 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
16431 if test x$gdb_cv_os_cygwin = xyes; then
16432 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16433 WIN32LDAPP="-Wl,--subsystem,console"
16434 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
16437 subdirs="$subdirs gdbtk"
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16450 $as_echo_n "checking for X... " >&6; }
16453 # Check whether --with-x was given.
16454 if test "${with_x+set}" = set; then :
16458 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16459 if test "x$with_x" = xno; then
16460 # The user explicitly disabled X.
16463 case $x_includes,$x_libraries in #(
16464 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
16465 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
16466 $as_echo_n "(cached) " >&6
16468 # One or both of the vars are not set, and there is no cached value.
16469 ac_x_includes=no ac_x_libraries=no
16470 rm -f -r conftest.dir
16471 if mkdir conftest.dir; then
16473 cat >Imakefile <<'_ACEOF'
16475 @echo incroot='${INCROOT}'
16477 @echo usrlibdir='${USRLIBDIR}'
16479 @echo libdir='${LIBDIR}'
16481 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16482 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16483 for ac_var in incroot usrlibdir libdir; do
16484 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16486 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16487 for ac_extension in a so sl dylib la dll; do
16488 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16489 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16490 ac_im_usrlibdir=$ac_im_libdir; break
16493 # Screen out bogus values from the imake configuration. They are
16494 # bogus both because they are the default anyway, and because
16495 # using them would break gcc on systems where it needs fixed includes.
16496 case $ac_im_incroot in
16497 /usr/include) ac_x_includes= ;;
16498 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16500 case $ac_im_usrlibdir in
16501 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
16502 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16506 rm -f -r conftest.dir
16509 # Standard set of common directories for X headers.
16510 # Check X11 before X11Rn because it is often a symlink to the current release.
16524 /usr/local/X11/include
16525 /usr/local/X11R7/include
16526 /usr/local/X11R6/include
16527 /usr/local/X11R5/include
16528 /usr/local/X11R4/include
16530 /usr/local/include/X11
16531 /usr/local/include/X11R7
16532 /usr/local/include/X11R6
16533 /usr/local/include/X11R5
16534 /usr/local/include/X11R4
16538 /usr/XFree86/include/X11
16542 /usr/unsupported/include
16543 /usr/athena/include
16544 /usr/local/x11r5/include
16545 /usr/lpp/Xamples/include
16547 /usr/openwin/include
16548 /usr/openwin/share/include'
16550 if test "$ac_x_includes" = no; then
16551 # Guess where to find include files, by looking for Xlib.h.
16552 # First, try using that file with no special directory specified.
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555 #include <X11/Xlib.h>
16557 if ac_fn_c_try_cpp "$LINENO"; then :
16558 # We can compile using X headers with no special include directory.
16561 for ac_dir in $ac_x_header_dirs; do
16562 if test -r "$ac_dir/X11/Xlib.h"; then
16563 ac_x_includes=$ac_dir
16568 rm -f conftest.err conftest.$ac_ext
16569 fi # $ac_x_includes = no
16571 if test "$ac_x_libraries" = no; then
16572 # Check for the libraries.
16573 # See if we find them without any special options.
16574 # Don't add to $LIBS permanently.
16577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578 /* end confdefs.h. */
16579 #include <X11/Xlib.h>
16588 if ac_fn_c_try_link "$LINENO"; then :
16590 # We can link X programs with no special library path.
16594 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16596 # Don't even attempt the hair of trying to link an X program!
16597 for ac_extension in a so sl dylib la dll; do
16598 if test -r "$ac_dir/libX11.$ac_extension"; then
16599 ac_x_libraries=$ac_dir
16605 rm -f core conftest.err conftest.$ac_objext \
16606 conftest$ac_exeext conftest.$ac_ext
16607 fi # $ac_x_libraries = no
16609 case $ac_x_includes,$ac_x_libraries in #(
16610 no,* | *,no | *\'*)
16611 # Didn't find X, or a directory has "'" in its name.
16612 ac_cv_have_x="have_x=no";; #(
16614 # Record where we found X for the cache.
16615 ac_cv_have_x="have_x=yes\
16616 ac_x_includes='$ac_x_includes'\
16617 ac_x_libraries='$ac_x_libraries'"
16623 eval "$ac_cv_have_x"
16626 if test "$have_x" != yes; then
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16628 $as_echo "$have_x" >&6; }
16631 # If each of the values was on the command line, it overrides each guess.
16632 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16633 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16634 # Update the cache value to reflect the command line values.
16635 ac_cv_have_x="have_x=yes\
16636 ac_x_includes='$x_includes'\
16637 ac_x_libraries='$x_libraries'"
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16639 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16643 # Unlike the sim directory, whether a simulator is linked is controlled by
16644 # presence of a gdb_sim definition in the target configure.tgt entry.
16645 # This code just checks for a few cases where we'd like to ignore those
16646 # definitions, even when they're present in the '.mt' file. These cases
16647 # are when --disable-sim is specified, or if the simulator directory is
16648 # not part of the source tree.
16650 # Check whether --enable-sim was given.
16651 if test "${enable_sim+set}" = set; then :
16652 enableval=$enable_sim; echo "enable_sim = $enable_sim";
16653 echo "enableval = ${enableval}";
16654 case "${enableval}" in
16655 yes) ignore_sim=false ;;
16656 no) ignore_sim=true ;;
16657 *) ignore_sim=false ;;
16664 if test ! -d "${srcdir}/../sim"; then
16670 if test "${ignore_sim}" = "false"; then
16671 if test x"${gdb_sim}" != x ; then
16673 SIM_OBS="remote-sim.o"
16675 $as_echo "#define WITH_SIM 1" >>confdefs.h
16678 # Some tdep code should only be compiled in when the ppc sim is
16679 # built. PR sim/13418.
16683 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
16703 # List of host floatformats.
16705 cat >>confdefs.h <<_ACEOF
16706 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16710 cat >>confdefs.h <<_ACEOF
16711 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16715 cat >>confdefs.h <<_ACEOF
16716 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16720 # target_subdir is used by the testsuite to find the target libraries.
16722 if test "${host}" != "${target}"; then
16723 target_subdir="${target_alias}/"
16728 if test "${gdb_native}" = "yes"; then
16729 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
16730 if test ! -f ${host_makefile_frag}; then
16731 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
16733 frags="$frags $host_makefile_frag"
16735 host_makefile_frag=/dev/null
16741 if test "${gdb_native}" = "yes"; then
16742 # We pick this up from the host configuration file (.mh) because we
16743 # do not have a native configuration Makefile fragment.
16744 nativefile=`sed -n '
16745 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
16746 ' ${host_makefile_frag}`
16750 if test x"${gdb_osabi}" != x ; then
16752 cat >>confdefs.h <<_ACEOF
16753 #define GDB_OSABI_DEFAULT $gdb_osabi
16758 # Enable multi-ice-gdb-server.
16759 # Check whether --enable-multi-ice was given.
16760 if test "${enable_multi_ice+set}" = set; then :
16761 enableval=$enable_multi_ice; case $enableval in
16764 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
16768 if test "x$enable_multi_ice" = xyes; then
16769 subdirs="$subdirs multi-ice"
16773 # Check whether --enable-gdbserver was given.
16774 if test "${enable_gdbserver+set}" = set; then :
16775 enableval=$enable_gdbserver; case "${enableval}" in
16777 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
16780 enable_gdbserver=auto
16784 # We only build gdbserver automatically in a native configuration, and
16785 # only if the user did not explicitly disable its build.
16786 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
16788 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
16789 if test "x$build_gdbserver" = xyes; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16791 $as_echo "yes" >&6; }
16792 subdirs="$subdirs gdbserver"
16794 gdbserver_build_enabled=yes
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16797 $as_echo "no" >&6; }
16801 # If the user explicitly request the gdbserver to be built, verify that
16802 # we were in fact able to enable it.
16803 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
16804 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16807 # Check for babeltrace and babeltrace-ctf
16809 # Check whether --with-babeltrace was given.
16810 if test "${with_babeltrace+set}" = set; then :
16811 withval=$with_babeltrace;
16813 with_babeltrace=auto
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
16817 $as_echo_n "checking whether to use babeltrace... " >&6; }
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
16819 $as_echo "$with_babeltrace" >&6; }
16821 if test "x$with_babeltrace" = "xno"; then
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
16823 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
16825 # Append -Werror to CFLAGS so that configure can catch the warning
16826 # "assignment from incompatible pointer type", which is related to
16827 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
16828 # in GDB, while babeltrace 1.0.3 is broken.
16829 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
16830 # safe to save and restore CFLAGS here.
16831 saved_CFLAGS=$CFLAGS
16832 CFLAGS="$CFLAGS -Werror"
16843 acl_save_prefix="$prefix"
16844 prefix="$acl_final_prefix"
16845 acl_save_exec_prefix="$exec_prefix"
16846 exec_prefix="$acl_final_exec_prefix"
16848 eval additional_includedir=\"$includedir\"
16849 eval additional_libdir=\"$libdir\"
16851 exec_prefix="$acl_save_exec_prefix"
16852 prefix="$acl_save_prefix"
16855 # Check whether --with-libbabeltrace-prefix was given.
16856 if test "${with_libbabeltrace_prefix+set}" = set; then :
16857 withval=$with_libbabeltrace_prefix;
16858 if test "X$withval" = "Xno"; then
16861 if test "X$withval" = "X"; then
16863 acl_save_prefix="$prefix"
16864 prefix="$acl_final_prefix"
16865 acl_save_exec_prefix="$exec_prefix"
16866 exec_prefix="$acl_final_exec_prefix"
16868 eval additional_includedir=\"$includedir\"
16869 eval additional_libdir=\"$libdir\"
16871 exec_prefix="$acl_save_exec_prefix"
16872 prefix="$acl_save_prefix"
16875 additional_includedir="$withval/include"
16876 additional_libdir="$withval/lib"
16887 names_already_handled=
16888 names_next_round='babeltrace babeltrace-ctf'
16889 while test -n "$names_next_round"; do
16890 names_this_round="$names_next_round"
16892 for name in $names_this_round; do
16894 for n in $names_already_handled; do
16895 if test "$n" = "$name"; then
16896 already_handled=yes
16900 if test -z "$already_handled"; then
16901 names_already_handled="$names_already_handled $name"
16902 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16903 eval value=\"\$HAVE_LIB$uppername\"
16904 if test -n "$value"; then
16905 if test "$value" = yes; then
16906 eval value=\"\$LIB$uppername\"
16907 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
16908 eval value=\"\$LTLIB$uppername\"
16909 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
16918 if test $use_additional = yes; then
16919 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16920 found_dir="$additional_libdir"
16921 found_so="$additional_libdir/lib$name.$shlibext"
16922 if test -f "$additional_libdir/lib$name.la"; then
16923 found_la="$additional_libdir/lib$name.la"
16926 if test -f "$additional_libdir/lib$name.$libext"; then
16927 found_dir="$additional_libdir"
16928 found_a="$additional_libdir/lib$name.$libext"
16929 if test -f "$additional_libdir/lib$name.la"; then
16930 found_la="$additional_libdir/lib$name.la"
16935 if test "X$found_dir" = "X"; then
16936 for x in $LDFLAGS $LTLIBBABELTRACE; do
16938 acl_save_prefix="$prefix"
16939 prefix="$acl_final_prefix"
16940 acl_save_exec_prefix="$exec_prefix"
16941 exec_prefix="$acl_final_exec_prefix"
16943 exec_prefix="$acl_save_exec_prefix"
16944 prefix="$acl_save_prefix"
16948 dir=`echo "X$x" | sed -e 's/^X-L//'`
16949 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16951 found_so="$dir/lib$name.$shlibext"
16952 if test -f "$dir/lib$name.la"; then
16953 found_la="$dir/lib$name.la"
16956 if test -f "$dir/lib$name.$libext"; then
16958 found_a="$dir/lib$name.$libext"
16959 if test -f "$dir/lib$name.la"; then
16960 found_la="$dir/lib$name.la"
16966 if test "X$found_dir" != "X"; then
16971 if test "X$found_dir" != "X"; then
16972 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
16973 if test "X$found_so" != "X"; then
16974 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16975 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16978 for x in $ltrpathdirs; do
16979 if test "X$x" = "X$found_dir"; then
16984 if test -z "$haveit"; then
16985 ltrpathdirs="$ltrpathdirs $found_dir"
16987 if test "$hardcode_direct" = yes; then
16988 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16990 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16991 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16993 for x in $rpathdirs; do
16994 if test "X$x" = "X$found_dir"; then
16999 if test -z "$haveit"; then
17000 rpathdirs="$rpathdirs $found_dir"
17004 for x in $LDFLAGS $LIBBABELTRACE; do
17006 acl_save_prefix="$prefix"
17007 prefix="$acl_final_prefix"
17008 acl_save_exec_prefix="$exec_prefix"
17009 exec_prefix="$acl_final_exec_prefix"
17011 exec_prefix="$acl_save_exec_prefix"
17012 prefix="$acl_save_prefix"
17014 if test "X$x" = "X-L$found_dir"; then
17019 if test -z "$haveit"; then
17020 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17022 if test "$hardcode_minus_L" != no; then
17023 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17025 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17031 if test "X$found_a" != "X"; then
17032 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17034 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17037 additional_includedir=
17038 case "$found_dir" in
17040 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17041 additional_includedir="$basedir/include"
17044 if test "X$additional_includedir" != "X"; then
17045 if test "X$additional_includedir" != "X/usr/include"; then
17047 if test "X$additional_includedir" = "X/usr/local/include"; then
17048 if test -n "$GCC"; then
17050 linux*) haveit=yes;;
17054 if test -z "$haveit"; then
17055 for x in $CPPFLAGS $INCBABELTRACE; do
17057 acl_save_prefix="$prefix"
17058 prefix="$acl_final_prefix"
17059 acl_save_exec_prefix="$exec_prefix"
17060 exec_prefix="$acl_final_exec_prefix"
17062 exec_prefix="$acl_save_exec_prefix"
17063 prefix="$acl_save_prefix"
17065 if test "X$x" = "X-I$additional_includedir"; then
17070 if test -z "$haveit"; then
17071 if test -d "$additional_includedir"; then
17072 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17078 if test -n "$found_la"; then
17079 save_libdir="$libdir"
17080 case "$found_la" in
17081 */* | *\\*) . "$found_la" ;;
17082 *) . "./$found_la" ;;
17084 libdir="$save_libdir"
17085 for dep in $dependency_libs; do
17088 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17089 if test "X$additional_libdir" != "X/usr/lib"; then
17091 if test "X$additional_libdir" = "X/usr/local/lib"; then
17092 if test -n "$GCC"; then
17094 linux*) haveit=yes;;
17098 if test -z "$haveit"; then
17100 for x in $LDFLAGS $LIBBABELTRACE; do
17102 acl_save_prefix="$prefix"
17103 prefix="$acl_final_prefix"
17104 acl_save_exec_prefix="$exec_prefix"
17105 exec_prefix="$acl_final_exec_prefix"
17107 exec_prefix="$acl_save_exec_prefix"
17108 prefix="$acl_save_prefix"
17110 if test "X$x" = "X-L$additional_libdir"; then
17115 if test -z "$haveit"; then
17116 if test -d "$additional_libdir"; then
17117 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17121 for x in $LDFLAGS $LTLIBBABELTRACE; do
17123 acl_save_prefix="$prefix"
17124 prefix="$acl_final_prefix"
17125 acl_save_exec_prefix="$exec_prefix"
17126 exec_prefix="$acl_final_exec_prefix"
17128 exec_prefix="$acl_save_exec_prefix"
17129 prefix="$acl_save_prefix"
17131 if test "X$x" = "X-L$additional_libdir"; then
17136 if test -z "$haveit"; then
17137 if test -d "$additional_libdir"; then
17138 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17145 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17146 if test "$enable_rpath" != no; then
17148 for x in $rpathdirs; do
17149 if test "X$x" = "X$dir"; then
17154 if test -z "$haveit"; then
17155 rpathdirs="$rpathdirs $dir"
17158 for x in $ltrpathdirs; do
17159 if test "X$x" = "X$dir"; then
17164 if test -z "$haveit"; then
17165 ltrpathdirs="$ltrpathdirs $dir"
17170 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17173 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17176 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17177 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17183 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17184 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17190 if test "X$rpathdirs" != "X"; then
17191 if test -n "$hardcode_libdir_separator"; then
17193 for found_dir in $rpathdirs; do
17194 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17196 acl_save_libdir="$libdir"
17198 eval flag=\"$hardcode_libdir_flag_spec\"
17199 libdir="$acl_save_libdir"
17200 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17202 for found_dir in $rpathdirs; do
17203 acl_save_libdir="$libdir"
17204 libdir="$found_dir"
17205 eval flag=\"$hardcode_libdir_flag_spec\"
17206 libdir="$acl_save_libdir"
17207 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17211 if test "X$ltrpathdirs" != "X"; then
17212 for found_dir in $ltrpathdirs; do
17213 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17218 ac_save_CPPFLAGS="$CPPFLAGS"
17220 for element in $INCBABELTRACE; do
17222 for x in $CPPFLAGS; do
17224 acl_save_prefix="$prefix"
17225 prefix="$acl_final_prefix"
17226 acl_save_exec_prefix="$exec_prefix"
17227 exec_prefix="$acl_final_exec_prefix"
17229 exec_prefix="$acl_save_exec_prefix"
17230 prefix="$acl_save_prefix"
17232 if test "X$x" = "X$element"; then
17237 if test -z "$haveit"; then
17238 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17244 $as_echo_n "checking for libbabeltrace... " >&6; }
17245 if test "${ac_cv_libbabeltrace+set}" = set; then :
17246 $as_echo_n "(cached) " >&6
17249 ac_save_LIBS="$LIBS"
17250 LIBS="$LIBS $LIBBABELTRACE"
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17253 #include <babeltrace/babeltrace.h>
17254 #include <babeltrace/ctf/events.h>
17255 #include <babeltrace/ctf/iterator.h>
17259 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17260 struct bt_ctf_event *event = NULL;
17261 const struct bt_definition *scope;
17263 pos->type = BT_SEEK_BEGIN;
17264 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17265 scope = bt_ctf_get_top_level_scope (event,
17266 BT_STREAM_EVENT_HEADER);
17267 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17273 if ac_fn_c_try_link "$LINENO"; then :
17274 ac_cv_libbabeltrace=yes
17276 ac_cv_libbabeltrace=no
17278 rm -f core conftest.err conftest.$ac_objext \
17279 conftest$ac_exeext conftest.$ac_ext
17280 LIBS="$ac_save_LIBS"
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17284 $as_echo "$ac_cv_libbabeltrace" >&6; }
17285 if test "$ac_cv_libbabeltrace" = yes; then
17286 HAVE_LIBBABELTRACE=yes
17288 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17291 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17293 $as_echo "$LIBBABELTRACE" >&6; }
17295 HAVE_LIBBABELTRACE=no
17296 CPPFLAGS="$ac_save_CPPFLAGS"
17306 CFLAGS=$saved_CFLAGS
17308 if test "$HAVE_LIBBABELTRACE" != yes; then
17309 if test "$with_babeltrace" = yes; then
17310 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17313 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17318 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
17319 # to an empty version.
17325 if test "${nativefile}" != ""; then
17326 case "${nativefile}" in
17327 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
17328 * ) GDB_NM_FILE="${nativefile}"
17330 files="${files} ${GDB_NM_FILE}"
17331 links="${links} nm.h"
17333 cat >>confdefs.h <<_ACEOF
17334 #define GDB_NM_FILE "${GDB_NM_FILE}"
17340 for ac_prog in xsltproc
17342 # Extract the first word of "$ac_prog", so it can be a program name with args.
17343 set dummy $ac_prog; ac_word=$2
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17345 $as_echo_n "checking for $ac_word... " >&6; }
17346 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
17347 $as_echo_n "(cached) " >&6
17351 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17355 for as_dir in $PATH
17358 test -z "$as_dir" && as_dir=.
17359 for ac_exec_ext in '' $ac_executable_extensions; do
17360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17361 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
17362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17372 XSLTPROC=$ac_cv_path_XSLTPROC
17373 if test -n "$XSLTPROC"; then
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17375 $as_echo "$XSLTPROC" >&6; }
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17378 $as_echo "no" >&6; }
17382 test -n "$XSLTPROC" && break
17384 test -n "$XSLTPROC" || XSLTPROC="missing"
17386 if test "x$USE_MAINTAINER_MODE" = xyes; then
17387 if test "${XSLTPROC}" = missing; then
17388 as_fn_error "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17393 ac_sources="$files"
17395 while test -n "$ac_sources"; do
17396 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17397 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17398 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
17400 ac_config_links="$ac_config_links $ac_config_links_1"
17406 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17409 if $development; then
17411 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17413 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS)"
17414 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS)"
17418 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17419 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
17420 if test "x$GDB_TRANSFORM_NAME" = x; then
17421 GDB_TRANSFORM_NAME=gdb
17426 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17427 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
17428 if test "x$GCORE_TRANSFORM_NAME" = x; then
17429 GCORE_TRANSFORM_NAME=gcore
17433 ac_config_files="$ac_config_files gcore"
17435 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
17438 cat >confcache <<\_ACEOF
17439 # This file is a shell script that caches the results of configure
17440 # tests run on this system so they can be shared between configure
17441 # scripts and configure runs, see configure's option --config-cache.
17442 # It is not useful on other systems. If it contains results you don't
17443 # want to keep, you may remove or edit it.
17445 # config.status only pays attention to the cache file if you give it
17446 # the --recheck option to rerun configure.
17448 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17449 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17450 # following values.
17454 # The following way of writing the cache mishandles newlines in values,
17455 # but we know of no workaround that is simple, portable, and efficient.
17456 # So, we kill variables containing newlines.
17457 # Ultrix sh set writes to stderr and can't be redirected directly,
17458 # and sets the high bit in the cache file unless we assign to the vars.
17460 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17461 eval ac_val=\$$ac_var
17465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17469 _ | IFS | as_nl) ;; #(
17470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17471 *) { eval $ac_var=; unset $ac_var;} ;;
17477 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17478 *${as_nl}ac_space=\ *)
17479 # `set' does not quote correctly, so add quotes: double-quote
17480 # substitution turns \\\\ into \\, and sed turns \\ into \.
17483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17486 # `set' quotes correctly as required by POSIX, so do not add quotes.
17487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17498 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17500 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17501 if test -w "$cache_file"; then
17502 test "x$cache_file" != "x/dev/null" &&
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17504 $as_echo "$as_me: updating cache $cache_file" >&6;}
17505 cat confcache >$cache_file
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17508 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17513 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17514 # Let make expand exec_prefix.
17515 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17517 DEFS=-DHAVE_CONFIG_H
17521 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17522 # 1. Remove the extension, and $U if already installed.
17523 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17524 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17526 # will be set to the directory where LIBOBJS objects are built.
17527 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17528 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17530 LIBOBJS=$ac_libobjs
17532 LTLIBOBJS=$ac_ltlibobjs
17535 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17536 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17539 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17540 as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
17541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17543 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17544 as_fn_error "conditional \"HAVE_GUILE\" was never defined.
17545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17549 : ${CONFIG_STATUS=./config.status}
17551 ac_clean_files_save=$ac_clean_files
17552 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17554 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17556 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17558 # Generated by $as_me.
17559 # Run this file to recreate the current configuration.
17560 # Compiler output produced by configure, useful for debugging
17561 # configure, is in config.log if it exists.
17564 ac_cs_recheck=false
17567 SHELL=\${CONFIG_SHELL-$SHELL}
17570 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17571 ## -------------------- ##
17572 ## M4sh Initialization. ##
17573 ## -------------------- ##
17575 # Be more Bourne compatible
17576 DUALCASE=1; export DUALCASE # for MKS sh
17577 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17580 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17581 # is contrary to our usage. Disable this feature.
17582 alias -g '${1+"$@"}'='"$@"'
17583 setopt NO_GLOB_SUBST
17585 case `(set -o) 2>/dev/null` in #(
17597 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17598 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17599 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17600 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17601 # Prefer a ksh shell builtin over an external printf program on Solaris,
17602 # but without wasting forks for bash or zsh.
17603 if test -z "$BASH_VERSION$ZSH_VERSION" \
17604 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17605 as_echo='print -r --'
17606 as_echo_n='print -rn --'
17607 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17608 as_echo='printf %s\n'
17609 as_echo_n='printf %s'
17611 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17612 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17613 as_echo_n='/usr/ucb/echo -n'
17615 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17616 as_echo_n_body='eval
17620 expr "X$arg" : "X\\(.*\\)$as_nl";
17621 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17623 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17625 export as_echo_n_body
17626 as_echo_n='sh -c $as_echo_n_body as_echo'
17628 export as_echo_body
17629 as_echo='sh -c $as_echo_body as_echo'
17632 # The user is always right.
17633 if test "${PATH_SEPARATOR+set}" != set; then
17635 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17636 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17643 # We need space, tab and new line, in precisely that order. Quoting is
17644 # there to prevent editors from complaining about space-tab.
17645 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17646 # splitting by setting IFS to empty value.)
17649 # Find who we are. Look in the path if we contain no directory separator.
17651 *[\\/]* ) as_myself=$0 ;;
17652 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17653 for as_dir in $PATH
17656 test -z "$as_dir" && as_dir=.
17657 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17663 # We did not find ourselves, most probably we were run as `sh COMMAND'
17664 # in which case we are not to be found in the path.
17665 if test "x$as_myself" = x; then
17668 if test ! -f "$as_myself"; then
17669 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17673 # Unset variables that we do not need and which cause bugs (e.g. in
17674 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17675 # suppresses any "Segmentation fault" message there. '((' could
17676 # trigger a bug in pdksh 5.2.14.
17677 for as_var in BASH_ENV ENV MAIL MAILPATH
17678 do eval test x\${$as_var+set} = xset \
17679 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17692 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17695 # as_fn_error ERROR [LINENO LOG_FD]
17696 # ---------------------------------
17697 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17698 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17699 # script with status $?, using 1 if that was 0.
17702 as_status=$?; test $as_status -eq 0 && as_status=1
17704 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17705 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17707 $as_echo "$as_me: error: $1" >&2
17708 as_fn_exit $as_status
17712 # as_fn_set_status STATUS
17713 # -----------------------
17714 # Set $? to STATUS, without forking.
17715 as_fn_set_status ()
17718 } # as_fn_set_status
17720 # as_fn_exit STATUS
17721 # -----------------
17722 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17726 as_fn_set_status $1
17732 # Portably unset VAR.
17735 { eval $1=; unset $1;}
17737 as_unset=as_fn_unset
17738 # as_fn_append VAR VALUE
17739 # ----------------------
17740 # Append the text in VALUE to the end of the definition contained in VAR. Take
17741 # advantage of any shell optimizations that allow amortized linear growth over
17742 # repeated appends, instead of the typical quadratic growth present in naive
17744 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17745 eval 'as_fn_append ()
17756 # as_fn_arith ARG...
17757 # ------------------
17758 # Perform arithmetic evaluation on the ARGs, and store the result in the
17759 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17760 # must be portable across $(()) and expr.
17761 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17762 eval 'as_fn_arith ()
17769 as_val=`expr "$@" || test $? -eq 1`
17774 if expr a : '\(a\)' >/dev/null 2>&1 &&
17775 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17781 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17782 as_basename=basename
17787 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17793 as_me=`$as_basename -- "$0" ||
17794 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17795 X"$0" : 'X\(//\)$' \| \
17796 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17798 sed '/^.*\/\([^/][^/]*\)\/*$/{
17812 # Avoid depending upon Character Ranges.
17813 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17814 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17815 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17816 as_cr_digits='0123456789'
17817 as_cr_alnum=$as_cr_Letters$as_cr_digits
17819 ECHO_C= ECHO_N= ECHO_T=
17820 case `echo -n x` in #(((((
17822 case `echo 'xy\c'` in
17823 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17825 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17832 rm -f conf$$ conf$$.exe conf$$.file
17833 if test -d conf$$.dir; then
17834 rm -f conf$$.dir/conf$$.file
17837 mkdir conf$$.dir 2>/dev/null
17839 if (echo >conf$$.file) 2>/dev/null; then
17840 if ln -s conf$$.file conf$$ 2>/dev/null; then
17842 # ... but there are two gotchas:
17843 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17844 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17845 # In both cases, we have to default to `cp -p'.
17846 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17848 elif ln conf$$.file conf$$ 2>/dev/null; then
17856 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17857 rmdir conf$$.dir 2>/dev/null
17862 # Create "$as_dir" as a directory, including parents if necessary.
17867 -*) as_dir=./$as_dir;;
17869 test -d "$as_dir" || eval $as_mkdir_p || {
17873 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17874 *) as_qdir=$as_dir;;
17876 as_dirs="'$as_qdir' $as_dirs"
17877 as_dir=`$as_dirname -- "$as_dir" ||
17878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17879 X"$as_dir" : 'X\(//\)[^/]' \| \
17880 X"$as_dir" : 'X\(//\)$' \| \
17881 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17882 $as_echo X"$as_dir" |
17883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17887 /^X\(\/\/\)[^/].*/{
17900 test -d "$as_dir" && break
17902 test -z "$as_dirs" || eval "mkdir $as_dirs"
17903 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17907 if mkdir -p . 2>/dev/null; then
17908 as_mkdir_p='mkdir -p "$as_dir"'
17910 test -d ./-p && rmdir ./-p
17914 if test -x / >/dev/null 2>&1; then
17915 as_test_x='test -x'
17917 if ls -dL / >/dev/null 2>&1; then
17924 if test -d "$1"; then
17930 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17931 ???[sx]*):;;*)false;;esac;fi
17935 as_executable_p=$as_test_x
17937 # Sed expression to map a string onto a valid CPP name.
17938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17940 # Sed expression to map a string onto a valid variable name.
17941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17945 ## ----------------------------------- ##
17946 ## Main body of $CONFIG_STATUS script. ##
17947 ## ----------------------------------- ##
17949 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17952 # Save the log message, to keep $0 and so on meaningful, and to
17953 # report actual input values of CONFIG_FILES etc. instead of their
17954 # values after options handling.
17956 This file was extended by $as_me, which was
17957 generated by GNU Autoconf 2.64. Invocation command line was
17959 CONFIG_FILES = $CONFIG_FILES
17960 CONFIG_HEADERS = $CONFIG_HEADERS
17961 CONFIG_LINKS = $CONFIG_LINKS
17962 CONFIG_COMMANDS = $CONFIG_COMMANDS
17965 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17970 case $ac_config_files in *"
17971 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17974 case $ac_config_headers in *"
17975 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980 # Files that config.status was made for.
17981 config_files="$ac_config_files"
17982 config_headers="$ac_config_headers"
17983 config_links="$ac_config_links"
17984 config_commands="$ac_config_commands"
17988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17990 \`$as_me' instantiates files and other configuration actions
17991 from templates according to the current configuration. Unless the files
17992 and actions are specified as TAGs, all are instantiated by default.
17994 Usage: $0 [OPTION]... [TAG]...
17996 -h, --help print this help, then exit
17997 -V, --version print version number and configuration settings, then exit
17998 -q, --quiet, --silent
17999 do not print progress messages
18000 -d, --debug don't remove temporary files
18001 --recheck update $as_me by reconfiguring in the same conditions
18002 --file=FILE[:TEMPLATE]
18003 instantiate the configuration file FILE
18004 --header=FILE[:TEMPLATE]
18005 instantiate the configuration header FILE
18007 Configuration files:
18010 Configuration headers:
18013 Configuration links:
18016 Configuration commands:
18019 Report bugs to the package provider."
18022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18025 configured by $0, generated by GNU Autoconf 2.64,
18026 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18028 Copyright (C) 2009 Free Software Foundation, Inc.
18029 This config.status script is free software; the Free Software Foundation
18030 gives unlimited permission to copy, distribute and modify it."
18036 test -n "\$AWK" || AWK=awk
18039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18040 # The default lists apply if the user does not specify any file.
18046 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18047 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18058 # Handling of the options.
18059 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18061 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18062 $as_echo "$ac_cs_version"; exit ;;
18063 --debug | --debu | --deb | --de | --d | -d )
18065 --file | --fil | --fi | --f )
18068 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18070 as_fn_append CONFIG_FILES " '$ac_optarg'"
18071 ac_need_defaults=false;;
18072 --header | --heade | --head | --hea )
18075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18077 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18078 ac_need_defaults=false;;
18080 # Conflict between --help and --header
18081 as_fn_error "ambiguous option: \`$1'
18082 Try \`$0 --help' for more information.";;
18083 --help | --hel | -h )
18084 $as_echo "$ac_cs_usage"; exit ;;
18085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18086 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18089 # This is an error.
18090 -*) as_fn_error "unrecognized option: \`$1'
18091 Try \`$0 --help' for more information." ;;
18093 *) as_fn_append ac_config_targets " $1"
18094 ac_need_defaults=false ;;
18100 ac_configure_extra_args=
18102 if $ac_cs_silent; then
18104 ac_configure_extra_args="$ac_configure_extra_args --silent"
18108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18109 if \$ac_cs_recheck; then
18110 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18112 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18113 CONFIG_SHELL='$SHELL'
18114 export CONFIG_SHELL
18119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18123 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18124 ## Running $as_me. ##
18130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18134 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18140 # Handling of arguments.
18141 for ac_config_target in $ac_config_targets
18143 case $ac_config_target in
18144 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18145 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
18146 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18147 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
18148 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
18149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18150 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
18151 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18152 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
18154 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18159 # If the user did not use the arguments to specify the items to instantiate,
18160 # then the envvar interface is used. Set only those that are not.
18161 # We use the long form for the default assignment because of an extremely
18162 # bizarre bug on SunOS 4.1.3.
18163 if $ac_need_defaults; then
18164 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18165 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18166 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18170 # Have a temporary directory for convenience. Make it in the build tree
18171 # simply because there is no reason against having it here, and in addition,
18172 # creating and moving files from /tmp can sometimes cause problems.
18173 # Hook for its removal unless debugging.
18174 # Note that there is a small window in which the directory will not be cleaned:
18175 # after its creation but before its name has been assigned to `$tmp'.
18179 trap 'exit_status=$?
18180 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18182 trap 'as_fn_exit 1' 1 2 13 15
18184 # Create a (secure) tmp directory for tmp files.
18187 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18188 test -n "$tmp" && test -d "$tmp"
18191 tmp=./conf$$-$RANDOM
18192 (umask 077 && mkdir "$tmp")
18193 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18195 # Set up the scripts for CONFIG_FILES section.
18196 # No need to generate them if there are no CONFIG_FILES.
18197 # This happens for instance with `./config.status config.h'.
18198 if test -n "$CONFIG_FILES"; then
18200 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18201 ac_cs_awk_getline=:
18202 ac_cs_awk_pipe_init=
18203 ac_cs_awk_read_file='
18204 while ((getline aline < (F[key])) > 0)
18207 ac_cs_awk_pipe_fini=
18209 ac_cs_awk_getline=false
18210 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18211 ac_cs_awk_read_file='
18213 print "cat " F[key] " &&"
18214 '$ac_cs_awk_pipe_init
18215 # The final `:' finishes the AND list.
18216 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18218 ac_cr=`echo X | tr X '\015'`
18219 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18220 # But we know of no other shell where ac_cr would be empty at this
18221 # point, so we can use a bashism as a fallback.
18222 if test "x$ac_cr" = x; then
18223 eval ac_cr=\$\'\\r\'
18225 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18226 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18229 ac_cs_awk_cr=$ac_cr
18232 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18235 # Create commands to substitute file output variables.
18237 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18238 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18239 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18242 } >conf$$files.sh &&
18243 . ./conf$$files.sh ||
18244 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18245 rm -f conf$$files.sh
18248 echo "cat >conf$$subs.awk <<_ACEOF" &&
18249 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18251 } >conf$$subs.sh ||
18252 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18253 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18255 for ac_last_try in false false false false false :; do
18256 . ./conf$$subs.sh ||
18257 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18259 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18260 if test $ac_delim_n = $ac_delim_num; then
18262 elif $ac_last_try; then
18263 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18265 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18268 rm -f conf$$subs.sh
18270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18271 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18275 s/^/S["/; s/!.*/"]=/
18285 s/\(.\{148\}\).*/\1/
18287 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18292 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18299 s/\(.\{148\}\).*/\1/
18301 s/["\\]/\\&/g; s/^/"/; s/$/"/
18305 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18310 ' <conf$$subs.awk | sed '
18315 ' >>$CONFIG_STATUS || ac_write_fail=1
18316 rm -f conf$$subs.awk
18317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18319 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18320 for (key in S) S_is_set[key] = 1
18322 \$ac_cs_awk_pipe_init
18326 nfields = split(line, field, "@")
18328 len = length(field[1])
18329 for (i = 2; i < nfields; i++) {
18331 keylen = length(key)
18332 if (S_is_set[key]) {
18334 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18335 len += length(value) + length(field[++i])
18340 if (nfields == 3 && !substed) {
18342 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18343 \$ac_cs_awk_read_file
18349 \$ac_cs_awk_pipe_fini
18352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18353 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18354 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18357 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18358 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18361 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18362 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18363 # trailing colons and then remove the whole line if VPATH becomes empty
18364 # (actually we leave an empty line to preserve line numbers).
18365 if test "x$srcdir" = x.; then
18366 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18367 s/:*\$(srcdir):*/:/
18368 s/:*\${srcdir}:*/:/
18370 s/^\([^=]*=[ ]*\):*/\1/
18376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18377 fi # test -n "$CONFIG_FILES"
18379 # Set up the scripts for CONFIG_HEADERS section.
18380 # No need to generate them if there are no CONFIG_HEADERS.
18381 # This happens for instance with `./config.status Makefile'.
18382 if test -n "$CONFIG_HEADERS"; then
18383 cat >"$tmp/defines.awk" <<\_ACAWK ||
18387 # Transform confdefs.h into an awk script `defines.awk', embedded as
18388 # here-document in config.status, that substitutes the proper values into
18389 # config.h.in to produce config.h.
18391 # Create a delimiter string that does not exist in confdefs.h, to ease
18392 # handling of long lines.
18394 for ac_last_try in false false :; do
18395 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18396 if test -z "$ac_t"; then
18398 elif $ac_last_try; then
18399 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18405 # For the awk script, D is an array of macro values keyed by name,
18406 # likewise P contains macro parameters if any. Preserve backslash
18407 # newline sequences.
18409 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18411 s/.\{148\}/&'"$ac_delim"'/g
18414 s/^[ ]*#[ ]*define[ ][ ]*/ /
18421 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18423 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18427 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18428 D["\1"]=" \3\\\\\\n"\\/p
18430 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18435 s/.\{148\}/&'"$ac_delim"'/g
18440 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18443 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18445 ' <confdefs.h | sed '
18446 s/'"$ac_delim"'/"\\\
18447 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18450 for (key in D) D_is_set[key] = 1
18453 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18455 split(line, arg, " ")
18456 if (arg[1] == "#") {
18460 defundef = substr(arg[1], 2)
18463 split(mac1, mac2, "(") #)
18465 prefix = substr(line, 1, index(line, defundef) - 1)
18466 if (D_is_set[macro]) {
18467 # Preserve the white space surrounding the "#".
18468 print prefix "define", macro P[macro] D[macro]
18471 # Replace #undef with comments. This is necessary, for example,
18472 # in the case of _POSIX_SOURCE, which is predefined and required
18473 # on some systems where configure will not decide to define it.
18474 if (defundef == "undef") {
18475 print "/*", prefix defundef, macro, "*/"
18483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18484 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18485 fi # test -n "$CONFIG_HEADERS"
18488 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18493 :[FHLC]) ac_mode=$ac_tag; continue;;
18495 case $ac_mode$ac_tag in
18497 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18498 :[FH]-) ac_tag=-:-;;
18499 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18516 -) ac_f="$tmp/stdin";;
18517 *) # Look for the file first in the build tree, then in the source tree
18518 # (if the path is not absolute). The absolute path cannot be DOS-style,
18519 # because $ac_f cannot contain `:'.
18523 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18525 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18527 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18528 as_fn_append ac_file_inputs " '$ac_f'"
18531 # Let's still pretend it is `configure' which instantiates (i.e., don't
18532 # use $as_me), people would be surprised to read:
18533 # /* config.h. Generated by config.status. */
18534 configure_input='Generated from '`
18535 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18537 if test x"$ac_file" != x-; then
18538 configure_input="$ac_file. $configure_input"
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18540 $as_echo "$as_me: creating $ac_file" >&6;}
18542 # Neutralize special characters interpreted by sed in replacement strings.
18543 case $configure_input in #(
18544 *\&* | *\|* | *\\* )
18545 ac_sed_conf_input=`$as_echo "$configure_input" |
18546 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18547 *) ac_sed_conf_input=$configure_input;;
18551 *:-:* | *:-) cat >"$tmp/stdin" \
18552 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18557 ac_dir=`$as_dirname -- "$ac_file" ||
18558 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18559 X"$ac_file" : 'X\(//\)[^/]' \| \
18560 X"$ac_file" : 'X\(//\)$' \| \
18561 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18562 $as_echo X"$ac_file" |
18563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18567 /^X\(\/\/\)[^/].*/{
18580 as_dir="$ac_dir"; as_fn_mkdir_p
18584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18586 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18587 # A ".." for each directory in $ac_dir_suffix.
18588 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18589 case $ac_top_builddir_sub in
18590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18594 ac_abs_top_builddir=$ac_pwd
18595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18596 # for backward compatibility:
18597 ac_top_builddir=$ac_top_build_prefix
18600 .) # We are building in place.
18602 ac_top_srcdir=$ac_top_builddir_sub
18603 ac_abs_top_srcdir=$ac_pwd ;;
18604 [\\/]* | ?:[\\/]* ) # Absolute name.
18605 ac_srcdir=$srcdir$ac_dir_suffix;
18606 ac_top_srcdir=$srcdir
18607 ac_abs_top_srcdir=$srcdir ;;
18608 *) # Relative name.
18609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18610 ac_top_srcdir=$ac_top_build_prefix$srcdir
18611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18623 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18624 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18629 # If the template does not know about datarootdir, expand it.
18630 # FIXME: This hack should be removed a few years after 2.60.
18631 ac_datarootdir_hack=; ac_datarootdir_seen=
18642 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18643 *datarootdir*) ac_datarootdir_seen=yes;;
18644 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18646 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18649 ac_datarootdir_hack='
18650 s&@datadir@&$datadir&g
18651 s&@docdir@&$docdir&g
18652 s&@infodir@&$infodir&g
18653 s&@localedir@&$localedir&g
18654 s&@mandir@&$mandir&g
18655 s&\\\${datarootdir}&$datarootdir&g' ;;
18659 # Neutralize VPATH when `$srcdir' = `.'.
18660 # Shell code in configure.ac might set extrasub.
18661 # FIXME: do we really want to maintain this feature?
18662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18663 ac_sed_extra="$ac_vpsub
18666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18669 s|@configure_input@|$ac_sed_conf_input|;t t
18670 s&@top_builddir@&$ac_top_builddir_sub&;t t
18671 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18672 s&@srcdir@&$ac_srcdir&;t t
18673 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18674 s&@top_srcdir@&$ac_top_srcdir&;t t
18675 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18676 s&@builddir@&$ac_builddir&;t t
18677 s&@abs_builddir@&$ac_abs_builddir&;t t
18678 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18679 s&@INSTALL@&$ac_INSTALL&;t t
18680 $ac_datarootdir_hack
18682 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18683 if $ac_cs_awk_getline; then
18684 $AWK -f "$tmp/subs.awk"
18686 $AWK -f "$tmp/subs.awk" | $SHELL
18688 || as_fn_error "could not create $ac_file" "$LINENO" 5
18690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18694 which seems to be undefined. Please make sure it is defined." >&5
18695 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18696 which seems to be undefined. Please make sure it is defined." >&2;}
18700 -) cat "$tmp/out" && rm -f "$tmp/out";;
18701 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18703 || as_fn_error "could not create $ac_file" "$LINENO" 5
18709 if test x"$ac_file" != x-; then
18711 $as_echo "/* $configure_input */" \
18712 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18713 } >"$tmp/config.h" \
18714 || as_fn_error "could not create $ac_file" "$LINENO" 5
18715 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18717 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18720 mv "$tmp/config.h" "$ac_file" \
18721 || as_fn_error "could not create $ac_file" "$LINENO" 5
18724 $as_echo "/* $configure_input */" \
18725 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18726 || as_fn_error "could not create -" "$LINENO" 5
18734 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18737 # Prefer the file from the source tree if names are identical.
18738 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18739 ac_source=$srcdir/$ac_source
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18743 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18745 if test ! -r "$ac_source"; then
18746 as_fn_error "$ac_source: file not found" "$LINENO" 5
18750 # Try a relative symlink, then a hard link, then a copy.
18752 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18753 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18755 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18756 ln "$ac_source" "$ac_file" 2>/dev/null ||
18757 cp -p "$ac_source" "$ac_file" ||
18758 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18761 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18762 $as_echo "$as_me: executing $ac_file commands" >&6;}
18767 case $ac_file$ac_mode in
18768 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
18769 "gcore":F) chmod +x gcore ;;
18771 case x$CONFIG_HEADERS in
18772 xconfig.h:config.in)
18777 case x$CONFIG_HEADERS in
18778 xconfig.h:config.in)
18783 case x$CONFIG_HEADERS in
18784 xconfig.h:config.in)
18788 "data-directory/Makefile":F)
18789 case x$CONFIG_HEADERS in
18790 xconfig.h:config.in)
18801 ac_clean_files=$ac_clean_files_save
18803 test $ac_write_fail = 0 ||
18804 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18807 # configure is writing to config.log, and then calls config.status.
18808 # config.status does its own redirection, appending to config.log.
18809 # Unfortunately, on DOS this fails, as config.log is still kept open
18810 # by configure, so config.status won't be able to write to it; its
18811 # output is simply discarded. So we exec the FD to /dev/null,
18812 # effectively closing config.log, so it can be properly (re)opened and
18813 # appended to by config.status. When coming back to configure, we
18814 # need to make the FD available again.
18815 if test "$no_create" != yes; then
18817 ac_config_status_args=
18818 test "$silent" = yes &&
18819 ac_config_status_args="$ac_config_status_args --quiet"
18821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18824 # would make configure fail if this is the last instruction.
18825 $ac_cs_success || as_fn_exit $?
18829 # CONFIG_SUBDIRS section.
18831 if test "$no_recursion" != yes; then
18833 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18834 # so they do not pile up.
18835 ac_sub_configure_args=
18837 eval "set x $ac_configure_args"
18841 if test -n "$ac_prev"; then
18846 -cache-file | --cache-file | --cache-fil | --cache-fi \
18847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18848 ac_prev=cache_file ;;
18849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18853 --config-cache | -C)
18855 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18857 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18859 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18861 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18863 --disable-option-checking)
18867 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18869 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18873 # Always prepend --prefix to ensure using the same prefix
18874 # in subdir configurations.
18875 ac_arg="--prefix=$prefix"
18877 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18879 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18882 if test "$silent" = yes; then
18883 ac_sub_configure_args="--silent $ac_sub_configure_args"
18886 # Always prepend --disable-option-checking to silence warnings, since
18887 # different subdirs can have different --enable and --with options.
18888 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18891 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18893 # Do not complain, so a configure script can configure whichever
18894 # parts of a large source tree are present.
18895 test -d "$srcdir/$ac_dir" || continue
18897 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18898 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18899 $as_echo "$ac_msg" >&6
18900 as_dir="$ac_dir"; as_fn_mkdir_p
18904 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18906 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18907 # A ".." for each directory in $ac_dir_suffix.
18908 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18909 case $ac_top_builddir_sub in
18910 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18911 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18914 ac_abs_top_builddir=$ac_pwd
18915 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18916 # for backward compatibility:
18917 ac_top_builddir=$ac_top_build_prefix
18920 .) # We are building in place.
18922 ac_top_srcdir=$ac_top_builddir_sub
18923 ac_abs_top_srcdir=$ac_pwd ;;
18924 [\\/]* | ?:[\\/]* ) # Absolute name.
18925 ac_srcdir=$srcdir$ac_dir_suffix;
18926 ac_top_srcdir=$srcdir
18927 ac_abs_top_srcdir=$srcdir ;;
18928 *) # Relative name.
18929 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18930 ac_top_srcdir=$ac_top_build_prefix$srcdir
18931 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18933 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18938 # Check for guested configure; otherwise get Cygnus style configure.
18939 if test -f "$ac_srcdir/configure.gnu"; then
18940 ac_sub_configure=$ac_srcdir/configure.gnu
18941 elif test -f "$ac_srcdir/configure"; then
18942 ac_sub_configure=$ac_srcdir/configure
18943 elif test -f "$ac_srcdir/configure.in"; then
18944 # This should be Cygnus configure.
18945 ac_sub_configure=$ac_aux_dir/configure
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18948 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18952 # The recursion is here.
18953 if test -n "$ac_sub_configure"; then
18954 # Make the cache file name correct relative to the subdirectory.
18955 case $cache_file in
18956 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18957 *) # Relative name.
18958 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18961 { $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
18962 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18963 # The eval makes quoting arguments work.
18964 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18965 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18966 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18972 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18974 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}