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
741 MAINTAINER_MODE_FALSE
770 program_transform_name
781 ac_subst_files='host_makefile_frag'
783 enable_option_checking
784 enable_maintainer_mode
787 with_separate_debug_dir
789 with_relocated_sources
791 with_auto_load_safe_path
818 enable_build_warnings
819 enable_gdb_build_warnings
829 with_libbabeltrace_prefix
831 ac_precious_vars='build_alias
845 ac_subdirs_all='testsuite
850 # Initialize some variables set by options.
852 ac_init_version=false
853 ac_unrecognized_opts=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
864 program_transform_name=s,x,x,
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE}'
889 infodir='${datarootdir}/info'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
910 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 # Accept the important Cygnus configure options, so we can diagnose typos.
916 case $ac_dashdash$ac_option in
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
938 cache_file=config.cache ;;
940 -datadir | --datadir | --datadi | --datad)
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
966 eval enable_$ac_useropt=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
992 eval enable_$ac_useropt=\$ac_optarg ;;
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 htmldir=$ac_optarg ;;
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1037 -libdir | --libdir | --libdi | --libd)
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
1106 -program-transform-name | --program-transform-name \
1107 | --program-transform-nam | --program-transform-na \
1108 | --program-transform-n | --program-transform- \
1109 | --program-transform | --program-transfor \
1110 | --program-transfo | --program-transf \
1111 | --program-trans | --program-tran \
1112 | --progr-tra | --program-tr | --program-t)
1113 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1128 -psdir | --psdir | --psdi | --psd | --ps)
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 sbindir=$ac_optarg ;;
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 sharedstatedir=$ac_optarg ;;
1154 -site | --site | --sit)
1156 -site=* | --site=* | --sit=*)
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1196 eval with_$ac_useropt=\$ac_optarg ;;
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=no ;;
1215 # Obsolete; use --with-x.
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1232 -*) as_fn_error "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information."
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error "missing argument to $ac_option"
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1265 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1283 # Be sure to have absolute directory names.
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312 test "$silent" = yes && exec 6>/dev/null
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error "pwd does not report name of working directory"
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1355 ac_srcdir_defaulted=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452 --x-includes=DIR X include files are in DIR
1453 --x-libraries=DIR X library files are in DIR
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1462 if test -n "$ac_init_help"; then
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-maintainer-mode enable make rules and dependencies not useful
1471 (and sometimes confusing) to the casual installer
1472 --enable-plugins Enable support for plugins (defaults no)
1473 --disable-largefile omit support for large files
1474 --enable-targets=TARGETS
1475 alternative target configurations
1476 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1477 --disable-gdbcli disable command-line interface (CLI)
1478 --disable-gdbmi disable machine-interface (MI)
1479 --enable-tui enable full-screen terminal user interface (TUI)
1480 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1481 --enable-profiling enable profiling of GDB
1482 --disable-rpath do not hardcode runtime library paths
1483 --enable-libmcheck Try building GDB with -lmcheck if available
1484 --enable-werror treat compile warnings as errors
1485 --enable-build-warnings enable build-time compiler warnings if gcc is used
1486 --enable-gdb-build-warnings
1487 enable GDB specific build-time compiler warnings if
1489 --enable-sim link gdb with simulator
1490 --enable-multi-ice build the multi-ice-gdb-server
1491 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-separate-debug-dir=PATH
1498 look for global separate debug info in this path
1500 --with-gdb-datadir=PATH look for global separate data files in this path
1502 --with-relocated-sources=PATH
1503 automatically relocate this path for source files
1504 --with-auto-load-dir=PATH
1505 directories from which to load auto-loaded scripts
1506 [$debugdir:$datadir/auto-load]
1507 --with-auto-load-safe-path=PATH
1508 directories safe to hold auto-loaded files
1509 [--with-auto-load-dir]
1510 --without-auto-load-safe-path
1511 do not restrict auto-loaded files locations
1512 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1513 --with-curses use the curses library instead of the termcap
1515 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1516 --with-bugurl=URL Direct users to URL to report a bug
1517 --with-zlib include zlib support (auto/yes/no) default=auto
1518 --with-libiconv-prefix=DIR
1519 search for libiconv in DIR/include and DIR/lib
1520 --with-iconv-bin=PATH specify where to find the iconv program
1521 --with-system-readline use installed readline library
1522 --with-jit-reader-dir=PATH
1523 directory to load the JIT readers from
1524 --with-expat include expat support (auto/yes/no)
1525 --with-gnu-ld assume the C compiler uses GNU ld default=no
1526 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1527 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1528 --with-python[=PYTHON] include python support
1529 (auto/yes/no/<python-program>)
1530 --without-included-regex
1531 don't use included regex; this is the default on
1532 systems with version 2 of the GNU C library (use
1533 with caution on other system)
1534 --with-sysroot[=DIR] search for usr/lib et al within DIR
1535 --with-system-gdbinit=PATH
1536 automatically load a system-wide gdbinit file
1537 --with-lzma support lzma compression (auto/yes/no)
1538 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1539 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1540 --with-tcl directory containing tcl configuration (tclConfig.sh)
1541 --with-tk directory containing tk configuration (tkConfig.sh)
1542 --with-x use the X Window System
1543 --with-babeltrace include babeltrace support (auto/yes/no)
1544 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1545 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1556 MAKEINFO Parent configure detects if it is of sufficient version.
1558 Parameters for MAKEINFO.
1559 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1560 the first program found out of: `bison -y', `byacc', `yacc'.
1561 YFLAGS The list of arguments that will be passed by default to $YACC.
1562 This script will default YFLAGS to the empty string to avoid a
1563 default value of `-d' given by some make applications.
1564 XMKMF Path to xmkmf, Makefile generator for X Window System
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1569 Report bugs to the package provider.
1574 if test "$ac_init_help" = "recursive"; then
1575 # If there are subdirs, report their specific --help.
1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577 test -d "$ac_dir" ||
1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1599 .) # We are building in place.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1633 generated by GNU Autoconf 2.64
1635 Copyright (C) 2009 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1642 ## ------------------------ ##
1643 ## Autoconf initialization. ##
1644 ## ------------------------ ##
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext
1653 if { { ac_try="$ac_compile"
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_compile") 2>conftest.err
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext; then :
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 } # ac_fn_c_try_compile
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } >/dev/null && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1722 # -------------------------------------------------------
1723 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1724 # the include files in INCLUDES and setting the cache variable VAR
1726 ac_fn_c_check_header_mongrel ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 $as_echo_n "(cached) " >&6
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1739 # Is the header compilable?
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1741 $as_echo_n "checking $2 usability... " >&6; }
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748 ac_header_compiler=yes
1750 ac_header_compiler=no
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1754 $as_echo "$ac_header_compiler" >&6; }
1756 # Is the header present?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1758 $as_echo_n "checking $2 presence... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1763 if ac_fn_c_try_cpp "$LINENO"; then :
1764 ac_header_preproc=yes
1766 ac_header_preproc=no
1768 rm -f conftest.err conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1770 $as_echo "$ac_header_preproc" >&6; }
1772 # So? What about this header?
1773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1776 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1778 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1782 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1784 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1786 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1788 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1790 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796 $as_echo_n "(cached) " >&6
1798 eval "$3=\$ac_header_compiler"
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 } # ac_fn_c_check_header_mongrel
1808 # ac_fn_c_try_run LINENO
1809 # ----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1811 # that executables *can* be run.
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_link"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>&5
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1826 { { case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_try") 2>&5
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; }; }; then :
1838 $as_echo "$as_me: program exited with status $ac_status" >&5
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1842 ac_retval=$ac_status
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists and can be compiled using the include files in
1853 # INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1867 if ac_fn_c_try_compile "$LINENO"; then :
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 } # ac_fn_c_check_header_compile
1881 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1882 # --------------------------------------------
1883 # Tries to find the compile-time value of EXPR in a program that includes
1884 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1886 ac_fn_c_compute_int ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if test "$cross_compiling" = yes; then
1890 # Depending upon the size, compute the lo and hi bounds.
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1897 static int test_array [1 - 2 * !(($2) >= 0)];
1904 if ac_fn_c_try_compile "$LINENO"; then :
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1913 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 ac_hi=$ac_mid; break
1923 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1924 if test $ac_lo -le $ac_mid; then
1928 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1939 static int test_array [1 - 2 * !(($2) < 0)];
1946 if ac_fn_c_try_compile "$LINENO"; then :
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1955 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_lo=$ac_mid; break
1965 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1966 if test $ac_mid -le $ac_hi; then
1970 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 # Binary search between lo and hi bounds.
1981 while test "x$ac_lo" != "x$ac_hi"; do
1982 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1989 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1996 if ac_fn_c_try_compile "$LINENO"; then :
1999 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2011 static long int longval () { return $2; }
2012 static unsigned long int ulongval () { return $2; }
2019 FILE *f = fopen ("conftest.val", "w");
2024 long int i = longval ();
2027 fprintf (f, "%ld", i);
2031 unsigned long int i = ulongval ();
2034 fprintf (f, "%lu", i);
2036 /* Do not output a trailing newline, as this causes \r\n confusion
2037 on some platforms. */
2038 return ferror (f) || fclose (f) != 0;
2044 if ac_fn_c_try_run "$LINENO"; then :
2045 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2050 conftest.$ac_objext conftest.beam conftest.$ac_ext
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 } # ac_fn_c_compute_int
2059 # ac_fn_c_try_link LINENO
2060 # -----------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded.
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 rm -f conftest.$ac_objext conftest$ac_exeext
2066 if { { ac_try="$ac_link"
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>conftest.err
2075 if test -s conftest.err; then
2076 grep -v '^ *+' conftest.err >conftest.er1
2077 cat conftest.er1 >&5
2078 mv -f conftest.er1 conftest.err
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; } && {
2082 test -z "$ac_c_werror_flag" ||
2083 test ! -s conftest.err
2084 } && test -s conftest$ac_exeext && {
2085 test "$cross_compiling" = yes ||
2086 $as_test_x conftest$ac_exeext
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2095 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097 # interfere with the next link command; also delete a directory that is
2098 # left behind by Apple's compiler. We do this before executing the actions.
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 } # ac_fn_c_try_link
2105 # ac_fn_c_check_func LINENO FUNC VAR
2106 # ----------------------------------
2107 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2108 ac_fn_c_check_func ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2114 $as_echo_n "(cached) " >&6
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2118 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2120 #define $2 innocuous_$2
2122 /* System header to define __stub macros and hopefully few prototypes,
2123 which can conflict with char $2 (); below.
2124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2125 <limits.h> exists even on freestanding compilers. */
2128 # include <limits.h>
2130 # include <assert.h>
2135 /* Override any GCC internal prototype to avoid an error.
2136 Use char because int might match the return type of a GCC
2137 builtin and then its argument prototype would still apply. */
2142 /* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145 #if defined __stub_$2 || defined __stub___$2
2157 if ac_fn_c_try_link "$LINENO"; then :
2162 rm -f core conftest.err conftest.$ac_objext \
2163 conftest$ac_exeext conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170 } # ac_fn_c_check_func
2172 # ac_fn_c_check_decl LINENO SYMBOL VAR
2173 # ------------------------------------
2174 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2175 ac_fn_c_check_decl ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 as_decl_name=`echo $2|sed 's/ *(.*//'`
2179 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2181 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2182 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2183 $as_echo_n "(cached) " >&6
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 #ifndef $as_decl_name
2193 (void) $as_decl_use;
2195 (void) $as_decl_name;
2203 if ac_fn_c_try_compile "$LINENO"; then :
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2215 } # ac_fn_c_check_decl
2217 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2218 # ----------------------------------------------------
2219 # Tries to find if the field MEMBER exists in type AGGR, after including
2220 # INCLUDES, setting cache variable VAR accordingly.
2221 ac_fn_c_check_member ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2225 $as_echo_n "checking for $2.$3... " >&6; }
2226 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2227 $as_echo_n "(cached) " >&6
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2242 if ac_fn_c_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2252 if (sizeof ac_aggr.$3)
2258 if ac_fn_c_try_compile "$LINENO"; then :
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2272 } # ac_fn_c_check_member
2274 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2275 # -------------------------------------------
2276 # Tests whether TYPE exists after having included INCLUDES, setting cache
2277 # variable VAR accordingly.
2278 ac_fn_c_check_type ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2284 $as_echo_n "(cached) " >&6
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2312 if ac_fn_c_try_compile "$LINENO"; then :
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323 $as_echo "$ac_res" >&6; }
2324 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2326 } # ac_fn_c_check_type
2327 cat >config.log <<_ACEOF
2328 This file contains any messages produced by compilers while
2329 running configure, to aid debugging if configure makes a mistake.
2331 It was created by $as_me, which was
2332 generated by GNU Autoconf 2.64. Invocation command line was
2344 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2345 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2346 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2347 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2348 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2350 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2351 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2353 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2354 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2355 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2356 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2357 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2358 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2359 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 $as_echo "PATH: $as_dir"
2384 # Keep a trace of the command line.
2385 # Strip out --no-create and --no-recursion so they do not pile up.
2386 # Strip out --silent because we don't want to record it for future runs.
2387 # Also quote any args containing shell meta-characters.
2388 # Make two passes to allow for proper duplicate-argument suppression.
2392 ac_must_keep_next=false
2398 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2400 | -silent | --silent | --silen | --sile | --sil)
2403 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2406 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2408 as_fn_append ac_configure_args1 " '$ac_arg'"
2409 if test $ac_must_keep_next = true; then
2410 ac_must_keep_next=false # Got value, back to normal.
2413 *=* | --config-cache | -C | -disable-* | --disable-* \
2414 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2415 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2416 | -with-* | --with-* | -without-* | --without-* | --x)
2417 case "$ac_configure_args0 " in
2418 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2421 -* ) ac_must_keep_next=true ;;
2424 as_fn_append ac_configure_args " '$ac_arg'"
2429 { ac_configure_args0=; unset ac_configure_args0;}
2430 { ac_configure_args1=; unset ac_configure_args1;}
2432 # When interrupted or exit'd, cleanup temporary files, and complete
2433 # config.log. We remove comments because anyway the quotes in there
2434 # would cause problems or look ugly.
2435 # WARNING: Use '\'' to represent an apostrophe within the trap.
2436 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2437 trap 'exit_status=$?
2438 # Save into config.log some information that might help in debugging.
2443 ## ---------------- ##
2444 ## Cache variables. ##
2445 ## ---------------- ##
2448 # The following way of writing the cache mishandles newlines in values,
2450 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2451 eval ac_val=\$$ac_var
2455 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2456 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2459 _ | IFS | as_nl) ;; #(
2460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2461 *) { eval $ac_var=; unset $ac_var;} ;;
2466 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2467 *${as_nl}ac_space=\ *)
2469 "s/'\''/'\''\\\\'\'''\''/g;
2470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2481 ## ----------------- ##
2482 ## Output variables. ##
2483 ## ----------------- ##
2486 for ac_var in $ac_subst_vars
2488 eval ac_val=\$$ac_var
2490 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492 $as_echo "$ac_var='\''$ac_val'\''"
2496 if test -n "$ac_subst_files"; then
2498 ## ------------------- ##
2499 ## File substitutions. ##
2500 ## ------------------- ##
2503 for ac_var in $ac_subst_files
2505 eval ac_val=\$$ac_var
2507 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2509 $as_echo "$ac_var='\''$ac_val'\''"
2514 if test -s confdefs.h; then
2524 test "$ac_signal" != 0 &&
2525 $as_echo "$as_me: caught signal $ac_signal"
2526 $as_echo "$as_me: exit $exit_status"
2528 rm -f core *.core core.conftest.* &&
2529 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2532 for ac_signal in 1 2 13 15; do
2533 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2538 rm -f -r conftest* confdefs.h
2540 $as_echo "/* confdefs.h */" > confdefs.h
2542 # Predefined preprocessor variables.
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_NAME "$PACKAGE_NAME"
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_STRING "$PACKAGE_STRING"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_URL "$PACKAGE_URL"
2569 # Let the site file select an alternate cache file if it wants to.
2570 # Prefer an explicitly selected file to automatically selected ones.
2573 if test -n "$CONFIG_SITE"; then
2574 ac_site_file1=$CONFIG_SITE
2575 elif test "x$prefix" != xNONE; then
2576 ac_site_file1=$prefix/share/config.site
2577 ac_site_file2=$prefix/etc/config.site
2579 ac_site_file1=$ac_default_prefix/share/config.site
2580 ac_site_file2=$ac_default_prefix/etc/config.site
2582 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2584 test "x$ac_site_file" = xNONE && continue
2585 if test -r "$ac_site_file"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2587 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2588 sed 's/^/| /' "$ac_site_file" >&5
2593 if test -r "$cache_file"; then
2594 # Some versions of bash will fail to source /dev/null (special
2595 # files actually), so we avoid doing that.
2596 if test -f "$cache_file"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2598 $as_echo "$as_me: loading cache $cache_file" >&6;}
2600 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2601 *) . "./$cache_file";;
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2606 $as_echo "$as_me: creating cache $cache_file" >&6;}
2610 # Check that the precious variables saved in the cache have kept the same
2612 ac_cache_corrupted=false
2613 for ac_var in $ac_precious_vars; do
2614 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2615 eval ac_new_set=\$ac_env_${ac_var}_set
2616 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2617 eval ac_new_val=\$ac_env_${ac_var}_value
2618 case $ac_old_set,$ac_new_set in
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2621 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2622 ac_cache_corrupted=: ;;
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2625 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2626 ac_cache_corrupted=: ;;
2629 if test "x$ac_old_val" != "x$ac_new_val"; then
2630 # differences in whitespace do not lead to failure.
2631 ac_old_val_w=`echo x $ac_old_val`
2632 ac_new_val_w=`echo x $ac_new_val`
2633 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2635 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2636 ac_cache_corrupted=:
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2639 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2640 eval $ac_var=\$ac_old_val
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2643 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2645 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2648 # Pass precious variables to config.status.
2649 if test "$ac_new_set" = set; then
2651 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2652 *) ac_arg=$ac_var=$ac_new_val ;;
2654 case " $ac_configure_args " in
2655 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2656 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2660 if $ac_cache_corrupted; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2664 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2665 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2667 ## -------------------- ##
2668 ## Main body of script. ##
2669 ## -------------------- ##
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681 ac_config_headers="$ac_config_headers config.h:config.in"
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2685 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2686 # Check whether --enable-maintainer-mode was given.
2687 if test "${enable_maintainer_mode+set}" = set; then :
2688 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2690 USE_MAINTAINER_MODE=no
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2694 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2695 if test $USE_MAINTAINER_MODE = yes; then
2696 MAINTAINER_MODE_TRUE=
2697 MAINTAINER_MODE_FALSE='#'
2699 MAINTAINER_MODE_TRUE='#'
2700 MAINTAINER_MODE_FALSE=
2703 MAINT=$MAINTAINER_MODE_TRUE
2707 # Provide more thorough testing by -lmcheck.
2708 # Set it to 'true' for development snapshots, 'false' for releases or
2713 ac_cpp='$CPP $CPPFLAGS'
2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717 if test -n "$ac_tool_prefix"; then
2718 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2719 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if test "${ac_cv_prog_CC+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 if test -n "$CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2748 $as_echo "$CC" >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2756 if test -z "$ac_cv_prog_CC"; then
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_ac_ct_CC="gcc"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786 if test -n "$ac_ct_CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2788 $as_echo "$ac_ct_CC" >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2794 if test "x$ac_ct_CC" = x; then
2797 case $cross_compiling:$ac_tool_warned in
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801 ac_tool_warned=yes ;;
2809 if test -z "$CC"; then
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}cc; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if test "${ac_cv_prog_CC+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_CC="${ac_tool_prefix}cc"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if test "${ac_cv_prog_CC+set}" = set; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 if test $ac_prog_rejected = yes; then
2882 # We found a bogon in the path, so make sure we never use it.
2883 set dummy $ac_cv_prog_CC
2885 if test $# != 0; then
2886 # We chose a different compiler from the bogus one.
2887 # However, it has the same basename, so the bogon will be chosen
2888 # first if we set CC to just the basename; use the full file name.
2890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2896 if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2906 if test -z "$CC"; then
2907 if test -n "$ac_tool_prefix"; then
2908 for ac_prog in cl.exe
2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if test "${ac_cv_prog_CC+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 if test -n "$CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2947 test -n "$CC" && break
2950 if test -z "$CC"; then
2952 for ac_prog in cl.exe
2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy $ac_prog; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2959 $as_echo_n "(cached) " >&6
2961 if test -n "$ac_ct_CC"; then
2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_ac_ct_CC="$ac_prog"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982 if test -n "$ac_ct_CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984 $as_echo "$ac_ct_CC" >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2991 test -n "$ac_ct_CC" && break
2994 if test "x$ac_ct_CC" = x; then
2997 case $cross_compiling:$ac_tool_warned in
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001 ac_tool_warned=yes ;;
3010 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 as_fn_error "no acceptable C compiler found in \$PATH
3013 See \`config.log' for more details." "$LINENO" 5; }
3015 # Provide some information about the compiler.
3016 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3019 for ac_option in --version -v -V -qversion; do
3020 { { ac_try="$ac_compiler $ac_option >&5"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3029 if test -s conftest.err; then
3031 ... rest of stderr output deleted ...
3032 10q' conftest.err >conftest.er1
3033 cat conftest.er1 >&5
3034 rm -f conftest.er1 conftest.err
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3051 ac_clean_files_save=$ac_clean_files
3052 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3053 # Try to create an executable without -o first, disregard a.out.
3054 # It will help us diagnose broken compilers, and finding out an intuition
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3057 $as_echo_n "checking for C compiler default output file name... " >&6; }
3058 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3060 # The possible output files:
3061 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3064 for ac_file in $ac_files
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3068 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3073 if { { ac_try="$ac_link_default"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_link_default") 2>&5
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }; then :
3084 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3085 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3086 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3087 # so that the user can short-circuit this test for compilers unknown to
3089 for ac_file in $ac_files ''
3091 test -f "$ac_file" || continue
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3096 # We found the default executable, but exeext='' is most
3100 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # We set ac_cv_exeext here because the later test for it is not
3105 # safe: cross compilers may not add the suffix if given an `-o'
3106 # argument, so we may need to know it at that point already.
3107 # Even if this section looks crufty: it has the advantage of
3114 test "$ac_cv_exeext" = no && ac_cv_exeext=
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3120 $as_echo "$ac_file" >&6; }
3121 if test -z "$ac_file"; then :
3122 $as_echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 { as_fn_set_status 77
3128 as_fn_error "C compiler cannot create executables
3129 See \`config.log' for more details." "$LINENO" 5; }; }
3131 ac_exeext=$ac_cv_exeext
3133 # Check that the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3136 $as_echo_n "checking whether the C compiler works... " >&6; }
3137 # If not cross compiling, check that we can run a simple program.
3138 if test "$cross_compiling" != yes; then
3139 if { ac_try='./$ac_file'
3140 { { case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_try") 2>&5
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; }; then
3152 if test "$cross_compiling" = maybe; then
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error "cannot run C compiled programs.
3158 If you meant to cross compile, use \`--host'.
3159 See \`config.log' for more details." "$LINENO" 5; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 $as_echo "yes" >&6; }
3166 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3167 ac_clean_files=$ac_clean_files_save
3168 # Check that the compiler produces executables we can run. If not, either
3169 # the compiler is broken, or we cross compile.
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3171 $as_echo_n "checking whether we are cross compiling... " >&6; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3173 $as_echo "$cross_compiling" >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3176 $as_echo_n "checking for suffix of executables... " >&6; }
3177 if { { ac_try="$ac_link"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_link") 2>&5
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; then :
3188 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3189 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3190 # work properly (i.e., refer to `conftest.exe'), while it won't with
3192 for ac_file in conftest.exe conftest conftest.*; do
3193 test -f "$ac_file" || continue
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3196 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error "cannot compute suffix of executables: cannot compile and link
3205 See \`config.log' for more details." "$LINENO" 5; }
3207 rm -f conftest$ac_cv_exeext
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3209 $as_echo "$ac_cv_exeext" >&6; }
3211 rm -f conftest.$ac_ext
3212 EXEEXT=$ac_cv_exeext
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3215 $as_echo_n "checking for suffix of object files... " >&6; }
3216 if test "${ac_cv_objext+set}" = set; then :
3217 $as_echo_n "(cached) " >&6
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3230 rm -f conftest.o conftest.obj
3231 if { { ac_try="$ac_compile"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_compile") 2>&5
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; then :
3242 for ac_file in conftest.o conftest.obj conftest.*; do
3243 test -f "$ac_file" || continue;
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3246 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3251 $as_echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error "cannot compute suffix of object files: cannot compile
3257 See \`config.log' for more details." "$LINENO" 5; }
3259 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3262 $as_echo "$ac_cv_objext" >&6; }
3263 OBJEXT=$ac_cv_objext
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3266 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3267 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3284 if ac_fn_c_try_compile "$LINENO"; then :
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3294 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3295 if test $ac_compiler_gnu = yes; then
3300 ac_test_CFLAGS=${CFLAGS+set}
3301 ac_save_CFLAGS=$CFLAGS
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3303 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3304 if test "${ac_cv_prog_cc_g+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
3307 ac_save_c_werror_flag=$ac_c_werror_flag
3308 ac_c_werror_flag=yes
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3322 if ac_fn_c_try_compile "$LINENO"; then :
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3337 if ac_fn_c_try_compile "$LINENO"; then :
3340 ac_c_werror_flag=$ac_save_c_werror_flag
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3353 if ac_fn_c_try_compile "$LINENO"; then :
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_c_werror_flag=$ac_save_c_werror_flag
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3364 $as_echo "$ac_cv_prog_cc_g" >&6; }
3365 if test "$ac_test_CFLAGS" = set; then
3366 CFLAGS=$ac_save_CFLAGS
3367 elif test $ac_cv_prog_cc_g = yes; then
3368 if test "$GCC" = yes; then
3374 if test "$GCC" = yes; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3381 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3382 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3385 ac_cv_prog_cc_c89=no
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3391 #include <sys/types.h>
3392 #include <sys/stat.h>
3393 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3394 struct buf { int x; };
3395 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3396 static char *e (p, i)
3402 static char *f (char * (*g) (char **, int), char **p, ...)
3407 s = g (p, va_arg (v,int));
3412 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3413 function prototypes and stuff, but not '\xHH' hex character constants.
3414 These don't provoke an error unfortunately, instead are silently treated
3415 as 'x'. The following induces an error, until -std is added to get
3416 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3417 array size at least. It's necessary to write '\x00'==0 to get something
3418 that's true only with -std. */
3419 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3421 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3422 inside strings and character constants. */
3424 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3426 int test (int i, double x);
3427 struct s1 {int (*f) (int a);};
3428 struct s2 {int (*f) (double a);};
3429 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3440 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3441 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3443 CC="$ac_save_CC $ac_arg"
3444 if ac_fn_c_try_compile "$LINENO"; then :
3445 ac_cv_prog_cc_c89=$ac_arg
3447 rm -f core conftest.err conftest.$ac_objext
3448 test "x$ac_cv_prog_cc_c89" != "xno" && break
3450 rm -f conftest.$ac_ext
3455 case "x$ac_cv_prog_cc_c89" in
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3458 $as_echo "none needed" >&6; } ;;
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3461 $as_echo "unsupported" >&6; } ;;
3463 CC="$CC $ac_cv_prog_cc_c89"
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3465 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3467 if test "x$ac_cv_prog_cc_c89" != xno; then :
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3484 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3485 # On Suns, sometimes $CPP names a directory.
3486 if test -n "$CPP" && test -d "$CPP"; then
3489 if test -z "$CPP"; then
3490 if test "${ac_cv_prog_CPP+set}" = set; then :
3491 $as_echo_n "(cached) " >&6
3493 # Double quotes because CPP needs to be expanded
3494 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3497 for ac_c_preproc_warn_flag in '' yes
3499 # Use a header file that comes with gcc, so configuring glibc
3500 # with a fresh cross-compiler works.
3501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502 # <limits.h> exists even on freestanding compilers.
3503 # On the NeXT, cc -E runs the code through the compiler's parser,
3504 # not just through cpp. "Syntax error" is here to catch this case.
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3508 # include <limits.h>
3510 # include <assert.h>
3514 if ac_fn_c_try_cpp "$LINENO"; then :
3517 # Broken: fails on valid input.
3520 rm -f conftest.err conftest.$ac_ext
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 #include <ac_nonexistent.h>
3528 if ac_fn_c_try_cpp "$LINENO"; then :
3529 # Broken: success on invalid input.
3532 # Passes both tests.
3536 rm -f conftest.err conftest.$ac_ext
3539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540 rm -f conftest.err conftest.$ac_ext
3541 if $ac_preproc_ok; then :
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3554 $as_echo "$CPP" >&6; }
3556 for ac_c_preproc_warn_flag in '' yes
3558 # Use a header file that comes with gcc, so configuring glibc
3559 # with a fresh cross-compiler works.
3560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561 # <limits.h> exists even on freestanding compilers.
3562 # On the NeXT, cc -E runs the code through the compiler's parser,
3563 # not just through cpp. "Syntax error" is here to catch this case.
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3567 # include <limits.h>
3569 # include <assert.h>
3573 if ac_fn_c_try_cpp "$LINENO"; then :
3576 # Broken: fails on valid input.
3579 rm -f conftest.err conftest.$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585 #include <ac_nonexistent.h>
3587 if ac_fn_c_try_cpp "$LINENO"; then :
3588 # Broken: success on invalid input.
3591 # Passes both tests.
3595 rm -f conftest.err conftest.$ac_ext
3598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599 rm -f conftest.err conftest.$ac_ext
3600 if $ac_preproc_ok; then :
3603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3606 See \`config.log' for more details." "$LINENO" 5; }
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3617 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3618 if test "${ac_cv_path_GREP+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3621 if test -z "$GREP"; then
3622 ac_path_GREP_found=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in grep ggrep; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3632 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3633 # Check for GNU ac_path_GREP and select it if it is found.
3634 # Check for GNU $ac_path_GREP
3635 case `"$ac_path_GREP" --version 2>&1` in
3637 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3640 $as_echo_n 0123456789 >"conftest.in"
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 $as_echo 'GREP' >> "conftest.nl"
3647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649 as_fn_arith $ac_count + 1 && ac_count=$as_val
3650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_GREP="$ac_path_GREP"
3653 ac_path_GREP_max=$ac_count
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3661 $ac_path_GREP_found && break 3
3666 if test -z "$ac_cv_path_GREP"; then
3667 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3670 ac_cv_path_GREP=$GREP
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3675 $as_echo "$ac_cv_path_GREP" >&6; }
3676 GREP="$ac_cv_path_GREP"
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3680 $as_echo_n "checking for egrep... " >&6; }
3681 if test "${ac_cv_path_EGREP+set}" = set; then :
3682 $as_echo_n "(cached) " >&6
3684 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3685 then ac_cv_path_EGREP="$GREP -E"
3687 if test -z "$EGREP"; then
3688 ac_path_EGREP_found=false
3689 # Loop through the user's path and test for each of PROGNAME-LIST
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3694 test -z "$as_dir" && as_dir=.
3695 for ac_prog in egrep; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3698 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3699 # Check for GNU ac_path_EGREP and select it if it is found.
3700 # Check for GNU $ac_path_EGREP
3701 case `"$ac_path_EGREP" --version 2>&1` in
3703 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3706 $as_echo_n 0123456789 >"conftest.in"
3709 cat "conftest.in" "conftest.in" >"conftest.tmp"
3710 mv "conftest.tmp" "conftest.in"
3711 cp "conftest.in" "conftest.nl"
3712 $as_echo 'EGREP' >> "conftest.nl"
3713 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3715 as_fn_arith $ac_count + 1 && ac_count=$as_val
3716 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3717 # Best one so far, save it but keep looking for a better one
3718 ac_cv_path_EGREP="$ac_path_EGREP"
3719 ac_path_EGREP_max=$ac_count
3721 # 10*(2^10) chars as input seems more than enough
3722 test $ac_count -gt 10 && break
3724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3727 $ac_path_EGREP_found && break 3
3732 if test -z "$ac_cv_path_EGREP"; then
3733 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3736 ac_cv_path_EGREP=$EGREP
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3742 $as_echo "$ac_cv_path_EGREP" >&6; }
3743 EGREP="$ac_cv_path_EGREP"
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3747 $as_echo_n "checking for ANSI C header files... " >&6; }
3748 if test "${ac_cv_header_stdc+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_cv_header_stdc=yes
3769 ac_cv_header_stdc=no
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 if test $ac_cv_header_stdc = yes; then
3774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781 $EGREP "memchr" >/dev/null 2>&1; then :
3784 ac_cv_header_stdc=no
3790 if test $ac_cv_header_stdc = yes; then
3791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798 $EGREP "free" >/dev/null 2>&1; then :
3801 ac_cv_header_stdc=no
3807 if test $ac_cv_header_stdc = yes; then
3808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3809 if test "$cross_compiling" = yes; then :
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3816 #if ((' ' & 0x0FF) == 0x020)
3817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3820 # define ISLOWER(c) \
3821 (('a' <= (c) && (c) <= 'i') \
3822 || ('j' <= (c) && (c) <= 'r') \
3823 || ('s' <= (c) && (c) <= 'z'))
3824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3832 for (i = 0; i < 256; i++)
3833 if (XOR (islower (i), ISLOWER (i))
3834 || toupper (i) != TOUPPER (i))
3839 if ac_fn_c_try_run "$LINENO"; then :
3842 ac_cv_header_stdc=no
3844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3845 conftest.$ac_objext conftest.beam conftest.$ac_ext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3851 $as_echo "$ac_cv_header_stdc" >&6; }
3852 if test $ac_cv_header_stdc = yes; then
3854 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3858 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3859 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3860 inttypes.h stdint.h unistd.h
3862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3863 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3865 eval as_val=\$$as_ac_Header
3866 if test "x$as_val" = x""yes; then :
3867 cat >>confdefs.h <<_ACEOF
3868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3877 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3878 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3885 if test "$MINIX" = yes; then
3887 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3890 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3893 $as_echo "#define _MINIX 1" >>confdefs.h
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3899 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3900 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3906 # define __EXTENSIONS__ 1
3907 $ac_includes_default
3916 if ac_fn_c_try_compile "$LINENO"; then :
3917 ac_cv_safe_to_define___extensions__=yes
3919 ac_cv_safe_to_define___extensions__=no
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3924 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3925 test $ac_cv_safe_to_define___extensions__ = yes &&
3926 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3928 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3930 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3932 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3934 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3938 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3939 for ac_t in install-sh install.sh shtool; do
3940 if test -f "$ac_dir/$ac_t"; then
3942 ac_install_sh="$ac_aux_dir/$ac_t -c"
3947 if test -z "$ac_aux_dir"; then
3948 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3951 # These three variables are undocumented and unsupported,
3952 # and are intended to be withdrawn in a future Autoconf release.
3953 # They can cause serious problems if a builder's source tree is in a directory
3954 # whose full name contains unusual characters.
3955 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3956 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3957 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3960 # Make sure we can run config.sub.
3961 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3962 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3965 $as_echo_n "checking build system type... " >&6; }
3966 if test "${ac_cv_build+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3969 ac_build_alias=$build_alias
3970 test "x$ac_build_alias" = x &&
3971 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3972 test "x$ac_build_alias" = x &&
3973 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3974 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3975 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3979 $as_echo "$ac_cv_build" >&6; }
3980 case $ac_cv_build in
3982 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3985 ac_save_IFS=$IFS; IFS='-'
3991 # Remember, the first character of IFS is used to create $*,
3992 # except with old shells:
3995 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3999 $as_echo_n "checking host system type... " >&6; }
4000 if test "${ac_cv_host+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4003 if test "x$host_alias" = x; then
4004 ac_cv_host=$ac_cv_build
4006 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4007 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4012 $as_echo "$ac_cv_host" >&6; }
4015 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4018 ac_save_IFS=$IFS; IFS='-'
4024 # Remember, the first character of IFS is used to create $*,
4025 # except with old shells:
4028 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4032 $as_echo_n "checking target system type... " >&6; }
4033 if test "${ac_cv_target+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4036 if test "x$target_alias" = x; then
4037 ac_cv_target=$ac_cv_host
4039 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4040 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4045 $as_echo "$ac_cv_target" >&6; }
4046 case $ac_cv_target in
4048 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4050 target=$ac_cv_target
4051 ac_save_IFS=$IFS; IFS='-'
4057 # Remember, the first character of IFS is used to create $*,
4058 # except with old shells:
4061 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4064 # The aliases save the names the user supplied, while $host etc.
4065 # will get canonicalized.
4066 test -n "$target_alias" &&
4067 test "$program_prefix$program_suffix$program_transform_name" = \
4069 program_prefix=${target_alias}-
4071 # The tests for host and target for $enable_largefile require
4076 # As the $enable_largefile decision depends on --enable-plugins we must set it
4077 # even in directories otherwise not depending on the $plugins option.
4080 # Check whether --enable-plugins was given.
4081 if test "${enable_plugins+set}" = set; then :
4082 enableval=$enable_plugins; case "${enableval}" in
4083 yes | "") plugins=yes ;;
4094 sparc-*-solaris*|i[3-7]86-*-solaris*)
4095 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4096 # are mutually exclusive; and without procfs support, the bfd/ elf module
4097 # cannot provide certain routines such as elfcore_write_prpsinfo
4098 # or elfcore_write_prstatus. So unless the user explicitly requested
4099 # large-file support through the --enable-largefile switch, disable
4100 # large-file support in favor of procfs support.
4101 test "${target}" = "${host}" -a "x$plugins" = xno \
4102 && : ${enable_largefile="no"}
4106 # Check whether --enable-largefile was given.
4107 if test "${enable_largefile+set}" = set; then :
4108 enableval=$enable_largefile;
4111 if test "$enable_largefile" != no; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4114 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4115 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
4118 ac_cv_sys_largefile_CC=no
4119 if test "$GCC" != yes; then
4122 # IRIX 6.2 and later do not support large files by default,
4123 # so use the C compiler's -n32 option if that helps.
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #include <sys/types.h>
4127 /* Check that off_t can represent 2**63 - 1 correctly.
4128 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4129 since some C++ compilers masquerading as C compilers
4130 incorrectly reject 9223372036854775807. */
4131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4133 && LARGE_OFF_T % 2147483647 == 1)
4143 if ac_fn_c_try_compile "$LINENO"; then :
4146 rm -f core conftest.err conftest.$ac_objext
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149 ac_cv_sys_largefile_CC=' -n32'; break
4151 rm -f core conftest.err conftest.$ac_objext
4155 rm -f conftest.$ac_ext
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4159 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4160 if test "$ac_cv_sys_largefile_CC" != no; then
4161 CC=$CC$ac_cv_sys_largefile_CC
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4165 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4166 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #include <sys/types.h>
4173 /* Check that off_t can represent 2**63 - 1 correctly.
4174 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4175 since some C++ compilers masquerading as C compilers
4176 incorrectly reject 9223372036854775807. */
4177 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4178 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4179 && LARGE_OFF_T % 2147483647 == 1)
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190 ac_cv_sys_file_offset_bits=no; break
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 #define _FILE_OFFSET_BITS 64
4196 #include <sys/types.h>
4197 /* Check that off_t can represent 2**63 - 1 correctly.
4198 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4199 since some C++ compilers masquerading as C compilers
4200 incorrectly reject 9223372036854775807. */
4201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4203 && LARGE_OFF_T % 2147483647 == 1)
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214 ac_cv_sys_file_offset_bits=64; break
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_sys_file_offset_bits=unknown
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4222 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4223 case $ac_cv_sys_file_offset_bits in #(
4226 cat >>confdefs.h <<_ACEOF
4227 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4232 if test $ac_cv_sys_file_offset_bits = unknown; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4234 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4235 if test "${ac_cv_sys_large_files+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <sys/types.h>
4242 /* Check that off_t can represent 2**63 - 1 correctly.
4243 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4244 since some C++ compilers masquerading as C compilers
4245 incorrectly reject 9223372036854775807. */
4246 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4247 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4248 && LARGE_OFF_T % 2147483647 == 1)
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259 ac_cv_sys_large_files=no; break
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #define _LARGE_FILES 1
4265 #include <sys/types.h>
4266 /* Check that off_t can represent 2**63 - 1 correctly.
4267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4268 since some C++ compilers masquerading as C compilers
4269 incorrectly reject 9223372036854775807. */
4270 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4272 && LARGE_OFF_T % 2147483647 == 1)
4282 if ac_fn_c_try_compile "$LINENO"; then :
4283 ac_cv_sys_large_files=1; break
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 ac_cv_sys_large_files=unknown
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4291 $as_echo "$ac_cv_sys_large_files" >&6; }
4292 case $ac_cv_sys_large_files in #(
4295 cat >>confdefs.h <<_ACEOF
4296 #define _LARGE_FILES $ac_cv_sys_large_files
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4309 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4310 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4313 am_cv_prog_cc_stdc=no
4315 # Don't try gcc -ansi; that turns off useful extensions and
4316 # breaks some systems' header files.
4317 # AIX -qlanglvl=ansi
4318 # Ultrix and OSF/1 -std1
4319 # HP-UX 10.20 and later -Ae
4320 # HP-UX older versions -Aa -D_HPUX_SOURCE
4321 # SVR4 -Xc -D__EXTENSIONS__
4322 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4324 CC="$ac_save_CC $ac_arg"
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4329 #include <sys/types.h>
4330 #include <sys/stat.h>
4331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4332 struct buf { int x; };
4333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4334 static char *e (p, i)
4340 static char *f (char * (*g) (char **, int), char **p, ...)
4345 s = g (p, va_arg (v,int));
4349 int test (int i, double x);
4350 struct s1 {int (*f) (int a);};
4351 struct s2 {int (*f) (double a);};
4352 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367 am_cv_prog_cc_stdc="$ac_arg"; break
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 if test -z "$am_cv_prog_cc_stdc"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4377 $as_echo "none needed" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4380 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4382 case "x$am_cv_prog_cc_stdc" in
4384 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4389 for ac_dir in .. "$srcdir"/..; do
4390 for ac_t in install-sh install.sh shtool; do
4391 if test -f "$ac_dir/$ac_t"; then
4393 ac_install_sh="$ac_aux_dir/$ac_t -c"
4398 if test -z "$ac_aux_dir"; then
4399 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4402 # These three variables are undocumented and unsupported,
4403 # and are intended to be withdrawn in a future Autoconf release.
4404 # They can cause serious problems if a builder's source tree is in a directory
4405 # whose full name contains unusual characters.
4406 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4407 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4408 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4412 test "$program_prefix" != NONE &&
4413 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4414 # Use a double $ so make ignores it.
4415 test "$program_suffix" != NONE &&
4416 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4417 # Double any \ or $.
4418 # By default was `s,x,x', remove it if useless.
4419 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4420 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4423 # Dependency checking.
4424 rm -rf .tst 2>/dev/null
4425 mkdir .tst 2>/dev/null
4426 if test -d .tst; then
4431 rmdir .tst 2>/dev/null
4433 DEPDIR="${am__leading_dot}deps"
4435 ac_config_commands="$ac_config_commands depdir"
4438 depcc="$CC" am_compiler_list=
4440 am_depcomp=$ac_aux_dir/depcomp
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4442 $as_echo_n "checking dependency style of $depcc... " >&6; }
4443 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4446 if test -f "$am_depcomp"; then
4447 # We make a subdir and do the tests there. Otherwise we can end up
4448 # making bogus files that we don't know about and never remove. For
4449 # instance it was reported that on HP-UX the gcc test will end up
4450 # making a dummy file named `D' -- because `-MD' means `put the output
4453 # Copy depcomp to subdir because otherwise we won't find it if we're
4454 # using a relative directory.
4455 cp "$am_depcomp" conftest.dir
4457 # We will build objects and dependencies in a subdirectory because
4458 # it helps to detect inapplicable dependency modes. For instance
4459 # both Tru64's cc and ICC support -MD to output dependencies as a
4460 # side effect of compilation, but ICC will put the dependencies in
4461 # the current directory while Tru64 will put them in the object
4465 am_cv_CC_dependencies_compiler_type=none
4466 if test "$am_compiler_list" = ""; then
4467 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4469 for depmode in $am_compiler_list; do
4470 if test $depmode = none; then break; fi
4472 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4473 # Setup a source with many dependencies, because some compilers
4474 # like to wrap large dependency lists on column 80 (with \), and
4475 # we should not choose a depcomp mode which is confused by this.
4477 # We need to recreate these files for each test, as the compiler may
4478 # overwrite some of them when testing with obscure command lines.
4479 # This happens at least with the AIX C compiler.
4481 for i in 1 2 3 4 5 6; do
4482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4484 # Solaris 8's {/usr,}/bin/sh.
4485 touch sub/conftst$i.h
4487 echo "include sub/conftest.Po" > confmf
4489 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4490 # mode. It turns out that the SunPro C++ compiler does not properly
4491 # handle `-M -o', and we need to detect this.
4492 depcmd="depmode=$depmode \
4493 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4495 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4496 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4497 if env $depcmd > conftest.err 2>&1 &&
4498 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4499 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4500 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4501 # icc doesn't choke on unknown options, it will just issue warnings
4502 # or remarks (even with -Werror). So we grep stderr for any message
4503 # that says an option was ignored or not supported.
4504 # When given -MP, icc 7.0 and 7.1 complain thusly:
4505 # icc: Command line warning: ignoring option '-M'; no argument required
4506 # The diagnosis changed in icc 8.0:
4507 # icc: Command line remark: option '-MP' not supported
4508 if (grep 'ignoring option' conftest.err ||
4509 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4510 am_cv_CC_dependencies_compiler_type=$depmode
4511 $as_echo "$as_me:$LINENO: success" >&5
4515 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4516 sed -e 's/^/| /' < conftest.err >&5
4522 am_cv_CC_dependencies_compiler_type=none
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4527 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4528 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4529 then as_fn_error "no usable dependency style found" "$LINENO" 5
4530 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4535 # Check for the 'make' the user wants to use.
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_MAKE+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4545 if test -n "$MAKE"; then
4546 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_MAKE="$ac_prog"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 MAKE=$ac_cv_prog_MAKE
4566 if test -n "$MAKE"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4568 $as_echo "$MAKE" >&6; }
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 test -n "$MAKE" && break
4579 case "`$MAKE --version 2>&1 | sed 1q`" in
4584 if test "$MAKE_IS_GNU" = yes; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4593 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4595 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4596 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4597 $as_echo_n "(cached) " >&6
4599 cat >conftest.make <<\_ACEOF
4602 @echo '@@@%%%=$(MAKE)=@@@%%%'
4604 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4605 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4607 eval ac_cv_prog_make_${ac_make}_set=yes;;
4609 eval ac_cv_prog_make_${ac_make}_set=no;;
4613 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615 $as_echo "yes" >&6; }
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4620 SET_MAKE="MAKE=${MAKE-make}"
4624 # Configure gnulib. We need to build gnulib under some other
4625 # directory not "gnulib", to avoid the problem of both GDB and
4626 # GDBserver wanting to build it in the same directory, when building
4627 # in the source dir.
4630 in_build="build-gnulib"
4632 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4633 # so they do not pile up.
4634 ac_sub_configure_args=
4636 eval "set x $ac_configure_args"
4640 if test -n "$ac_prev"; then
4645 -cache-file | --cache-file | --cache-fil | --cache-fi \
4646 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4647 ac_prev=cache_file ;;
4648 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4649 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4652 --config-cache | -C)
4654 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4656 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4662 --disable-option-checking)
4666 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4668 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4672 # Always prepend --prefix to ensure using the same prefix
4673 # in subdir configurations.
4674 ac_arg="--prefix=$prefix"
4676 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4678 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4681 if test "$silent" = yes; then
4682 ac_sub_configure_args="--silent $ac_sub_configure_args"
4685 # Always prepend --disable-option-checking to silence warnings, since
4686 # different subdirs can have different --enable and --with options.
4687 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4692 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4694 $as_echo "$ac_msg" >&6
4695 as_dir="$ac_dir"; as_fn_mkdir_p
4699 ac_srcdir=$srcdir/$in_src ;;
4701 ac_srcdir=../$srcdir/$in_src ;;
4706 ac_sub_configure=$ac_srcdir/configure
4708 # Make the cache file name correct relative to the subdirectory.
4710 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4712 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4715 { $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
4716 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4717 # The eval makes quoting arguments work.
4718 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4719 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4720 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4736 # If we haven't got the data from the intl directory,
4737 # assume NLS is disabled.
4746 if test -f ../intl/config.intl; then
4747 . ../intl/config.intl
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4750 $as_echo_n "checking whether NLS is requested... " >&6; }
4751 if test x"$USE_NLS" != xyes; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4756 $as_echo "yes" >&6; }
4758 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4762 $as_echo_n "checking for catalogs to be installed... " >&6; }
4763 # Look for .po and .gmo files in the source directory.
4766 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4767 # If there aren't any .gmo files the shell will give us the
4768 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4770 case "$cat" in *\**)
4773 # The quadruple backslash is collapsed to a double backslash
4774 # by the backticks, then collapsed again by the double quotes,
4775 # leaving us with one backslash in the sed expression (right
4776 # before the dot that mustn't act as a wildcard).
4777 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4778 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4779 # The user is allowed to set LINGUAS to a list of languages to
4780 # install catalogs for. If it's empty that means "all of them."
4781 if test "x$LINGUAS" = x; then
4782 CATALOGS="$CATALOGS $cat"
4783 XLINGUAS="$XLINGUAS $lang"
4785 case "$LINGUAS" in *$lang*)
4786 CATALOGS="$CATALOGS $cat"
4787 XLINGUAS="$XLINGUAS $lang"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4794 $as_echo "$LINGUAS" >&6; }
4807 localedir='${datadir}/locale'
4810 if test x"$USE_NLS" = xyes; then
4811 CONFIG_ALL="$CONFIG_ALL all-po"
4812 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4813 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4814 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4817 GNULIB=build-gnulib/import
4819 # For Makefile dependencies.
4821 if test x"$STDINT_H" != x; then
4822 GNULIB_STDINT_H=$GNULIB/$STDINT_H
4828 cat >>confdefs.h <<_ACEOF
4829 #define PACKAGE "$PACKAGE"
4834 # We never need to detect it in this sub-configure.
4835 # But preserve it for config.status --recheck.
4839 MAKEINFO_EXTRA_FLAGS=""
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4841 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4842 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4843 $as_echo_n "(cached) " >&6
4845 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4846 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4847 gdb_cv_have_makeinfo_click=yes
4849 gdb_cv_have_makeinfo_click=no
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4853 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4854 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
4855 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4861 # Check whether --with-separate-debug-dir was given.
4862 if test "${with_separate_debug_dir+set}" = set; then :
4863 withval=$with_separate_debug_dir;
4866 DEBUGDIR=${libdir}/debug
4870 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4872 ac_define_dir=`eval echo $DEBUGDIR`
4873 ac_define_dir=`eval echo $ac_define_dir`
4875 cat >>confdefs.h <<_ACEOF
4876 #define DEBUGDIR "$ac_define_dir"
4882 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4883 if test "x$prefix" = xNONE; then
4884 test_prefix=/usr/local
4889 test_prefix=$exec_prefix
4892 case ${ac_define_dir} in
4893 "${test_prefix}"|"${test_prefix}/"*|\
4894 '${exec_prefix}'|'${exec_prefix}/'*)
4899 cat >>confdefs.h <<_ACEOF
4900 #define DEBUGDIR_RELOCATABLE $value
4906 # We can't pass paths as command line arguments.
4907 # Mingw32 tries to be clever and will convert the paths for us.
4908 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4909 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4910 # This breaks GDB's relocatable path conversions since paths passed in
4911 # config.h would not get so translated, the path prefixes no longer match.
4913 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4914 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4915 ac_define_dir=`eval echo $bindir`
4916 ac_define_dir=`eval echo $ac_define_dir`
4918 cat >>confdefs.h <<_ACEOF
4919 #define BINDIR "$ac_define_dir"
4924 # GDB's datadir relocation
4928 # Check whether --with-gdb-datadir was given.
4929 if test "${with_gdb_datadir+set}" = set; then :
4930 withval=$with_gdb_datadir;
4931 GDB_DATADIR=$withval
4933 GDB_DATADIR=${datadir}/gdb
4937 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4938 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4939 ac_define_dir=`eval echo $GDB_DATADIR`
4940 ac_define_dir=`eval echo $ac_define_dir`
4942 cat >>confdefs.h <<_ACEOF
4943 #define GDB_DATADIR "$ac_define_dir"
4949 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4950 if test "x$prefix" = xNONE; then
4951 test_prefix=/usr/local
4956 test_prefix=$exec_prefix
4959 case ${ac_define_dir} in
4960 "${test_prefix}"|"${test_prefix}/"*|\
4961 '${exec_prefix}'|'${exec_prefix}/'*)
4966 cat >>confdefs.h <<_ACEOF
4967 #define GDB_DATADIR_RELOCATABLE $value
4974 # Check whether --with-relocated-sources was given.
4975 if test "${with_relocated_sources+set}" = set; then :
4976 withval=$with_relocated_sources; reloc_srcdir="${withval}"
4978 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4980 ac_define_dir=`eval echo $reloc_srcdir`
4981 ac_define_dir=`eval echo $ac_define_dir`
4983 cat >>confdefs.h <<_ACEOF
4984 #define RELOC_SRCDIR "$ac_define_dir"
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
4993 $as_echo_n "checking for default auto-load directory... " >&6; }
4995 # Check whether --with-auto-load-dir was given.
4996 if test "${with_auto_load_dir+set}" = set; then :
4997 withval=$with_auto_load_dir;
4999 with_auto_load_dir='$debugdir:$datadir/auto-load'
5002 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5004 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5005 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5006 ac_define_dir=`eval echo $escape_dir`
5007 ac_define_dir=`eval echo $ac_define_dir`
5009 cat >>confdefs.h <<_ACEOF
5010 #define AUTO_LOAD_DIR "$ac_define_dir"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5015 $as_echo "$with_auto_load_dir" >&6; }
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5018 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5020 # Check whether --with-auto-load-safe-path was given.
5021 if test "${with_auto_load_safe_path+set}" = set; then :
5022 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5023 with_auto_load_safe_path="/"
5026 with_auto_load_safe_path="$with_auto_load_dir"
5029 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5031 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5032 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5033 ac_define_dir=`eval echo $escape_dir`
5034 ac_define_dir=`eval echo $ac_define_dir`
5036 cat >>confdefs.h <<_ACEOF
5037 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5042 $as_echo "$with_auto_load_safe_path" >&6; }
5046 subdirs="$subdirs testsuite"
5049 # Check whether to support alternative target configurations
5050 # Check whether --enable-targets was given.
5051 if test "${enable_targets+set}" = set; then :
5052 enableval=$enable_targets; case "${enableval}" in
5053 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5055 no) enable_targets= ;;
5056 *) enable_targets=$enableval ;;
5061 # Check whether to enable 64-bit support on 32-bit hosts
5062 # Check whether --enable-64-bit-bfd was given.
5063 if test "${enable_64_bit_bfd+set}" = set; then :
5064 enableval=$enable_64_bit_bfd; case "${enableval}" in
5067 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5073 # Provide defaults for some variables set by the per-host and per-target
5075 gdb_host_obs=posix-hdep.o
5077 if test "${target}" = "${host}"; then
5083 . $srcdir/configure.host
5085 # Accumulate some settings from configure.tgt over all enabled targets
5089 HAVE_NATIVE_GCORE_TARGET=
5091 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5093 if test "$targ_alias" = "all"; then
5096 # Canonicalize the secondary target names.
5097 result=`$ac_config_sub $targ_alias 2>/dev/null`
5098 if test -n "$result"; then
5104 . ${srcdir}/configure.tgt
5106 if test -z "${gdb_target_obs}"; then :
5107 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5110 # Target-specific object files
5111 for i in ${gdb_target_obs}; do
5112 case " $TARGET_OBS " in
5115 TARGET_OBS="$TARGET_OBS ${i}"
5120 # Check whether this target needs 64-bit CORE_ADDR
5121 if test x${want64} = xfalse; then
5122 . ${srcdir}/../bfd/config.bfd
5125 # Check whether this target is native and supports gcore.
5126 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5127 && $gdb_have_gcore; then
5128 HAVE_NATIVE_GCORE_TARGET=1
5133 if test x${all_targets} = xtrue; then
5135 # We want all 64-bit targets if we either:
5136 # - run on a 64-bit host or
5137 # - already require 64-bit support for some other target or
5138 # - the --enable-64-bit-bfd option was supplied
5139 # Otherwise we only support all 32-bit targets.
5141 # NOTE: This test must be in sync with the corresponding
5144 if test x${want64} = xfalse; then
5145 # The cast to long int works around a bug in the HP C Compiler
5146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5148 # This bug is HP SR number 8606223364.
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5150 $as_echo_n "checking size of long... " >&6; }
5151 if test "${ac_cv_sizeof_long+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5154 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5157 if test "$ac_cv_type_long" = yes; then
5158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5160 { as_fn_set_status 77
5161 as_fn_error "cannot compute sizeof (long)
5162 See \`config.log' for more details." "$LINENO" 5; }; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5170 $as_echo "$ac_cv_sizeof_long" >&6; }
5174 cat >>confdefs.h <<_ACEOF
5175 #define SIZEOF_LONG $ac_cv_sizeof_long
5179 if test "x${ac_cv_sizeof_long}" = "x8"; then
5183 if test x${want64} = xtrue; then
5184 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5186 TARGET_OBS='$(ALL_TARGET_OBS)'
5193 # For other settings, only the main target counts.
5197 targ=$target; . ${srcdir}/configure.tgt
5199 # Fetch the default architecture and default target vector from BFD.
5200 targ=$target; . $srcdir/../bfd/config.bfd
5202 # We only want the first architecture, so strip off the others if
5203 # there is more than one.
5204 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5206 if test "x$targ_archs" != x; then
5208 cat >>confdefs.h <<_ACEOF
5209 #define DEFAULT_BFD_ARCH $targ_archs
5213 if test "x$targ_defvec" != x; then
5215 cat >>confdefs.h <<_ACEOF
5216 #define DEFAULT_BFD_VEC $targ_defvec
5221 # The CLI cannot be disabled yet, but may be in the future.
5224 # Check whether --enable-gdbcli was given.
5225 if test "${enable_gdbcli+set}" = set; then :
5226 enableval=$enable_gdbcli; case $enableval in
5230 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5232 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5238 if test x"$enable_gdbcli" = xyes; then
5239 if test -d $srcdir/cli; then
5240 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5241 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5242 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5243 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5248 # Check whether --enable-gdbmi was given.
5249 if test "${enable_gdbmi+set}" = set; then :
5250 enableval=$enable_gdbmi; case $enableval in
5254 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5260 if test x"$enable_gdbmi" = xyes; then
5261 if test -d $srcdir/mi; then
5262 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5263 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5264 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5265 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5270 # Check whether --enable-tui was given.
5271 if test "${enable_tui+set}" = set; then :
5272 enableval=$enable_tui; case $enableval in
5276 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5284 # Check whether --enable-gdbtk was given.
5285 if test "${enable_gdbtk+set}" = set; then :
5286 enableval=$enable_gdbtk; case $enableval in
5290 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5293 if test -d $srcdir/gdbtk; then
5300 # We unconditionally disable gdbtk tests on selected platforms.
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5304 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5308 # Libunwind support for ia64.
5311 # Check whether --with-libunwind-ia64 was given.
5312 if test "${with_libunwind_ia64+set}" = set; then :
5313 withval=$with_libunwind_ia64;
5315 with_libunwind_ia64=auto
5319 # Backward compatibility option.
5320 if test "${with_libunwind+set}" = set; then
5321 if test x"$with_libunwind_ia64" != xauto; then
5322 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5325 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5326 with_libunwind_ia64="$with_libunwind"
5329 case "$with_libunwind_ia64" in
5333 for ac_header in libunwind-ia64.h
5335 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5336 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5337 cat >>confdefs.h <<_ACEOF
5338 #define HAVE_LIBUNWIND_IA64_H 1
5345 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5348 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5352 if test x"$with_libunwind_ia64" = xyes; then
5353 for ac_header in libunwind-ia64.h
5355 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5356 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5357 cat >>confdefs.h <<_ACEOF
5358 #define HAVE_LIBUNWIND_IA64_H 1
5365 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5366 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5368 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5369 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5370 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5375 # Check whether --with-curses was given.
5376 if test "${with_curses+set}" = set; then :
5377 withval=$with_curses; opt_curses=$withval
5382 if test "$opt_curses" = "yes"; then
5386 # Profiling support.
5387 # Check whether --enable-profiling was given.
5388 if test "${enable_profiling+set}" = set; then :
5389 enableval=$enable_profiling; case $enableval in
5393 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5400 for ac_func in monstartup _mcleanup
5402 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5403 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5404 eval as_val=\$$as_ac_var
5405 if test "x$as_val" = x""yes; then :
5406 cat >>confdefs.h <<_ACEOF
5407 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5414 $as_echo_n "checking for _etext... " >&6; }
5415 if test "${ac_cv_var__etext+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5431 if ac_fn_c_try_link "$LINENO"; then :
5432 ac_cv_var__etext=yes
5436 rm -f core conftest.err conftest.$ac_objext \
5437 conftest$ac_exeext conftest.$ac_ext
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5440 $as_echo "$ac_cv_var__etext" >&6; }
5441 if test $ac_cv_var__etext = yes; then
5443 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5447 $as_echo_n "checking for etext... " >&6; }
5448 if test "${ac_cv_var_etext+set}" = set; then :
5449 $as_echo_n "(cached) " >&6
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5464 if ac_fn_c_try_link "$LINENO"; then :
5469 rm -f core conftest.err conftest.$ac_objext \
5470 conftest$ac_exeext conftest.$ac_ext
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5473 $as_echo "$ac_cv_var_etext" >&6; }
5474 if test $ac_cv_var_etext = yes; then
5476 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5479 if test "$enable_profiling" = yes ; then
5480 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5481 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5484 OLD_CFLAGS="$CFLAGS"
5485 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5488 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5489 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5503 if ac_fn_c_try_compile "$LINENO"; then :
5504 ac_cv_cc_supports_pg=yes
5506 ac_cv_cc_supports_pg=no
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5511 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5513 if test $ac_cv_cc_supports_pg = no; then
5514 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5517 CFLAGS="$OLD_CFLAGS"
5522 # Check whether --with-pkgversion was given.
5523 if test "${with_pkgversion+set}" = set; then :
5524 withval=$with_pkgversion; case "$withval" in
5525 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5527 *) PKGVERSION="($withval) " ;;
5538 # Check whether --with-bugurl was given.
5539 if test "${with_bugurl+set}" = set; then :
5540 withval=$with_bugurl; case "$withval" in
5541 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5544 *) BUGURL="$withval"
5548 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5558 REPORT_BUGS_TO="<$BUGURL>"
5559 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5566 cat >>confdefs.h <<_ACEOF
5567 #define PKGVERSION "$PKGVERSION"
5571 cat >>confdefs.h <<_ACEOF
5572 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5576 # --------------------- #
5577 # Checks for programs. #
5578 # --------------------- #
5580 for ac_prog in gawk mawk nawk awk
5582 # Extract the first word of "$ac_prog", so it can be a program name with args.
5583 set dummy $ac_prog; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if test "${ac_cv_prog_AWK+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5589 if test -n "$AWK"; then
5590 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 ac_cv_prog_AWK="$ac_prog"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 if test -n "$AWK"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5612 $as_echo "$AWK" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5619 test -n "$AWK" && break
5622 # Find a good install program. We prefer a C program (faster),
5623 # so one script is as good as another. But avoid the broken or
5624 # incompatible versions:
5625 # SysV /etc/install, /usr/sbin/install
5626 # SunOS /usr/etc/install
5627 # IRIX /sbin/install
5629 # AmigaOS /C/install, which installs bootblocks on floppy discs
5630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5633 # OS/2's system install, which has a completely different semantic
5634 # ./install, which can be erroneously created by make from ./install.sh.
5635 # Reject install programs that cannot install multiple files.
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5637 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5638 if test -z "$INSTALL"; then
5639 if test "${ac_cv_path_install+set}" = set; then :
5640 $as_echo_n "(cached) " >&6
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 test -z "$as_dir" && as_dir=.
5647 # Account for people who put trailing slashes in PATH elements.
5648 case $as_dir/ in #((
5649 ./ | .// | /[cC]/* | \
5650 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5651 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5654 # OSF1 and SCO ODT 3.0 have their own names for install.
5655 # Don't use installbsd from OSF since it installs stuff as root
5657 for ac_prog in ginstall scoinst install; do
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5660 if test $ac_prog = install &&
5661 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5662 # AIX install. It has an incompatible calling convention.
5664 elif test $ac_prog = install &&
5665 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5666 # program-specific install script used by HP pwplus--don't use.
5669 rm -rf conftest.one conftest.two conftest.dir
5670 echo one > conftest.one
5671 echo two > conftest.two
5673 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5674 test -s conftest.one && test -s conftest.two &&
5675 test -s conftest.dir/conftest.one &&
5676 test -s conftest.dir/conftest.two
5678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5691 rm -rf conftest.one conftest.two conftest.dir
5694 if test "${ac_cv_path_install+set}" = set; then
5695 INSTALL=$ac_cv_path_install
5697 # As a last resort, use the slow shell script. Don't cache a
5698 # value for INSTALL within a source directory, because that will
5699 # break other packages using the cache if that directory is
5700 # removed, or if the value is a relative name.
5701 INSTALL=$ac_install_sh
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5705 $as_echo "$INSTALL" >&6; }
5707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5708 # It thinks the first close brace ends the variable substitution.
5709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5716 $as_echo_n "checking whether ln -s works... " >&6; }
5718 if test "$LN_S" = "ln -s"; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5720 $as_echo "yes" >&6; }
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5723 $as_echo "no, using $LN_S" >&6; }
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5734 if test -n "$RANLIB"; then
5735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 RANLIB=$ac_cv_prog_RANLIB
5755 if test -n "$RANLIB"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5757 $as_echo "$RANLIB" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5765 if test -z "$ac_cv_prog_RANLIB"; then
5766 ac_ct_RANLIB=$RANLIB
5767 # Extract the first word of "ranlib", so it can be a program name with args.
5768 set dummy ranlib; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
5774 if test -n "$ac_ct_RANLIB"; then
5775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_ac_ct_RANLIB="ranlib"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5795 if test -n "$ac_ct_RANLIB"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5797 $as_echo "$ac_ct_RANLIB" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5803 if test "x$ac_ct_RANLIB" = x; then
5806 case $cross_compiling:$ac_tool_warned in
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5812 RANLIB=$ac_ct_RANLIB
5815 RANLIB="$ac_cv_prog_RANLIB"
5818 for ac_prog in 'bison -y' byacc
5820 # Extract the first word of "$ac_prog", so it can be a program name with args.
5821 set dummy $ac_prog; ac_word=$2
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 $as_echo_n "checking for $ac_word... " >&6; }
5824 if test "${ac_cv_prog_YACC+set}" = set; then :
5825 $as_echo_n "(cached) " >&6
5827 if test -n "$YACC"; then
5828 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_prog_YACC="$ac_prog"
5838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 YACC=$ac_cv_prog_YACC
5848 if test -n "$YACC"; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5850 $as_echo "$YACC" >&6; }
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5857 test -n "$YACC" && break
5859 test -n "$YACC" || YACC="yacc"
5862 if test -n "$ac_tool_prefix"; then
5863 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5864 set dummy ${ac_tool_prefix}ar; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866 $as_echo_n "checking for $ac_word... " >&6; }
5867 if test "${ac_cv_prog_AR+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5870 if test -n "$AR"; then
5871 ac_cv_prog_AR="$AR" # Let the user override the test.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_prog_AR="${ac_tool_prefix}ar"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 if test -n "$AR"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5893 $as_echo "$AR" >&6; }
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5901 if test -z "$ac_cv_prog_AR"; then
5903 # Extract the first word of "ar", so it can be a program name with args.
5904 set dummy ar; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5910 if test -n "$ac_ct_AR"; then
5911 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_prog_ac_ct_AR="ar"
5921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5931 if test -n "$ac_ct_AR"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5933 $as_echo "$ac_ct_AR" >&6; }
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5939 if test "x$ac_ct_AR" = x; then
5942 case $cross_compiling:$ac_tool_warned in
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5946 ac_tool_warned=yes ;;
5954 if test -n "$ac_tool_prefix"; then
5955 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5960 $as_echo_n "(cached) " >&6
5962 if test -n "$DLLTOOL"; then
5963 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 DLLTOOL=$ac_cv_prog_DLLTOOL
5983 if test -n "$DLLTOOL"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5985 $as_echo "$DLLTOOL" >&6; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5993 if test -z "$ac_cv_prog_DLLTOOL"; then
5994 ac_ct_DLLTOOL=$DLLTOOL
5995 # Extract the first word of "dlltool", so it can be a program name with args.
5996 set dummy dlltool; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6002 if test -n "$ac_ct_DLLTOOL"; then
6003 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6023 if test -n "$ac_ct_DLLTOOL"; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6025 $as_echo "$ac_ct_DLLTOOL" >&6; }
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6031 if test "x$ac_ct_DLLTOOL" = x; then
6034 case $cross_compiling:$ac_tool_warned in
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038 ac_tool_warned=yes ;;
6040 DLLTOOL=$ac_ct_DLLTOOL
6043 DLLTOOL="$ac_cv_prog_DLLTOOL"
6046 if test -n "$ac_tool_prefix"; then
6047 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6048 set dummy ${ac_tool_prefix}windres; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050 $as_echo_n "checking for $ac_word... " >&6; }
6051 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6052 $as_echo_n "(cached) " >&6
6054 if test -n "$WINDRES"; then
6055 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 WINDRES=$ac_cv_prog_WINDRES
6075 if test -n "$WINDRES"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6077 $as_echo "$WINDRES" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6085 if test -z "$ac_cv_prog_WINDRES"; then
6086 ac_ct_WINDRES=$WINDRES
6087 # Extract the first word of "windres", so it can be a program name with args.
6088 set dummy windres; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6092 $as_echo_n "(cached) " >&6
6094 if test -n "$ac_ct_WINDRES"; then
6095 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_ac_ct_WINDRES="windres"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6115 if test -n "$ac_ct_WINDRES"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6117 $as_echo "$ac_ct_WINDRES" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6123 if test "x$ac_ct_WINDRES" = x; then
6126 case $cross_compiling:$ac_tool_warned in
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130 ac_tool_warned=yes ;;
6132 WINDRES=$ac_ct_WINDRES
6135 WINDRES="$ac_cv_prog_WINDRES"
6141 # Needed for GNU Hurd hosts.
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6144 set dummy ${ac_tool_prefix}mig; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if test "${ac_cv_prog_MIG+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6150 if test -n "$MIG"; then
6151 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 if test -n "$MIG"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6173 $as_echo "$MIG" >&6; }
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6181 if test -z "$ac_cv_prog_MIG"; then
6183 # Extract the first word of "mig", so it can be a program name with args.
6184 set dummy mig; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6188 $as_echo_n "(cached) " >&6
6190 if test -n "$ac_ct_MIG"; then
6191 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_MIG="mig"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6211 if test -n "$ac_ct_MIG"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6213 $as_echo "$ac_ct_MIG" >&6; }
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6219 if test "x$ac_ct_MIG" = x; then
6222 case $cross_compiling:$ac_tool_warned in
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226 ac_tool_warned=yes ;;
6231 MIG="$ac_cv_prog_MIG"
6234 if test x"$MIG" = x; then
6235 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6240 # ---------------------- #
6241 # Checks for libraries. #
6242 # ---------------------- #
6244 # We might need to link with -lm; most simulators need it.
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6246 $as_echo_n "checking for main in -lm... " >&6; }
6247 if test "${ac_cv_lib_m_main+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6250 ac_check_lib_save_LIBS=$LIBS
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6264 if ac_fn_c_try_link "$LINENO"; then :
6265 ac_cv_lib_m_main=yes
6269 rm -f core conftest.err conftest.$ac_objext \
6270 conftest$ac_exeext conftest.$ac_ext
6271 LIBS=$ac_check_lib_save_LIBS
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6274 $as_echo "$ac_cv_lib_m_main" >&6; }
6275 if test "x$ac_cv_lib_m_main" = x""yes; then :
6276 cat >>confdefs.h <<_ACEOF
6285 # We need to link with -lw to get `wctype' on Solaris before Solaris
6286 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6287 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6288 # is known to have this problem). Therefore we avoid libw if we can.
6289 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6290 if test "x$ac_cv_func_wctype" = x""yes; then :
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6294 $as_echo_n "checking for wctype in -lw... " >&6; }
6295 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6298 ac_check_lib_save_LIBS=$LIBS
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6303 /* Override any GCC internal prototype to avoid an error.
6304 Use char because int might match the return type of a GCC
6305 builtin and then its argument prototype would still apply. */
6318 if ac_fn_c_try_link "$LINENO"; then :
6319 ac_cv_lib_w_wctype=yes
6321 ac_cv_lib_w_wctype=no
6323 rm -f core conftest.err conftest.$ac_objext \
6324 conftest$ac_exeext conftest.$ac_ext
6325 LIBS=$ac_check_lib_save_LIBS
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6328 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6329 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6330 cat >>confdefs.h <<_ACEOF
6341 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6343 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6344 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6347 ac_func_search_save_LIBS=$LIBS
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6351 /* Override any GCC internal prototype to avoid an error.
6352 Use char because int might match the return type of a GCC
6353 builtin and then its argument prototype would still apply. */
6357 char gethostbyname ();
6361 return gethostbyname ();
6366 for ac_lib in '' nsl; do
6367 if test -z "$ac_lib"; then
6368 ac_res="none required"
6371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6373 if ac_fn_c_try_link "$LINENO"; then :
6374 ac_cv_search_gethostbyname=$ac_res
6376 rm -f core conftest.err conftest.$ac_objext \
6378 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6382 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6385 ac_cv_search_gethostbyname=no
6388 LIBS=$ac_func_search_save_LIBS
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6391 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6392 ac_res=$ac_cv_search_gethostbyname
6393 if test "$ac_res" != no; then :
6394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6399 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6401 $as_echo_n "checking for library containing socketpair... " >&6; }
6402 if test "${ac_cv_search_socketpair+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6405 ac_func_search_save_LIBS=$LIBS
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6409 /* Override any GCC internal prototype to avoid an error.
6410 Use char because int might match the return type of a GCC
6411 builtin and then its argument prototype would still apply. */
6419 return socketpair ();
6424 for ac_lib in '' socket; do
6425 if test -z "$ac_lib"; then
6426 ac_res="none required"
6429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6431 if ac_fn_c_try_link "$LINENO"; then :
6432 ac_cv_search_socketpair=$ac_res
6434 rm -f core conftest.err conftest.$ac_objext \
6436 if test "${ac_cv_search_socketpair+set}" = set; then :
6440 if test "${ac_cv_search_socketpair+set}" = set; then :
6443 ac_cv_search_socketpair=no
6446 LIBS=$ac_func_search_save_LIBS
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6449 $as_echo "$ac_cv_search_socketpair" >&6; }
6450 ac_res=$ac_cv_search_socketpair
6451 if test "$ac_res" != no; then :
6452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6457 # Link in zlib if we can. This allows us to read compressed debug sections.
6459 # See if the user specified whether he wants zlib support or not.
6461 # Check whether --with-zlib was given.
6462 if test "${with_zlib+set}" = set; then :
6469 if test "$with_zlib" != "no"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6471 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6472 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6473 $as_echo_n "(cached) " >&6
6475 ac_func_search_save_LIBS=$LIBS
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6479 /* Override any GCC internal prototype to avoid an error.
6480 Use char because int might match the return type of a GCC
6481 builtin and then its argument prototype would still apply. */
6485 char zlibVersion ();
6489 return zlibVersion ();
6494 for ac_lib in '' z; do
6495 if test -z "$ac_lib"; then
6496 ac_res="none required"
6499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6501 if ac_fn_c_try_link "$LINENO"; then :
6502 ac_cv_search_zlibVersion=$ac_res
6504 rm -f core conftest.err conftest.$ac_objext \
6506 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6510 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6513 ac_cv_search_zlibVersion=no
6516 LIBS=$ac_func_search_save_LIBS
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6519 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6520 ac_res=$ac_cv_search_zlibVersion
6521 if test "$ac_res" != no; then :
6522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6523 for ac_header in zlib.h
6525 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6526 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6527 cat >>confdefs.h <<_ACEOF
6528 #define HAVE_ZLIB_H 1
6537 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6538 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6543 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6545 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6546 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6549 ac_func_search_save_LIBS=$LIBS
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6553 /* Override any GCC internal prototype to avoid an error.
6554 Use char because int might match the return type of a GCC
6555 builtin and then its argument prototype would still apply. */
6559 char dlgetmodinfo ();
6563 return dlgetmodinfo ();
6568 for ac_lib in '' dl xpdl; do
6569 if test -z "$ac_lib"; then
6570 ac_res="none required"
6573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6575 if ac_fn_c_try_link "$LINENO"; then :
6576 ac_cv_search_dlgetmodinfo=$ac_res
6578 rm -f core conftest.err conftest.$ac_objext \
6580 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6584 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6587 ac_cv_search_dlgetmodinfo=no
6590 LIBS=$ac_func_search_save_LIBS
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6593 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6594 ac_res=$ac_cv_search_dlgetmodinfo
6595 if test "$ac_res" != no; then :
6596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6604 # Check whether --with-libiconv-prefix was given.
6605 if test "${with_libiconv_prefix+set}" = set; then :
6606 withval=$with_libiconv_prefix;
6607 for dir in `echo "$withval" | tr : ' '`; do
6608 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
6609 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6615 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6616 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6619 $as_echo_n "checking for iconv... " >&6; }
6620 if test "${am_cv_func_iconv+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6624 am_cv_func_iconv="no, consider installing GNU libiconv"
6626 am_cv_use_build_libiconv=no
6627 am_cv_build_libiconv_path=
6629 # If libiconv is part of the build tree, then try using it over
6631 if test -d ../libiconv; then
6632 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
6633 am_save_LIBS="$LIBS"
6634 am_save_CPPFLAGS="$CPPFLAGS"
6635 LIBS="$LIBS $lib_dir/libiconv.a"
6636 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6644 iconv_t cd = iconv_open("","");
6645 iconv(cd,NULL,NULL,NULL,NULL);
6651 if ac_fn_c_try_link "$LINENO"; then :
6652 am_cv_use_build_libiconv=yes
6653 am_cv_build_libiconv_path=$lib_dir/libiconv.a
6655 am_cv_func_iconv=yes
6657 rm -f core conftest.err conftest.$ac_objext \
6658 conftest$ac_exeext conftest.$ac_ext
6659 LIBS="$am_save_LIBS"
6660 CPPFLAGS="$am_save_CPPFLAGS"
6661 if test "$am_cv_use_build_libiconv" = "yes"; then
6667 # Next, try to find iconv in libc.
6668 if test "$am_cv_func_iconv" != yes; then
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6676 iconv_t cd = iconv_open("","");
6677 iconv(cd,NULL,NULL,NULL,NULL);
6683 if ac_fn_c_try_link "$LINENO"; then :
6684 am_cv_func_iconv=yes
6686 rm -f core conftest.err conftest.$ac_objext \
6687 conftest$ac_exeext conftest.$ac_ext
6690 # If iconv was not in libc, try -liconv. In this case, arrange to
6691 # look in the libiconv prefix, if it was specified by the user.
6692 if test "$am_cv_func_iconv" != yes; then
6693 am_save_CPPFLAGS="$CPPFLAGS"
6694 am_save_LIBS="$LIBS"
6695 if test -n "$LIBICONV_INCLUDE"; then
6696 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6697 LIBS="$LIBS $LIBICONV_LIBDIR"
6699 LIBS="$LIBS -liconv"
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6707 iconv_t cd = iconv_open("","");
6708 iconv(cd,NULL,NULL,NULL,NULL);
6714 if ac_fn_c_try_link "$LINENO"; then :
6716 am_cv_func_iconv=yes
6718 rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6720 LIBS="$am_save_LIBS"
6721 CPPFLAGS="$am_save_CPPFLAGS"
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6726 $as_echo "$am_cv_func_iconv" >&6; }
6728 # Set the various flags based on the cache variables. We can't rely
6729 # on the flags to remain set from the above code, due to caching.
6731 if test "$am_cv_lib_iconv" = yes; then
6737 if test "$am_cv_use_build_libiconv" = yes; then
6738 LIBICONV="$am_cv_build_libiconv_path"
6740 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
6742 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6743 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6745 if test "$am_cv_func_iconv" = yes; then
6747 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6750 $as_echo_n "checking for iconv declaration... " >&6; }
6751 if test "${am_cv_proto_iconv+set}" = set; then :
6752 $as_echo_n "(cached) " >&6
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6764 #if defined(__STDC__) || defined(__cplusplus)
6765 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6778 if ac_fn_c_try_compile "$LINENO"; then :
6779 am_cv_proto_iconv_arg1=""
6781 am_cv_proto_iconv_arg1="const"
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 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);"
6787 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6789 }$am_cv_proto_iconv" >&5
6791 }$am_cv_proto_iconv" >&6; }
6793 cat >>confdefs.h <<_ACEOF
6794 #define ICONV_CONST $am_cv_proto_iconv_arg1
6800 # GDB may fork/exec the iconv program to get the list of supported character
6801 # sets. Allow the user to specify where to find it.
6802 # There are several factors affecting the choice of option name:
6803 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6804 # the build-time location of libiconv files.
6805 # - The program we need to find is iconv, which comes with glibc. The user
6806 # doesn't necessarily have libiconv installed. Therefore naming this
6807 # --with-libiconv-foo feels wrong.
6808 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6809 # defined to work on directories not files (though it really doesn't know
6811 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6812 # with --with-libiconv-prefix.
6813 # Putting these together is why the option name is --with-iconv-bin.
6816 # Check whether --with-iconv-bin was given.
6817 if test "${with_iconv_bin+set}" = set; then :
6818 withval=$with_iconv_bin; iconv_bin="${withval}"
6820 cat >>confdefs.h <<_ACEOF
6821 #define ICONV_BIN "${iconv_bin}"
6825 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6826 if test "x$prefix" = xNONE; then
6827 test_prefix=/usr/local
6832 test_prefix=$exec_prefix
6835 case ${iconv_bin} in
6836 "${test_prefix}"|"${test_prefix}/"*|\
6837 '${exec_prefix}'|'${exec_prefix}/'*)
6842 cat >>confdefs.h <<_ACEOF
6843 #define ICONV_BIN_RELOCATABLE $value
6851 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6852 # There is a very specific comment in /usr/include/curses.h explaining that
6853 # termcap routines built into libcurses must not be used.
6855 # The symptoms we observed so far is GDB unexpectedly changing
6856 # the terminal settings when tgetent is called - this is particularly
6857 # visible as the output is missing carriage returns, and so rapidly
6858 # becomes very hard to read.
6860 # The readline configure script has already decided that libtermcap
6861 # was enough for its purposes, and so decided to build readline using
6862 # libtermcap. Since the TUI mode requires curses, building GDB with
6863 # TUI enabled results in both libraries to be used at the same time,
6864 # which is not allowed. This basically means that GDB with TUI is
6865 # broken on alpha-osf.
6869 if test x"$enable_tui" = xyes; then
6870 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6872 if test x"$enable_tui" = xauto; then
6878 # For the TUI, we need enhanced curses functionality.
6879 if test x"$enable_tui" != xno; then
6884 if test x"$prefer_curses" = xyes; then
6885 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6886 # curses library because the latter might not provide all the
6887 # functionality we need. However, this leads to problems on systems
6888 # where the linker searches /usr/local/lib, but the compiler doesn't
6889 # search /usr/local/include, if ncurses is installed in /usr/local. A
6890 # default installation of ncurses on alpha*-dec-osf* will lead to such
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6893 $as_echo_n "checking for library containing waddstr... " >&6; }
6894 if test "${ac_cv_search_waddstr+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6897 ac_func_search_save_LIBS=$LIBS
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6901 /* Override any GCC internal prototype to avoid an error.
6902 Use char because int might match the return type of a GCC
6903 builtin and then its argument prototype would still apply. */
6916 for ac_lib in '' ncurses cursesX curses; do
6917 if test -z "$ac_lib"; then
6918 ac_res="none required"
6921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6923 if ac_fn_c_try_link "$LINENO"; then :
6924 ac_cv_search_waddstr=$ac_res
6926 rm -f core conftest.err conftest.$ac_objext \
6928 if test "${ac_cv_search_waddstr+set}" = set; then :
6932 if test "${ac_cv_search_waddstr+set}" = set; then :
6935 ac_cv_search_waddstr=no
6938 LIBS=$ac_func_search_save_LIBS
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6941 $as_echo "$ac_cv_search_waddstr" >&6; }
6942 ac_res=$ac_cv_search_waddstr
6943 if test "$ac_res" != no; then :
6944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6949 if test "$ac_cv_search_waddstr" != no; then
6954 # Check whether we should enable the TUI, but only do so if we really
6956 if test x"$enable_tui" != xno; then
6957 if test -d $srcdir/tui; then
6958 if test "$curses_found" != no; then
6959 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6960 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6961 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6962 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6964 if test x"$enable_tui" = xyes; then
6965 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6968 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6974 # Since GDB uses Readline, we need termcap functionality. In many
6975 # cases this will be provided by the curses library, but some systems
6976 # have a seperate termcap library, or no curses library at all.
6980 if test -d $srcdir/libtermcap; then
6981 LIBS="../libtermcap/libtermcap.a $LIBS"
6982 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6985 ac_cv_search_tgetent="none required"
6988 ac_cv_search_tgetent="none required"
6989 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
6993 # These are the libraries checked by Readline.
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6995 $as_echo_n "checking for library containing tgetent... " >&6; }
6996 if test "${ac_cv_search_tgetent+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6999 ac_func_search_save_LIBS=$LIBS
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7003 /* Override any GCC internal prototype to avoid an error.
7004 Use char because int might match the return type of a GCC
7005 builtin and then its argument prototype would still apply. */
7018 for ac_lib in '' termcap tinfo curses ncurses; do
7019 if test -z "$ac_lib"; then
7020 ac_res="none required"
7023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7025 if ac_fn_c_try_link "$LINENO"; then :
7026 ac_cv_search_tgetent=$ac_res
7028 rm -f core conftest.err conftest.$ac_objext \
7030 if test "${ac_cv_search_tgetent+set}" = set; then :
7034 if test "${ac_cv_search_tgetent+set}" = set; then :
7037 ac_cv_search_tgetent=no
7040 LIBS=$ac_func_search_save_LIBS
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7043 $as_echo "$ac_cv_search_tgetent" >&6; }
7044 ac_res=$ac_cv_search_tgetent
7045 if test "$ac_res" != no; then :
7046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7051 if test "$ac_cv_search_tgetent" = no; then
7052 as_fn_error "no termcap library found" "$LINENO" 5
7056 # Check whether --with-system-readline was given.
7057 if test "${with_system_readline+set}" = set; then :
7058 withval=$with_system_readline;
7062 if test "$with_system_readline" = yes; then
7066 READLINE_TEXI_INCFLAG=
7068 READLINE='$(READLINE_DIR)/libreadline.a'
7069 READLINE_DEPS='$(READLINE)'
7070 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7071 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7078 # Generate jit-reader.h
7080 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7083 # The cast to long int works around a bug in the HP C Compiler
7084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7086 # This bug is HP SR number 8606223364.
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7088 $as_echo_n "checking size of unsigned long long... " >&6; }
7089 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7090 $as_echo_n "(cached) " >&6
7092 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7095 if test "$ac_cv_type_unsigned_long_long" = yes; then
7096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7098 { as_fn_set_status 77
7099 as_fn_error "cannot compute sizeof (unsigned long long)
7100 See \`config.log' for more details." "$LINENO" 5; }; }
7102 ac_cv_sizeof_unsigned_long_long=0
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7108 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7112 cat >>confdefs.h <<_ACEOF
7113 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7117 # The cast to long int works around a bug in the HP C Compiler
7118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7120 # This bug is HP SR number 8606223364.
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7122 $as_echo_n "checking size of unsigned long... " >&6; }
7123 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7126 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7129 if test "$ac_cv_type_unsigned_long" = yes; then
7130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7132 { as_fn_set_status 77
7133 as_fn_error "cannot compute sizeof (unsigned long)
7134 See \`config.log' for more details." "$LINENO" 5; }; }
7136 ac_cv_sizeof_unsigned_long=0
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7142 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7146 cat >>confdefs.h <<_ACEOF
7147 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7151 # The cast to long int works around a bug in the HP C Compiler
7152 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7153 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7154 # This bug is HP SR number 8606223364.
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7156 $as_echo_n "checking size of unsigned __int128... " >&6; }
7157 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
7160 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7163 if test "$ac_cv_type_unsigned___int128" = yes; then
7164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7166 { as_fn_set_status 77
7167 as_fn_error "cannot compute sizeof (unsigned __int128)
7168 See \`config.log' for more details." "$LINENO" 5; }; }
7170 ac_cv_sizeof_unsigned___int128=0
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7176 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7180 cat >>confdefs.h <<_ACEOF
7181 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7186 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7187 TARGET_PTR="unsigned long"
7188 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7189 TARGET_PTR="unsigned long long"
7190 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7191 TARGET_PTR="unsigned __int128"
7193 TARGET_PTR="unsigned long"
7197 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7201 $as_echo_n "checking for library containing dlopen... " >&6; }
7202 if test "${ac_cv_search_dlopen+set}" = set; then :
7203 $as_echo_n "(cached) " >&6
7205 ac_func_search_save_LIBS=$LIBS
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7209 /* Override any GCC internal prototype to avoid an error.
7210 Use char because int might match the return type of a GCC
7211 builtin and then its argument prototype would still apply. */
7224 for ac_lib in '' dl; do
7225 if test -z "$ac_lib"; then
7226 ac_res="none required"
7229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7231 if ac_fn_c_try_link "$LINENO"; then :
7232 ac_cv_search_dlopen=$ac_res
7234 rm -f core conftest.err conftest.$ac_objext \
7236 if test "${ac_cv_search_dlopen+set}" = set; then :
7240 if test "${ac_cv_search_dlopen+set}" = set; then :
7243 ac_cv_search_dlopen=no
7246 LIBS=$ac_func_search_save_LIBS
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7249 $as_echo "$ac_cv_search_dlopen" >&6; }
7250 ac_res=$ac_cv_search_dlopen
7251 if test "$ac_res" != no; then :
7252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7259 # Check whether --with-jit-reader-dir was given.
7260 if test "${with_jit_reader_dir+set}" = set; then :
7261 withval=$with_jit_reader_dir;
7262 JIT_READER_DIR=$withval
7264 JIT_READER_DIR=${libdir}/gdb
7268 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7269 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7270 ac_define_dir=`eval echo $JIT_READER_DIR`
7271 ac_define_dir=`eval echo $ac_define_dir`
7273 cat >>confdefs.h <<_ACEOF
7274 #define JIT_READER_DIR "$ac_define_dir"
7280 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7281 if test "x$prefix" = xNONE; then
7282 test_prefix=/usr/local
7287 test_prefix=$exec_prefix
7290 case ${ac_define_dir} in
7291 "${test_prefix}"|"${test_prefix}/"*|\
7292 '${exec_prefix}'|'${exec_prefix}/'*)
7297 cat >>confdefs.h <<_ACEOF
7298 #define JIT_READER_DIR_RELOCATABLE $value
7305 # Check whether --with-expat was given.
7306 if test "${with_expat+set}" = set; then :
7307 withval=$with_expat;
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7313 $as_echo_n "checking whether to use expat... " >&6; }
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7315 $as_echo "$with_expat" >&6; }
7317 if test "${with_expat}" = no; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7319 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7323 if test "X$prefix" = "XNONE"; then
7324 acl_final_prefix="$ac_default_prefix"
7326 acl_final_prefix="$prefix"
7328 if test "X$exec_prefix" = "XNONE"; then
7329 acl_final_exec_prefix='${prefix}'
7331 acl_final_exec_prefix="$exec_prefix"
7333 acl_save_prefix="$prefix"
7334 prefix="$acl_final_prefix"
7335 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7336 prefix="$acl_save_prefix"
7339 # Check whether --with-gnu-ld was given.
7340 if test "${with_gnu_ld+set}" = set; then :
7341 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7346 # Prepare PATH_SEPARATOR.
7347 # The user is always right.
7348 if test "${PATH_SEPARATOR+set}" != set; then
7349 echo "#! /bin/sh" >conf$$.sh
7350 echo "exit 0" >>conf$$.sh
7352 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7360 if test "$GCC" = yes; then
7361 # Check if gcc -print-prog-name=ld gives a path.
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7363 $as_echo_n "checking for ld used by GCC... " >&6; }
7366 # gcc leaves a trailing carriage return which upsets mingw
7367 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7369 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7372 # Accept absolute paths.
7373 [\\/]* | [A-Za-z]:[\\/]*)
7374 re_direlt='/[^/][^/]*/\.\./'
7375 # Canonicalize the path of ld
7376 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7377 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7378 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7380 test -z "$LD" && LD="$ac_prog"
7383 # If it fails, then pretend we aren't using GCC.
7387 # If it is relative, then search for the first ld in PATH.
7391 elif test "$with_gnu_ld" = yes; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7393 $as_echo_n "checking for GNU ld... " >&6; }
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7396 $as_echo_n "checking for non-GNU ld... " >&6; }
7398 if test "${acl_cv_path_LD+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7401 if test -z "$LD"; then
7402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7403 for ac_dir in $PATH; do
7404 test -z "$ac_dir" && ac_dir=.
7405 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7406 acl_cv_path_LD="$ac_dir/$ac_prog"
7407 # Check to see if the program is GNU ld. I'd rather use --version,
7408 # but apparently some GNU ld's only accept -v.
7409 # Break only if it was the GNU/non-GNU ld that we prefer.
7410 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7411 test "$with_gnu_ld" != no && break
7413 test "$with_gnu_ld" != yes && break
7419 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7423 LD="$acl_cv_path_LD"
7424 if test -n "$LD"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7426 $as_echo "$LD" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7431 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7433 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7434 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7435 $as_echo_n "(cached) " >&6
7437 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7438 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7439 acl_cv_prog_gnu_ld=yes
7441 acl_cv_prog_gnu_ld=no
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7445 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7446 with_gnu_ld=$acl_cv_prog_gnu_ld
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7451 $as_echo_n "checking for shared library run path origin... " >&6; }
7452 if test "${acl_cv_rpath+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7456 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7457 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7464 $as_echo "$acl_cv_rpath" >&6; }
7466 libext="$acl_cv_libext"
7467 shlibext="$acl_cv_shlibext"
7468 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7469 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7470 hardcode_direct="$acl_cv_hardcode_direct"
7471 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7472 # Check whether --enable-rpath was given.
7473 if test "${enable_rpath+set}" = set; then :
7474 enableval=$enable_rpath; :
7490 acl_save_prefix="$prefix"
7491 prefix="$acl_final_prefix"
7492 acl_save_exec_prefix="$exec_prefix"
7493 exec_prefix="$acl_final_exec_prefix"
7495 eval additional_includedir=\"$includedir\"
7496 eval additional_libdir=\"$libdir\"
7498 exec_prefix="$acl_save_exec_prefix"
7499 prefix="$acl_save_prefix"
7502 # Check whether --with-libexpat-prefix was given.
7503 if test "${with_libexpat_prefix+set}" = set; then :
7504 withval=$with_libexpat_prefix;
7505 if test "X$withval" = "Xno"; then
7508 if test "X$withval" = "X"; then
7510 acl_save_prefix="$prefix"
7511 prefix="$acl_final_prefix"
7512 acl_save_exec_prefix="$exec_prefix"
7513 exec_prefix="$acl_final_exec_prefix"
7515 eval additional_includedir=\"$includedir\"
7516 eval additional_libdir=\"$libdir\"
7518 exec_prefix="$acl_save_exec_prefix"
7519 prefix="$acl_save_prefix"
7522 additional_includedir="$withval/include"
7523 additional_libdir="$withval/lib"
7534 names_already_handled=
7535 names_next_round='expat '
7536 while test -n "$names_next_round"; do
7537 names_this_round="$names_next_round"
7539 for name in $names_this_round; do
7541 for n in $names_already_handled; do
7542 if test "$n" = "$name"; then
7547 if test -z "$already_handled"; then
7548 names_already_handled="$names_already_handled $name"
7549 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7550 eval value=\"\$HAVE_LIB$uppername\"
7551 if test -n "$value"; then
7552 if test "$value" = yes; then
7553 eval value=\"\$LIB$uppername\"
7554 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7555 eval value=\"\$LTLIB$uppername\"
7556 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7565 if test $use_additional = yes; then
7566 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7567 found_dir="$additional_libdir"
7568 found_so="$additional_libdir/lib$name.$shlibext"
7569 if test -f "$additional_libdir/lib$name.la"; then
7570 found_la="$additional_libdir/lib$name.la"
7573 if test -f "$additional_libdir/lib$name.$libext"; then
7574 found_dir="$additional_libdir"
7575 found_a="$additional_libdir/lib$name.$libext"
7576 if test -f "$additional_libdir/lib$name.la"; then
7577 found_la="$additional_libdir/lib$name.la"
7582 if test "X$found_dir" = "X"; then
7583 for x in $LDFLAGS $LTLIBEXPAT; do
7585 acl_save_prefix="$prefix"
7586 prefix="$acl_final_prefix"
7587 acl_save_exec_prefix="$exec_prefix"
7588 exec_prefix="$acl_final_exec_prefix"
7590 exec_prefix="$acl_save_exec_prefix"
7591 prefix="$acl_save_prefix"
7595 dir=`echo "X$x" | sed -e 's/^X-L//'`
7596 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7598 found_so="$dir/lib$name.$shlibext"
7599 if test -f "$dir/lib$name.la"; then
7600 found_la="$dir/lib$name.la"
7603 if test -f "$dir/lib$name.$libext"; then
7605 found_a="$dir/lib$name.$libext"
7606 if test -f "$dir/lib$name.la"; then
7607 found_la="$dir/lib$name.la"
7613 if test "X$found_dir" != "X"; then
7618 if test "X$found_dir" != "X"; then
7619 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7620 if test "X$found_so" != "X"; then
7621 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7622 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7625 for x in $ltrpathdirs; do
7626 if test "X$x" = "X$found_dir"; then
7631 if test -z "$haveit"; then
7632 ltrpathdirs="$ltrpathdirs $found_dir"
7634 if test "$hardcode_direct" = yes; then
7635 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7637 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7638 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7640 for x in $rpathdirs; do
7641 if test "X$x" = "X$found_dir"; then
7646 if test -z "$haveit"; then
7647 rpathdirs="$rpathdirs $found_dir"
7651 for x in $LDFLAGS $LIBEXPAT; do
7653 acl_save_prefix="$prefix"
7654 prefix="$acl_final_prefix"
7655 acl_save_exec_prefix="$exec_prefix"
7656 exec_prefix="$acl_final_exec_prefix"
7658 exec_prefix="$acl_save_exec_prefix"
7659 prefix="$acl_save_prefix"
7661 if test "X$x" = "X-L$found_dir"; then
7666 if test -z "$haveit"; then
7667 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7669 if test "$hardcode_minus_L" != no; then
7670 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7672 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7678 if test "X$found_a" != "X"; then
7679 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7681 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7684 additional_includedir=
7685 case "$found_dir" in
7687 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7688 additional_includedir="$basedir/include"
7691 if test "X$additional_includedir" != "X"; then
7692 if test "X$additional_includedir" != "X/usr/include"; then
7694 if test "X$additional_includedir" = "X/usr/local/include"; then
7695 if test -n "$GCC"; then
7697 linux*) haveit=yes;;
7701 if test -z "$haveit"; then
7702 for x in $CPPFLAGS $INCEXPAT; do
7704 acl_save_prefix="$prefix"
7705 prefix="$acl_final_prefix"
7706 acl_save_exec_prefix="$exec_prefix"
7707 exec_prefix="$acl_final_exec_prefix"
7709 exec_prefix="$acl_save_exec_prefix"
7710 prefix="$acl_save_prefix"
7712 if test "X$x" = "X-I$additional_includedir"; then
7717 if test -z "$haveit"; then
7718 if test -d "$additional_includedir"; then
7719 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7725 if test -n "$found_la"; then
7726 save_libdir="$libdir"
7728 */* | *\\*) . "$found_la" ;;
7729 *) . "./$found_la" ;;
7731 libdir="$save_libdir"
7732 for dep in $dependency_libs; do
7735 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7736 if test "X$additional_libdir" != "X/usr/lib"; then
7738 if test "X$additional_libdir" = "X/usr/local/lib"; then
7739 if test -n "$GCC"; then
7741 linux*) haveit=yes;;
7745 if test -z "$haveit"; then
7747 for x in $LDFLAGS $LIBEXPAT; do
7749 acl_save_prefix="$prefix"
7750 prefix="$acl_final_prefix"
7751 acl_save_exec_prefix="$exec_prefix"
7752 exec_prefix="$acl_final_exec_prefix"
7754 exec_prefix="$acl_save_exec_prefix"
7755 prefix="$acl_save_prefix"
7757 if test "X$x" = "X-L$additional_libdir"; then
7762 if test -z "$haveit"; then
7763 if test -d "$additional_libdir"; then
7764 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7768 for x in $LDFLAGS $LTLIBEXPAT; do
7770 acl_save_prefix="$prefix"
7771 prefix="$acl_final_prefix"
7772 acl_save_exec_prefix="$exec_prefix"
7773 exec_prefix="$acl_final_exec_prefix"
7775 exec_prefix="$acl_save_exec_prefix"
7776 prefix="$acl_save_prefix"
7778 if test "X$x" = "X-L$additional_libdir"; then
7783 if test -z "$haveit"; then
7784 if test -d "$additional_libdir"; then
7785 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7792 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7793 if test "$enable_rpath" != no; then
7795 for x in $rpathdirs; do
7796 if test "X$x" = "X$dir"; then
7801 if test -z "$haveit"; then
7802 rpathdirs="$rpathdirs $dir"
7805 for x in $ltrpathdirs; do
7806 if test "X$x" = "X$dir"; then
7811 if test -z "$haveit"; then
7812 ltrpathdirs="$ltrpathdirs $dir"
7817 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7820 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7823 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7824 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7830 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7831 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7837 if test "X$rpathdirs" != "X"; then
7838 if test -n "$hardcode_libdir_separator"; then
7840 for found_dir in $rpathdirs; do
7841 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7843 acl_save_libdir="$libdir"
7845 eval flag=\"$hardcode_libdir_flag_spec\"
7846 libdir="$acl_save_libdir"
7847 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7849 for found_dir in $rpathdirs; do
7850 acl_save_libdir="$libdir"
7852 eval flag=\"$hardcode_libdir_flag_spec\"
7853 libdir="$acl_save_libdir"
7854 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7858 if test "X$ltrpathdirs" != "X"; then
7859 for found_dir in $ltrpathdirs; do
7860 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7865 ac_save_CPPFLAGS="$CPPFLAGS"
7867 for element in $INCEXPAT; do
7869 for x in $CPPFLAGS; do
7871 acl_save_prefix="$prefix"
7872 prefix="$acl_final_prefix"
7873 acl_save_exec_prefix="$exec_prefix"
7874 exec_prefix="$acl_final_exec_prefix"
7876 exec_prefix="$acl_save_exec_prefix"
7877 prefix="$acl_save_prefix"
7879 if test "X$x" = "X$element"; then
7884 if test -z "$haveit"; then
7885 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7891 $as_echo_n "checking for libexpat... " >&6; }
7892 if test "${ac_cv_libexpat+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7896 ac_save_LIBS="$LIBS"
7897 LIBS="$LIBS $LIBEXPAT"
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7904 XML_Parser p = XML_ParserCreate (0);
7909 if ac_fn_c_try_link "$LINENO"; then :
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 LIBS="$ac_save_LIBS"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7920 $as_echo "$ac_cv_libexpat" >&6; }
7921 if test "$ac_cv_libexpat" = yes; then
7924 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7927 $as_echo_n "checking how to link with libexpat... " >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7929 $as_echo "$LIBEXPAT" >&6; }
7932 CPPFLAGS="$ac_save_CPPFLAGS"
7942 if test "$HAVE_LIBEXPAT" != yes; then
7943 if test "$with_expat" = yes; then
7944 as_fn_error "expat is missing or unusable" "$LINENO" 5
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7947 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7951 LIBS="$LIBS $LIBEXPAT"
7952 for ac_func in XML_StopParser
7954 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7955 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
7956 cat >>confdefs.h <<_ACEOF
7957 #define HAVE_XML_STOPPARSER 1
7972 # Check whether --with-python was given.
7973 if test "${with_python+set}" = set; then :
7974 withval=$with_python;
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7980 $as_echo_n "checking whether to use python... " >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7982 $as_echo "$with_python" >&6; }
7984 if test "${with_python}" = no; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7986 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7989 case "${with_python}" in
7991 if test -d ${with_python}; then
7992 # Assume the python binary is ${with_python}/bin/python.
7993 python_prog="${with_python}/bin/python"
7995 # If python does not exit ${with_python}/bin, then try in
7996 # ${with_python}. On Windows/MinGW, this is where the Python
7998 if test ! -x "${python_prog}"; then
7999 python_prog="${with_python}/python"
8002 if test ! -x "${python_prog}"; then
8003 # Fall back to gdb 7.0/7.1 behaviour.
8005 python_prefix=${with_python}
8007 elif test -x "${with_python}"; then
8008 # While we can't run python compiled for $host (unless host == build),
8009 # the user could write a script that provides the needed information,
8010 # so we support that.
8011 python_prog=${with_python}
8014 as_fn_error "invalid value for --with-python" "$LINENO" 5
8018 # Disallow --with-python=foo/bar.
8019 as_fn_error "invalid value for --with-python" "$LINENO" 5
8022 # The user has either specified auto, yes, or the name of the python
8023 # program assumed to be in $PATH.
8025 case "${with_python}" in
8027 if test ${build} = ${host}; then
8028 # Extract the first word of "python", so it can be a program name with args.
8029 set dummy python; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8035 case $python_prog_path in
8037 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 test -z "$as_dir" && as_dir=.
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8047 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8059 python_prog_path=$ac_cv_path_python_prog_path
8060 if test -n "$python_prog_path"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8062 $as_echo "$python_prog_path" >&6; }
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8069 if test "${python_prog_path}" = missing; then
8072 python_prog=${python_prog_path}
8075 # Not much we can do except assume the cross-compiler will find the
8081 # While we can't run python compiled for $host (unless host == build),
8082 # the user could write a script that provides the needed information,
8083 # so we support that.
8084 python_prog="${with_python}"
8085 # Extract the first word of "${python_prog}", so it can be a program name with args.
8086 set dummy ${python_prog}; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8092 case $python_prog_path in
8094 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8104 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8116 python_prog_path=$ac_cv_path_python_prog_path
8117 if test -n "$python_prog_path"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8119 $as_echo "$python_prog_path" >&6; }
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8126 if test "${python_prog_path}" = missing; then
8127 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8133 if test "${python_prog}" != missing; then
8134 # We have a python program to use, but it may be too old.
8135 # Don't flag an error for --with-python=auto (the default).
8136 have_python_config=yes
8137 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8138 if test $? != 0; then
8139 have_python_config=failed
8140 if test "${with_python}" != auto; then
8141 as_fn_error "failure running python-config --includes" "$LINENO" 5
8144 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8145 if test $? != 0; then
8146 have_python_config=failed
8147 if test "${with_python}" != auto; then
8148 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8151 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8152 if test $? != 0; then
8153 have_python_config=failed
8154 if test "${with_python}" != auto; then
8155 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8159 # We do not have a python executable we can use to determine where
8160 # to find the Python headers and libs. We cannot guess the include
8161 # path from the python_prefix either, because that include path
8162 # depends on the Python version. So, there is nothing much we can
8163 # do except assume that the compiler will be able to find those files.
8166 have_python_config=no
8169 # If we have python-config, only try the configuration it provides.
8170 # Otherwise fallback on the old way of trying different versions of
8174 if test "${have_python_config}" = yes; then
8175 # Determine the Python version by extracting "-lpython<version>"
8176 # part of the python_libs. <version> is usually X.Y with X and Y
8177 # being decimal numbers, but can also be XY (seen on Windows).
8179 # The extraction is performed using sed with a regular expression.
8180 # Initially, the regexp used was using the '?' quantifier to make
8181 # the dot in the version number optional. Unfortunately, this
8182 # does not work with non-GNU versions of sed because, because of
8183 # what looks like a limitation (the '?' quantifier does not work
8184 # with back-references). We work around this limitation by using
8185 # the '*' quantifier instead. It means that, in theory, we might
8186 # match unexpected version strings such as "-lpython2..7", but
8187 # this seems unlikely in practice. And even if that happens,
8188 # an error will be triggered later on, when checking that version
8190 python_version=`echo " ${python_libs} " \
8191 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8192 case "${python_version}" in
8195 version=${python_version}
8197 new_CPPFLAGS=${python_includes}
8198 new_LIBS=${python_libs}
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8200 $as_echo_n "checking for ${version}... " >&6; }
8201 save_CPPFLAGS=$CPPFLAGS
8203 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8204 LIBS="$LIBS $new_LIBS"
8205 found_usable_python=no
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8217 if ac_fn_c_try_link "$LINENO"; then :
8218 have_libpython=${version}
8219 found_usable_python=yes
8220 PYTHON_CPPFLAGS=$new_CPPFLAGS
8221 PYTHON_LIBS=$new_LIBS
8223 rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
8225 CPPFLAGS=$save_CPPFLAGS
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8228 $as_echo "${found_usable_python}" >&6; }
8232 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8235 elif test "${have_python_config}" != failed; then
8236 if test "${have_libpython}" = no; then
8240 new_CPPFLAGS=${python_includes}
8241 new_LIBS="${python_libs} -lpython2.7"
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8243 $as_echo_n "checking for ${version}... " >&6; }
8244 save_CPPFLAGS=$CPPFLAGS
8246 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8247 LIBS="$LIBS $new_LIBS"
8248 found_usable_python=no
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8260 if ac_fn_c_try_link "$LINENO"; then :
8261 have_libpython=${version}
8262 found_usable_python=yes
8263 PYTHON_CPPFLAGS=$new_CPPFLAGS
8264 PYTHON_LIBS=$new_LIBS
8266 rm -f core conftest.err conftest.$ac_objext \
8267 conftest$ac_exeext conftest.$ac_ext
8268 CPPFLAGS=$save_CPPFLAGS
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8271 $as_echo "${found_usable_python}" >&6; }
8274 if test "${have_libpython}" = no; then
8278 new_CPPFLAGS=${python_includes}
8279 new_LIBS="${python_libs} -lpython2.6"
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8281 $as_echo_n "checking for ${version}... " >&6; }
8282 save_CPPFLAGS=$CPPFLAGS
8284 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8285 LIBS="$LIBS $new_LIBS"
8286 found_usable_python=no
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8298 if ac_fn_c_try_link "$LINENO"; then :
8299 have_libpython=${version}
8300 found_usable_python=yes
8301 PYTHON_CPPFLAGS=$new_CPPFLAGS
8302 PYTHON_LIBS=$new_LIBS
8304 rm -f core conftest.err conftest.$ac_objext \
8305 conftest$ac_exeext conftest.$ac_ext
8306 CPPFLAGS=$save_CPPFLAGS
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8309 $as_echo "${found_usable_python}" >&6; }
8312 if test ${have_libpython} = no; then
8316 new_CPPFLAGS=${python_includes}
8317 new_LIBS="${python_libs} -lpython2.5"
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8319 $as_echo_n "checking for ${version}... " >&6; }
8320 save_CPPFLAGS=$CPPFLAGS
8322 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8323 LIBS="$LIBS $new_LIBS"
8324 found_usable_python=no
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8336 if ac_fn_c_try_link "$LINENO"; then :
8337 have_libpython=${version}
8338 found_usable_python=yes
8339 PYTHON_CPPFLAGS=$new_CPPFLAGS
8340 PYTHON_LIBS=$new_LIBS
8342 rm -f core conftest.err conftest.$ac_objext \
8343 conftest$ac_exeext conftest.$ac_ext
8344 CPPFLAGS=$save_CPPFLAGS
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8347 $as_echo "${found_usable_python}" >&6; }
8350 if test ${have_libpython} = no; then
8354 new_CPPFLAGS=${python_includes}
8355 new_LIBS="${python_libs} -lpython2.4"
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8357 $as_echo_n "checking for ${version}... " >&6; }
8358 save_CPPFLAGS=$CPPFLAGS
8360 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8361 LIBS="$LIBS $new_LIBS"
8362 found_usable_python=no
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 have_libpython=${version}
8376 found_usable_python=yes
8377 PYTHON_CPPFLAGS=$new_CPPFLAGS
8378 PYTHON_LIBS=$new_LIBS
8380 rm -f core conftest.err conftest.$ac_objext \
8381 conftest$ac_exeext conftest.$ac_ext
8382 CPPFLAGS=$save_CPPFLAGS
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8385 $as_echo "${found_usable_python}" >&6; }
8389 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8391 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8393 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8395 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8397 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8399 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8401 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8403 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8407 if test "${have_libpython}" = no; then
8408 case "${with_python}" in
8410 as_fn_error "python is missing or unusable" "$LINENO" 5
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8414 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8417 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8421 if test -n "${python_prefix}"; then
8423 cat >>confdefs.h <<_ACEOF
8424 #define WITH_PYTHON_PATH "${python_prefix}"
8428 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8429 if test "x$prefix" = xNONE; then
8430 test_prefix=/usr/local
8435 test_prefix=$exec_prefix
8438 case ${python_prefix} in
8439 "${test_prefix}"|"${test_prefix}/"*|\
8440 '${exec_prefix}'|'${exec_prefix}/'*)
8445 cat >>confdefs.h <<_ACEOF
8446 #define PYTHON_PATH_RELOCATABLE $value
8454 if test "${have_libpython}" != no; then
8456 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8458 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8459 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8460 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8461 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8462 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8464 # Flags needed to compile Python code (taken from python-config --cflags).
8465 # We cannot call python-config directly because it will output whatever was
8466 # used when compiling the Python interpreter itself, including flags which
8467 # would make the python-related objects be compiled differently from the
8468 # rest of GDB (e.g., -O2 and -fPIC).
8469 if test "${GCC}" = yes; then
8470 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8473 if test "x${tentative_python_cflags}" != x; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8475 $as_echo_n "checking compiler flags for python code... " >&6; }
8476 for flag in ${tentative_python_cflags}; do
8477 # Check that the compiler accepts it
8478 saved_CFLAGS="$CFLAGS"
8479 CFLAGS="$CFLAGS $flag"
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8491 if ac_fn_c_try_compile "$LINENO"; then :
8492 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495 CFLAGS="$saved_CFLAGS"
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8498 $as_echo "${PYTHON_CFLAGS}" >&6; }
8501 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8503 # #define siginfo __siginfo
8505 # The problem is that including Python causes some XOPEN macros to be
8506 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8507 # to false. So, we work around this issue by defining siginfo ourself
8508 # though the command-line.
8510 # On x64 Windows, Python's include headers, and pyconfig.h in
8511 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8512 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8513 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8514 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8515 # The issue was reported to the Python community, but still isn't
8516 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8519 irix*) if test "${GCC}" = yes; then
8520 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
8524 if test "${GCC}" = yes; then
8525 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
8530 # Note that "python -m threading" cannot be used to check for
8531 # threading support due to a bug in Python 2.7.3
8532 # (http://bugs.python.org/issue15567).
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8534 $as_echo_n "checking whether python supports threads... " >&6; }
8535 saved_CPPFLAGS="${CPPFLAGS}"
8536 CPPFLAGS="${PYTHON_CPPFLAGS}"
8537 # Note that the test is reversed so that python_has_threads=yes on
8538 # unexpected failures.
8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8548 if ac_fn_c_try_cpp "$LINENO"; then :
8549 python_has_threads=no
8551 python_has_threads=yes
8553 rm -f conftest.err conftest.$ac_ext
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8555 $as_echo "${python_has_threads}" >&6; }
8556 CPPFLAGS="${saved_CPPFLAGS}"
8558 # Even if Python support is not compiled in, we need to have these files
8560 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8561 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
8562 python/py-prettyprint.c python/py-auto-load.c"
8568 # Provide a --enable-libmcheck/--disable-libmcheck set of options
8569 # allowing a user to enable this option even when building releases,
8570 # or to disable it when building a snapshot.
8571 # Check whether --enable-libmcheck was given.
8572 if test "${enable_libmcheck+set}" = set; then :
8573 enableval=$enable_libmcheck; case "${enableval}" in
8574 yes | y) ENABLE_LIBMCHECK="yes" ;;
8575 no | n) ENABLE_LIBMCHECK="no" ;;
8576 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
8581 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
8582 # but turn it off if Python is enabled with threads, since -lmcheck is
8583 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
8585 if test -z "${ENABLE_LIBMCHECK}" \
8586 -a \( "${have_libpython}" = "no" \
8587 -o "${python_has_threads}" = "no" \) \
8588 && $development; then
8589 ENABLE_LIBMCHECK=yes
8592 if test "$ENABLE_LIBMCHECK" = "yes" ; then
8593 if test "${have_libpython}" != "no" -a "${python_has_threads}" = "yes" ; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
8595 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
8598 $as_echo_n "checking for main in -lmcheck... " >&6; }
8599 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8602 ac_check_lib_save_LIBS=$LIBS
8603 LIBS="-lmcheck $LIBS"
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8616 if ac_fn_c_try_link "$LINENO"; then :
8617 ac_cv_lib_mcheck_main=yes
8619 ac_cv_lib_mcheck_main=no
8621 rm -f core conftest.err conftest.$ac_objext \
8622 conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
8626 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
8627 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
8628 cat >>confdefs.h <<_ACEOF
8629 #define HAVE_LIBMCHECK 1
8632 LIBS="-lmcheck $LIBS"
8638 # ------------------------- #
8639 # Checks for header files. #
8640 # ------------------------- #
8643 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8644 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8646 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8648 $as_echo_n "(cached) " >&6
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652 #include <sys/types.h>
8664 if ac_fn_c_try_compile "$LINENO"; then :
8665 eval "$as_ac_Header=yes"
8667 eval "$as_ac_Header=no"
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 eval ac_res=\$$as_ac_Header
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8673 $as_echo "$ac_res" >&6; }
8674 eval as_val=\$$as_ac_Header
8675 if test "x$as_val" = x""yes; then :
8676 cat >>confdefs.h <<_ACEOF
8677 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8680 ac_header_dirent=$ac_hdr; break
8684 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8685 if test $ac_header_dirent = dirent.h; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8687 $as_echo_n "checking for library containing opendir... " >&6; }
8688 if test "${ac_cv_search_opendir+set}" = set; then :
8689 $as_echo_n "(cached) " >&6
8691 ac_func_search_save_LIBS=$LIBS
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8695 /* Override any GCC internal prototype to avoid an error.
8696 Use char because int might match the return type of a GCC
8697 builtin and then its argument prototype would still apply. */
8710 for ac_lib in '' dir; do
8711 if test -z "$ac_lib"; then
8712 ac_res="none required"
8715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8717 if ac_fn_c_try_link "$LINENO"; then :
8718 ac_cv_search_opendir=$ac_res
8720 rm -f core conftest.err conftest.$ac_objext \
8722 if test "${ac_cv_search_opendir+set}" = set; then :
8726 if test "${ac_cv_search_opendir+set}" = set; then :
8729 ac_cv_search_opendir=no
8732 LIBS=$ac_func_search_save_LIBS
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8735 $as_echo "$ac_cv_search_opendir" >&6; }
8736 ac_res=$ac_cv_search_opendir
8737 if test "$ac_res" != no; then :
8738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8744 $as_echo_n "checking for library containing opendir... " >&6; }
8745 if test "${ac_cv_search_opendir+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
8748 ac_func_search_save_LIBS=$LIBS
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8752 /* Override any GCC internal prototype to avoid an error.
8753 Use char because int might match the return type of a GCC
8754 builtin and then its argument prototype would still apply. */
8767 for ac_lib in '' x; do
8768 if test -z "$ac_lib"; then
8769 ac_res="none required"
8772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8774 if ac_fn_c_try_link "$LINENO"; then :
8775 ac_cv_search_opendir=$ac_res
8777 rm -f core conftest.err conftest.$ac_objext \
8779 if test "${ac_cv_search_opendir+set}" = set; then :
8783 if test "${ac_cv_search_opendir+set}" = set; then :
8786 ac_cv_search_opendir=no
8789 LIBS=$ac_func_search_save_LIBS
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8792 $as_echo "$ac_cv_search_opendir" >&6; }
8793 ac_res=$ac_cv_search_opendir
8794 if test "$ac_res" != no; then :
8795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8802 $as_echo_n "checking for ANSI C header files... " >&6; }
8803 if test "${ac_cv_header_stdc+set}" = set; then :
8804 $as_echo_n "(cached) " >&6
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8821 if ac_fn_c_try_compile "$LINENO"; then :
8822 ac_cv_header_stdc=yes
8824 ac_cv_header_stdc=no
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 if test $ac_cv_header_stdc = yes; then
8829 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8836 $EGREP "memchr" >/dev/null 2>&1; then :
8839 ac_cv_header_stdc=no
8845 if test $ac_cv_header_stdc = yes; then
8846 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8853 $EGREP "free" >/dev/null 2>&1; then :
8856 ac_cv_header_stdc=no
8862 if test $ac_cv_header_stdc = yes; then
8863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8864 if test "$cross_compiling" = yes; then :
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8871 #if ((' ' & 0x0FF) == 0x020)
8872 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8873 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8875 # define ISLOWER(c) \
8876 (('a' <= (c) && (c) <= 'i') \
8877 || ('j' <= (c) && (c) <= 'r') \
8878 || ('s' <= (c) && (c) <= 'z'))
8879 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8882 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8887 for (i = 0; i < 256; i++)
8888 if (XOR (islower (i), ISLOWER (i))
8889 || toupper (i) != TOUPPER (i))
8894 if ac_fn_c_try_run "$LINENO"; then :
8897 ac_cv_header_stdc=no
8899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8900 conftest.$ac_objext conftest.beam conftest.$ac_ext
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8906 $as_echo "$ac_cv_header_stdc" >&6; }
8907 if test $ac_cv_header_stdc = yes; then
8909 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8913 # elf_hp.h is for HP/UX 64-bit shared library support.
8914 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h sys/socket.h proc_service.h \
8915 thread_db.h signal.h stddef.h \
8916 stdlib.h string.h memory.h strings.h sys/fault.h \
8917 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
8918 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
8919 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
8920 sys/types.h sys/wait.h wait.h termios.h termio.h \
8921 sgtty.h unistd.h elf_hp.h locale.h \
8922 dlfcn.h sys/un.h linux/perf_event.h
8924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8925 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8926 eval as_val=\$$as_ac_Header
8927 if test "x$as_val" = x""yes; then :
8928 cat >>confdefs.h <<_ACEOF
8929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8936 for ac_header in link.h
8938 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
8939 # include <sys/types.h>
8946 if test "x$ac_cv_header_link_h" = x""yes; then :
8947 cat >>confdefs.h <<_ACEOF
8948 #define HAVE_LINK_H 1
8955 for ac_header in sys/proc.h
8957 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8958 # include <sys/param.h>
8962 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
8963 cat >>confdefs.h <<_ACEOF
8964 #define HAVE_SYS_PROC_H 1
8971 for ac_header in sys/user.h
8973 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8974 # include <sys/param.h>
8978 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
8979 cat >>confdefs.h <<_ACEOF
8980 #define HAVE_SYS_USER_H 1
8988 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8989 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8990 # think that we don't have <curses.h> if we're using GCC.
8993 if test "$GCC" = yes; then
8995 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8999 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
9001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9002 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9003 eval as_val=\$$as_ac_Header
9004 if test "x$as_val" = x""yes; then :
9005 cat >>confdefs.h <<_ACEOF
9006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9013 for ac_header in term.h
9015 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9016 # include <curses.h>
9020 if test "x$ac_cv_header_term_h" = x""yes; then :
9021 cat >>confdefs.h <<_ACEOF
9022 #define HAVE_TERM_H 1
9030 # ------------------------- #
9031 # Checks for declarations. #
9032 # ------------------------- #
9034 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9035 if test "x$ac_cv_have_decl_free" = x""yes; then :
9041 cat >>confdefs.h <<_ACEOF
9042 #define HAVE_DECL_FREE $ac_have_decl
9044 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9045 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
9051 cat >>confdefs.h <<_ACEOF
9052 #define HAVE_DECL_MALLOC $ac_have_decl
9054 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9055 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
9061 cat >>confdefs.h <<_ACEOF
9062 #define HAVE_DECL_REALLOC $ac_have_decl
9064 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
9065 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
9071 cat >>confdefs.h <<_ACEOF
9072 #define HAVE_DECL_STRERROR $ac_have_decl
9074 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
9075 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
9081 cat >>confdefs.h <<_ACEOF
9082 #define HAVE_DECL_STRSTR $ac_have_decl
9084 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
9085 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
9091 cat >>confdefs.h <<_ACEOF
9092 #define HAVE_DECL_GETOPT $ac_have_decl
9094 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9095 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
9101 cat >>confdefs.h <<_ACEOF
9102 #define HAVE_DECL_SNPRINTF $ac_have_decl
9104 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9105 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
9111 cat >>confdefs.h <<_ACEOF
9112 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9117 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9118 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9132 if ac_fn_c_try_link "$LINENO"; then :
9133 am_cv_val_LC_MESSAGES=yes
9135 am_cv_val_LC_MESSAGES=no
9137 rm -f core conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9141 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9142 if test $am_cv_val_LC_MESSAGES = yes; then
9144 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9149 # ----------------------- #
9150 # Checks for structures. #
9151 # ----------------------- #
9153 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9154 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9156 cat >>confdefs.h <<_ACEOF
9157 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9162 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9163 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9165 cat >>confdefs.h <<_ACEOF
9166 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9173 # ------------------ #
9174 # Checks for types. #
9175 # ------------------ #
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9178 $as_echo_n "checking return type of signal handlers... " >&6; }
9179 if test "${ac_cv_type_signal+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 #include <sys/types.h>
9190 return *(signal (0, 0)) (0) == 1;
9195 if ac_fn_c_try_compile "$LINENO"; then :
9196 ac_cv_type_signal=int
9198 ac_cv_type_signal=void
9200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9203 $as_echo "$ac_cv_type_signal" >&6; }
9205 cat >>confdefs.h <<_ACEOF
9206 #define RETSIGTYPE $ac_cv_type_signal
9210 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9211 #include <sys/socket.h>
9214 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9216 cat >>confdefs.h <<_ACEOF
9217 #define HAVE_SOCKLEN_T 1
9224 # ------------------------------------- #
9225 # Checks for compiler characteristics. #
9226 # ------------------------------------- #
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9229 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9230 if test "${ac_cv_c_const+set}" = set; then :
9231 $as_echo_n "(cached) " >&6
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9239 /* FIXME: Include the comments suggested by Paul. */
9241 /* Ultrix mips cc rejects this. */
9242 typedef int charset[2];
9244 /* SunOS 4.1.1 cc rejects this. */
9245 char const *const *pcpcc;
9247 /* NEC SVR4.0.2 mips cc rejects this. */
9248 struct point {int x, y;};
9249 static struct point const zero = {0,0};
9250 /* AIX XL C 1.02.0.0 rejects this.
9251 It does not let you subtract one const X* pointer from another in
9252 an arm of an if-expression whose if-part is not a constant
9254 const char *g = "string";
9255 pcpcc = &g + (g ? g-g : 0);
9256 /* HPUX 7.0 cc rejects these. */
9258 ppc = (char**) pcpcc;
9259 pcpcc = (char const *const *) ppc;
9260 { /* SCO 3.2v4 cc rejects this. */
9262 char const *s = 0 ? (char *) 0 : (char const *) 0;
9267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9269 const int *foo = &x[0];
9272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9273 typedef const int *iptr;
9277 { /* AIX XL C 1.02.0.0 rejects this saying
9278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9279 struct s { int j; const int *ap[3]; };
9280 struct s *b; b->j = 5;
9282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9286 return !cs[0] && !zero.x;
9293 if ac_fn_c_try_compile "$LINENO"; then :
9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9301 $as_echo "$ac_cv_c_const" >&6; }
9302 if test $ac_cv_c_const = no; then
9304 $as_echo "#define const /**/" >>confdefs.h
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9309 $as_echo_n "checking for inline... " >&6; }
9310 if test "${ac_cv_c_inline+set}" = set; then :
9311 $as_echo_n "(cached) " >&6
9314 for ac_kw in inline __inline__ __inline; do
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9319 static $ac_kw foo_t static_foo () {return 0; }
9320 $ac_kw foo_t foo () {return 0; }
9324 if ac_fn_c_try_compile "$LINENO"; then :
9325 ac_cv_c_inline=$ac_kw
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 test "$ac_cv_c_inline" != no && break
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9333 $as_echo "$ac_cv_c_inline" >&6; }
9335 case $ac_cv_c_inline in
9338 case $ac_cv_c_inline in
9340 *) ac_val=$ac_cv_c_inline;;
9342 cat >>confdefs.h <<_ACEOF
9344 #define inline $ac_val
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9351 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9352 if test "${ac_cv_c_bigendian+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9355 ac_cv_c_bigendian=unknown
9356 # See if we're dealing with a universal compiler.
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 #ifndef __APPLE_CC__
9360 not a universal capable compiler
9365 if ac_fn_c_try_compile "$LINENO"; then :
9367 # Check for potential -arch flags. It is not universal unless
9368 # there are at least two -arch flags with different values.
9371 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9372 if test -n "$ac_prev"; then
9374 i?86 | x86_64 | ppc | ppc64)
9375 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9378 ac_cv_c_bigendian=universal
9384 elif test "x$ac_word" = "x-arch"; then
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 if test $ac_cv_c_bigendian = unknown; then
9391 # See if sys/param.h defines the BYTE_ORDER macro.
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 #include <sys/types.h>
9395 #include <sys/param.h>
9400 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9401 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9410 if ac_fn_c_try_compile "$LINENO"; then :
9411 # It does; now see whether it defined to BIG_ENDIAN or not.
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9414 #include <sys/types.h>
9415 #include <sys/param.h>
9420 #if BYTE_ORDER != BIG_ENDIAN
9428 if ac_fn_c_try_compile "$LINENO"; then :
9429 ac_cv_c_bigendian=yes
9431 ac_cv_c_bigendian=no
9433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9437 if test $ac_cv_c_bigendian = unknown; then
9438 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9446 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9454 if ac_fn_c_try_compile "$LINENO"; then :
9455 # It does; now see whether it defined to _BIG_ENDIAN or not.
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9471 if ac_fn_c_try_compile "$LINENO"; then :
9472 ac_cv_c_bigendian=yes
9474 ac_cv_c_bigendian=no
9476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9480 if test $ac_cv_c_bigendian = unknown; then
9481 # Compile a test program.
9482 if test "$cross_compiling" = yes; then :
9483 # Try to guess by grepping values from an object file.
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486 short int ascii_mm[] =
9487 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9488 short int ascii_ii[] =
9489 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9490 int use_ascii (int i) {
9491 return ascii_mm[i] + ascii_ii[i];
9493 short int ebcdic_ii[] =
9494 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9495 short int ebcdic_mm[] =
9496 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9497 int use_ebcdic (int i) {
9498 return ebcdic_mm[i] + ebcdic_ii[i];
9505 return use_ascii (foo) == use_ebcdic (foo);
9510 if ac_fn_c_try_compile "$LINENO"; then :
9511 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9512 ac_cv_c_bigendian=yes
9514 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9515 if test "$ac_cv_c_bigendian" = unknown; then
9516 ac_cv_c_bigendian=no
9518 # finding both strings is unlikely to happen, but who knows?
9519 ac_cv_c_bigendian=unknown
9523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 $ac_includes_default
9532 /* Are we little or big endian? From Harbison&Steele. */
9536 char c[sizeof (long int)];
9539 return u.c[sizeof (long int) - 1] == 1;
9545 if ac_fn_c_try_run "$LINENO"; then :
9546 ac_cv_c_bigendian=no
9548 ac_cv_c_bigendian=yes
9550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9551 conftest.$ac_objext conftest.beam conftest.$ac_ext
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9557 $as_echo "$ac_cv_c_bigendian" >&6; }
9558 case $ac_cv_c_bigendian in #(
9560 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9566 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9570 as_fn_error "unknown endianness
9571 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9575 # ------------------------------ #
9576 # Checks for library functions. #
9577 # ------------------------------ #
9579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9580 # for constant arguments. Useless!
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9582 $as_echo_n "checking for working alloca.h... " >&6; }
9583 if test "${ac_cv_working_alloca_h+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9592 char *p = (char *) alloca (2 * sizeof (int));
9598 if ac_fn_c_try_link "$LINENO"; then :
9599 ac_cv_working_alloca_h=yes
9601 ac_cv_working_alloca_h=no
9603 rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9607 $as_echo "$ac_cv_working_alloca_h" >&6; }
9608 if test $ac_cv_working_alloca_h = yes; then
9610 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9615 $as_echo_n "checking for alloca... " >&6; }
9616 if test "${ac_cv_func_alloca_works+set}" = set; then :
9617 $as_echo_n "(cached) " >&6
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9622 # define alloca __builtin_alloca
9625 # include <malloc.h>
9626 # define alloca _alloca
9628 # ifdef HAVE_ALLOCA_H
9629 # include <alloca.h>
9634 # ifndef alloca /* predefined by HP cc +Olibcalls */
9645 char *p = (char *) alloca (1);
9651 if ac_fn_c_try_link "$LINENO"; then :
9652 ac_cv_func_alloca_works=yes
9654 ac_cv_func_alloca_works=no
9656 rm -f core conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9660 $as_echo "$ac_cv_func_alloca_works" >&6; }
9662 if test $ac_cv_func_alloca_works = yes; then
9664 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9667 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9668 # that cause trouble. Some versions do not even contain alloca or
9669 # contain a buggy version. If you still want to use their alloca,
9670 # use ar to extract alloca.o from them instead of compiling alloca.c.
9672 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9674 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9678 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9679 if test "${ac_cv_os_cray+set}" = set; then :
9680 $as_echo_n "(cached) " >&6
9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9684 #if defined CRAY && ! defined CRAY2
9691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9692 $EGREP "webecray" >/dev/null 2>&1; then :
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9701 $as_echo "$ac_cv_os_cray" >&6; }
9702 if test $ac_cv_os_cray = yes; then
9703 for ac_func in _getb67 GETB67 getb67; do
9704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9706 eval as_val=\$$as_ac_var
9707 if test "x$as_val" = x""yes; then :
9709 cat >>confdefs.h <<_ACEOF
9710 #define CRAY_STACKSEG_END $ac_func
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9720 $as_echo_n "checking stack direction for C alloca... " >&6; }
9721 if test "${ac_cv_c_stack_direction+set}" = set; then :
9722 $as_echo_n "(cached) " >&6
9724 if test "$cross_compiling" = yes; then :
9725 ac_cv_c_stack_direction=0
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 $ac_includes_default
9731 find_stack_direction ()
9733 static char *addr = 0;
9738 return find_stack_direction ();
9741 return (&dummy > addr) ? 1 : -1;
9747 return find_stack_direction () < 0;
9750 if ac_fn_c_try_run "$LINENO"; then :
9751 ac_cv_c_stack_direction=1
9753 ac_cv_c_stack_direction=-1
9755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9756 conftest.$ac_objext conftest.beam conftest.$ac_ext
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9761 $as_echo "$ac_cv_c_stack_direction" >&6; }
9762 cat >>confdefs.h <<_ACEOF
9763 #define STACK_DIRECTION $ac_cv_c_stack_direction
9769 for ac_header in stdlib.h unistd.h
9771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9772 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9773 eval as_val=\$$as_ac_Header
9774 if test "x$as_val" = x""yes; then :
9775 cat >>confdefs.h <<_ACEOF
9776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9783 for ac_func in getpagesize
9785 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9786 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9787 cat >>confdefs.h <<_ACEOF
9788 #define HAVE_GETPAGESIZE 1
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9795 $as_echo_n "checking for working mmap... " >&6; }
9796 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9797 $as_echo_n "(cached) " >&6
9799 if test "$cross_compiling" = yes; then :
9800 ac_cv_func_mmap_fixed_mapped=no
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 $ac_includes_default
9805 /* malloc might have been renamed as rpl_malloc. */
9808 /* Thanks to Mike Haertel and Jim Avera for this test.
9809 Here is a matrix of mmap possibilities:
9810 mmap private not fixed
9811 mmap private fixed at somewhere currently unmapped
9812 mmap private fixed at somewhere already mapped
9813 mmap shared not fixed
9814 mmap shared fixed at somewhere currently unmapped
9815 mmap shared fixed at somewhere already mapped
9816 For private mappings, we should verify that changes cannot be read()
9817 back from the file, nor mmap's back from the file at a different
9818 address. (There have been systems where private was not correctly
9819 implemented like the infamous i386 svr4.0, and systems where the
9820 VM page cache was not coherent with the file system buffer cache
9821 like early versions of FreeBSD and possibly contemporary NetBSD.)
9822 For shared mappings, we should conversely verify that changes get
9823 propagated back to all the places they're supposed to be.
9825 Grep wants private fixed already mapped.
9826 The main things grep needs to know about mmap are:
9827 * does it exist and is it safe to write into the mmap'd area
9828 * how to use it (BSD variants) */
9831 #include <sys/mman.h>
9833 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9837 /* This mess was copied from the GNU getpagesize.h. */
9838 #ifndef HAVE_GETPAGESIZE
9839 /* Assume that all systems that can run configure have sys/param.h. */
9840 # ifndef HAVE_SYS_PARAM_H
9841 # define HAVE_SYS_PARAM_H 1
9844 # ifdef _SC_PAGESIZE
9845 # define getpagesize() sysconf(_SC_PAGESIZE)
9846 # else /* no _SC_PAGESIZE */
9847 # ifdef HAVE_SYS_PARAM_H
9848 # include <sys/param.h>
9849 # ifdef EXEC_PAGESIZE
9850 # define getpagesize() EXEC_PAGESIZE
9851 # else /* no EXEC_PAGESIZE */
9853 # define getpagesize() NBPG * CLSIZE
9856 # endif /* no CLSIZE */
9857 # else /* no NBPG */
9859 # define getpagesize() NBPC
9860 # else /* no NBPC */
9862 # define getpagesize() PAGESIZE
9863 # endif /* PAGESIZE */
9864 # endif /* no NBPC */
9865 # endif /* no NBPG */
9866 # endif /* no EXEC_PAGESIZE */
9867 # else /* no HAVE_SYS_PARAM_H */
9868 # define getpagesize() 8192 /* punt totally */
9869 # endif /* no HAVE_SYS_PARAM_H */
9870 # endif /* no _SC_PAGESIZE */
9872 #endif /* no HAVE_GETPAGESIZE */
9877 char *data, *data2, *data3;
9881 pagesize = getpagesize ();
9883 /* First, make a file with some known garbage in it. */
9884 data = (char *) malloc (pagesize);
9887 for (i = 0; i < pagesize; ++i)
9888 *(data + i) = rand ();
9890 fd = creat ("conftest.mmap", 0600);
9893 if (write (fd, data, pagesize) != pagesize)
9897 /* Next, try to mmap the file at a fixed address which already has
9898 something else allocated at it. If we can, also make sure that
9899 we see the same garbage. */
9900 fd = open ("conftest.mmap", O_RDWR);
9903 data2 = (char *) malloc (2 * pagesize);
9906 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9907 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9908 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9910 for (i = 0; i < pagesize; ++i)
9911 if (*(data + i) != *(data2 + i))
9914 /* Finally, make sure that changes to the mapped area do not
9915 percolate back to the file as seen by read(). (This is a bug on
9916 some variants of i386 svr4.0.) */
9917 for (i = 0; i < pagesize; ++i)
9918 *(data2 + i) = *(data2 + i) + 1;
9919 data3 = (char *) malloc (pagesize);
9922 if (read (fd, data3, pagesize) != pagesize)
9924 for (i = 0; i < pagesize; ++i)
9925 if (*(data + i) != *(data3 + i))
9931 if ac_fn_c_try_run "$LINENO"; then :
9932 ac_cv_func_mmap_fixed_mapped=yes
9934 ac_cv_func_mmap_fixed_mapped=no
9936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9937 conftest.$ac_objext conftest.beam conftest.$ac_ext
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9942 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9943 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9945 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9950 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9951 if test "x$ac_cv_type_pid_t" = x""yes; then :
9955 cat >>confdefs.h <<_ACEOF
9961 for ac_header in vfork.h
9963 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9964 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_VFORK_H 1
9973 for ac_func in fork vfork
9975 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9976 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9977 eval as_val=\$$as_ac_var
9978 if test "x$as_val" = x""yes; then :
9979 cat >>confdefs.h <<_ACEOF
9980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9986 if test "x$ac_cv_func_fork" = xyes; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9988 $as_echo_n "checking for working fork... " >&6; }
9989 if test "${ac_cv_func_fork_works+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9992 if test "$cross_compiling" = yes; then :
9993 ac_cv_func_fork_works=cross
9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996 /* end confdefs.h. */
9997 $ac_includes_default
10002 /* By Ruediger Kuhlmann. */
10003 return fork () < 0;
10009 if ac_fn_c_try_run "$LINENO"; then :
10010 ac_cv_func_fork_works=yes
10012 ac_cv_func_fork_works=no
10014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10015 conftest.$ac_objext conftest.beam conftest.$ac_ext
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10020 $as_echo "$ac_cv_func_fork_works" >&6; }
10023 ac_cv_func_fork_works=$ac_cv_func_fork
10025 if test "x$ac_cv_func_fork_works" = xcross; then
10027 *-*-amigaos* | *-*-msdosdjgpp*)
10028 # Override, as these systems have only a dummy fork() stub
10029 ac_cv_func_fork_works=no
10032 ac_cv_func_fork_works=yes
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10036 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10038 ac_cv_func_vfork_works=$ac_cv_func_vfork
10039 if test "x$ac_cv_func_vfork" = xyes; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10041 $as_echo_n "checking for working vfork... " >&6; }
10042 if test "${ac_cv_func_vfork_works+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
10045 if test "$cross_compiling" = yes; then :
10046 ac_cv_func_vfork_works=cross
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10050 /* Thanks to Paul Eggert for this test. */
10051 $ac_includes_default
10052 #include <sys/wait.h>
10053 #ifdef HAVE_VFORK_H
10054 # include <vfork.h>
10056 /* On some sparc systems, changes by the child to local and incoming
10057 argument registers are propagated back to the parent. The compiler
10058 is told about this with #include <vfork.h>, but some compilers
10059 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10060 static variable whose address is put into a register that is
10061 clobbered by the vfork. */
10064 sparc_address_test (int arg)
10066 sparc_address_test (arg) int arg;
10069 static pid_t child;
10087 pid_t parent = getpid ();
10090 sparc_address_test (0);
10095 /* Here is another test for sparc vfork register problems. This
10096 test uses lots of local variables, at least as many local
10097 variables as main has allocated so far including compiler
10098 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10099 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10100 reuse the register of parent for one of the local variables,
10101 since it will think that parent can't possibly be used any more
10102 in this routine. Assigning to the local variable will thus
10103 munge parent in the parent process. */
10105 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10106 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10107 /* Convince the compiler that p..p7 are live; otherwise, it might
10108 use the same hardware register for all 8 local variables. */
10109 if (p != p1 || p != p2 || p != p3 || p != p4
10110 || p != p5 || p != p6 || p != p7)
10113 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10114 from child file descriptors. If the child closes a descriptor
10115 before it execs or exits, this munges the parent's descriptor
10116 as well. Test for this by closing stdout in the child. */
10117 _exit(close(fileno(stdout)) != 0);
10122 while (wait(&status) != child)
10125 /* Was there some problem with vforking? */
10128 /* Did the child fail? (This shouldn't happen.) */
10131 /* Did the vfork/compiler bug occur? */
10132 || parent != getpid()
10134 /* Did the file descriptor bug occur? */
10135 || fstat(fileno(stdout), &st) != 0
10140 if ac_fn_c_try_run "$LINENO"; then :
10141 ac_cv_func_vfork_works=yes
10143 ac_cv_func_vfork_works=no
10145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10146 conftest.$ac_objext conftest.beam conftest.$ac_ext
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10151 $as_echo "$ac_cv_func_vfork_works" >&6; }
10154 if test "x$ac_cv_func_fork_works" = xcross; then
10155 ac_cv_func_vfork_works=$ac_cv_func_vfork
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10157 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10160 if test "x$ac_cv_func_vfork_works" = xyes; then
10162 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10166 $as_echo "#define vfork fork" >>confdefs.h
10169 if test "x$ac_cv_func_fork_works" = xyes; then
10171 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10175 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
10176 pipe poll pread pread64 pwrite readlink resize_term \
10177 sbrk setpgid setpgrp setsid \
10178 sigaction sigprocmask sigsetmask socketpair syscall \
10179 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10180 setrlimit getrlimit posix_madvise waitpid lstat \
10183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10184 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10185 eval as_val=\$$as_ac_var
10186 if test "x$as_val" = x""yes; then :
10187 cat >>confdefs.h <<_ACEOF
10188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10196 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10197 if test "${am_cv_langinfo_codeset+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10202 #include <langinfo.h>
10206 char* cs = nl_langinfo(CODESET);
10211 if ac_fn_c_try_link "$LINENO"; then :
10212 am_cv_langinfo_codeset=yes
10214 am_cv_langinfo_codeset=no
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10221 $as_echo "$am_cv_langinfo_codeset" >&6; }
10222 if test $am_cv_langinfo_codeset = yes; then
10224 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10229 # Check the return and argument types of ptrace. No canned test for
10230 # this, so roll our own.
10231 gdb_ptrace_headers='
10232 #if HAVE_SYS_TYPES_H
10233 # include <sys/types.h>
10235 #if HAVE_SYS_PTRACE_H
10236 # include <sys/ptrace.h>
10239 # include <unistd.h>
10242 # There is no point in checking if we don't have a prototype.
10243 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10245 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
10251 cat >>confdefs.h <<_ACEOF
10252 #define HAVE_DECL_PTRACE $ac_have_decl
10254 if test $ac_have_decl = 1; then :
10258 : ${gdb_cv_func_ptrace_ret='int'}
10259 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10263 # Check return type. Varargs (used on GNU/Linux) conflict with the
10264 # empty argument list, so check for that explicitly.
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10266 $as_echo_n "checking return type of ptrace... " >&6; }
10267 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10272 $gdb_ptrace_headers
10276 extern long ptrace (enum __ptrace_request, ...);
10281 if ac_fn_c_try_compile "$LINENO"; then :
10282 gdb_cv_func_ptrace_ret='long'
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286 $gdb_ptrace_headers
10290 extern int ptrace ();
10295 if ac_fn_c_try_compile "$LINENO"; then :
10296 gdb_cv_func_ptrace_ret='int'
10298 gdb_cv_func_ptrace_ret='long'
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10305 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10307 cat >>confdefs.h <<_ACEOF
10308 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10311 # Check argument types.
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10313 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10314 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10315 $as_echo_n "(cached) " >&6
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10320 $gdb_ptrace_headers
10324 extern long ptrace (enum __ptrace_request, ...);
10329 if ac_fn_c_try_compile "$LINENO"; then :
10330 gdb_cv_func_ptrace_args='int,int,long,long'
10333 for gdb_arg1 in 'int' 'long'; do
10334 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10335 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10336 for gdb_arg4 in 'int' 'long'; do
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10339 $gdb_ptrace_headers
10344 extern $gdb_cv_func_ptrace_ret
10345 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10351 if ac_fn_c_try_compile "$LINENO"; then :
10352 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10356 for gdb_arg5 in 'int *' 'int' 'long'; do
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10359 $gdb_ptrace_headers
10364 extern $gdb_cv_func_ptrace_ret
10365 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10371 if ac_fn_c_try_compile "$LINENO"; then :
10373 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10382 # Provide a safe default value.
10383 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10389 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10390 ac_save_IFS=$IFS; IFS=','
10391 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10395 cat >>confdefs.h <<_ACEOF
10396 #define PTRACE_TYPE_ARG3 $3
10399 if test -n "$5"; then
10401 cat >>confdefs.h <<_ACEOF
10402 #define PTRACE_TYPE_ARG5 $5
10407 if test "$cross_compiling" = no; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10409 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10410 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10413 if test "$cross_compiling" = yes; then :
10414 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 $ac_includes_default
10422 /* If this system has a BSD-style setpgrp which takes arguments,
10423 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10424 exit successfully. */
10425 return setpgrp (1,1) != -1;
10430 if ac_fn_c_try_run "$LINENO"; then :
10431 ac_cv_func_setpgrp_void=no
10433 ac_cv_func_setpgrp_void=yes
10435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10436 conftest.$ac_objext conftest.beam conftest.$ac_ext
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10441 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10442 if test $ac_cv_func_setpgrp_void = yes; then
10444 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10450 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10451 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10452 $as_echo_n "(cached) " >&6
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10457 #include <unistd.h>
10463 if (setpgrp(1,1) == -1)
10472 if ac_fn_c_try_compile "$LINENO"; then :
10473 ac_cv_func_setpgrp_void=no
10475 ac_cv_func_setpgrp_void=yes
10477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10480 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10481 if test $ac_cv_func_setpgrp_void = yes; then
10482 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10487 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
10488 # since sigsetjmp might only be defined as a macro.
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10490 $as_echo_n "checking for sigsetjmp... " >&6; }
10491 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10497 #include <setjmp.h>
10502 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10507 if ac_fn_c_try_compile "$LINENO"; then :
10508 gdb_cv_func_sigsetjmp=yes
10510 gdb_cv_func_sigsetjmp=no
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10515 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10516 if test $gdb_cv_func_sigsetjmp = yes; then
10518 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10522 # Assume we'll default to using the included libiberty regex.
10523 gdb_use_included_regex=yes
10525 # However, if the system regex is GNU regex, then default to *not*
10526 # using the included regex.
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10528 $as_echo_n "checking for GNU regex... " >&6; }
10529 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10530 $as_echo_n "(cached) " >&6
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10534 #include <gnu-versions.h>
10538 #define REGEX_INTERFACE_VERSION 1
10539 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10540 # error "Version mismatch"
10546 if ac_fn_c_try_compile "$LINENO"; then :
10547 gdb_cv_have_gnu_regex=yes
10549 gdb_cv_have_gnu_regex=no
10551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10554 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10555 if test $gdb_cv_have_gnu_regex = yes; then
10556 gdb_use_included_regex=no
10560 # Check whether --with-included-regex was given.
10561 if test "${with_included_regex+set}" = set; then :
10562 withval=$with_included_regex; gdb_with_regex=$withval
10564 gdb_with_regex=$gdb_use_included_regex
10567 if test "$gdb_with_regex" = yes; then
10569 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10573 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10574 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10575 #include <sys/proc.h>
10578 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
10580 cat >>confdefs.h <<_ACEOF
10581 #define HAVE_STRUCT_THREAD_TD_PCB 1
10588 # See if <sys/lwp.h> defines `struct lwp`.
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10590 $as_echo_n "checking for struct lwp... " >&6; }
10591 if test "${gdb_cv_struct_lwp+set}" = set; then :
10592 $as_echo_n "(cached) " >&6
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10596 #include <sys/param.h>
10597 #include <sys/lwp.h>
10606 if ac_fn_c_try_compile "$LINENO"; then :
10607 gdb_cv_struct_lwp=yes
10609 gdb_cv_struct_lwp=no
10611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10614 $as_echo "$gdb_cv_struct_lwp" >&6; }
10615 if test $gdb_cv_struct_lwp = yes; then
10617 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10621 # See if <machine/reg.h> degines `struct reg'.
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10623 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10624 if test "${gdb_cv_struct_reg+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629 #include <sys/types.h>
10630 #include <machine/reg.h>
10639 if ac_fn_c_try_compile "$LINENO"; then :
10640 gdb_cv_struct_reg=yes
10642 gdb_cv_struct_reg=no
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
10647 $as_echo "$gdb_cv_struct_reg" >&6; }
10648 if test $gdb_cv_struct_reg = yes; then
10650 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10654 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10655 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10656 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10658 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
10660 cat >>confdefs.h <<_ACEOF
10661 #define HAVE_STRUCT_REG_R_FS 1
10666 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10668 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
10670 cat >>confdefs.h <<_ACEOF
10671 #define HAVE_STRUCT_REG_R_GS 1
10678 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
10679 # Older amd64 Linux's don't have the fs_base and gs_base members of
10680 # `struct user_regs_struct'.
10681 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>
10683 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
10685 cat >>confdefs.h <<_ACEOF
10686 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
10691 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>
10693 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
10695 cat >>confdefs.h <<_ACEOF
10696 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
10703 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10705 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10706 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10711 #include <sys/ptrace.h>
10720 if ac_fn_c_try_compile "$LINENO"; then :
10721 gdb_cv_have_ptrace_getregs=yes
10723 gdb_cv_have_ptrace_getregs=no
10725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
10729 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
10730 if test $gdb_cv_have_ptrace_getregs = yes; then
10732 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10736 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10738 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10739 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 #include <sys/ptrace.h>
10753 if ac_fn_c_try_compile "$LINENO"; then :
10754 gdb_cv_have_ptrace_getfpxregs=yes
10756 gdb_cv_have_ptrace_getfpxregs=no
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
10762 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
10763 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
10765 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10769 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
10771 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
10772 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777 #include <sys/types.h>
10778 #include <sys/ptrace.h>
10787 if ac_fn_c_try_compile "$LINENO"; then :
10788 gdb_cv_have_pt_getdbregs=yes
10790 gdb_cv_have_pt_getdbregs=no
10792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
10796 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
10797 if test $gdb_cv_have_pt_getdbregs = yes; then
10799 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
10803 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
10805 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
10806 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
10807 $as_echo_n "(cached) " >&6
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10811 #include <sys/types.h>
10812 #include <sys/ptrace.h>
10821 if ac_fn_c_try_compile "$LINENO"; then :
10822 gdb_cv_have_pt_getxmmregs=yes
10824 gdb_cv_have_pt_getxmmregs=no
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
10830 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
10831 if test $gdb_cv_have_pt_getxmmregs = yes; then
10833 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
10837 # Detect which type of /proc is in use, such as for Solaris.
10839 if test "${target}" = "${host}"; then
10841 *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
10843 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10846 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
10848 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10852 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
10854 $as_echo "#define _KMEMUSER 1" >>confdefs.h
10860 if test "$ac_cv_header_sys_procfs_h" = yes; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
10862 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
10863 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10870 /* Needed for new procfs interface on sparc-solaris. */
10871 #define _STRUCTURED_PROC 1
10872 #include <sys/procfs.h>
10881 if ac_fn_c_try_compile "$LINENO"; then :
10882 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10884 bfd_cv_have_sys_procfs_type_pstatus_t=no
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10892 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10896 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
10899 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
10900 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10907 /* Needed for new procfs interface on sparc-solaris. */
10908 #define _STRUCTURED_PROC 1
10909 #include <sys/procfs.h>
10918 if ac_fn_c_try_compile "$LINENO"; then :
10919 bfd_cv_have_sys_procfs_type_prrun_t=yes
10921 bfd_cv_have_sys_procfs_type_prrun_t=no
10924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
10929 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
10933 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10936 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10937 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10944 /* Needed for new procfs interface on sparc-solaris. */
10945 #define _STRUCTURED_PROC 1
10946 #include <sys/procfs.h>
10955 if ac_fn_c_try_compile "$LINENO"; then :
10956 bfd_cv_have_sys_procfs_type_gregset_t=yes
10958 bfd_cv_have_sys_procfs_type_gregset_t=no
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10964 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10966 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10970 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10973 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10974 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
10975 $as_echo_n "(cached) " >&6
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10981 /* Needed for new procfs interface on sparc-solaris. */
10982 #define _STRUCTURED_PROC 1
10983 #include <sys/procfs.h>
10992 if ac_fn_c_try_compile "$LINENO"; then :
10993 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10995 bfd_cv_have_sys_procfs_type_fpregset_t=no
10998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11003 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11007 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11010 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11011 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11012 $as_echo_n "(cached) " >&6
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11018 /* Needed for new procfs interface on sparc-solaris. */
11019 #define _STRUCTURED_PROC 1
11020 #include <sys/procfs.h>
11029 if ac_fn_c_try_compile "$LINENO"; then :
11030 bfd_cv_have_sys_procfs_type_prgregset_t=yes
11032 bfd_cv_have_sys_procfs_type_prgregset_t=no
11035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11038 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11040 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11044 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11047 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11048 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11055 /* Needed for new procfs interface on sparc-solaris. */
11056 #define _STRUCTURED_PROC 1
11057 #include <sys/procfs.h>
11066 if ac_fn_c_try_compile "$LINENO"; then :
11067 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
11069 bfd_cv_have_sys_procfs_type_prfpregset_t=no
11072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11077 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11081 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11084 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11085 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11086 $as_echo_n "(cached) " >&6
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11092 /* Needed for new procfs interface on sparc-solaris. */
11093 #define _STRUCTURED_PROC 1
11094 #include <sys/procfs.h>
11103 if ac_fn_c_try_compile "$LINENO"; then :
11104 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
11106 bfd_cv_have_sys_procfs_type_prgregset32_t=no
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11114 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11118 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
11121 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
11122 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11129 /* Needed for new procfs interface on sparc-solaris. */
11130 #define _STRUCTURED_PROC 1
11131 #include <sys/procfs.h>
11135 prfpregset32_t avar
11140 if ac_fn_c_try_compile "$LINENO"; then :
11141 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
11143 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
11151 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
11155 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11158 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11159 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11166 /* Needed for new procfs interface on sparc-solaris. */
11167 #define _STRUCTURED_PROC 1
11168 #include <sys/procfs.h>
11177 if ac_fn_c_try_compile "$LINENO"; then :
11178 bfd_cv_have_sys_procfs_type_lwpid_t=yes
11180 bfd_cv_have_sys_procfs_type_lwpid_t=no
11183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11186 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11188 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11192 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11195 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11196 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
11199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200 /* end confdefs.h. */
11203 /* Needed for new procfs interface on sparc-solaris. */
11204 #define _STRUCTURED_PROC 1
11205 #include <sys/procfs.h>
11214 if ac_fn_c_try_compile "$LINENO"; then :
11215 bfd_cv_have_sys_procfs_type_psaddr_t=yes
11217 bfd_cv_have_sys_procfs_type_psaddr_t=no
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11225 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11229 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11232 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11233 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11240 /* Needed for new procfs interface on sparc-solaris. */
11241 #define _STRUCTURED_PROC 1
11242 #include <sys/procfs.h>
11251 if ac_fn_c_try_compile "$LINENO"; then :
11252 bfd_cv_have_sys_procfs_type_prsysent_t=yes
11254 bfd_cv_have_sys_procfs_type_prsysent_t=no
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11262 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11266 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11269 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11270 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11277 /* Needed for new procfs interface on sparc-solaris. */
11278 #define _STRUCTURED_PROC 1
11279 #include <sys/procfs.h>
11288 if ac_fn_c_try_compile "$LINENO"; then :
11289 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
11291 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11299 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11303 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11306 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11307 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11308 $as_echo_n "(cached) " >&6
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11314 /* Needed for new procfs interface on sparc-solaris. */
11315 #define _STRUCTURED_PROC 1
11316 #include <sys/procfs.h>
11320 pr_sigaction64_t avar
11325 if ac_fn_c_try_compile "$LINENO"; then :
11326 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
11328 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
11331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11336 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11340 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11343 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11344 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11351 /* Needed for new procfs interface on sparc-solaris. */
11352 #define _STRUCTURED_PROC 1
11353 #include <sys/procfs.h>
11357 pr_siginfo64_t avar
11362 if ac_fn_c_try_compile "$LINENO"; then :
11363 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
11365 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11371 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11373 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11377 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11383 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11385 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11386 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11387 $as_echo_n "(cached) " >&6
11389 if test "$cross_compiling" = yes; then :
11390 gdb_cv_prfpregset_t_broken=yes
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394 #include <sys/procfs.h>
11397 if (sizeof (prfpregset_t) == sizeof (void *))
11402 if ac_fn_c_try_run "$LINENO"; then :
11403 gdb_cv_prfpregset_t_broken=no
11405 gdb_cv_prfpregset_t_broken=yes
11407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11408 conftest.$ac_objext conftest.beam conftest.$ac_ext
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11414 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11415 if test $gdb_cv_prfpregset_t_broken = yes; then
11417 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11424 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11425 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11426 $as_echo_n "(cached) " >&6
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11430 #include <unistd.h>
11431 #include <sys/types.h>
11432 #include <sys/procfs.h>
11439 dummy = ioctl(0, PIOCSET, &dummy);
11445 if ac_fn_c_try_compile "$LINENO"; then :
11446 gdb_cv_have_procfs_piocset=yes
11448 gdb_cv_have_procfs_piocset=no
11450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11454 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11455 if test $gdb_cv_have_procfs_piocset = yes; then
11457 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
11462 if test ${host} = ${target} ; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
11465 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
11466 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
11467 $as_echo_n "(cached) " >&6
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11475 struct link_map lm; (void) lm.l_addr;
11480 if ac_fn_c_try_compile "$LINENO"; then :
11481 gdb_cv_have_struct_link_map_with_l_members=yes
11483 gdb_cv_have_struct_link_map_with_l_members=no
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
11489 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
11490 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
11492 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
11498 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
11499 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504 #include <sys/types.h>
11509 struct link_map lm; (void) lm.lm_addr;
11514 if ac_fn_c_try_compile "$LINENO"; then :
11515 gdb_cv_have_struct_link_map_with_lm_members=yes
11517 gdb_cv_have_struct_link_map_with_lm_members=no
11519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
11523 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
11524 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
11526 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
11532 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
11533 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11538 #include <sys/types.h>
11539 #ifdef HAVE_NLIST_H
11546 struct so_map lm; (void) lm.som_addr;
11551 if ac_fn_c_try_compile "$LINENO"; then :
11552 gdb_cv_have_struct_so_map_with_som_members=yes
11554 gdb_cv_have_struct_so_map_with_som_members=no
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
11560 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
11561 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
11563 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
11569 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
11570 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11576 #include <sys/link.h>
11580 struct link_map32 l;
11585 if ac_fn_c_try_compile "$LINENO"; then :
11586 gdb_cv_have_struct_link_map32=yes
11588 gdb_cv_have_struct_link_map32=no
11590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
11594 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
11595 if test $gdb_cv_have_struct_link_map32 = yes; then
11597 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
11600 $as_echo "#define _SYSCALL32 1" >>confdefs.h
11605 # Check if the compiler supports the `long long' type.
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11608 $as_echo_n "checking for long long support in compiler... " >&6; }
11609 if test "${gdb_cv_c_long_long+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11614 extern long long foo;
11618 switch (foo & 2) { case 0: return 1; }
11623 if ac_fn_c_try_compile "$LINENO"; then :
11624 gdb_cv_c_long_long=yes
11626 gdb_cv_c_long_long=no
11628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11631 $as_echo "$gdb_cv_c_long_long" >&6; }
11632 if test $gdb_cv_c_long_long != yes; then
11633 # libdecnumber requires long long.
11634 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
11637 # Check if the compiler and runtime support printing long longs.
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11640 $as_echo_n "checking for long long support in printf... " >&6; }
11641 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11644 if test "$cross_compiling" = yes; then :
11645 gdb_cv_printf_has_long_long=no
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649 $ac_includes_default
11655 l = (l << 16) + 0x0123;
11656 l = (l << 16) + 0x4567;
11657 l = (l << 16) + 0x89ab;
11658 l = (l << 16) + 0xcdef;
11659 sprintf (buf, "0x%016llx", l);
11660 return (strcmp ("0x0123456789abcdef", buf));
11665 if ac_fn_c_try_run "$LINENO"; then :
11666 gdb_cv_printf_has_long_long=yes
11668 gdb_cv_printf_has_long_long=no
11670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11671 conftest.$ac_objext conftest.beam conftest.$ac_ext
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11676 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11677 if test $gdb_cv_printf_has_long_long = yes; then
11679 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11683 # Check if the compiler and runtime support printing decfloats.
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11686 $as_echo_n "checking for decfloat support in printf... " >&6; }
11687 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
11690 if test "$cross_compiling" = yes; then :
11691 gdb_cv_printf_has_decfloat=no
11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11695 $ac_includes_default
11700 _Decimal32 d32 = 1.2345df;
11701 _Decimal64 d64 = 1.2345dd;
11702 _Decimal128 d128 = 1.2345dl;
11703 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11704 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11709 if ac_fn_c_try_run "$LINENO"; then :
11710 gdb_cv_printf_has_decfloat=yes
11712 gdb_cv_printf_has_decfloat=no
11714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11715 conftest.$ac_objext conftest.beam conftest.$ac_ext
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11720 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11721 if test $gdb_cv_printf_has_decfloat = yes; then
11723 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11727 # Check if the compiler supports the `long double' type. We can't use
11728 # AC_C_LONG_DOUBLE because that one does additional checks on the
11729 # constants defined in <float.h> that fail on some systems,
11730 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11733 $as_echo_n "checking for long double support in compiler... " >&6; }
11734 if test "${gdb_cv_c_long_double+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h. */
11741 if ac_fn_c_try_compile "$LINENO"; then :
11742 gdb_cv_c_long_double=yes
11744 gdb_cv_c_long_double=no
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11749 $as_echo "$gdb_cv_c_long_double" >&6; }
11750 if test $gdb_cv_c_long_double = yes; then
11752 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11756 # Check if the compiler and runtime support printing long doubles.
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11759 $as_echo_n "checking for long double support in printf... " >&6; }
11760 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11763 if test "$cross_compiling" = yes; then :
11764 gdb_cv_printf_has_long_double=no
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11768 $ac_includes_default
11773 long double f = 3.141592653;
11774 sprintf (buf, "%Lg", f);
11775 return (strncmp ("3.14159", buf, 7));
11780 if ac_fn_c_try_run "$LINENO"; then :
11781 gdb_cv_printf_has_long_double=yes
11783 gdb_cv_printf_has_long_double=no
11785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11786 conftest.$ac_objext conftest.beam conftest.$ac_ext
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11791 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11792 if test $gdb_cv_printf_has_long_double = yes; then
11794 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11798 # Check if the compiler and runtime support scanning long doubles.
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11801 $as_echo_n "checking for long double support in scanf... " >&6; }
11802 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11803 $as_echo_n "(cached) " >&6
11805 if test "$cross_compiling" = yes; then :
11806 gdb_cv_scanf_has_long_double=no
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11814 char *buf = "3.141592653";
11816 sscanf (buf, "%Lg", &f);
11817 return !(f > 3.14159 && f < 3.14160);
11822 if ac_fn_c_try_run "$LINENO"; then :
11823 gdb_cv_scanf_has_long_double=yes
11825 gdb_cv_scanf_has_long_double=no
11827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11828 conftest.$ac_objext conftest.beam conftest.$ac_ext
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11833 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11834 if test $gdb_cv_scanf_has_long_double = yes; then
11836 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11843 $as_echo_n "checking for -bbigtoc option... " >&6; }
11844 if test "${gdb_cv_bigtoc+set}" = set; then :
11845 $as_echo_n "(cached) " >&6
11848 SAVE_LDFLAGS=$LDFLAGS
11851 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11852 *) gdb_cv_bigtoc=-bbigtoc ;;
11855 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h. */
11867 if ac_fn_c_try_link "$LINENO"; then :
11872 rm -f core conftest.err conftest.$ac_objext \
11873 conftest$ac_exeext conftest.$ac_ext
11874 LDFLAGS="${SAVE_LDFLAGS}"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11878 $as_echo "$gdb_cv_bigtoc" >&6; }
11879 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11884 $as_echo_n "checking for the dynamic export flag... " >&6; }
11886 if test "${gdb_native}" = yes; then
11887 # The dynamically loaded libthread_db needs access to symbols in the gdb
11888 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
11889 # may not be supported there.
11890 old_LDFLAGS="$LDFLAGS"
11891 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11892 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11893 LDFLAGS="$LDFLAGS $RDYNAMIC"
11894 if test "${have_libpython}" = no; then
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11906 if ac_fn_c_try_link "$LINENO"; then :
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11912 # Workaround http://bugs.python.org/issue4434 where static
11913 # libpythonX.Y.a would get its symbols required for
11914 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11915 # Problem does not happen for the recommended libpythonX.Y.so linkage.
11916 old_CFLAGS="$CFLAGS"
11917 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
11919 LIBS="$LIBS $PYTHON_LIBS"
11920 if test "$cross_compiling" = yes; then :
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925 #include "${have_libpython}/Python.h"
11931 err = PyRun_SimpleString ("import itertools\n");
11933 return err == 0 ? 0 : 1;
11938 if ac_fn_c_try_run "$LINENO"; then :
11941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11942 conftest.$ac_objext conftest.beam conftest.$ac_ext
11946 CFLAGS="$old_CFLAGS"
11948 LDFLAGS="$old_LDFLAGS"
11950 if $dynamic_list; then
11951 found="-Wl,--dynamic-list"
11952 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11955 RDYNAMIC="-rdynamic"
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11959 $as_echo "$found" >&6; }
11962 if test ${build} = ${host} -a ${host} = ${target} ; then
11965 # See if thread_db library is around for Solaris thread debugging.
11966 # Note that we must explicitly test for version 1 of the library
11967 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11970 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11971 if test -f /usr/lib/libthread_db.so.1 ; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11973 $as_echo "yes" >&6; }
11975 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11977 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
11978 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11980 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11984 ac_check_lib_save_LIBS=$LIBS
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11989 /* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
12004 if ac_fn_c_try_link "$LINENO"; then :
12005 ac_cv_lib_dl_dlopen=yes
12007 ac_cv_lib_dl_dlopen=no
12009 rm -f core conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12014 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12015 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12016 cat >>confdefs.h <<_ACEOF
12017 #define HAVE_LIBDL 1
12024 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
12025 # Sun randomly tweaked the prototypes in <proc_service.h>
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12028 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12029 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12036 #include <proc_service.h>
12037 ps_err_e ps_pdwrite
12038 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12048 if ac_fn_c_try_compile "$LINENO"; then :
12049 gdb_cv_proc_service_is_old=no
12051 gdb_cv_proc_service_is_old=yes
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12058 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12059 if test $gdb_cv_proc_service_is_old = yes; then
12061 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12071 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12072 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12073 $as_echo_n "(cached) " >&6
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12077 #include <sys/pthdebug.h>
12081 #ifndef PTHDB_VERSION_3
12088 if ac_fn_c_try_compile "$LINENO"; then :
12089 gdb_cv_have_aix_thread_debug=yes
12091 gdb_cv_have_aix_thread_debug=no
12093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12097 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12098 if test $gdb_cv_have_aix_thread_debug = yes; then
12099 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
12100 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
12101 LIBS="$LIBS -lpthdebug"
12103 # Older versions of AIX do not provide the declaration for
12104 # the getthrds function (it appears that it was introduced
12106 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12108 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
12114 cat >>confdefs.h <<_ACEOF
12115 #define HAVE_DECL_GETTHRDS $ac_have_decl
12124 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12126 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12127 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132 #include <thread_db.h>
12136 int i = TD_NOTALLOC;
12141 if ac_fn_c_try_compile "$LINENO"; then :
12142 gdb_cv_thread_db_h_has_td_notalloc=yes
12144 gdb_cv_thread_db_h_has_td_notalloc=no
12147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12151 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12153 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12154 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12159 #include <thread_db.h>
12163 int i = TD_VERSION;
12168 if ac_fn_c_try_compile "$LINENO"; then :
12169 gdb_cv_thread_db_h_has_td_version=yes
12171 gdb_cv_thread_db_h_has_td_version=no
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12178 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12180 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12181 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12182 $as_echo_n "(cached) " >&6
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12186 #include <thread_db.h>
12195 if ac_fn_c_try_compile "$LINENO"; then :
12196 gdb_cv_thread_db_h_has_td_notls=yes
12198 gdb_cv_thread_db_h_has_td_notls=no
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12205 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12207 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12209 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12212 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12214 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12217 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12219 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12223 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12225 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12226 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12231 #include <sys/syscall.h>
12235 int i = __NR_tkill;
12240 if ac_fn_c_try_compile "$LINENO"; then :
12241 gdb_cv_sys_syscall_h_has_tkill=yes
12243 gdb_cv_sys_syscall_h_has_tkill=no
12246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12250 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12252 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12254 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12258 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12260 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12266 cat >>confdefs.h <<_ACEOF
12267 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12271 if test "$cross_compiling" = yes; then :
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12274 #include <sys/personality.h>
12279 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12280 # define ADDR_NO_RANDOMIZE 0x0040000
12282 /* Test the flag could be set and stays set. */
12283 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12284 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12290 if ac_fn_c_try_link "$LINENO"; then :
12291 have_personality=true
12293 have_personality=false
12295 rm -f core conftest.err conftest.$ac_objext \
12296 conftest$ac_exeext conftest.$ac_ext
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 #include <sys/personality.h>
12305 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12306 # define ADDR_NO_RANDOMIZE 0x0040000
12308 /* Test the flag could be set and stays set. */
12309 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12310 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12316 if ac_fn_c_try_run "$LINENO"; then :
12317 have_personality=true
12319 have_personality=false
12321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12322 conftest.$ac_objext conftest.beam conftest.$ac_ext
12325 if $have_personality
12328 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12341 cat >>confdefs.h <<_ACEOF
12342 #define GDBINIT "$gdbinit"
12347 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12348 # except that the argument to --with-sysroot is optional.
12349 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12350 if test "x$with_sysroot" = xyes; then
12351 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
12354 # Check whether --with-sysroot was given.
12355 if test "${with_sysroot+set}" = set; then :
12356 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
12358 TARGET_SYSTEM_ROOT=
12362 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12363 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12364 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
12365 ac_define_dir=`eval echo $ac_define_dir`
12367 cat >>confdefs.h <<_ACEOF
12368 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12374 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12375 if test "x$prefix" = xNONE; then
12376 test_prefix=/usr/local
12378 test_prefix=$prefix
12381 test_prefix=$exec_prefix
12384 case ${ac_define_dir} in
12385 "${test_prefix}"|"${test_prefix}/"*|\
12386 '${exec_prefix}'|'${exec_prefix}/'*)
12391 cat >>confdefs.h <<_ACEOF
12392 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12399 # Check whether --with-system-gdbinit was given.
12400 if test "${with_system_gdbinit+set}" = set; then :
12401 withval=$with_system_gdbinit;
12402 SYSTEM_GDBINIT=$withval
12408 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12409 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12410 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
12411 ac_define_dir=`eval echo $ac_define_dir`
12413 cat >>confdefs.h <<_ACEOF
12414 #define SYSTEM_GDBINIT "$ac_define_dir"
12420 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12421 if test "x$prefix" = xNONE; then
12422 test_prefix=/usr/local
12424 test_prefix=$prefix
12427 test_prefix=$exec_prefix
12430 case ${ac_define_dir} in
12431 "${test_prefix}"|"${test_prefix}/"*|\
12432 '${exec_prefix}'|'${exec_prefix}/'*)
12437 cat >>confdefs.h <<_ACEOF
12438 #define SYSTEM_GDBINIT_RELOCATABLE $value
12444 # Check whether --enable-werror was given.
12445 if test "${enable_werror+set}" = set; then :
12446 enableval=$enable_werror; case "${enableval}" in
12447 yes | y) ERROR_ON_WARNING="yes" ;;
12448 no | n) ERROR_ON_WARNING="no" ;;
12449 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12454 # Enable -Werror by default when using gcc. Turn it off for releases.
12455 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12456 ERROR_ON_WARNING=yes
12460 if test "${ERROR_ON_WARNING}" = yes ; then
12461 WERROR_CFLAGS="-Werror"
12464 # The entries after -Wno-pointer-sign are disabled warnings which may
12465 # be enabled in the future, which can not currently be used to build
12467 # NOTE: If you change this list, remember to update
12468 # gdb/doc/gdbint.texinfo.
12469 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12471 -Wno-unused -Wunused-value -Wunused-function \
12472 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
12473 -Wdeclaration-after-statement -Wempty-body"
12475 # Enable -Wno-format by default when using gcc on mingw since many
12476 # GCC versions complain about %I64.
12478 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
12479 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
12482 # Check whether --enable-build-warnings was given.
12483 if test "${enable_build_warnings+set}" = set; then :
12484 enableval=$enable_build_warnings; case "${enableval}" in
12486 no) build_warnings="-w";;
12487 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12488 build_warnings="${build_warnings} ${t}";;
12489 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12490 build_warnings="${t} ${build_warnings}";;
12491 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12493 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12494 echo "Setting compiler warning flags = $build_warnings" 6>&1
12497 # Check whether --enable-gdb-build-warnings was given.
12498 if test "${enable_gdb_build_warnings+set}" = set; then :
12499 enableval=$enable_gdb_build_warnings; case "${enableval}" in
12501 no) build_warnings="-w";;
12502 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12503 build_warnings="${build_warnings} ${t}";;
12504 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12505 build_warnings="${t} ${build_warnings}";;
12506 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12508 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12509 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12513 if test "x${build_warnings}" != x -a "x$GCC" = xyes
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12516 $as_echo_n "checking compiler warning flags... " >&6; }
12517 # Separate out the -Werror flag as some files just cannot be
12518 # compiled with it enabled.
12519 for w in ${build_warnings}; do
12521 -Werr*) WERROR_CFLAGS=-Werror ;;
12522 *) # Check that GCC accepts it
12523 saved_CFLAGS="$CFLAGS"
12524 CFLAGS="$CFLAGS $w"
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12536 if ac_fn_c_try_compile "$LINENO"; then :
12537 WARN_CFLAGS="${WARN_CFLAGS} $w"
12539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12540 CFLAGS="$saved_CFLAGS"
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12544 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12549 # In the Cygwin environment, we need some additional flags.
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12551 $as_echo_n "checking for cygwin... " >&6; }
12552 if test "${gdb_cv_os_cygwin+set}" = set; then :
12553 $as_echo_n "(cached) " >&6
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h. */
12558 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12563 $EGREP "lose" >/dev/null 2>&1; then :
12564 gdb_cv_os_cygwin=yes
12566 gdb_cv_os_cygwin=no
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
12572 $as_echo "$gdb_cv_os_cygwin" >&6; }
12575 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
12577 *go32* ) SER_HARDWIRE=ser-go32.o ;;
12578 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12579 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
12583 # libreadline needs libuser32.a in a cygwin environment
12585 if test x$gdb_cv_os_cygwin = xyes; then
12586 WIN32LIBS="-luser32"
12587 case "${target}" in
12588 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12593 # The ser-tcp.c module requires sockets.
12597 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12599 WIN32LIBS="$WIN32LIBS -lws2_32"
12604 # Add ELF support to GDB, but only if BFD includes ELF support.
12607 OLD_LDFLAGS=$LDFLAGS
12609 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12610 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12611 # always want our bfd.
12612 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12613 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12614 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12615 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12616 if test "$plugins" = "yes"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12618 $as_echo_n "checking for library containing dlopen... " >&6; }
12619 if test "${ac_cv_search_dlopen+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12622 ac_func_search_save_LIBS=$LIBS
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12626 /* Override any GCC internal prototype to avoid an error.
12627 Use char because int might match the return type of a GCC
12628 builtin and then its argument prototype would still apply. */
12641 for ac_lib in '' dl; do
12642 if test -z "$ac_lib"; then
12643 ac_res="none required"
12646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12648 if ac_fn_c_try_link "$LINENO"; then :
12649 ac_cv_search_dlopen=$ac_res
12651 rm -f core conftest.err conftest.$ac_objext \
12653 if test "${ac_cv_search_dlopen+set}" = set; then :
12657 if test "${ac_cv_search_dlopen+set}" = set; then :
12660 ac_cv_search_dlopen=no
12662 rm conftest.$ac_ext
12663 LIBS=$ac_func_search_save_LIBS
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12666 $as_echo "$ac_cv_search_dlopen" >&6; }
12667 ac_res=$ac_cv_search_dlopen
12668 if test "$ac_res" != no; then :
12669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12674 LIBS="-lbfd -liberty $intl $LIBS"
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12676 $as_echo_n "checking for ELF support in BFD... " >&6; }
12677 if test "${gdb_cv_var_elf+set}" = set; then :
12678 $as_echo_n "(cached) " >&6
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12682 #include <stdlib.h>
12684 #include "elf-bfd.h"
12689 return bfd_get_elf_phdr_upper_bound (NULL);
12694 if ac_fn_c_try_link "$LINENO"; then :
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12703 $as_echo "$gdb_cv_var_elf" >&6; }
12705 LDFLAGS=$OLD_LDFLAGS
12707 if test $gdb_cv_var_elf = yes; then
12708 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
12710 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12712 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12713 if test "$plugins" = "yes"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12715 $as_echo_n "checking for library containing dlopen... " >&6; }
12716 if test "${ac_cv_search_dlopen+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12719 ac_func_search_save_LIBS=$LIBS
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12723 /* Override any GCC internal prototype to avoid an error.
12724 Use char because int might match the return type of a GCC
12725 builtin and then its argument prototype would still apply. */
12738 for ac_lib in '' dl; do
12739 if test -z "$ac_lib"; then
12740 ac_res="none required"
12743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12745 if ac_fn_c_try_link "$LINENO"; then :
12746 ac_cv_search_dlopen=$ac_res
12748 rm -f core conftest.err conftest.$ac_objext \
12750 if test "${ac_cv_search_dlopen+set}" = set; then :
12754 if test "${ac_cv_search_dlopen+set}" = set; then :
12757 ac_cv_search_dlopen=no
12759 rm conftest.$ac_ext
12760 LIBS=$ac_func_search_save_LIBS
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12763 $as_echo "$ac_cv_search_dlopen" >&6; }
12764 ac_res=$ac_cv_search_dlopen
12765 if test "$ac_res" != no; then :
12766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12773 # Add macho support to GDB, but only if BFD includes it.
12776 OLD_LDFLAGS=$LDFLAGS
12778 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12779 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12780 # always want our bfd.
12781 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12782 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12783 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12784 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12785 if test "$plugins" = "yes"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12787 $as_echo_n "checking for library containing dlopen... " >&6; }
12788 if test "${ac_cv_search_dlopen+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12791 ac_func_search_save_LIBS=$LIBS
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12795 /* Override any GCC internal prototype to avoid an error.
12796 Use char because int might match the return type of a GCC
12797 builtin and then its argument prototype would still apply. */
12810 for ac_lib in '' dl; do
12811 if test -z "$ac_lib"; then
12812 ac_res="none required"
12815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12817 if ac_fn_c_try_link "$LINENO"; then :
12818 ac_cv_search_dlopen=$ac_res
12820 rm -f core conftest.err conftest.$ac_objext \
12822 if test "${ac_cv_search_dlopen+set}" = set; then :
12826 if test "${ac_cv_search_dlopen+set}" = set; then :
12829 ac_cv_search_dlopen=no
12831 rm conftest.$ac_ext
12832 LIBS=$ac_func_search_save_LIBS
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12835 $as_echo "$ac_cv_search_dlopen" >&6; }
12836 ac_res=$ac_cv_search_dlopen
12837 if test "$ac_res" != no; then :
12838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12843 LIBS="-lbfd -liberty $intl $LIBS"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
12845 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
12846 if test "${gdb_cv_var_macho+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 #include <stdlib.h>
12853 #include "mach-o.h"
12858 return bfd_mach_o_lookup_command (NULL, 0, NULL);
12863 if ac_fn_c_try_link "$LINENO"; then :
12864 gdb_cv_var_macho=yes
12866 gdb_cv_var_macho=no
12868 rm -f core conftest.err conftest.$ac_objext \
12869 conftest$ac_exeext conftest.$ac_ext
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
12872 $as_echo "$gdb_cv_var_macho" >&6; }
12874 LDFLAGS=$OLD_LDFLAGS
12876 if test $gdb_cv_var_macho = yes; then
12877 CONFIG_OBS="$CONFIG_OBS machoread.o"
12880 # Add SOM support to GDB, but only if BFD includes it.
12883 OLD_LDFLAGS=$LDFLAGS
12885 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12886 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12887 # always want our bfd.
12888 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12889 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12890 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12891 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12892 if test "$plugins" = "yes"; then
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12894 $as_echo_n "checking for library containing dlopen... " >&6; }
12895 if test "${ac_cv_search_dlopen+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12898 ac_func_search_save_LIBS=$LIBS
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12902 /* Override any GCC internal prototype to avoid an error.
12903 Use char because int might match the return type of a GCC
12904 builtin and then its argument prototype would still apply. */
12917 for ac_lib in '' dl; do
12918 if test -z "$ac_lib"; then
12919 ac_res="none required"
12922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 ac_cv_search_dlopen=$ac_res
12927 rm -f core conftest.err conftest.$ac_objext \
12929 if test "${ac_cv_search_dlopen+set}" = set; then :
12933 if test "${ac_cv_search_dlopen+set}" = set; then :
12936 ac_cv_search_dlopen=no
12938 rm conftest.$ac_ext
12939 LIBS=$ac_func_search_save_LIBS
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12942 $as_echo "$ac_cv_search_dlopen" >&6; }
12943 ac_res=$ac_cv_search_dlopen
12944 if test "$ac_res" != no; then :
12945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12950 LIBS="-lbfd -liberty $intl $LIBS"
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
12952 $as_echo_n "checking for SOM support in BFD... " >&6; }
12953 if test "${gdb_cv_var_som+set}" = set; then :
12954 $as_echo_n "(cached) " >&6
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12958 #include <stdlib.h>
12965 return bfd_som_attach_aux_hdr (NULL, 0, NULL);
12970 if ac_fn_c_try_link "$LINENO"; then :
12975 rm -f core conftest.err conftest.$ac_objext \
12976 conftest$ac_exeext conftest.$ac_ext
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
12979 $as_echo "$gdb_cv_var_som" >&6; }
12981 LDFLAGS=$OLD_LDFLAGS
12983 if test $gdb_cv_var_som = yes; then
12984 CONFIG_OBS="$CONFIG_OBS somread.o"
12987 # Add any host-specific objects to GDB.
12988 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
12990 # If building on ELF, look for lzma support for embedded compressed debug info.
12991 if test $gdb_cv_var_elf = yes; then
12993 # Check whether --with-lzma was given.
12994 if test "${with_lzma+set}" = set; then :
12995 withval=$with_lzma;
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13001 $as_echo_n "checking whether to use lzma... " >&6; }
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13003 $as_echo "$with_lzma" >&6; }
13005 if test "${with_lzma}" != no; then
13016 acl_save_prefix="$prefix"
13017 prefix="$acl_final_prefix"
13018 acl_save_exec_prefix="$exec_prefix"
13019 exec_prefix="$acl_final_exec_prefix"
13021 eval additional_includedir=\"$includedir\"
13022 eval additional_libdir=\"$libdir\"
13024 exec_prefix="$acl_save_exec_prefix"
13025 prefix="$acl_save_prefix"
13028 # Check whether --with-liblzma-prefix was given.
13029 if test "${with_liblzma_prefix+set}" = set; then :
13030 withval=$with_liblzma_prefix;
13031 if test "X$withval" = "Xno"; then
13034 if test "X$withval" = "X"; then
13036 acl_save_prefix="$prefix"
13037 prefix="$acl_final_prefix"
13038 acl_save_exec_prefix="$exec_prefix"
13039 exec_prefix="$acl_final_exec_prefix"
13041 eval additional_includedir=\"$includedir\"
13042 eval additional_libdir=\"$libdir\"
13044 exec_prefix="$acl_save_exec_prefix"
13045 prefix="$acl_save_prefix"
13048 additional_includedir="$withval/include"
13049 additional_libdir="$withval/lib"
13060 names_already_handled=
13061 names_next_round='lzma '
13062 while test -n "$names_next_round"; do
13063 names_this_round="$names_next_round"
13065 for name in $names_this_round; do
13067 for n in $names_already_handled; do
13068 if test "$n" = "$name"; then
13069 already_handled=yes
13073 if test -z "$already_handled"; then
13074 names_already_handled="$names_already_handled $name"
13075 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13076 eval value=\"\$HAVE_LIB$uppername\"
13077 if test -n "$value"; then
13078 if test "$value" = yes; then
13079 eval value=\"\$LIB$uppername\"
13080 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
13081 eval value=\"\$LTLIB$uppername\"
13082 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13091 if test $use_additional = yes; then
13092 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13093 found_dir="$additional_libdir"
13094 found_so="$additional_libdir/lib$name.$shlibext"
13095 if test -f "$additional_libdir/lib$name.la"; then
13096 found_la="$additional_libdir/lib$name.la"
13099 if test -f "$additional_libdir/lib$name.$libext"; then
13100 found_dir="$additional_libdir"
13101 found_a="$additional_libdir/lib$name.$libext"
13102 if test -f "$additional_libdir/lib$name.la"; then
13103 found_la="$additional_libdir/lib$name.la"
13108 if test "X$found_dir" = "X"; then
13109 for x in $LDFLAGS $LTLIBLZMA; do
13111 acl_save_prefix="$prefix"
13112 prefix="$acl_final_prefix"
13113 acl_save_exec_prefix="$exec_prefix"
13114 exec_prefix="$acl_final_exec_prefix"
13116 exec_prefix="$acl_save_exec_prefix"
13117 prefix="$acl_save_prefix"
13121 dir=`echo "X$x" | sed -e 's/^X-L//'`
13122 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13124 found_so="$dir/lib$name.$shlibext"
13125 if test -f "$dir/lib$name.la"; then
13126 found_la="$dir/lib$name.la"
13129 if test -f "$dir/lib$name.$libext"; then
13131 found_a="$dir/lib$name.$libext"
13132 if test -f "$dir/lib$name.la"; then
13133 found_la="$dir/lib$name.la"
13139 if test "X$found_dir" != "X"; then
13144 if test "X$found_dir" != "X"; then
13145 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13146 if test "X$found_so" != "X"; then
13147 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13148 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13151 for x in $ltrpathdirs; do
13152 if test "X$x" = "X$found_dir"; then
13157 if test -z "$haveit"; then
13158 ltrpathdirs="$ltrpathdirs $found_dir"
13160 if test "$hardcode_direct" = yes; then
13161 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13163 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13164 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13166 for x in $rpathdirs; do
13167 if test "X$x" = "X$found_dir"; then
13172 if test -z "$haveit"; then
13173 rpathdirs="$rpathdirs $found_dir"
13177 for x in $LDFLAGS $LIBLZMA; do
13179 acl_save_prefix="$prefix"
13180 prefix="$acl_final_prefix"
13181 acl_save_exec_prefix="$exec_prefix"
13182 exec_prefix="$acl_final_exec_prefix"
13184 exec_prefix="$acl_save_exec_prefix"
13185 prefix="$acl_save_prefix"
13187 if test "X$x" = "X-L$found_dir"; then
13192 if test -z "$haveit"; then
13193 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
13195 if test "$hardcode_minus_L" != no; then
13196 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13198 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13204 if test "X$found_a" != "X"; then
13205 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
13207 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
13210 additional_includedir=
13211 case "$found_dir" in
13213 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13214 additional_includedir="$basedir/include"
13217 if test "X$additional_includedir" != "X"; then
13218 if test "X$additional_includedir" != "X/usr/include"; then
13220 if test "X$additional_includedir" = "X/usr/local/include"; then
13221 if test -n "$GCC"; then
13223 linux*) haveit=yes;;
13227 if test -z "$haveit"; then
13228 for x in $CPPFLAGS $INCLZMA; do
13230 acl_save_prefix="$prefix"
13231 prefix="$acl_final_prefix"
13232 acl_save_exec_prefix="$exec_prefix"
13233 exec_prefix="$acl_final_exec_prefix"
13235 exec_prefix="$acl_save_exec_prefix"
13236 prefix="$acl_save_prefix"
13238 if test "X$x" = "X-I$additional_includedir"; then
13243 if test -z "$haveit"; then
13244 if test -d "$additional_includedir"; then
13245 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
13251 if test -n "$found_la"; then
13252 save_libdir="$libdir"
13253 case "$found_la" in
13254 */* | *\\*) . "$found_la" ;;
13255 *) . "./$found_la" ;;
13257 libdir="$save_libdir"
13258 for dep in $dependency_libs; do
13261 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13262 if test "X$additional_libdir" != "X/usr/lib"; then
13264 if test "X$additional_libdir" = "X/usr/local/lib"; then
13265 if test -n "$GCC"; then
13267 linux*) haveit=yes;;
13271 if test -z "$haveit"; then
13273 for x in $LDFLAGS $LIBLZMA; do
13275 acl_save_prefix="$prefix"
13276 prefix="$acl_final_prefix"
13277 acl_save_exec_prefix="$exec_prefix"
13278 exec_prefix="$acl_final_exec_prefix"
13280 exec_prefix="$acl_save_exec_prefix"
13281 prefix="$acl_save_prefix"
13283 if test "X$x" = "X-L$additional_libdir"; then
13288 if test -z "$haveit"; then
13289 if test -d "$additional_libdir"; then
13290 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
13294 for x in $LDFLAGS $LTLIBLZMA; do
13296 acl_save_prefix="$prefix"
13297 prefix="$acl_final_prefix"
13298 acl_save_exec_prefix="$exec_prefix"
13299 exec_prefix="$acl_final_exec_prefix"
13301 exec_prefix="$acl_save_exec_prefix"
13302 prefix="$acl_save_prefix"
13304 if test "X$x" = "X-L$additional_libdir"; then
13309 if test -z "$haveit"; then
13310 if test -d "$additional_libdir"; then
13311 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
13318 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13319 if test "$enable_rpath" != no; then
13321 for x in $rpathdirs; do
13322 if test "X$x" = "X$dir"; then
13327 if test -z "$haveit"; then
13328 rpathdirs="$rpathdirs $dir"
13331 for x in $ltrpathdirs; do
13332 if test "X$x" = "X$dir"; then
13337 if test -z "$haveit"; then
13338 ltrpathdirs="$ltrpathdirs $dir"
13343 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13346 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13349 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
13350 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
13356 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13357 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
13363 if test "X$rpathdirs" != "X"; then
13364 if test -n "$hardcode_libdir_separator"; then
13366 for found_dir in $rpathdirs; do
13367 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13369 acl_save_libdir="$libdir"
13371 eval flag=\"$hardcode_libdir_flag_spec\"
13372 libdir="$acl_save_libdir"
13373 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13375 for found_dir in $rpathdirs; do
13376 acl_save_libdir="$libdir"
13377 libdir="$found_dir"
13378 eval flag=\"$hardcode_libdir_flag_spec\"
13379 libdir="$acl_save_libdir"
13380 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13384 if test "X$ltrpathdirs" != "X"; then
13385 for found_dir in $ltrpathdirs; do
13386 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
13391 ac_save_CPPFLAGS="$CPPFLAGS"
13393 for element in $INCLZMA; do
13395 for x in $CPPFLAGS; do
13397 acl_save_prefix="$prefix"
13398 prefix="$acl_final_prefix"
13399 acl_save_exec_prefix="$exec_prefix"
13400 exec_prefix="$acl_final_exec_prefix"
13402 exec_prefix="$acl_save_exec_prefix"
13403 prefix="$acl_save_prefix"
13405 if test "X$x" = "X$element"; then
13410 if test -z "$haveit"; then
13411 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
13417 $as_echo_n "checking for liblzma... " >&6; }
13418 if test "${ac_cv_liblzma+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
13422 ac_save_LIBS="$LIBS"
13423 LIBS="$LIBS $LIBLZMA"
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13430 lzma_index_iter iter;
13431 lzma_index_iter_init (&iter, 0);
13432 lzma_mf_is_supported (LZMA_MF_HC3);
13437 if ac_fn_c_try_link "$LINENO"; then :
13442 rm -f core conftest.err conftest.$ac_objext \
13443 conftest$ac_exeext conftest.$ac_ext
13444 LIBS="$ac_save_LIBS"
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
13448 $as_echo "$ac_cv_liblzma" >&6; }
13449 if test "$ac_cv_liblzma" = yes; then
13452 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
13455 $as_echo_n "checking how to link with liblzma... " >&6; }
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
13457 $as_echo "$LIBLZMA" >&6; }
13460 CPPFLAGS="$ac_save_CPPFLAGS"
13470 if test "$HAVE_LIBLZMA" != yes; then
13471 if test "$with_lzma" = yes; then
13472 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
13478 LIBGUI="../libgui/src/libgui.a"
13479 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
13488 *-*-cygwin* | *-*-mingw* )
13497 if test "${enable_gdbtk}" = "yes"; then
13499 # Gdbtk must have an absolute path to srcdir in order to run
13500 # properly when not installed.
13503 GDBTK_SRC_DIR=`pwd`
13508 # Ok, lets find the tcl configuration
13509 # First, look for one uninstalled.
13510 # the alternative search directory is invoked by --with-tcl
13513 if test x"${no_tcl}" = x ; then
13514 # we reset no_tcl in case something fails here
13517 # Check whether --with-tcl was given.
13518 if test "${with_tcl+set}" = set; then :
13519 withval=$with_tcl; with_tclconfig=${withval}
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13523 $as_echo_n "checking for Tcl configuration... " >&6; }
13524 if test "${ac_cv_c_tclconfig+set}" = set; then :
13525 $as_echo_n "(cached) " >&6
13529 # First check to see if --with-tcl was specified.
13531 *-*-cygwin*) platDir="win" ;;
13532 *) platDir="unix" ;;
13534 if test x"${with_tclconfig}" != x ; then
13535 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13536 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
13538 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13542 # then check for a private Tcl installation
13543 if test x"${ac_cv_c_tclconfig}" = x ; then
13546 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13547 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13548 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13550 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13551 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13552 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
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` ; do
13557 if test -f "$i/$platDir/tclConfig.sh" ; then
13558 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13564 # on Darwin, check in Framework installation locations
13565 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
13566 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13567 `ls -d /Library/Frameworks 2>/dev/null` \
13568 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13569 `ls -d /System/Library/Frameworks 2>/dev/null` \
13571 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13572 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
13578 # check in a few common install locations
13579 if test x"${ac_cv_c_tclconfig}" = x ; then
13580 for i in `ls -d ${libdir} 2>/dev/null` \
13581 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13582 `ls -d ${prefix}/lib 2>/dev/null` \
13583 `ls -d /usr/local/lib 2>/dev/null` \
13584 `ls -d /usr/contrib/lib 2>/dev/null` \
13585 `ls -d /usr/lib 2>/dev/null` \
13587 if test -f "$i/tclConfig.sh" ; then
13588 ac_cv_c_tclconfig=`(cd $i; pwd)`
13594 # check in a few other private locations
13595 if test x"${ac_cv_c_tclconfig}" = x ; then
13598 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13599 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13600 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13601 if test -f "$i/$platDir/tclConfig.sh" ; then
13602 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13611 if test x"${ac_cv_c_tclconfig}" = x ; then
13612 TCL_BIN_DIR="# no Tcl configs found"
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13614 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13617 TCL_BIN_DIR=${ac_cv_c_tclconfig}
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13619 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13624 # If $no_tk is nonempty, then we can't do Tk, and there is no
13625 # point to doing Tcl.
13628 # Ok, lets find the tk configuration
13629 # First, look for one uninstalled.
13630 # the alternative search directory is invoked by --with-tk
13633 if test x"${no_tk}" = x ; then
13634 # we reset no_tk in case something fails here
13637 # Check whether --with-tk was given.
13638 if test "${with_tk+set}" = set; then :
13639 withval=$with_tk; with_tkconfig=${withval}
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13643 $as_echo_n "checking for Tk configuration... " >&6; }
13644 if test "${ac_cv_c_tkconfig+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
13649 # First check to see if --with-tkconfig was specified.
13650 if test x"${with_tkconfig}" != x ; then
13651 if test -f "${with_tkconfig}/tkConfig.sh" ; then
13652 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
13654 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13658 # then check for a private Tk library
13660 *-*-cygwin*) platDir="win" ;;
13661 *) platDir="unix" ;;
13663 if test x"${ac_cv_c_tkconfig}" = x ; then
13666 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13667 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13668 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13670 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13671 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13672 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
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` ; do
13677 if test -f "$i/$platDir/tkConfig.sh" ; then
13678 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13684 # on Darwin, check in Framework installation locations
13685 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
13686 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13687 `ls -d /Library/Frameworks 2>/dev/null` \
13688 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13689 `ls -d /System/Library/Frameworks 2>/dev/null` \
13691 if test -f "$i/Tk.framework/tkConfig.sh" ; then
13692 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
13698 # check in a few common install locations
13699 if test x"${ac_cv_c_tkconfig}" = x ; then
13700 for i in `ls -d ${libdir} 2>/dev/null` \
13701 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13702 `ls -d ${prefix}/lib 2>/dev/null` \
13703 `ls -d /usr/local/lib 2>/dev/null` \
13704 `ls -d /usr/contrib/lib 2>/dev/null` \
13705 `ls -d /usr/lib 2>/dev/null` \
13707 if test -f "$i/tkConfig.sh" ; then
13708 ac_cv_c_tkconfig=`(cd $i; pwd)`
13713 # check in a few other private locations
13714 if test x"${ac_cv_c_tkconfig}" = x ; then
13717 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13718 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13719 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13720 if test -f "$i/$platDir/tkConfig.sh" ; then
13721 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13730 if test x"${ac_cv_c_tkconfig}" = x ; then
13731 TK_BIN_DIR="# no Tk configs found"
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13733 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13736 TK_BIN_DIR=${ac_cv_c_tkconfig}
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13738 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13743 if test -z "${no_tcl}" -a -z "${no_tk}"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13746 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13748 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13750 $as_echo "loading" >&6; }
13751 . ${TCL_BIN_DIR}/tclConfig.sh
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13754 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13757 # eval is required to do the TCL_DBGX substitution
13758 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13759 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13761 # If the TCL_BIN_DIR is the build directory (not the install directory),
13762 # then set the common variable name to the value of the build variables.
13763 # For example, the variable TCL_LIB_SPEC will be set to the value
13764 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13765 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13766 # installed and uninstalled version of Tcl.
13767 if test -f "${TCL_BIN_DIR}/Makefile" ; then
13768 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13769 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13770 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13771 elif test "`uname -s`" = "Darwin"; then
13772 # If Tcl was built as a framework, attempt to use the libraries
13773 # from the framework at the given location so that linking works
13774 # against Tcl.framework installed in an arbitrary location.
13775 case ${TCL_DEFS} in
13777 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13778 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
13779 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13780 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13781 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13786 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13787 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13788 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13794 # eval is required to do the TCL_DBGX substitution
13795 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13796 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13797 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13798 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13814 # Check for in-tree tcl
13821 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13825 # Find Tcl private headers
13826 if test x"${intree}" = xno; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13829 $as_echo_n "checking for Tcl private headers... " >&6; }
13831 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13832 if test -f ${dir}/tclInt.h ; then
13836 if test x"${private_dir}" = x; then
13837 as_fn_error "could not find private Tcl headers" "$LINENO" 5
13839 TCL_PRIVATE_INCLUDE="-I${private_dir}"
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13841 $as_echo "${private_dir}" >&6; }
13844 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13845 TCL_LIBRARY="${TCL_LIB_SPEC}"
13848 # If building tcl in the same src tree, private headers
13849 # are not needed, but we need to be sure to use the right
13851 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
13852 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
13853 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
13861 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
13863 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13865 $as_echo "loading" >&6; }
13866 . ${TK_BIN_DIR}/tkConfig.sh
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
13869 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13872 # eval is required to do the TK_DBGX substitution
13873 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
13874 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
13876 # If the TK_BIN_DIR is the build directory (not the install directory),
13877 # then set the common variable name to the value of the build variables.
13878 # For example, the variable TK_LIB_SPEC will be set to the value
13879 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
13880 # instead of TK_BUILD_LIB_SPEC since it will work with both an
13881 # installed and uninstalled version of Tcl.
13882 if test -f "${TK_BIN_DIR}/Makefile" ; then
13883 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
13884 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
13885 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
13886 elif test "`uname -s`" = "Darwin"; then
13887 # If Tk was built as a framework, attempt to use the libraries
13888 # from the framework at the given location so that linking works
13889 # against Tk.framework installed in an arbitrary location.
13892 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
13893 for i in "`cd ${TK_BIN_DIR}; pwd`" \
13894 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
13895 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
13896 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
13901 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
13902 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
13903 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
13909 # eval is required to do the TK_DBGX substitution
13910 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
13911 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
13912 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
13913 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
13928 # Check for in-tree Tk
13930 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
13934 # Find Tk private headers
13935 if test x"${intree}" = xno; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
13938 $as_echo_n "checking for Tk private headers... " >&6; }
13940 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
13941 if test -f ${dir}/tkInt.h; then
13945 if test x"${private_dir}" = x; then
13946 as_fn_error "could not find Tk private headers" "$LINENO" 5
13948 TK_PRIVATE_INCLUDE="-I${private_dir}"
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13950 $as_echo "${private_dir}" >&6; }
13953 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
13954 TK_LIBRARY=${TK_LIB_SPEC}
13957 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
13958 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
13959 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
13966 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
13968 # Include some libraries that Tcl and Tk want.
13969 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
13970 # Yes, the ordering seems wrong here. But it isn't.
13971 # TK_LIBS is the list of libraries that need to be linked
13972 # after Tcl/Tk. Note that this isn't put into LIBS. If it
13973 # were in LIBS then any link tests after this point would
13974 # try to include things like `$(LIBGUI)', which wouldn't work.
13975 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
13977 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
13978 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
13979 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
13980 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
13981 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
13982 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
13983 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
13985 if test x$gdb_cv_os_cygwin = xyes; then
13986 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
13987 WIN32LDAPP="-Wl,--subsystem,console"
13988 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
13991 subdirs="$subdirs gdbtk"
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14004 $as_echo_n "checking for X... " >&6; }
14007 # Check whether --with-x was given.
14008 if test "${with_x+set}" = set; then :
14012 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14013 if test "x$with_x" = xno; then
14014 # The user explicitly disabled X.
14017 case $x_includes,$x_libraries in #(
14018 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
14019 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
14020 $as_echo_n "(cached) " >&6
14022 # One or both of the vars are not set, and there is no cached value.
14023 ac_x_includes=no ac_x_libraries=no
14024 rm -f -r conftest.dir
14025 if mkdir conftest.dir; then
14027 cat >Imakefile <<'_ACEOF'
14029 @echo incroot='${INCROOT}'
14031 @echo usrlibdir='${USRLIBDIR}'
14033 @echo libdir='${LIBDIR}'
14035 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14036 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14037 for ac_var in incroot usrlibdir libdir; do
14038 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14040 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14041 for ac_extension in a so sl dylib la dll; do
14042 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14043 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14044 ac_im_usrlibdir=$ac_im_libdir; break
14047 # Screen out bogus values from the imake configuration. They are
14048 # bogus both because they are the default anyway, and because
14049 # using them would break gcc on systems where it needs fixed includes.
14050 case $ac_im_incroot in
14051 /usr/include) ac_x_includes= ;;
14052 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14054 case $ac_im_usrlibdir in
14055 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14056 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14060 rm -f -r conftest.dir
14063 # Standard set of common directories for X headers.
14064 # Check X11 before X11Rn because it is often a symlink to the current release.
14078 /usr/local/X11/include
14079 /usr/local/X11R7/include
14080 /usr/local/X11R6/include
14081 /usr/local/X11R5/include
14082 /usr/local/X11R4/include
14084 /usr/local/include/X11
14085 /usr/local/include/X11R7
14086 /usr/local/include/X11R6
14087 /usr/local/include/X11R5
14088 /usr/local/include/X11R4
14092 /usr/XFree86/include/X11
14096 /usr/unsupported/include
14097 /usr/athena/include
14098 /usr/local/x11r5/include
14099 /usr/lpp/Xamples/include
14101 /usr/openwin/include
14102 /usr/openwin/share/include'
14104 if test "$ac_x_includes" = no; then
14105 # Guess where to find include files, by looking for Xlib.h.
14106 # First, try using that file with no special directory specified.
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109 #include <X11/Xlib.h>
14111 if ac_fn_c_try_cpp "$LINENO"; then :
14112 # We can compile using X headers with no special include directory.
14115 for ac_dir in $ac_x_header_dirs; do
14116 if test -r "$ac_dir/X11/Xlib.h"; then
14117 ac_x_includes=$ac_dir
14122 rm -f conftest.err conftest.$ac_ext
14123 fi # $ac_x_includes = no
14125 if test "$ac_x_libraries" = no; then
14126 # Check for the libraries.
14127 # See if we find them without any special options.
14128 # Don't add to $LIBS permanently.
14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h. */
14133 #include <X11/Xlib.h>
14142 if ac_fn_c_try_link "$LINENO"; then :
14144 # We can link X programs with no special library path.
14148 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14150 # Don't even attempt the hair of trying to link an X program!
14151 for ac_extension in a so sl dylib la dll; do
14152 if test -r "$ac_dir/libX11.$ac_extension"; then
14153 ac_x_libraries=$ac_dir
14159 rm -f core conftest.err conftest.$ac_objext \
14160 conftest$ac_exeext conftest.$ac_ext
14161 fi # $ac_x_libraries = no
14163 case $ac_x_includes,$ac_x_libraries in #(
14164 no,* | *,no | *\'*)
14165 # Didn't find X, or a directory has "'" in its name.
14166 ac_cv_have_x="have_x=no";; #(
14168 # Record where we found X for the cache.
14169 ac_cv_have_x="have_x=yes\
14170 ac_x_includes='$ac_x_includes'\
14171 ac_x_libraries='$ac_x_libraries'"
14177 eval "$ac_cv_have_x"
14180 if test "$have_x" != yes; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14182 $as_echo "$have_x" >&6; }
14185 # If each of the values was on the command line, it overrides each guess.
14186 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14187 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14188 # Update the cache value to reflect the command line values.
14189 ac_cv_have_x="have_x=yes\
14190 ac_x_includes='$x_includes'\
14191 ac_x_libraries='$x_libraries'"
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14193 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14197 # Unlike the sim directory, whether a simulator is linked is controlled by
14198 # presence of a gdb_sim definition in the target configure.tgt entry.
14199 # This code just checks for a few cases where we'd like to ignore those
14200 # definitions, even when they're present in the '.mt' file. These cases
14201 # are when --disable-sim is specified, or if the simulator directory is
14202 # not part of the source tree.
14204 # Check whether --enable-sim was given.
14205 if test "${enable_sim+set}" = set; then :
14206 enableval=$enable_sim; echo "enable_sim = $enable_sim";
14207 echo "enableval = ${enableval}";
14208 case "${enableval}" in
14209 yes) ignore_sim=false ;;
14210 no) ignore_sim=true ;;
14211 *) ignore_sim=false ;;
14218 if test ! -d "${srcdir}/../sim"; then
14224 if test "${ignore_sim}" = "false"; then
14225 if test x"${gdb_sim}" != x ; then
14227 SIM_OBS="remote-sim.o"
14229 $as_echo "#define WITH_SIM 1" >>confdefs.h
14247 # List of host floatformats.
14249 cat >>confdefs.h <<_ACEOF
14250 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14254 cat >>confdefs.h <<_ACEOF
14255 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14259 cat >>confdefs.h <<_ACEOF
14260 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14264 # target_subdir is used by the testsuite to find the target libraries.
14266 if test "${host}" != "${target}"; then
14267 target_subdir="${target_alias}/"
14272 if test "${gdb_native}" = "yes"; then
14273 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14274 if test ! -f ${host_makefile_frag}; then
14275 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14277 frags="$frags $host_makefile_frag"
14279 host_makefile_frag=/dev/null
14285 if test "${gdb_native}" = "yes"; then
14286 # We pick this up from the host configuration file (.mh) because we
14287 # do not have a native configuration Makefile fragment.
14288 nativefile=`sed -n '
14289 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14290 ' ${host_makefile_frag}`
14294 if test x"${gdb_osabi}" != x ; then
14296 cat >>confdefs.h <<_ACEOF
14297 #define GDB_OSABI_DEFAULT $gdb_osabi
14302 # Enable multi-ice-gdb-server.
14303 # Check whether --enable-multi-ice was given.
14304 if test "${enable_multi_ice+set}" = set; then :
14305 enableval=$enable_multi_ice; case $enableval in
14308 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14312 if test "x$enable_multi_ice" = xyes; then
14313 subdirs="$subdirs multi-ice"
14317 # Check whether --enable-gdbserver was given.
14318 if test "${enable_gdbserver+set}" = set; then :
14319 enableval=$enable_gdbserver; case "${enableval}" in
14321 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
14324 enable_gdbserver=auto
14328 # We only build gdbserver automatically in a native configuration, and
14329 # only if the user did not explicitly disable its build.
14330 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14332 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14333 if test "x$build_gdbserver" = xyes; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14335 $as_echo "yes" >&6; }
14336 subdirs="$subdirs gdbserver"
14338 gdbserver_build_enabled=yes
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 $as_echo "no" >&6; }
14345 # If the user explicitly request the gdbserver to be built, verify that
14346 # we were in fact able to enable it.
14347 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
14348 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
14351 # Check for babeltrace and babeltrace-ctf
14353 # Check whether --with-babeltrace was given.
14354 if test "${with_babeltrace+set}" = set; then :
14355 withval=$with_babeltrace;
14357 with_babeltrace=auto
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
14361 $as_echo_n "checking whether to use babeltrace... " >&6; }
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
14363 $as_echo "$with_babeltrace" >&6; }
14365 if test "x$with_babeltrace" = "xno"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
14367 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
14369 # Append -Werror to CFLAGS so that configure can catch the warning
14370 # "assignment from incompatible pointer type", which is related to
14371 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
14372 # in GDB, while babeltrace 1.0.3 is broken.
14373 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
14374 # safe to save and restore CFLAGS here.
14375 saved_CFLAGS=$CFLAGS
14376 CFLAGS="$CFLAGS -Werror"
14387 acl_save_prefix="$prefix"
14388 prefix="$acl_final_prefix"
14389 acl_save_exec_prefix="$exec_prefix"
14390 exec_prefix="$acl_final_exec_prefix"
14392 eval additional_includedir=\"$includedir\"
14393 eval additional_libdir=\"$libdir\"
14395 exec_prefix="$acl_save_exec_prefix"
14396 prefix="$acl_save_prefix"
14399 # Check whether --with-libbabeltrace-prefix was given.
14400 if test "${with_libbabeltrace_prefix+set}" = set; then :
14401 withval=$with_libbabeltrace_prefix;
14402 if test "X$withval" = "Xno"; then
14405 if test "X$withval" = "X"; then
14407 acl_save_prefix="$prefix"
14408 prefix="$acl_final_prefix"
14409 acl_save_exec_prefix="$exec_prefix"
14410 exec_prefix="$acl_final_exec_prefix"
14412 eval additional_includedir=\"$includedir\"
14413 eval additional_libdir=\"$libdir\"
14415 exec_prefix="$acl_save_exec_prefix"
14416 prefix="$acl_save_prefix"
14419 additional_includedir="$withval/include"
14420 additional_libdir="$withval/lib"
14431 names_already_handled=
14432 names_next_round='babeltrace babeltrace-ctf'
14433 while test -n "$names_next_round"; do
14434 names_this_round="$names_next_round"
14436 for name in $names_this_round; do
14438 for n in $names_already_handled; do
14439 if test "$n" = "$name"; then
14440 already_handled=yes
14444 if test -z "$already_handled"; then
14445 names_already_handled="$names_already_handled $name"
14446 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14447 eval value=\"\$HAVE_LIB$uppername\"
14448 if test -n "$value"; then
14449 if test "$value" = yes; then
14450 eval value=\"\$LIB$uppername\"
14451 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
14452 eval value=\"\$LTLIB$uppername\"
14453 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
14462 if test $use_additional = yes; then
14463 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14464 found_dir="$additional_libdir"
14465 found_so="$additional_libdir/lib$name.$shlibext"
14466 if test -f "$additional_libdir/lib$name.la"; then
14467 found_la="$additional_libdir/lib$name.la"
14470 if test -f "$additional_libdir/lib$name.$libext"; then
14471 found_dir="$additional_libdir"
14472 found_a="$additional_libdir/lib$name.$libext"
14473 if test -f "$additional_libdir/lib$name.la"; then
14474 found_la="$additional_libdir/lib$name.la"
14479 if test "X$found_dir" = "X"; then
14480 for x in $LDFLAGS $LTLIBBABELTRACE; do
14482 acl_save_prefix="$prefix"
14483 prefix="$acl_final_prefix"
14484 acl_save_exec_prefix="$exec_prefix"
14485 exec_prefix="$acl_final_exec_prefix"
14487 exec_prefix="$acl_save_exec_prefix"
14488 prefix="$acl_save_prefix"
14492 dir=`echo "X$x" | sed -e 's/^X-L//'`
14493 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14495 found_so="$dir/lib$name.$shlibext"
14496 if test -f "$dir/lib$name.la"; then
14497 found_la="$dir/lib$name.la"
14500 if test -f "$dir/lib$name.$libext"; then
14502 found_a="$dir/lib$name.$libext"
14503 if test -f "$dir/lib$name.la"; then
14504 found_la="$dir/lib$name.la"
14510 if test "X$found_dir" != "X"; then
14515 if test "X$found_dir" != "X"; then
14516 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
14517 if test "X$found_so" != "X"; then
14518 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14519 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14522 for x in $ltrpathdirs; do
14523 if test "X$x" = "X$found_dir"; then
14528 if test -z "$haveit"; then
14529 ltrpathdirs="$ltrpathdirs $found_dir"
14531 if test "$hardcode_direct" = yes; then
14532 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14534 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14535 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14537 for x in $rpathdirs; do
14538 if test "X$x" = "X$found_dir"; then
14543 if test -z "$haveit"; then
14544 rpathdirs="$rpathdirs $found_dir"
14548 for x in $LDFLAGS $LIBBABELTRACE; do
14550 acl_save_prefix="$prefix"
14551 prefix="$acl_final_prefix"
14552 acl_save_exec_prefix="$exec_prefix"
14553 exec_prefix="$acl_final_exec_prefix"
14555 exec_prefix="$acl_save_exec_prefix"
14556 prefix="$acl_save_prefix"
14558 if test "X$x" = "X-L$found_dir"; then
14563 if test -z "$haveit"; then
14564 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
14566 if test "$hardcode_minus_L" != no; then
14567 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14569 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
14575 if test "X$found_a" != "X"; then
14576 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
14578 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
14581 additional_includedir=
14582 case "$found_dir" in
14584 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14585 additional_includedir="$basedir/include"
14588 if test "X$additional_includedir" != "X"; then
14589 if test "X$additional_includedir" != "X/usr/include"; then
14591 if test "X$additional_includedir" = "X/usr/local/include"; then
14592 if test -n "$GCC"; then
14594 linux*) haveit=yes;;
14598 if test -z "$haveit"; then
14599 for x in $CPPFLAGS $INCBABELTRACE; do
14601 acl_save_prefix="$prefix"
14602 prefix="$acl_final_prefix"
14603 acl_save_exec_prefix="$exec_prefix"
14604 exec_prefix="$acl_final_exec_prefix"
14606 exec_prefix="$acl_save_exec_prefix"
14607 prefix="$acl_save_prefix"
14609 if test "X$x" = "X-I$additional_includedir"; then
14614 if test -z "$haveit"; then
14615 if test -d "$additional_includedir"; then
14616 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
14622 if test -n "$found_la"; then
14623 save_libdir="$libdir"
14624 case "$found_la" in
14625 */* | *\\*) . "$found_la" ;;
14626 *) . "./$found_la" ;;
14628 libdir="$save_libdir"
14629 for dep in $dependency_libs; do
14632 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14633 if test "X$additional_libdir" != "X/usr/lib"; then
14635 if test "X$additional_libdir" = "X/usr/local/lib"; then
14636 if test -n "$GCC"; then
14638 linux*) haveit=yes;;
14642 if test -z "$haveit"; then
14644 for x in $LDFLAGS $LIBBABELTRACE; do
14646 acl_save_prefix="$prefix"
14647 prefix="$acl_final_prefix"
14648 acl_save_exec_prefix="$exec_prefix"
14649 exec_prefix="$acl_final_exec_prefix"
14651 exec_prefix="$acl_save_exec_prefix"
14652 prefix="$acl_save_prefix"
14654 if test "X$x" = "X-L$additional_libdir"; then
14659 if test -z "$haveit"; then
14660 if test -d "$additional_libdir"; then
14661 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
14665 for x in $LDFLAGS $LTLIBBABELTRACE; do
14667 acl_save_prefix="$prefix"
14668 prefix="$acl_final_prefix"
14669 acl_save_exec_prefix="$exec_prefix"
14670 exec_prefix="$acl_final_exec_prefix"
14672 exec_prefix="$acl_save_exec_prefix"
14673 prefix="$acl_save_prefix"
14675 if test "X$x" = "X-L$additional_libdir"; then
14680 if test -z "$haveit"; then
14681 if test -d "$additional_libdir"; then
14682 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
14689 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14690 if test "$enable_rpath" != no; then
14692 for x in $rpathdirs; do
14693 if test "X$x" = "X$dir"; then
14698 if test -z "$haveit"; then
14699 rpathdirs="$rpathdirs $dir"
14702 for x in $ltrpathdirs; do
14703 if test "X$x" = "X$dir"; then
14708 if test -z "$haveit"; then
14709 ltrpathdirs="$ltrpathdirs $dir"
14714 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14717 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14720 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
14721 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
14727 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
14728 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
14734 if test "X$rpathdirs" != "X"; then
14735 if test -n "$hardcode_libdir_separator"; then
14737 for found_dir in $rpathdirs; do
14738 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14740 acl_save_libdir="$libdir"
14742 eval flag=\"$hardcode_libdir_flag_spec\"
14743 libdir="$acl_save_libdir"
14744 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
14746 for found_dir in $rpathdirs; do
14747 acl_save_libdir="$libdir"
14748 libdir="$found_dir"
14749 eval flag=\"$hardcode_libdir_flag_spec\"
14750 libdir="$acl_save_libdir"
14751 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
14755 if test "X$ltrpathdirs" != "X"; then
14756 for found_dir in $ltrpathdirs; do
14757 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
14762 ac_save_CPPFLAGS="$CPPFLAGS"
14764 for element in $INCBABELTRACE; do
14766 for x in $CPPFLAGS; do
14768 acl_save_prefix="$prefix"
14769 prefix="$acl_final_prefix"
14770 acl_save_exec_prefix="$exec_prefix"
14771 exec_prefix="$acl_final_exec_prefix"
14773 exec_prefix="$acl_save_exec_prefix"
14774 prefix="$acl_save_prefix"
14776 if test "X$x" = "X$element"; then
14781 if test -z "$haveit"; then
14782 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
14788 $as_echo_n "checking for libbabeltrace... " >&6; }
14789 if test "${ac_cv_libbabeltrace+set}" = set; then :
14790 $as_echo_n "(cached) " >&6
14793 ac_save_LIBS="$LIBS"
14794 LIBS="$LIBS $LIBBABELTRACE"
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h. */
14797 #include <babeltrace/babeltrace.h>
14798 #include <babeltrace/ctf/events.h>
14799 #include <babeltrace/ctf/iterator.h>
14803 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
14804 struct bt_ctf_event *event = NULL;
14805 const struct bt_definition *scope;
14807 scope = bt_ctf_get_top_level_scope (event,
14808 BT_STREAM_EVENT_HEADER);
14809 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
14815 if ac_fn_c_try_link "$LINENO"; then :
14816 ac_cv_libbabeltrace=yes
14818 ac_cv_libbabeltrace=no
14820 rm -f core conftest.err conftest.$ac_objext \
14821 conftest$ac_exeext conftest.$ac_ext
14822 LIBS="$ac_save_LIBS"
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
14826 $as_echo "$ac_cv_libbabeltrace" >&6; }
14827 if test "$ac_cv_libbabeltrace" = yes; then
14828 HAVE_LIBBABELTRACE=yes
14830 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
14833 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
14835 $as_echo "$LIBBABELTRACE" >&6; }
14837 HAVE_LIBBABELTRACE=no
14838 CPPFLAGS="$ac_save_CPPFLAGS"
14848 CFLAGS=$saved_CFLAGS
14850 if test "$HAVE_LIBBABELTRACE" != yes; then
14851 if test "$with_babeltrace" = yes; then
14852 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
14855 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
14860 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14861 # to an empty version.
14867 if test "${nativefile}" != ""; then
14868 case "${nativefile}" in
14869 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
14870 * ) GDB_NM_FILE="${nativefile}"
14872 files="${files} ${GDB_NM_FILE}"
14873 links="${links} nm.h"
14875 cat >>confdefs.h <<_ACEOF
14876 #define GDB_NM_FILE "${GDB_NM_FILE}"
14882 ac_sources="$files"
14884 while test -n "$ac_sources"; do
14885 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
14886 set $ac_sources; ac_source=$1; shift; ac_sources=$*
14887 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
14889 ac_config_links="$ac_config_links $ac_config_links_1"
14895 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14898 # Undo the $ec_script escaping suitable for Makefile.
14899 transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
14900 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$transform"`
14901 if test "x$GDB_TRANSFORM_NAME" = x; then
14902 GDB_TRANSFORM_NAME=gdb
14905 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$transform"`
14906 if test "x$GCORE_TRANSFORM_NAME" = x; then
14907 GCORE_TRANSFORM_NAME=gcore
14910 ac_config_files="$ac_config_files gcore"
14913 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
14915 ac_config_commands="$ac_config_commands default"
14917 cat >confcache <<\_ACEOF
14918 # This file is a shell script that caches the results of configure
14919 # tests run on this system so they can be shared between configure
14920 # scripts and configure runs, see configure's option --config-cache.
14921 # It is not useful on other systems. If it contains results you don't
14922 # want to keep, you may remove or edit it.
14924 # config.status only pays attention to the cache file if you give it
14925 # the --recheck option to rerun configure.
14927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14929 # following values.
14933 # The following way of writing the cache mishandles newlines in values,
14934 # but we know of no workaround that is simple, portable, and efficient.
14935 # So, we kill variables containing newlines.
14936 # Ultrix sh set writes to stderr and can't be redirected directly,
14937 # and sets the high bit in the cache file unless we assign to the vars.
14939 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14940 eval ac_val=\$$ac_var
14944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14948 _ | IFS | as_nl) ;; #(
14949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14950 *) { eval $ac_var=; unset $ac_var;} ;;
14956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14957 *${as_nl}ac_space=\ *)
14958 # `set' does not quote correctly, so add quotes: double-quote
14959 # substitution turns \\\\ into \\, and sed turns \\ into \.
14962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14965 # `set' quotes correctly as required by POSIX, so do not add quotes.
14966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14979 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14980 if test -w "$cache_file"; then
14981 test "x$cache_file" != "x/dev/null" &&
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14983 $as_echo "$as_me: updating cache $cache_file" >&6;}
14984 cat confcache >$cache_file
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14993 # Let make expand exec_prefix.
14994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14996 DEFS=-DHAVE_CONFIG_H
15000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15001 # 1. Remove the extension, and $U if already installed.
15002 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15003 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15004 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15005 # will be set to the directory where LIBOBJS objects are built.
15006 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15007 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15009 LIBOBJS=$ac_libobjs
15011 LTLIBOBJS=$ac_ltlibobjs
15014 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15015 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15018 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15019 as_fn_error "conditional \"GMAKE\" was never defined.
15020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15024 : ${CONFIG_STATUS=./config.status}
15026 ac_clean_files_save=$ac_clean_files
15027 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15029 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15031 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15033 # Generated by $as_me.
15034 # Run this file to recreate the current configuration.
15035 # Compiler output produced by configure, useful for debugging
15036 # configure, is in config.log if it exists.
15039 ac_cs_recheck=false
15042 SHELL=\${CONFIG_SHELL-$SHELL}
15045 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15046 ## -------------------- ##
15047 ## M4sh Initialization. ##
15048 ## -------------------- ##
15050 # Be more Bourne compatible
15051 DUALCASE=1; export DUALCASE # for MKS sh
15052 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15055 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15056 # is contrary to our usage. Disable this feature.
15057 alias -g '${1+"$@"}'='"$@"'
15058 setopt NO_GLOB_SUBST
15060 case `(set -o) 2>/dev/null` in #(
15072 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15073 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15074 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15075 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15076 # Prefer a ksh shell builtin over an external printf program on Solaris,
15077 # but without wasting forks for bash or zsh.
15078 if test -z "$BASH_VERSION$ZSH_VERSION" \
15079 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15080 as_echo='print -r --'
15081 as_echo_n='print -rn --'
15082 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15083 as_echo='printf %s\n'
15084 as_echo_n='printf %s'
15086 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15087 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15088 as_echo_n='/usr/ucb/echo -n'
15090 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15091 as_echo_n_body='eval
15095 expr "X$arg" : "X\\(.*\\)$as_nl";
15096 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15098 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15100 export as_echo_n_body
15101 as_echo_n='sh -c $as_echo_n_body as_echo'
15103 export as_echo_body
15104 as_echo='sh -c $as_echo_body as_echo'
15107 # The user is always right.
15108 if test "${PATH_SEPARATOR+set}" != set; then
15110 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15111 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15118 # We need space, tab and new line, in precisely that order. Quoting is
15119 # there to prevent editors from complaining about space-tab.
15120 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15121 # splitting by setting IFS to empty value.)
15124 # Find who we are. Look in the path if we contain no directory separator.
15126 *[\\/]* ) as_myself=$0 ;;
15127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15128 for as_dir in $PATH
15131 test -z "$as_dir" && as_dir=.
15132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15138 # We did not find ourselves, most probably we were run as `sh COMMAND'
15139 # in which case we are not to be found in the path.
15140 if test "x$as_myself" = x; then
15143 if test ! -f "$as_myself"; then
15144 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15148 # Unset variables that we do not need and which cause bugs (e.g. in
15149 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15150 # suppresses any "Segmentation fault" message there. '((' could
15151 # trigger a bug in pdksh 5.2.14.
15152 for as_var in BASH_ENV ENV MAIL MAILPATH
15153 do eval test x\${$as_var+set} = xset \
15154 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15170 # as_fn_error ERROR [LINENO LOG_FD]
15171 # ---------------------------------
15172 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15173 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15174 # script with status $?, using 1 if that was 0.
15177 as_status=$?; test $as_status -eq 0 && as_status=1
15179 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15180 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15182 $as_echo "$as_me: error: $1" >&2
15183 as_fn_exit $as_status
15187 # as_fn_set_status STATUS
15188 # -----------------------
15189 # Set $? to STATUS, without forking.
15190 as_fn_set_status ()
15193 } # as_fn_set_status
15195 # as_fn_exit STATUS
15196 # -----------------
15197 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15201 as_fn_set_status $1
15207 # Portably unset VAR.
15210 { eval $1=; unset $1;}
15212 as_unset=as_fn_unset
15213 # as_fn_append VAR VALUE
15214 # ----------------------
15215 # Append the text in VALUE to the end of the definition contained in VAR. Take
15216 # advantage of any shell optimizations that allow amortized linear growth over
15217 # repeated appends, instead of the typical quadratic growth present in naive
15219 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15220 eval 'as_fn_append ()
15231 # as_fn_arith ARG...
15232 # ------------------
15233 # Perform arithmetic evaluation on the ARGs, and store the result in the
15234 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15235 # must be portable across $(()) and expr.
15236 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15237 eval 'as_fn_arith ()
15244 as_val=`expr "$@" || test $? -eq 1`
15249 if expr a : '\(a\)' >/dev/null 2>&1 &&
15250 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15256 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15257 as_basename=basename
15262 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15268 as_me=`$as_basename -- "$0" ||
15269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15270 X"$0" : 'X\(//\)$' \| \
15271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15273 sed '/^.*\/\([^/][^/]*\)\/*$/{
15287 # Avoid depending upon Character Ranges.
15288 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15289 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15290 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15291 as_cr_digits='0123456789'
15292 as_cr_alnum=$as_cr_Letters$as_cr_digits
15294 ECHO_C= ECHO_N= ECHO_T=
15295 case `echo -n x` in #(((((
15297 case `echo 'xy\c'` in
15298 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15300 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15307 rm -f conf$$ conf$$.exe conf$$.file
15308 if test -d conf$$.dir; then
15309 rm -f conf$$.dir/conf$$.file
15312 mkdir conf$$.dir 2>/dev/null
15314 if (echo >conf$$.file) 2>/dev/null; then
15315 if ln -s conf$$.file conf$$ 2>/dev/null; then
15317 # ... but there are two gotchas:
15318 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15319 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15320 # In both cases, we have to default to `cp -p'.
15321 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15323 elif ln conf$$.file conf$$ 2>/dev/null; then
15331 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15332 rmdir conf$$.dir 2>/dev/null
15337 # Create "$as_dir" as a directory, including parents if necessary.
15342 -*) as_dir=./$as_dir;;
15344 test -d "$as_dir" || eval $as_mkdir_p || {
15348 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15349 *) as_qdir=$as_dir;;
15351 as_dirs="'$as_qdir' $as_dirs"
15352 as_dir=`$as_dirname -- "$as_dir" ||
15353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15354 X"$as_dir" : 'X\(//\)[^/]' \| \
15355 X"$as_dir" : 'X\(//\)$' \| \
15356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15357 $as_echo X"$as_dir" |
15358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15362 /^X\(\/\/\)[^/].*/{
15375 test -d "$as_dir" && break
15377 test -z "$as_dirs" || eval "mkdir $as_dirs"
15378 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15382 if mkdir -p . 2>/dev/null; then
15383 as_mkdir_p='mkdir -p "$as_dir"'
15385 test -d ./-p && rmdir ./-p
15389 if test -x / >/dev/null 2>&1; then
15390 as_test_x='test -x'
15392 if ls -dL / >/dev/null 2>&1; then
15399 if test -d "$1"; then
15405 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15406 ???[sx]*):;;*)false;;esac;fi
15410 as_executable_p=$as_test_x
15412 # Sed expression to map a string onto a valid CPP name.
15413 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15415 # Sed expression to map a string onto a valid variable name.
15416 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15420 ## ----------------------------------- ##
15421 ## Main body of $CONFIG_STATUS script. ##
15422 ## ----------------------------------- ##
15424 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15427 # Save the log message, to keep $0 and so on meaningful, and to
15428 # report actual input values of CONFIG_FILES etc. instead of their
15429 # values after options handling.
15431 This file was extended by $as_me, which was
15432 generated by GNU Autoconf 2.64. Invocation command line was
15434 CONFIG_FILES = $CONFIG_FILES
15435 CONFIG_HEADERS = $CONFIG_HEADERS
15436 CONFIG_LINKS = $CONFIG_LINKS
15437 CONFIG_COMMANDS = $CONFIG_COMMANDS
15440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15445 case $ac_config_files in *"
15446 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15449 case $ac_config_headers in *"
15450 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15455 # Files that config.status was made for.
15456 config_files="$ac_config_files"
15457 config_headers="$ac_config_headers"
15458 config_links="$ac_config_links"
15459 config_commands="$ac_config_commands"
15463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15465 \`$as_me' instantiates files and other configuration actions
15466 from templates according to the current configuration. Unless the files
15467 and actions are specified as TAGs, all are instantiated by default.
15469 Usage: $0 [OPTION]... [TAG]...
15471 -h, --help print this help, then exit
15472 -V, --version print version number and configuration settings, then exit
15473 -q, --quiet, --silent
15474 do not print progress messages
15475 -d, --debug don't remove temporary files
15476 --recheck update $as_me by reconfiguring in the same conditions
15477 --file=FILE[:TEMPLATE]
15478 instantiate the configuration file FILE
15479 --header=FILE[:TEMPLATE]
15480 instantiate the configuration header FILE
15482 Configuration files:
15485 Configuration headers:
15488 Configuration links:
15491 Configuration commands:
15494 Report bugs to the package provider."
15497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15500 configured by $0, generated by GNU Autoconf 2.64,
15501 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15503 Copyright (C) 2009 Free Software Foundation, Inc.
15504 This config.status script is free software; the Free Software Foundation
15505 gives unlimited permission to copy, distribute and modify it."
15511 test -n "\$AWK" || AWK=awk
15514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15515 # The default lists apply if the user does not specify any file.
15521 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15522 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15533 # Handling of the options.
15534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15536 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15537 $as_echo "$ac_cs_version"; exit ;;
15538 --debug | --debu | --deb | --de | --d | -d )
15540 --file | --fil | --fi | --f )
15543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15545 as_fn_append CONFIG_FILES " '$ac_optarg'"
15546 ac_need_defaults=false;;
15547 --header | --heade | --head | --hea )
15550 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15552 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15553 ac_need_defaults=false;;
15555 # Conflict between --help and --header
15556 as_fn_error "ambiguous option: \`$1'
15557 Try \`$0 --help' for more information.";;
15558 --help | --hel | -h )
15559 $as_echo "$ac_cs_usage"; exit ;;
15560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15561 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15564 # This is an error.
15565 -*) as_fn_error "unrecognized option: \`$1'
15566 Try \`$0 --help' for more information." ;;
15568 *) as_fn_append ac_config_targets " $1"
15569 ac_need_defaults=false ;;
15575 ac_configure_extra_args=
15577 if $ac_cs_silent; then
15579 ac_configure_extra_args="$ac_configure_extra_args --silent"
15583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15584 if \$ac_cs_recheck; then
15585 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15587 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15588 CONFIG_SHELL='$SHELL'
15589 export CONFIG_SHELL
15594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15598 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15599 ## Running $as_me. ##
15605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15609 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15615 # Handling of arguments.
15616 for ac_config_target in $ac_config_targets
15618 case $ac_config_target in
15619 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15620 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
15621 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
15622 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
15623 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
15624 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15625 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
15626 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15627 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
15628 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15630 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15635 # If the user did not use the arguments to specify the items to instantiate,
15636 # then the envvar interface is used. Set only those that are not.
15637 # We use the long form for the default assignment because of an extremely
15638 # bizarre bug on SunOS 4.1.3.
15639 if $ac_need_defaults; then
15640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15642 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15646 # Have a temporary directory for convenience. Make it in the build tree
15647 # simply because there is no reason against having it here, and in addition,
15648 # creating and moving files from /tmp can sometimes cause problems.
15649 # Hook for its removal unless debugging.
15650 # Note that there is a small window in which the directory will not be cleaned:
15651 # after its creation but before its name has been assigned to `$tmp'.
15655 trap 'exit_status=$?
15656 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15658 trap 'as_fn_exit 1' 1 2 13 15
15660 # Create a (secure) tmp directory for tmp files.
15663 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15664 test -n "$tmp" && test -d "$tmp"
15667 tmp=./conf$$-$RANDOM
15668 (umask 077 && mkdir "$tmp")
15669 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15671 # Set up the scripts for CONFIG_FILES section.
15672 # No need to generate them if there are no CONFIG_FILES.
15673 # This happens for instance with `./config.status config.h'.
15674 if test -n "$CONFIG_FILES"; then
15676 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15677 ac_cs_awk_getline=:
15678 ac_cs_awk_pipe_init=
15679 ac_cs_awk_read_file='
15680 while ((getline aline < (F[key])) > 0)
15683 ac_cs_awk_pipe_fini=
15685 ac_cs_awk_getline=false
15686 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15687 ac_cs_awk_read_file='
15689 print "cat " F[key] " &&"
15690 '$ac_cs_awk_pipe_init
15691 # The final `:' finishes the AND list.
15692 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15694 ac_cr=`echo X | tr X '\015'`
15695 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15696 # But we know of no other shell where ac_cr would be empty at this
15697 # point, so we can use a bashism as a fallback.
15698 if test "x$ac_cr" = x; then
15699 eval ac_cr=\$\'\\r\'
15701 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15702 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15705 ac_cs_awk_cr=$ac_cr
15708 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15711 # Create commands to substitute file output variables.
15713 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15714 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15715 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15718 } >conf$$files.sh &&
15719 . ./conf$$files.sh ||
15720 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15721 rm -f conf$$files.sh
15724 echo "cat >conf$$subs.awk <<_ACEOF" &&
15725 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15727 } >conf$$subs.sh ||
15728 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15729 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15731 for ac_last_try in false false false false false :; do
15732 . ./conf$$subs.sh ||
15733 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15735 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15736 if test $ac_delim_n = $ac_delim_num; then
15738 elif $ac_last_try; then
15739 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15744 rm -f conf$$subs.sh
15746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15747 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15751 s/^/S["/; s/!.*/"]=/
15761 s/\(.\{148\}\).*/\1/
15763 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15768 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15775 s/\(.\{148\}\).*/\1/
15777 s/["\\]/\\&/g; s/^/"/; s/$/"/
15781 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15786 ' <conf$$subs.awk | sed '
15791 ' >>$CONFIG_STATUS || ac_write_fail=1
15792 rm -f conf$$subs.awk
15793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15795 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15796 for (key in S) S_is_set[key] = 1
15798 \$ac_cs_awk_pipe_init
15802 nfields = split(line, field, "@")
15804 len = length(field[1])
15805 for (i = 2; i < nfields; i++) {
15807 keylen = length(key)
15808 if (S_is_set[key]) {
15810 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15811 len += length(value) + length(field[++i])
15816 if (nfields == 3 && !substed) {
15818 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15819 \$ac_cs_awk_read_file
15825 \$ac_cs_awk_pipe_fini
15828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15829 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15830 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15833 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15834 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15837 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15838 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15839 # trailing colons and then remove the whole line if VPATH becomes empty
15840 # (actually we leave an empty line to preserve line numbers).
15841 if test "x$srcdir" = x.; then
15842 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15843 s/:*\$(srcdir):*/:/
15844 s/:*\${srcdir}:*/:/
15846 s/^\([^=]*=[ ]*\):*/\1/
15852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15853 fi # test -n "$CONFIG_FILES"
15855 # Set up the scripts for CONFIG_HEADERS section.
15856 # No need to generate them if there are no CONFIG_HEADERS.
15857 # This happens for instance with `./config.status Makefile'.
15858 if test -n "$CONFIG_HEADERS"; then
15859 cat >"$tmp/defines.awk" <<\_ACAWK ||
15863 # Transform confdefs.h into an awk script `defines.awk', embedded as
15864 # here-document in config.status, that substitutes the proper values into
15865 # config.h.in to produce config.h.
15867 # Create a delimiter string that does not exist in confdefs.h, to ease
15868 # handling of long lines.
15870 for ac_last_try in false false :; do
15871 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15872 if test -z "$ac_t"; then
15874 elif $ac_last_try; then
15875 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15881 # For the awk script, D is an array of macro values keyed by name,
15882 # likewise P contains macro parameters if any. Preserve backslash
15883 # newline sequences.
15885 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15887 s/.\{148\}/&'"$ac_delim"'/g
15890 s/^[ ]*#[ ]*define[ ][ ]*/ /
15897 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15899 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15903 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15904 D["\1"]=" \3\\\\\\n"\\/p
15906 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15911 s/.\{148\}/&'"$ac_delim"'/g
15916 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15919 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15921 ' <confdefs.h | sed '
15922 s/'"$ac_delim"'/"\\\
15923 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15926 for (key in D) D_is_set[key] = 1
15929 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15931 split(line, arg, " ")
15932 if (arg[1] == "#") {
15936 defundef = substr(arg[1], 2)
15939 split(mac1, mac2, "(") #)
15941 prefix = substr(line, 1, index(line, defundef) - 1)
15942 if (D_is_set[macro]) {
15943 # Preserve the white space surrounding the "#".
15944 print prefix "define", macro P[macro] D[macro]
15947 # Replace #undef with comments. This is necessary, for example,
15948 # in the case of _POSIX_SOURCE, which is predefined and required
15949 # on some systems where configure will not decide to define it.
15950 if (defundef == "undef") {
15951 print "/*", prefix defundef, macro, "*/"
15959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15960 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15961 fi # test -n "$CONFIG_HEADERS"
15964 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15969 :[FHLC]) ac_mode=$ac_tag; continue;;
15971 case $ac_mode$ac_tag in
15973 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15974 :[FH]-) ac_tag=-:-;;
15975 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15992 -) ac_f="$tmp/stdin";;
15993 *) # Look for the file first in the build tree, then in the source tree
15994 # (if the path is not absolute). The absolute path cannot be DOS-style,
15995 # because $ac_f cannot contain `:'.
15999 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16001 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16003 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16004 as_fn_append ac_file_inputs " '$ac_f'"
16007 # Let's still pretend it is `configure' which instantiates (i.e., don't
16008 # use $as_me), people would be surprised to read:
16009 # /* config.h. Generated by config.status. */
16010 configure_input='Generated from '`
16011 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16013 if test x"$ac_file" != x-; then
16014 configure_input="$ac_file. $configure_input"
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16016 $as_echo "$as_me: creating $ac_file" >&6;}
16018 # Neutralize special characters interpreted by sed in replacement strings.
16019 case $configure_input in #(
16020 *\&* | *\|* | *\\* )
16021 ac_sed_conf_input=`$as_echo "$configure_input" |
16022 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16023 *) ac_sed_conf_input=$configure_input;;
16027 *:-:* | *:-) cat >"$tmp/stdin" \
16028 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16033 ac_dir=`$as_dirname -- "$ac_file" ||
16034 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16035 X"$ac_file" : 'X\(//\)[^/]' \| \
16036 X"$ac_file" : 'X\(//\)$' \| \
16037 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16038 $as_echo X"$ac_file" |
16039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16043 /^X\(\/\/\)[^/].*/{
16056 as_dir="$ac_dir"; as_fn_mkdir_p
16060 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16062 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16063 # A ".." for each directory in $ac_dir_suffix.
16064 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16065 case $ac_top_builddir_sub in
16066 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16067 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16070 ac_abs_top_builddir=$ac_pwd
16071 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16072 # for backward compatibility:
16073 ac_top_builddir=$ac_top_build_prefix
16076 .) # We are building in place.
16078 ac_top_srcdir=$ac_top_builddir_sub
16079 ac_abs_top_srcdir=$ac_pwd ;;
16080 [\\/]* | ?:[\\/]* ) # Absolute name.
16081 ac_srcdir=$srcdir$ac_dir_suffix;
16082 ac_top_srcdir=$srcdir
16083 ac_abs_top_srcdir=$srcdir ;;
16084 *) # Relative name.
16085 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16086 ac_top_srcdir=$ac_top_build_prefix$srcdir
16087 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16089 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16099 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16100 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16105 # If the template does not know about datarootdir, expand it.
16106 # FIXME: This hack should be removed a few years after 2.60.
16107 ac_datarootdir_hack=; ac_datarootdir_seen=
16118 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16119 *datarootdir*) ac_datarootdir_seen=yes;;
16120 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16122 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16125 ac_datarootdir_hack='
16126 s&@datadir@&$datadir&g
16127 s&@docdir@&$docdir&g
16128 s&@infodir@&$infodir&g
16129 s&@localedir@&$localedir&g
16130 s&@mandir@&$mandir&g
16131 s&\\\${datarootdir}&$datarootdir&g' ;;
16135 # Neutralize VPATH when `$srcdir' = `.'.
16136 # Shell code in configure.ac might set extrasub.
16137 # FIXME: do we really want to maintain this feature?
16138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16139 ac_sed_extra="$ac_vpsub
16142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16144 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16145 s|@configure_input@|$ac_sed_conf_input|;t t
16146 s&@top_builddir@&$ac_top_builddir_sub&;t t
16147 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16148 s&@srcdir@&$ac_srcdir&;t t
16149 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16150 s&@top_srcdir@&$ac_top_srcdir&;t t
16151 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16152 s&@builddir@&$ac_builddir&;t t
16153 s&@abs_builddir@&$ac_abs_builddir&;t t
16154 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16155 s&@INSTALL@&$ac_INSTALL&;t t
16156 $ac_datarootdir_hack
16158 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16159 if $ac_cs_awk_getline; then
16160 $AWK -f "$tmp/subs.awk"
16162 $AWK -f "$tmp/subs.awk" | $SHELL
16164 || as_fn_error "could not create $ac_file" "$LINENO" 5
16166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16167 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16168 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16170 which seems to be undefined. Please make sure it is defined." >&5
16171 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16172 which seems to be undefined. Please make sure it is defined." >&2;}
16176 -) cat "$tmp/out" && rm -f "$tmp/out";;
16177 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16179 || as_fn_error "could not create $ac_file" "$LINENO" 5
16185 if test x"$ac_file" != x-; then
16187 $as_echo "/* $configure_input */" \
16188 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16189 } >"$tmp/config.h" \
16190 || as_fn_error "could not create $ac_file" "$LINENO" 5
16191 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16193 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16196 mv "$tmp/config.h" "$ac_file" \
16197 || as_fn_error "could not create $ac_file" "$LINENO" 5
16200 $as_echo "/* $configure_input */" \
16201 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16202 || as_fn_error "could not create -" "$LINENO" 5
16210 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16213 # Prefer the file from the source tree if names are identical.
16214 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16215 ac_source=$srcdir/$ac_source
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16219 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16221 if test ! -r "$ac_source"; then
16222 as_fn_error "$ac_source: file not found" "$LINENO" 5
16226 # Try a relative symlink, then a hard link, then a copy.
16228 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16229 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16231 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16232 ln "$ac_source" "$ac_file" 2>/dev/null ||
16233 cp -p "$ac_source" "$ac_file" ||
16234 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16237 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16238 $as_echo "$as_me: executing $ac_file commands" >&6;}
16243 case $ac_file$ac_mode in
16244 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16245 "gcore":F) chmod +x gcore ;;
16247 case x$CONFIG_HEADERS in
16248 xconfig.h:config.in)
16259 ac_clean_files=$ac_clean_files_save
16261 test $ac_write_fail = 0 ||
16262 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16265 # configure is writing to config.log, and then calls config.status.
16266 # config.status does its own redirection, appending to config.log.
16267 # Unfortunately, on DOS this fails, as config.log is still kept open
16268 # by configure, so config.status won't be able to write to it; its
16269 # output is simply discarded. So we exec the FD to /dev/null,
16270 # effectively closing config.log, so it can be properly (re)opened and
16271 # appended to by config.status. When coming back to configure, we
16272 # need to make the FD available again.
16273 if test "$no_create" != yes; then
16275 ac_config_status_args=
16276 test "$silent" = yes &&
16277 ac_config_status_args="$ac_config_status_args --quiet"
16279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16282 # would make configure fail if this is the last instruction.
16283 $ac_cs_success || as_fn_exit $?
16287 # CONFIG_SUBDIRS section.
16289 if test "$no_recursion" != yes; then
16291 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16292 # so they do not pile up.
16293 ac_sub_configure_args=
16295 eval "set x $ac_configure_args"
16299 if test -n "$ac_prev"; then
16304 -cache-file | --cache-file | --cache-fil | --cache-fi \
16305 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16306 ac_prev=cache_file ;;
16307 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16308 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16311 --config-cache | -C)
16313 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16315 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16321 --disable-option-checking)
16325 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16327 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16331 # Always prepend --prefix to ensure using the same prefix
16332 # in subdir configurations.
16333 ac_arg="--prefix=$prefix"
16335 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16337 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16340 if test "$silent" = yes; then
16341 ac_sub_configure_args="--silent $ac_sub_configure_args"
16344 # Always prepend --disable-option-checking to silence warnings, since
16345 # different subdirs can have different --enable and --with options.
16346 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16349 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16351 # Do not complain, so a configure script can configure whichever
16352 # parts of a large source tree are present.
16353 test -d "$srcdir/$ac_dir" || continue
16355 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16356 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16357 $as_echo "$ac_msg" >&6
16358 as_dir="$ac_dir"; as_fn_mkdir_p
16362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16364 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16365 # A ".." for each directory in $ac_dir_suffix.
16366 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16367 case $ac_top_builddir_sub in
16368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16372 ac_abs_top_builddir=$ac_pwd
16373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16374 # for backward compatibility:
16375 ac_top_builddir=$ac_top_build_prefix
16378 .) # We are building in place.
16380 ac_top_srcdir=$ac_top_builddir_sub
16381 ac_abs_top_srcdir=$ac_pwd ;;
16382 [\\/]* | ?:[\\/]* ) # Absolute name.
16383 ac_srcdir=$srcdir$ac_dir_suffix;
16384 ac_top_srcdir=$srcdir
16385 ac_abs_top_srcdir=$srcdir ;;
16386 *) # Relative name.
16387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16388 ac_top_srcdir=$ac_top_build_prefix$srcdir
16389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16396 # Check for guested configure; otherwise get Cygnus style configure.
16397 if test -f "$ac_srcdir/configure.gnu"; then
16398 ac_sub_configure=$ac_srcdir/configure.gnu
16399 elif test -f "$ac_srcdir/configure"; then
16400 ac_sub_configure=$ac_srcdir/configure
16401 elif test -f "$ac_srcdir/configure.in"; then
16402 # This should be Cygnus configure.
16403 ac_sub_configure=$ac_aux_dir/configure
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16406 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16410 # The recursion is here.
16411 if test -n "$ac_sub_configure"; then
16412 # Make the cache file name correct relative to the subdirectory.
16413 case $cache_file in
16414 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16415 *) # Relative name.
16416 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16419 { $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
16420 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16421 # The eval makes quoting arguments work.
16422 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16423 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16424 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16430 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16432 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}