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
670 READLINE_TEXI_INCFLAG
689 HAVE_NATIVE_GCORE_TARGET
718 INSTALL_STRIP_PROGRAM
744 MAINTAINER_MODE_FALSE
773 program_transform_name
784 ac_subst_files='host_makefile_frag'
786 enable_option_checking
787 enable_maintainer_mode
790 with_separate_debug_dir
792 with_relocated_sources
794 with_auto_load_safe_path
821 enable_build_warnings
822 enable_gdb_build_warnings
832 with_libbabeltrace_prefix
834 ac_precious_vars='build_alias
848 ac_subdirs_all='testsuite
853 # Initialize some variables set by options.
855 ac_init_version=false
856 ac_unrecognized_opts=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
867 program_transform_name=s,x,x,
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE}'
892 infodir='${datarootdir}/info'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
913 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 # Accept the important Cygnus configure options, so we can diagnose typos.
919 case $ac_dashdash$ac_option in
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
941 cache_file=config.cache ;;
943 -datadir | --datadir | --datadi | --datad)
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
969 eval enable_$ac_useropt=no ;;
971 -docdir | --docdir | --docdi | --doc | --do)
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
995 eval enable_$ac_useropt=\$ac_optarg ;;
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026 htmldir=$ac_optarg ;;
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1040 -libdir | --libdir | --libdi | --libd)
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1131 -psdir | --psdir | --psdi | --psd | --ps)
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144 sbindir=$ac_optarg ;;
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155 sharedstatedir=$ac_optarg ;;
1157 -site | --site | --sit)
1159 -site=* | --site=* | --sit=*)
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1199 eval with_$ac_useropt=\$ac_optarg ;;
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error "invalid package name: $ac_useropt"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1215 eval with_$ac_useropt=no ;;
1218 # Obsolete; use --with-x.
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1235 -*) as_fn_error "unrecognized option: \`$ac_option'
1236 Try \`$0 --help' for more information."
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error "missing argument to $ac_option"
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1268 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1286 # Be sure to have absolute directory names.
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1299 target=$target_alias
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315 test "$silent" = yes && exec 6>/dev/null
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error "pwd does not report name of working directory"
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1392 \`configure' configures this package to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455 --x-includes=DIR X include files are in DIR
1456 --x-libraries=DIR X library files are in DIR
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 --target=TARGET configure for building compilers for TARGET [HOST]
1465 if test -n "$ac_init_help"; then
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-maintainer-mode enable make rules and dependencies not useful
1474 (and sometimes confusing) to the casual installer
1475 --enable-plugins Enable support for plugins (defaults no)
1476 --disable-largefile omit support for large files
1477 --enable-targets=TARGETS
1478 alternative target configurations
1479 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1480 --disable-gdbcli disable command-line interface (CLI)
1481 --disable-gdbmi disable machine-interface (MI)
1482 --enable-tui enable full-screen terminal user interface (TUI)
1483 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1484 --enable-profiling enable profiling of GDB
1485 --disable-rpath do not hardcode runtime library paths
1486 --enable-libmcheck Try linking with -lmcheck if available
1487 --enable-werror treat compile warnings as errors
1488 --enable-build-warnings enable build-time compiler warnings if gcc is used
1489 --enable-gdb-build-warnings
1490 enable GDB specific build-time compiler warnings if
1492 --enable-sim link gdb with simulator
1493 --enable-multi-ice build the multi-ice-gdb-server
1494 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-separate-debug-dir=PATH
1501 look for global separate debug info in this path
1503 --with-gdb-datadir=PATH look for global separate data files in this path
1505 --with-relocated-sources=PATH
1506 automatically relocate this path for source files
1507 --with-auto-load-dir=PATH
1508 directories from which to load auto-loaded scripts
1509 [$debugdir:$datadir/auto-load]
1510 --with-auto-load-safe-path=PATH
1511 directories safe to hold auto-loaded files
1512 [--with-auto-load-dir]
1513 --without-auto-load-safe-path
1514 do not restrict auto-loaded files locations
1515 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1516 --with-curses use the curses library instead of the termcap
1518 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1519 --with-bugurl=URL Direct users to URL to report a bug
1520 --with-zlib include zlib support (auto/yes/no) default=auto
1521 --with-libiconv-prefix=DIR
1522 search for libiconv in DIR/include and DIR/lib
1523 --with-iconv-bin=PATH specify where to find the iconv program
1524 --with-system-readline use installed readline library
1525 --with-jit-reader-dir=PATH
1526 directory to load the JIT readers from
1527 --with-expat include expat support (auto/yes/no)
1528 --with-gnu-ld assume the C compiler uses GNU ld default=no
1529 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1530 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1531 --with-python[=PYTHON] include python support
1532 (auto/yes/no/<python-program>)
1533 --without-included-regex
1534 don't use included regex; this is the default on
1535 systems with version 2 of the GNU C library (use
1536 with caution on other system)
1537 --with-sysroot[=DIR] search for usr/lib et al within DIR
1538 --with-system-gdbinit=PATH
1539 automatically load a system-wide gdbinit file
1540 --with-lzma support lzma compression (auto/yes/no)
1541 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1542 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1543 --with-tcl directory containing tcl configuration (tclConfig.sh)
1544 --with-tk directory containing tk configuration (tkConfig.sh)
1545 --with-x use the X Window System
1546 --with-babeltrace include babeltrace support (auto/yes/no)
1547 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1548 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1559 MAKEINFO Parent configure detects if it is of sufficient version.
1561 Parameters for MAKEINFO.
1562 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1563 the first program found out of: `bison -y', `byacc', `yacc'.
1564 YFLAGS The list of arguments that will be passed by default to $YACC.
1565 This script will default YFLAGS to the empty string to avoid a
1566 default value of `-d' given by some make applications.
1567 XMKMF Path to xmkmf, Makefile generator for X Window System
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1572 Report bugs to the package provider.
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1602 .) # We are building in place.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for guested configure.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1626 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1636 generated by GNU Autoconf 2.64
1638 Copyright (C) 2009 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1685 } # ac_fn_c_try_compile
1687 # ac_fn_c_try_cpp LINENO
1688 # ----------------------
1689 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } >/dev/null && {
1709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1727 # the include files in INCLUDES and setting the cache variable VAR
1729 ac_fn_c_check_header_mongrel ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736 $as_echo_n "(cached) " >&6
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1742 # Is the header compilable?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1744 $as_echo_n "checking $2 usability... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_header_compiler=yes
1753 ac_header_compiler=no
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1757 $as_echo "$ac_header_compiler" >&6; }
1759 # Is the header present?
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1761 $as_echo_n "checking $2 presence... " >&6; }
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1766 if ac_fn_c_try_cpp "$LINENO"; then :
1767 ac_header_preproc=yes
1769 ac_header_preproc=no
1771 rm -f conftest.err conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1773 $as_echo "$ac_header_preproc" >&6; }
1775 # So? What about this header?
1776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1779 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1785 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1787 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1789 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1791 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1799 $as_echo_n "(cached) " >&6
1801 eval "$3=\$ac_header_compiler"
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 } # ac_fn_c_check_header_mongrel
1811 # ac_fn_c_try_run LINENO
1812 # ----------------------
1813 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1814 # that executables *can* be run.
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_link"
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>&5
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1829 { { case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_try") 2>&5
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; }; }; then :
1841 $as_echo "$as_me: program exited with status $ac_status" >&5
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 ac_retval=$ac_status
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1854 # -------------------------------------------------------
1855 # Tests whether HEADER exists and can be compiled using the include files in
1856 # INCLUDES, setting the cache variable VAR accordingly.
1857 ac_fn_c_check_header_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1863 $as_echo_n "(cached) " >&6
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 } # ac_fn_c_check_header_compile
1884 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1885 # --------------------------------------------
1886 # Tries to find the compile-time value of EXPR in a program that includes
1887 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1889 ac_fn_c_compute_int ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if test "$cross_compiling" = yes; then
1893 # Depending upon the size, compute the lo and hi bounds.
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1900 static int test_array [1 - 2 * !(($2) >= 0)];
1907 if ac_fn_c_try_compile "$LINENO"; then :
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1916 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 ac_hi=$ac_mid; break
1926 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1927 if test $ac_lo -le $ac_mid; then
1931 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1942 static int test_array [1 - 2 * !(($2) < 0)];
1949 if ac_fn_c_try_compile "$LINENO"; then :
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1958 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 ac_lo=$ac_mid; break
1968 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1969 if test $ac_mid -le $ac_hi; then
1973 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 # Binary search between lo and hi bounds.
1984 while test "x$ac_lo" != "x$ac_hi"; do
1985 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1992 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1999 if ac_fn_c_try_compile "$LINENO"; then :
2002 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2014 static long int longval () { return $2; }
2015 static unsigned long int ulongval () { return $2; }
2022 FILE *f = fopen ("conftest.val", "w");
2027 long int i = longval ();
2030 fprintf (f, "%ld", i);
2034 unsigned long int i = ulongval ();
2037 fprintf (f, "%lu", i);
2039 /* Do not output a trailing newline, as this causes \r\n confusion
2040 on some platforms. */
2041 return ferror (f) || fclose (f) != 0;
2047 if ac_fn_c_try_run "$LINENO"; then :
2048 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2053 conftest.$ac_objext conftest.beam conftest.$ac_ext
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060 } # ac_fn_c_compute_int
2062 # ac_fn_c_try_link LINENO
2063 # -----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded.
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 rm -f conftest.$ac_objext conftest$ac_exeext
2069 if { { ac_try="$ac_link"
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>conftest.err
2078 if test -s conftest.err; then
2079 grep -v '^ *+' conftest.err >conftest.er1
2080 cat conftest.er1 >&5
2081 mv -f conftest.er1 conftest.err
2083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084 test $ac_status = 0; } && {
2085 test -z "$ac_c_werror_flag" ||
2086 test ! -s conftest.err
2087 } && test -s conftest$ac_exeext && {
2088 test "$cross_compiling" = yes ||
2089 $as_test_x conftest$ac_exeext
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2098 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2099 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2100 # interfere with the next link command; also delete a directory that is
2101 # left behind by Apple's compiler. We do this before executing the actions.
2102 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106 } # ac_fn_c_try_link
2108 # ac_fn_c_check_func LINENO FUNC VAR
2109 # ----------------------------------
2110 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2111 ac_fn_c_check_func ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115 $as_echo_n "checking for $2... " >&6; }
2116 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2117 $as_echo_n "(cached) " >&6
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2121 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2123 #define $2 innocuous_$2
2125 /* System header to define __stub macros and hopefully few prototypes,
2126 which can conflict with char $2 (); below.
2127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2128 <limits.h> exists even on freestanding compilers. */
2131 # include <limits.h>
2133 # include <assert.h>
2138 /* Override any GCC internal prototype to avoid an error.
2139 Use char because int might match the return type of a GCC
2140 builtin and then its argument prototype would still apply. */
2145 /* The GNU C library defines this for functions which it implements
2146 to always fail with ENOSYS. Some functions are actually named
2147 something starting with __ and the normal name is an alias. */
2148 #if defined __stub_$2 || defined __stub___$2
2160 if ac_fn_c_try_link "$LINENO"; then :
2165 rm -f core conftest.err conftest.$ac_objext \
2166 conftest$ac_exeext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 } # ac_fn_c_check_func
2175 # ac_fn_c_check_decl LINENO SYMBOL VAR
2176 # ------------------------------------
2177 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2178 ac_fn_c_check_decl ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 as_decl_name=`echo $2|sed 's/ *(.*//'`
2182 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2184 $as_echo_n "checking whether $as_decl_name is declared... " >&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. */
2194 #ifndef $as_decl_name
2196 (void) $as_decl_use;
2198 (void) $as_decl_name;
2206 if ac_fn_c_try_compile "$LINENO"; then :
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2218 } # ac_fn_c_check_decl
2220 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2221 # ----------------------------------------------------
2222 # Tries to find if the field MEMBER exists in type AGGR, after including
2223 # INCLUDES, setting cache variable VAR accordingly.
2224 ac_fn_c_check_member ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2228 $as_echo_n "checking for $2.$3... " >&6; }
2229 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2230 $as_echo_n "(cached) " >&6
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2245 if ac_fn_c_try_compile "$LINENO"; then :
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2255 if (sizeof ac_aggr.$3)
2261 if ac_fn_c_try_compile "$LINENO"; then :
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275 } # ac_fn_c_check_member
2277 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2278 # -------------------------------------------
2279 # Tests whether TYPE exists after having included INCLUDES, setting cache
2280 # variable VAR accordingly.
2281 ac_fn_c_check_type ()
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2285 $as_echo_n "checking for $2... " >&6; }
2286 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2287 $as_echo_n "(cached) " >&6
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2302 if ac_fn_c_try_compile "$LINENO"; then :
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2315 if ac_fn_c_try_compile "$LINENO"; then :
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2329 } # ac_fn_c_check_type
2330 cat >config.log <<_ACEOF
2331 This file contains any messages produced by compilers while
2332 running configure, to aid debugging if configure makes a mistake.
2334 It was created by $as_me, which was
2335 generated by GNU Autoconf 2.64. Invocation command line was
2347 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2348 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2349 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2350 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2351 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2353 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2354 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2356 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2357 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2358 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2359 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2360 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2361 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2362 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir=.
2371 $as_echo "PATH: $as_dir"
2387 # Keep a trace of the command line.
2388 # Strip out --no-create and --no-recursion so they do not pile up.
2389 # Strip out --silent because we don't want to record it for future runs.
2390 # Also quote any args containing shell meta-characters.
2391 # Make two passes to allow for proper duplicate-argument suppression.
2395 ac_must_keep_next=false
2401 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2403 | -silent | --silent | --silen | --sile | --sil)
2406 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2411 as_fn_append ac_configure_args1 " '$ac_arg'"
2412 if test $ac_must_keep_next = true; then
2413 ac_must_keep_next=false # Got value, back to normal.
2416 *=* | --config-cache | -C | -disable-* | --disable-* \
2417 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2418 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2419 | -with-* | --with-* | -without-* | --without-* | --x)
2420 case "$ac_configure_args0 " in
2421 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2424 -* ) ac_must_keep_next=true ;;
2427 as_fn_append ac_configure_args " '$ac_arg'"
2432 { ac_configure_args0=; unset ac_configure_args0;}
2433 { ac_configure_args1=; unset ac_configure_args1;}
2435 # When interrupted or exit'd, cleanup temporary files, and complete
2436 # config.log. We remove comments because anyway the quotes in there
2437 # would cause problems or look ugly.
2438 # WARNING: Use '\'' to represent an apostrophe within the trap.
2439 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2440 trap 'exit_status=$?
2441 # Save into config.log some information that might help in debugging.
2446 ## ---------------- ##
2447 ## Cache variables. ##
2448 ## ---------------- ##
2451 # The following way of writing the cache mishandles newlines in values,
2453 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2454 eval ac_val=\$$ac_var
2458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2462 _ | IFS | as_nl) ;; #(
2463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2464 *) { eval $ac_var=; unset $ac_var;} ;;
2469 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2470 *${as_nl}ac_space=\ *)
2472 "s/'\''/'\''\\\\'\'''\''/g;
2473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2484 ## ----------------- ##
2485 ## Output variables. ##
2486 ## ----------------- ##
2489 for ac_var in $ac_subst_vars
2491 eval ac_val=\$$ac_var
2493 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495 $as_echo "$ac_var='\''$ac_val'\''"
2499 if test -n "$ac_subst_files"; then
2501 ## ------------------- ##
2502 ## File substitutions. ##
2503 ## ------------------- ##
2506 for ac_var in $ac_subst_files
2508 eval ac_val=\$$ac_var
2510 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2512 $as_echo "$ac_var='\''$ac_val'\''"
2517 if test -s confdefs.h; then
2527 test "$ac_signal" != 0 &&
2528 $as_echo "$as_me: caught signal $ac_signal"
2529 $as_echo "$as_me: exit $exit_status"
2531 rm -f core *.core core.conftest.* &&
2532 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2535 for ac_signal in 1 2 13 15; do
2536 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2541 rm -f -r conftest* confdefs.h
2543 $as_echo "/* confdefs.h */" > confdefs.h
2545 # Predefined preprocessor variables.
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_NAME "$PACKAGE_NAME"
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_STRING "$PACKAGE_STRING"
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_URL "$PACKAGE_URL"
2572 # Let the site file select an alternate cache file if it wants to.
2573 # Prefer an explicitly selected file to automatically selected ones.
2576 if test -n "$CONFIG_SITE"; then
2577 ac_site_file1=$CONFIG_SITE
2578 elif test "x$prefix" != xNONE; then
2579 ac_site_file1=$prefix/share/config.site
2580 ac_site_file2=$prefix/etc/config.site
2582 ac_site_file1=$ac_default_prefix/share/config.site
2583 ac_site_file2=$ac_default_prefix/etc/config.site
2585 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2587 test "x$ac_site_file" = xNONE && continue
2588 if test -r "$ac_site_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2590 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2591 sed 's/^/| /' "$ac_site_file" >&5
2596 if test -r "$cache_file"; then
2597 # Some versions of bash will fail to source /dev/null (special
2598 # files actually), so we avoid doing that.
2599 if test -f "$cache_file"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2601 $as_echo "$as_me: loading cache $cache_file" >&6;}
2603 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2604 *) . "./$cache_file";;
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2609 $as_echo "$as_me: creating cache $cache_file" >&6;}
2613 # Check that the precious variables saved in the cache have kept the same
2615 ac_cache_corrupted=false
2616 for ac_var in $ac_precious_vars; do
2617 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2618 eval ac_new_set=\$ac_env_${ac_var}_set
2619 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2620 eval ac_new_val=\$ac_env_${ac_var}_value
2621 case $ac_old_set,$ac_new_set in
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2624 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2625 ac_cache_corrupted=: ;;
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2628 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2629 ac_cache_corrupted=: ;;
2632 if test "x$ac_old_val" != "x$ac_new_val"; then
2633 # differences in whitespace do not lead to failure.
2634 ac_old_val_w=`echo x $ac_old_val`
2635 ac_new_val_w=`echo x $ac_new_val`
2636 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2638 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2639 ac_cache_corrupted=:
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2642 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2643 eval $ac_var=\$ac_old_val
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2646 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2648 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2651 # Pass precious variables to config.status.
2652 if test "$ac_new_set" = set; then
2654 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2655 *) ac_arg=$ac_var=$ac_new_val ;;
2657 case " $ac_configure_args " in
2658 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2659 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2663 if $ac_cache_corrupted; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2667 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2668 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2670 ## -------------------- ##
2671 ## Main body of script. ##
2672 ## -------------------- ##
2675 ac_cpp='$CPP $CPPFLAGS'
2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684 ac_config_headers="$ac_config_headers config.h:config.in"
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2688 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2689 # Check whether --enable-maintainer-mode was given.
2690 if test "${enable_maintainer_mode+set}" = set; then :
2691 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2693 USE_MAINTAINER_MODE=no
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2697 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2698 if test $USE_MAINTAINER_MODE = yes; then
2699 MAINTAINER_MODE_TRUE=
2700 MAINTAINER_MODE_FALSE='#'
2702 MAINTAINER_MODE_TRUE='#'
2703 MAINTAINER_MODE_FALSE=
2706 MAINT=$MAINTAINER_MODE_TRUE
2710 # Set the 'development' global.
2711 . $srcdir/development.sh
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if test "${ac_cv_prog_CC+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 if test -n "$CC"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2749 $as_echo "$CC" >&6; }
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2757 if test -z "$ac_cv_prog_CC"; then
2759 # Extract the first word of "gcc", so it can be a program name with args.
2760 set dummy gcc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2766 if test -n "$ac_ct_CC"; then
2767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_ac_ct_CC="gcc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2789 $as_echo "$ac_ct_CC" >&6; }
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2795 if test "x$ac_ct_CC" = x; then
2798 case $cross_compiling:$ac_tool_warned in
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2802 ac_tool_warned=yes ;;
2810 if test -z "$CC"; then
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}cc; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if test "${ac_cv_prog_CC+set}" = set; then :
2817 $as_echo_n "(cached) " >&6
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_CC="${ac_tool_prefix}cc"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 if test -n "$CC"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2842 $as_echo "$CC" >&6; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2851 if test -z "$CC"; then
2852 # Extract the first word of "cc", so it can be a program name with args.
2853 set dummy cc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then :
2857 $as_echo_n "(cached) " >&6
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2871 ac_prog_rejected=yes
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 if test $ac_prog_rejected = yes; then
2883 # We found a bogon in the path, so make sure we never use it.
2884 set dummy $ac_cv_prog_CC
2886 if test $# != 0; then
2887 # We chose a different compiler from the bogus one.
2888 # However, it has the same basename, so the bogon will be chosen
2889 # first if we set CC to just the basename; use the full file name.
2891 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 for ac_prog in cl.exe
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if test "${ac_cv_prog_CC+set}" = set; then :
2916 $as_echo_n "(cached) " >&6
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2948 test -n "$CC" && break
2951 if test -z "$CC"; then
2953 for ac_prog in cl.exe
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2962 if test -n "$ac_ct_CC"; then
2963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_ac_ct_CC="$ac_prog"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2983 if test -n "$ac_ct_CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2985 $as_echo "$ac_ct_CC" >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2992 test -n "$ac_ct_CC" && break
2995 if test "x$ac_ct_CC" = x; then
2998 case $cross_compiling:$ac_tool_warned in
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3011 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013 as_fn_error "no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." "$LINENO" 5; }
3016 # Provide some information about the compiler.
3017 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3020 for ac_option in --version -v -V -qversion; do
3021 { { ac_try="$ac_compiler $ac_option >&5"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3030 if test -s conftest.err; then
3032 ... rest of stderr output deleted ...
3033 10q' conftest.err >conftest.er1
3034 cat conftest.er1 >&5
3035 rm -f conftest.er1 conftest.err
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3052 ac_clean_files_save=$ac_clean_files
3053 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3054 # Try to create an executable without -o first, disregard a.out.
3055 # It will help us diagnose broken compilers, and finding out an intuition
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3058 $as_echo_n "checking for C compiler default output file name... " >&6; }
3059 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3061 # The possible output files:
3062 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3065 for ac_file in $ac_files
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3069 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3074 if { { ac_try="$ac_link_default"
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_link_default") 2>&5
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }; then :
3085 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3086 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3087 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3088 # so that the user can short-circuit this test for compilers unknown to
3090 for ac_file in $ac_files ''
3092 test -f "$ac_file" || continue
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3097 # We found the default executable, but exeext='' is most
3101 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3103 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3105 # We set ac_cv_exeext here because the later test for it is not
3106 # safe: cross compilers may not add the suffix if given an `-o'
3107 # argument, so we may need to know it at that point already.
3108 # Even if this section looks crufty: it has the advantage of
3115 test "$ac_cv_exeext" = no && ac_cv_exeext=
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3121 $as_echo "$ac_file" >&6; }
3122 if test -z "$ac_file"; then :
3123 $as_echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 { as_fn_set_status 77
3129 as_fn_error "C compiler cannot create executables
3130 See \`config.log' for more details." "$LINENO" 5; }; }
3132 ac_exeext=$ac_cv_exeext
3134 # Check that the compiler produces executables we can run. If not, either
3135 # the compiler is broken, or we cross compile.
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3137 $as_echo_n "checking whether the C compiler works... " >&6; }
3138 # If not cross compiling, check that we can run a simple program.
3139 if test "$cross_compiling" != yes; then
3140 if { ac_try='./$ac_file'
3141 { { case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_try") 2>&5
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }; }; then
3153 if test "$cross_compiling" = maybe; then
3156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 as_fn_error "cannot run C compiled programs.
3159 If you meant to cross compile, use \`--host'.
3160 See \`config.log' for more details." "$LINENO" 5; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165 $as_echo "yes" >&6; }
3167 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3168 ac_clean_files=$ac_clean_files_save
3169 # Check that the compiler produces executables we can run. If not, either
3170 # the compiler is broken, or we cross compile.
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3172 $as_echo_n "checking whether we are cross compiling... " >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3174 $as_echo "$cross_compiling" >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3177 $as_echo_n "checking for suffix of executables... " >&6; }
3178 if { { ac_try="$ac_link"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_link") 2>&5
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; then :
3189 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3190 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3191 # work properly (i.e., refer to `conftest.exe'), while it won't with
3193 for ac_file in conftest.exe conftest conftest.*; do
3194 test -f "$ac_file" || continue
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error "cannot compute suffix of executables: cannot compile and link
3206 See \`config.log' for more details." "$LINENO" 5; }
3208 rm -f conftest$ac_cv_exeext
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3210 $as_echo "$ac_cv_exeext" >&6; }
3212 rm -f conftest.$ac_ext
3213 EXEEXT=$ac_cv_exeext
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3216 $as_echo_n "checking for suffix of object files... " >&6; }
3217 if test "${ac_cv_objext+set}" = set; then :
3218 $as_echo_n "(cached) " >&6
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3231 rm -f conftest.o conftest.obj
3232 if { { ac_try="$ac_compile"
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_compile") 2>&5
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }; then :
3243 for ac_file in conftest.o conftest.obj conftest.*; do
3244 test -f "$ac_file" || continue;
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3247 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error "cannot compute suffix of object files: cannot compile
3258 See \`config.log' for more details." "$LINENO" 5; }
3260 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3263 $as_echo "$ac_cv_objext" >&6; }
3264 OBJEXT=$ac_cv_objext
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3267 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3268 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3285 if ac_fn_c_try_compile "$LINENO"; then :
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3295 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3296 if test $ac_compiler_gnu = yes; then
3301 ac_test_CFLAGS=${CFLAGS+set}
3302 ac_save_CFLAGS=$CFLAGS
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3304 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3305 if test "${ac_cv_prog_cc_g+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3308 ac_save_c_werror_flag=$ac_c_werror_flag
3309 ac_c_werror_flag=yes
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3323 if ac_fn_c_try_compile "$LINENO"; then :
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3338 if ac_fn_c_try_compile "$LINENO"; then :
3341 ac_c_werror_flag=$ac_save_c_werror_flag
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3354 if ac_fn_c_try_compile "$LINENO"; then :
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_c_werror_flag=$ac_save_c_werror_flag
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3365 $as_echo "$ac_cv_prog_cc_g" >&6; }
3366 if test "$ac_test_CFLAGS" = set; then
3367 CFLAGS=$ac_save_CFLAGS
3368 elif test $ac_cv_prog_cc_g = yes; then
3369 if test "$GCC" = yes; then
3375 if test "$GCC" = yes; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3382 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3383 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3386 ac_cv_prog_cc_c89=no
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3392 #include <sys/types.h>
3393 #include <sys/stat.h>
3394 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3395 struct buf { int x; };
3396 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3397 static char *e (p, i)
3403 static char *f (char * (*g) (char **, int), char **p, ...)
3408 s = g (p, va_arg (v,int));
3413 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3414 function prototypes and stuff, but not '\xHH' hex character constants.
3415 These don't provoke an error unfortunately, instead are silently treated
3416 as 'x'. The following induces an error, until -std is added to get
3417 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3418 array size at least. It's necessary to write '\x00'==0 to get something
3419 that's true only with -std. */
3420 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3422 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3423 inside strings and character constants. */
3425 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3427 int test (int i, double x);
3428 struct s1 {int (*f) (int a);};
3429 struct s2 {int (*f) (double a);};
3430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3436 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3441 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3442 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3444 CC="$ac_save_CC $ac_arg"
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_cv_prog_cc_c89=$ac_arg
3448 rm -f core conftest.err conftest.$ac_objext
3449 test "x$ac_cv_prog_cc_c89" != "xno" && break
3451 rm -f conftest.$ac_ext
3456 case "x$ac_cv_prog_cc_c89" in
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3459 $as_echo "none needed" >&6; } ;;
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3462 $as_echo "unsupported" >&6; } ;;
3464 CC="$CC $ac_cv_prog_cc_c89"
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3466 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3468 if test "x$ac_cv_prog_cc_c89" != xno; then :
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3485 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3486 # On Suns, sometimes $CPP names a directory.
3487 if test -n "$CPP" && test -d "$CPP"; then
3490 if test -z "$CPP"; then
3491 if test "${ac_cv_prog_CPP+set}" = set; then :
3492 $as_echo_n "(cached) " >&6
3494 # Double quotes because CPP needs to be expanded
3495 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3498 for ac_c_preproc_warn_flag in '' yes
3500 # Use a header file that comes with gcc, so configuring glibc
3501 # with a fresh cross-compiler works.
3502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3503 # <limits.h> exists even on freestanding compilers.
3504 # On the NeXT, cc -E runs the code through the compiler's parser,
3505 # not just through cpp. "Syntax error" is here to catch this case.
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3509 # include <limits.h>
3511 # include <assert.h>
3515 if ac_fn_c_try_cpp "$LINENO"; then :
3518 # Broken: fails on valid input.
3521 rm -f conftest.err conftest.$ac_ext
3523 # OK, works on sane cases. Now check whether nonexistent headers
3524 # can be detected and how.
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527 #include <ac_nonexistent.h>
3529 if ac_fn_c_try_cpp "$LINENO"; then :
3530 # Broken: success on invalid input.
3533 # Passes both tests.
3537 rm -f conftest.err conftest.$ac_ext
3540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3541 rm -f conftest.err conftest.$ac_ext
3542 if $ac_preproc_ok; then :
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3555 $as_echo "$CPP" >&6; }
3557 for ac_c_preproc_warn_flag in '' yes
3559 # Use a header file that comes with gcc, so configuring glibc
3560 # with a fresh cross-compiler works.
3561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3562 # <limits.h> exists even on freestanding compilers.
3563 # On the NeXT, cc -E runs the code through the compiler's parser,
3564 # not just through cpp. "Syntax error" is here to catch this case.
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3568 # include <limits.h>
3570 # include <assert.h>
3574 if ac_fn_c_try_cpp "$LINENO"; then :
3577 # Broken: fails on valid input.
3580 rm -f conftest.err conftest.$ac_ext
3582 # OK, works on sane cases. Now check whether nonexistent headers
3583 # can be detected and how.
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586 #include <ac_nonexistent.h>
3588 if ac_fn_c_try_cpp "$LINENO"; then :
3589 # Broken: success on invalid input.
3592 # Passes both tests.
3596 rm -f conftest.err conftest.$ac_ext
3599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3600 rm -f conftest.err conftest.$ac_ext
3601 if $ac_preproc_ok; then :
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3607 See \`config.log' for more details." "$LINENO" 5; }
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3618 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3619 if test "${ac_cv_path_GREP+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3622 if test -z "$GREP"; then
3623 ac_path_GREP_found=false
3624 # Loop through the user's path and test for each of PROGNAME-LIST
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3629 test -z "$as_dir" && as_dir=.
3630 for ac_prog in grep ggrep; do
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3633 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3634 # Check for GNU ac_path_GREP and select it if it is found.
3635 # Check for GNU $ac_path_GREP
3636 case `"$ac_path_GREP" --version 2>&1` in
3638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3641 $as_echo_n 0123456789 >"conftest.in"
3644 cat "conftest.in" "conftest.in" >"conftest.tmp"
3645 mv "conftest.tmp" "conftest.in"
3646 cp "conftest.in" "conftest.nl"
3647 $as_echo 'GREP' >> "conftest.nl"
3648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650 as_fn_arith $ac_count + 1 && ac_count=$as_val
3651 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3652 # Best one so far, save it but keep looking for a better one
3653 ac_cv_path_GREP="$ac_path_GREP"
3654 ac_path_GREP_max=$ac_count
3656 # 10*(2^10) chars as input seems more than enough
3657 test $ac_count -gt 10 && break
3659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662 $ac_path_GREP_found && break 3
3667 if test -z "$ac_cv_path_GREP"; then
3668 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3671 ac_cv_path_GREP=$GREP
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3676 $as_echo "$ac_cv_path_GREP" >&6; }
3677 GREP="$ac_cv_path_GREP"
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3681 $as_echo_n "checking for egrep... " >&6; }
3682 if test "${ac_cv_path_EGREP+set}" = set; then :
3683 $as_echo_n "(cached) " >&6
3685 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3686 then ac_cv_path_EGREP="$GREP -E"
3688 if test -z "$EGREP"; then
3689 ac_path_EGREP_found=false
3690 # Loop through the user's path and test for each of PROGNAME-LIST
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3695 test -z "$as_dir" && as_dir=.
3696 for ac_prog in egrep; do
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3699 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3700 # Check for GNU ac_path_EGREP and select it if it is found.
3701 # Check for GNU $ac_path_EGREP
3702 case `"$ac_path_EGREP" --version 2>&1` in
3704 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3707 $as_echo_n 0123456789 >"conftest.in"
3710 cat "conftest.in" "conftest.in" >"conftest.tmp"
3711 mv "conftest.tmp" "conftest.in"
3712 cp "conftest.in" "conftest.nl"
3713 $as_echo 'EGREP' >> "conftest.nl"
3714 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3716 as_fn_arith $ac_count + 1 && ac_count=$as_val
3717 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3718 # Best one so far, save it but keep looking for a better one
3719 ac_cv_path_EGREP="$ac_path_EGREP"
3720 ac_path_EGREP_max=$ac_count
3722 # 10*(2^10) chars as input seems more than enough
3723 test $ac_count -gt 10 && break
3725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3728 $ac_path_EGREP_found && break 3
3733 if test -z "$ac_cv_path_EGREP"; then
3734 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3737 ac_cv_path_EGREP=$EGREP
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3743 $as_echo "$ac_cv_path_EGREP" >&6; }
3744 EGREP="$ac_cv_path_EGREP"
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3748 $as_echo_n "checking for ANSI C header files... " >&6; }
3749 if test "${ac_cv_header_stdc+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_cv_header_stdc=yes
3770 ac_cv_header_stdc=no
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 if test $ac_cv_header_stdc = yes; then
3775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 $EGREP "memchr" >/dev/null 2>&1; then :
3785 ac_cv_header_stdc=no
3791 if test $ac_cv_header_stdc = yes; then
3792 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799 $EGREP "free" >/dev/null 2>&1; then :
3802 ac_cv_header_stdc=no
3808 if test $ac_cv_header_stdc = yes; then
3809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3810 if test "$cross_compiling" = yes; then :
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3817 #if ((' ' & 0x0FF) == 0x020)
3818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3821 # define ISLOWER(c) \
3822 (('a' <= (c) && (c) <= 'i') \
3823 || ('j' <= (c) && (c) <= 'r') \
3824 || ('s' <= (c) && (c) <= 'z'))
3825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3833 for (i = 0; i < 256; i++)
3834 if (XOR (islower (i), ISLOWER (i))
3835 || toupper (i) != TOUPPER (i))
3840 if ac_fn_c_try_run "$LINENO"; then :
3843 ac_cv_header_stdc=no
3845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3846 conftest.$ac_objext conftest.beam conftest.$ac_ext
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3852 $as_echo "$ac_cv_header_stdc" >&6; }
3853 if test $ac_cv_header_stdc = yes; then
3855 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3859 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3860 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3861 inttypes.h stdint.h unistd.h
3863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3864 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3866 eval as_val=\$$as_ac_Header
3867 if test "x$as_val" = x""yes; then :
3868 cat >>confdefs.h <<_ACEOF
3869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3878 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3879 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3886 if test "$MINIX" = yes; then
3888 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3891 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3894 $as_echo "#define _MINIX 1" >>confdefs.h
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3900 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3901 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3907 # define __EXTENSIONS__ 1
3908 $ac_includes_default
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918 ac_cv_safe_to_define___extensions__=yes
3920 ac_cv_safe_to_define___extensions__=no
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3925 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3926 test $ac_cv_safe_to_define___extensions__ = yes &&
3927 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3929 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3931 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3933 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3935 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3940 for ac_t in install-sh install.sh shtool; do
3941 if test -f "$ac_dir/$ac_t"; then
3943 ac_install_sh="$ac_aux_dir/$ac_t -c"
3948 if test -z "$ac_aux_dir"; then
3949 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3952 # These three variables are undocumented and unsupported,
3953 # and are intended to be withdrawn in a future Autoconf release.
3954 # They can cause serious problems if a builder's source tree is in a directory
3955 # whose full name contains unusual characters.
3956 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3957 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3958 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3961 # Make sure we can run config.sub.
3962 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3963 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3966 $as_echo_n "checking build system type... " >&6; }
3967 if test "${ac_cv_build+set}" = set; then :
3968 $as_echo_n "(cached) " >&6
3970 ac_build_alias=$build_alias
3971 test "x$ac_build_alias" = x &&
3972 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3973 test "x$ac_build_alias" = x &&
3974 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3975 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3976 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3980 $as_echo "$ac_cv_build" >&6; }
3981 case $ac_cv_build in
3983 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3986 ac_save_IFS=$IFS; IFS='-'
3992 # Remember, the first character of IFS is used to create $*,
3993 # except with old shells:
3996 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4000 $as_echo_n "checking host system type... " >&6; }
4001 if test "${ac_cv_host+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 if test "x$host_alias" = x; then
4005 ac_cv_host=$ac_cv_build
4007 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4008 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4013 $as_echo "$ac_cv_host" >&6; }
4016 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4019 ac_save_IFS=$IFS; IFS='-'
4025 # Remember, the first character of IFS is used to create $*,
4026 # except with old shells:
4029 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4033 $as_echo_n "checking target system type... " >&6; }
4034 if test "${ac_cv_target+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4037 if test "x$target_alias" = x; then
4038 ac_cv_target=$ac_cv_host
4040 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4041 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4046 $as_echo "$ac_cv_target" >&6; }
4047 case $ac_cv_target in
4049 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4051 target=$ac_cv_target
4052 ac_save_IFS=$IFS; IFS='-'
4058 # Remember, the first character of IFS is used to create $*,
4059 # except with old shells:
4062 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4065 # The aliases save the names the user supplied, while $host etc.
4066 # will get canonicalized.
4067 test -n "$target_alias" &&
4068 test "$program_prefix$program_suffix$program_transform_name" = \
4070 program_prefix=${target_alias}-
4072 # The tests for host and target for $enable_largefile require
4077 # As the $enable_largefile decision depends on --enable-plugins we must set it
4078 # even in directories otherwise not depending on the $plugins option.
4081 # Check whether --enable-plugins was given.
4082 if test "${enable_plugins+set}" = set; then :
4083 enableval=$enable_plugins; case "${enableval}" in
4084 yes | "") plugins=yes ;;
4095 sparc-*-solaris*|i[3-7]86-*-solaris*)
4096 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4097 # are mutually exclusive; and without procfs support, the bfd/ elf module
4098 # cannot provide certain routines such as elfcore_write_prpsinfo
4099 # or elfcore_write_prstatus. So unless the user explicitly requested
4100 # large-file support through the --enable-largefile switch, disable
4101 # large-file support in favor of procfs support.
4102 test "${target}" = "${host}" -a "x$plugins" = xno \
4103 && : ${enable_largefile="no"}
4107 # Check whether --enable-largefile was given.
4108 if test "${enable_largefile+set}" = set; then :
4109 enableval=$enable_largefile;
4112 if test "$enable_largefile" != no; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4115 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4116 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4119 ac_cv_sys_largefile_CC=no
4120 if test "$GCC" != yes; then
4123 # IRIX 6.2 and later do not support large files by default,
4124 # so use the C compiler's -n32 option if that helps.
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #include <sys/types.h>
4128 /* Check that off_t can represent 2**63 - 1 correctly.
4129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4130 since some C++ compilers masquerading as C compilers
4131 incorrectly reject 9223372036854775807. */
4132 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4134 && LARGE_OFF_T % 2147483647 == 1)
4144 if ac_fn_c_try_compile "$LINENO"; then :
4147 rm -f core conftest.err conftest.$ac_objext
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_sys_largefile_CC=' -n32'; break
4152 rm -f core conftest.err conftest.$ac_objext
4156 rm -f conftest.$ac_ext
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4160 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4161 if test "$ac_cv_sys_largefile_CC" != no; then
4162 CC=$CC$ac_cv_sys_largefile_CC
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4166 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4167 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <sys/types.h>
4174 /* Check that off_t can represent 2**63 - 1 correctly.
4175 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4176 since some C++ compilers masquerading as C compilers
4177 incorrectly reject 9223372036854775807. */
4178 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4180 && LARGE_OFF_T % 2147483647 == 1)
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_sys_file_offset_bits=no; break
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196 #define _FILE_OFFSET_BITS 64
4197 #include <sys/types.h>
4198 /* Check that off_t can represent 2**63 - 1 correctly.
4199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4200 since some C++ compilers masquerading as C compilers
4201 incorrectly reject 9223372036854775807. */
4202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4204 && LARGE_OFF_T % 2147483647 == 1)
4214 if ac_fn_c_try_compile "$LINENO"; then :
4215 ac_cv_sys_file_offset_bits=64; break
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 ac_cv_sys_file_offset_bits=unknown
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4223 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4224 case $ac_cv_sys_file_offset_bits in #(
4227 cat >>confdefs.h <<_ACEOF
4228 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4233 if test $ac_cv_sys_file_offset_bits = unknown; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4235 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4236 if test "${ac_cv_sys_large_files+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #include <sys/types.h>
4243 /* Check that off_t can represent 2**63 - 1 correctly.
4244 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4245 since some C++ compilers masquerading as C compilers
4246 incorrectly reject 9223372036854775807. */
4247 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4248 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4249 && LARGE_OFF_T % 2147483647 == 1)
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 ac_cv_sys_large_files=no; break
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 #define _LARGE_FILES 1
4266 #include <sys/types.h>
4267 /* Check that off_t can represent 2**63 - 1 correctly.
4268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4269 since some C++ compilers masquerading as C compilers
4270 incorrectly reject 9223372036854775807. */
4271 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4273 && LARGE_OFF_T % 2147483647 == 1)
4283 if ac_fn_c_try_compile "$LINENO"; then :
4284 ac_cv_sys_large_files=1; break
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 ac_cv_sys_large_files=unknown
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4292 $as_echo "$ac_cv_sys_large_files" >&6; }
4293 case $ac_cv_sys_large_files in #(
4296 cat >>confdefs.h <<_ACEOF
4297 #define _LARGE_FILES $ac_cv_sys_large_files
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4310 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4311 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4314 am_cv_prog_cc_stdc=no
4316 # Don't try gcc -ansi; that turns off useful extensions and
4317 # breaks some systems' header files.
4318 # AIX -qlanglvl=ansi
4319 # Ultrix and OSF/1 -std1
4320 # HP-UX 10.20 and later -Ae
4321 # HP-UX older versions -Aa -D_HPUX_SOURCE
4322 # SVR4 -Xc -D__EXTENSIONS__
4323 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4325 CC="$ac_save_CC $ac_arg"
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4330 #include <sys/types.h>
4331 #include <sys/stat.h>
4332 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4333 struct buf { int x; };
4334 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4335 static char *e (p, i)
4341 static char *f (char * (*g) (char **, int), char **p, ...)
4346 s = g (p, va_arg (v,int));
4350 int test (int i, double x);
4351 struct s1 {int (*f) (int a);};
4352 struct s2 {int (*f) (double a);};
4353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4367 if ac_fn_c_try_compile "$LINENO"; then :
4368 am_cv_prog_cc_stdc="$ac_arg"; break
4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 if test -z "$am_cv_prog_cc_stdc"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4378 $as_echo "none needed" >&6; }
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4381 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4383 case "x$am_cv_prog_cc_stdc" in
4385 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4388 # expand $ac_aux_dir to an absolute path
4389 am_aux_dir=`cd $ac_aux_dir && pwd`
4391 if test x"${install_sh}" != xset; then
4394 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4396 install_sh="\${SHELL} $am_aux_dir/install-sh"
4400 # Installed binaries are usually stripped using `strip' when the user
4401 # run `make install-strip'. However `strip' might not be the right
4402 # tool to use in cross-compilation environments, therefore Automake
4403 # will honor the `STRIP' environment variable to overrule this program.
4404 if test "$cross_compiling" != no; then
4405 if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4407 set dummy ${ac_tool_prefix}strip; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if test "${ac_cv_prog_STRIP+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4413 if test -n "$STRIP"; then
4414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 STRIP=$ac_cv_prog_STRIP
4434 if test -n "$STRIP"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4436 $as_echo "$STRIP" >&6; }
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4444 if test -z "$ac_cv_prog_STRIP"; then
4446 # Extract the first word of "strip", so it can be a program name with args.
4447 set dummy strip; ac_word=$2
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4453 if test -n "$ac_ct_STRIP"; then
4454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_prog_ac_ct_STRIP="strip"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4474 if test -n "$ac_ct_STRIP"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4476 $as_echo "$ac_ct_STRIP" >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4482 if test "x$ac_ct_STRIP" = x; then
4485 case $cross_compiling:$ac_tool_warned in
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned=yes ;;
4494 STRIP="$ac_cv_prog_STRIP"
4498 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4502 for ac_dir in .. "$srcdir"/..; do
4503 for ac_t in install-sh install.sh shtool; do
4504 if test -f "$ac_dir/$ac_t"; then
4506 ac_install_sh="$ac_aux_dir/$ac_t -c"
4511 if test -z "$ac_aux_dir"; then
4512 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4515 # These three variables are undocumented and unsupported,
4516 # and are intended to be withdrawn in a future Autoconf release.
4517 # They can cause serious problems if a builder's source tree is in a directory
4518 # whose full name contains unusual characters.
4519 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4520 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4521 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4525 test "$program_prefix" != NONE &&
4526 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4527 # Use a double $ so make ignores it.
4528 test "$program_suffix" != NONE &&
4529 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4530 # Double any \ or $.
4531 # By default was `s,x,x', remove it if useless.
4532 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4533 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4536 # Dependency checking.
4537 rm -rf .tst 2>/dev/null
4538 mkdir .tst 2>/dev/null
4539 if test -d .tst; then
4544 rmdir .tst 2>/dev/null
4546 DEPDIR="${am__leading_dot}deps"
4548 ac_config_commands="$ac_config_commands depdir"
4551 depcc="$CC" am_compiler_list=
4553 am_depcomp=$ac_aux_dir/depcomp
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4555 $as_echo_n "checking dependency style of $depcc... " >&6; }
4556 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 if test -f "$am_depcomp"; then
4560 # We make a subdir and do the tests there. Otherwise we can end up
4561 # making bogus files that we don't know about and never remove. For
4562 # instance it was reported that on HP-UX the gcc test will end up
4563 # making a dummy file named `D' -- because `-MD' means `put the output
4566 # Copy depcomp to subdir because otherwise we won't find it if we're
4567 # using a relative directory.
4568 cp "$am_depcomp" conftest.dir
4570 # We will build objects and dependencies in a subdirectory because
4571 # it helps to detect inapplicable dependency modes. For instance
4572 # both Tru64's cc and ICC support -MD to output dependencies as a
4573 # side effect of compilation, but ICC will put the dependencies in
4574 # the current directory while Tru64 will put them in the object
4578 am_cv_CC_dependencies_compiler_type=none
4579 if test "$am_compiler_list" = ""; then
4580 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4582 for depmode in $am_compiler_list; do
4583 if test $depmode = none; then break; fi
4585 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4586 # Setup a source with many dependencies, because some compilers
4587 # like to wrap large dependency lists on column 80 (with \), and
4588 # we should not choose a depcomp mode which is confused by this.
4590 # We need to recreate these files for each test, as the compiler may
4591 # overwrite some of them when testing with obscure command lines.
4592 # This happens at least with the AIX C compiler.
4594 for i in 1 2 3 4 5 6; do
4595 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4596 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4597 # Solaris 8's {/usr,}/bin/sh.
4598 touch sub/conftst$i.h
4600 echo "include sub/conftest.Po" > confmf
4602 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4603 # mode. It turns out that the SunPro C++ compiler does not properly
4604 # handle `-M -o', and we need to detect this.
4605 depcmd="depmode=$depmode \
4606 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4608 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4609 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4610 if env $depcmd > conftest.err 2>&1 &&
4611 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4612 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4613 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4614 # icc doesn't choke on unknown options, it will just issue warnings
4615 # or remarks (even with -Werror). So we grep stderr for any message
4616 # that says an option was ignored or not supported.
4617 # When given -MP, icc 7.0 and 7.1 complain thusly:
4618 # icc: Command line warning: ignoring option '-M'; no argument required
4619 # The diagnosis changed in icc 8.0:
4620 # icc: Command line remark: option '-MP' not supported
4621 if (grep 'ignoring option' conftest.err ||
4622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4623 am_cv_CC_dependencies_compiler_type=$depmode
4624 $as_echo "$as_me:$LINENO: success" >&5
4628 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4629 sed -e 's/^/| /' < conftest.err >&5
4635 am_cv_CC_dependencies_compiler_type=none
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4640 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4641 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4642 then as_fn_error "no usable dependency style found" "$LINENO" 5
4643 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4648 # Check for the 'make' the user wants to use.
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy $ac_prog; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_MAKE+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$MAKE"; then
4659 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_MAKE="$ac_prog"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 MAKE=$ac_cv_prog_MAKE
4679 if test -n "$MAKE"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4681 $as_echo "$MAKE" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4688 test -n "$MAKE" && break
4692 case "`$MAKE --version 2>&1 | sed 1q`" in
4697 if test "$MAKE_IS_GNU" = yes; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4706 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4708 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4709 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4710 $as_echo_n "(cached) " >&6
4712 cat >conftest.make <<\_ACEOF
4715 @echo '@@@%%%=$(MAKE)=@@@%%%'
4717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4718 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4720 eval ac_cv_prog_make_${ac_make}_set=yes;;
4722 eval ac_cv_prog_make_${ac_make}_set=no;;
4726 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4728 $as_echo "yes" >&6; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 SET_MAKE="MAKE=${MAKE-make}"
4737 # Configure gnulib. We need to build gnulib under some other
4738 # directory not "gnulib", to avoid the problem of both GDB and
4739 # GDBserver wanting to build it in the same directory, when building
4740 # in the source dir.
4743 in_build="build-gnulib"
4745 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4746 # so they do not pile up.
4747 ac_sub_configure_args=
4749 eval "set x $ac_configure_args"
4753 if test -n "$ac_prev"; then
4758 -cache-file | --cache-file | --cache-fil | --cache-fi \
4759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4760 ac_prev=cache_file ;;
4761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4765 --config-cache | -C)
4767 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4769 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4771 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4773 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4775 --disable-option-checking)
4779 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4781 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4785 # Always prepend --prefix to ensure using the same prefix
4786 # in subdir configurations.
4787 ac_arg="--prefix=$prefix"
4789 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4791 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4794 if test "$silent" = yes; then
4795 ac_sub_configure_args="--silent $ac_sub_configure_args"
4798 # Always prepend --disable-option-checking to silence warnings, since
4799 # different subdirs can have different --enable and --with options.
4800 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4805 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4806 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4807 $as_echo "$ac_msg" >&6
4808 as_dir="$ac_dir"; as_fn_mkdir_p
4812 ac_srcdir=$srcdir/$in_src ;;
4814 ac_srcdir=../$srcdir/$in_src ;;
4819 ac_sub_configure=$ac_srcdir/configure
4821 # Make the cache file name correct relative to the subdirectory.
4823 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4825 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4828 { $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
4829 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4830 # The eval makes quoting arguments work.
4831 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4832 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4833 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4849 # If we haven't got the data from the intl directory,
4850 # assume NLS is disabled.
4859 if test -f ../intl/config.intl; then
4860 . ../intl/config.intl
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4863 $as_echo_n "checking whether NLS is requested... " >&6; }
4864 if test x"$USE_NLS" != xyes; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4869 $as_echo "yes" >&6; }
4871 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4875 $as_echo_n "checking for catalogs to be installed... " >&6; }
4876 # Look for .po and .gmo files in the source directory.
4879 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4880 # If there aren't any .gmo files the shell will give us the
4881 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4883 case "$cat" in *\**)
4886 # The quadruple backslash is collapsed to a double backslash
4887 # by the backticks, then collapsed again by the double quotes,
4888 # leaving us with one backslash in the sed expression (right
4889 # before the dot that mustn't act as a wildcard).
4890 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4891 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4892 # The user is allowed to set LINGUAS to a list of languages to
4893 # install catalogs for. If it's empty that means "all of them."
4894 if test "x$LINGUAS" = x; then
4895 CATALOGS="$CATALOGS $cat"
4896 XLINGUAS="$XLINGUAS $lang"
4898 case "$LINGUAS" in *$lang*)
4899 CATALOGS="$CATALOGS $cat"
4900 XLINGUAS="$XLINGUAS $lang"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4907 $as_echo "$LINGUAS" >&6; }
4920 localedir='${datadir}/locale'
4923 if test x"$USE_NLS" = xyes; then
4924 CONFIG_ALL="$CONFIG_ALL all-po"
4925 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4926 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4927 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4930 GNULIB=build-gnulib/import
4932 # For Makefile dependencies.
4934 if test x"$STDINT_H" != x; then
4935 GNULIB_STDINT_H=$GNULIB/$STDINT_H
4941 cat >>confdefs.h <<_ACEOF
4942 #define PACKAGE "$PACKAGE"
4947 # We never need to detect it in this sub-configure.
4948 # But preserve it for config.status --recheck.
4952 MAKEINFO_EXTRA_FLAGS=""
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4954 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4955 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4958 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4959 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4960 gdb_cv_have_makeinfo_click=yes
4962 gdb_cv_have_makeinfo_click=no
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4966 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4967 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
4968 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4974 # Check whether --with-separate-debug-dir was given.
4975 if test "${with_separate_debug_dir+set}" = set; then :
4976 withval=$with_separate_debug_dir;
4979 DEBUGDIR=${libdir}/debug
4983 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4985 ac_define_dir=`eval echo $DEBUGDIR`
4986 ac_define_dir=`eval echo $ac_define_dir`
4988 cat >>confdefs.h <<_ACEOF
4989 #define DEBUGDIR "$ac_define_dir"
4995 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4996 if test "x$prefix" = xNONE; then
4997 test_prefix=/usr/local
5002 test_prefix=$exec_prefix
5005 case ${ac_define_dir} in
5006 "${test_prefix}"|"${test_prefix}/"*|\
5007 '${exec_prefix}'|'${exec_prefix}/'*)
5012 cat >>confdefs.h <<_ACEOF
5013 #define DEBUGDIR_RELOCATABLE $value
5019 # We can't pass paths as command line arguments.
5020 # Mingw32 tries to be clever and will convert the paths for us.
5021 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5022 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5023 # This breaks GDB's relocatable path conversions since paths passed in
5024 # config.h would not get so translated, the path prefixes no longer match.
5026 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5027 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5028 ac_define_dir=`eval echo $bindir`
5029 ac_define_dir=`eval echo $ac_define_dir`
5031 cat >>confdefs.h <<_ACEOF
5032 #define BINDIR "$ac_define_dir"
5037 # GDB's datadir relocation
5041 # Check whether --with-gdb-datadir was given.
5042 if test "${with_gdb_datadir+set}" = set; then :
5043 withval=$with_gdb_datadir;
5044 GDB_DATADIR=$withval
5046 GDB_DATADIR=${datadir}/gdb
5050 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5051 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5052 ac_define_dir=`eval echo $GDB_DATADIR`
5053 ac_define_dir=`eval echo $ac_define_dir`
5055 cat >>confdefs.h <<_ACEOF
5056 #define GDB_DATADIR "$ac_define_dir"
5062 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5063 if test "x$prefix" = xNONE; then
5064 test_prefix=/usr/local
5069 test_prefix=$exec_prefix
5072 case ${ac_define_dir} in
5073 "${test_prefix}"|"${test_prefix}/"*|\
5074 '${exec_prefix}'|'${exec_prefix}/'*)
5079 cat >>confdefs.h <<_ACEOF
5080 #define GDB_DATADIR_RELOCATABLE $value
5087 # Check whether --with-relocated-sources was given.
5088 if test "${with_relocated_sources+set}" = set; then :
5089 withval=$with_relocated_sources; reloc_srcdir="${withval}"
5091 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5092 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5093 ac_define_dir=`eval echo $reloc_srcdir`
5094 ac_define_dir=`eval echo $ac_define_dir`
5096 cat >>confdefs.h <<_ACEOF
5097 #define RELOC_SRCDIR "$ac_define_dir"
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5106 $as_echo_n "checking for default auto-load directory... " >&6; }
5108 # Check whether --with-auto-load-dir was given.
5109 if test "${with_auto_load_dir+set}" = set; then :
5110 withval=$with_auto_load_dir;
5112 with_auto_load_dir='$debugdir:$datadir/auto-load'
5115 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5117 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5118 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5119 ac_define_dir=`eval echo $escape_dir`
5120 ac_define_dir=`eval echo $ac_define_dir`
5122 cat >>confdefs.h <<_ACEOF
5123 #define AUTO_LOAD_DIR "$ac_define_dir"
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5128 $as_echo "$with_auto_load_dir" >&6; }
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5131 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5133 # Check whether --with-auto-load-safe-path was given.
5134 if test "${with_auto_load_safe_path+set}" = set; then :
5135 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5136 with_auto_load_safe_path="/"
5139 with_auto_load_safe_path="$with_auto_load_dir"
5142 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5144 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5146 ac_define_dir=`eval echo $escape_dir`
5147 ac_define_dir=`eval echo $ac_define_dir`
5149 cat >>confdefs.h <<_ACEOF
5150 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5155 $as_echo "$with_auto_load_safe_path" >&6; }
5159 subdirs="$subdirs testsuite"
5162 # Check whether to support alternative target configurations
5163 # Check whether --enable-targets was given.
5164 if test "${enable_targets+set}" = set; then :
5165 enableval=$enable_targets; case "${enableval}" in
5166 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5168 no) enable_targets= ;;
5169 *) enable_targets=$enableval ;;
5174 # Check whether to enable 64-bit support on 32-bit hosts
5175 # Check whether --enable-64-bit-bfd was given.
5176 if test "${enable_64_bit_bfd+set}" = set; then :
5177 enableval=$enable_64_bit_bfd; case "${enableval}" in
5180 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5186 # Provide defaults for some variables set by the per-host and per-target
5188 gdb_host_obs=posix-hdep.o
5190 if test "${target}" = "${host}"; then
5196 . $srcdir/configure.host
5198 # Accumulate some settings from configure.tgt over all enabled targets
5202 HAVE_NATIVE_GCORE_TARGET=
5204 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5206 if test "$targ_alias" = "all"; then
5209 # Canonicalize the secondary target names.
5210 result=`$ac_config_sub $targ_alias 2>/dev/null`
5211 if test -n "$result"; then
5217 . ${srcdir}/configure.tgt
5219 if test -z "${gdb_target_obs}"; then :
5220 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5223 # Target-specific object files
5224 for i in ${gdb_target_obs}; do
5225 case " $TARGET_OBS " in
5228 TARGET_OBS="$TARGET_OBS ${i}"
5233 # Check whether this target needs 64-bit CORE_ADDR
5234 if test x${want64} = xfalse; then
5235 . ${srcdir}/../bfd/config.bfd
5238 # Check whether this target is native and supports gcore.
5239 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5240 && $gdb_have_gcore; then
5241 HAVE_NATIVE_GCORE_TARGET=1
5246 if test x${all_targets} = xtrue; then
5248 # We want all 64-bit targets if we either:
5249 # - run on a 64-bit host or
5250 # - already require 64-bit support for some other target or
5251 # - the --enable-64-bit-bfd option was supplied
5252 # Otherwise we only support all 32-bit targets.
5254 # NOTE: This test must be in sync with the corresponding
5257 if test x${want64} = xfalse; then
5258 # The cast to long int works around a bug in the HP C Compiler
5259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5261 # This bug is HP SR number 8606223364.
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5263 $as_echo_n "checking size of long... " >&6; }
5264 if test "${ac_cv_sizeof_long+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5267 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5270 if test "$ac_cv_type_long" = yes; then
5271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5273 { as_fn_set_status 77
5274 as_fn_error "cannot compute sizeof (long)
5275 See \`config.log' for more details." "$LINENO" 5; }; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5283 $as_echo "$ac_cv_sizeof_long" >&6; }
5287 cat >>confdefs.h <<_ACEOF
5288 #define SIZEOF_LONG $ac_cv_sizeof_long
5292 if test "x${ac_cv_sizeof_long}" = "x8"; then
5296 if test x${want64} = xtrue; then
5297 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5299 TARGET_OBS='$(ALL_TARGET_OBS)'
5306 # For other settings, only the main target counts.
5310 targ=$target; . ${srcdir}/configure.tgt
5312 # Fetch the default architecture and default target vector from BFD.
5313 targ=$target; . $srcdir/../bfd/config.bfd
5315 # We only want the first architecture, so strip off the others if
5316 # there is more than one.
5317 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5319 if test "x$targ_archs" != x; then
5321 cat >>confdefs.h <<_ACEOF
5322 #define DEFAULT_BFD_ARCH $targ_archs
5326 if test "x$targ_defvec" != x; then
5328 cat >>confdefs.h <<_ACEOF
5329 #define DEFAULT_BFD_VEC $targ_defvec
5334 # The CLI cannot be disabled yet, but may be in the future.
5337 # Check whether --enable-gdbcli was given.
5338 if test "${enable_gdbcli+set}" = set; then :
5339 enableval=$enable_gdbcli; case $enableval in
5343 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5345 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5351 if test x"$enable_gdbcli" = xyes; then
5352 if test -d $srcdir/cli; then
5353 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5354 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5355 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5356 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5361 # Check whether --enable-gdbmi was given.
5362 if test "${enable_gdbmi+set}" = set; then :
5363 enableval=$enable_gdbmi; case $enableval in
5367 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5373 if test x"$enable_gdbmi" = xyes; then
5374 if test -d $srcdir/mi; then
5375 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5376 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5377 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5378 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5383 # Check whether --enable-tui was given.
5384 if test "${enable_tui+set}" = set; then :
5385 enableval=$enable_tui; case $enableval in
5389 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5397 # Check whether --enable-gdbtk was given.
5398 if test "${enable_gdbtk+set}" = set; then :
5399 enableval=$enable_gdbtk; case $enableval in
5403 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5406 if test -d $srcdir/gdbtk; then
5413 # We unconditionally disable gdbtk tests on selected platforms.
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5417 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5421 # Libunwind support for ia64.
5424 # Check whether --with-libunwind-ia64 was given.
5425 if test "${with_libunwind_ia64+set}" = set; then :
5426 withval=$with_libunwind_ia64;
5428 with_libunwind_ia64=auto
5432 # Backward compatibility option.
5433 if test "${with_libunwind+set}" = set; then
5434 if test x"$with_libunwind_ia64" != xauto; then
5435 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5438 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5439 with_libunwind_ia64="$with_libunwind"
5442 case "$with_libunwind_ia64" in
5446 for ac_header in libunwind-ia64.h
5448 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5449 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5450 cat >>confdefs.h <<_ACEOF
5451 #define HAVE_LIBUNWIND_IA64_H 1
5458 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5461 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5465 if test x"$with_libunwind_ia64" = xyes; then
5466 for ac_header in libunwind-ia64.h
5468 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5469 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5470 cat >>confdefs.h <<_ACEOF
5471 #define HAVE_LIBUNWIND_IA64_H 1
5478 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5479 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5481 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5482 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5483 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5488 # Check whether --with-curses was given.
5489 if test "${with_curses+set}" = set; then :
5490 withval=$with_curses; opt_curses=$withval
5495 if test "$opt_curses" = "yes"; then
5499 # Profiling support.
5500 # Check whether --enable-profiling was given.
5501 if test "${enable_profiling+set}" = set; then :
5502 enableval=$enable_profiling; case $enableval in
5506 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5513 for ac_func in monstartup _mcleanup
5515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5517 eval as_val=\$$as_ac_var
5518 if test "x$as_val" = x""yes; then :
5519 cat >>confdefs.h <<_ACEOF
5520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5527 $as_echo_n "checking for _etext... " >&6; }
5528 if test "${ac_cv_var__etext+set}" = set; then :
5529 $as_echo_n "(cached) " >&6
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5544 if ac_fn_c_try_link "$LINENO"; then :
5545 ac_cv_var__etext=yes
5549 rm -f core conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext conftest.$ac_ext
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5553 $as_echo "$ac_cv_var__etext" >&6; }
5554 if test $ac_cv_var__etext = yes; then
5556 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5560 $as_echo_n "checking for etext... " >&6; }
5561 if test "${ac_cv_var_etext+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5577 if ac_fn_c_try_link "$LINENO"; then :
5582 rm -f core conftest.err conftest.$ac_objext \
5583 conftest$ac_exeext conftest.$ac_ext
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5586 $as_echo "$ac_cv_var_etext" >&6; }
5587 if test $ac_cv_var_etext = yes; then
5589 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5592 if test "$enable_profiling" = yes ; then
5593 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5594 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5597 OLD_CFLAGS="$CFLAGS"
5598 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5601 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5602 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 ac_cv_cc_supports_pg=yes
5619 ac_cv_cc_supports_pg=no
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5624 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5626 if test $ac_cv_cc_supports_pg = no; then
5627 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5630 CFLAGS="$OLD_CFLAGS"
5635 # Check whether --with-pkgversion was given.
5636 if test "${with_pkgversion+set}" = set; then :
5637 withval=$with_pkgversion; case "$withval" in
5638 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5640 *) PKGVERSION="($withval) " ;;
5651 # Check whether --with-bugurl was given.
5652 if test "${with_bugurl+set}" = set; then :
5653 withval=$with_bugurl; case "$withval" in
5654 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5657 *) BUGURL="$withval"
5661 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5671 REPORT_BUGS_TO="<$BUGURL>"
5672 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5679 cat >>confdefs.h <<_ACEOF
5680 #define PKGVERSION "$PKGVERSION"
5684 cat >>confdefs.h <<_ACEOF
5685 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5689 # --------------------- #
5690 # Checks for programs. #
5691 # --------------------- #
5693 for ac_prog in gawk mawk nawk awk
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if test "${ac_cv_prog_AWK+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
5702 if test -n "$AWK"; then
5703 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5712 ac_cv_prog_AWK="$ac_prog"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 if test -n "$AWK"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5725 $as_echo "$AWK" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5732 test -n "$AWK" && break
5735 # Find a good install program. We prefer a C program (faster),
5736 # so one script is as good as another. But avoid the broken or
5737 # incompatible versions:
5738 # SysV /etc/install, /usr/sbin/install
5739 # SunOS /usr/etc/install
5740 # IRIX /sbin/install
5742 # AmigaOS /C/install, which installs bootblocks on floppy discs
5743 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5746 # OS/2's system install, which has a completely different semantic
5747 # ./install, which can be erroneously created by make from ./install.sh.
5748 # Reject install programs that cannot install multiple files.
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5750 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5751 if test -z "$INSTALL"; then
5752 if test "${ac_cv_path_install+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 test -z "$as_dir" && as_dir=.
5760 # Account for people who put trailing slashes in PATH elements.
5761 case $as_dir/ in #((
5762 ./ | .// | /[cC]/* | \
5763 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5764 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5767 # OSF1 and SCO ODT 3.0 have their own names for install.
5768 # Don't use installbsd from OSF since it installs stuff as root
5770 for ac_prog in ginstall scoinst install; do
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5773 if test $ac_prog = install &&
5774 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5775 # AIX install. It has an incompatible calling convention.
5777 elif test $ac_prog = install &&
5778 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5779 # program-specific install script used by HP pwplus--don't use.
5782 rm -rf conftest.one conftest.two conftest.dir
5783 echo one > conftest.one
5784 echo two > conftest.two
5786 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5787 test -s conftest.one && test -s conftest.two &&
5788 test -s conftest.dir/conftest.one &&
5789 test -s conftest.dir/conftest.two
5791 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5804 rm -rf conftest.one conftest.two conftest.dir
5807 if test "${ac_cv_path_install+set}" = set; then
5808 INSTALL=$ac_cv_path_install
5810 # As a last resort, use the slow shell script. Don't cache a
5811 # value for INSTALL within a source directory, because that will
5812 # break other packages using the cache if that directory is
5813 # removed, or if the value is a relative name.
5814 INSTALL=$ac_install_sh
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5818 $as_echo "$INSTALL" >&6; }
5820 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5821 # It thinks the first close brace ends the variable substitution.
5822 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5824 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5826 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5829 $as_echo_n "checking whether ln -s works... " >&6; }
5831 if test "$LN_S" = "ln -s"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5833 $as_echo "yes" >&6; }
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5836 $as_echo "no, using $LN_S" >&6; }
5839 if test -n "$ac_tool_prefix"; then
5840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5847 if test -n "$RANLIB"; then
5848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 RANLIB=$ac_cv_prog_RANLIB
5868 if test -n "$RANLIB"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5870 $as_echo "$RANLIB" >&6; }
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5878 if test -z "$ac_cv_prog_RANLIB"; then
5879 ac_ct_RANLIB=$RANLIB
5880 # Extract the first word of "ranlib", so it can be a program name with args.
5881 set dummy ranlib; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5885 $as_echo_n "(cached) " >&6
5887 if test -n "$ac_ct_RANLIB"; then
5888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_prog_ac_ct_RANLIB="ranlib"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5908 if test -n "$ac_ct_RANLIB"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5910 $as_echo "$ac_ct_RANLIB" >&6; }
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5916 if test "x$ac_ct_RANLIB" = x; then
5919 case $cross_compiling:$ac_tool_warned in
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5923 ac_tool_warned=yes ;;
5925 RANLIB=$ac_ct_RANLIB
5928 RANLIB="$ac_cv_prog_RANLIB"
5931 for ac_prog in 'bison -y' byacc
5933 # Extract the first word of "$ac_prog", so it can be a program name with args.
5934 set dummy $ac_prog; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_YACC+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5940 if test -n "$YACC"; then
5941 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_YACC="$ac_prog"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 YACC=$ac_cv_prog_YACC
5961 if test -n "$YACC"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5963 $as_echo "$YACC" >&6; }
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5970 test -n "$YACC" && break
5972 test -n "$YACC" || YACC="yacc"
5975 if test -n "$ac_tool_prefix"; then
5976 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5977 set dummy ${ac_tool_prefix}ar; ac_word=$2
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 $as_echo_n "checking for $ac_word... " >&6; }
5980 if test "${ac_cv_prog_AR+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5983 if test -n "$AR"; then
5984 ac_cv_prog_AR="$AR" # Let the user override the test.
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993 ac_cv_prog_AR="${ac_tool_prefix}ar"
5994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 if test -n "$AR"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6006 $as_echo "$AR" >&6; }
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6014 if test -z "$ac_cv_prog_AR"; then
6016 # Extract the first word of "ar", so it can be a program name with args.
6017 set dummy ar; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6023 if test -n "$ac_ct_AR"; then
6024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6033 ac_cv_prog_ac_ct_AR="ar"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6044 if test -n "$ac_ct_AR"; then
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6046 $as_echo "$ac_ct_AR" >&6; }
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6052 if test "x$ac_ct_AR" = x; then
6055 case $cross_compiling:$ac_tool_warned in
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6059 ac_tool_warned=yes ;;
6067 if test -n "$ac_tool_prefix"; then
6068 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6075 if test -n "$DLLTOOL"; then
6076 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 DLLTOOL=$ac_cv_prog_DLLTOOL
6096 if test -n "$DLLTOOL"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6098 $as_echo "$DLLTOOL" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6106 if test -z "$ac_cv_prog_DLLTOOL"; then
6107 ac_ct_DLLTOOL=$DLLTOOL
6108 # Extract the first word of "dlltool", so it can be a program name with args.
6109 set dummy dlltool; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6115 if test -n "$ac_ct_DLLTOOL"; then
6116 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6136 if test -n "$ac_ct_DLLTOOL"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6138 $as_echo "$ac_ct_DLLTOOL" >&6; }
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6144 if test "x$ac_ct_DLLTOOL" = x; then
6147 case $cross_compiling:$ac_tool_warned in
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151 ac_tool_warned=yes ;;
6153 DLLTOOL=$ac_ct_DLLTOOL
6156 DLLTOOL="$ac_cv_prog_DLLTOOL"
6159 if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6161 set dummy ${ac_tool_prefix}windres; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6167 if test -n "$WINDRES"; then
6168 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 WINDRES=$ac_cv_prog_WINDRES
6188 if test -n "$WINDRES"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6190 $as_echo "$WINDRES" >&6; }
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6198 if test -z "$ac_cv_prog_WINDRES"; then
6199 ac_ct_WINDRES=$WINDRES
6200 # Extract the first word of "windres", so it can be a program name with args.
6201 set dummy windres; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6207 if test -n "$ac_ct_WINDRES"; then
6208 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_ac_ct_WINDRES="windres"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6228 if test -n "$ac_ct_WINDRES"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6230 $as_echo "$ac_ct_WINDRES" >&6; }
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6236 if test "x$ac_ct_WINDRES" = x; then
6239 case $cross_compiling:$ac_tool_warned in
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6245 WINDRES=$ac_ct_WINDRES
6248 WINDRES="$ac_cv_prog_WINDRES"
6254 # Needed for GNU Hurd hosts.
6255 if test -n "$ac_tool_prefix"; then
6256 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6257 set dummy ${ac_tool_prefix}mig; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_prog_MIG+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6263 if test -n "$MIG"; then
6264 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 if test -n "$MIG"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6286 $as_echo "$MIG" >&6; }
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6294 if test -z "$ac_cv_prog_MIG"; then
6296 # Extract the first word of "mig", so it can be a program name with args.
6297 set dummy mig; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6301 $as_echo_n "(cached) " >&6
6303 if test -n "$ac_ct_MIG"; then
6304 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6313 ac_cv_prog_ac_ct_MIG="mig"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6324 if test -n "$ac_ct_MIG"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6326 $as_echo "$ac_ct_MIG" >&6; }
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6332 if test "x$ac_ct_MIG" = x; then
6335 case $cross_compiling:$ac_tool_warned in
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6339 ac_tool_warned=yes ;;
6344 MIG="$ac_cv_prog_MIG"
6347 if test x"$MIG" = x; then
6348 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6353 # ---------------------- #
6354 # Checks for libraries. #
6355 # ---------------------- #
6357 # We might need to link with -lm; most simulators need it.
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6359 $as_echo_n "checking for main in -lm... " >&6; }
6360 if test "${ac_cv_lib_m_main+set}" = set; then :
6361 $as_echo_n "(cached) " >&6
6363 ac_check_lib_save_LIBS=$LIBS
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6377 if ac_fn_c_try_link "$LINENO"; then :
6378 ac_cv_lib_m_main=yes
6382 rm -f core conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384 LIBS=$ac_check_lib_save_LIBS
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6387 $as_echo "$ac_cv_lib_m_main" >&6; }
6388 if test "x$ac_cv_lib_m_main" = x""yes; then :
6389 cat >>confdefs.h <<_ACEOF
6398 # We need to link with -lw to get `wctype' on Solaris before Solaris
6399 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6400 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6401 # is known to have this problem). Therefore we avoid libw if we can.
6402 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6403 if test "x$ac_cv_func_wctype" = x""yes; then :
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6407 $as_echo_n "checking for wctype in -lw... " >&6; }
6408 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
6411 ac_check_lib_save_LIBS=$LIBS
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6416 /* Override any GCC internal prototype to avoid an error.
6417 Use char because int might match the return type of a GCC
6418 builtin and then its argument prototype would still apply. */
6431 if ac_fn_c_try_link "$LINENO"; then :
6432 ac_cv_lib_w_wctype=yes
6434 ac_cv_lib_w_wctype=no
6436 rm -f core conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_check_lib_save_LIBS
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6441 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6442 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6443 cat >>confdefs.h <<_ACEOF
6454 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6456 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6457 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6460 ac_func_search_save_LIBS=$LIBS
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6464 /* Override any GCC internal prototype to avoid an error.
6465 Use char because int might match the return type of a GCC
6466 builtin and then its argument prototype would still apply. */
6470 char gethostbyname ();
6474 return gethostbyname ();
6479 for ac_lib in '' nsl; do
6480 if test -z "$ac_lib"; then
6481 ac_res="none required"
6484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6486 if ac_fn_c_try_link "$LINENO"; then :
6487 ac_cv_search_gethostbyname=$ac_res
6489 rm -f core conftest.err conftest.$ac_objext \
6491 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6495 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6498 ac_cv_search_gethostbyname=no
6501 LIBS=$ac_func_search_save_LIBS
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6504 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6505 ac_res=$ac_cv_search_gethostbyname
6506 if test "$ac_res" != no; then :
6507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6512 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6514 $as_echo_n "checking for library containing socketpair... " >&6; }
6515 if test "${ac_cv_search_socketpair+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6518 ac_func_search_save_LIBS=$LIBS
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6522 /* Override any GCC internal prototype to avoid an error.
6523 Use char because int might match the return type of a GCC
6524 builtin and then its argument prototype would still apply. */
6532 return socketpair ();
6537 for ac_lib in '' socket; do
6538 if test -z "$ac_lib"; then
6539 ac_res="none required"
6542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6544 if ac_fn_c_try_link "$LINENO"; then :
6545 ac_cv_search_socketpair=$ac_res
6547 rm -f core conftest.err conftest.$ac_objext \
6549 if test "${ac_cv_search_socketpair+set}" = set; then :
6553 if test "${ac_cv_search_socketpair+set}" = set; then :
6556 ac_cv_search_socketpair=no
6559 LIBS=$ac_func_search_save_LIBS
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6562 $as_echo "$ac_cv_search_socketpair" >&6; }
6563 ac_res=$ac_cv_search_socketpair
6564 if test "$ac_res" != no; then :
6565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6570 # Link in zlib if we can. This allows us to read compressed debug sections.
6572 # See if the user specified whether he wants zlib support or not.
6574 # Check whether --with-zlib was given.
6575 if test "${with_zlib+set}" = set; then :
6582 if test "$with_zlib" != "no"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6584 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6585 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6588 ac_func_search_save_LIBS=$LIBS
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6592 /* Override any GCC internal prototype to avoid an error.
6593 Use char because int might match the return type of a GCC
6594 builtin and then its argument prototype would still apply. */
6598 char zlibVersion ();
6602 return zlibVersion ();
6607 for ac_lib in '' z; do
6608 if test -z "$ac_lib"; then
6609 ac_res="none required"
6612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6614 if ac_fn_c_try_link "$LINENO"; then :
6615 ac_cv_search_zlibVersion=$ac_res
6617 rm -f core conftest.err conftest.$ac_objext \
6619 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6623 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6626 ac_cv_search_zlibVersion=no
6629 LIBS=$ac_func_search_save_LIBS
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6632 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6633 ac_res=$ac_cv_search_zlibVersion
6634 if test "$ac_res" != no; then :
6635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6636 for ac_header in zlib.h
6638 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6639 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6640 cat >>confdefs.h <<_ACEOF
6641 #define HAVE_ZLIB_H 1
6650 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6651 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6656 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6658 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6659 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6660 $as_echo_n "(cached) " >&6
6662 ac_func_search_save_LIBS=$LIBS
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6666 /* Override any GCC internal prototype to avoid an error.
6667 Use char because int might match the return type of a GCC
6668 builtin and then its argument prototype would still apply. */
6672 char dlgetmodinfo ();
6676 return dlgetmodinfo ();
6681 for ac_lib in '' dl xpdl; do
6682 if test -z "$ac_lib"; then
6683 ac_res="none required"
6686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6688 if ac_fn_c_try_link "$LINENO"; then :
6689 ac_cv_search_dlgetmodinfo=$ac_res
6691 rm -f core conftest.err conftest.$ac_objext \
6693 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6697 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6700 ac_cv_search_dlgetmodinfo=no
6703 LIBS=$ac_func_search_save_LIBS
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6706 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6707 ac_res=$ac_cv_search_dlgetmodinfo
6708 if test "$ac_res" != no; then :
6709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6717 # Check whether --with-libiconv-prefix was given.
6718 if test "${with_libiconv_prefix+set}" = set; then :
6719 withval=$with_libiconv_prefix;
6720 for dir in `echo "$withval" | tr : ' '`; do
6721 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
6722 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6728 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6729 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6732 $as_echo_n "checking for iconv... " >&6; }
6733 if test "${am_cv_func_iconv+set}" = set; then :
6734 $as_echo_n "(cached) " >&6
6737 am_cv_func_iconv="no, consider installing GNU libiconv"
6739 am_cv_use_build_libiconv=no
6740 am_cv_build_libiconv_path=
6742 # If libiconv is part of the build tree, then try using it over
6744 if test -d ../libiconv; then
6745 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
6746 am_save_LIBS="$LIBS"
6747 am_save_CPPFLAGS="$CPPFLAGS"
6748 LIBS="$LIBS $lib_dir/libiconv.a"
6749 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6757 iconv_t cd = iconv_open("","");
6758 iconv(cd,NULL,NULL,NULL,NULL);
6764 if ac_fn_c_try_link "$LINENO"; then :
6765 am_cv_use_build_libiconv=yes
6766 am_cv_build_libiconv_path=$lib_dir/libiconv.a
6768 am_cv_func_iconv=yes
6770 rm -f core conftest.err conftest.$ac_objext \
6771 conftest$ac_exeext conftest.$ac_ext
6772 LIBS="$am_save_LIBS"
6773 CPPFLAGS="$am_save_CPPFLAGS"
6774 if test "$am_cv_use_build_libiconv" = "yes"; then
6780 # Next, try to find iconv in libc.
6781 if test "$am_cv_func_iconv" != yes; then
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6789 iconv_t cd = iconv_open("","");
6790 iconv(cd,NULL,NULL,NULL,NULL);
6796 if ac_fn_c_try_link "$LINENO"; then :
6797 am_cv_func_iconv=yes
6799 rm -f core conftest.err conftest.$ac_objext \
6800 conftest$ac_exeext conftest.$ac_ext
6803 # If iconv was not in libc, try -liconv. In this case, arrange to
6804 # look in the libiconv prefix, if it was specified by the user.
6805 if test "$am_cv_func_iconv" != yes; then
6806 am_save_CPPFLAGS="$CPPFLAGS"
6807 am_save_LIBS="$LIBS"
6808 if test -n "$LIBICONV_INCLUDE"; then
6809 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6810 LIBS="$LIBS $LIBICONV_LIBDIR"
6812 LIBS="$LIBS -liconv"
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6820 iconv_t cd = iconv_open("","");
6821 iconv(cd,NULL,NULL,NULL,NULL);
6827 if ac_fn_c_try_link "$LINENO"; then :
6829 am_cv_func_iconv=yes
6831 rm -f core conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 LIBS="$am_save_LIBS"
6834 CPPFLAGS="$am_save_CPPFLAGS"
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6839 $as_echo "$am_cv_func_iconv" >&6; }
6841 # Set the various flags based on the cache variables. We can't rely
6842 # on the flags to remain set from the above code, due to caching.
6844 if test "$am_cv_lib_iconv" = yes; then
6850 if test "$am_cv_use_build_libiconv" = yes; then
6851 LIBICONV="$am_cv_build_libiconv_path"
6853 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
6855 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6856 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6858 if test "$am_cv_func_iconv" = yes; then
6860 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6863 $as_echo_n "checking for iconv declaration... " >&6; }
6864 if test "${am_cv_proto_iconv+set}" = set; then :
6865 $as_echo_n "(cached) " >&6
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6877 #if defined(__STDC__) || defined(__cplusplus)
6878 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6891 if ac_fn_c_try_compile "$LINENO"; then :
6892 am_cv_proto_iconv_arg1=""
6894 am_cv_proto_iconv_arg1="const"
6896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 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);"
6900 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6902 }$am_cv_proto_iconv" >&5
6904 }$am_cv_proto_iconv" >&6; }
6906 cat >>confdefs.h <<_ACEOF
6907 #define ICONV_CONST $am_cv_proto_iconv_arg1
6913 # GDB may fork/exec the iconv program to get the list of supported character
6914 # sets. Allow the user to specify where to find it.
6915 # There are several factors affecting the choice of option name:
6916 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6917 # the build-time location of libiconv files.
6918 # - The program we need to find is iconv, which comes with glibc. The user
6919 # doesn't necessarily have libiconv installed. Therefore naming this
6920 # --with-libiconv-foo feels wrong.
6921 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6922 # defined to work on directories not files (though it really doesn't know
6924 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6925 # with --with-libiconv-prefix.
6926 # Putting these together is why the option name is --with-iconv-bin.
6929 # Check whether --with-iconv-bin was given.
6930 if test "${with_iconv_bin+set}" = set; then :
6931 withval=$with_iconv_bin; iconv_bin="${withval}"
6933 cat >>confdefs.h <<_ACEOF
6934 #define ICONV_BIN "${iconv_bin}"
6938 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6939 if test "x$prefix" = xNONE; then
6940 test_prefix=/usr/local
6945 test_prefix=$exec_prefix
6948 case ${iconv_bin} in
6949 "${test_prefix}"|"${test_prefix}/"*|\
6950 '${exec_prefix}'|'${exec_prefix}/'*)
6955 cat >>confdefs.h <<_ACEOF
6956 #define ICONV_BIN_RELOCATABLE $value
6964 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6965 # There is a very specific comment in /usr/include/curses.h explaining that
6966 # termcap routines built into libcurses must not be used.
6968 # The symptoms we observed so far is GDB unexpectedly changing
6969 # the terminal settings when tgetent is called - this is particularly
6970 # visible as the output is missing carriage returns, and so rapidly
6971 # becomes very hard to read.
6973 # The readline configure script has already decided that libtermcap
6974 # was enough for its purposes, and so decided to build readline using
6975 # libtermcap. Since the TUI mode requires curses, building GDB with
6976 # TUI enabled results in both libraries to be used at the same time,
6977 # which is not allowed. This basically means that GDB with TUI is
6978 # broken on alpha-osf.
6982 if test x"$enable_tui" = xyes; then
6983 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6985 if test x"$enable_tui" = xauto; then
6991 # For the TUI, we need enhanced curses functionality.
6992 if test x"$enable_tui" != xno; then
6997 if test x"$prefer_curses" = xyes; then
6998 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6999 # curses library because the latter might not provide all the
7000 # functionality we need. However, this leads to problems on systems
7001 # where the linker searches /usr/local/lib, but the compiler doesn't
7002 # search /usr/local/include, if ncurses is installed in /usr/local. A
7003 # default installation of ncurses on alpha*-dec-osf* will lead to such
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7006 $as_echo_n "checking for library containing waddstr... " >&6; }
7007 if test "${ac_cv_search_waddstr+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7010 ac_func_search_save_LIBS=$LIBS
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7014 /* Override any GCC internal prototype to avoid an error.
7015 Use char because int might match the return type of a GCC
7016 builtin and then its argument prototype would still apply. */
7029 for ac_lib in '' ncurses cursesX curses; do
7030 if test -z "$ac_lib"; then
7031 ac_res="none required"
7034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7036 if ac_fn_c_try_link "$LINENO"; then :
7037 ac_cv_search_waddstr=$ac_res
7039 rm -f core conftest.err conftest.$ac_objext \
7041 if test "${ac_cv_search_waddstr+set}" = set; then :
7045 if test "${ac_cv_search_waddstr+set}" = set; then :
7048 ac_cv_search_waddstr=no
7051 LIBS=$ac_func_search_save_LIBS
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7054 $as_echo "$ac_cv_search_waddstr" >&6; }
7055 ac_res=$ac_cv_search_waddstr
7056 if test "$ac_res" != no; then :
7057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7062 if test "$ac_cv_search_waddstr" != no; then
7067 # Check whether we should enable the TUI, but only do so if we really
7069 if test x"$enable_tui" != xno; then
7070 if test -d $srcdir/tui; then
7071 if test "$curses_found" != no; then
7072 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7073 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7074 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7075 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7077 if test x"$enable_tui" = xyes; then
7078 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7081 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7087 # Since GDB uses Readline, we need termcap functionality. In many
7088 # cases this will be provided by the curses library, but some systems
7089 # have a seperate termcap library, or no curses library at all.
7093 if test -d $srcdir/libtermcap; then
7094 LIBS="../libtermcap/libtermcap.a $LIBS"
7095 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
7098 ac_cv_search_tgetent="none required"
7101 ac_cv_search_tgetent="none required"
7102 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
7106 # These are the libraries checked by Readline.
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7108 $as_echo_n "checking for library containing tgetent... " >&6; }
7109 if test "${ac_cv_search_tgetent+set}" = set; then :
7110 $as_echo_n "(cached) " >&6
7112 ac_func_search_save_LIBS=$LIBS
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7116 /* Override any GCC internal prototype to avoid an error.
7117 Use char because int might match the return type of a GCC
7118 builtin and then its argument prototype would still apply. */
7131 for ac_lib in '' termcap tinfo curses ncurses; do
7132 if test -z "$ac_lib"; then
7133 ac_res="none required"
7136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7138 if ac_fn_c_try_link "$LINENO"; then :
7139 ac_cv_search_tgetent=$ac_res
7141 rm -f core conftest.err conftest.$ac_objext \
7143 if test "${ac_cv_search_tgetent+set}" = set; then :
7147 if test "${ac_cv_search_tgetent+set}" = set; then :
7150 ac_cv_search_tgetent=no
7153 LIBS=$ac_func_search_save_LIBS
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7156 $as_echo "$ac_cv_search_tgetent" >&6; }
7157 ac_res=$ac_cv_search_tgetent
7158 if test "$ac_res" != no; then :
7159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7164 if test "$ac_cv_search_tgetent" = no; then
7165 as_fn_error "no termcap library found" "$LINENO" 5
7169 # Check whether --with-system-readline was given.
7170 if test "${with_system_readline+set}" = set; then :
7171 withval=$with_system_readline;
7175 if test "$with_system_readline" = yes; then
7179 READLINE_TEXI_INCFLAG=
7181 READLINE='$(READLINE_DIR)/libreadline.a'
7182 READLINE_DEPS='$(READLINE)'
7183 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7184 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7191 # Generate jit-reader.h
7193 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7196 # The cast to long int works around a bug in the HP C Compiler
7197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7199 # This bug is HP SR number 8606223364.
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7201 $as_echo_n "checking size of unsigned long long... " >&6; }
7202 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7203 $as_echo_n "(cached) " >&6
7205 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7208 if test "$ac_cv_type_unsigned_long_long" = yes; then
7209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7211 { as_fn_set_status 77
7212 as_fn_error "cannot compute sizeof (unsigned long long)
7213 See \`config.log' for more details." "$LINENO" 5; }; }
7215 ac_cv_sizeof_unsigned_long_long=0
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7221 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7225 cat >>confdefs.h <<_ACEOF
7226 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7230 # The cast to long int works around a bug in the HP C Compiler
7231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7233 # This bug is HP SR number 8606223364.
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7235 $as_echo_n "checking size of unsigned long... " >&6; }
7236 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7239 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7242 if test "$ac_cv_type_unsigned_long" = yes; then
7243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7245 { as_fn_set_status 77
7246 as_fn_error "cannot compute sizeof (unsigned long)
7247 See \`config.log' for more details." "$LINENO" 5; }; }
7249 ac_cv_sizeof_unsigned_long=0
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7255 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7259 cat >>confdefs.h <<_ACEOF
7260 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7264 # The cast to long int works around a bug in the HP C Compiler
7265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7267 # This bug is HP SR number 8606223364.
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7269 $as_echo_n "checking size of unsigned __int128... " >&6; }
7270 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7273 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7276 if test "$ac_cv_type_unsigned___int128" = yes; then
7277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7279 { as_fn_set_status 77
7280 as_fn_error "cannot compute sizeof (unsigned __int128)
7281 See \`config.log' for more details." "$LINENO" 5; }; }
7283 ac_cv_sizeof_unsigned___int128=0
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7289 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7293 cat >>confdefs.h <<_ACEOF
7294 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7299 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7300 TARGET_PTR="unsigned long"
7301 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7302 TARGET_PTR="unsigned long long"
7303 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7304 TARGET_PTR="unsigned __int128"
7306 TARGET_PTR="unsigned long"
7310 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7314 $as_echo_n "checking for library containing dlopen... " >&6; }
7315 if test "${ac_cv_search_dlopen+set}" = set; then :
7316 $as_echo_n "(cached) " >&6
7318 ac_func_search_save_LIBS=$LIBS
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7322 /* Override any GCC internal prototype to avoid an error.
7323 Use char because int might match the return type of a GCC
7324 builtin and then its argument prototype would still apply. */
7337 for ac_lib in '' dl; do
7338 if test -z "$ac_lib"; then
7339 ac_res="none required"
7342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7344 if ac_fn_c_try_link "$LINENO"; then :
7345 ac_cv_search_dlopen=$ac_res
7347 rm -f core conftest.err conftest.$ac_objext \
7349 if test "${ac_cv_search_dlopen+set}" = set; then :
7353 if test "${ac_cv_search_dlopen+set}" = set; then :
7356 ac_cv_search_dlopen=no
7359 LIBS=$ac_func_search_save_LIBS
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7362 $as_echo "$ac_cv_search_dlopen" >&6; }
7363 ac_res=$ac_cv_search_dlopen
7364 if test "$ac_res" != no; then :
7365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7372 # Check whether --with-jit-reader-dir was given.
7373 if test "${with_jit_reader_dir+set}" = set; then :
7374 withval=$with_jit_reader_dir;
7375 JIT_READER_DIR=$withval
7377 JIT_READER_DIR=${libdir}/gdb
7381 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7383 ac_define_dir=`eval echo $JIT_READER_DIR`
7384 ac_define_dir=`eval echo $ac_define_dir`
7386 cat >>confdefs.h <<_ACEOF
7387 #define JIT_READER_DIR "$ac_define_dir"
7393 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7394 if test "x$prefix" = xNONE; then
7395 test_prefix=/usr/local
7400 test_prefix=$exec_prefix
7403 case ${ac_define_dir} in
7404 "${test_prefix}"|"${test_prefix}/"*|\
7405 '${exec_prefix}'|'${exec_prefix}/'*)
7410 cat >>confdefs.h <<_ACEOF
7411 #define JIT_READER_DIR_RELOCATABLE $value
7418 # Check whether --with-expat was given.
7419 if test "${with_expat+set}" = set; then :
7420 withval=$with_expat;
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7426 $as_echo_n "checking whether to use expat... " >&6; }
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7428 $as_echo "$with_expat" >&6; }
7430 if test "${with_expat}" = no; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7432 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7436 if test "X$prefix" = "XNONE"; then
7437 acl_final_prefix="$ac_default_prefix"
7439 acl_final_prefix="$prefix"
7441 if test "X$exec_prefix" = "XNONE"; then
7442 acl_final_exec_prefix='${prefix}'
7444 acl_final_exec_prefix="$exec_prefix"
7446 acl_save_prefix="$prefix"
7447 prefix="$acl_final_prefix"
7448 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7449 prefix="$acl_save_prefix"
7452 # Check whether --with-gnu-ld was given.
7453 if test "${with_gnu_ld+set}" = set; then :
7454 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7459 # Prepare PATH_SEPARATOR.
7460 # The user is always right.
7461 if test "${PATH_SEPARATOR+set}" != set; then
7462 echo "#! /bin/sh" >conf$$.sh
7463 echo "exit 0" >>conf$$.sh
7465 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7473 if test "$GCC" = yes; then
7474 # Check if gcc -print-prog-name=ld gives a path.
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7476 $as_echo_n "checking for ld used by GCC... " >&6; }
7479 # gcc leaves a trailing carriage return which upsets mingw
7480 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7482 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7485 # Accept absolute paths.
7486 [\\/]* | [A-Za-z]:[\\/]*)
7487 re_direlt='/[^/][^/]*/\.\./'
7488 # Canonicalize the path of ld
7489 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7490 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7491 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7493 test -z "$LD" && LD="$ac_prog"
7496 # If it fails, then pretend we aren't using GCC.
7500 # If it is relative, then search for the first ld in PATH.
7504 elif test "$with_gnu_ld" = yes; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7506 $as_echo_n "checking for GNU ld... " >&6; }
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7509 $as_echo_n "checking for non-GNU ld... " >&6; }
7511 if test "${acl_cv_path_LD+set}" = set; then :
7512 $as_echo_n "(cached) " >&6
7514 if test -z "$LD"; then
7515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7516 for ac_dir in $PATH; do
7517 test -z "$ac_dir" && ac_dir=.
7518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7519 acl_cv_path_LD="$ac_dir/$ac_prog"
7520 # Check to see if the program is GNU ld. I'd rather use --version,
7521 # but apparently some GNU ld's only accept -v.
7522 # Break only if it was the GNU/non-GNU ld that we prefer.
7523 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7524 test "$with_gnu_ld" != no && break
7526 test "$with_gnu_ld" != yes && break
7532 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7536 LD="$acl_cv_path_LD"
7537 if test -n "$LD"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7539 $as_echo "$LD" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7544 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7546 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7547 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7550 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7551 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7552 acl_cv_prog_gnu_ld=yes
7554 acl_cv_prog_gnu_ld=no
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7558 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7559 with_gnu_ld=$acl_cv_prog_gnu_ld
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7564 $as_echo_n "checking for shared library run path origin... " >&6; }
7565 if test "${acl_cv_rpath+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7569 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7570 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7577 $as_echo "$acl_cv_rpath" >&6; }
7579 libext="$acl_cv_libext"
7580 shlibext="$acl_cv_shlibext"
7581 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7582 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7583 hardcode_direct="$acl_cv_hardcode_direct"
7584 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7585 # Check whether --enable-rpath was given.
7586 if test "${enable_rpath+set}" = set; then :
7587 enableval=$enable_rpath; :
7603 acl_save_prefix="$prefix"
7604 prefix="$acl_final_prefix"
7605 acl_save_exec_prefix="$exec_prefix"
7606 exec_prefix="$acl_final_exec_prefix"
7608 eval additional_includedir=\"$includedir\"
7609 eval additional_libdir=\"$libdir\"
7611 exec_prefix="$acl_save_exec_prefix"
7612 prefix="$acl_save_prefix"
7615 # Check whether --with-libexpat-prefix was given.
7616 if test "${with_libexpat_prefix+set}" = set; then :
7617 withval=$with_libexpat_prefix;
7618 if test "X$withval" = "Xno"; then
7621 if test "X$withval" = "X"; then
7623 acl_save_prefix="$prefix"
7624 prefix="$acl_final_prefix"
7625 acl_save_exec_prefix="$exec_prefix"
7626 exec_prefix="$acl_final_exec_prefix"
7628 eval additional_includedir=\"$includedir\"
7629 eval additional_libdir=\"$libdir\"
7631 exec_prefix="$acl_save_exec_prefix"
7632 prefix="$acl_save_prefix"
7635 additional_includedir="$withval/include"
7636 additional_libdir="$withval/lib"
7647 names_already_handled=
7648 names_next_round='expat '
7649 while test -n "$names_next_round"; do
7650 names_this_round="$names_next_round"
7652 for name in $names_this_round; do
7654 for n in $names_already_handled; do
7655 if test "$n" = "$name"; then
7660 if test -z "$already_handled"; then
7661 names_already_handled="$names_already_handled $name"
7662 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7663 eval value=\"\$HAVE_LIB$uppername\"
7664 if test -n "$value"; then
7665 if test "$value" = yes; then
7666 eval value=\"\$LIB$uppername\"
7667 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7668 eval value=\"\$LTLIB$uppername\"
7669 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7678 if test $use_additional = yes; then
7679 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7680 found_dir="$additional_libdir"
7681 found_so="$additional_libdir/lib$name.$shlibext"
7682 if test -f "$additional_libdir/lib$name.la"; then
7683 found_la="$additional_libdir/lib$name.la"
7686 if test -f "$additional_libdir/lib$name.$libext"; then
7687 found_dir="$additional_libdir"
7688 found_a="$additional_libdir/lib$name.$libext"
7689 if test -f "$additional_libdir/lib$name.la"; then
7690 found_la="$additional_libdir/lib$name.la"
7695 if test "X$found_dir" = "X"; then
7696 for x in $LDFLAGS $LTLIBEXPAT; do
7698 acl_save_prefix="$prefix"
7699 prefix="$acl_final_prefix"
7700 acl_save_exec_prefix="$exec_prefix"
7701 exec_prefix="$acl_final_exec_prefix"
7703 exec_prefix="$acl_save_exec_prefix"
7704 prefix="$acl_save_prefix"
7708 dir=`echo "X$x" | sed -e 's/^X-L//'`
7709 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7711 found_so="$dir/lib$name.$shlibext"
7712 if test -f "$dir/lib$name.la"; then
7713 found_la="$dir/lib$name.la"
7716 if test -f "$dir/lib$name.$libext"; then
7718 found_a="$dir/lib$name.$libext"
7719 if test -f "$dir/lib$name.la"; then
7720 found_la="$dir/lib$name.la"
7726 if test "X$found_dir" != "X"; then
7731 if test "X$found_dir" != "X"; then
7732 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7733 if test "X$found_so" != "X"; then
7734 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7735 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7738 for x in $ltrpathdirs; do
7739 if test "X$x" = "X$found_dir"; then
7744 if test -z "$haveit"; then
7745 ltrpathdirs="$ltrpathdirs $found_dir"
7747 if test "$hardcode_direct" = yes; then
7748 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7750 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7751 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7753 for x in $rpathdirs; do
7754 if test "X$x" = "X$found_dir"; then
7759 if test -z "$haveit"; then
7760 rpathdirs="$rpathdirs $found_dir"
7764 for x in $LDFLAGS $LIBEXPAT; do
7766 acl_save_prefix="$prefix"
7767 prefix="$acl_final_prefix"
7768 acl_save_exec_prefix="$exec_prefix"
7769 exec_prefix="$acl_final_exec_prefix"
7771 exec_prefix="$acl_save_exec_prefix"
7772 prefix="$acl_save_prefix"
7774 if test "X$x" = "X-L$found_dir"; then
7779 if test -z "$haveit"; then
7780 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7782 if test "$hardcode_minus_L" != no; then
7783 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7785 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7791 if test "X$found_a" != "X"; then
7792 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7794 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7797 additional_includedir=
7798 case "$found_dir" in
7800 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7801 additional_includedir="$basedir/include"
7804 if test "X$additional_includedir" != "X"; then
7805 if test "X$additional_includedir" != "X/usr/include"; then
7807 if test "X$additional_includedir" = "X/usr/local/include"; then
7808 if test -n "$GCC"; then
7810 linux*) haveit=yes;;
7814 if test -z "$haveit"; then
7815 for x in $CPPFLAGS $INCEXPAT; do
7817 acl_save_prefix="$prefix"
7818 prefix="$acl_final_prefix"
7819 acl_save_exec_prefix="$exec_prefix"
7820 exec_prefix="$acl_final_exec_prefix"
7822 exec_prefix="$acl_save_exec_prefix"
7823 prefix="$acl_save_prefix"
7825 if test "X$x" = "X-I$additional_includedir"; then
7830 if test -z "$haveit"; then
7831 if test -d "$additional_includedir"; then
7832 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7838 if test -n "$found_la"; then
7839 save_libdir="$libdir"
7841 */* | *\\*) . "$found_la" ;;
7842 *) . "./$found_la" ;;
7844 libdir="$save_libdir"
7845 for dep in $dependency_libs; do
7848 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7849 if test "X$additional_libdir" != "X/usr/lib"; then
7851 if test "X$additional_libdir" = "X/usr/local/lib"; then
7852 if test -n "$GCC"; then
7854 linux*) haveit=yes;;
7858 if test -z "$haveit"; then
7860 for x in $LDFLAGS $LIBEXPAT; do
7862 acl_save_prefix="$prefix"
7863 prefix="$acl_final_prefix"
7864 acl_save_exec_prefix="$exec_prefix"
7865 exec_prefix="$acl_final_exec_prefix"
7867 exec_prefix="$acl_save_exec_prefix"
7868 prefix="$acl_save_prefix"
7870 if test "X$x" = "X-L$additional_libdir"; then
7875 if test -z "$haveit"; then
7876 if test -d "$additional_libdir"; then
7877 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7881 for x in $LDFLAGS $LTLIBEXPAT; do
7883 acl_save_prefix="$prefix"
7884 prefix="$acl_final_prefix"
7885 acl_save_exec_prefix="$exec_prefix"
7886 exec_prefix="$acl_final_exec_prefix"
7888 exec_prefix="$acl_save_exec_prefix"
7889 prefix="$acl_save_prefix"
7891 if test "X$x" = "X-L$additional_libdir"; then
7896 if test -z "$haveit"; then
7897 if test -d "$additional_libdir"; then
7898 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7905 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7906 if test "$enable_rpath" != no; then
7908 for x in $rpathdirs; do
7909 if test "X$x" = "X$dir"; then
7914 if test -z "$haveit"; then
7915 rpathdirs="$rpathdirs $dir"
7918 for x in $ltrpathdirs; do
7919 if test "X$x" = "X$dir"; then
7924 if test -z "$haveit"; then
7925 ltrpathdirs="$ltrpathdirs $dir"
7930 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7933 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7936 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7937 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7943 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7944 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7950 if test "X$rpathdirs" != "X"; then
7951 if test -n "$hardcode_libdir_separator"; then
7953 for found_dir in $rpathdirs; do
7954 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7956 acl_save_libdir="$libdir"
7958 eval flag=\"$hardcode_libdir_flag_spec\"
7959 libdir="$acl_save_libdir"
7960 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7962 for found_dir in $rpathdirs; do
7963 acl_save_libdir="$libdir"
7965 eval flag=\"$hardcode_libdir_flag_spec\"
7966 libdir="$acl_save_libdir"
7967 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7971 if test "X$ltrpathdirs" != "X"; then
7972 for found_dir in $ltrpathdirs; do
7973 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7978 ac_save_CPPFLAGS="$CPPFLAGS"
7980 for element in $INCEXPAT; do
7982 for x in $CPPFLAGS; do
7984 acl_save_prefix="$prefix"
7985 prefix="$acl_final_prefix"
7986 acl_save_exec_prefix="$exec_prefix"
7987 exec_prefix="$acl_final_exec_prefix"
7989 exec_prefix="$acl_save_exec_prefix"
7990 prefix="$acl_save_prefix"
7992 if test "X$x" = "X$element"; then
7997 if test -z "$haveit"; then
7998 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8004 $as_echo_n "checking for libexpat... " >&6; }
8005 if test "${ac_cv_libexpat+set}" = set; then :
8006 $as_echo_n "(cached) " >&6
8009 ac_save_LIBS="$LIBS"
8010 LIBS="$LIBS $LIBEXPAT"
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8017 XML_Parser p = XML_ParserCreate (0);
8022 if ac_fn_c_try_link "$LINENO"; then :
8027 rm -f core conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8029 LIBS="$ac_save_LIBS"
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8033 $as_echo "$ac_cv_libexpat" >&6; }
8034 if test "$ac_cv_libexpat" = yes; then
8037 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8040 $as_echo_n "checking how to link with libexpat... " >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8042 $as_echo "$LIBEXPAT" >&6; }
8045 CPPFLAGS="$ac_save_CPPFLAGS"
8055 if test "$HAVE_LIBEXPAT" != yes; then
8056 if test "$with_expat" = yes; then
8057 as_fn_error "expat is missing or unusable" "$LINENO" 5
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8060 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8064 LIBS="$LIBS $LIBEXPAT"
8065 for ac_func in XML_StopParser
8067 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8068 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
8069 cat >>confdefs.h <<_ACEOF
8070 #define HAVE_XML_STOPPARSER 1
8080 # --------------------- #
8081 # Check for libpython. #
8082 # --------------------- #
8089 # Check whether --with-python was given.
8090 if test "${with_python+set}" = set; then :
8091 withval=$with_python;
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8097 $as_echo_n "checking whether to use python... " >&6; }
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8099 $as_echo "$with_python" >&6; }
8101 if test "${with_python}" = no; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8103 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8106 case "${with_python}" in
8108 if test -d ${with_python}; then
8109 # Assume the python binary is ${with_python}/bin/python.
8110 python_prog="${with_python}/bin/python"
8112 # If python does not exit ${with_python}/bin, then try in
8113 # ${with_python}. On Windows/MinGW, this is where the Python
8115 if test ! -x "${python_prog}"; then
8116 python_prog="${with_python}/python"
8119 if test ! -x "${python_prog}"; then
8120 # Fall back to gdb 7.0/7.1 behaviour.
8122 python_prefix=${with_python}
8124 elif test -x "${with_python}"; then
8125 # While we can't run python compiled for $host (unless host == build),
8126 # the user could write a script that provides the needed information,
8127 # so we support that.
8128 python_prog=${with_python}
8131 as_fn_error "invalid value for --with-python" "$LINENO" 5
8135 # Disallow --with-python=foo/bar.
8136 as_fn_error "invalid value for --with-python" "$LINENO" 5
8139 # The user has either specified auto, yes, or the name of the python
8140 # program assumed to be in $PATH.
8142 case "${with_python}" in
8144 if test ${build} = ${host}; then
8145 # Extract the first word of "python", so it can be a program name with args.
8146 set dummy python; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8152 case $python_prog_path in
8154 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8164 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8176 python_prog_path=$ac_cv_path_python_prog_path
8177 if test -n "$python_prog_path"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8179 $as_echo "$python_prog_path" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8186 if test "${python_prog_path}" = missing; then
8189 python_prog=${python_prog_path}
8192 # Not much we can do except assume the cross-compiler will find the
8198 # While we can't run python compiled for $host (unless host == build),
8199 # the user could write a script that provides the needed information,
8200 # so we support that.
8201 python_prog="${with_python}"
8202 # Extract the first word of "${python_prog}", so it can be a program name with args.
8203 set dummy ${python_prog}; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8209 case $python_prog_path in
8211 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8233 python_prog_path=$ac_cv_path_python_prog_path
8234 if test -n "$python_prog_path"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8236 $as_echo "$python_prog_path" >&6; }
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8243 if test "${python_prog_path}" = missing; then
8244 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8250 if test "${python_prog}" != missing; then
8251 # We have a python program to use, but it may be too old.
8252 # Don't flag an error for --with-python=auto (the default).
8253 have_python_config=yes
8254 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8255 if test $? != 0; then
8256 have_python_config=failed
8257 if test "${with_python}" != auto; then
8258 as_fn_error "failure running python-config --includes" "$LINENO" 5
8261 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8262 if test $? != 0; then
8263 have_python_config=failed
8264 if test "${with_python}" != auto; then
8265 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8268 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8269 if test $? != 0; then
8270 have_python_config=failed
8271 if test "${with_python}" != auto; then
8272 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8276 # We do not have a python executable we can use to determine where
8277 # to find the Python headers and libs. We cannot guess the include
8278 # path from the python_prefix either, because that include path
8279 # depends on the Python version. So, there is nothing much we can
8280 # do except assume that the compiler will be able to find those files.
8283 have_python_config=no
8286 # If we have python-config, only try the configuration it provides.
8287 # Otherwise fallback on the old way of trying different versions of
8291 if test "${have_python_config}" = yes; then
8292 # Determine the Python version by extracting "-lpython<version>"
8293 # part of the python_libs. <version> is usually X.Y with X and Y
8294 # being decimal numbers, but can also be XY (seen on Windows).
8296 # The extraction is performed using sed with a regular expression.
8297 # Initially, the regexp used was using the '?' quantifier to make
8298 # the dot in the version number optional. Unfortunately, this
8299 # does not work with non-GNU versions of sed because, because of
8300 # what looks like a limitation (the '?' quantifier does not work
8301 # with back-references). We work around this limitation by using
8302 # the '*' quantifier instead. It means that, in theory, we might
8303 # match unexpected version strings such as "-lpython2..7", but
8304 # this seems unlikely in practice. And even if that happens,
8305 # an error will be triggered later on, when checking that version
8307 python_version=`echo " ${python_libs} " \
8308 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8309 case "${python_version}" in
8312 version=${python_version}
8314 new_CPPFLAGS=${python_includes}
8315 new_LIBS=${python_libs}
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8317 $as_echo_n "checking for ${version}... " >&6; }
8318 save_CPPFLAGS=$CPPFLAGS
8320 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8321 LIBS="$LIBS $new_LIBS"
8322 found_usable_python=no
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8334 if ac_fn_c_try_link "$LINENO"; then :
8335 have_libpython=${version}
8336 found_usable_python=yes
8337 PYTHON_CPPFLAGS=$new_CPPFLAGS
8338 PYTHON_LIBS=$new_LIBS
8340 rm -f core conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342 CPPFLAGS=$save_CPPFLAGS
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8345 $as_echo "${found_usable_python}" >&6; }
8349 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8352 elif test "${have_python_config}" != failed; then
8353 if test "${have_libpython}" = no; then
8357 new_CPPFLAGS=${python_includes}
8358 new_LIBS="${python_libs} -lpython2.7"
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8360 $as_echo_n "checking for ${version}... " >&6; }
8361 save_CPPFLAGS=$CPPFLAGS
8363 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8364 LIBS="$LIBS $new_LIBS"
8365 found_usable_python=no
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8377 if ac_fn_c_try_link "$LINENO"; then :
8378 have_libpython=${version}
8379 found_usable_python=yes
8380 PYTHON_CPPFLAGS=$new_CPPFLAGS
8381 PYTHON_LIBS=$new_LIBS
8383 rm -f core conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext conftest.$ac_ext
8385 CPPFLAGS=$save_CPPFLAGS
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8388 $as_echo "${found_usable_python}" >&6; }
8391 if test "${have_libpython}" = no; then
8395 new_CPPFLAGS=${python_includes}
8396 new_LIBS="${python_libs} -lpython2.6"
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8398 $as_echo_n "checking for ${version}... " >&6; }
8399 save_CPPFLAGS=$CPPFLAGS
8401 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8402 LIBS="$LIBS $new_LIBS"
8403 found_usable_python=no
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8415 if ac_fn_c_try_link "$LINENO"; then :
8416 have_libpython=${version}
8417 found_usable_python=yes
8418 PYTHON_CPPFLAGS=$new_CPPFLAGS
8419 PYTHON_LIBS=$new_LIBS
8421 rm -f core conftest.err conftest.$ac_objext \
8422 conftest$ac_exeext conftest.$ac_ext
8423 CPPFLAGS=$save_CPPFLAGS
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8426 $as_echo "${found_usable_python}" >&6; }
8429 if test ${have_libpython} = no; then
8433 new_CPPFLAGS=${python_includes}
8434 new_LIBS="${python_libs} -lpython2.5"
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8436 $as_echo_n "checking for ${version}... " >&6; }
8437 save_CPPFLAGS=$CPPFLAGS
8439 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8440 LIBS="$LIBS $new_LIBS"
8441 found_usable_python=no
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8453 if ac_fn_c_try_link "$LINENO"; then :
8454 have_libpython=${version}
8455 found_usable_python=yes
8456 PYTHON_CPPFLAGS=$new_CPPFLAGS
8457 PYTHON_LIBS=$new_LIBS
8459 rm -f core conftest.err conftest.$ac_objext \
8460 conftest$ac_exeext conftest.$ac_ext
8461 CPPFLAGS=$save_CPPFLAGS
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8464 $as_echo "${found_usable_python}" >&6; }
8467 if test ${have_libpython} = no; then
8471 new_CPPFLAGS=${python_includes}
8472 new_LIBS="${python_libs} -lpython2.4"
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8474 $as_echo_n "checking for ${version}... " >&6; }
8475 save_CPPFLAGS=$CPPFLAGS
8477 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8478 LIBS="$LIBS $new_LIBS"
8479 found_usable_python=no
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8491 if ac_fn_c_try_link "$LINENO"; then :
8492 have_libpython=${version}
8493 found_usable_python=yes
8494 PYTHON_CPPFLAGS=$new_CPPFLAGS
8495 PYTHON_LIBS=$new_LIBS
8497 rm -f core conftest.err conftest.$ac_objext \
8498 conftest$ac_exeext conftest.$ac_ext
8499 CPPFLAGS=$save_CPPFLAGS
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8502 $as_echo "${found_usable_python}" >&6; }
8506 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8508 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8510 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8512 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8514 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8516 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8518 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8520 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8524 if test "${have_libpython}" = no; then
8525 case "${with_python}" in
8527 as_fn_error "python is missing or unusable" "$LINENO" 5
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8531 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8534 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8538 if test -n "${python_prefix}"; then
8540 cat >>confdefs.h <<_ACEOF
8541 #define WITH_PYTHON_PATH "${python_prefix}"
8545 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8546 if test "x$prefix" = xNONE; then
8547 test_prefix=/usr/local
8552 test_prefix=$exec_prefix
8555 case ${python_prefix} in
8556 "${test_prefix}"|"${test_prefix}/"*|\
8557 '${exec_prefix}'|'${exec_prefix}/'*)
8562 cat >>confdefs.h <<_ACEOF
8563 #define PYTHON_PATH_RELOCATABLE $value
8571 if test "${have_libpython}" != no; then
8573 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8575 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8576 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8577 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8578 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8579 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8581 # Flags needed to compile Python code (taken from python-config --cflags).
8582 # We cannot call python-config directly because it will output whatever was
8583 # used when compiling the Python interpreter itself, including flags which
8584 # would make the python-related objects be compiled differently from the
8585 # rest of GDB (e.g., -O2 and -fPIC).
8586 if test "${GCC}" = yes; then
8587 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8590 if test "x${tentative_python_cflags}" != x; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8592 $as_echo_n "checking compiler flags for python code... " >&6; }
8593 for flag in ${tentative_python_cflags}; do
8594 # Check that the compiler accepts it
8595 saved_CFLAGS="$CFLAGS"
8596 CFLAGS="$CFLAGS $flag"
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8608 if ac_fn_c_try_compile "$LINENO"; then :
8609 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 CFLAGS="$saved_CFLAGS"
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8615 $as_echo "${PYTHON_CFLAGS}" >&6; }
8618 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8620 # #define siginfo __siginfo
8622 # The problem is that including Python causes some XOPEN macros to be
8623 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8624 # to false. So, we work around this issue by defining siginfo ourself
8625 # though the command-line.
8627 # On x64 Windows, Python's include headers, and pyconfig.h in
8628 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8629 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8630 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8631 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8632 # The issue was reported to the Python community, but still isn't
8633 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8636 irix*) if test "${GCC}" = yes; then
8637 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
8641 if test "${GCC}" = yes; then
8642 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
8647 # Note that "python -m threading" cannot be used to check for
8648 # threading support due to a bug in Python 2.7.3
8649 # (http://bugs.python.org/issue15567).
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8651 $as_echo_n "checking whether python supports threads... " >&6; }
8652 saved_CPPFLAGS="${CPPFLAGS}"
8653 CPPFLAGS="${PYTHON_CPPFLAGS}"
8654 # Note that the test is reversed so that python_has_threads=yes on
8655 # unexpected failures.
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8665 if ac_fn_c_try_cpp "$LINENO"; then :
8666 python_has_threads=no
8668 python_has_threads=yes
8670 rm -f conftest.err conftest.$ac_ext
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8672 $as_echo "${python_has_threads}" >&6; }
8673 CPPFLAGS="${saved_CPPFLAGS}"
8675 # Even if Python support is not compiled in, we need to have this file
8676 # included so that the "python" command, et.al., still exists.
8677 CONFIG_OBS="$CONFIG_OBS python.o"
8678 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
8684 # --------------------- #
8685 # Check for libmcheck. #
8686 # --------------------- #
8688 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
8689 # but turn it off if Python is enabled with threads, since -lmcheck is
8690 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
8692 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
8693 && $development; then
8694 libmcheck_default=yes
8696 libmcheck_default=no
8699 # Check whether --enable-libmcheck was given.
8700 if test "${enable_libmcheck+set}" = set; then :
8701 enableval=$enable_libmcheck; case "${enableval}" in
8702 yes | y) ENABLE_LIBMCHECK="yes" ;;
8703 no | n) ENABLE_LIBMCHECK="no" ;;
8704 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
8709 if test -z "${ENABLE_LIBMCHECK}"; then
8710 ENABLE_LIBMCHECK=${libmcheck_default}
8713 if test "$ENABLE_LIBMCHECK" = "yes" ; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
8715 $as_echo_n "checking for main in -lmcheck... " >&6; }
8716 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
8717 $as_echo_n "(cached) " >&6
8719 ac_check_lib_save_LIBS=$LIBS
8720 LIBS="-lmcheck $LIBS"
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8733 if ac_fn_c_try_link "$LINENO"; then :
8734 ac_cv_lib_mcheck_main=yes
8736 ac_cv_lib_mcheck_main=no
8738 rm -f core conftest.err conftest.$ac_objext \
8739 conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_check_lib_save_LIBS
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
8743 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
8744 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
8745 cat >>confdefs.h <<_ACEOF
8746 #define HAVE_LIBMCHECK 1
8749 LIBS="-lmcheck $LIBS"
8756 if test "$ENABLE_LIBMCHECK" = "yes" \
8757 -a "${have_libpython}" != "no" \
8758 -a "${python_has_threads}" = "yes" ; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
8760 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
8763 # ------------------------- #
8764 # Checks for header files. #
8765 # ------------------------- #
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8768 $as_echo_n "checking for ANSI C header files... " >&6; }
8769 if test "${ac_cv_header_stdc+set}" = set; then :
8770 $as_echo_n "(cached) " >&6
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8787 if ac_fn_c_try_compile "$LINENO"; then :
8788 ac_cv_header_stdc=yes
8790 ac_cv_header_stdc=no
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 if test $ac_cv_header_stdc = yes; then
8795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8802 $EGREP "memchr" >/dev/null 2>&1; then :
8805 ac_cv_header_stdc=no
8811 if test $ac_cv_header_stdc = yes; then
8812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8819 $EGREP "free" >/dev/null 2>&1; then :
8822 ac_cv_header_stdc=no
8828 if test $ac_cv_header_stdc = yes; then
8829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8830 if test "$cross_compiling" = yes; then :
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8837 #if ((' ' & 0x0FF) == 0x020)
8838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8841 # define ISLOWER(c) \
8842 (('a' <= (c) && (c) <= 'i') \
8843 || ('j' <= (c) && (c) <= 'r') \
8844 || ('s' <= (c) && (c) <= 'z'))
8845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8853 for (i = 0; i < 256; i++)
8854 if (XOR (islower (i), ISLOWER (i))
8855 || toupper (i) != TOUPPER (i))
8860 if ac_fn_c_try_run "$LINENO"; then :
8863 ac_cv_header_stdc=no
8865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8866 conftest.$ac_objext conftest.beam conftest.$ac_ext
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8872 $as_echo "$ac_cv_header_stdc" >&6; }
8873 if test $ac_cv_header_stdc = yes; then
8875 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8879 # elf_hp.h is for HP/UX 64-bit shared library support.
8880 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
8883 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
8884 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
8885 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
8886 termios.h termio.h \
8890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8892 eval as_val=\$$as_ac_Header
8893 if test "x$as_val" = x""yes; then :
8894 cat >>confdefs.h <<_ACEOF
8895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8902 for ac_header in sys/proc.h
8904 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8905 # include <sys/param.h>
8909 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
8910 cat >>confdefs.h <<_ACEOF
8911 #define HAVE_SYS_PROC_H 1
8918 for ac_header in sys/user.h
8920 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8921 # include <sys/param.h>
8925 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
8926 cat >>confdefs.h <<_ACEOF
8927 #define HAVE_SYS_USER_H 1
8935 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8936 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8937 # think that we don't have <curses.h> if we're using GCC.
8940 if test "$GCC" = yes; then
8942 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8946 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
8948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8949 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8950 eval as_val=\$$as_ac_Header
8951 if test "x$as_val" = x""yes; then :
8952 cat >>confdefs.h <<_ACEOF
8953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8960 for ac_header in term.h
8962 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
8963 # include <curses.h>
8967 if test "x$ac_cv_header_term_h" = x""yes; then :
8968 cat >>confdefs.h <<_ACEOF
8969 #define HAVE_TERM_H 1
8977 # ------------------------- #
8978 # Checks for declarations. #
8979 # ------------------------- #
8981 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
8982 if test "x$ac_cv_have_decl_free" = x""yes; then :
8988 cat >>confdefs.h <<_ACEOF
8989 #define HAVE_DECL_FREE $ac_have_decl
8991 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
8992 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
8998 cat >>confdefs.h <<_ACEOF
8999 #define HAVE_DECL_MALLOC $ac_have_decl
9001 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9002 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
9008 cat >>confdefs.h <<_ACEOF
9009 #define HAVE_DECL_REALLOC $ac_have_decl
9011 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9012 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
9018 cat >>confdefs.h <<_ACEOF
9019 #define HAVE_DECL_SNPRINTF $ac_have_decl
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9024 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9025 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9026 $as_echo_n "(cached) " >&6
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9039 if ac_fn_c_try_link "$LINENO"; then :
9040 am_cv_val_LC_MESSAGES=yes
9042 am_cv_val_LC_MESSAGES=no
9044 rm -f core conftest.err conftest.$ac_objext \
9045 conftest$ac_exeext conftest.$ac_ext
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9048 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9049 if test $am_cv_val_LC_MESSAGES = yes; then
9051 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9056 # ----------------------- #
9057 # Checks for structures. #
9058 # ----------------------- #
9060 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9061 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9063 cat >>confdefs.h <<_ACEOF
9064 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9069 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9070 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9072 cat >>confdefs.h <<_ACEOF
9073 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9080 # ------------------ #
9081 # Checks for types. #
9082 # ------------------ #
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9085 $as_echo_n "checking return type of signal handlers... " >&6; }
9086 if test "${ac_cv_type_signal+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091 #include <sys/types.h>
9097 return *(signal (0, 0)) (0) == 1;
9102 if ac_fn_c_try_compile "$LINENO"; then :
9103 ac_cv_type_signal=int
9105 ac_cv_type_signal=void
9107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9110 $as_echo "$ac_cv_type_signal" >&6; }
9112 cat >>confdefs.h <<_ACEOF
9113 #define RETSIGTYPE $ac_cv_type_signal
9117 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9118 #include <sys/socket.h>
9121 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9123 cat >>confdefs.h <<_ACEOF
9124 #define HAVE_SOCKLEN_T 1
9131 # ------------------------------------- #
9132 # Checks for compiler characteristics. #
9133 # ------------------------------------- #
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9136 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9137 if test "${ac_cv_c_const+set}" = set; then :
9138 $as_echo_n "(cached) " >&6
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9146 /* FIXME: Include the comments suggested by Paul. */
9148 /* Ultrix mips cc rejects this. */
9149 typedef int charset[2];
9151 /* SunOS 4.1.1 cc rejects this. */
9152 char const *const *pcpcc;
9154 /* NEC SVR4.0.2 mips cc rejects this. */
9155 struct point {int x, y;};
9156 static struct point const zero = {0,0};
9157 /* AIX XL C 1.02.0.0 rejects this.
9158 It does not let you subtract one const X* pointer from another in
9159 an arm of an if-expression whose if-part is not a constant
9161 const char *g = "string";
9162 pcpcc = &g + (g ? g-g : 0);
9163 /* HPUX 7.0 cc rejects these. */
9165 ppc = (char**) pcpcc;
9166 pcpcc = (char const *const *) ppc;
9167 { /* SCO 3.2v4 cc rejects this. */
9169 char const *s = 0 ? (char *) 0 : (char const *) 0;
9174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9176 const int *foo = &x[0];
9179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9180 typedef const int *iptr;
9184 { /* AIX XL C 1.02.0.0 rejects this saying
9185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9186 struct s { int j; const int *ap[3]; };
9187 struct s *b; b->j = 5;
9189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9193 return !cs[0] && !zero.x;
9200 if ac_fn_c_try_compile "$LINENO"; then :
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9208 $as_echo "$ac_cv_c_const" >&6; }
9209 if test $ac_cv_c_const = no; then
9211 $as_echo "#define const /**/" >>confdefs.h
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9216 $as_echo_n "checking for inline... " >&6; }
9217 if test "${ac_cv_c_inline+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9221 for ac_kw in inline __inline__ __inline; do
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9226 static $ac_kw foo_t static_foo () {return 0; }
9227 $ac_kw foo_t foo () {return 0; }
9231 if ac_fn_c_try_compile "$LINENO"; then :
9232 ac_cv_c_inline=$ac_kw
9234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 test "$ac_cv_c_inline" != no && break
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9240 $as_echo "$ac_cv_c_inline" >&6; }
9242 case $ac_cv_c_inline in
9245 case $ac_cv_c_inline in
9247 *) ac_val=$ac_cv_c_inline;;
9249 cat >>confdefs.h <<_ACEOF
9251 #define inline $ac_val
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9258 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9259 if test "${ac_cv_c_bigendian+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9262 ac_cv_c_bigendian=unknown
9263 # See if we're dealing with a universal compiler.
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9266 #ifndef __APPLE_CC__
9267 not a universal capable compiler
9272 if ac_fn_c_try_compile "$LINENO"; then :
9274 # Check for potential -arch flags. It is not universal unless
9275 # there are at least two -arch flags with different values.
9278 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9279 if test -n "$ac_prev"; then
9281 i?86 | x86_64 | ppc | ppc64)
9282 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9285 ac_cv_c_bigendian=universal
9291 elif test "x$ac_word" = "x-arch"; then
9296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297 if test $ac_cv_c_bigendian = unknown; then
9298 # See if sys/param.h defines the BYTE_ORDER macro.
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #include <sys/types.h>
9302 #include <sys/param.h>
9307 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9308 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9317 if ac_fn_c_try_compile "$LINENO"; then :
9318 # It does; now see whether it defined to BIG_ENDIAN or not.
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321 #include <sys/types.h>
9322 #include <sys/param.h>
9327 #if BYTE_ORDER != BIG_ENDIAN
9335 if ac_fn_c_try_compile "$LINENO"; then :
9336 ac_cv_c_bigendian=yes
9338 ac_cv_c_bigendian=no
9340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344 if test $ac_cv_c_bigendian = unknown; then
9345 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9353 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9361 if ac_fn_c_try_compile "$LINENO"; then :
9362 # It does; now see whether it defined to _BIG_ENDIAN or not.
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9378 if ac_fn_c_try_compile "$LINENO"; then :
9379 ac_cv_c_bigendian=yes
9381 ac_cv_c_bigendian=no
9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9387 if test $ac_cv_c_bigendian = unknown; then
9388 # Compile a test program.
9389 if test "$cross_compiling" = yes; then :
9390 # Try to guess by grepping values from an object file.
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 short int ascii_mm[] =
9394 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9395 short int ascii_ii[] =
9396 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9397 int use_ascii (int i) {
9398 return ascii_mm[i] + ascii_ii[i];
9400 short int ebcdic_ii[] =
9401 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9402 short int ebcdic_mm[] =
9403 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9404 int use_ebcdic (int i) {
9405 return ebcdic_mm[i] + ebcdic_ii[i];
9412 return use_ascii (foo) == use_ebcdic (foo);
9417 if ac_fn_c_try_compile "$LINENO"; then :
9418 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9419 ac_cv_c_bigendian=yes
9421 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9422 if test "$ac_cv_c_bigendian" = unknown; then
9423 ac_cv_c_bigendian=no
9425 # finding both strings is unlikely to happen, but who knows?
9426 ac_cv_c_bigendian=unknown
9430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 $ac_includes_default
9439 /* Are we little or big endian? From Harbison&Steele. */
9443 char c[sizeof (long int)];
9446 return u.c[sizeof (long int) - 1] == 1;
9452 if ac_fn_c_try_run "$LINENO"; then :
9453 ac_cv_c_bigendian=no
9455 ac_cv_c_bigendian=yes
9457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9458 conftest.$ac_objext conftest.beam conftest.$ac_ext
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9464 $as_echo "$ac_cv_c_bigendian" >&6; }
9465 case $ac_cv_c_bigendian in #(
9467 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9473 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9477 as_fn_error "unknown endianness
9478 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9482 # ------------------------------ #
9483 # Checks for library functions. #
9484 # ------------------------------ #
9486 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9487 # for constant arguments. Useless!
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9489 $as_echo_n "checking for working alloca.h... " >&6; }
9490 if test "${ac_cv_working_alloca_h+set}" = set; then :
9491 $as_echo_n "(cached) " >&6
9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9499 char *p = (char *) alloca (2 * sizeof (int));
9505 if ac_fn_c_try_link "$LINENO"; then :
9506 ac_cv_working_alloca_h=yes
9508 ac_cv_working_alloca_h=no
9510 rm -f core conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9514 $as_echo "$ac_cv_working_alloca_h" >&6; }
9515 if test $ac_cv_working_alloca_h = yes; then
9517 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9522 $as_echo_n "checking for alloca... " >&6; }
9523 if test "${ac_cv_func_alloca_works+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9529 # define alloca __builtin_alloca
9532 # include <malloc.h>
9533 # define alloca _alloca
9535 # ifdef HAVE_ALLOCA_H
9536 # include <alloca.h>
9541 # ifndef alloca /* predefined by HP cc +Olibcalls */
9552 char *p = (char *) alloca (1);
9558 if ac_fn_c_try_link "$LINENO"; then :
9559 ac_cv_func_alloca_works=yes
9561 ac_cv_func_alloca_works=no
9563 rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9567 $as_echo "$ac_cv_func_alloca_works" >&6; }
9569 if test $ac_cv_func_alloca_works = yes; then
9571 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9574 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9575 # that cause trouble. Some versions do not even contain alloca or
9576 # contain a buggy version. If you still want to use their alloca,
9577 # use ar to extract alloca.o from them instead of compiling alloca.c.
9579 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9581 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9585 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9586 if test "${ac_cv_os_cray+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591 #if defined CRAY && ! defined CRAY2
9598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9599 $EGREP "webecray" >/dev/null 2>&1; then :
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9608 $as_echo "$ac_cv_os_cray" >&6; }
9609 if test $ac_cv_os_cray = yes; then
9610 for ac_func in _getb67 GETB67 getb67; do
9611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9613 eval as_val=\$$as_ac_var
9614 if test "x$as_val" = x""yes; then :
9616 cat >>confdefs.h <<_ACEOF
9617 #define CRAY_STACKSEG_END $ac_func
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9627 $as_echo_n "checking stack direction for C alloca... " >&6; }
9628 if test "${ac_cv_c_stack_direction+set}" = set; then :
9629 $as_echo_n "(cached) " >&6
9631 if test "$cross_compiling" = yes; then :
9632 ac_cv_c_stack_direction=0
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636 $ac_includes_default
9638 find_stack_direction ()
9640 static char *addr = 0;
9645 return find_stack_direction ();
9648 return (&dummy > addr) ? 1 : -1;
9654 return find_stack_direction () < 0;
9657 if ac_fn_c_try_run "$LINENO"; then :
9658 ac_cv_c_stack_direction=1
9660 ac_cv_c_stack_direction=-1
9662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9663 conftest.$ac_objext conftest.beam conftest.$ac_ext
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9668 $as_echo "$ac_cv_c_stack_direction" >&6; }
9669 cat >>confdefs.h <<_ACEOF
9670 #define STACK_DIRECTION $ac_cv_c_stack_direction
9676 for ac_header in stdlib.h unistd.h
9678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9679 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9680 eval as_val=\$$as_ac_Header
9681 if test "x$as_val" = x""yes; then :
9682 cat >>confdefs.h <<_ACEOF
9683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9690 for ac_func in getpagesize
9692 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9693 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9694 cat >>confdefs.h <<_ACEOF
9695 #define HAVE_GETPAGESIZE 1
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9702 $as_echo_n "checking for working mmap... " >&6; }
9703 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9704 $as_echo_n "(cached) " >&6
9706 if test "$cross_compiling" = yes; then :
9707 ac_cv_func_mmap_fixed_mapped=no
9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9711 $ac_includes_default
9712 /* malloc might have been renamed as rpl_malloc. */
9715 /* Thanks to Mike Haertel and Jim Avera for this test.
9716 Here is a matrix of mmap possibilities:
9717 mmap private not fixed
9718 mmap private fixed at somewhere currently unmapped
9719 mmap private fixed at somewhere already mapped
9720 mmap shared not fixed
9721 mmap shared fixed at somewhere currently unmapped
9722 mmap shared fixed at somewhere already mapped
9723 For private mappings, we should verify that changes cannot be read()
9724 back from the file, nor mmap's back from the file at a different
9725 address. (There have been systems where private was not correctly
9726 implemented like the infamous i386 svr4.0, and systems where the
9727 VM page cache was not coherent with the file system buffer cache
9728 like early versions of FreeBSD and possibly contemporary NetBSD.)
9729 For shared mappings, we should conversely verify that changes get
9730 propagated back to all the places they're supposed to be.
9732 Grep wants private fixed already mapped.
9733 The main things grep needs to know about mmap are:
9734 * does it exist and is it safe to write into the mmap'd area
9735 * how to use it (BSD variants) */
9738 #include <sys/mman.h>
9740 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9744 /* This mess was copied from the GNU getpagesize.h. */
9745 #ifndef HAVE_GETPAGESIZE
9746 /* Assume that all systems that can run configure have sys/param.h. */
9747 # ifndef HAVE_SYS_PARAM_H
9748 # define HAVE_SYS_PARAM_H 1
9751 # ifdef _SC_PAGESIZE
9752 # define getpagesize() sysconf(_SC_PAGESIZE)
9753 # else /* no _SC_PAGESIZE */
9754 # ifdef HAVE_SYS_PARAM_H
9755 # include <sys/param.h>
9756 # ifdef EXEC_PAGESIZE
9757 # define getpagesize() EXEC_PAGESIZE
9758 # else /* no EXEC_PAGESIZE */
9760 # define getpagesize() NBPG * CLSIZE
9763 # endif /* no CLSIZE */
9764 # else /* no NBPG */
9766 # define getpagesize() NBPC
9767 # else /* no NBPC */
9769 # define getpagesize() PAGESIZE
9770 # endif /* PAGESIZE */
9771 # endif /* no NBPC */
9772 # endif /* no NBPG */
9773 # endif /* no EXEC_PAGESIZE */
9774 # else /* no HAVE_SYS_PARAM_H */
9775 # define getpagesize() 8192 /* punt totally */
9776 # endif /* no HAVE_SYS_PARAM_H */
9777 # endif /* no _SC_PAGESIZE */
9779 #endif /* no HAVE_GETPAGESIZE */
9784 char *data, *data2, *data3;
9788 pagesize = getpagesize ();
9790 /* First, make a file with some known garbage in it. */
9791 data = (char *) malloc (pagesize);
9794 for (i = 0; i < pagesize; ++i)
9795 *(data + i) = rand ();
9797 fd = creat ("conftest.mmap", 0600);
9800 if (write (fd, data, pagesize) != pagesize)
9804 /* Next, try to mmap the file at a fixed address which already has
9805 something else allocated at it. If we can, also make sure that
9806 we see the same garbage. */
9807 fd = open ("conftest.mmap", O_RDWR);
9810 data2 = (char *) malloc (2 * pagesize);
9813 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9814 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9815 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9817 for (i = 0; i < pagesize; ++i)
9818 if (*(data + i) != *(data2 + i))
9821 /* Finally, make sure that changes to the mapped area do not
9822 percolate back to the file as seen by read(). (This is a bug on
9823 some variants of i386 svr4.0.) */
9824 for (i = 0; i < pagesize; ++i)
9825 *(data2 + i) = *(data2 + i) + 1;
9826 data3 = (char *) malloc (pagesize);
9829 if (read (fd, data3, pagesize) != pagesize)
9831 for (i = 0; i < pagesize; ++i)
9832 if (*(data + i) != *(data3 + i))
9838 if ac_fn_c_try_run "$LINENO"; then :
9839 ac_cv_func_mmap_fixed_mapped=yes
9841 ac_cv_func_mmap_fixed_mapped=no
9843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9844 conftest.$ac_objext conftest.beam conftest.$ac_ext
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9849 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9850 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9852 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9857 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9858 if test "x$ac_cv_type_pid_t" = x""yes; then :
9862 cat >>confdefs.h <<_ACEOF
9868 for ac_header in vfork.h
9870 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9871 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9872 cat >>confdefs.h <<_ACEOF
9873 #define HAVE_VFORK_H 1
9880 for ac_func in fork vfork
9882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9883 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9884 eval as_val=\$$as_ac_var
9885 if test "x$as_val" = x""yes; then :
9886 cat >>confdefs.h <<_ACEOF
9887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9893 if test "x$ac_cv_func_fork" = xyes; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9895 $as_echo_n "checking for working fork... " >&6; }
9896 if test "${ac_cv_func_fork_works+set}" = set; then :
9897 $as_echo_n "(cached) " >&6
9899 if test "$cross_compiling" = yes; then :
9900 ac_cv_func_fork_works=cross
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 $ac_includes_default
9909 /* By Ruediger Kuhlmann. */
9916 if ac_fn_c_try_run "$LINENO"; then :
9917 ac_cv_func_fork_works=yes
9919 ac_cv_func_fork_works=no
9921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9922 conftest.$ac_objext conftest.beam conftest.$ac_ext
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9927 $as_echo "$ac_cv_func_fork_works" >&6; }
9930 ac_cv_func_fork_works=$ac_cv_func_fork
9932 if test "x$ac_cv_func_fork_works" = xcross; then
9934 *-*-amigaos* | *-*-msdosdjgpp*)
9935 # Override, as these systems have only a dummy fork() stub
9936 ac_cv_func_fork_works=no
9939 ac_cv_func_fork_works=yes
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9943 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9945 ac_cv_func_vfork_works=$ac_cv_func_vfork
9946 if test "x$ac_cv_func_vfork" = xyes; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9948 $as_echo_n "checking for working vfork... " >&6; }
9949 if test "${ac_cv_func_vfork_works+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9952 if test "$cross_compiling" = yes; then :
9953 ac_cv_func_vfork_works=cross
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957 /* Thanks to Paul Eggert for this test. */
9958 $ac_includes_default
9959 #include <sys/wait.h>
9963 /* On some sparc systems, changes by the child to local and incoming
9964 argument registers are propagated back to the parent. The compiler
9965 is told about this with #include <vfork.h>, but some compilers
9966 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9967 static variable whose address is put into a register that is
9968 clobbered by the vfork. */
9971 sparc_address_test (int arg)
9973 sparc_address_test (arg) int arg;
9994 pid_t parent = getpid ();
9997 sparc_address_test (0);
10002 /* Here is another test for sparc vfork register problems. This
10003 test uses lots of local variables, at least as many local
10004 variables as main has allocated so far including compiler
10005 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10006 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10007 reuse the register of parent for one of the local variables,
10008 since it will think that parent can't possibly be used any more
10009 in this routine. Assigning to the local variable will thus
10010 munge parent in the parent process. */
10012 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10013 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10014 /* Convince the compiler that p..p7 are live; otherwise, it might
10015 use the same hardware register for all 8 local variables. */
10016 if (p != p1 || p != p2 || p != p3 || p != p4
10017 || p != p5 || p != p6 || p != p7)
10020 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10021 from child file descriptors. If the child closes a descriptor
10022 before it execs or exits, this munges the parent's descriptor
10023 as well. Test for this by closing stdout in the child. */
10024 _exit(close(fileno(stdout)) != 0);
10029 while (wait(&status) != child)
10032 /* Was there some problem with vforking? */
10035 /* Did the child fail? (This shouldn't happen.) */
10038 /* Did the vfork/compiler bug occur? */
10039 || parent != getpid()
10041 /* Did the file descriptor bug occur? */
10042 || fstat(fileno(stdout), &st) != 0
10047 if ac_fn_c_try_run "$LINENO"; then :
10048 ac_cv_func_vfork_works=yes
10050 ac_cv_func_vfork_works=no
10052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10053 conftest.$ac_objext conftest.beam conftest.$ac_ext
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10058 $as_echo "$ac_cv_func_vfork_works" >&6; }
10061 if test "x$ac_cv_func_fork_works" = xcross; then
10062 ac_cv_func_vfork_works=$ac_cv_func_vfork
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10064 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10067 if test "x$ac_cv_func_vfork_works" = xyes; then
10069 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10073 $as_echo "#define vfork fork" >>confdefs.h
10076 if test "x$ac_cv_func_fork_works" = xyes; then
10078 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10082 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
10083 pipe poll pread pread64 pwrite readlink resize_term \
10084 sbrk setpgid setpgrp setsid \
10085 sigaction sigprocmask sigsetmask socketpair \
10086 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10087 setrlimit getrlimit posix_madvise waitpid lstat \
10090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10092 eval as_val=\$$as_ac_var
10093 if test "x$as_val" = x""yes; then :
10094 cat >>confdefs.h <<_ACEOF
10095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10103 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10104 if test "${am_cv_langinfo_codeset+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109 #include <langinfo.h>
10113 char* cs = nl_langinfo(CODESET);
10118 if ac_fn_c_try_link "$LINENO"; then :
10119 am_cv_langinfo_codeset=yes
10121 am_cv_langinfo_codeset=no
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10128 $as_echo "$am_cv_langinfo_codeset" >&6; }
10129 if test $am_cv_langinfo_codeset = yes; then
10131 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10137 $as_echo_n "checking for ANSI C header files... " >&6; }
10138 if test "${ac_cv_header_stdc+set}" = set; then :
10139 $as_echo_n "(cached) " >&6
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 #include <stdlib.h>
10144 #include <stdarg.h>
10145 #include <string.h>
10156 if ac_fn_c_try_compile "$LINENO"; then :
10157 ac_cv_header_stdc=yes
10159 ac_cv_header_stdc=no
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 if test $ac_cv_header_stdc = yes; then
10164 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10167 #include <string.h>
10170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10171 $EGREP "memchr" >/dev/null 2>&1; then :
10174 ac_cv_header_stdc=no
10180 if test $ac_cv_header_stdc = yes; then
10181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 #include <stdlib.h>
10187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10188 $EGREP "free" >/dev/null 2>&1; then :
10191 ac_cv_header_stdc=no
10197 if test $ac_cv_header_stdc = yes; then
10198 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10199 if test "$cross_compiling" = yes; then :
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10205 #include <stdlib.h>
10206 #if ((' ' & 0x0FF) == 0x020)
10207 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10208 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10210 # define ISLOWER(c) \
10211 (('a' <= (c) && (c) <= 'i') \
10212 || ('j' <= (c) && (c) <= 'r') \
10213 || ('s' <= (c) && (c) <= 'z'))
10214 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10217 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10222 for (i = 0; i < 256; i++)
10223 if (XOR (islower (i), ISLOWER (i))
10224 || toupper (i) != TOUPPER (i))
10229 if ac_fn_c_try_run "$LINENO"; then :
10232 ac_cv_header_stdc=no
10234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10235 conftest.$ac_objext conftest.beam conftest.$ac_ext
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10241 $as_echo "$ac_cv_header_stdc" >&6; }
10242 if test $ac_cv_header_stdc = yes; then
10244 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10248 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10249 # for constant arguments. Useless!
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10251 $as_echo_n "checking for working alloca.h... " >&6; }
10252 if test "${ac_cv_working_alloca_h+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10257 #include <alloca.h>
10261 char *p = (char *) alloca (2 * sizeof (int));
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 ac_cv_working_alloca_h=yes
10270 ac_cv_working_alloca_h=no
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10276 $as_echo "$ac_cv_working_alloca_h" >&6; }
10277 if test $ac_cv_working_alloca_h = yes; then
10279 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10284 $as_echo_n "checking for alloca... " >&6; }
10285 if test "${ac_cv_func_alloca_works+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10291 # define alloca __builtin_alloca
10294 # include <malloc.h>
10295 # define alloca _alloca
10297 # ifdef HAVE_ALLOCA_H
10298 # include <alloca.h>
10303 # ifndef alloca /* predefined by HP cc +Olibcalls */
10314 char *p = (char *) alloca (1);
10320 if ac_fn_c_try_link "$LINENO"; then :
10321 ac_cv_func_alloca_works=yes
10323 ac_cv_func_alloca_works=no
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10329 $as_echo "$ac_cv_func_alloca_works" >&6; }
10331 if test $ac_cv_func_alloca_works = yes; then
10333 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10336 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10337 # that cause trouble. Some versions do not even contain alloca or
10338 # contain a buggy version. If you still want to use their alloca,
10339 # use ar to extract alloca.o from them instead of compiling alloca.c.
10341 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10343 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10347 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10348 if test "${ac_cv_os_cray+set}" = set; then :
10349 $as_echo_n "(cached) " >&6
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353 #if defined CRAY && ! defined CRAY2
10360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10361 $EGREP "webecray" >/dev/null 2>&1; then :
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10370 $as_echo "$ac_cv_os_cray" >&6; }
10371 if test $ac_cv_os_cray = yes; then
10372 for ac_func in _getb67 GETB67 getb67; do
10373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10374 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10375 eval as_val=\$$as_ac_var
10376 if test "x$as_val" = x""yes; then :
10378 cat >>confdefs.h <<_ACEOF
10379 #define CRAY_STACKSEG_END $ac_func
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10389 $as_echo_n "checking stack direction for C alloca... " >&6; }
10390 if test "${ac_cv_c_stack_direction+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10393 if test "$cross_compiling" = yes; then :
10394 ac_cv_c_stack_direction=0
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398 $ac_includes_default
10400 find_stack_direction ()
10402 static char *addr = 0;
10407 return find_stack_direction ();
10410 return (&dummy > addr) ? 1 : -1;
10416 return find_stack_direction () < 0;
10419 if ac_fn_c_try_run "$LINENO"; then :
10420 ac_cv_c_stack_direction=1
10422 ac_cv_c_stack_direction=-1
10424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10425 conftest.$ac_objext conftest.beam conftest.$ac_ext
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10430 $as_echo "$ac_cv_c_stack_direction" >&6; }
10431 cat >>confdefs.h <<_ACEOF
10432 #define STACK_DIRECTION $ac_cv_c_stack_direction
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10441 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10442 if test "${am_cv_langinfo_codeset+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447 #include <langinfo.h>
10451 char* cs = nl_langinfo(CODESET);
10456 if ac_fn_c_try_link "$LINENO"; then :
10457 am_cv_langinfo_codeset=yes
10459 am_cv_langinfo_codeset=no
10461 rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10466 $as_echo "$am_cv_langinfo_codeset" >&6; }
10467 if test $am_cv_langinfo_codeset = yes; then
10469 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10474 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
10476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10478 eval as_val=\$$as_ac_Header
10479 if test "x$as_val" = x""yes; then :
10480 cat >>confdefs.h <<_ACEOF
10481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10489 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
10491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10492 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10493 eval as_val=\$$as_ac_var
10494 if test "x$as_val" = x""yes; then :
10495 cat >>confdefs.h <<_ACEOF
10496 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10503 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
10504 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
10510 cat >>confdefs.h <<_ACEOF
10511 #define HAVE_DECL_STRERROR $ac_have_decl
10513 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
10514 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
10520 cat >>confdefs.h <<_ACEOF
10521 #define HAVE_DECL_STRSTR $ac_have_decl
10526 # Check the return and argument types of ptrace. No canned test for
10527 # this, so roll our own.
10528 gdb_ptrace_headers='
10529 #include <sys/types.h>
10530 #if HAVE_SYS_PTRACE_H
10531 # include <sys/ptrace.h>
10534 # include <unistd.h>
10537 # There is no point in checking if we don't have a prototype.
10538 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10540 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
10546 cat >>confdefs.h <<_ACEOF
10547 #define HAVE_DECL_PTRACE $ac_have_decl
10549 if test $ac_have_decl = 1; then :
10553 : ${gdb_cv_func_ptrace_ret='int'}
10554 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10558 # Check return type. Varargs (used on GNU/Linux) conflict with the
10559 # empty argument list, so check for that explicitly.
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10561 $as_echo_n "checking return type of ptrace... " >&6; }
10562 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10567 $gdb_ptrace_headers
10571 extern long ptrace (enum __ptrace_request, ...);
10576 if ac_fn_c_try_compile "$LINENO"; then :
10577 gdb_cv_func_ptrace_ret='long'
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10581 $gdb_ptrace_headers
10585 extern int ptrace ();
10590 if ac_fn_c_try_compile "$LINENO"; then :
10591 gdb_cv_func_ptrace_ret='int'
10593 gdb_cv_func_ptrace_ret='long'
10595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10600 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10602 cat >>confdefs.h <<_ACEOF
10603 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10606 # Check argument types.
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10608 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10609 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10610 $as_echo_n "(cached) " >&6
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 $gdb_ptrace_headers
10619 extern long ptrace (enum __ptrace_request, ...);
10624 if ac_fn_c_try_compile "$LINENO"; then :
10625 gdb_cv_func_ptrace_args='int,int,long,long'
10628 for gdb_arg1 in 'int' 'long'; do
10629 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10630 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10631 for gdb_arg4 in 'int' 'long' 'void *'; do
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 $gdb_ptrace_headers
10639 extern $gdb_cv_func_ptrace_ret
10640 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10646 if ac_fn_c_try_compile "$LINENO"; then :
10647 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651 for gdb_arg5 in 'int *' 'int' 'long'; do
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10654 $gdb_ptrace_headers
10659 extern $gdb_cv_func_ptrace_ret
10660 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10666 if ac_fn_c_try_compile "$LINENO"; then :
10668 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677 # Provide a safe default value.
10678 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10684 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10685 ac_save_IFS=$IFS; IFS=','
10686 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10690 cat >>confdefs.h <<_ACEOF
10691 #define PTRACE_TYPE_ARG3 $3
10695 cat >>confdefs.h <<_ACEOF
10696 #define PTRACE_TYPE_ARG4 $4
10699 if test -n "$5"; then
10701 cat >>confdefs.h <<_ACEOF
10702 #define PTRACE_TYPE_ARG5 $5
10707 if test "$cross_compiling" = no; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10709 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10710 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10711 $as_echo_n "(cached) " >&6
10713 if test "$cross_compiling" = yes; then :
10714 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 $ac_includes_default
10722 /* If this system has a BSD-style setpgrp which takes arguments,
10723 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10724 exit successfully. */
10725 return setpgrp (1,1) != -1;
10730 if ac_fn_c_try_run "$LINENO"; then :
10731 ac_cv_func_setpgrp_void=no
10733 ac_cv_func_setpgrp_void=yes
10735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10736 conftest.$ac_objext conftest.beam conftest.$ac_ext
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10741 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10742 if test $ac_cv_func_setpgrp_void = yes; then
10744 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10750 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10751 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10757 #include <unistd.h>
10763 if (setpgrp(1,1) == -1)
10772 if ac_fn_c_try_compile "$LINENO"; then :
10773 ac_cv_func_setpgrp_void=no
10775 ac_cv_func_setpgrp_void=yes
10777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10780 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10781 if test $ac_cv_func_setpgrp_void = yes; then
10782 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10787 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
10788 # since sigsetjmp might only be defined as a macro.
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10790 $as_echo_n "checking for sigsetjmp... " >&6; }
10791 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10792 $as_echo_n "(cached) " >&6
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10797 #include <setjmp.h>
10802 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10807 if ac_fn_c_try_compile "$LINENO"; then :
10808 gdb_cv_func_sigsetjmp=yes
10810 gdb_cv_func_sigsetjmp=no
10812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10815 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10816 if test $gdb_cv_func_sigsetjmp = yes; then
10818 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10822 # Assume we'll default to using the included libiberty regex.
10823 gdb_use_included_regex=yes
10825 # However, if the system regex is GNU regex, then default to *not*
10826 # using the included regex.
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10828 $as_echo_n "checking for GNU regex... " >&6; }
10829 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10830 $as_echo_n "(cached) " >&6
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834 #include <gnu-versions.h>
10838 #define REGEX_INTERFACE_VERSION 1
10839 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10840 # error "Version mismatch"
10846 if ac_fn_c_try_compile "$LINENO"; then :
10847 gdb_cv_have_gnu_regex=yes
10849 gdb_cv_have_gnu_regex=no
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10854 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10855 if test $gdb_cv_have_gnu_regex = yes; then
10856 gdb_use_included_regex=no
10860 # Check whether --with-included-regex was given.
10861 if test "${with_included_regex+set}" = set; then :
10862 withval=$with_included_regex; gdb_with_regex=$withval
10864 gdb_with_regex=$gdb_use_included_regex
10867 if test "$gdb_with_regex" = yes; then
10869 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10873 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10874 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10875 #include <sys/proc.h>
10878 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
10880 cat >>confdefs.h <<_ACEOF
10881 #define HAVE_STRUCT_THREAD_TD_PCB 1
10888 # See if <sys/lwp.h> defines `struct lwp`.
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10890 $as_echo_n "checking for struct lwp... " >&6; }
10891 if test "${gdb_cv_struct_lwp+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896 #include <sys/param.h>
10897 #include <sys/lwp.h>
10906 if ac_fn_c_try_compile "$LINENO"; then :
10907 gdb_cv_struct_lwp=yes
10909 gdb_cv_struct_lwp=no
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10914 $as_echo "$gdb_cv_struct_lwp" >&6; }
10915 if test $gdb_cv_struct_lwp = yes; then
10917 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10921 # See if <machine/reg.h> degines `struct reg'.
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10923 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10924 if test "${gdb_cv_struct_reg+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10929 #include <sys/types.h>
10930 #include <machine/reg.h>
10939 if ac_fn_c_try_compile "$LINENO"; then :
10940 gdb_cv_struct_reg=yes
10942 gdb_cv_struct_reg=no
10944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
10947 $as_echo "$gdb_cv_struct_reg" >&6; }
10948 if test $gdb_cv_struct_reg = yes; then
10950 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10954 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10955 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10956 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10958 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
10960 cat >>confdefs.h <<_ACEOF
10961 #define HAVE_STRUCT_REG_R_FS 1
10966 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10968 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
10970 cat >>confdefs.h <<_ACEOF
10971 #define HAVE_STRUCT_REG_R_GS 1
10978 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
10979 # Older amd64 Linux's don't have the fs_base and gs_base members of
10980 # `struct user_regs_struct'.
10981 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>
10983 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
10985 cat >>confdefs.h <<_ACEOF
10986 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
10991 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>
10993 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
10995 cat >>confdefs.h <<_ACEOF
10996 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
11003 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11005 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11006 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11011 #include <sys/ptrace.h>
11020 if ac_fn_c_try_compile "$LINENO"; then :
11021 gdb_cv_have_ptrace_getregs=yes
11023 gdb_cv_have_ptrace_getregs=no
11025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11029 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11030 if test $gdb_cv_have_ptrace_getregs = yes; then
11032 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11036 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11038 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11039 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044 #include <sys/ptrace.h>
11053 if ac_fn_c_try_compile "$LINENO"; then :
11054 gdb_cv_have_ptrace_getfpxregs=yes
11056 gdb_cv_have_ptrace_getfpxregs=no
11058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11062 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11063 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11065 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11069 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11071 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11072 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11077 #include <sys/types.h>
11078 #include <sys/ptrace.h>
11087 if ac_fn_c_try_compile "$LINENO"; then :
11088 gdb_cv_have_pt_getdbregs=yes
11090 gdb_cv_have_pt_getdbregs=no
11092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11096 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11097 if test $gdb_cv_have_pt_getdbregs = yes; then
11099 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11103 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11105 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11106 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11107 $as_echo_n "(cached) " >&6
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11111 #include <sys/types.h>
11112 #include <sys/ptrace.h>
11121 if ac_fn_c_try_compile "$LINENO"; then :
11122 gdb_cv_have_pt_getxmmregs=yes
11124 gdb_cv_have_pt_getxmmregs=no
11126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11130 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11131 if test $gdb_cv_have_pt_getxmmregs = yes; then
11133 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11137 # Detect which type of /proc is in use, such as for Solaris.
11139 if test "${target}" = "${host}"; then
11141 *-*-sysv4.2* | *-*-sysv5* )
11143 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11146 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
11148 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11152 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11154 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11160 if test "$ac_cv_header_sys_procfs_h" = yes; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11162 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11163 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11164 $as_echo_n "(cached) " >&6
11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11170 /* Needed for new procfs interface on sparc-solaris. */
11171 #define _STRUCTURED_PROC 1
11172 #include <sys/procfs.h>
11181 if ac_fn_c_try_compile "$LINENO"; then :
11182 bfd_cv_have_sys_procfs_type_gregset_t=yes
11184 bfd_cv_have_sys_procfs_type_gregset_t=no
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11190 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11192 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11196 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11199 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11200 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204 /* end confdefs.h. */
11207 /* Needed for new procfs interface on sparc-solaris. */
11208 #define _STRUCTURED_PROC 1
11209 #include <sys/procfs.h>
11218 if ac_fn_c_try_compile "$LINENO"; then :
11219 bfd_cv_have_sys_procfs_type_fpregset_t=yes
11221 bfd_cv_have_sys_procfs_type_fpregset_t=no
11224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11227 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11229 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11233 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11236 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11237 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11238 $as_echo_n "(cached) " >&6
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11244 /* Needed for new procfs interface on sparc-solaris. */
11245 #define _STRUCTURED_PROC 1
11246 #include <sys/procfs.h>
11255 if ac_fn_c_try_compile "$LINENO"; then :
11256 bfd_cv_have_sys_procfs_type_prgregset_t=yes
11258 bfd_cv_have_sys_procfs_type_prgregset_t=no
11261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11264 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11266 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11270 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11273 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11274 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11275 $as_echo_n "(cached) " >&6
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11281 /* Needed for new procfs interface on sparc-solaris. */
11282 #define _STRUCTURED_PROC 1
11283 #include <sys/procfs.h>
11292 if ac_fn_c_try_compile "$LINENO"; then :
11293 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
11295 bfd_cv_have_sys_procfs_type_prfpregset_t=no
11298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11303 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11307 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11310 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11311 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11312 $as_echo_n "(cached) " >&6
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11318 /* Needed for new procfs interface on sparc-solaris. */
11319 #define _STRUCTURED_PROC 1
11320 #include <sys/procfs.h>
11329 if ac_fn_c_try_compile "$LINENO"; then :
11330 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
11332 bfd_cv_have_sys_procfs_type_prgregset32_t=no
11335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11338 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11340 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11344 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11347 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11348 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11355 /* Needed for new procfs interface on sparc-solaris. */
11356 #define _STRUCTURED_PROC 1
11357 #include <sys/procfs.h>
11366 if ac_fn_c_try_compile "$LINENO"; then :
11367 bfd_cv_have_sys_procfs_type_lwpid_t=yes
11369 bfd_cv_have_sys_procfs_type_lwpid_t=no
11372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11377 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11381 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11384 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11385 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11392 /* Needed for new procfs interface on sparc-solaris. */
11393 #define _STRUCTURED_PROC 1
11394 #include <sys/procfs.h>
11403 if ac_fn_c_try_compile "$LINENO"; then :
11404 bfd_cv_have_sys_procfs_type_psaddr_t=yes
11406 bfd_cv_have_sys_procfs_type_psaddr_t=no
11409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11412 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11414 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11418 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11421 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11422 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11423 $as_echo_n "(cached) " >&6
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11429 /* Needed for new procfs interface on sparc-solaris. */
11430 #define _STRUCTURED_PROC 1
11431 #include <sys/procfs.h>
11440 if ac_fn_c_try_compile "$LINENO"; then :
11441 bfd_cv_have_sys_procfs_type_prsysent_t=yes
11443 bfd_cv_have_sys_procfs_type_prsysent_t=no
11446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11449 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11451 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11455 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11458 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11459 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11460 $as_echo_n "(cached) " >&6
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11466 /* Needed for new procfs interface on sparc-solaris. */
11467 #define _STRUCTURED_PROC 1
11468 #include <sys/procfs.h>
11477 if ac_fn_c_try_compile "$LINENO"; then :
11478 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
11480 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
11483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11488 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11492 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11495 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11496 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11497 $as_echo_n "(cached) " >&6
11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11503 /* Needed for new procfs interface on sparc-solaris. */
11504 #define _STRUCTURED_PROC 1
11505 #include <sys/procfs.h>
11509 pr_sigaction64_t avar
11514 if ac_fn_c_try_compile "$LINENO"; then :
11515 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
11517 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
11520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11525 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11529 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11532 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11533 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11540 /* Needed for new procfs interface on sparc-solaris. */
11541 #define _STRUCTURED_PROC 1
11542 #include <sys/procfs.h>
11546 pr_siginfo64_t avar
11551 if ac_fn_c_try_compile "$LINENO"; then :
11552 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
11554 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
11557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11562 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11566 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11572 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11574 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11575 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
11578 if test "$cross_compiling" = yes; then :
11579 gdb_cv_prfpregset_t_broken=yes
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11583 #include <sys/procfs.h>
11586 if (sizeof (prfpregset_t) == sizeof (void *))
11591 if ac_fn_c_try_run "$LINENO"; then :
11592 gdb_cv_prfpregset_t_broken=no
11594 gdb_cv_prfpregset_t_broken=yes
11596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11597 conftest.$ac_objext conftest.beam conftest.$ac_ext
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11603 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11604 if test $gdb_cv_prfpregset_t_broken = yes; then
11606 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11612 # Check if the compiler supports the `long long' type.
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11615 $as_echo_n "checking for long long support in compiler... " >&6; }
11616 if test "${gdb_cv_c_long_long+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11621 extern long long foo;
11625 switch (foo & 2) { case 0: return 1; }
11630 if ac_fn_c_try_compile "$LINENO"; then :
11631 gdb_cv_c_long_long=yes
11633 gdb_cv_c_long_long=no
11635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11638 $as_echo "$gdb_cv_c_long_long" >&6; }
11639 if test $gdb_cv_c_long_long != yes; then
11640 # libdecnumber requires long long.
11641 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
11644 # Check if the compiler and runtime support printing long longs.
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11647 $as_echo_n "checking for long long support in printf... " >&6; }
11648 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11649 $as_echo_n "(cached) " >&6
11651 if test "$cross_compiling" = yes; then :
11652 gdb_cv_printf_has_long_long=no
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11656 $ac_includes_default
11662 l = (l << 16) + 0x0123;
11663 l = (l << 16) + 0x4567;
11664 l = (l << 16) + 0x89ab;
11665 l = (l << 16) + 0xcdef;
11666 sprintf (buf, "0x%016llx", l);
11667 return (strcmp ("0x0123456789abcdef", buf));
11672 if ac_fn_c_try_run "$LINENO"; then :
11673 gdb_cv_printf_has_long_long=yes
11675 gdb_cv_printf_has_long_long=no
11677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11678 conftest.$ac_objext conftest.beam conftest.$ac_ext
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11683 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11684 if test $gdb_cv_printf_has_long_long = yes; then
11686 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11690 # Check if the compiler and runtime support printing decfloats.
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11693 $as_echo_n "checking for decfloat support in printf... " >&6; }
11694 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11695 $as_echo_n "(cached) " >&6
11697 if test "$cross_compiling" = yes; then :
11698 gdb_cv_printf_has_decfloat=no
11700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h. */
11702 $ac_includes_default
11707 _Decimal32 d32 = 1.2345df;
11708 _Decimal64 d64 = 1.2345dd;
11709 _Decimal128 d128 = 1.2345dl;
11710 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11711 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11716 if ac_fn_c_try_run "$LINENO"; then :
11717 gdb_cv_printf_has_decfloat=yes
11719 gdb_cv_printf_has_decfloat=no
11721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11722 conftest.$ac_objext conftest.beam conftest.$ac_ext
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11727 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11728 if test $gdb_cv_printf_has_decfloat = yes; then
11730 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11734 # Check if the compiler supports the `long double' type. We can't use
11735 # AC_C_LONG_DOUBLE because that one does additional checks on the
11736 # constants defined in <float.h> that fail on some systems,
11737 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11740 $as_echo_n "checking for long double support in compiler... " >&6; }
11741 if test "${gdb_cv_c_long_double+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11748 if ac_fn_c_try_compile "$LINENO"; then :
11749 gdb_cv_c_long_double=yes
11751 gdb_cv_c_long_double=no
11753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11756 $as_echo "$gdb_cv_c_long_double" >&6; }
11757 if test $gdb_cv_c_long_double = yes; then
11759 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11763 # Check if the compiler and runtime support printing long doubles.
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11766 $as_echo_n "checking for long double support in printf... " >&6; }
11767 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11768 $as_echo_n "(cached) " >&6
11770 if test "$cross_compiling" = yes; then :
11771 gdb_cv_printf_has_long_double=no
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775 $ac_includes_default
11780 long double f = 3.141592653;
11781 sprintf (buf, "%Lg", f);
11782 return (strncmp ("3.14159", buf, 7));
11787 if ac_fn_c_try_run "$LINENO"; then :
11788 gdb_cv_printf_has_long_double=yes
11790 gdb_cv_printf_has_long_double=no
11792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11793 conftest.$ac_objext conftest.beam conftest.$ac_ext
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11798 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11799 if test $gdb_cv_printf_has_long_double = yes; then
11801 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11805 # Check if the compiler and runtime support scanning long doubles.
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11808 $as_echo_n "checking for long double support in scanf... " >&6; }
11809 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11810 $as_echo_n "(cached) " >&6
11812 if test "$cross_compiling" = yes; then :
11813 gdb_cv_scanf_has_long_double=no
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11821 char *buf = "3.141592653";
11823 sscanf (buf, "%Lg", &f);
11824 return !(f > 3.14159 && f < 3.14160);
11829 if ac_fn_c_try_run "$LINENO"; then :
11830 gdb_cv_scanf_has_long_double=yes
11832 gdb_cv_scanf_has_long_double=no
11834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11835 conftest.$ac_objext conftest.beam conftest.$ac_ext
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11840 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11841 if test $gdb_cv_scanf_has_long_double = yes; then
11843 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11850 $as_echo_n "checking for -bbigtoc option... " >&6; }
11851 if test "${gdb_cv_bigtoc+set}" = set; then :
11852 $as_echo_n "(cached) " >&6
11855 SAVE_LDFLAGS=$LDFLAGS
11858 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11859 *) gdb_cv_bigtoc=-bbigtoc ;;
11862 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11874 if ac_fn_c_try_link "$LINENO"; then :
11879 rm -f core conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11881 LDFLAGS="${SAVE_LDFLAGS}"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11885 $as_echo "$gdb_cv_bigtoc" >&6; }
11886 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11891 $as_echo_n "checking for the dynamic export flag... " >&6; }
11893 if test "${gdb_native}" = yes; then
11894 # The dynamically loaded libthread_db needs access to symbols in the gdb
11895 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
11896 # may not be supported there.
11897 old_LDFLAGS="$LDFLAGS"
11898 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11899 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11900 LDFLAGS="$LDFLAGS $RDYNAMIC"
11901 if test "${have_libpython}" = no; then
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11913 if ac_fn_c_try_link "$LINENO"; then :
11916 rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11919 # Workaround http://bugs.python.org/issue4434 where static
11920 # libpythonX.Y.a would get its symbols required for
11921 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11922 # Problem does not happen for the recommended libpythonX.Y.so linkage.
11923 old_CFLAGS="$CFLAGS"
11924 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
11926 LIBS="$LIBS $PYTHON_LIBS"
11927 if test "$cross_compiling" = yes; then :
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include "${have_libpython}/Python.h"
11938 err = PyRun_SimpleString ("import itertools\n");
11940 return err == 0 ? 0 : 1;
11945 if ac_fn_c_try_run "$LINENO"; then :
11948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11949 conftest.$ac_objext conftest.beam conftest.$ac_ext
11953 CFLAGS="$old_CFLAGS"
11955 LDFLAGS="$old_LDFLAGS"
11957 if $dynamic_list; then
11958 found="-Wl,--dynamic-list"
11959 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11962 RDYNAMIC="-rdynamic"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11966 $as_echo "$found" >&6; }
11969 if test ${build} = ${host} -a ${host} = ${target} ; then
11972 # See if thread_db library is around for Solaris thread debugging.
11973 # Note that we must explicitly test for version 1 of the library
11974 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11977 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11978 if test -f /usr/lib/libthread_db.so.1 ; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980 $as_echo "yes" >&6; }
11982 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11984 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
11985 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11987 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11991 ac_check_lib_save_LIBS=$LIBS
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11996 /* Override any GCC internal prototype to avoid an error.
11997 Use char because int might match the return type of a GCC
11998 builtin and then its argument prototype would still apply. */
12011 if ac_fn_c_try_link "$LINENO"; then :
12012 ac_cv_lib_dl_dlopen=yes
12014 ac_cv_lib_dl_dlopen=no
12016 rm -f core conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12021 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12022 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12023 cat >>confdefs.h <<_ACEOF
12024 #define HAVE_LIBDL 1
12031 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
12032 # Sun randomly tweaked the prototypes in <proc_service.h>
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12035 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12036 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12043 #include <proc_service.h>
12044 ps_err_e ps_pdwrite
12045 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12055 if ac_fn_c_try_compile "$LINENO"; then :
12056 gdb_cv_proc_service_is_old=no
12058 gdb_cv_proc_service_is_old=yes
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12065 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12066 if test $gdb_cv_proc_service_is_old = yes; then
12068 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12078 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12079 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12080 $as_echo_n "(cached) " >&6
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 #include <sys/pthdebug.h>
12088 #ifndef PTHDB_VERSION_3
12095 if ac_fn_c_try_compile "$LINENO"; then :
12096 gdb_cv_have_aix_thread_debug=yes
12098 gdb_cv_have_aix_thread_debug=no
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12104 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12105 if test $gdb_cv_have_aix_thread_debug = yes; then
12106 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
12107 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
12108 LIBS="$LIBS -lpthdebug"
12110 # Older versions of AIX do not provide the declaration for
12111 # the getthrds function (it appears that it was introduced
12113 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12115 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
12121 cat >>confdefs.h <<_ACEOF
12122 #define HAVE_DECL_GETTHRDS $ac_have_decl
12131 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12133 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12134 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139 #include <thread_db.h>
12143 int i = TD_NOTALLOC;
12148 if ac_fn_c_try_compile "$LINENO"; then :
12149 gdb_cv_thread_db_h_has_td_notalloc=yes
12151 gdb_cv_thread_db_h_has_td_notalloc=no
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12158 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12160 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12161 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 #include <thread_db.h>
12170 int i = TD_VERSION;
12175 if ac_fn_c_try_compile "$LINENO"; then :
12176 gdb_cv_thread_db_h_has_td_version=yes
12178 gdb_cv_thread_db_h_has_td_version=no
12181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12185 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12187 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12188 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12189 $as_echo_n "(cached) " >&6
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12193 #include <thread_db.h>
12202 if ac_fn_c_try_compile "$LINENO"; then :
12203 gdb_cv_thread_db_h_has_td_notls=yes
12205 gdb_cv_thread_db_h_has_td_notls=no
12208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12212 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12214 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12216 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12219 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12221 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12224 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12226 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12230 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12232 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12233 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238 #include <sys/syscall.h>
12242 int i = __NR_tkill;
12247 if ac_fn_c_try_compile "$LINENO"; then :
12248 gdb_cv_sys_syscall_h_has_tkill=yes
12250 gdb_cv_sys_syscall_h_has_tkill=no
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12257 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12259 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
12260 ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
12261 if test "x$ac_cv_func_syscall" = x""yes; then :
12263 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12270 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12272 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12278 cat >>confdefs.h <<_ACEOF
12279 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12283 if test "$cross_compiling" = yes; then :
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12286 #include <sys/personality.h>
12291 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12292 # define ADDR_NO_RANDOMIZE 0x0040000
12294 /* Test the flag could be set and stays set. */
12295 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12296 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12302 if ac_fn_c_try_link "$LINENO"; then :
12303 have_personality=true
12305 have_personality=false
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312 #include <sys/personality.h>
12317 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12318 # define ADDR_NO_RANDOMIZE 0x0040000
12320 /* Test the flag could be set and stays set. */
12321 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12322 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12328 if ac_fn_c_try_run "$LINENO"; then :
12329 have_personality=true
12331 have_personality=false
12333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12334 conftest.$ac_objext conftest.beam conftest.$ac_ext
12337 if $have_personality
12340 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12353 cat >>confdefs.h <<_ACEOF
12354 #define GDBINIT "$gdbinit"
12359 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12360 # except that the argument to --with-sysroot is optional.
12361 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12362 if test "x$with_sysroot" = xyes; then
12363 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
12366 # Check whether --with-sysroot was given.
12367 if test "${with_sysroot+set}" = set; then :
12368 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
12370 TARGET_SYSTEM_ROOT=
12374 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12376 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
12377 ac_define_dir=`eval echo $ac_define_dir`
12379 cat >>confdefs.h <<_ACEOF
12380 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12386 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12387 if test "x$prefix" = xNONE; then
12388 test_prefix=/usr/local
12390 test_prefix=$prefix
12393 test_prefix=$exec_prefix
12396 case ${ac_define_dir} in
12397 "${test_prefix}"|"${test_prefix}/"*|\
12398 '${exec_prefix}'|'${exec_prefix}/'*)
12403 cat >>confdefs.h <<_ACEOF
12404 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12411 # Check whether --with-system-gdbinit was given.
12412 if test "${with_system_gdbinit+set}" = set; then :
12413 withval=$with_system_gdbinit;
12414 SYSTEM_GDBINIT=$withval
12420 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12422 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
12423 ac_define_dir=`eval echo $ac_define_dir`
12425 cat >>confdefs.h <<_ACEOF
12426 #define SYSTEM_GDBINIT "$ac_define_dir"
12432 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12433 if test "x$prefix" = xNONE; then
12434 test_prefix=/usr/local
12436 test_prefix=$prefix
12439 test_prefix=$exec_prefix
12442 case ${ac_define_dir} in
12443 "${test_prefix}"|"${test_prefix}/"*|\
12444 '${exec_prefix}'|'${exec_prefix}/'*)
12449 cat >>confdefs.h <<_ACEOF
12450 #define SYSTEM_GDBINIT_RELOCATABLE $value
12456 # Check whether --enable-werror was given.
12457 if test "${enable_werror+set}" = set; then :
12458 enableval=$enable_werror; case "${enableval}" in
12459 yes | y) ERROR_ON_WARNING="yes" ;;
12460 no | n) ERROR_ON_WARNING="no" ;;
12461 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12466 # Enable -Werror by default when using gcc. Turn it off for releases.
12467 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12468 ERROR_ON_WARNING=yes
12472 if test "${ERROR_ON_WARNING}" = yes ; then
12473 WERROR_CFLAGS="-Werror"
12476 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12478 -Wno-unused -Wunused-value -Wunused-function \
12479 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
12480 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
12481 -Wold-style-declaration -Wold-style-definition"
12483 # Enable -Wno-format by default when using gcc on mingw since many
12484 # GCC versions complain about %I64.
12486 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
12487 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
12490 # Check whether --enable-build-warnings was given.
12491 if test "${enable_build_warnings+set}" = set; then :
12492 enableval=$enable_build_warnings; case "${enableval}" in
12494 no) build_warnings="-w";;
12495 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12496 build_warnings="${build_warnings} ${t}";;
12497 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12498 build_warnings="${t} ${build_warnings}";;
12499 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12501 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12502 echo "Setting compiler warning flags = $build_warnings" 6>&1
12505 # Check whether --enable-gdb-build-warnings was given.
12506 if test "${enable_gdb_build_warnings+set}" = set; then :
12507 enableval=$enable_gdb_build_warnings; case "${enableval}" in
12509 no) build_warnings="-w";;
12510 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12511 build_warnings="${build_warnings} ${t}";;
12512 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12513 build_warnings="${t} ${build_warnings}";;
12514 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12516 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12517 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12521 if test "x${build_warnings}" != x -a "x$GCC" = xyes
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12524 $as_echo_n "checking compiler warning flags... " >&6; }
12525 # Separate out the -Werror flag as some files just cannot be
12526 # compiled with it enabled.
12527 for w in ${build_warnings}; do
12529 -Werr*) WERROR_CFLAGS=-Werror ;;
12530 *) # Check that GCC accepts it
12531 saved_CFLAGS="$CFLAGS"
12532 CFLAGS="$CFLAGS $w"
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12544 if ac_fn_c_try_compile "$LINENO"; then :
12545 WARN_CFLAGS="${WARN_CFLAGS} $w"
12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548 CFLAGS="$saved_CFLAGS"
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12552 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12557 # In the Cygwin environment, we need some additional flags.
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12559 $as_echo_n "checking for cygwin... " >&6; }
12560 if test "${gdb_cv_os_cygwin+set}" = set; then :
12561 $as_echo_n "(cached) " >&6
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12566 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12571 $EGREP "^lose$" >/dev/null 2>&1; then :
12572 gdb_cv_os_cygwin=yes
12574 gdb_cv_os_cygwin=no
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
12580 $as_echo "$gdb_cv_os_cygwin" >&6; }
12583 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
12585 *go32* ) SER_HARDWIRE=ser-go32.o ;;
12586 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12587 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
12591 # libreadline needs libuser32.a in a cygwin environment
12593 if test x$gdb_cv_os_cygwin = xyes; then
12594 WIN32LIBS="-luser32"
12595 case "${target}" in
12596 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12601 # The ser-tcp.c module requires sockets.
12605 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12607 WIN32LIBS="$WIN32LIBS -lws2_32"
12612 # Add ELF support to GDB, but only if BFD includes ELF support.
12615 OLD_LDFLAGS=$LDFLAGS
12617 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12618 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12619 # always want our bfd.
12620 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12621 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12622 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12623 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12624 if test "$plugins" = "yes"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12626 $as_echo_n "checking for library containing dlopen... " >&6; }
12627 if test "${ac_cv_search_dlopen+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12630 ac_func_search_save_LIBS=$LIBS
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12634 /* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12649 for ac_lib in '' dl; do
12650 if test -z "$ac_lib"; then
12651 ac_res="none required"
12654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12656 if ac_fn_c_try_link "$LINENO"; then :
12657 ac_cv_search_dlopen=$ac_res
12659 rm -f core conftest.err conftest.$ac_objext \
12661 if test "${ac_cv_search_dlopen+set}" = set; then :
12665 if test "${ac_cv_search_dlopen+set}" = set; then :
12668 ac_cv_search_dlopen=no
12670 rm conftest.$ac_ext
12671 LIBS=$ac_func_search_save_LIBS
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12674 $as_echo "$ac_cv_search_dlopen" >&6; }
12675 ac_res=$ac_cv_search_dlopen
12676 if test "$ac_res" != no; then :
12677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12682 LIBS="-lbfd -liberty $intl $LIBS"
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12684 $as_echo_n "checking for ELF support in BFD... " >&6; }
12685 if test "${gdb_cv_var_elf+set}" = set; then :
12686 $as_echo_n "(cached) " >&6
12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12690 #include <stdlib.h>
12692 #include "elf-bfd.h"
12697 return bfd_get_elf_phdr_upper_bound (NULL);
12702 if ac_fn_c_try_link "$LINENO"; then :
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12711 $as_echo "$gdb_cv_var_elf" >&6; }
12713 LDFLAGS=$OLD_LDFLAGS
12715 if test $gdb_cv_var_elf = yes; then
12716 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
12718 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12720 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12721 if test "$plugins" = "yes"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12723 $as_echo_n "checking for library containing dlopen... " >&6; }
12724 if test "${ac_cv_search_dlopen+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
12727 ac_func_search_save_LIBS=$LIBS
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12731 /* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
12746 for ac_lib in '' dl; do
12747 if test -z "$ac_lib"; then
12748 ac_res="none required"
12751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12753 if ac_fn_c_try_link "$LINENO"; then :
12754 ac_cv_search_dlopen=$ac_res
12756 rm -f core conftest.err conftest.$ac_objext \
12758 if test "${ac_cv_search_dlopen+set}" = set; then :
12762 if test "${ac_cv_search_dlopen+set}" = set; then :
12765 ac_cv_search_dlopen=no
12767 rm conftest.$ac_ext
12768 LIBS=$ac_func_search_save_LIBS
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12771 $as_echo "$ac_cv_search_dlopen" >&6; }
12772 ac_res=$ac_cv_search_dlopen
12773 if test "$ac_res" != no; then :
12774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12781 # Add macho support to GDB, but only if BFD includes it.
12784 OLD_LDFLAGS=$LDFLAGS
12786 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12787 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12788 # always want our bfd.
12789 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12790 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12791 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12792 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12793 if test "$plugins" = "yes"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12795 $as_echo_n "checking for library containing dlopen... " >&6; }
12796 if test "${ac_cv_search_dlopen+set}" = set; then :
12797 $as_echo_n "(cached) " >&6
12799 ac_func_search_save_LIBS=$LIBS
12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h. */
12803 /* Override any GCC internal prototype to avoid an error.
12804 Use char because int might match the return type of a GCC
12805 builtin and then its argument prototype would still apply. */
12818 for ac_lib in '' dl; do
12819 if test -z "$ac_lib"; then
12820 ac_res="none required"
12823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12825 if ac_fn_c_try_link "$LINENO"; then :
12826 ac_cv_search_dlopen=$ac_res
12828 rm -f core conftest.err conftest.$ac_objext \
12830 if test "${ac_cv_search_dlopen+set}" = set; then :
12834 if test "${ac_cv_search_dlopen+set}" = set; then :
12837 ac_cv_search_dlopen=no
12839 rm conftest.$ac_ext
12840 LIBS=$ac_func_search_save_LIBS
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12843 $as_echo "$ac_cv_search_dlopen" >&6; }
12844 ac_res=$ac_cv_search_dlopen
12845 if test "$ac_res" != no; then :
12846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12851 LIBS="-lbfd -liberty $intl $LIBS"
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
12853 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
12854 if test "${gdb_cv_var_macho+set}" = set; then :
12855 $as_echo_n "(cached) " >&6
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12859 #include <stdlib.h>
12861 #include "mach-o.h"
12866 return bfd_mach_o_lookup_command (NULL, 0, NULL);
12871 if ac_fn_c_try_link "$LINENO"; then :
12872 gdb_cv_var_macho=yes
12874 gdb_cv_var_macho=no
12876 rm -f core conftest.err conftest.$ac_objext \
12877 conftest$ac_exeext conftest.$ac_ext
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
12880 $as_echo "$gdb_cv_var_macho" >&6; }
12882 LDFLAGS=$OLD_LDFLAGS
12884 if test $gdb_cv_var_macho = yes; then
12885 CONFIG_OBS="$CONFIG_OBS machoread.o"
12888 # Add SOM support to GDB, but only if BFD includes it.
12891 OLD_LDFLAGS=$LDFLAGS
12893 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12894 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12895 # always want our bfd.
12896 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12897 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12898 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12899 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12900 if test "$plugins" = "yes"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12902 $as_echo_n "checking for library containing dlopen... " >&6; }
12903 if test "${ac_cv_search_dlopen+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12906 ac_func_search_save_LIBS=$LIBS
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12910 /* Override any GCC internal prototype to avoid an error.
12911 Use char because int might match the return type of a GCC
12912 builtin and then its argument prototype would still apply. */
12925 for ac_lib in '' dl; do
12926 if test -z "$ac_lib"; then
12927 ac_res="none required"
12930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12932 if ac_fn_c_try_link "$LINENO"; then :
12933 ac_cv_search_dlopen=$ac_res
12935 rm -f core conftest.err conftest.$ac_objext \
12937 if test "${ac_cv_search_dlopen+set}" = set; then :
12941 if test "${ac_cv_search_dlopen+set}" = set; then :
12944 ac_cv_search_dlopen=no
12946 rm conftest.$ac_ext
12947 LIBS=$ac_func_search_save_LIBS
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12950 $as_echo "$ac_cv_search_dlopen" >&6; }
12951 ac_res=$ac_cv_search_dlopen
12952 if test "$ac_res" != no; then :
12953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12958 LIBS="-lbfd -liberty $intl $LIBS"
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
12960 $as_echo_n "checking for SOM support in BFD... " >&6; }
12961 if test "${gdb_cv_var_som+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966 #include <stdlib.h>
12973 return bfd_som_attach_aux_hdr (NULL, 0, NULL);
12978 if ac_fn_c_try_link "$LINENO"; then :
12983 rm -f core conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
12987 $as_echo "$gdb_cv_var_som" >&6; }
12989 LDFLAGS=$OLD_LDFLAGS
12991 if test $gdb_cv_var_som = yes; then
12992 CONFIG_OBS="$CONFIG_OBS somread.o"
12995 # Add any host-specific objects to GDB.
12996 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
12998 # If building on ELF, look for lzma support for embedded compressed debug info.
12999 if test $gdb_cv_var_elf = yes; then
13001 # Check whether --with-lzma was given.
13002 if test "${with_lzma+set}" = set; then :
13003 withval=$with_lzma;
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13009 $as_echo_n "checking whether to use lzma... " >&6; }
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13011 $as_echo "$with_lzma" >&6; }
13013 if test "${with_lzma}" != no; then
13024 acl_save_prefix="$prefix"
13025 prefix="$acl_final_prefix"
13026 acl_save_exec_prefix="$exec_prefix"
13027 exec_prefix="$acl_final_exec_prefix"
13029 eval additional_includedir=\"$includedir\"
13030 eval additional_libdir=\"$libdir\"
13032 exec_prefix="$acl_save_exec_prefix"
13033 prefix="$acl_save_prefix"
13036 # Check whether --with-liblzma-prefix was given.
13037 if test "${with_liblzma_prefix+set}" = set; then :
13038 withval=$with_liblzma_prefix;
13039 if test "X$withval" = "Xno"; then
13042 if test "X$withval" = "X"; then
13044 acl_save_prefix="$prefix"
13045 prefix="$acl_final_prefix"
13046 acl_save_exec_prefix="$exec_prefix"
13047 exec_prefix="$acl_final_exec_prefix"
13049 eval additional_includedir=\"$includedir\"
13050 eval additional_libdir=\"$libdir\"
13052 exec_prefix="$acl_save_exec_prefix"
13053 prefix="$acl_save_prefix"
13056 additional_includedir="$withval/include"
13057 additional_libdir="$withval/lib"
13068 names_already_handled=
13069 names_next_round='lzma '
13070 while test -n "$names_next_round"; do
13071 names_this_round="$names_next_round"
13073 for name in $names_this_round; do
13075 for n in $names_already_handled; do
13076 if test "$n" = "$name"; then
13077 already_handled=yes
13081 if test -z "$already_handled"; then
13082 names_already_handled="$names_already_handled $name"
13083 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13084 eval value=\"\$HAVE_LIB$uppername\"
13085 if test -n "$value"; then
13086 if test "$value" = yes; then
13087 eval value=\"\$LIB$uppername\"
13088 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
13089 eval value=\"\$LTLIB$uppername\"
13090 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13099 if test $use_additional = yes; then
13100 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13101 found_dir="$additional_libdir"
13102 found_so="$additional_libdir/lib$name.$shlibext"
13103 if test -f "$additional_libdir/lib$name.la"; then
13104 found_la="$additional_libdir/lib$name.la"
13107 if test -f "$additional_libdir/lib$name.$libext"; then
13108 found_dir="$additional_libdir"
13109 found_a="$additional_libdir/lib$name.$libext"
13110 if test -f "$additional_libdir/lib$name.la"; then
13111 found_la="$additional_libdir/lib$name.la"
13116 if test "X$found_dir" = "X"; then
13117 for x in $LDFLAGS $LTLIBLZMA; do
13119 acl_save_prefix="$prefix"
13120 prefix="$acl_final_prefix"
13121 acl_save_exec_prefix="$exec_prefix"
13122 exec_prefix="$acl_final_exec_prefix"
13124 exec_prefix="$acl_save_exec_prefix"
13125 prefix="$acl_save_prefix"
13129 dir=`echo "X$x" | sed -e 's/^X-L//'`
13130 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13132 found_so="$dir/lib$name.$shlibext"
13133 if test -f "$dir/lib$name.la"; then
13134 found_la="$dir/lib$name.la"
13137 if test -f "$dir/lib$name.$libext"; then
13139 found_a="$dir/lib$name.$libext"
13140 if test -f "$dir/lib$name.la"; then
13141 found_la="$dir/lib$name.la"
13147 if test "X$found_dir" != "X"; then
13152 if test "X$found_dir" != "X"; then
13153 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13154 if test "X$found_so" != "X"; then
13155 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13156 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13159 for x in $ltrpathdirs; do
13160 if test "X$x" = "X$found_dir"; then
13165 if test -z "$haveit"; then
13166 ltrpathdirs="$ltrpathdirs $found_dir"
13168 if test "$hardcode_direct" = yes; then
13169 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13171 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13172 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13174 for x in $rpathdirs; do
13175 if test "X$x" = "X$found_dir"; then
13180 if test -z "$haveit"; then
13181 rpathdirs="$rpathdirs $found_dir"
13185 for x in $LDFLAGS $LIBLZMA; do
13187 acl_save_prefix="$prefix"
13188 prefix="$acl_final_prefix"
13189 acl_save_exec_prefix="$exec_prefix"
13190 exec_prefix="$acl_final_exec_prefix"
13192 exec_prefix="$acl_save_exec_prefix"
13193 prefix="$acl_save_prefix"
13195 if test "X$x" = "X-L$found_dir"; then
13200 if test -z "$haveit"; then
13201 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
13203 if test "$hardcode_minus_L" != no; then
13204 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13206 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13212 if test "X$found_a" != "X"; then
13213 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
13215 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
13218 additional_includedir=
13219 case "$found_dir" in
13221 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13222 additional_includedir="$basedir/include"
13225 if test "X$additional_includedir" != "X"; then
13226 if test "X$additional_includedir" != "X/usr/include"; then
13228 if test "X$additional_includedir" = "X/usr/local/include"; then
13229 if test -n "$GCC"; then
13231 linux*) haveit=yes;;
13235 if test -z "$haveit"; then
13236 for x in $CPPFLAGS $INCLZMA; do
13238 acl_save_prefix="$prefix"
13239 prefix="$acl_final_prefix"
13240 acl_save_exec_prefix="$exec_prefix"
13241 exec_prefix="$acl_final_exec_prefix"
13243 exec_prefix="$acl_save_exec_prefix"
13244 prefix="$acl_save_prefix"
13246 if test "X$x" = "X-I$additional_includedir"; then
13251 if test -z "$haveit"; then
13252 if test -d "$additional_includedir"; then
13253 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
13259 if test -n "$found_la"; then
13260 save_libdir="$libdir"
13261 case "$found_la" in
13262 */* | *\\*) . "$found_la" ;;
13263 *) . "./$found_la" ;;
13265 libdir="$save_libdir"
13266 for dep in $dependency_libs; do
13269 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13270 if test "X$additional_libdir" != "X/usr/lib"; then
13272 if test "X$additional_libdir" = "X/usr/local/lib"; then
13273 if test -n "$GCC"; then
13275 linux*) haveit=yes;;
13279 if test -z "$haveit"; then
13281 for x in $LDFLAGS $LIBLZMA; do
13283 acl_save_prefix="$prefix"
13284 prefix="$acl_final_prefix"
13285 acl_save_exec_prefix="$exec_prefix"
13286 exec_prefix="$acl_final_exec_prefix"
13288 exec_prefix="$acl_save_exec_prefix"
13289 prefix="$acl_save_prefix"
13291 if test "X$x" = "X-L$additional_libdir"; then
13296 if test -z "$haveit"; then
13297 if test -d "$additional_libdir"; then
13298 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
13302 for x in $LDFLAGS $LTLIBLZMA; do
13304 acl_save_prefix="$prefix"
13305 prefix="$acl_final_prefix"
13306 acl_save_exec_prefix="$exec_prefix"
13307 exec_prefix="$acl_final_exec_prefix"
13309 exec_prefix="$acl_save_exec_prefix"
13310 prefix="$acl_save_prefix"
13312 if test "X$x" = "X-L$additional_libdir"; then
13317 if test -z "$haveit"; then
13318 if test -d "$additional_libdir"; then
13319 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
13326 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13327 if test "$enable_rpath" != no; then
13329 for x in $rpathdirs; do
13330 if test "X$x" = "X$dir"; then
13335 if test -z "$haveit"; then
13336 rpathdirs="$rpathdirs $dir"
13339 for x in $ltrpathdirs; do
13340 if test "X$x" = "X$dir"; then
13345 if test -z "$haveit"; then
13346 ltrpathdirs="$ltrpathdirs $dir"
13351 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13354 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13357 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
13358 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
13364 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13365 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
13371 if test "X$rpathdirs" != "X"; then
13372 if test -n "$hardcode_libdir_separator"; then
13374 for found_dir in $rpathdirs; do
13375 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13377 acl_save_libdir="$libdir"
13379 eval flag=\"$hardcode_libdir_flag_spec\"
13380 libdir="$acl_save_libdir"
13381 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13383 for found_dir in $rpathdirs; do
13384 acl_save_libdir="$libdir"
13385 libdir="$found_dir"
13386 eval flag=\"$hardcode_libdir_flag_spec\"
13387 libdir="$acl_save_libdir"
13388 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13392 if test "X$ltrpathdirs" != "X"; then
13393 for found_dir in $ltrpathdirs; do
13394 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
13399 ac_save_CPPFLAGS="$CPPFLAGS"
13401 for element in $INCLZMA; do
13403 for x in $CPPFLAGS; do
13405 acl_save_prefix="$prefix"
13406 prefix="$acl_final_prefix"
13407 acl_save_exec_prefix="$exec_prefix"
13408 exec_prefix="$acl_final_exec_prefix"
13410 exec_prefix="$acl_save_exec_prefix"
13411 prefix="$acl_save_prefix"
13413 if test "X$x" = "X$element"; then
13418 if test -z "$haveit"; then
13419 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
13425 $as_echo_n "checking for liblzma... " >&6; }
13426 if test "${ac_cv_liblzma+set}" = set; then :
13427 $as_echo_n "(cached) " >&6
13430 ac_save_LIBS="$LIBS"
13431 LIBS="$LIBS $LIBLZMA"
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13438 lzma_index_iter iter;
13439 lzma_index_iter_init (&iter, 0);
13440 lzma_mf_is_supported (LZMA_MF_HC3);
13445 if ac_fn_c_try_link "$LINENO"; then :
13450 rm -f core conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452 LIBS="$ac_save_LIBS"
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
13456 $as_echo "$ac_cv_liblzma" >&6; }
13457 if test "$ac_cv_liblzma" = yes; then
13460 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
13463 $as_echo_n "checking how to link with liblzma... " >&6; }
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
13465 $as_echo "$LIBLZMA" >&6; }
13468 CPPFLAGS="$ac_save_CPPFLAGS"
13478 if test "$HAVE_LIBLZMA" != yes; then
13479 if test "$with_lzma" = yes; then
13480 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
13486 LIBGUI="../libgui/src/libgui.a"
13487 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
13496 *-*-cygwin* | *-*-mingw* )
13505 if test "${enable_gdbtk}" = "yes"; then
13507 # Gdbtk must have an absolute path to srcdir in order to run
13508 # properly when not installed.
13511 GDBTK_SRC_DIR=`pwd`
13516 # Ok, lets find the tcl configuration
13517 # First, look for one uninstalled.
13518 # the alternative search directory is invoked by --with-tcl
13521 if test x"${no_tcl}" = x ; then
13522 # we reset no_tcl in case something fails here
13525 # Check whether --with-tcl was given.
13526 if test "${with_tcl+set}" = set; then :
13527 withval=$with_tcl; with_tclconfig=${withval}
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13531 $as_echo_n "checking for Tcl configuration... " >&6; }
13532 if test "${ac_cv_c_tclconfig+set}" = set; then :
13533 $as_echo_n "(cached) " >&6
13537 # First check to see if --with-tcl was specified.
13539 *-*-cygwin*) platDir="win" ;;
13540 *) platDir="unix" ;;
13542 if test x"${with_tclconfig}" != x ; then
13543 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13544 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
13546 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13550 # then check for a private Tcl installation
13551 if test x"${ac_cv_c_tclconfig}" = x ; then
13554 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13555 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13556 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13558 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13559 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13560 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13562 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13563 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13564 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13565 if test -f "$i/$platDir/tclConfig.sh" ; then
13566 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13572 # on Darwin, check in Framework installation locations
13573 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
13574 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13575 `ls -d /Library/Frameworks 2>/dev/null` \
13576 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13577 `ls -d /System/Library/Frameworks 2>/dev/null` \
13579 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13580 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
13586 # check in a few common install locations
13587 if test x"${ac_cv_c_tclconfig}" = x ; then
13588 for i in `ls -d ${libdir} 2>/dev/null` \
13589 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13590 `ls -d ${prefix}/lib 2>/dev/null` \
13591 `ls -d /usr/local/lib 2>/dev/null` \
13592 `ls -d /usr/contrib/lib 2>/dev/null` \
13593 `ls -d /usr/lib 2>/dev/null` \
13595 if test -f "$i/tclConfig.sh" ; then
13596 ac_cv_c_tclconfig=`(cd $i; pwd)`
13602 # check in a few other private locations
13603 if test x"${ac_cv_c_tclconfig}" = x ; then
13606 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13607 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13608 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13609 if test -f "$i/$platDir/tclConfig.sh" ; then
13610 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13619 if test x"${ac_cv_c_tclconfig}" = x ; then
13620 TCL_BIN_DIR="# no Tcl configs found"
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13622 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13625 TCL_BIN_DIR=${ac_cv_c_tclconfig}
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13627 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13632 # If $no_tk is nonempty, then we can't do Tk, and there is no
13633 # point to doing Tcl.
13636 # Ok, lets find the tk configuration
13637 # First, look for one uninstalled.
13638 # the alternative search directory is invoked by --with-tk
13641 if test x"${no_tk}" = x ; then
13642 # we reset no_tk in case something fails here
13645 # Check whether --with-tk was given.
13646 if test "${with_tk+set}" = set; then :
13647 withval=$with_tk; with_tkconfig=${withval}
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13651 $as_echo_n "checking for Tk configuration... " >&6; }
13652 if test "${ac_cv_c_tkconfig+set}" = set; then :
13653 $as_echo_n "(cached) " >&6
13657 # First check to see if --with-tkconfig was specified.
13658 if test x"${with_tkconfig}" != x ; then
13659 if test -f "${with_tkconfig}/tkConfig.sh" ; then
13660 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
13662 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13666 # then check for a private Tk library
13668 *-*-cygwin*) platDir="win" ;;
13669 *) platDir="unix" ;;
13671 if test x"${ac_cv_c_tkconfig}" = x ; then
13674 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13675 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13676 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13678 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13679 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13680 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
13682 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13683 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
13684 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
13685 if test -f "$i/$platDir/tkConfig.sh" ; then
13686 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13692 # on Darwin, check in Framework installation locations
13693 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
13694 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13695 `ls -d /Library/Frameworks 2>/dev/null` \
13696 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13697 `ls -d /System/Library/Frameworks 2>/dev/null` \
13699 if test -f "$i/Tk.framework/tkConfig.sh" ; then
13700 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
13706 # check in a few common install locations
13707 if test x"${ac_cv_c_tkconfig}" = x ; then
13708 for i in `ls -d ${libdir} 2>/dev/null` \
13709 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13710 `ls -d ${prefix}/lib 2>/dev/null` \
13711 `ls -d /usr/local/lib 2>/dev/null` \
13712 `ls -d /usr/contrib/lib 2>/dev/null` \
13713 `ls -d /usr/lib 2>/dev/null` \
13715 if test -f "$i/tkConfig.sh" ; then
13716 ac_cv_c_tkconfig=`(cd $i; pwd)`
13721 # check in a few other private locations
13722 if test x"${ac_cv_c_tkconfig}" = x ; then
13725 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13726 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13727 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13728 if test -f "$i/$platDir/tkConfig.sh" ; then
13729 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13738 if test x"${ac_cv_c_tkconfig}" = x ; then
13739 TK_BIN_DIR="# no Tk configs found"
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13741 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13744 TK_BIN_DIR=${ac_cv_c_tkconfig}
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13746 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13751 if test -z "${no_tcl}" -a -z "${no_tk}"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13754 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13756 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13758 $as_echo "loading" >&6; }
13759 . ${TCL_BIN_DIR}/tclConfig.sh
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13762 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13765 # eval is required to do the TCL_DBGX substitution
13766 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13767 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13769 # If the TCL_BIN_DIR is the build directory (not the install directory),
13770 # then set the common variable name to the value of the build variables.
13771 # For example, the variable TCL_LIB_SPEC will be set to the value
13772 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13773 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13774 # installed and uninstalled version of Tcl.
13775 if test -f "${TCL_BIN_DIR}/Makefile" ; then
13776 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13777 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13778 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13779 elif test "`uname -s`" = "Darwin"; then
13780 # If Tcl was built as a framework, attempt to use the libraries
13781 # from the framework at the given location so that linking works
13782 # against Tcl.framework installed in an arbitrary location.
13783 case ${TCL_DEFS} in
13785 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13786 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
13787 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13788 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13789 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13794 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13795 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13796 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13802 # eval is required to do the TCL_DBGX substitution
13803 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13804 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13805 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13806 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13822 # Check for in-tree tcl
13829 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13833 # Find Tcl private headers
13834 if test x"${intree}" = xno; then
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13837 $as_echo_n "checking for Tcl private headers... " >&6; }
13839 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13840 if test -f ${dir}/tclInt.h ; then
13844 if test x"${private_dir}" = x; then
13845 as_fn_error "could not find private Tcl headers" "$LINENO" 5
13847 TCL_PRIVATE_INCLUDE="-I${private_dir}"
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13849 $as_echo "${private_dir}" >&6; }
13852 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13853 TCL_LIBRARY="${TCL_LIB_SPEC}"
13856 # If building tcl in the same src tree, private headers
13857 # are not needed, but we need to be sure to use the right
13859 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
13860 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
13861 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
13869 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
13871 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13873 $as_echo "loading" >&6; }
13874 . ${TK_BIN_DIR}/tkConfig.sh
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
13877 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13880 # eval is required to do the TK_DBGX substitution
13881 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
13882 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
13884 # If the TK_BIN_DIR is the build directory (not the install directory),
13885 # then set the common variable name to the value of the build variables.
13886 # For example, the variable TK_LIB_SPEC will be set to the value
13887 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
13888 # instead of TK_BUILD_LIB_SPEC since it will work with both an
13889 # installed and uninstalled version of Tcl.
13890 if test -f "${TK_BIN_DIR}/Makefile" ; then
13891 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
13892 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
13893 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
13894 elif test "`uname -s`" = "Darwin"; then
13895 # If Tk was built as a framework, attempt to use the libraries
13896 # from the framework at the given location so that linking works
13897 # against Tk.framework installed in an arbitrary location.
13900 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
13901 for i in "`cd ${TK_BIN_DIR}; pwd`" \
13902 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
13903 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
13904 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
13909 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
13910 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
13911 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
13917 # eval is required to do the TK_DBGX substitution
13918 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
13919 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
13920 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
13921 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
13936 # Check for in-tree Tk
13938 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
13942 # Find Tk private headers
13943 if test x"${intree}" = xno; then
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
13946 $as_echo_n "checking for Tk private headers... " >&6; }
13948 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
13949 if test -f ${dir}/tkInt.h; then
13953 if test x"${private_dir}" = x; then
13954 as_fn_error "could not find Tk private headers" "$LINENO" 5
13956 TK_PRIVATE_INCLUDE="-I${private_dir}"
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13958 $as_echo "${private_dir}" >&6; }
13961 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
13962 TK_LIBRARY=${TK_LIB_SPEC}
13965 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
13966 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
13967 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
13974 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
13976 # Include some libraries that Tcl and Tk want.
13977 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
13978 # Yes, the ordering seems wrong here. But it isn't.
13979 # TK_LIBS is the list of libraries that need to be linked
13980 # after Tcl/Tk. Note that this isn't put into LIBS. If it
13981 # were in LIBS then any link tests after this point would
13982 # try to include things like `$(LIBGUI)', which wouldn't work.
13983 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
13985 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
13986 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
13987 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
13988 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
13989 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
13990 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
13991 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
13993 if test x$gdb_cv_os_cygwin = xyes; then
13994 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
13995 WIN32LDAPP="-Wl,--subsystem,console"
13996 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
13999 subdirs="$subdirs gdbtk"
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14012 $as_echo_n "checking for X... " >&6; }
14015 # Check whether --with-x was given.
14016 if test "${with_x+set}" = set; then :
14020 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14021 if test "x$with_x" = xno; then
14022 # The user explicitly disabled X.
14025 case $x_includes,$x_libraries in #(
14026 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
14027 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14030 # One or both of the vars are not set, and there is no cached value.
14031 ac_x_includes=no ac_x_libraries=no
14032 rm -f -r conftest.dir
14033 if mkdir conftest.dir; then
14035 cat >Imakefile <<'_ACEOF'
14037 @echo incroot='${INCROOT}'
14039 @echo usrlibdir='${USRLIBDIR}'
14041 @echo libdir='${LIBDIR}'
14043 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14044 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14045 for ac_var in incroot usrlibdir libdir; do
14046 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14048 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14049 for ac_extension in a so sl dylib la dll; do
14050 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14051 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14052 ac_im_usrlibdir=$ac_im_libdir; break
14055 # Screen out bogus values from the imake configuration. They are
14056 # bogus both because they are the default anyway, and because
14057 # using them would break gcc on systems where it needs fixed includes.
14058 case $ac_im_incroot in
14059 /usr/include) ac_x_includes= ;;
14060 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14062 case $ac_im_usrlibdir in
14063 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14064 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14068 rm -f -r conftest.dir
14071 # Standard set of common directories for X headers.
14072 # Check X11 before X11Rn because it is often a symlink to the current release.
14086 /usr/local/X11/include
14087 /usr/local/X11R7/include
14088 /usr/local/X11R6/include
14089 /usr/local/X11R5/include
14090 /usr/local/X11R4/include
14092 /usr/local/include/X11
14093 /usr/local/include/X11R7
14094 /usr/local/include/X11R6
14095 /usr/local/include/X11R5
14096 /usr/local/include/X11R4
14100 /usr/XFree86/include/X11
14104 /usr/unsupported/include
14105 /usr/athena/include
14106 /usr/local/x11r5/include
14107 /usr/lpp/Xamples/include
14109 /usr/openwin/include
14110 /usr/openwin/share/include'
14112 if test "$ac_x_includes" = no; then
14113 # Guess where to find include files, by looking for Xlib.h.
14114 # First, try using that file with no special directory specified.
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117 #include <X11/Xlib.h>
14119 if ac_fn_c_try_cpp "$LINENO"; then :
14120 # We can compile using X headers with no special include directory.
14123 for ac_dir in $ac_x_header_dirs; do
14124 if test -r "$ac_dir/X11/Xlib.h"; then
14125 ac_x_includes=$ac_dir
14130 rm -f conftest.err conftest.$ac_ext
14131 fi # $ac_x_includes = no
14133 if test "$ac_x_libraries" = no; then
14134 # Check for the libraries.
14135 # See if we find them without any special options.
14136 # Don't add to $LIBS permanently.
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14141 #include <X11/Xlib.h>
14150 if ac_fn_c_try_link "$LINENO"; then :
14152 # We can link X programs with no special library path.
14156 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14158 # Don't even attempt the hair of trying to link an X program!
14159 for ac_extension in a so sl dylib la dll; do
14160 if test -r "$ac_dir/libX11.$ac_extension"; then
14161 ac_x_libraries=$ac_dir
14167 rm -f core conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14169 fi # $ac_x_libraries = no
14171 case $ac_x_includes,$ac_x_libraries in #(
14172 no,* | *,no | *\'*)
14173 # Didn't find X, or a directory has "'" in its name.
14174 ac_cv_have_x="have_x=no";; #(
14176 # Record where we found X for the cache.
14177 ac_cv_have_x="have_x=yes\
14178 ac_x_includes='$ac_x_includes'\
14179 ac_x_libraries='$ac_x_libraries'"
14185 eval "$ac_cv_have_x"
14188 if test "$have_x" != yes; then
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14190 $as_echo "$have_x" >&6; }
14193 # If each of the values was on the command line, it overrides each guess.
14194 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14195 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14196 # Update the cache value to reflect the command line values.
14197 ac_cv_have_x="have_x=yes\
14198 ac_x_includes='$x_includes'\
14199 ac_x_libraries='$x_libraries'"
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14201 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14205 # Unlike the sim directory, whether a simulator is linked is controlled by
14206 # presence of a gdb_sim definition in the target configure.tgt entry.
14207 # This code just checks for a few cases where we'd like to ignore those
14208 # definitions, even when they're present in the '.mt' file. These cases
14209 # are when --disable-sim is specified, or if the simulator directory is
14210 # not part of the source tree.
14212 # Check whether --enable-sim was given.
14213 if test "${enable_sim+set}" = set; then :
14214 enableval=$enable_sim; echo "enable_sim = $enable_sim";
14215 echo "enableval = ${enableval}";
14216 case "${enableval}" in
14217 yes) ignore_sim=false ;;
14218 no) ignore_sim=true ;;
14219 *) ignore_sim=false ;;
14226 if test ! -d "${srcdir}/../sim"; then
14232 if test "${ignore_sim}" = "false"; then
14233 if test x"${gdb_sim}" != x ; then
14235 SIM_OBS="remote-sim.o"
14237 $as_echo "#define WITH_SIM 1" >>confdefs.h
14255 # List of host floatformats.
14257 cat >>confdefs.h <<_ACEOF
14258 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14262 cat >>confdefs.h <<_ACEOF
14263 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14267 cat >>confdefs.h <<_ACEOF
14268 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14272 # target_subdir is used by the testsuite to find the target libraries.
14274 if test "${host}" != "${target}"; then
14275 target_subdir="${target_alias}/"
14280 if test "${gdb_native}" = "yes"; then
14281 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14282 if test ! -f ${host_makefile_frag}; then
14283 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14285 frags="$frags $host_makefile_frag"
14287 host_makefile_frag=/dev/null
14293 if test "${gdb_native}" = "yes"; then
14294 # We pick this up from the host configuration file (.mh) because we
14295 # do not have a native configuration Makefile fragment.
14296 nativefile=`sed -n '
14297 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14298 ' ${host_makefile_frag}`
14302 if test x"${gdb_osabi}" != x ; then
14304 cat >>confdefs.h <<_ACEOF
14305 #define GDB_OSABI_DEFAULT $gdb_osabi
14310 # Enable multi-ice-gdb-server.
14311 # Check whether --enable-multi-ice was given.
14312 if test "${enable_multi_ice+set}" = set; then :
14313 enableval=$enable_multi_ice; case $enableval in
14316 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14320 if test "x$enable_multi_ice" = xyes; then
14321 subdirs="$subdirs multi-ice"
14325 # Check whether --enable-gdbserver was given.
14326 if test "${enable_gdbserver+set}" = set; then :
14327 enableval=$enable_gdbserver; case "${enableval}" in
14329 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
14332 enable_gdbserver=auto
14336 # We only build gdbserver automatically in a native configuration, and
14337 # only if the user did not explicitly disable its build.
14338 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14340 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14341 if test "x$build_gdbserver" = xyes; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14343 $as_echo "yes" >&6; }
14344 subdirs="$subdirs gdbserver"
14346 gdbserver_build_enabled=yes
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14353 # If the user explicitly request the gdbserver to be built, verify that
14354 # we were in fact able to enable it.
14355 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
14356 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
14359 # Check for babeltrace and babeltrace-ctf
14361 # Check whether --with-babeltrace was given.
14362 if test "${with_babeltrace+set}" = set; then :
14363 withval=$with_babeltrace;
14365 with_babeltrace=auto
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
14369 $as_echo_n "checking whether to use babeltrace... " >&6; }
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
14371 $as_echo "$with_babeltrace" >&6; }
14373 if test "x$with_babeltrace" = "xno"; then
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
14375 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
14377 # Append -Werror to CFLAGS so that configure can catch the warning
14378 # "assignment from incompatible pointer type", which is related to
14379 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
14380 # in GDB, while babeltrace 1.0.3 is broken.
14381 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
14382 # safe to save and restore CFLAGS here.
14383 saved_CFLAGS=$CFLAGS
14384 CFLAGS="$CFLAGS -Werror"
14395 acl_save_prefix="$prefix"
14396 prefix="$acl_final_prefix"
14397 acl_save_exec_prefix="$exec_prefix"
14398 exec_prefix="$acl_final_exec_prefix"
14400 eval additional_includedir=\"$includedir\"
14401 eval additional_libdir=\"$libdir\"
14403 exec_prefix="$acl_save_exec_prefix"
14404 prefix="$acl_save_prefix"
14407 # Check whether --with-libbabeltrace-prefix was given.
14408 if test "${with_libbabeltrace_prefix+set}" = set; then :
14409 withval=$with_libbabeltrace_prefix;
14410 if test "X$withval" = "Xno"; then
14413 if test "X$withval" = "X"; then
14415 acl_save_prefix="$prefix"
14416 prefix="$acl_final_prefix"
14417 acl_save_exec_prefix="$exec_prefix"
14418 exec_prefix="$acl_final_exec_prefix"
14420 eval additional_includedir=\"$includedir\"
14421 eval additional_libdir=\"$libdir\"
14423 exec_prefix="$acl_save_exec_prefix"
14424 prefix="$acl_save_prefix"
14427 additional_includedir="$withval/include"
14428 additional_libdir="$withval/lib"
14439 names_already_handled=
14440 names_next_round='babeltrace babeltrace-ctf'
14441 while test -n "$names_next_round"; do
14442 names_this_round="$names_next_round"
14444 for name in $names_this_round; do
14446 for n in $names_already_handled; do
14447 if test "$n" = "$name"; then
14448 already_handled=yes
14452 if test -z "$already_handled"; then
14453 names_already_handled="$names_already_handled $name"
14454 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14455 eval value=\"\$HAVE_LIB$uppername\"
14456 if test -n "$value"; then
14457 if test "$value" = yes; then
14458 eval value=\"\$LIB$uppername\"
14459 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
14460 eval value=\"\$LTLIB$uppername\"
14461 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
14470 if test $use_additional = yes; then
14471 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14472 found_dir="$additional_libdir"
14473 found_so="$additional_libdir/lib$name.$shlibext"
14474 if test -f "$additional_libdir/lib$name.la"; then
14475 found_la="$additional_libdir/lib$name.la"
14478 if test -f "$additional_libdir/lib$name.$libext"; then
14479 found_dir="$additional_libdir"
14480 found_a="$additional_libdir/lib$name.$libext"
14481 if test -f "$additional_libdir/lib$name.la"; then
14482 found_la="$additional_libdir/lib$name.la"
14487 if test "X$found_dir" = "X"; then
14488 for x in $LDFLAGS $LTLIBBABELTRACE; do
14490 acl_save_prefix="$prefix"
14491 prefix="$acl_final_prefix"
14492 acl_save_exec_prefix="$exec_prefix"
14493 exec_prefix="$acl_final_exec_prefix"
14495 exec_prefix="$acl_save_exec_prefix"
14496 prefix="$acl_save_prefix"
14500 dir=`echo "X$x" | sed -e 's/^X-L//'`
14501 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14503 found_so="$dir/lib$name.$shlibext"
14504 if test -f "$dir/lib$name.la"; then
14505 found_la="$dir/lib$name.la"
14508 if test -f "$dir/lib$name.$libext"; then
14510 found_a="$dir/lib$name.$libext"
14511 if test -f "$dir/lib$name.la"; then
14512 found_la="$dir/lib$name.la"
14518 if test "X$found_dir" != "X"; then
14523 if test "X$found_dir" != "X"; then
14524 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
14525 if test "X$found_so" != "X"; then
14526 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14527 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14530 for x in $ltrpathdirs; do
14531 if test "X$x" = "X$found_dir"; then
14536 if test -z "$haveit"; then
14537 ltrpathdirs="$ltrpathdirs $found_dir"
14539 if test "$hardcode_direct" = yes; then
14540 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14542 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14543 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14545 for x in $rpathdirs; do
14546 if test "X$x" = "X$found_dir"; then
14551 if test -z "$haveit"; then
14552 rpathdirs="$rpathdirs $found_dir"
14556 for x in $LDFLAGS $LIBBABELTRACE; do
14558 acl_save_prefix="$prefix"
14559 prefix="$acl_final_prefix"
14560 acl_save_exec_prefix="$exec_prefix"
14561 exec_prefix="$acl_final_exec_prefix"
14563 exec_prefix="$acl_save_exec_prefix"
14564 prefix="$acl_save_prefix"
14566 if test "X$x" = "X-L$found_dir"; then
14571 if test -z "$haveit"; then
14572 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
14574 if test "$hardcode_minus_L" != no; then
14575 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14577 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
14583 if test "X$found_a" != "X"; then
14584 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
14586 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
14589 additional_includedir=
14590 case "$found_dir" in
14592 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14593 additional_includedir="$basedir/include"
14596 if test "X$additional_includedir" != "X"; then
14597 if test "X$additional_includedir" != "X/usr/include"; then
14599 if test "X$additional_includedir" = "X/usr/local/include"; then
14600 if test -n "$GCC"; then
14602 linux*) haveit=yes;;
14606 if test -z "$haveit"; then
14607 for x in $CPPFLAGS $INCBABELTRACE; do
14609 acl_save_prefix="$prefix"
14610 prefix="$acl_final_prefix"
14611 acl_save_exec_prefix="$exec_prefix"
14612 exec_prefix="$acl_final_exec_prefix"
14614 exec_prefix="$acl_save_exec_prefix"
14615 prefix="$acl_save_prefix"
14617 if test "X$x" = "X-I$additional_includedir"; then
14622 if test -z "$haveit"; then
14623 if test -d "$additional_includedir"; then
14624 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
14630 if test -n "$found_la"; then
14631 save_libdir="$libdir"
14632 case "$found_la" in
14633 */* | *\\*) . "$found_la" ;;
14634 *) . "./$found_la" ;;
14636 libdir="$save_libdir"
14637 for dep in $dependency_libs; do
14640 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14641 if test "X$additional_libdir" != "X/usr/lib"; then
14643 if test "X$additional_libdir" = "X/usr/local/lib"; then
14644 if test -n "$GCC"; then
14646 linux*) haveit=yes;;
14650 if test -z "$haveit"; then
14652 for x in $LDFLAGS $LIBBABELTRACE; do
14654 acl_save_prefix="$prefix"
14655 prefix="$acl_final_prefix"
14656 acl_save_exec_prefix="$exec_prefix"
14657 exec_prefix="$acl_final_exec_prefix"
14659 exec_prefix="$acl_save_exec_prefix"
14660 prefix="$acl_save_prefix"
14662 if test "X$x" = "X-L$additional_libdir"; then
14667 if test -z "$haveit"; then
14668 if test -d "$additional_libdir"; then
14669 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
14673 for x in $LDFLAGS $LTLIBBABELTRACE; do
14675 acl_save_prefix="$prefix"
14676 prefix="$acl_final_prefix"
14677 acl_save_exec_prefix="$exec_prefix"
14678 exec_prefix="$acl_final_exec_prefix"
14680 exec_prefix="$acl_save_exec_prefix"
14681 prefix="$acl_save_prefix"
14683 if test "X$x" = "X-L$additional_libdir"; then
14688 if test -z "$haveit"; then
14689 if test -d "$additional_libdir"; then
14690 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
14697 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14698 if test "$enable_rpath" != no; then
14700 for x in $rpathdirs; do
14701 if test "X$x" = "X$dir"; then
14706 if test -z "$haveit"; then
14707 rpathdirs="$rpathdirs $dir"
14710 for x in $ltrpathdirs; do
14711 if test "X$x" = "X$dir"; then
14716 if test -z "$haveit"; then
14717 ltrpathdirs="$ltrpathdirs $dir"
14722 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14725 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14728 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
14729 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
14735 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
14736 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
14742 if test "X$rpathdirs" != "X"; then
14743 if test -n "$hardcode_libdir_separator"; then
14745 for found_dir in $rpathdirs; do
14746 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14748 acl_save_libdir="$libdir"
14750 eval flag=\"$hardcode_libdir_flag_spec\"
14751 libdir="$acl_save_libdir"
14752 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
14754 for found_dir in $rpathdirs; do
14755 acl_save_libdir="$libdir"
14756 libdir="$found_dir"
14757 eval flag=\"$hardcode_libdir_flag_spec\"
14758 libdir="$acl_save_libdir"
14759 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
14763 if test "X$ltrpathdirs" != "X"; then
14764 for found_dir in $ltrpathdirs; do
14765 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
14770 ac_save_CPPFLAGS="$CPPFLAGS"
14772 for element in $INCBABELTRACE; do
14774 for x in $CPPFLAGS; do
14776 acl_save_prefix="$prefix"
14777 prefix="$acl_final_prefix"
14778 acl_save_exec_prefix="$exec_prefix"
14779 exec_prefix="$acl_final_exec_prefix"
14781 exec_prefix="$acl_save_exec_prefix"
14782 prefix="$acl_save_prefix"
14784 if test "X$x" = "X$element"; then
14789 if test -z "$haveit"; then
14790 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
14796 $as_echo_n "checking for libbabeltrace... " >&6; }
14797 if test "${ac_cv_libbabeltrace+set}" = set; then :
14798 $as_echo_n "(cached) " >&6
14801 ac_save_LIBS="$LIBS"
14802 LIBS="$LIBS $LIBBABELTRACE"
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 #include <babeltrace/babeltrace.h>
14806 #include <babeltrace/ctf/events.h>
14807 #include <babeltrace/ctf/iterator.h>
14811 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
14812 struct bt_ctf_event *event = NULL;
14813 const struct bt_definition *scope;
14815 scope = bt_ctf_get_top_level_scope (event,
14816 BT_STREAM_EVENT_HEADER);
14817 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
14823 if ac_fn_c_try_link "$LINENO"; then :
14824 ac_cv_libbabeltrace=yes
14826 ac_cv_libbabeltrace=no
14828 rm -f core conftest.err conftest.$ac_objext \
14829 conftest$ac_exeext conftest.$ac_ext
14830 LIBS="$ac_save_LIBS"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
14834 $as_echo "$ac_cv_libbabeltrace" >&6; }
14835 if test "$ac_cv_libbabeltrace" = yes; then
14836 HAVE_LIBBABELTRACE=yes
14838 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
14841 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
14843 $as_echo "$LIBBABELTRACE" >&6; }
14845 HAVE_LIBBABELTRACE=no
14846 CPPFLAGS="$ac_save_CPPFLAGS"
14856 CFLAGS=$saved_CFLAGS
14858 if test "$HAVE_LIBBABELTRACE" != yes; then
14859 if test "$with_babeltrace" = yes; then
14860 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
14863 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
14868 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14869 # to an empty version.
14875 if test "${nativefile}" != ""; then
14876 case "${nativefile}" in
14877 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
14878 * ) GDB_NM_FILE="${nativefile}"
14880 files="${files} ${GDB_NM_FILE}"
14881 links="${links} nm.h"
14883 cat >>confdefs.h <<_ACEOF
14884 #define GDB_NM_FILE "${GDB_NM_FILE}"
14890 ac_sources="$files"
14892 while test -n "$ac_sources"; do
14893 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
14894 set $ac_sources; ac_source=$1; shift; ac_sources=$*
14895 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
14897 ac_config_links="$ac_config_links $ac_config_links_1"
14903 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14906 # Undo the $ec_script escaping suitable for Makefile.
14907 transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
14908 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$transform"`
14909 if test "x$GDB_TRANSFORM_NAME" = x; then
14910 GDB_TRANSFORM_NAME=gdb
14913 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$transform"`
14914 if test "x$GCORE_TRANSFORM_NAME" = x; then
14915 GCORE_TRANSFORM_NAME=gcore
14918 ac_config_files="$ac_config_files gcore"
14921 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
14923 ac_config_commands="$ac_config_commands default"
14925 cat >confcache <<\_ACEOF
14926 # This file is a shell script that caches the results of configure
14927 # tests run on this system so they can be shared between configure
14928 # scripts and configure runs, see configure's option --config-cache.
14929 # It is not useful on other systems. If it contains results you don't
14930 # want to keep, you may remove or edit it.
14932 # config.status only pays attention to the cache file if you give it
14933 # the --recheck option to rerun configure.
14935 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14936 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14937 # following values.
14941 # The following way of writing the cache mishandles newlines in values,
14942 # but we know of no workaround that is simple, portable, and efficient.
14943 # So, we kill variables containing newlines.
14944 # Ultrix sh set writes to stderr and can't be redirected directly,
14945 # and sets the high bit in the cache file unless we assign to the vars.
14947 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14948 eval ac_val=\$$ac_var
14952 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14953 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14956 _ | IFS | as_nl) ;; #(
14957 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14958 *) { eval $ac_var=; unset $ac_var;} ;;
14964 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14965 *${as_nl}ac_space=\ *)
14966 # `set' does not quote correctly, so add quotes: double-quote
14967 # substitution turns \\\\ into \\, and sed turns \\ into \.
14970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14973 # `set' quotes correctly as required by POSIX, so do not add quotes.
14974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14985 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14987 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14988 if test -w "$cache_file"; then
14989 test "x$cache_file" != "x/dev/null" &&
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14991 $as_echo "$as_me: updating cache $cache_file" >&6;}
14992 cat confcache >$cache_file
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14995 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15000 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15001 # Let make expand exec_prefix.
15002 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15004 DEFS=-DHAVE_CONFIG_H
15008 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15009 # 1. Remove the extension, and $U if already installed.
15010 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15011 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15012 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15013 # will be set to the directory where LIBOBJS objects are built.
15014 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15015 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15017 LIBOBJS=$ac_libobjs
15019 LTLIBOBJS=$ac_ltlibobjs
15022 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15023 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15026 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15027 as_fn_error "conditional \"GMAKE\" was never defined.
15028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15032 : ${CONFIG_STATUS=./config.status}
15034 ac_clean_files_save=$ac_clean_files
15035 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15037 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15039 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15041 # Generated by $as_me.
15042 # Run this file to recreate the current configuration.
15043 # Compiler output produced by configure, useful for debugging
15044 # configure, is in config.log if it exists.
15047 ac_cs_recheck=false
15050 SHELL=\${CONFIG_SHELL-$SHELL}
15053 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15054 ## -------------------- ##
15055 ## M4sh Initialization. ##
15056 ## -------------------- ##
15058 # Be more Bourne compatible
15059 DUALCASE=1; export DUALCASE # for MKS sh
15060 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15063 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15064 # is contrary to our usage. Disable this feature.
15065 alias -g '${1+"$@"}'='"$@"'
15066 setopt NO_GLOB_SUBST
15068 case `(set -o) 2>/dev/null` in #(
15080 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15081 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15082 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15083 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15084 # Prefer a ksh shell builtin over an external printf program on Solaris,
15085 # but without wasting forks for bash or zsh.
15086 if test -z "$BASH_VERSION$ZSH_VERSION" \
15087 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15088 as_echo='print -r --'
15089 as_echo_n='print -rn --'
15090 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15091 as_echo='printf %s\n'
15092 as_echo_n='printf %s'
15094 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15095 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15096 as_echo_n='/usr/ucb/echo -n'
15098 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15099 as_echo_n_body='eval
15103 expr "X$arg" : "X\\(.*\\)$as_nl";
15104 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15106 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15108 export as_echo_n_body
15109 as_echo_n='sh -c $as_echo_n_body as_echo'
15111 export as_echo_body
15112 as_echo='sh -c $as_echo_body as_echo'
15115 # The user is always right.
15116 if test "${PATH_SEPARATOR+set}" != set; then
15118 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15119 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15126 # We need space, tab and new line, in precisely that order. Quoting is
15127 # there to prevent editors from complaining about space-tab.
15128 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15129 # splitting by setting IFS to empty value.)
15132 # Find who we are. Look in the path if we contain no directory separator.
15134 *[\\/]* ) as_myself=$0 ;;
15135 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15136 for as_dir in $PATH
15139 test -z "$as_dir" && as_dir=.
15140 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15146 # We did not find ourselves, most probably we were run as `sh COMMAND'
15147 # in which case we are not to be found in the path.
15148 if test "x$as_myself" = x; then
15151 if test ! -f "$as_myself"; then
15152 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15156 # Unset variables that we do not need and which cause bugs (e.g. in
15157 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15158 # suppresses any "Segmentation fault" message there. '((' could
15159 # trigger a bug in pdksh 5.2.14.
15160 for as_var in BASH_ENV ENV MAIL MAILPATH
15161 do eval test x\${$as_var+set} = xset \
15162 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15175 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15178 # as_fn_error ERROR [LINENO LOG_FD]
15179 # ---------------------------------
15180 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15181 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15182 # script with status $?, using 1 if that was 0.
15185 as_status=$?; test $as_status -eq 0 && as_status=1
15187 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15188 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15190 $as_echo "$as_me: error: $1" >&2
15191 as_fn_exit $as_status
15195 # as_fn_set_status STATUS
15196 # -----------------------
15197 # Set $? to STATUS, without forking.
15198 as_fn_set_status ()
15201 } # as_fn_set_status
15203 # as_fn_exit STATUS
15204 # -----------------
15205 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15209 as_fn_set_status $1
15215 # Portably unset VAR.
15218 { eval $1=; unset $1;}
15220 as_unset=as_fn_unset
15221 # as_fn_append VAR VALUE
15222 # ----------------------
15223 # Append the text in VALUE to the end of the definition contained in VAR. Take
15224 # advantage of any shell optimizations that allow amortized linear growth over
15225 # repeated appends, instead of the typical quadratic growth present in naive
15227 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15228 eval 'as_fn_append ()
15239 # as_fn_arith ARG...
15240 # ------------------
15241 # Perform arithmetic evaluation on the ARGs, and store the result in the
15242 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15243 # must be portable across $(()) and expr.
15244 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15245 eval 'as_fn_arith ()
15252 as_val=`expr "$@" || test $? -eq 1`
15257 if expr a : '\(a\)' >/dev/null 2>&1 &&
15258 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15264 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15265 as_basename=basename
15270 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15276 as_me=`$as_basename -- "$0" ||
15277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15278 X"$0" : 'X\(//\)$' \| \
15279 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15281 sed '/^.*\/\([^/][^/]*\)\/*$/{
15295 # Avoid depending upon Character Ranges.
15296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15299 as_cr_digits='0123456789'
15300 as_cr_alnum=$as_cr_Letters$as_cr_digits
15302 ECHO_C= ECHO_N= ECHO_T=
15303 case `echo -n x` in #(((((
15305 case `echo 'xy\c'` in
15306 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15308 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15315 rm -f conf$$ conf$$.exe conf$$.file
15316 if test -d conf$$.dir; then
15317 rm -f conf$$.dir/conf$$.file
15320 mkdir conf$$.dir 2>/dev/null
15322 if (echo >conf$$.file) 2>/dev/null; then
15323 if ln -s conf$$.file conf$$ 2>/dev/null; then
15325 # ... but there are two gotchas:
15326 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15327 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15328 # In both cases, we have to default to `cp -p'.
15329 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15331 elif ln conf$$.file conf$$ 2>/dev/null; then
15339 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15340 rmdir conf$$.dir 2>/dev/null
15345 # Create "$as_dir" as a directory, including parents if necessary.
15350 -*) as_dir=./$as_dir;;
15352 test -d "$as_dir" || eval $as_mkdir_p || {
15356 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15357 *) as_qdir=$as_dir;;
15359 as_dirs="'$as_qdir' $as_dirs"
15360 as_dir=`$as_dirname -- "$as_dir" ||
15361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15362 X"$as_dir" : 'X\(//\)[^/]' \| \
15363 X"$as_dir" : 'X\(//\)$' \| \
15364 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15365 $as_echo X"$as_dir" |
15366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15370 /^X\(\/\/\)[^/].*/{
15383 test -d "$as_dir" && break
15385 test -z "$as_dirs" || eval "mkdir $as_dirs"
15386 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15390 if mkdir -p . 2>/dev/null; then
15391 as_mkdir_p='mkdir -p "$as_dir"'
15393 test -d ./-p && rmdir ./-p
15397 if test -x / >/dev/null 2>&1; then
15398 as_test_x='test -x'
15400 if ls -dL / >/dev/null 2>&1; then
15407 if test -d "$1"; then
15413 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15414 ???[sx]*):;;*)false;;esac;fi
15418 as_executable_p=$as_test_x
15420 # Sed expression to map a string onto a valid CPP name.
15421 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15423 # Sed expression to map a string onto a valid variable name.
15424 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15428 ## ----------------------------------- ##
15429 ## Main body of $CONFIG_STATUS script. ##
15430 ## ----------------------------------- ##
15432 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15435 # Save the log message, to keep $0 and so on meaningful, and to
15436 # report actual input values of CONFIG_FILES etc. instead of their
15437 # values after options handling.
15439 This file was extended by $as_me, which was
15440 generated by GNU Autoconf 2.64. Invocation command line was
15442 CONFIG_FILES = $CONFIG_FILES
15443 CONFIG_HEADERS = $CONFIG_HEADERS
15444 CONFIG_LINKS = $CONFIG_LINKS
15445 CONFIG_COMMANDS = $CONFIG_COMMANDS
15448 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15453 case $ac_config_files in *"
15454 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15457 case $ac_config_headers in *"
15458 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15463 # Files that config.status was made for.
15464 config_files="$ac_config_files"
15465 config_headers="$ac_config_headers"
15466 config_links="$ac_config_links"
15467 config_commands="$ac_config_commands"
15471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15473 \`$as_me' instantiates files and other configuration actions
15474 from templates according to the current configuration. Unless the files
15475 and actions are specified as TAGs, all are instantiated by default.
15477 Usage: $0 [OPTION]... [TAG]...
15479 -h, --help print this help, then exit
15480 -V, --version print version number and configuration settings, then exit
15481 -q, --quiet, --silent
15482 do not print progress messages
15483 -d, --debug don't remove temporary files
15484 --recheck update $as_me by reconfiguring in the same conditions
15485 --file=FILE[:TEMPLATE]
15486 instantiate the configuration file FILE
15487 --header=FILE[:TEMPLATE]
15488 instantiate the configuration header FILE
15490 Configuration files:
15493 Configuration headers:
15496 Configuration links:
15499 Configuration commands:
15502 Report bugs to the package provider."
15505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15508 configured by $0, generated by GNU Autoconf 2.64,
15509 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15511 Copyright (C) 2009 Free Software Foundation, Inc.
15512 This config.status script is free software; the Free Software Foundation
15513 gives unlimited permission to copy, distribute and modify it."
15519 test -n "\$AWK" || AWK=awk
15522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15523 # The default lists apply if the user does not specify any file.
15529 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15530 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15541 # Handling of the options.
15542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15544 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15545 $as_echo "$ac_cs_version"; exit ;;
15546 --debug | --debu | --deb | --de | --d | -d )
15548 --file | --fil | --fi | --f )
15551 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15553 as_fn_append CONFIG_FILES " '$ac_optarg'"
15554 ac_need_defaults=false;;
15555 --header | --heade | --head | --hea )
15558 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15560 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15561 ac_need_defaults=false;;
15563 # Conflict between --help and --header
15564 as_fn_error "ambiguous option: \`$1'
15565 Try \`$0 --help' for more information.";;
15566 --help | --hel | -h )
15567 $as_echo "$ac_cs_usage"; exit ;;
15568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15569 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15572 # This is an error.
15573 -*) as_fn_error "unrecognized option: \`$1'
15574 Try \`$0 --help' for more information." ;;
15576 *) as_fn_append ac_config_targets " $1"
15577 ac_need_defaults=false ;;
15583 ac_configure_extra_args=
15585 if $ac_cs_silent; then
15587 ac_configure_extra_args="$ac_configure_extra_args --silent"
15591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592 if \$ac_cs_recheck; then
15593 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15595 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15596 CONFIG_SHELL='$SHELL'
15597 export CONFIG_SHELL
15602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15607 ## Running $as_me. ##
15613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15617 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15623 # Handling of arguments.
15624 for ac_config_target in $ac_config_targets
15626 case $ac_config_target in
15627 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15628 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
15629 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
15630 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
15631 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
15632 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15633 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
15634 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15635 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
15636 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15638 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15643 # If the user did not use the arguments to specify the items to instantiate,
15644 # then the envvar interface is used. Set only those that are not.
15645 # We use the long form for the default assignment because of an extremely
15646 # bizarre bug on SunOS 4.1.3.
15647 if $ac_need_defaults; then
15648 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15649 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15650 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15654 # Have a temporary directory for convenience. Make it in the build tree
15655 # simply because there is no reason against having it here, and in addition,
15656 # creating and moving files from /tmp can sometimes cause problems.
15657 # Hook for its removal unless debugging.
15658 # Note that there is a small window in which the directory will not be cleaned:
15659 # after its creation but before its name has been assigned to `$tmp'.
15663 trap 'exit_status=$?
15664 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15666 trap 'as_fn_exit 1' 1 2 13 15
15668 # Create a (secure) tmp directory for tmp files.
15671 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15672 test -n "$tmp" && test -d "$tmp"
15675 tmp=./conf$$-$RANDOM
15676 (umask 077 && mkdir "$tmp")
15677 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15679 # Set up the scripts for CONFIG_FILES section.
15680 # No need to generate them if there are no CONFIG_FILES.
15681 # This happens for instance with `./config.status config.h'.
15682 if test -n "$CONFIG_FILES"; then
15684 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15685 ac_cs_awk_getline=:
15686 ac_cs_awk_pipe_init=
15687 ac_cs_awk_read_file='
15688 while ((getline aline < (F[key])) > 0)
15691 ac_cs_awk_pipe_fini=
15693 ac_cs_awk_getline=false
15694 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15695 ac_cs_awk_read_file='
15697 print "cat " F[key] " &&"
15698 '$ac_cs_awk_pipe_init
15699 # The final `:' finishes the AND list.
15700 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15702 ac_cr=`echo X | tr X '\015'`
15703 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15704 # But we know of no other shell where ac_cr would be empty at this
15705 # point, so we can use a bashism as a fallback.
15706 if test "x$ac_cr" = x; then
15707 eval ac_cr=\$\'\\r\'
15709 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15710 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15713 ac_cs_awk_cr=$ac_cr
15716 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15719 # Create commands to substitute file output variables.
15721 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15722 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15723 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15726 } >conf$$files.sh &&
15727 . ./conf$$files.sh ||
15728 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15729 rm -f conf$$files.sh
15732 echo "cat >conf$$subs.awk <<_ACEOF" &&
15733 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15735 } >conf$$subs.sh ||
15736 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15737 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15739 for ac_last_try in false false false false false :; do
15740 . ./conf$$subs.sh ||
15741 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15743 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15744 if test $ac_delim_n = $ac_delim_num; then
15746 elif $ac_last_try; then
15747 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15752 rm -f conf$$subs.sh
15754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15755 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15759 s/^/S["/; s/!.*/"]=/
15769 s/\(.\{148\}\).*/\1/
15771 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15783 s/\(.\{148\}\).*/\1/
15785 s/["\\]/\\&/g; s/^/"/; s/$/"/
15789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15794 ' <conf$$subs.awk | sed '
15799 ' >>$CONFIG_STATUS || ac_write_fail=1
15800 rm -f conf$$subs.awk
15801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15803 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15804 for (key in S) S_is_set[key] = 1
15806 \$ac_cs_awk_pipe_init
15810 nfields = split(line, field, "@")
15812 len = length(field[1])
15813 for (i = 2; i < nfields; i++) {
15815 keylen = length(key)
15816 if (S_is_set[key]) {
15818 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15819 len += length(value) + length(field[++i])
15824 if (nfields == 3 && !substed) {
15826 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15827 \$ac_cs_awk_read_file
15833 \$ac_cs_awk_pipe_fini
15836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15837 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15838 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15841 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15842 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15845 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15846 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15847 # trailing colons and then remove the whole line if VPATH becomes empty
15848 # (actually we leave an empty line to preserve line numbers).
15849 if test "x$srcdir" = x.; then
15850 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15851 s/:*\$(srcdir):*/:/
15852 s/:*\${srcdir}:*/:/
15854 s/^\([^=]*=[ ]*\):*/\1/
15860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15861 fi # test -n "$CONFIG_FILES"
15863 # Set up the scripts for CONFIG_HEADERS section.
15864 # No need to generate them if there are no CONFIG_HEADERS.
15865 # This happens for instance with `./config.status Makefile'.
15866 if test -n "$CONFIG_HEADERS"; then
15867 cat >"$tmp/defines.awk" <<\_ACAWK ||
15871 # Transform confdefs.h into an awk script `defines.awk', embedded as
15872 # here-document in config.status, that substitutes the proper values into
15873 # config.h.in to produce config.h.
15875 # Create a delimiter string that does not exist in confdefs.h, to ease
15876 # handling of long lines.
15878 for ac_last_try in false false :; do
15879 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15880 if test -z "$ac_t"; then
15882 elif $ac_last_try; then
15883 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15889 # For the awk script, D is an array of macro values keyed by name,
15890 # likewise P contains macro parameters if any. Preserve backslash
15891 # newline sequences.
15893 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15895 s/.\{148\}/&'"$ac_delim"'/g
15898 s/^[ ]*#[ ]*define[ ][ ]*/ /
15905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15912 D["\1"]=" \3\\\\\\n"\\/p
15914 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15919 s/.\{148\}/&'"$ac_delim"'/g
15924 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15927 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15929 ' <confdefs.h | sed '
15930 s/'"$ac_delim"'/"\\\
15931 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15934 for (key in D) D_is_set[key] = 1
15937 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15939 split(line, arg, " ")
15940 if (arg[1] == "#") {
15944 defundef = substr(arg[1], 2)
15947 split(mac1, mac2, "(") #)
15949 prefix = substr(line, 1, index(line, defundef) - 1)
15950 if (D_is_set[macro]) {
15951 # Preserve the white space surrounding the "#".
15952 print prefix "define", macro P[macro] D[macro]
15955 # Replace #undef with comments. This is necessary, for example,
15956 # in the case of _POSIX_SOURCE, which is predefined and required
15957 # on some systems where configure will not decide to define it.
15958 if (defundef == "undef") {
15959 print "/*", prefix defundef, macro, "*/"
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15969 fi # test -n "$CONFIG_HEADERS"
15972 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15977 :[FHLC]) ac_mode=$ac_tag; continue;;
15979 case $ac_mode$ac_tag in
15981 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15982 :[FH]-) ac_tag=-:-;;
15983 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16000 -) ac_f="$tmp/stdin";;
16001 *) # Look for the file first in the build tree, then in the source tree
16002 # (if the path is not absolute). The absolute path cannot be DOS-style,
16003 # because $ac_f cannot contain `:'.
16007 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16009 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16011 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16012 as_fn_append ac_file_inputs " '$ac_f'"
16015 # Let's still pretend it is `configure' which instantiates (i.e., don't
16016 # use $as_me), people would be surprised to read:
16017 # /* config.h. Generated by config.status. */
16018 configure_input='Generated from '`
16019 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16021 if test x"$ac_file" != x-; then
16022 configure_input="$ac_file. $configure_input"
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16024 $as_echo "$as_me: creating $ac_file" >&6;}
16026 # Neutralize special characters interpreted by sed in replacement strings.
16027 case $configure_input in #(
16028 *\&* | *\|* | *\\* )
16029 ac_sed_conf_input=`$as_echo "$configure_input" |
16030 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16031 *) ac_sed_conf_input=$configure_input;;
16035 *:-:* | *:-) cat >"$tmp/stdin" \
16036 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16041 ac_dir=`$as_dirname -- "$ac_file" ||
16042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16043 X"$ac_file" : 'X\(//\)[^/]' \| \
16044 X"$ac_file" : 'X\(//\)$' \| \
16045 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16046 $as_echo X"$ac_file" |
16047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16051 /^X\(\/\/\)[^/].*/{
16064 as_dir="$ac_dir"; as_fn_mkdir_p
16068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16070 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16071 # A ".." for each directory in $ac_dir_suffix.
16072 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16073 case $ac_top_builddir_sub in
16074 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16075 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16078 ac_abs_top_builddir=$ac_pwd
16079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16080 # for backward compatibility:
16081 ac_top_builddir=$ac_top_build_prefix
16084 .) # We are building in place.
16086 ac_top_srcdir=$ac_top_builddir_sub
16087 ac_abs_top_srcdir=$ac_pwd ;;
16088 [\\/]* | ?:[\\/]* ) # Absolute name.
16089 ac_srcdir=$srcdir$ac_dir_suffix;
16090 ac_top_srcdir=$srcdir
16091 ac_abs_top_srcdir=$srcdir ;;
16092 *) # Relative name.
16093 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16094 ac_top_srcdir=$ac_top_build_prefix$srcdir
16095 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16107 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16113 # If the template does not know about datarootdir, expand it.
16114 # FIXME: This hack should be removed a few years after 2.60.
16115 ac_datarootdir_hack=; ac_datarootdir_seen=
16126 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16127 *datarootdir*) ac_datarootdir_seen=yes;;
16128 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16130 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16133 ac_datarootdir_hack='
16134 s&@datadir@&$datadir&g
16135 s&@docdir@&$docdir&g
16136 s&@infodir@&$infodir&g
16137 s&@localedir@&$localedir&g
16138 s&@mandir@&$mandir&g
16139 s&\\\${datarootdir}&$datarootdir&g' ;;
16143 # Neutralize VPATH when `$srcdir' = `.'.
16144 # Shell code in configure.ac might set extrasub.
16145 # FIXME: do we really want to maintain this feature?
16146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16147 ac_sed_extra="$ac_vpsub
16150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16153 s|@configure_input@|$ac_sed_conf_input|;t t
16154 s&@top_builddir@&$ac_top_builddir_sub&;t t
16155 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16156 s&@srcdir@&$ac_srcdir&;t t
16157 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16158 s&@top_srcdir@&$ac_top_srcdir&;t t
16159 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16160 s&@builddir@&$ac_builddir&;t t
16161 s&@abs_builddir@&$ac_abs_builddir&;t t
16162 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16163 s&@INSTALL@&$ac_INSTALL&;t t
16164 $ac_datarootdir_hack
16166 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16167 if $ac_cs_awk_getline; then
16168 $AWK -f "$tmp/subs.awk"
16170 $AWK -f "$tmp/subs.awk" | $SHELL
16172 || as_fn_error "could not create $ac_file" "$LINENO" 5
16174 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16175 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16176 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16178 which seems to be undefined. Please make sure it is defined." >&5
16179 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16180 which seems to be undefined. Please make sure it is defined." >&2;}
16184 -) cat "$tmp/out" && rm -f "$tmp/out";;
16185 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16187 || as_fn_error "could not create $ac_file" "$LINENO" 5
16193 if test x"$ac_file" != x-; then
16195 $as_echo "/* $configure_input */" \
16196 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16197 } >"$tmp/config.h" \
16198 || as_fn_error "could not create $ac_file" "$LINENO" 5
16199 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16201 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16204 mv "$tmp/config.h" "$ac_file" \
16205 || as_fn_error "could not create $ac_file" "$LINENO" 5
16208 $as_echo "/* $configure_input */" \
16209 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16210 || as_fn_error "could not create -" "$LINENO" 5
16218 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16221 # Prefer the file from the source tree if names are identical.
16222 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16223 ac_source=$srcdir/$ac_source
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16227 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16229 if test ! -r "$ac_source"; then
16230 as_fn_error "$ac_source: file not found" "$LINENO" 5
16234 # Try a relative symlink, then a hard link, then a copy.
16236 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16237 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16239 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16240 ln "$ac_source" "$ac_file" 2>/dev/null ||
16241 cp -p "$ac_source" "$ac_file" ||
16242 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16245 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16246 $as_echo "$as_me: executing $ac_file commands" >&6;}
16251 case $ac_file$ac_mode in
16252 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16253 "gcore":F) chmod +x gcore ;;
16255 case x$CONFIG_HEADERS in
16256 xconfig.h:config.in)
16267 ac_clean_files=$ac_clean_files_save
16269 test $ac_write_fail = 0 ||
16270 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16273 # configure is writing to config.log, and then calls config.status.
16274 # config.status does its own redirection, appending to config.log.
16275 # Unfortunately, on DOS this fails, as config.log is still kept open
16276 # by configure, so config.status won't be able to write to it; its
16277 # output is simply discarded. So we exec the FD to /dev/null,
16278 # effectively closing config.log, so it can be properly (re)opened and
16279 # appended to by config.status. When coming back to configure, we
16280 # need to make the FD available again.
16281 if test "$no_create" != yes; then
16283 ac_config_status_args=
16284 test "$silent" = yes &&
16285 ac_config_status_args="$ac_config_status_args --quiet"
16287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16289 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16290 # would make configure fail if this is the last instruction.
16291 $ac_cs_success || as_fn_exit $?
16295 # CONFIG_SUBDIRS section.
16297 if test "$no_recursion" != yes; then
16299 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16300 # so they do not pile up.
16301 ac_sub_configure_args=
16303 eval "set x $ac_configure_args"
16307 if test -n "$ac_prev"; then
16312 -cache-file | --cache-file | --cache-fil | --cache-fi \
16313 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16314 ac_prev=cache_file ;;
16315 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16316 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16319 --config-cache | -C)
16321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16329 --disable-option-checking)
16333 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16335 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16339 # Always prepend --prefix to ensure using the same prefix
16340 # in subdir configurations.
16341 ac_arg="--prefix=$prefix"
16343 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16345 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16348 if test "$silent" = yes; then
16349 ac_sub_configure_args="--silent $ac_sub_configure_args"
16352 # Always prepend --disable-option-checking to silence warnings, since
16353 # different subdirs can have different --enable and --with options.
16354 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16357 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16359 # Do not complain, so a configure script can configure whichever
16360 # parts of a large source tree are present.
16361 test -d "$srcdir/$ac_dir" || continue
16363 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16364 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16365 $as_echo "$ac_msg" >&6
16366 as_dir="$ac_dir"; as_fn_mkdir_p
16370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16372 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16373 # A ".." for each directory in $ac_dir_suffix.
16374 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16375 case $ac_top_builddir_sub in
16376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16380 ac_abs_top_builddir=$ac_pwd
16381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16382 # for backward compatibility:
16383 ac_top_builddir=$ac_top_build_prefix
16386 .) # We are building in place.
16388 ac_top_srcdir=$ac_top_builddir_sub
16389 ac_abs_top_srcdir=$ac_pwd ;;
16390 [\\/]* | ?:[\\/]* ) # Absolute name.
16391 ac_srcdir=$srcdir$ac_dir_suffix;
16392 ac_top_srcdir=$srcdir
16393 ac_abs_top_srcdir=$srcdir ;;
16394 *) # Relative name.
16395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16396 ac_top_srcdir=$ac_top_build_prefix$srcdir
16397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16404 # Check for guested configure; otherwise get Cygnus style configure.
16405 if test -f "$ac_srcdir/configure.gnu"; then
16406 ac_sub_configure=$ac_srcdir/configure.gnu
16407 elif test -f "$ac_srcdir/configure"; then
16408 ac_sub_configure=$ac_srcdir/configure
16409 elif test -f "$ac_srcdir/configure.in"; then
16410 # This should be Cygnus configure.
16411 ac_sub_configure=$ac_aux_dir/configure
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16414 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16418 # The recursion is here.
16419 if test -n "$ac_sub_configure"; then
16420 # Make the cache file name correct relative to the subdirectory.
16421 case $cache_file in
16422 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16423 *) # Relative name.
16424 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16427 { $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
16428 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16429 # The eval makes quoting arguments work.
16430 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16431 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16432 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16438 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16440 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}