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
665 READLINE_TEXI_INCFLAG
735 MAINTAINER_MODE_FALSE
764 program_transform_name
775 ac_subst_files='host_makefile_frag'
777 enable_option_checking
778 enable_maintainer_mode
781 with_separate_debug_dir
783 with_relocated_sources
785 with_auto_load_safe_path
812 enable_build_warnings
813 enable_gdb_build_warnings
823 ac_precious_vars='build_alias
837 ac_subdirs_all='testsuite
842 # Initialize some variables set by options.
844 ac_init_version=false
845 ac_unrecognized_opts=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
856 program_transform_name=s,x,x,
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE}'
881 infodir='${datarootdir}/info'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
984 eval enable_$ac_useropt=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1148 -site=* | --site=* | --sit=*)
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1204 eval with_$ac_useropt=no ;;
1207 # Obsolete; use --with-x.
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) as_fn_error "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information."
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1257 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1275 # Be sure to have absolute directory names.
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1295 If a cross compiler is detected then cross compile mode will be used." >&2
1296 elif test "x$build_alias" != "x$host_alias"; then
1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304 test "$silent" = yes && exec 6>/dev/null
1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di=`ls -di .` &&
1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error "working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error "pwd does not report name of working directory"
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1347 ac_srcdir_defaulted=no
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1381 \`configure' configures this package to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444 --x-includes=DIR X include files are in DIR
1445 --x-libraries=DIR X library files are in DIR
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 --target=TARGET configure for building compilers for TARGET [HOST]
1454 if test -n "$ac_init_help"; then
1459 --disable-option-checking ignore unrecognized --enable/--with options
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --enable-maintainer-mode enable make rules and dependencies not useful
1463 (and sometimes confusing) to the casual installer
1464 --enable-plugins Enable support for plugins (defaults no)
1465 --disable-largefile omit support for large files
1466 --enable-targets=TARGETS
1467 alternative target configurations
1468 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1469 --disable-gdbcli disable command-line interface (CLI)
1470 --disable-gdbmi disable machine-interface (MI)
1471 --enable-tui enable full-screen terminal user interface (TUI)
1472 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1473 --enable-profiling enable profiling of GDB
1474 --disable-rpath do not hardcode runtime library paths
1475 --enable-libmcheck Try building GDB with -lmcheck if available
1476 --enable-werror treat compile warnings as errors
1477 --enable-build-warnings enable build-time compiler warnings if gcc is used
1478 --enable-gdb-build-warnings
1479 enable GDB specific build-time compiler warnings if
1481 --enable-sim link gdb with simulator
1482 --enable-multi-ice build the multi-ice-gdb-server
1483 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-separate-debug-dir=PATH
1490 look for global separate debug info in this path
1492 --with-gdb-datadir=PATH look for global separate data files in this path
1494 --with-relocated-sources=PATH
1495 automatically relocate this path for source files
1496 --with-auto-load-dir=PATH
1497 directories from which to load auto-loaded scripts
1498 [$debugdir:$datadir/auto-load]
1499 --with-auto-load-safe-path=PATH
1500 directories safe to hold auto-loaded files
1501 [--with-auto-load-dir]
1502 --without-auto-load-safe-path
1503 do not restrict auto-loaded files locations
1504 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1505 --with-curses use the curses library instead of the termcap
1507 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1508 --with-bugurl=URL Direct users to URL to report a bug
1509 --with-zlib include zlib support (auto/yes/no) default=auto
1510 --with-libiconv-prefix=DIR
1511 search for libiconv in DIR/include and DIR/lib
1512 --with-iconv-bin=PATH specify where to find the iconv program
1513 --with-system-readline use installed readline library
1514 --with-jit-reader-dir=PATH
1515 directory to load the JIT readers from
1516 --with-expat include expat support (auto/yes/no)
1517 --with-gnu-ld assume the C compiler uses GNU ld default=no
1518 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1519 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1520 --with-python[=PYTHON] include python support
1521 (auto/yes/no/<python-program>)
1522 --without-included-regex
1523 don't use included regex; this is the default on
1524 systems with version 2 of the GNU C library (use
1525 with caution on other system)
1526 --with-sysroot[=DIR] search for usr/lib et al within DIR
1527 --with-system-gdbinit=PATH
1528 automatically load a system-wide gdbinit file
1529 --with-lzma support lzma compression (auto/yes/no)
1530 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1531 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1532 --with-tcl directory containing tcl configuration (tclConfig.sh)
1533 --with-tk directory containing tk configuration (tkConfig.sh)
1534 --with-x use the X Window System
1536 Some influential environment variables:
1537 CC C compiler command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 LIBS libraries to pass to the linker, e.g. -l<library>
1542 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1545 MAKEINFO Parent configure detects if it is of sufficient version.
1547 Parameters for MAKEINFO.
1548 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1549 the first program found out of: `bison -y', `byacc', `yacc'.
1550 YFLAGS The list of arguments that will be passed by default to $YACC.
1551 This script will default YFLAGS to the empty string to avoid a
1552 default value of `-d' given by some make applications.
1553 XMKMF Path to xmkmf, Makefile generator for X Window System
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1558 Report bugs to the package provider.
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" ||
1567 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575 # A ".." for each directory in $ac_dir_suffix.
1576 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577 case $ac_top_builddir_sub in
1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1588 .) # We are building in place.
1590 ac_top_srcdir=$ac_top_builddir_sub
1591 ac_abs_top_srcdir=$ac_pwd ;;
1592 [\\/]* | ?:[\\/]* ) # Absolute name.
1593 ac_srcdir=$srcdir$ac_dir_suffix;
1594 ac_top_srcdir=$srcdir
1595 ac_abs_top_srcdir=$srcdir ;;
1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598 ac_top_srcdir=$ac_top_build_prefix$srcdir
1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603 cd "$ac_dir" || { ac_status=$?; continue; }
1604 # Check for guested configure.
1605 if test -f "$ac_srcdir/configure.gnu"; then
1607 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608 elif test -f "$ac_srcdir/configure"; then
1610 $SHELL "$ac_srcdir/configure" --help=recursive
1612 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 cd "$ac_pwd" || { ac_status=$?; break; }
1618 test -n "$ac_init_help" && exit $ac_status
1619 if $ac_init_version; then
1622 generated by GNU Autoconf 2.64
1624 Copyright (C) 2009 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1631 ## ------------------------ ##
1632 ## Autoconf initialization. ##
1633 ## ------------------------ ##
1635 # ac_fn_c_try_compile LINENO
1636 # --------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_compile ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 } # ac_fn_c_try_compile
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } >/dev/null && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1713 # the include files in INCLUDES and setting the cache variable VAR
1715 ac_fn_c_check_header_mongrel ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1728 # Is the header compilable?
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1730 $as_echo_n "checking $2 usability... " >&6; }
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1736 if ac_fn_c_try_compile "$LINENO"; then :
1737 ac_header_compiler=yes
1739 ac_header_compiler=no
1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1743 $as_echo "$ac_header_compiler" >&6; }
1745 # Is the header present?
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1747 $as_echo_n "checking $2 presence... " >&6; }
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1752 if ac_fn_c_try_cpp "$LINENO"; then :
1753 ac_header_preproc=yes
1755 ac_header_preproc=no
1757 rm -f conftest.err conftest.$ac_ext
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1759 $as_echo "$ac_header_preproc" >&6; }
1761 # So? What about this header?
1762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1765 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1767 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1771 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1773 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1775 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1777 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785 $as_echo_n "(cached) " >&6
1787 eval "$3=\$ac_header_compiler"
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 } # ac_fn_c_check_header_mongrel
1797 # ac_fn_c_try_run LINENO
1798 # ----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1800 # that executables *can* be run.
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 if { { ac_try="$ac_link"
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>&5
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1815 { { case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_try") 2>&5
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; }; }; then :
1827 $as_echo "$as_me: program exited with status $ac_status" >&5
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1831 ac_retval=$ac_status
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1840 # -------------------------------------------------------
1841 # Tests whether HEADER exists and can be compiled using the include files in
1842 # INCLUDES, setting the cache variable VAR accordingly.
1843 ac_fn_c_check_header_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1849 $as_echo_n "(cached) " >&6
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1856 if ac_fn_c_try_compile "$LINENO"; then :
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 } # ac_fn_c_check_header_compile
1870 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1871 # --------------------------------------------
1872 # Tries to find the compile-time value of EXPR in a program that includes
1873 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1875 ac_fn_c_compute_int ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if test "$cross_compiling" = yes; then
1879 # Depending upon the size, compute the lo and hi bounds.
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1886 static int test_array [1 - 2 * !(($2) >= 0)];
1893 if ac_fn_c_try_compile "$LINENO"; then :
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1902 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910 ac_hi=$ac_mid; break
1912 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1913 if test $ac_lo -le $ac_mid; then
1917 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1928 static int test_array [1 - 2 * !(($2) < 0)];
1935 if ac_fn_c_try_compile "$LINENO"; then :
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1944 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_lo=$ac_mid; break
1954 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1955 if test $ac_mid -le $ac_hi; then
1959 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 # Binary search between lo and hi bounds.
1970 while test "x$ac_lo" != "x$ac_hi"; do
1971 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1978 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1985 if ac_fn_c_try_compile "$LINENO"; then :
1988 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2000 static long int longval () { return $2; }
2001 static unsigned long int ulongval () { return $2; }
2008 FILE *f = fopen ("conftest.val", "w");
2013 long int i = longval ();
2016 fprintf (f, "%ld", i);
2020 unsigned long int i = ulongval ();
2023 fprintf (f, "%lu", i);
2025 /* Do not output a trailing newline, as this causes \r\n confusion
2026 on some platforms. */
2027 return ferror (f) || fclose (f) != 0;
2033 if ac_fn_c_try_run "$LINENO"; then :
2034 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2039 conftest.$ac_objext conftest.beam conftest.$ac_ext
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 } # ac_fn_c_compute_int
2048 # ac_fn_c_try_link LINENO
2049 # -----------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded.
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 rm -f conftest.$ac_objext conftest$ac_exeext
2055 if { { ac_try="$ac_link"
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>conftest.err
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } && {
2071 test -z "$ac_c_werror_flag" ||
2072 test ! -s conftest.err
2073 } && test -s conftest$ac_exeext && {
2074 test "$cross_compiling" = yes ||
2075 $as_test_x conftest$ac_exeext
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2084 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086 # interfere with the next link command; also delete a directory that is
2087 # left behind by Apple's compiler. We do this before executing the actions.
2088 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2092 } # ac_fn_c_try_link
2094 # ac_fn_c_check_func LINENO FUNC VAR
2095 # ----------------------------------
2096 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2097 ac_fn_c_check_func ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2103 $as_echo_n "(cached) " >&6
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2107 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2109 #define $2 innocuous_$2
2111 /* System header to define __stub macros and hopefully few prototypes,
2112 which can conflict with char $2 (); below.
2113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2114 <limits.h> exists even on freestanding compilers. */
2117 # include <limits.h>
2119 # include <assert.h>
2124 /* Override any GCC internal prototype to avoid an error.
2125 Use char because int might match the return type of a GCC
2126 builtin and then its argument prototype would still apply. */
2131 /* The GNU C library defines this for functions which it implements
2132 to always fail with ENOSYS. Some functions are actually named
2133 something starting with __ and the normal name is an alias. */
2134 #if defined __stub_$2 || defined __stub___$2
2146 if ac_fn_c_try_link "$LINENO"; then :
2151 rm -f core conftest.err conftest.$ac_objext \
2152 conftest$ac_exeext conftest.$ac_ext
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159 } # ac_fn_c_check_func
2161 # ac_fn_c_check_decl LINENO SYMBOL VAR
2162 # ------------------------------------
2163 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2164 ac_fn_c_check_decl ()
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 as_decl_name=`echo $2|sed 's/ *(.*//'`
2168 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2170 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2171 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2172 $as_echo_n "(cached) " >&6
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2180 #ifndef $as_decl_name
2182 (void) $as_decl_use;
2184 (void) $as_decl_name;
2192 if ac_fn_c_try_compile "$LINENO"; then :
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2204 } # ac_fn_c_check_decl
2206 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2207 # ----------------------------------------------------
2208 # Tries to find if the field MEMBER exists in type AGGR, after including
2209 # INCLUDES, setting cache variable VAR accordingly.
2210 ac_fn_c_check_member ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2214 $as_echo_n "checking for $2.$3... " >&6; }
2215 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2216 $as_echo_n "(cached) " >&6
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2231 if ac_fn_c_try_compile "$LINENO"; then :
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2241 if (sizeof ac_aggr.$3)
2247 if ac_fn_c_try_compile "$LINENO"; then :
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 } # ac_fn_c_check_member
2263 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2264 # -------------------------------------------
2265 # Tests whether TYPE exists after having included INCLUDES, setting cache
2266 # variable VAR accordingly.
2267 ac_fn_c_check_type ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2273 $as_echo_n "(cached) " >&6
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2301 if ac_fn_c_try_compile "$LINENO"; then :
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 } # ac_fn_c_check_type
2316 cat >config.log <<_ACEOF
2317 This file contains any messages produced by compilers while
2318 running configure, to aid debugging if configure makes a mistake.
2320 It was created by $as_me, which was
2321 generated by GNU Autoconf 2.64. Invocation command line was
2333 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2334 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2335 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2336 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2337 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2339 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2340 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2342 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2343 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2344 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2345 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2346 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2347 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2348 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 test -z "$as_dir" && as_dir=.
2357 $as_echo "PATH: $as_dir"
2373 # Keep a trace of the command line.
2374 # Strip out --no-create and --no-recursion so they do not pile up.
2375 # Strip out --silent because we don't want to record it for future runs.
2376 # Also quote any args containing shell meta-characters.
2377 # Make two passes to allow for proper duplicate-argument suppression.
2381 ac_must_keep_next=false
2387 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2389 | -silent | --silent | --silen | --sile | --sil)
2392 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2397 as_fn_append ac_configure_args1 " '$ac_arg'"
2398 if test $ac_must_keep_next = true; then
2399 ac_must_keep_next=false # Got value, back to normal.
2402 *=* | --config-cache | -C | -disable-* | --disable-* \
2403 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2404 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2405 | -with-* | --with-* | -without-* | --without-* | --x)
2406 case "$ac_configure_args0 " in
2407 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410 -* ) ac_must_keep_next=true ;;
2413 as_fn_append ac_configure_args " '$ac_arg'"
2418 { ac_configure_args0=; unset ac_configure_args0;}
2419 { ac_configure_args1=; unset ac_configure_args1;}
2421 # When interrupted or exit'd, cleanup temporary files, and complete
2422 # config.log. We remove comments because anyway the quotes in there
2423 # would cause problems or look ugly.
2424 # WARNING: Use '\'' to represent an apostrophe within the trap.
2425 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2426 trap 'exit_status=$?
2427 # Save into config.log some information that might help in debugging.
2432 ## ---------------- ##
2433 ## Cache variables. ##
2434 ## ---------------- ##
2437 # The following way of writing the cache mishandles newlines in values,
2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440 eval ac_val=\$$ac_var
2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2448 _ | IFS | as_nl) ;; #(
2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450 *) { eval $ac_var=; unset $ac_var;} ;;
2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456 *${as_nl}ac_space=\ *)
2458 "s/'\''/'\''\\\\'\'''\''/g;
2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2470 ## ----------------- ##
2471 ## Output variables. ##
2472 ## ----------------- ##
2475 for ac_var in $ac_subst_vars
2477 eval ac_val=\$$ac_var
2479 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2481 $as_echo "$ac_var='\''$ac_val'\''"
2485 if test -n "$ac_subst_files"; then
2487 ## ------------------- ##
2488 ## File substitutions. ##
2489 ## ------------------- ##
2492 for ac_var in $ac_subst_files
2494 eval ac_val=\$$ac_var
2496 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 $as_echo "$ac_var='\''$ac_val'\''"
2503 if test -s confdefs.h; then
2513 test "$ac_signal" != 0 &&
2514 $as_echo "$as_me: caught signal $ac_signal"
2515 $as_echo "$as_me: exit $exit_status"
2517 rm -f core *.core core.conftest.* &&
2518 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2521 for ac_signal in 1 2 13 15; do
2522 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2527 rm -f -r conftest* confdefs.h
2529 $as_echo "/* confdefs.h */" > confdefs.h
2531 # Predefined preprocessor variables.
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_NAME "$PACKAGE_NAME"
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_STRING "$PACKAGE_STRING"
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_URL "$PACKAGE_URL"
2558 # Let the site file select an alternate cache file if it wants to.
2559 # Prefer an explicitly selected file to automatically selected ones.
2562 if test -n "$CONFIG_SITE"; then
2563 ac_site_file1=$CONFIG_SITE
2564 elif test "x$prefix" != xNONE; then
2565 ac_site_file1=$prefix/share/config.site
2566 ac_site_file2=$prefix/etc/config.site
2568 ac_site_file1=$ac_default_prefix/share/config.site
2569 ac_site_file2=$ac_default_prefix/etc/config.site
2571 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2573 test "x$ac_site_file" = xNONE && continue
2574 if test -r "$ac_site_file"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2576 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2577 sed 's/^/| /' "$ac_site_file" >&5
2582 if test -r "$cache_file"; then
2583 # Some versions of bash will fail to source /dev/null (special
2584 # files actually), so we avoid doing that.
2585 if test -f "$cache_file"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2587 $as_echo "$as_me: loading cache $cache_file" >&6;}
2589 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2590 *) . "./$cache_file";;
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2595 $as_echo "$as_me: creating cache $cache_file" >&6;}
2599 # Check that the precious variables saved in the cache have kept the same
2601 ac_cache_corrupted=false
2602 for ac_var in $ac_precious_vars; do
2603 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2604 eval ac_new_set=\$ac_env_${ac_var}_set
2605 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2606 eval ac_new_val=\$ac_env_${ac_var}_value
2607 case $ac_old_set,$ac_new_set in
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2610 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2611 ac_cache_corrupted=: ;;
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2614 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2615 ac_cache_corrupted=: ;;
2618 if test "x$ac_old_val" != "x$ac_new_val"; then
2619 # differences in whitespace do not lead to failure.
2620 ac_old_val_w=`echo x $ac_old_val`
2621 ac_new_val_w=`echo x $ac_new_val`
2622 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2624 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2625 ac_cache_corrupted=:
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2628 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2629 eval $ac_var=\$ac_old_val
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2632 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2634 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2637 # Pass precious variables to config.status.
2638 if test "$ac_new_set" = set; then
2640 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2641 *) ac_arg=$ac_var=$ac_new_val ;;
2643 case " $ac_configure_args " in
2644 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2645 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2649 if $ac_cache_corrupted; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2653 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2654 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2656 ## -------------------- ##
2657 ## Main body of script. ##
2658 ## -------------------- ##
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 ac_config_headers="$ac_config_headers config.h:config.in"
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2674 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2675 # Check whether --enable-maintainer-mode was given.
2676 if test "${enable_maintainer_mode+set}" = set; then :
2677 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2679 USE_MAINTAINER_MODE=no
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2683 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2684 if test $USE_MAINTAINER_MODE = yes; then
2685 MAINTAINER_MODE_TRUE=
2686 MAINTAINER_MODE_FALSE='#'
2688 MAINTAINER_MODE_TRUE='#'
2689 MAINTAINER_MODE_FALSE=
2692 MAINT=$MAINTAINER_MODE_TRUE
2696 # Provide more thorough testing by -lmcheck.
2697 # Set it to 'true' for development snapshots, 'false' for releases or
2702 ac_cpp='$CPP $CPPFLAGS'
2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706 if test -n "$ac_tool_prefix"; then
2707 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2708 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2745 if test -z "$ac_cv_prog_CC"; then
2747 # Extract the first word of "gcc", so it can be a program name with args.
2748 set dummy gcc; ac_word=$2
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2752 $as_echo_n "(cached) " >&6
2754 if test -n "$ac_ct_CC"; then
2755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 ac_cv_prog_ac_ct_CC="gcc"
2765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2775 if test -n "$ac_ct_CC"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2777 $as_echo "$ac_ct_CC" >&6; }
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2783 if test "x$ac_ct_CC" = x; then
2786 case $cross_compiling:$ac_tool_warned in
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2790 ac_tool_warned=yes ;;
2798 if test -z "$CC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}cc; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if test "${ac_cv_prog_CC+set}" = set; then :
2805 $as_echo_n "(cached) " >&6
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_CC="${ac_tool_prefix}cc"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 if test -n "$CC"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830 $as_echo "$CC" >&6; }
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2839 if test -z "$CC"; then
2840 # Extract the first word of "cc", so it can be a program name with args.
2841 set dummy cc; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if test "${ac_cv_prog_CC+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
2847 if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2859 ac_prog_rejected=yes
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 if test $ac_prog_rejected = yes; then
2871 # We found a bogon in the path, so make sure we never use it.
2872 set dummy $ac_cv_prog_CC
2874 if test $# != 0; then
2875 # We chose a different compiler from the bogus one.
2876 # However, it has the same basename, so the bogon will be chosen
2877 # first if we set CC to just the basename; use the full file name.
2879 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2895 if test -z "$CC"; then
2896 if test -n "$ac_tool_prefix"; then
2897 for ac_prog in cl.exe
2899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if test "${ac_cv_prog_CC+set}" = set; then :
2904 $as_echo_n "(cached) " >&6
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 if test -n "$CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929 $as_echo "$CC" >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2936 test -n "$CC" && break
2939 if test -z "$CC"; then
2941 for ac_prog in cl.exe
2943 # Extract the first word of "$ac_prog", so it can be a program name with args.
2944 set dummy $ac_prog; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2948 $as_echo_n "(cached) " >&6
2950 if test -n "$ac_ct_CC"; then
2951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960 ac_cv_prog_ac_ct_CC="$ac_prog"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2971 if test -n "$ac_ct_CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2973 $as_echo "$ac_ct_CC" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2980 test -n "$ac_ct_CC" && break
2983 if test "x$ac_ct_CC" = x; then
2986 case $cross_compiling:$ac_tool_warned in
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2990 ac_tool_warned=yes ;;
2999 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3001 as_fn_error "no acceptable C compiler found in \$PATH
3002 See \`config.log' for more details." "$LINENO" 5; }
3004 # Provide some information about the compiler.
3005 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3008 for ac_option in --version -v -V -qversion; do
3009 { { ac_try="$ac_compiler $ac_option >&5"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015 $as_echo "$ac_try_echo"; } >&5
3016 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3018 if test -s conftest.err; then
3020 ... rest of stderr output deleted ...
3021 10q' conftest.err >conftest.er1
3022 cat conftest.er1 >&5
3023 rm -f conftest.er1 conftest.err
3025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3026 test $ac_status = 0; }
3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3040 ac_clean_files_save=$ac_clean_files
3041 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3042 # Try to create an executable without -o first, disregard a.out.
3043 # It will help us diagnose broken compilers, and finding out an intuition
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3046 $as_echo_n "checking for C compiler default output file name... " >&6; }
3047 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3049 # The possible output files:
3050 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3053 for ac_file in $ac_files
3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3057 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3062 if { { ac_try="$ac_link_default"
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068 $as_echo "$ac_try_echo"; } >&5
3069 (eval "$ac_link_default") 2>&5
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }; then :
3073 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3074 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3075 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3076 # so that the user can short-circuit this test for compilers unknown to
3078 for ac_file in $ac_files ''
3080 test -f "$ac_file" || continue
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3085 # We found the default executable, but exeext='' is most
3089 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3091 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3093 # We set ac_cv_exeext here because the later test for it is not
3094 # safe: cross compilers may not add the suffix if given an `-o'
3095 # argument, so we may need to know it at that point already.
3096 # Even if this section looks crufty: it has the advantage of
3103 test "$ac_cv_exeext" = no && ac_cv_exeext=
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3109 $as_echo "$ac_file" >&6; }
3110 if test -z "$ac_file"; then :
3111 $as_echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 { as_fn_set_status 77
3117 as_fn_error "C compiler cannot create executables
3118 See \`config.log' for more details." "$LINENO" 5; }; }
3120 ac_exeext=$ac_cv_exeext
3122 # Check that the compiler produces executables we can run. If not, either
3123 # the compiler is broken, or we cross compile.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3125 $as_echo_n "checking whether the C compiler works... " >&6; }
3126 # If not cross compiling, check that we can run a simple program.
3127 if test "$cross_compiling" != yes; then
3128 if { ac_try='./$ac_file'
3129 { { case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3134 $as_echo "$ac_try_echo"; } >&5
3135 (eval "$ac_try") 2>&5
3137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3138 test $ac_status = 0; }; }; then
3141 if test "$cross_compiling" = maybe; then
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error "cannot run C compiled programs.
3147 If you meant to cross compile, use \`--host'.
3148 See \`config.log' for more details." "$LINENO" 5; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3153 $as_echo "yes" >&6; }
3155 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3156 ac_clean_files=$ac_clean_files_save
3157 # Check that the compiler produces executables we can run. If not, either
3158 # the compiler is broken, or we cross compile.
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3160 $as_echo_n "checking whether we are cross compiling... " >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3162 $as_echo "$cross_compiling" >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3165 $as_echo_n "checking for suffix of executables... " >&6; }
3166 if { { ac_try="$ac_link"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_link") 2>&5
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; then :
3177 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3178 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3179 # work properly (i.e., refer to `conftest.exe'), while it won't with
3181 for ac_file in conftest.exe conftest conftest.*; do
3182 test -f "$ac_file" || continue
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3185 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error "cannot compute suffix of executables: cannot compile and link
3194 See \`config.log' for more details." "$LINENO" 5; }
3196 rm -f conftest$ac_cv_exeext
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3198 $as_echo "$ac_cv_exeext" >&6; }
3200 rm -f conftest.$ac_ext
3201 EXEEXT=$ac_cv_exeext
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3204 $as_echo_n "checking for suffix of object files... " >&6; }
3205 if test "${ac_cv_objext+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3219 rm -f conftest.o conftest.obj
3220 if { { ac_try="$ac_compile"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 $as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_compile") 2>&5
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }; then :
3231 for ac_file in conftest.o conftest.obj conftest.*; do
3232 test -f "$ac_file" || continue;
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3235 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3240 $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error "cannot compute suffix of object files: cannot compile
3246 See \`config.log' for more details." "$LINENO" 5; }
3248 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3251 $as_echo "$ac_cv_objext" >&6; }
3252 OBJEXT=$ac_cv_objext
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3255 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3256 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3273 if ac_fn_c_try_compile "$LINENO"; then :
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3283 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3284 if test $ac_compiler_gnu = yes; then
3289 ac_test_CFLAGS=${CFLAGS+set}
3290 ac_save_CFLAGS=$CFLAGS
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3292 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3293 if test "${ac_cv_prog_cc_g+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3296 ac_save_c_werror_flag=$ac_c_werror_flag
3297 ac_c_werror_flag=yes
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3311 if ac_fn_c_try_compile "$LINENO"; then :
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3326 if ac_fn_c_try_compile "$LINENO"; then :
3329 ac_c_werror_flag=$ac_save_c_werror_flag
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3342 if ac_fn_c_try_compile "$LINENO"; then :
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3353 $as_echo "$ac_cv_prog_cc_g" >&6; }
3354 if test "$ac_test_CFLAGS" = set; then
3355 CFLAGS=$ac_save_CFLAGS
3356 elif test $ac_cv_prog_cc_g = yes; then
3357 if test "$GCC" = yes; then
3363 if test "$GCC" = yes; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3370 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3371 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3374 ac_cv_prog_cc_c89=no
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3380 #include <sys/types.h>
3381 #include <sys/stat.h>
3382 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3383 struct buf { int x; };
3384 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385 static char *e (p, i)
3391 static char *f (char * (*g) (char **, int), char **p, ...)
3396 s = g (p, va_arg (v,int));
3401 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3402 function prototypes and stuff, but not '\xHH' hex character constants.
3403 These don't provoke an error unfortunately, instead are silently treated
3404 as 'x'. The following induces an error, until -std is added to get
3405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3406 array size at least. It's necessary to write '\x00'==0 to get something
3407 that's true only with -std. */
3408 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3410 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3411 inside strings and character constants. */
3413 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3415 int test (int i, double x);
3416 struct s1 {int (*f) (int a);};
3417 struct s2 {int (*f) (double a);};
3418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3429 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3430 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3432 CC="$ac_save_CC $ac_arg"
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_cv_prog_cc_c89=$ac_arg
3436 rm -f core conftest.err conftest.$ac_objext
3437 test "x$ac_cv_prog_cc_c89" != "xno" && break
3439 rm -f conftest.$ac_ext
3444 case "x$ac_cv_prog_cc_c89" in
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3447 $as_echo "none needed" >&6; } ;;
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3450 $as_echo "unsupported" >&6; } ;;
3452 CC="$CC $ac_cv_prog_cc_c89"
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3454 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3456 if test "x$ac_cv_prog_cc_c89" != xno; then :
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3473 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3474 # On Suns, sometimes $CPP names a directory.
3475 if test -n "$CPP" && test -d "$CPP"; then
3478 if test -z "$CPP"; then
3479 if test "${ac_cv_prog_CPP+set}" = set; then :
3480 $as_echo_n "(cached) " >&6
3482 # Double quotes because CPP needs to be expanded
3483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3486 for ac_c_preproc_warn_flag in '' yes
3488 # Use a header file that comes with gcc, so configuring glibc
3489 # with a fresh cross-compiler works.
3490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491 # <limits.h> exists even on freestanding compilers.
3492 # On the NeXT, cc -E runs the code through the compiler's parser,
3493 # not just through cpp. "Syntax error" is here to catch this case.
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3497 # include <limits.h>
3499 # include <assert.h>
3503 if ac_fn_c_try_cpp "$LINENO"; then :
3506 # Broken: fails on valid input.
3509 rm -f conftest.err conftest.$ac_ext
3511 # OK, works on sane cases. Now check whether nonexistent headers
3512 # can be detected and how.
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3515 #include <ac_nonexistent.h>
3517 if ac_fn_c_try_cpp "$LINENO"; then :
3518 # Broken: success on invalid input.
3521 # Passes both tests.
3525 rm -f conftest.err conftest.$ac_ext
3528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529 rm -f conftest.err conftest.$ac_ext
3530 if $ac_preproc_ok; then :
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3543 $as_echo "$CPP" >&6; }
3545 for ac_c_preproc_warn_flag in '' yes
3547 # Use a header file that comes with gcc, so configuring glibc
3548 # with a fresh cross-compiler works.
3549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550 # <limits.h> exists even on freestanding compilers.
3551 # On the NeXT, cc -E runs the code through the compiler's parser,
3552 # not just through cpp. "Syntax error" is here to catch this case.
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3556 # include <limits.h>
3558 # include <assert.h>
3562 if ac_fn_c_try_cpp "$LINENO"; then :
3565 # Broken: fails on valid input.
3568 rm -f conftest.err conftest.$ac_ext
3570 # OK, works on sane cases. Now check whether nonexistent headers
3571 # can be detected and how.
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574 #include <ac_nonexistent.h>
3576 if ac_fn_c_try_cpp "$LINENO"; then :
3577 # Broken: success on invalid input.
3580 # Passes both tests.
3584 rm -f conftest.err conftest.$ac_ext
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.err conftest.$ac_ext
3589 if $ac_preproc_ok; then :
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3595 See \`config.log' for more details." "$LINENO" 5; }
3599 ac_cpp='$CPP $CPPFLAGS'
3600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3606 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3607 if test "${ac_cv_path_GREP+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
3610 if test -z "$GREP"; then
3611 ac_path_GREP_found=false
3612 # Loop through the user's path and test for each of PROGNAME-LIST
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3617 test -z "$as_dir" && as_dir=.
3618 for ac_prog in grep ggrep; do
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3621 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3622 # Check for GNU ac_path_GREP and select it if it is found.
3623 # Check for GNU $ac_path_GREP
3624 case `"$ac_path_GREP" --version 2>&1` in
3626 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3629 $as_echo_n 0123456789 >"conftest.in"
3632 cat "conftest.in" "conftest.in" >"conftest.tmp"
3633 mv "conftest.tmp" "conftest.in"
3634 cp "conftest.in" "conftest.nl"
3635 $as_echo 'GREP' >> "conftest.nl"
3636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3638 as_fn_arith $ac_count + 1 && ac_count=$as_val
3639 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3640 # Best one so far, save it but keep looking for a better one
3641 ac_cv_path_GREP="$ac_path_GREP"
3642 ac_path_GREP_max=$ac_count
3644 # 10*(2^10) chars as input seems more than enough
3645 test $ac_count -gt 10 && break
3647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3650 $ac_path_GREP_found && break 3
3655 if test -z "$ac_cv_path_GREP"; then
3656 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3659 ac_cv_path_GREP=$GREP
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3664 $as_echo "$ac_cv_path_GREP" >&6; }
3665 GREP="$ac_cv_path_GREP"
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3669 $as_echo_n "checking for egrep... " >&6; }
3670 if test "${ac_cv_path_EGREP+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3673 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3674 then ac_cv_path_EGREP="$GREP -E"
3676 if test -z "$EGREP"; then
3677 ac_path_EGREP_found=false
3678 # Loop through the user's path and test for each of PROGNAME-LIST
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3683 test -z "$as_dir" && as_dir=.
3684 for ac_prog in egrep; do
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3687 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3688 # Check for GNU ac_path_EGREP and select it if it is found.
3689 # Check for GNU $ac_path_EGREP
3690 case `"$ac_path_EGREP" --version 2>&1` in
3692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3695 $as_echo_n 0123456789 >"conftest.in"
3698 cat "conftest.in" "conftest.in" >"conftest.tmp"
3699 mv "conftest.tmp" "conftest.in"
3700 cp "conftest.in" "conftest.nl"
3701 $as_echo 'EGREP' >> "conftest.nl"
3702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3704 as_fn_arith $ac_count + 1 && ac_count=$as_val
3705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3706 # Best one so far, save it but keep looking for a better one
3707 ac_cv_path_EGREP="$ac_path_EGREP"
3708 ac_path_EGREP_max=$ac_count
3710 # 10*(2^10) chars as input seems more than enough
3711 test $ac_count -gt 10 && break
3713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3716 $ac_path_EGREP_found && break 3
3721 if test -z "$ac_cv_path_EGREP"; then
3722 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3725 ac_cv_path_EGREP=$EGREP
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3731 $as_echo "$ac_cv_path_EGREP" >&6; }
3732 EGREP="$ac_cv_path_EGREP"
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3736 $as_echo_n "checking for ANSI C header files... " >&6; }
3737 if test "${ac_cv_header_stdc+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3755 if ac_fn_c_try_compile "$LINENO"; then :
3756 ac_cv_header_stdc=yes
3758 ac_cv_header_stdc=no
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 if test $ac_cv_header_stdc = yes; then
3763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3770 $EGREP "memchr" >/dev/null 2>&1; then :
3773 ac_cv_header_stdc=no
3779 if test $ac_cv_header_stdc = yes; then
3780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3787 $EGREP "free" >/dev/null 2>&1; then :
3790 ac_cv_header_stdc=no
3796 if test $ac_cv_header_stdc = yes; then
3797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3798 if test "$cross_compiling" = yes; then :
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3805 #if ((' ' & 0x0FF) == 0x020)
3806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3809 # define ISLOWER(c) \
3810 (('a' <= (c) && (c) <= 'i') \
3811 || ('j' <= (c) && (c) <= 'r') \
3812 || ('s' <= (c) && (c) <= 'z'))
3813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3821 for (i = 0; i < 256; i++)
3822 if (XOR (islower (i), ISLOWER (i))
3823 || toupper (i) != TOUPPER (i))
3828 if ac_fn_c_try_run "$LINENO"; then :
3831 ac_cv_header_stdc=no
3833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3834 conftest.$ac_objext conftest.beam conftest.$ac_ext
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3840 $as_echo "$ac_cv_header_stdc" >&6; }
3841 if test $ac_cv_header_stdc = yes; then
3843 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3847 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3848 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3849 inttypes.h stdint.h unistd.h
3851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3852 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3854 eval as_val=\$$as_ac_Header
3855 if test "x$as_val" = x""yes; then :
3856 cat >>confdefs.h <<_ACEOF
3857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3866 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3867 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3874 if test "$MINIX" = yes; then
3876 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3879 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3882 $as_echo "#define _MINIX 1" >>confdefs.h
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3888 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3889 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3890 $as_echo_n "(cached) " >&6
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3895 # define __EXTENSIONS__ 1
3896 $ac_includes_default
3905 if ac_fn_c_try_compile "$LINENO"; then :
3906 ac_cv_safe_to_define___extensions__=yes
3908 ac_cv_safe_to_define___extensions__=no
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3913 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3914 test $ac_cv_safe_to_define___extensions__ = yes &&
3915 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3917 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3919 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3921 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3923 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3927 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3928 for ac_t in install-sh install.sh shtool; do
3929 if test -f "$ac_dir/$ac_t"; then
3931 ac_install_sh="$ac_aux_dir/$ac_t -c"
3936 if test -z "$ac_aux_dir"; then
3937 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3940 # These three variables are undocumented and unsupported,
3941 # and are intended to be withdrawn in a future Autoconf release.
3942 # They can cause serious problems if a builder's source tree is in a directory
3943 # whose full name contains unusual characters.
3944 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3945 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3946 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3949 # Make sure we can run config.sub.
3950 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3951 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3954 $as_echo_n "checking build system type... " >&6; }
3955 if test "${ac_cv_build+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
3958 ac_build_alias=$build_alias
3959 test "x$ac_build_alias" = x &&
3960 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3961 test "x$ac_build_alias" = x &&
3962 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3963 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3964 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3968 $as_echo "$ac_cv_build" >&6; }
3969 case $ac_cv_build in
3971 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3974 ac_save_IFS=$IFS; IFS='-'
3980 # Remember, the first character of IFS is used to create $*,
3981 # except with old shells:
3984 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3988 $as_echo_n "checking host system type... " >&6; }
3989 if test "${ac_cv_host+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3992 if test "x$host_alias" = x; then
3993 ac_cv_host=$ac_cv_build
3995 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3996 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4001 $as_echo "$ac_cv_host" >&6; }
4004 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4007 ac_save_IFS=$IFS; IFS='-'
4013 # Remember, the first character of IFS is used to create $*,
4014 # except with old shells:
4017 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4021 $as_echo_n "checking target system type... " >&6; }
4022 if test "${ac_cv_target+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4025 if test "x$target_alias" = x; then
4026 ac_cv_target=$ac_cv_host
4028 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4029 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4034 $as_echo "$ac_cv_target" >&6; }
4035 case $ac_cv_target in
4037 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4039 target=$ac_cv_target
4040 ac_save_IFS=$IFS; IFS='-'
4046 # Remember, the first character of IFS is used to create $*,
4047 # except with old shells:
4050 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4053 # The aliases save the names the user supplied, while $host etc.
4054 # will get canonicalized.
4055 test -n "$target_alias" &&
4056 test "$program_prefix$program_suffix$program_transform_name" = \
4058 program_prefix=${target_alias}-
4060 # The tests for host and target for $enable_largefile require
4065 # As the $enable_largefile decision depends on --enable-plugins we must set it
4066 # even in directories otherwise not depending on the $plugins option.
4069 # Check whether --enable-plugins was given.
4070 if test "${enable_plugins+set}" = set; then :
4071 enableval=$enable_plugins; case "${enableval}" in
4072 yes | "") plugins=yes ;;
4083 sparc-*-solaris*|i[3-7]86-*-solaris*)
4084 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4085 # are mutually exclusive; and without procfs support, the bfd/ elf module
4086 # cannot provide certain routines such as elfcore_write_prpsinfo
4087 # or elfcore_write_prstatus. So unless the user explicitly requested
4088 # large-file support through the --enable-largefile switch, disable
4089 # large-file support in favor of procfs support.
4090 test "${target}" = "${host}" -a "x$plugins" = xno \
4091 && : ${enable_largefile="no"}
4095 # Check whether --enable-largefile was given.
4096 if test "${enable_largefile+set}" = set; then :
4097 enableval=$enable_largefile;
4100 if test "$enable_largefile" != no; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4103 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4104 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4107 ac_cv_sys_largefile_CC=no
4108 if test "$GCC" != yes; then
4111 # IRIX 6.2 and later do not support large files by default,
4112 # so use the C compiler's -n32 option if that helps.
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #include <sys/types.h>
4116 /* Check that off_t can represent 2**63 - 1 correctly.
4117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4118 since some C++ compilers masquerading as C compilers
4119 incorrectly reject 9223372036854775807. */
4120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4122 && LARGE_OFF_T % 2147483647 == 1)
4132 if ac_fn_c_try_compile "$LINENO"; then :
4135 rm -f core conftest.err conftest.$ac_objext
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_sys_largefile_CC=' -n32'; break
4140 rm -f core conftest.err conftest.$ac_objext
4144 rm -f conftest.$ac_ext
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4148 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4149 if test "$ac_cv_sys_largefile_CC" != no; then
4150 CC=$CC$ac_cv_sys_largefile_CC
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4154 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4155 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #include <sys/types.h>
4162 /* Check that off_t can represent 2**63 - 1 correctly.
4163 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4164 since some C++ compilers masquerading as C compilers
4165 incorrectly reject 9223372036854775807. */
4166 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4168 && LARGE_OFF_T % 2147483647 == 1)
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_sys_file_offset_bits=no; break
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184 #define _FILE_OFFSET_BITS 64
4185 #include <sys/types.h>
4186 /* Check that off_t can represent 2**63 - 1 correctly.
4187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4188 since some C++ compilers masquerading as C compilers
4189 incorrectly reject 9223372036854775807. */
4190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4192 && LARGE_OFF_T % 2147483647 == 1)
4202 if ac_fn_c_try_compile "$LINENO"; then :
4203 ac_cv_sys_file_offset_bits=64; break
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 ac_cv_sys_file_offset_bits=unknown
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4211 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4212 case $ac_cv_sys_file_offset_bits in #(
4215 cat >>confdefs.h <<_ACEOF
4216 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4221 if test $ac_cv_sys_file_offset_bits = unknown; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4223 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4224 if test "${ac_cv_sys_large_files+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 #include <sys/types.h>
4231 /* Check that off_t can represent 2**63 - 1 correctly.
4232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4233 since some C++ compilers masquerading as C compilers
4234 incorrectly reject 9223372036854775807. */
4235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4237 && LARGE_OFF_T % 2147483647 == 1)
4247 if ac_fn_c_try_compile "$LINENO"; then :
4248 ac_cv_sys_large_files=no; break
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #define _LARGE_FILES 1
4254 #include <sys/types.h>
4255 /* Check that off_t can represent 2**63 - 1 correctly.
4256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4257 since some C++ compilers masquerading as C compilers
4258 incorrectly reject 9223372036854775807. */
4259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4261 && LARGE_OFF_T % 2147483647 == 1)
4271 if ac_fn_c_try_compile "$LINENO"; then :
4272 ac_cv_sys_large_files=1; break
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 ac_cv_sys_large_files=unknown
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4280 $as_echo "$ac_cv_sys_large_files" >&6; }
4281 case $ac_cv_sys_large_files in #(
4284 cat >>confdefs.h <<_ACEOF
4285 #define _LARGE_FILES $ac_cv_sys_large_files
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4298 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4299 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4302 am_cv_prog_cc_stdc=no
4304 # Don't try gcc -ansi; that turns off useful extensions and
4305 # breaks some systems' header files.
4306 # AIX -qlanglvl=ansi
4307 # Ultrix and OSF/1 -std1
4308 # HP-UX 10.20 and later -Ae
4309 # HP-UX older versions -Aa -D_HPUX_SOURCE
4310 # SVR4 -Xc -D__EXTENSIONS__
4311 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4313 CC="$ac_save_CC $ac_arg"
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4318 #include <sys/types.h>
4319 #include <sys/stat.h>
4320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4321 struct buf { int x; };
4322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4323 static char *e (p, i)
4329 static char *f (char * (*g) (char **, int), char **p, ...)
4334 s = g (p, va_arg (v,int));
4338 int test (int i, double x);
4339 struct s1 {int (*f) (int a);};
4340 struct s2 {int (*f) (double a);};
4341 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4349 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356 am_cv_prog_cc_stdc="$ac_arg"; break
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 if test -z "$am_cv_prog_cc_stdc"; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4366 $as_echo "none needed" >&6; }
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4369 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4371 case "x$am_cv_prog_cc_stdc" in
4373 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4378 for ac_dir in .. "$srcdir"/..; do
4379 for ac_t in install-sh install.sh shtool; do
4380 if test -f "$ac_dir/$ac_t"; then
4382 ac_install_sh="$ac_aux_dir/$ac_t -c"
4387 if test -z "$ac_aux_dir"; then
4388 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4391 # These three variables are undocumented and unsupported,
4392 # and are intended to be withdrawn in a future Autoconf release.
4393 # They can cause serious problems if a builder's source tree is in a directory
4394 # whose full name contains unusual characters.
4395 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4396 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4397 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4401 test "$program_prefix" != NONE &&
4402 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4403 # Use a double $ so make ignores it.
4404 test "$program_suffix" != NONE &&
4405 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4406 # Double any \ or $.
4407 # By default was `s,x,x', remove it if useless.
4408 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4409 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4412 # Dependency checking.
4413 rm -rf .tst 2>/dev/null
4414 mkdir .tst 2>/dev/null
4415 if test -d .tst; then
4420 rmdir .tst 2>/dev/null
4422 DEPDIR="${am__leading_dot}deps"
4424 ac_config_commands="$ac_config_commands depdir"
4427 depcc="$CC" am_compiler_list=
4429 am_depcomp=$ac_aux_dir/depcomp
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4431 $as_echo_n "checking dependency style of $depcc... " >&6; }
4432 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4435 if test -f "$am_depcomp"; then
4436 # We make a subdir and do the tests there. Otherwise we can end up
4437 # making bogus files that we don't know about and never remove. For
4438 # instance it was reported that on HP-UX the gcc test will end up
4439 # making a dummy file named `D' -- because `-MD' means `put the output
4442 # Copy depcomp to subdir because otherwise we won't find it if we're
4443 # using a relative directory.
4444 cp "$am_depcomp" conftest.dir
4446 # We will build objects and dependencies in a subdirectory because
4447 # it helps to detect inapplicable dependency modes. For instance
4448 # both Tru64's cc and ICC support -MD to output dependencies as a
4449 # side effect of compilation, but ICC will put the dependencies in
4450 # the current directory while Tru64 will put them in the object
4454 am_cv_CC_dependencies_compiler_type=none
4455 if test "$am_compiler_list" = ""; then
4456 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4458 for depmode in $am_compiler_list; do
4459 if test $depmode = none; then break; fi
4461 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4462 # Setup a source with many dependencies, because some compilers
4463 # like to wrap large dependency lists on column 80 (with \), and
4464 # we should not choose a depcomp mode which is confused by this.
4466 # We need to recreate these files for each test, as the compiler may
4467 # overwrite some of them when testing with obscure command lines.
4468 # This happens at least with the AIX C compiler.
4470 for i in 1 2 3 4 5 6; do
4471 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4472 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4473 # Solaris 8's {/usr,}/bin/sh.
4474 touch sub/conftst$i.h
4476 echo "include sub/conftest.Po" > confmf
4478 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4479 # mode. It turns out that the SunPro C++ compiler does not properly
4480 # handle `-M -o', and we need to detect this.
4481 depcmd="depmode=$depmode \
4482 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4483 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4484 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4485 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4486 if env $depcmd > conftest.err 2>&1 &&
4487 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4488 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4489 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4490 # icc doesn't choke on unknown options, it will just issue warnings
4491 # or remarks (even with -Werror). So we grep stderr for any message
4492 # that says an option was ignored or not supported.
4493 # When given -MP, icc 7.0 and 7.1 complain thusly:
4494 # icc: Command line warning: ignoring option '-M'; no argument required
4495 # The diagnosis changed in icc 8.0:
4496 # icc: Command line remark: option '-MP' not supported
4497 if (grep 'ignoring option' conftest.err ||
4498 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4499 am_cv_CC_dependencies_compiler_type=$depmode
4500 $as_echo "$as_me:$LINENO: success" >&5
4504 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4505 sed -e 's/^/| /' < conftest.err >&5
4511 am_cv_CC_dependencies_compiler_type=none
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4516 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4517 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4518 then as_fn_error "no usable dependency style found" "$LINENO" 5
4519 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4524 # Check for the 'make' the user wants to use.
4527 # Extract the first word of "$ac_prog", so it can be a program name with args.
4528 set dummy $ac_prog; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_prog_MAKE+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4534 if test -n "$MAKE"; then
4535 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_MAKE="$ac_prog"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 MAKE=$ac_cv_prog_MAKE
4555 if test -n "$MAKE"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4557 $as_echo "$MAKE" >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4564 test -n "$MAKE" && break
4568 case "`$MAKE --version 2>&1 | sed 1q`" in
4573 if test "$MAKE_IS_GNU" = yes; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4582 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4584 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4585 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4586 $as_echo_n "(cached) " >&6
4588 cat >conftest.make <<\_ACEOF
4591 @echo '@@@%%%=$(MAKE)=@@@%%%'
4593 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4594 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4596 eval ac_cv_prog_make_${ac_make}_set=yes;;
4598 eval ac_cv_prog_make_${ac_make}_set=no;;
4602 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4604 $as_echo "yes" >&6; }
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4609 SET_MAKE="MAKE=${MAKE-make}"
4613 # Configure gnulib. We need to build gnulib under some other
4614 # directory not "gnulib", to avoid the problem of both GDB and
4615 # GDBserver wanting to build it in the same directory, when building
4616 # in the source dir.
4619 in_build="build-gnulib"
4621 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4622 # so they do not pile up.
4623 ac_sub_configure_args=
4625 eval "set x $ac_configure_args"
4629 if test -n "$ac_prev"; then
4634 -cache-file | --cache-file | --cache-fil | --cache-fi \
4635 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4636 ac_prev=cache_file ;;
4637 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4638 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4641 --config-cache | -C)
4643 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4645 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4647 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4649 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4651 --disable-option-checking)
4655 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4657 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4661 # Always prepend --prefix to ensure using the same prefix
4662 # in subdir configurations.
4663 ac_arg="--prefix=$prefix"
4665 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4667 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4670 if test "$silent" = yes; then
4671 ac_sub_configure_args="--silent $ac_sub_configure_args"
4674 # Always prepend --disable-option-checking to silence warnings, since
4675 # different subdirs can have different --enable and --with options.
4676 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4681 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4682 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4683 $as_echo "$ac_msg" >&6
4684 as_dir="$ac_dir"; as_fn_mkdir_p
4688 ac_srcdir=$srcdir/$in_src ;;
4690 ac_srcdir=../$srcdir/$in_src ;;
4695 ac_sub_configure=$ac_srcdir/configure
4697 # Make the cache file name correct relative to the subdirectory.
4699 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4701 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4704 { $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
4705 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4706 # The eval makes quoting arguments work.
4707 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4708 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4709 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4725 # If we haven't got the data from the intl directory,
4726 # assume NLS is disabled.
4735 if test -f ../intl/config.intl; then
4736 . ../intl/config.intl
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4739 $as_echo_n "checking whether NLS is requested... " >&6; }
4740 if test x"$USE_NLS" != xyes; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4745 $as_echo "yes" >&6; }
4747 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4751 $as_echo_n "checking for catalogs to be installed... " >&6; }
4752 # Look for .po and .gmo files in the source directory.
4755 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4756 # If there aren't any .gmo files the shell will give us the
4757 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4759 case "$cat" in *\**)
4762 # The quadruple backslash is collapsed to a double backslash
4763 # by the backticks, then collapsed again by the double quotes,
4764 # leaving us with one backslash in the sed expression (right
4765 # before the dot that mustn't act as a wildcard).
4766 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4767 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4768 # The user is allowed to set LINGUAS to a list of languages to
4769 # install catalogs for. If it's empty that means "all of them."
4770 if test "x$LINGUAS" = x; then
4771 CATALOGS="$CATALOGS $cat"
4772 XLINGUAS="$XLINGUAS $lang"
4774 case "$LINGUAS" in *$lang*)
4775 CATALOGS="$CATALOGS $cat"
4776 XLINGUAS="$XLINGUAS $lang"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4783 $as_echo "$LINGUAS" >&6; }
4796 localedir='${datadir}/locale'
4799 if test x"$USE_NLS" = xyes; then
4800 CONFIG_ALL="$CONFIG_ALL all-po"
4801 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4802 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4803 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4806 GNULIB=build-gnulib/import
4808 # For Makefile dependencies.
4810 if test x"$STDINT_H" != x; then
4811 GNULIB_STDINT_H=$GNULIB/$STDINT_H
4817 cat >>confdefs.h <<_ACEOF
4818 #define PACKAGE "$PACKAGE"
4823 # We never need to detect it in this sub-configure.
4824 # But preserve it for config.status --recheck.
4828 MAKEINFO_EXTRA_FLAGS=""
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4830 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4831 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4834 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4835 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4836 gdb_cv_have_makeinfo_click=yes
4838 gdb_cv_have_makeinfo_click=no
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4842 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4843 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
4844 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4850 # Check whether --with-separate-debug-dir was given.
4851 if test "${with_separate_debug_dir+set}" = set; then :
4852 withval=$with_separate_debug_dir;
4855 DEBUGDIR=${libdir}/debug
4859 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4860 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4861 ac_define_dir=`eval echo $DEBUGDIR`
4862 ac_define_dir=`eval echo $ac_define_dir`
4864 cat >>confdefs.h <<_ACEOF
4865 #define DEBUGDIR "$ac_define_dir"
4871 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4872 if test "x$prefix" = xNONE; then
4873 test_prefix=/usr/local
4878 test_prefix=$exec_prefix
4881 case ${ac_define_dir} in
4882 "${test_prefix}"|"${test_prefix}/"*|\
4883 '${exec_prefix}'|'${exec_prefix}/'*)
4888 cat >>confdefs.h <<_ACEOF
4889 #define DEBUGDIR_RELOCATABLE $value
4895 # We can't pass paths as command line arguments.
4896 # Mingw32 tries to be clever and will convert the paths for us.
4897 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4898 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4899 # This breaks GDB's relocatable path conversions since paths passed in
4900 # config.h would not get so translated, the path prefixes no longer match.
4902 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4904 ac_define_dir=`eval echo $bindir`
4905 ac_define_dir=`eval echo $ac_define_dir`
4907 cat >>confdefs.h <<_ACEOF
4908 #define BINDIR "$ac_define_dir"
4913 # GDB's datadir relocation
4917 # Check whether --with-gdb-datadir was given.
4918 if test "${with_gdb_datadir+set}" = set; then :
4919 withval=$with_gdb_datadir;
4920 GDB_DATADIR=$withval
4922 GDB_DATADIR=${datadir}/gdb
4926 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4928 ac_define_dir=`eval echo $GDB_DATADIR`
4929 ac_define_dir=`eval echo $ac_define_dir`
4931 cat >>confdefs.h <<_ACEOF
4932 #define GDB_DATADIR "$ac_define_dir"
4938 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4939 if test "x$prefix" = xNONE; then
4940 test_prefix=/usr/local
4945 test_prefix=$exec_prefix
4948 case ${ac_define_dir} in
4949 "${test_prefix}"|"${test_prefix}/"*|\
4950 '${exec_prefix}'|'${exec_prefix}/'*)
4955 cat >>confdefs.h <<_ACEOF
4956 #define GDB_DATADIR_RELOCATABLE $value
4963 # Check whether --with-relocated-sources was given.
4964 if test "${with_relocated_sources+set}" = set; then :
4965 withval=$with_relocated_sources; reloc_srcdir="${withval}"
4967 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4968 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4969 ac_define_dir=`eval echo $reloc_srcdir`
4970 ac_define_dir=`eval echo $ac_define_dir`
4972 cat >>confdefs.h <<_ACEOF
4973 #define RELOC_SRCDIR "$ac_define_dir"
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
4982 $as_echo_n "checking for default auto-load directory... " >&6; }
4984 # Check whether --with-auto-load-dir was given.
4985 if test "${with_auto_load_dir+set}" = set; then :
4986 withval=$with_auto_load_dir;
4988 with_auto_load_dir='$debugdir:$datadir/auto-load'
4991 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
4993 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4995 ac_define_dir=`eval echo $escape_dir`
4996 ac_define_dir=`eval echo $ac_define_dir`
4998 cat >>confdefs.h <<_ACEOF
4999 #define AUTO_LOAD_DIR "$ac_define_dir"
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5004 $as_echo "$with_auto_load_dir" >&6; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5007 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5009 # Check whether --with-auto-load-safe-path was given.
5010 if test "${with_auto_load_safe_path+set}" = set; then :
5011 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5012 with_auto_load_safe_path="/"
5015 with_auto_load_safe_path="$with_auto_load_dir"
5018 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5020 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5022 ac_define_dir=`eval echo $escape_dir`
5023 ac_define_dir=`eval echo $ac_define_dir`
5025 cat >>confdefs.h <<_ACEOF
5026 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5031 $as_echo "$with_auto_load_safe_path" >&6; }
5035 subdirs="$subdirs testsuite"
5038 # Check whether to support alternative target configurations
5039 # Check whether --enable-targets was given.
5040 if test "${enable_targets+set}" = set; then :
5041 enableval=$enable_targets; case "${enableval}" in
5042 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5044 no) enable_targets= ;;
5045 *) enable_targets=$enableval ;;
5050 # Check whether to enable 64-bit support on 32-bit hosts
5051 # Check whether --enable-64-bit-bfd was given.
5052 if test "${enable_64_bit_bfd+set}" = set; then :
5053 enableval=$enable_64_bit_bfd; case "${enableval}" in
5056 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5062 # Provide defaults for some variables set by the per-host and per-target
5064 gdb_host_obs=posix-hdep.o
5066 if test "${target}" = "${host}"; then
5072 . $srcdir/configure.host
5074 # Accumulate some settings from configure.tgt over all enabled targets
5079 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5081 if test "$targ_alias" = "all"; then
5084 # Canonicalize the secondary target names.
5085 result=`$ac_config_sub $targ_alias 2>/dev/null`
5086 if test -n "$result"; then
5092 . ${srcdir}/configure.tgt
5094 if test -z "${gdb_target_obs}"; then :
5095 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5098 # Target-specific object files
5099 for i in ${gdb_target_obs}; do
5100 case " $TARGET_OBS " in
5103 TARGET_OBS="$TARGET_OBS ${i}"
5108 # Check whether this target needs 64-bit CORE_ADDR
5109 if test x${want64} = xfalse; then
5110 . ${srcdir}/../bfd/config.bfd
5115 if test x${all_targets} = xtrue; then
5117 # We want all 64-bit targets if we either:
5118 # - run on a 64-bit host or
5119 # - already require 64-bit support for some other target or
5120 # - the --enable-64-bit-bfd option was supplied
5121 # Otherwise we only support all 32-bit targets.
5123 # NOTE: This test must be in sync with the corresponding
5126 if test x${want64} = xfalse; then
5127 # The cast to long int works around a bug in the HP C Compiler
5128 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5129 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5130 # This bug is HP SR number 8606223364.
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5132 $as_echo_n "checking size of long... " >&6; }
5133 if test "${ac_cv_sizeof_long+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5136 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5139 if test "$ac_cv_type_long" = yes; then
5140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5142 { as_fn_set_status 77
5143 as_fn_error "cannot compute sizeof (long)
5144 See \`config.log' for more details." "$LINENO" 5; }; }
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5152 $as_echo "$ac_cv_sizeof_long" >&6; }
5156 cat >>confdefs.h <<_ACEOF
5157 #define SIZEOF_LONG $ac_cv_sizeof_long
5161 if test "x${ac_cv_sizeof_long}" = "x8"; then
5165 if test x${want64} = xtrue; then
5166 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5168 TARGET_OBS='$(ALL_TARGET_OBS)'
5174 # For other settings, only the main target counts.
5178 targ=$target; . ${srcdir}/configure.tgt
5180 # Fetch the default architecture and default target vector from BFD.
5181 targ=$target; . $srcdir/../bfd/config.bfd
5183 # We only want the first architecture, so strip off the others if
5184 # there is more than one.
5185 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5187 if test "x$targ_archs" != x; then
5189 cat >>confdefs.h <<_ACEOF
5190 #define DEFAULT_BFD_ARCH $targ_archs
5194 if test "x$targ_defvec" != x; then
5196 cat >>confdefs.h <<_ACEOF
5197 #define DEFAULT_BFD_VEC $targ_defvec
5202 # The CLI cannot be disabled yet, but may be in the future.
5205 # Check whether --enable-gdbcli was given.
5206 if test "${enable_gdbcli+set}" = set; then :
5207 enableval=$enable_gdbcli; case $enableval in
5211 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5213 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5219 if test x"$enable_gdbcli" = xyes; then
5220 if test -d $srcdir/cli; then
5221 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5222 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5223 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5224 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5229 # Check whether --enable-gdbmi was given.
5230 if test "${enable_gdbmi+set}" = set; then :
5231 enableval=$enable_gdbmi; case $enableval in
5235 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5241 if test x"$enable_gdbmi" = xyes; then
5242 if test -d $srcdir/mi; then
5243 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5244 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5245 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5246 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5251 # Check whether --enable-tui was given.
5252 if test "${enable_tui+set}" = set; then :
5253 enableval=$enable_tui; case $enableval in
5257 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5265 # Check whether --enable-gdbtk was given.
5266 if test "${enable_gdbtk+set}" = set; then :
5267 enableval=$enable_gdbtk; case $enableval in
5271 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5274 if test -d $srcdir/gdbtk; then
5281 # We unconditionally disable gdbtk tests on selected platforms.
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5285 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5289 # Libunwind support for ia64.
5292 # Check whether --with-libunwind-ia64 was given.
5293 if test "${with_libunwind_ia64+set}" = set; then :
5294 withval=$with_libunwind_ia64;
5296 with_libunwind_ia64=auto
5300 # Backward compatibility option.
5301 if test "${with_libunwind+set}" = set; then
5302 if test x"$with_libunwind_ia64" != xauto; then
5303 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5306 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5307 with_libunwind_ia64="$with_libunwind"
5310 case "$with_libunwind_ia64" in
5314 for ac_header in libunwind-ia64.h
5316 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5317 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5318 cat >>confdefs.h <<_ACEOF
5319 #define HAVE_LIBUNWIND_IA64_H 1
5326 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5329 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5333 if test x"$with_libunwind_ia64" = xyes; then
5334 for ac_header in libunwind-ia64.h
5336 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5337 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5338 cat >>confdefs.h <<_ACEOF
5339 #define HAVE_LIBUNWIND_IA64_H 1
5346 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5347 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5349 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5350 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5351 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5356 # Check whether --with-curses was given.
5357 if test "${with_curses+set}" = set; then :
5358 withval=$with_curses; opt_curses=$withval
5363 if test "$opt_curses" = "yes"; then
5367 # Profiling support.
5368 # Check whether --enable-profiling was given.
5369 if test "${enable_profiling+set}" = set; then :
5370 enableval=$enable_profiling; case $enableval in
5374 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5381 for ac_func in monstartup _mcleanup
5383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5385 eval as_val=\$$as_ac_var
5386 if test "x$as_val" = x""yes; then :
5387 cat >>confdefs.h <<_ACEOF
5388 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5395 $as_echo_n "checking for _etext... " >&6; }
5396 if test "${ac_cv_var__etext+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5412 if ac_fn_c_try_link "$LINENO"; then :
5413 ac_cv_var__etext=yes
5417 rm -f core conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5421 $as_echo "$ac_cv_var__etext" >&6; }
5422 if test $ac_cv_var__etext = yes; then
5424 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5428 $as_echo_n "checking for etext... " >&6; }
5429 if test "${ac_cv_var_etext+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5445 if ac_fn_c_try_link "$LINENO"; then :
5450 rm -f core conftest.err conftest.$ac_objext \
5451 conftest$ac_exeext conftest.$ac_ext
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5454 $as_echo "$ac_cv_var_etext" >&6; }
5455 if test $ac_cv_var_etext = yes; then
5457 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5460 if test "$enable_profiling" = yes ; then
5461 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5462 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5465 OLD_CFLAGS="$CFLAGS"
5466 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5469 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5470 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 ac_cv_cc_supports_pg=yes
5487 ac_cv_cc_supports_pg=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5492 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5494 if test $ac_cv_cc_supports_pg = no; then
5495 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5498 CFLAGS="$OLD_CFLAGS"
5503 # Check whether --with-pkgversion was given.
5504 if test "${with_pkgversion+set}" = set; then :
5505 withval=$with_pkgversion; case "$withval" in
5506 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5508 *) PKGVERSION="($withval) " ;;
5519 # Check whether --with-bugurl was given.
5520 if test "${with_bugurl+set}" = set; then :
5521 withval=$with_bugurl; case "$withval" in
5522 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5525 *) BUGURL="$withval"
5529 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5539 REPORT_BUGS_TO="<$BUGURL>"
5540 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5547 cat >>confdefs.h <<_ACEOF
5548 #define PKGVERSION "$PKGVERSION"
5552 cat >>confdefs.h <<_ACEOF
5553 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5557 # --------------------- #
5558 # Checks for programs. #
5559 # --------------------- #
5561 for ac_prog in gawk mawk nawk awk
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if test "${ac_cv_prog_AWK+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5570 if test -n "$AWK"; then
5571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580 ac_cv_prog_AWK="$ac_prog"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 if test -n "$AWK"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5593 $as_echo "$AWK" >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5600 test -n "$AWK" && break
5603 # Find a good install program. We prefer a C program (faster),
5604 # so one script is as good as another. But avoid the broken or
5605 # incompatible versions:
5606 # SysV /etc/install, /usr/sbin/install
5607 # SunOS /usr/etc/install
5608 # IRIX /sbin/install
5610 # AmigaOS /C/install, which installs bootblocks on floppy discs
5611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5614 # OS/2's system install, which has a completely different semantic
5615 # ./install, which can be erroneously created by make from ./install.sh.
5616 # Reject install programs that cannot install multiple files.
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5618 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5619 if test -z "$INSTALL"; then
5620 if test "${ac_cv_path_install+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 test -z "$as_dir" && as_dir=.
5628 # Account for people who put trailing slashes in PATH elements.
5629 case $as_dir/ in #((
5630 ./ | .// | /[cC]/* | \
5631 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5632 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5635 # OSF1 and SCO ODT 3.0 have their own names for install.
5636 # Don't use installbsd from OSF since it installs stuff as root
5638 for ac_prog in ginstall scoinst install; do
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5641 if test $ac_prog = install &&
5642 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5643 # AIX install. It has an incompatible calling convention.
5645 elif test $ac_prog = install &&
5646 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5647 # program-specific install script used by HP pwplus--don't use.
5650 rm -rf conftest.one conftest.two conftest.dir
5651 echo one > conftest.one
5652 echo two > conftest.two
5654 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5655 test -s conftest.one && test -s conftest.two &&
5656 test -s conftest.dir/conftest.one &&
5657 test -s conftest.dir/conftest.two
5659 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5672 rm -rf conftest.one conftest.two conftest.dir
5675 if test "${ac_cv_path_install+set}" = set; then
5676 INSTALL=$ac_cv_path_install
5678 # As a last resort, use the slow shell script. Don't cache a
5679 # value for INSTALL within a source directory, because that will
5680 # break other packages using the cache if that directory is
5681 # removed, or if the value is a relative name.
5682 INSTALL=$ac_install_sh
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5686 $as_echo "$INSTALL" >&6; }
5688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5689 # It thinks the first close brace ends the variable substitution.
5690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5692 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5694 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5697 $as_echo_n "checking whether ln -s works... " >&6; }
5699 if test "$LN_S" = "ln -s"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701 $as_echo "yes" >&6; }
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5704 $as_echo "no, using $LN_S" >&6; }
5707 if test -n "$ac_tool_prefix"; then
5708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5715 if test -n "$RANLIB"; then
5716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 RANLIB=$ac_cv_prog_RANLIB
5736 if test -n "$RANLIB"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5738 $as_echo "$RANLIB" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5746 if test -z "$ac_cv_prog_RANLIB"; then
5747 ac_ct_RANLIB=$RANLIB
5748 # Extract the first word of "ranlib", so it can be a program name with args.
5749 set dummy ranlib; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5755 if test -n "$ac_ct_RANLIB"; then
5756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_prog_ac_ct_RANLIB="ranlib"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5776 if test -n "$ac_ct_RANLIB"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5778 $as_echo "$ac_ct_RANLIB" >&6; }
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5784 if test "x$ac_ct_RANLIB" = x; then
5787 case $cross_compiling:$ac_tool_warned in
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791 ac_tool_warned=yes ;;
5793 RANLIB=$ac_ct_RANLIB
5796 RANLIB="$ac_cv_prog_RANLIB"
5799 for ac_prog in 'bison -y' byacc
5801 # Extract the first word of "$ac_prog", so it can be a program name with args.
5802 set dummy $ac_prog; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if test "${ac_cv_prog_YACC+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5808 if test -n "$YACC"; then
5809 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_prog_YACC="$ac_prog"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 YACC=$ac_cv_prog_YACC
5829 if test -n "$YACC"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5831 $as_echo "$YACC" >&6; }
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5838 test -n "$YACC" && break
5840 test -n "$YACC" || YACC="yacc"
5843 if test -n "$ac_tool_prefix"; then
5844 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}ar; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if test "${ac_cv_prog_AR+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5851 if test -n "$AR"; then
5852 ac_cv_prog_AR="$AR" # Let the user override the test.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_prog_AR="${ac_tool_prefix}ar"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 if test -n "$AR"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5874 $as_echo "$AR" >&6; }
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5882 if test -z "$ac_cv_prog_AR"; then
5884 # Extract the first word of "ar", so it can be a program name with args.
5885 set dummy ar; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5891 if test -n "$ac_ct_AR"; then
5892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_prog_ac_ct_AR="ar"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5912 if test -n "$ac_ct_AR"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5914 $as_echo "$ac_ct_AR" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5920 if test "x$ac_ct_AR" = x; then
5923 case $cross_compiling:$ac_tool_warned in
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927 ac_tool_warned=yes ;;
5935 if test -n "$ac_tool_prefix"; then
5936 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5937 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939 $as_echo_n "checking for $ac_word... " >&6; }
5940 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5943 if test -n "$DLLTOOL"; then
5944 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 DLLTOOL=$ac_cv_prog_DLLTOOL
5964 if test -n "$DLLTOOL"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5966 $as_echo "$DLLTOOL" >&6; }
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5974 if test -z "$ac_cv_prog_DLLTOOL"; then
5975 ac_ct_DLLTOOL=$DLLTOOL
5976 # Extract the first word of "dlltool", so it can be a program name with args.
5977 set dummy dlltool; ac_word=$2
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 $as_echo_n "checking for $ac_word... " >&6; }
5980 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5983 if test -n "$ac_ct_DLLTOOL"; then
5984 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6004 if test -n "$ac_ct_DLLTOOL"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6006 $as_echo "$ac_ct_DLLTOOL" >&6; }
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6012 if test "x$ac_ct_DLLTOOL" = x; then
6015 case $cross_compiling:$ac_tool_warned in
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6019 ac_tool_warned=yes ;;
6021 DLLTOOL=$ac_ct_DLLTOOL
6024 DLLTOOL="$ac_cv_prog_DLLTOOL"
6027 if test -n "$ac_tool_prefix"; then
6028 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6029 set dummy ${ac_tool_prefix}windres; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6033 $as_echo_n "(cached) " >&6
6035 if test -n "$WINDRES"; then
6036 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 WINDRES=$ac_cv_prog_WINDRES
6056 if test -n "$WINDRES"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6058 $as_echo "$WINDRES" >&6; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6066 if test -z "$ac_cv_prog_WINDRES"; then
6067 ac_ct_WINDRES=$WINDRES
6068 # Extract the first word of "windres", so it can be a program name with args.
6069 set dummy windres; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6075 if test -n "$ac_ct_WINDRES"; then
6076 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_ac_ct_WINDRES="windres"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6096 if test -n "$ac_ct_WINDRES"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6098 $as_echo "$ac_ct_WINDRES" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6104 if test "x$ac_ct_WINDRES" = x; then
6107 case $cross_compiling:$ac_tool_warned in
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned=yes ;;
6113 WINDRES=$ac_ct_WINDRES
6116 WINDRES="$ac_cv_prog_WINDRES"
6120 # Needed for GNU/Hurd.
6121 if test -n "$ac_tool_prefix"; then
6122 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6123 set dummy ${ac_tool_prefix}mig; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if test "${ac_cv_prog_MIG+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6129 if test -n "$MIG"; then
6130 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 if test -n "$MIG"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6152 $as_echo "$MIG" >&6; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6160 if test -z "$ac_cv_prog_MIG"; then
6162 # Extract the first word of "mig", so it can be a program name with args.
6163 set dummy mig; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6169 if test -n "$ac_ct_MIG"; then
6170 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_ac_ct_MIG="mig"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6190 if test -n "$ac_ct_MIG"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6192 $as_echo "$ac_ct_MIG" >&6; }
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6198 if test "x$ac_ct_MIG" = x; then
6201 case $cross_compiling:$ac_tool_warned in
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6205 ac_tool_warned=yes ;;
6210 MIG="$ac_cv_prog_MIG"
6214 # ---------------------- #
6215 # Checks for libraries. #
6216 # ---------------------- #
6218 # We might need to link with -lm; most simulators need it.
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6220 $as_echo_n "checking for main in -lm... " >&6; }
6221 if test "${ac_cv_lib_m_main+set}" = set; then :
6222 $as_echo_n "(cached) " >&6
6224 ac_check_lib_save_LIBS=$LIBS
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6238 if ac_fn_c_try_link "$LINENO"; then :
6239 ac_cv_lib_m_main=yes
6243 rm -f core conftest.err conftest.$ac_objext \
6244 conftest$ac_exeext conftest.$ac_ext
6245 LIBS=$ac_check_lib_save_LIBS
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6248 $as_echo "$ac_cv_lib_m_main" >&6; }
6249 if test "x$ac_cv_lib_m_main" = x""yes; then :
6250 cat >>confdefs.h <<_ACEOF
6259 # We need to link with -lw to get `wctype' on Solaris before Solaris
6260 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6261 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6262 # is known to have this problem). Therefore we avoid libw if we can.
6263 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6264 if test "x$ac_cv_func_wctype" = x""yes; then :
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6268 $as_echo_n "checking for wctype in -lw... " >&6; }
6269 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6272 ac_check_lib_save_LIBS=$LIBS
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6277 /* Override any GCC internal prototype to avoid an error.
6278 Use char because int might match the return type of a GCC
6279 builtin and then its argument prototype would still apply. */
6292 if ac_fn_c_try_link "$LINENO"; then :
6293 ac_cv_lib_w_wctype=yes
6295 ac_cv_lib_w_wctype=no
6297 rm -f core conftest.err conftest.$ac_objext \
6298 conftest$ac_exeext conftest.$ac_ext
6299 LIBS=$ac_check_lib_save_LIBS
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6302 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6303 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6304 cat >>confdefs.h <<_ACEOF
6315 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6317 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6318 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6321 ac_func_search_save_LIBS=$LIBS
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6325 /* Override any GCC internal prototype to avoid an error.
6326 Use char because int might match the return type of a GCC
6327 builtin and then its argument prototype would still apply. */
6331 char gethostbyname ();
6335 return gethostbyname ();
6340 for ac_lib in '' nsl; do
6341 if test -z "$ac_lib"; then
6342 ac_res="none required"
6345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6347 if ac_fn_c_try_link "$LINENO"; then :
6348 ac_cv_search_gethostbyname=$ac_res
6350 rm -f core conftest.err conftest.$ac_objext \
6352 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6356 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6359 ac_cv_search_gethostbyname=no
6362 LIBS=$ac_func_search_save_LIBS
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6365 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6366 ac_res=$ac_cv_search_gethostbyname
6367 if test "$ac_res" != no; then :
6368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6373 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6375 $as_echo_n "checking for library containing socketpair... " >&6; }
6376 if test "${ac_cv_search_socketpair+set}" = set; then :
6377 $as_echo_n "(cached) " >&6
6379 ac_func_search_save_LIBS=$LIBS
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6383 /* Override any GCC internal prototype to avoid an error.
6384 Use char because int might match the return type of a GCC
6385 builtin and then its argument prototype would still apply. */
6393 return socketpair ();
6398 for ac_lib in '' socket; do
6399 if test -z "$ac_lib"; then
6400 ac_res="none required"
6403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6405 if ac_fn_c_try_link "$LINENO"; then :
6406 ac_cv_search_socketpair=$ac_res
6408 rm -f core conftest.err conftest.$ac_objext \
6410 if test "${ac_cv_search_socketpair+set}" = set; then :
6414 if test "${ac_cv_search_socketpair+set}" = set; then :
6417 ac_cv_search_socketpair=no
6420 LIBS=$ac_func_search_save_LIBS
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6423 $as_echo "$ac_cv_search_socketpair" >&6; }
6424 ac_res=$ac_cv_search_socketpair
6425 if test "$ac_res" != no; then :
6426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6431 # Link in zlib if we can. This allows us to read compressed debug sections.
6433 # See if the user specified whether he wants zlib support or not.
6435 # Check whether --with-zlib was given.
6436 if test "${with_zlib+set}" = set; then :
6443 if test "$with_zlib" != "no"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6445 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6446 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6449 ac_func_search_save_LIBS=$LIBS
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6453 /* Override any GCC internal prototype to avoid an error.
6454 Use char because int might match the return type of a GCC
6455 builtin and then its argument prototype would still apply. */
6459 char zlibVersion ();
6463 return zlibVersion ();
6468 for ac_lib in '' z; do
6469 if test -z "$ac_lib"; then
6470 ac_res="none required"
6473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6475 if ac_fn_c_try_link "$LINENO"; then :
6476 ac_cv_search_zlibVersion=$ac_res
6478 rm -f core conftest.err conftest.$ac_objext \
6480 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6484 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6487 ac_cv_search_zlibVersion=no
6490 LIBS=$ac_func_search_save_LIBS
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6493 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6494 ac_res=$ac_cv_search_zlibVersion
6495 if test "$ac_res" != no; then :
6496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6497 for ac_header in zlib.h
6499 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6500 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6501 cat >>confdefs.h <<_ACEOF
6502 #define HAVE_ZLIB_H 1
6511 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6512 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6517 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6519 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6520 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6521 $as_echo_n "(cached) " >&6
6523 ac_func_search_save_LIBS=$LIBS
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6527 /* Override any GCC internal prototype to avoid an error.
6528 Use char because int might match the return type of a GCC
6529 builtin and then its argument prototype would still apply. */
6533 char dlgetmodinfo ();
6537 return dlgetmodinfo ();
6542 for ac_lib in '' dl xpdl; do
6543 if test -z "$ac_lib"; then
6544 ac_res="none required"
6547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6549 if ac_fn_c_try_link "$LINENO"; then :
6550 ac_cv_search_dlgetmodinfo=$ac_res
6552 rm -f core conftest.err conftest.$ac_objext \
6554 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6558 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6561 ac_cv_search_dlgetmodinfo=no
6564 LIBS=$ac_func_search_save_LIBS
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6567 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6568 ac_res=$ac_cv_search_dlgetmodinfo
6569 if test "$ac_res" != no; then :
6570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6578 # Check whether --with-libiconv-prefix was given.
6579 if test "${with_libiconv_prefix+set}" = set; then :
6580 withval=$with_libiconv_prefix;
6581 for dir in `echo "$withval" | tr : ' '`; do
6582 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
6583 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6589 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6590 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6593 $as_echo_n "checking for iconv... " >&6; }
6594 if test "${am_cv_func_iconv+set}" = set; then :
6595 $as_echo_n "(cached) " >&6
6598 am_cv_func_iconv="no, consider installing GNU libiconv"
6600 am_cv_use_build_libiconv=no
6601 am_cv_build_libiconv_path=
6603 # If libiconv is part of the build tree, then try using it over
6605 if test -d ../libiconv; then
6606 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
6607 am_save_LIBS="$LIBS"
6608 am_save_CPPFLAGS="$CPPFLAGS"
6609 LIBS="$LIBS $lib_dir/libiconv.a"
6610 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6618 iconv_t cd = iconv_open("","");
6619 iconv(cd,NULL,NULL,NULL,NULL);
6625 if ac_fn_c_try_link "$LINENO"; then :
6626 am_cv_use_build_libiconv=yes
6627 am_cv_build_libiconv_path=$lib_dir/libiconv.a
6629 am_cv_func_iconv=yes
6631 rm -f core conftest.err conftest.$ac_objext \
6632 conftest$ac_exeext conftest.$ac_ext
6633 LIBS="$am_save_LIBS"
6634 CPPFLAGS="$am_save_CPPFLAGS"
6635 if test "$am_cv_use_build_libiconv" = "yes"; then
6641 # Next, try to find iconv in libc.
6642 if test "$am_cv_func_iconv" != yes; then
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6650 iconv_t cd = iconv_open("","");
6651 iconv(cd,NULL,NULL,NULL,NULL);
6657 if ac_fn_c_try_link "$LINENO"; then :
6658 am_cv_func_iconv=yes
6660 rm -f core conftest.err conftest.$ac_objext \
6661 conftest$ac_exeext conftest.$ac_ext
6664 # If iconv was not in libc, try -liconv. In this case, arrange to
6665 # look in the libiconv prefix, if it was specified by the user.
6666 if test "$am_cv_func_iconv" != yes; then
6667 am_save_CPPFLAGS="$CPPFLAGS"
6668 am_save_LIBS="$LIBS"
6669 if test -n "$LIBICONV_INCLUDE"; then
6670 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6671 LIBS="$LIBS $LIBICONV_LIBDIR"
6673 LIBS="$LIBS -liconv"
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6681 iconv_t cd = iconv_open("","");
6682 iconv(cd,NULL,NULL,NULL,NULL);
6688 if ac_fn_c_try_link "$LINENO"; then :
6690 am_cv_func_iconv=yes
6692 rm -f core conftest.err conftest.$ac_objext \
6693 conftest$ac_exeext conftest.$ac_ext
6694 LIBS="$am_save_LIBS"
6695 CPPFLAGS="$am_save_CPPFLAGS"
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6700 $as_echo "$am_cv_func_iconv" >&6; }
6702 # Set the various flags based on the cache variables. We can't rely
6703 # on the flags to remain set from the above code, due to caching.
6705 if test "$am_cv_lib_iconv" = yes; then
6711 if test "$am_cv_use_build_libiconv" = yes; then
6712 LIBICONV="$am_cv_build_libiconv_path"
6714 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
6716 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6717 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6719 if test "$am_cv_func_iconv" = yes; then
6721 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6724 $as_echo_n "checking for iconv declaration... " >&6; }
6725 if test "${am_cv_proto_iconv+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6738 #if defined(__STDC__) || defined(__cplusplus)
6739 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753 am_cv_proto_iconv_arg1=""
6755 am_cv_proto_iconv_arg1="const"
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 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);"
6761 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6763 }$am_cv_proto_iconv" >&5
6765 }$am_cv_proto_iconv" >&6; }
6767 cat >>confdefs.h <<_ACEOF
6768 #define ICONV_CONST $am_cv_proto_iconv_arg1
6774 # GDB may fork/exec the iconv program to get the list of supported character
6775 # sets. Allow the user to specify where to find it.
6776 # There are several factors affecting the choice of option name:
6777 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6778 # the build-time location of libiconv files.
6779 # - The program we need to find is iconv, which comes with glibc. The user
6780 # doesn't necessarily have libiconv installed. Therefore naming this
6781 # --with-libiconv-foo feels wrong.
6782 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6783 # defined to work on directories not files (though it really doesn't know
6785 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6786 # with --with-libiconv-prefix.
6787 # Putting these together is why the option name is --with-iconv-bin.
6790 # Check whether --with-iconv-bin was given.
6791 if test "${with_iconv_bin+set}" = set; then :
6792 withval=$with_iconv_bin; iconv_bin="${withval}"
6794 cat >>confdefs.h <<_ACEOF
6795 #define ICONV_BIN "${iconv_bin}"
6799 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6800 if test "x$prefix" = xNONE; then
6801 test_prefix=/usr/local
6806 test_prefix=$exec_prefix
6809 case ${iconv_bin} in
6810 "${test_prefix}"|"${test_prefix}/"*|\
6811 '${exec_prefix}'|'${exec_prefix}/'*)
6816 cat >>confdefs.h <<_ACEOF
6817 #define ICONV_BIN_RELOCATABLE $value
6825 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6826 # There is a very specific comment in /usr/include/curses.h explaining that
6827 # termcap routines built into libcurses must not be used.
6829 # The symptoms we observed so far is GDB unexpectedly changing
6830 # the terminal settings when tgetent is called - this is particularly
6831 # visible as the output is missing carriage returns, and so rapidly
6832 # becomes very hard to read.
6834 # The readline configure script has already decided that libtermcap
6835 # was enough for its purposes, and so decided to build readline using
6836 # libtermcap. Since the TUI mode requires curses, building GDB with
6837 # TUI enabled results in both libraries to be used at the same time,
6838 # which is not allowed. This basically means that GDB with TUI is
6839 # broken on alpha-osf.
6843 if test x"$enable_tui" = xyes; then
6844 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6846 if test x"$enable_tui" = xauto; then
6852 # For the TUI, we need enhanced curses functionality.
6853 if test x"$enable_tui" != xno; then
6858 if test x"$prefer_curses" = xyes; then
6859 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6860 # curses library because the latter might not provide all the
6861 # functionality we need. However, this leads to problems on systems
6862 # where the linker searches /usr/local/lib, but the compiler doesn't
6863 # search /usr/local/include, if ncurses is installed in /usr/local. A
6864 # default installation of ncurses on alpha*-dec-osf* will lead to such
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6867 $as_echo_n "checking for library containing waddstr... " >&6; }
6868 if test "${ac_cv_search_waddstr+set}" = set; then :
6869 $as_echo_n "(cached) " >&6
6871 ac_func_search_save_LIBS=$LIBS
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6875 /* Override any GCC internal prototype to avoid an error.
6876 Use char because int might match the return type of a GCC
6877 builtin and then its argument prototype would still apply. */
6890 for ac_lib in '' ncurses cursesX curses; do
6891 if test -z "$ac_lib"; then
6892 ac_res="none required"
6895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6897 if ac_fn_c_try_link "$LINENO"; then :
6898 ac_cv_search_waddstr=$ac_res
6900 rm -f core conftest.err conftest.$ac_objext \
6902 if test "${ac_cv_search_waddstr+set}" = set; then :
6906 if test "${ac_cv_search_waddstr+set}" = set; then :
6909 ac_cv_search_waddstr=no
6912 LIBS=$ac_func_search_save_LIBS
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6915 $as_echo "$ac_cv_search_waddstr" >&6; }
6916 ac_res=$ac_cv_search_waddstr
6917 if test "$ac_res" != no; then :
6918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6923 if test "$ac_cv_search_waddstr" != no; then
6928 # Check whether we should enable the TUI, but only do so if we really
6930 if test x"$enable_tui" != xno; then
6931 if test -d $srcdir/tui; then
6932 if test "$curses_found" != no; then
6933 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6934 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6935 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6936 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6938 if test x"$enable_tui" = xyes; then
6939 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6942 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6948 # Since GDB uses Readline, we need termcap functionality. In many
6949 # cases this will be provided by the curses library, but some systems
6950 # have a seperate termcap library, or no curses library at all.
6954 if test -d $srcdir/libtermcap; then
6955 LIBS="../libtermcap/libtermcap.a $LIBS"
6956 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6959 ac_cv_search_tgetent="none required"
6962 ac_cv_search_tgetent="none required"
6963 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
6967 # These are the libraries checked by Readline.
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6969 $as_echo_n "checking for library containing tgetent... " >&6; }
6970 if test "${ac_cv_search_tgetent+set}" = set; then :
6971 $as_echo_n "(cached) " >&6
6973 ac_func_search_save_LIBS=$LIBS
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6977 /* Override any GCC internal prototype to avoid an error.
6978 Use char because int might match the return type of a GCC
6979 builtin and then its argument prototype would still apply. */
6992 for ac_lib in '' termcap tinfo curses ncurses; do
6993 if test -z "$ac_lib"; then
6994 ac_res="none required"
6997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6999 if ac_fn_c_try_link "$LINENO"; then :
7000 ac_cv_search_tgetent=$ac_res
7002 rm -f core conftest.err conftest.$ac_objext \
7004 if test "${ac_cv_search_tgetent+set}" = set; then :
7008 if test "${ac_cv_search_tgetent+set}" = set; then :
7011 ac_cv_search_tgetent=no
7014 LIBS=$ac_func_search_save_LIBS
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7017 $as_echo "$ac_cv_search_tgetent" >&6; }
7018 ac_res=$ac_cv_search_tgetent
7019 if test "$ac_res" != no; then :
7020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7025 if test "$ac_cv_search_tgetent" = no; then
7026 as_fn_error "no termcap library found" "$LINENO" 5
7030 # Check whether --with-system-readline was given.
7031 if test "${with_system_readline+set}" = set; then :
7032 withval=$with_system_readline;
7036 if test "$with_system_readline" = yes; then
7040 READLINE_TEXI_INCFLAG=
7042 READLINE='$(READLINE_DIR)/libreadline.a'
7043 READLINE_DEPS='$(READLINE)'
7044 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7045 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7052 # Generate jit-reader.h
7054 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7057 # The cast to long int works around a bug in the HP C Compiler
7058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7060 # This bug is HP SR number 8606223364.
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7062 $as_echo_n "checking size of unsigned long long... " >&6; }
7063 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7064 $as_echo_n "(cached) " >&6
7066 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7069 if test "$ac_cv_type_unsigned_long_long" = yes; then
7070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7072 { as_fn_set_status 77
7073 as_fn_error "cannot compute sizeof (unsigned long long)
7074 See \`config.log' for more details." "$LINENO" 5; }; }
7076 ac_cv_sizeof_unsigned_long_long=0
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7082 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7086 cat >>confdefs.h <<_ACEOF
7087 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7091 # The cast to long int works around a bug in the HP C Compiler
7092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7094 # This bug is HP SR number 8606223364.
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7096 $as_echo_n "checking size of unsigned long... " >&6; }
7097 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7100 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7103 if test "$ac_cv_type_unsigned_long" = yes; then
7104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7106 { as_fn_set_status 77
7107 as_fn_error "cannot compute sizeof (unsigned long)
7108 See \`config.log' for more details." "$LINENO" 5; }; }
7110 ac_cv_sizeof_unsigned_long=0
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7116 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7120 cat >>confdefs.h <<_ACEOF
7121 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7125 # The cast to long int works around a bug in the HP C Compiler
7126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7128 # This bug is HP SR number 8606223364.
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7130 $as_echo_n "checking size of unsigned __int128... " >&6; }
7131 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7134 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7137 if test "$ac_cv_type_unsigned___int128" = yes; then
7138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7140 { as_fn_set_status 77
7141 as_fn_error "cannot compute sizeof (unsigned __int128)
7142 See \`config.log' for more details." "$LINENO" 5; }; }
7144 ac_cv_sizeof_unsigned___int128=0
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7150 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7154 cat >>confdefs.h <<_ACEOF
7155 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7160 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7161 TARGET_PTR="unsigned long"
7162 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7163 TARGET_PTR="unsigned long long"
7164 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7165 TARGET_PTR="unsigned __int128"
7167 TARGET_PTR="unsigned long"
7171 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7175 $as_echo_n "checking for library containing dlopen... " >&6; }
7176 if test "${ac_cv_search_dlopen+set}" = set; then :
7177 $as_echo_n "(cached) " >&6
7179 ac_func_search_save_LIBS=$LIBS
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7183 /* Override any GCC internal prototype to avoid an error.
7184 Use char because int might match the return type of a GCC
7185 builtin and then its argument prototype would still apply. */
7198 for ac_lib in '' dl; do
7199 if test -z "$ac_lib"; then
7200 ac_res="none required"
7203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7205 if ac_fn_c_try_link "$LINENO"; then :
7206 ac_cv_search_dlopen=$ac_res
7208 rm -f core conftest.err conftest.$ac_objext \
7210 if test "${ac_cv_search_dlopen+set}" = set; then :
7214 if test "${ac_cv_search_dlopen+set}" = set; then :
7217 ac_cv_search_dlopen=no
7220 LIBS=$ac_func_search_save_LIBS
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7223 $as_echo "$ac_cv_search_dlopen" >&6; }
7224 ac_res=$ac_cv_search_dlopen
7225 if test "$ac_res" != no; then :
7226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7233 # Check whether --with-jit-reader-dir was given.
7234 if test "${with_jit_reader_dir+set}" = set; then :
7235 withval=$with_jit_reader_dir;
7236 JIT_READER_DIR=$withval
7238 JIT_READER_DIR=${libdir}/gdb
7242 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7244 ac_define_dir=`eval echo $JIT_READER_DIR`
7245 ac_define_dir=`eval echo $ac_define_dir`
7247 cat >>confdefs.h <<_ACEOF
7248 #define JIT_READER_DIR "$ac_define_dir"
7254 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7255 if test "x$prefix" = xNONE; then
7256 test_prefix=/usr/local
7261 test_prefix=$exec_prefix
7264 case ${ac_define_dir} in
7265 "${test_prefix}"|"${test_prefix}/"*|\
7266 '${exec_prefix}'|'${exec_prefix}/'*)
7271 cat >>confdefs.h <<_ACEOF
7272 #define JIT_READER_DIR_RELOCATABLE $value
7279 # Check whether --with-expat was given.
7280 if test "${with_expat+set}" = set; then :
7281 withval=$with_expat;
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7287 $as_echo_n "checking whether to use expat... " >&6; }
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7289 $as_echo "$with_expat" >&6; }
7291 if test "${with_expat}" = no; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7293 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7297 if test "X$prefix" = "XNONE"; then
7298 acl_final_prefix="$ac_default_prefix"
7300 acl_final_prefix="$prefix"
7302 if test "X$exec_prefix" = "XNONE"; then
7303 acl_final_exec_prefix='${prefix}'
7305 acl_final_exec_prefix="$exec_prefix"
7307 acl_save_prefix="$prefix"
7308 prefix="$acl_final_prefix"
7309 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7310 prefix="$acl_save_prefix"
7313 # Check whether --with-gnu-ld was given.
7314 if test "${with_gnu_ld+set}" = set; then :
7315 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7320 # Prepare PATH_SEPARATOR.
7321 # The user is always right.
7322 if test "${PATH_SEPARATOR+set}" != set; then
7323 echo "#! /bin/sh" >conf$$.sh
7324 echo "exit 0" >>conf$$.sh
7326 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7334 if test "$GCC" = yes; then
7335 # Check if gcc -print-prog-name=ld gives a path.
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7337 $as_echo_n "checking for ld used by GCC... " >&6; }
7340 # gcc leaves a trailing carriage return which upsets mingw
7341 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7343 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7346 # Accept absolute paths.
7347 [\\/]* | [A-Za-z]:[\\/]*)
7348 re_direlt='/[^/][^/]*/\.\./'
7349 # Canonicalize the path of ld
7350 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7351 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7352 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7354 test -z "$LD" && LD="$ac_prog"
7357 # If it fails, then pretend we aren't using GCC.
7361 # If it is relative, then search for the first ld in PATH.
7365 elif test "$with_gnu_ld" = yes; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7367 $as_echo_n "checking for GNU ld... " >&6; }
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7370 $as_echo_n "checking for non-GNU ld... " >&6; }
7372 if test "${acl_cv_path_LD+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7375 if test -z "$LD"; then
7376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7377 for ac_dir in $PATH; do
7378 test -z "$ac_dir" && ac_dir=.
7379 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7380 acl_cv_path_LD="$ac_dir/$ac_prog"
7381 # Check to see if the program is GNU ld. I'd rather use --version,
7382 # but apparently some GNU ld's only accept -v.
7383 # Break only if it was the GNU/non-GNU ld that we prefer.
7384 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7385 test "$with_gnu_ld" != no && break
7387 test "$with_gnu_ld" != yes && break
7393 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7397 LD="$acl_cv_path_LD"
7398 if test -n "$LD"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7400 $as_echo "$LD" >&6; }
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7405 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7407 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7408 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7411 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7412 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7413 acl_cv_prog_gnu_ld=yes
7415 acl_cv_prog_gnu_ld=no
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7419 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7420 with_gnu_ld=$acl_cv_prog_gnu_ld
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7425 $as_echo_n "checking for shared library run path origin... " >&6; }
7426 if test "${acl_cv_rpath+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7430 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7431 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7438 $as_echo "$acl_cv_rpath" >&6; }
7440 libext="$acl_cv_libext"
7441 shlibext="$acl_cv_shlibext"
7442 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7443 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7444 hardcode_direct="$acl_cv_hardcode_direct"
7445 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7446 # Check whether --enable-rpath was given.
7447 if test "${enable_rpath+set}" = set; then :
7448 enableval=$enable_rpath; :
7464 acl_save_prefix="$prefix"
7465 prefix="$acl_final_prefix"
7466 acl_save_exec_prefix="$exec_prefix"
7467 exec_prefix="$acl_final_exec_prefix"
7469 eval additional_includedir=\"$includedir\"
7470 eval additional_libdir=\"$libdir\"
7472 exec_prefix="$acl_save_exec_prefix"
7473 prefix="$acl_save_prefix"
7476 # Check whether --with-libexpat-prefix was given.
7477 if test "${with_libexpat_prefix+set}" = set; then :
7478 withval=$with_libexpat_prefix;
7479 if test "X$withval" = "Xno"; then
7482 if test "X$withval" = "X"; then
7484 acl_save_prefix="$prefix"
7485 prefix="$acl_final_prefix"
7486 acl_save_exec_prefix="$exec_prefix"
7487 exec_prefix="$acl_final_exec_prefix"
7489 eval additional_includedir=\"$includedir\"
7490 eval additional_libdir=\"$libdir\"
7492 exec_prefix="$acl_save_exec_prefix"
7493 prefix="$acl_save_prefix"
7496 additional_includedir="$withval/include"
7497 additional_libdir="$withval/lib"
7508 names_already_handled=
7509 names_next_round='expat '
7510 while test -n "$names_next_round"; do
7511 names_this_round="$names_next_round"
7513 for name in $names_this_round; do
7515 for n in $names_already_handled; do
7516 if test "$n" = "$name"; then
7521 if test -z "$already_handled"; then
7522 names_already_handled="$names_already_handled $name"
7523 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7524 eval value=\"\$HAVE_LIB$uppername\"
7525 if test -n "$value"; then
7526 if test "$value" = yes; then
7527 eval value=\"\$LIB$uppername\"
7528 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7529 eval value=\"\$LTLIB$uppername\"
7530 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7539 if test $use_additional = yes; then
7540 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7541 found_dir="$additional_libdir"
7542 found_so="$additional_libdir/lib$name.$shlibext"
7543 if test -f "$additional_libdir/lib$name.la"; then
7544 found_la="$additional_libdir/lib$name.la"
7547 if test -f "$additional_libdir/lib$name.$libext"; then
7548 found_dir="$additional_libdir"
7549 found_a="$additional_libdir/lib$name.$libext"
7550 if test -f "$additional_libdir/lib$name.la"; then
7551 found_la="$additional_libdir/lib$name.la"
7556 if test "X$found_dir" = "X"; then
7557 for x in $LDFLAGS $LTLIBEXPAT; do
7559 acl_save_prefix="$prefix"
7560 prefix="$acl_final_prefix"
7561 acl_save_exec_prefix="$exec_prefix"
7562 exec_prefix="$acl_final_exec_prefix"
7564 exec_prefix="$acl_save_exec_prefix"
7565 prefix="$acl_save_prefix"
7569 dir=`echo "X$x" | sed -e 's/^X-L//'`
7570 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7572 found_so="$dir/lib$name.$shlibext"
7573 if test -f "$dir/lib$name.la"; then
7574 found_la="$dir/lib$name.la"
7577 if test -f "$dir/lib$name.$libext"; then
7579 found_a="$dir/lib$name.$libext"
7580 if test -f "$dir/lib$name.la"; then
7581 found_la="$dir/lib$name.la"
7587 if test "X$found_dir" != "X"; then
7592 if test "X$found_dir" != "X"; then
7593 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7594 if test "X$found_so" != "X"; then
7595 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7596 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7599 for x in $ltrpathdirs; do
7600 if test "X$x" = "X$found_dir"; then
7605 if test -z "$haveit"; then
7606 ltrpathdirs="$ltrpathdirs $found_dir"
7608 if test "$hardcode_direct" = yes; then
7609 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7611 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7612 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7614 for x in $rpathdirs; do
7615 if test "X$x" = "X$found_dir"; then
7620 if test -z "$haveit"; then
7621 rpathdirs="$rpathdirs $found_dir"
7625 for x in $LDFLAGS $LIBEXPAT; do
7627 acl_save_prefix="$prefix"
7628 prefix="$acl_final_prefix"
7629 acl_save_exec_prefix="$exec_prefix"
7630 exec_prefix="$acl_final_exec_prefix"
7632 exec_prefix="$acl_save_exec_prefix"
7633 prefix="$acl_save_prefix"
7635 if test "X$x" = "X-L$found_dir"; then
7640 if test -z "$haveit"; then
7641 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7643 if test "$hardcode_minus_L" != no; then
7644 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7646 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7652 if test "X$found_a" != "X"; then
7653 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7655 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7658 additional_includedir=
7659 case "$found_dir" in
7661 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7662 additional_includedir="$basedir/include"
7665 if test "X$additional_includedir" != "X"; then
7666 if test "X$additional_includedir" != "X/usr/include"; then
7668 if test "X$additional_includedir" = "X/usr/local/include"; then
7669 if test -n "$GCC"; then
7671 linux*) haveit=yes;;
7675 if test -z "$haveit"; then
7676 for x in $CPPFLAGS $INCEXPAT; do
7678 acl_save_prefix="$prefix"
7679 prefix="$acl_final_prefix"
7680 acl_save_exec_prefix="$exec_prefix"
7681 exec_prefix="$acl_final_exec_prefix"
7683 exec_prefix="$acl_save_exec_prefix"
7684 prefix="$acl_save_prefix"
7686 if test "X$x" = "X-I$additional_includedir"; then
7691 if test -z "$haveit"; then
7692 if test -d "$additional_includedir"; then
7693 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7699 if test -n "$found_la"; then
7700 save_libdir="$libdir"
7702 */* | *\\*) . "$found_la" ;;
7703 *) . "./$found_la" ;;
7705 libdir="$save_libdir"
7706 for dep in $dependency_libs; do
7709 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7710 if test "X$additional_libdir" != "X/usr/lib"; then
7712 if test "X$additional_libdir" = "X/usr/local/lib"; then
7713 if test -n "$GCC"; then
7715 linux*) haveit=yes;;
7719 if test -z "$haveit"; then
7721 for x in $LDFLAGS $LIBEXPAT; do
7723 acl_save_prefix="$prefix"
7724 prefix="$acl_final_prefix"
7725 acl_save_exec_prefix="$exec_prefix"
7726 exec_prefix="$acl_final_exec_prefix"
7728 exec_prefix="$acl_save_exec_prefix"
7729 prefix="$acl_save_prefix"
7731 if test "X$x" = "X-L$additional_libdir"; then
7736 if test -z "$haveit"; then
7737 if test -d "$additional_libdir"; then
7738 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7742 for x in $LDFLAGS $LTLIBEXPAT; do
7744 acl_save_prefix="$prefix"
7745 prefix="$acl_final_prefix"
7746 acl_save_exec_prefix="$exec_prefix"
7747 exec_prefix="$acl_final_exec_prefix"
7749 exec_prefix="$acl_save_exec_prefix"
7750 prefix="$acl_save_prefix"
7752 if test "X$x" = "X-L$additional_libdir"; then
7757 if test -z "$haveit"; then
7758 if test -d "$additional_libdir"; then
7759 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7766 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7767 if test "$enable_rpath" != no; then
7769 for x in $rpathdirs; do
7770 if test "X$x" = "X$dir"; then
7775 if test -z "$haveit"; then
7776 rpathdirs="$rpathdirs $dir"
7779 for x in $ltrpathdirs; do
7780 if test "X$x" = "X$dir"; then
7785 if test -z "$haveit"; then
7786 ltrpathdirs="$ltrpathdirs $dir"
7791 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7794 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7797 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7798 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7804 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7805 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7811 if test "X$rpathdirs" != "X"; then
7812 if test -n "$hardcode_libdir_separator"; then
7814 for found_dir in $rpathdirs; do
7815 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7817 acl_save_libdir="$libdir"
7819 eval flag=\"$hardcode_libdir_flag_spec\"
7820 libdir="$acl_save_libdir"
7821 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7823 for found_dir in $rpathdirs; do
7824 acl_save_libdir="$libdir"
7826 eval flag=\"$hardcode_libdir_flag_spec\"
7827 libdir="$acl_save_libdir"
7828 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7832 if test "X$ltrpathdirs" != "X"; then
7833 for found_dir in $ltrpathdirs; do
7834 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7839 ac_save_CPPFLAGS="$CPPFLAGS"
7841 for element in $INCEXPAT; do
7843 for x in $CPPFLAGS; do
7845 acl_save_prefix="$prefix"
7846 prefix="$acl_final_prefix"
7847 acl_save_exec_prefix="$exec_prefix"
7848 exec_prefix="$acl_final_exec_prefix"
7850 exec_prefix="$acl_save_exec_prefix"
7851 prefix="$acl_save_prefix"
7853 if test "X$x" = "X$element"; then
7858 if test -z "$haveit"; then
7859 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7865 $as_echo_n "checking for libexpat... " >&6; }
7866 if test "${ac_cv_libexpat+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
7870 ac_save_LIBS="$LIBS"
7871 LIBS="$LIBS $LIBEXPAT"
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7878 XML_Parser p = XML_ParserCreate (0);
7883 if ac_fn_c_try_link "$LINENO"; then :
7888 rm -f core conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7890 LIBS="$ac_save_LIBS"
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7894 $as_echo "$ac_cv_libexpat" >&6; }
7895 if test "$ac_cv_libexpat" = yes; then
7898 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7901 $as_echo_n "checking how to link with libexpat... " >&6; }
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7903 $as_echo "$LIBEXPAT" >&6; }
7906 CPPFLAGS="$ac_save_CPPFLAGS"
7916 if test "$HAVE_LIBEXPAT" != yes; then
7917 if test "$with_expat" = yes; then
7918 as_fn_error "expat is missing or unusable" "$LINENO" 5
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7921 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7925 LIBS="$LIBS $LIBEXPAT"
7926 for ac_func in XML_StopParser
7928 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7929 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
7930 cat >>confdefs.h <<_ACEOF
7931 #define HAVE_XML_STOPPARSER 1
7946 # Check whether --with-python was given.
7947 if test "${with_python+set}" = set; then :
7948 withval=$with_python;
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7954 $as_echo_n "checking whether to use python... " >&6; }
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7956 $as_echo "$with_python" >&6; }
7958 if test "${with_python}" = no; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7960 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7963 case "${with_python}" in
7965 if test -d ${with_python}; then
7966 # Assume the python binary is ${with_python}/bin/python.
7967 python_prog="${with_python}/bin/python"
7969 # If python does not exit ${with_python}/bin, then try in
7970 # ${with_python}. On Windows/MinGW, this is where the Python
7972 if test ! -x "${python_prog}"; then
7973 python_prog="${with_python}/python"
7976 if test ! -x "${python_prog}"; then
7977 # Fall back to gdb 7.0/7.1 behaviour.
7979 python_prefix=${with_python}
7981 elif test -x "${with_python}"; then
7982 # While we can't run python compiled for $host (unless host == build),
7983 # the user could write a script that provides the needed information,
7984 # so we support that.
7985 python_prog=${with_python}
7988 as_fn_error "invalid value for --with-python" "$LINENO" 5
7992 # Disallow --with-python=foo/bar.
7993 as_fn_error "invalid value for --with-python" "$LINENO" 5
7996 # The user has either specified auto, yes, or the name of the python
7997 # program assumed to be in $PATH.
7999 case "${with_python}" in
8001 if test ${build} = ${host}; then
8002 # Extract the first word of "python", so it can be a program name with args.
8003 set dummy python; ac_word=$2
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 $as_echo_n "checking for $ac_word... " >&6; }
8006 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8009 case $python_prog_path in
8011 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8033 python_prog_path=$ac_cv_path_python_prog_path
8034 if test -n "$python_prog_path"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8036 $as_echo "$python_prog_path" >&6; }
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8043 if test "${python_prog_path}" = missing; then
8046 python_prog=${python_prog_path}
8049 # Not much we can do except assume the cross-compiler will find the
8055 # While we can't run python compiled for $host (unless host == build),
8056 # the user could write a script that provides the needed information,
8057 # so we support that.
8058 python_prog="${with_python}"
8059 # Extract the first word of "${python_prog}", so it can be a program name with args.
8060 set dummy ${python_prog}; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8066 case $python_prog_path in
8068 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8090 python_prog_path=$ac_cv_path_python_prog_path
8091 if test -n "$python_prog_path"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8093 $as_echo "$python_prog_path" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8100 if test "${python_prog_path}" = missing; then
8101 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8107 if test "${python_prog}" != missing; then
8108 # We have a python program to use, but it may be too old.
8109 # Don't flag an error for --with-python=auto (the default).
8110 have_python_config=yes
8111 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8112 if test $? != 0; then
8113 have_python_config=failed
8114 if test "${with_python}" != auto; then
8115 as_fn_error "failure running python-config --includes" "$LINENO" 5
8118 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8119 if test $? != 0; then
8120 have_python_config=failed
8121 if test "${with_python}" != auto; then
8122 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8125 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8126 if test $? != 0; then
8127 have_python_config=failed
8128 if test "${with_python}" != auto; then
8129 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8133 # We do not have a python executable we can use to determine where
8134 # to find the Python headers and libs. We cannot guess the include
8135 # path from the python_prefix either, because that include path
8136 # depends on the Python version. So, there is nothing much we can
8137 # do except assume that the compiler will be able to find those files.
8140 have_python_config=no
8143 # If we have python-config, only try the configuration it provides.
8144 # Otherwise fallback on the old way of trying different versions of
8148 if test "${have_python_config}" = yes; then
8149 # Determine the Python version by extracting "-lpython<version>"
8150 # part of the python_libs. <version> is usually X.Y with X and Y
8151 # being decimal numbers, but can also be XY (seen on Windows).
8153 # The extraction is performed using sed with a regular expression.
8154 # Initially, the regexp used was using the '?' quantifier to make
8155 # the dot in the version number optional. Unfortunately, this
8156 # does not work with non-GNU versions of sed because, because of
8157 # what looks like a limitation (the '?' quantifier does not work
8158 # with back-references). We work around this limitation by using
8159 # the '*' quantifier instead. It means that, in theory, we might
8160 # match unexpected version strings such as "-lpython2..7", but
8161 # this seems unlikely in practice. And even if that happens,
8162 # an error will be triggered later on, when checking that version
8164 python_version=`echo " ${python_libs} " \
8165 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8166 case "${python_version}" in
8169 version=${python_version}
8171 new_CPPFLAGS=${python_includes}
8172 new_LIBS=${python_libs}
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8174 $as_echo_n "checking for ${version}... " >&6; }
8175 save_CPPFLAGS=$CPPFLAGS
8177 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8178 LIBS="$LIBS $new_LIBS"
8179 found_usable_python=no
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8191 if ac_fn_c_try_link "$LINENO"; then :
8192 have_libpython=${version}
8193 found_usable_python=yes
8194 PYTHON_CPPFLAGS=$new_CPPFLAGS
8195 PYTHON_LIBS=$new_LIBS
8197 rm -f core conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199 CPPFLAGS=$save_CPPFLAGS
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8202 $as_echo "${found_usable_python}" >&6; }
8206 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8209 elif test "${have_python_config}" != failed; then
8210 if test "${have_libpython}" = no; then
8214 new_CPPFLAGS=${python_includes}
8215 new_LIBS="${python_libs} -lpython2.7"
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8217 $as_echo_n "checking for ${version}... " >&6; }
8218 save_CPPFLAGS=$CPPFLAGS
8220 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8221 LIBS="$LIBS $new_LIBS"
8222 found_usable_python=no
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8234 if ac_fn_c_try_link "$LINENO"; then :
8235 have_libpython=${version}
8236 found_usable_python=yes
8237 PYTHON_CPPFLAGS=$new_CPPFLAGS
8238 PYTHON_LIBS=$new_LIBS
8240 rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 CPPFLAGS=$save_CPPFLAGS
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8245 $as_echo "${found_usable_python}" >&6; }
8248 if test "${have_libpython}" = no; then
8252 new_CPPFLAGS=${python_includes}
8253 new_LIBS="${python_libs} -lpython2.6"
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8255 $as_echo_n "checking for ${version}... " >&6; }
8256 save_CPPFLAGS=$CPPFLAGS
8258 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8259 LIBS="$LIBS $new_LIBS"
8260 found_usable_python=no
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8272 if ac_fn_c_try_link "$LINENO"; then :
8273 have_libpython=${version}
8274 found_usable_python=yes
8275 PYTHON_CPPFLAGS=$new_CPPFLAGS
8276 PYTHON_LIBS=$new_LIBS
8278 rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280 CPPFLAGS=$save_CPPFLAGS
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8283 $as_echo "${found_usable_python}" >&6; }
8286 if test ${have_libpython} = no; then
8290 new_CPPFLAGS=${python_includes}
8291 new_LIBS="${python_libs} -lpython2.5"
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8293 $as_echo_n "checking for ${version}... " >&6; }
8294 save_CPPFLAGS=$CPPFLAGS
8296 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8297 LIBS="$LIBS $new_LIBS"
8298 found_usable_python=no
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8310 if ac_fn_c_try_link "$LINENO"; then :
8311 have_libpython=${version}
8312 found_usable_python=yes
8313 PYTHON_CPPFLAGS=$new_CPPFLAGS
8314 PYTHON_LIBS=$new_LIBS
8316 rm -f core conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
8318 CPPFLAGS=$save_CPPFLAGS
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8321 $as_echo "${found_usable_python}" >&6; }
8324 if test ${have_libpython} = no; then
8328 new_CPPFLAGS=${python_includes}
8329 new_LIBS="${python_libs} -lpython2.4"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8331 $as_echo_n "checking for ${version}... " >&6; }
8332 save_CPPFLAGS=$CPPFLAGS
8334 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8335 LIBS="$LIBS $new_LIBS"
8336 found_usable_python=no
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8348 if ac_fn_c_try_link "$LINENO"; then :
8349 have_libpython=${version}
8350 found_usable_python=yes
8351 PYTHON_CPPFLAGS=$new_CPPFLAGS
8352 PYTHON_LIBS=$new_LIBS
8354 rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
8356 CPPFLAGS=$save_CPPFLAGS
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8359 $as_echo "${found_usable_python}" >&6; }
8363 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8365 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8367 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8369 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8371 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8373 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8375 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8377 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8381 if test "${have_libpython}" = no; then
8382 case "${with_python}" in
8384 as_fn_error "python is missing or unusable" "$LINENO" 5
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8388 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8391 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8395 if test -n "${python_prefix}"; then
8397 cat >>confdefs.h <<_ACEOF
8398 #define WITH_PYTHON_PATH "${python_prefix}"
8402 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8403 if test "x$prefix" = xNONE; then
8404 test_prefix=/usr/local
8409 test_prefix=$exec_prefix
8412 case ${python_prefix} in
8413 "${test_prefix}"|"${test_prefix}/"*|\
8414 '${exec_prefix}'|'${exec_prefix}/'*)
8419 cat >>confdefs.h <<_ACEOF
8420 #define PYTHON_PATH_RELOCATABLE $value
8428 if test "${have_libpython}" != no; then
8430 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8432 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8433 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8434 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8435 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8436 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8438 # Flags needed to compile Python code (taken from python-config --cflags).
8439 # We cannot call python-config directly because it will output whatever was
8440 # used when compiling the Python interpreter itself, including flags which
8441 # would make the python-related objects be compiled differently from the
8442 # rest of GDB (e.g., -O2 and -fPIC).
8443 if test "${GCC}" = yes; then
8444 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8447 if test "x${tentative_python_cflags}" != x; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8449 $as_echo_n "checking compiler flags for python code... " >&6; }
8450 for flag in ${tentative_python_cflags}; do
8451 # Check that the compiler accepts it
8452 saved_CFLAGS="$CFLAGS"
8453 CFLAGS="$CFLAGS $flag"
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8465 if ac_fn_c_try_compile "$LINENO"; then :
8466 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469 CFLAGS="$saved_CFLAGS"
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8472 $as_echo "${PYTHON_CFLAGS}" >&6; }
8475 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8477 # #define siginfo __siginfo
8479 # The problem is that including Python causes some XOPEN macros to be
8480 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8481 # to false. So, we work around this issue by defining siginfo ourself
8482 # though the command-line.
8484 # On x64 Windows, Python's include headers, and pyconfig.h in
8485 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8486 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8487 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8488 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8489 # The issue was reported to the Python community, but still isn't
8490 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8493 irix*) if test "${GCC}" = yes; then
8494 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
8498 if test "${GCC}" = yes; then
8499 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
8504 # Note that "python -m threading" cannot be used to check for
8505 # threading support due to a bug in Python 2.7.3
8506 # (http://bugs.python.org/issue15567).
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8508 $as_echo_n "checking whether python supports threads... " >&6; }
8509 saved_CPPFLAGS="${CPPFLAGS}"
8510 CPPFLAGS="${PYTHON_CPPFLAGS}"
8511 # Note that the test is reversed so that python_has_threads=yes on
8512 # unexpected failures.
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8522 if ac_fn_c_try_cpp "$LINENO"; then :
8523 python_has_threads=no
8525 python_has_threads=yes
8527 rm -f conftest.err conftest.$ac_ext
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8529 $as_echo "${python_has_threads}" >&6; }
8530 CPPFLAGS="${saved_CPPFLAGS}"
8532 # Even if Python support is not compiled in, we need to have these files
8534 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8535 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
8536 python/py-prettyprint.c python/py-auto-load.c"
8542 # Provide a --enable-libmcheck/--disable-libmcheck set of options
8543 # allowing a user to enable this option even when building releases,
8544 # or to disable it when building a snapshot.
8545 # Check whether --enable-libmcheck was given.
8546 if test "${enable_libmcheck+set}" = set; then :
8547 enableval=$enable_libmcheck; case "${enableval}" in
8548 yes | y) ENABLE_LIBMCHECK="yes" ;;
8549 no | n) ENABLE_LIBMCHECK="no" ;;
8550 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
8555 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
8556 # but turn it off if Python is enabled with threads, since -lmcheck is
8557 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
8559 if test -z "${ENABLE_LIBMCHECK}" \
8560 -a \( "${have_libpython}" = "no" \
8561 -o "${python_has_threads}" = "no" \) \
8562 && $development; then
8563 ENABLE_LIBMCHECK=yes
8566 if test "$ENABLE_LIBMCHECK" = "yes" ; then
8567 if test "${have_libpython}" != "no" -a "${python_has_threads}" = "yes" ; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
8569 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
8572 $as_echo_n "checking for main in -lmcheck... " >&6; }
8573 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8576 ac_check_lib_save_LIBS=$LIBS
8577 LIBS="-lmcheck $LIBS"
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8590 if ac_fn_c_try_link "$LINENO"; then :
8591 ac_cv_lib_mcheck_main=yes
8593 ac_cv_lib_mcheck_main=no
8595 rm -f core conftest.err conftest.$ac_objext \
8596 conftest$ac_exeext conftest.$ac_ext
8597 LIBS=$ac_check_lib_save_LIBS
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
8600 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
8601 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
8602 cat >>confdefs.h <<_ACEOF
8603 #define HAVE_LIBMCHECK 1
8606 LIBS="-lmcheck $LIBS"
8612 # ------------------------- #
8613 # Checks for header files. #
8614 # ------------------------- #
8617 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8618 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8620 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8622 $as_echo_n "(cached) " >&6
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 #include <sys/types.h>
8638 if ac_fn_c_try_compile "$LINENO"; then :
8639 eval "$as_ac_Header=yes"
8641 eval "$as_ac_Header=no"
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 eval ac_res=\$$as_ac_Header
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8647 $as_echo "$ac_res" >&6; }
8648 eval as_val=\$$as_ac_Header
8649 if test "x$as_val" = x""yes; then :
8650 cat >>confdefs.h <<_ACEOF
8651 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8654 ac_header_dirent=$ac_hdr; break
8658 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8659 if test $ac_header_dirent = dirent.h; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8661 $as_echo_n "checking for library containing opendir... " >&6; }
8662 if test "${ac_cv_search_opendir+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8665 ac_func_search_save_LIBS=$LIBS
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8669 /* Override any GCC internal prototype to avoid an error.
8670 Use char because int might match the return type of a GCC
8671 builtin and then its argument prototype would still apply. */
8684 for ac_lib in '' dir; do
8685 if test -z "$ac_lib"; then
8686 ac_res="none required"
8689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8691 if ac_fn_c_try_link "$LINENO"; then :
8692 ac_cv_search_opendir=$ac_res
8694 rm -f core conftest.err conftest.$ac_objext \
8696 if test "${ac_cv_search_opendir+set}" = set; then :
8700 if test "${ac_cv_search_opendir+set}" = set; then :
8703 ac_cv_search_opendir=no
8706 LIBS=$ac_func_search_save_LIBS
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8709 $as_echo "$ac_cv_search_opendir" >&6; }
8710 ac_res=$ac_cv_search_opendir
8711 if test "$ac_res" != no; then :
8712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8718 $as_echo_n "checking for library containing opendir... " >&6; }
8719 if test "${ac_cv_search_opendir+set}" = set; then :
8720 $as_echo_n "(cached) " >&6
8722 ac_func_search_save_LIBS=$LIBS
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8726 /* Override any GCC internal prototype to avoid an error.
8727 Use char because int might match the return type of a GCC
8728 builtin and then its argument prototype would still apply. */
8741 for ac_lib in '' x; do
8742 if test -z "$ac_lib"; then
8743 ac_res="none required"
8746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8748 if ac_fn_c_try_link "$LINENO"; then :
8749 ac_cv_search_opendir=$ac_res
8751 rm -f core conftest.err conftest.$ac_objext \
8753 if test "${ac_cv_search_opendir+set}" = set; then :
8757 if test "${ac_cv_search_opendir+set}" = set; then :
8760 ac_cv_search_opendir=no
8763 LIBS=$ac_func_search_save_LIBS
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8766 $as_echo "$ac_cv_search_opendir" >&6; }
8767 ac_res=$ac_cv_search_opendir
8768 if test "$ac_res" != no; then :
8769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8776 $as_echo_n "checking for ANSI C header files... " >&6; }
8777 if test "${ac_cv_header_stdc+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8795 if ac_fn_c_try_compile "$LINENO"; then :
8796 ac_cv_header_stdc=yes
8798 ac_cv_header_stdc=no
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8802 if test $ac_cv_header_stdc = yes; then
8803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8810 $EGREP "memchr" >/dev/null 2>&1; then :
8813 ac_cv_header_stdc=no
8819 if test $ac_cv_header_stdc = yes; then
8820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8827 $EGREP "free" >/dev/null 2>&1; then :
8830 ac_cv_header_stdc=no
8836 if test $ac_cv_header_stdc = yes; then
8837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8838 if test "$cross_compiling" = yes; then :
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8845 #if ((' ' & 0x0FF) == 0x020)
8846 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8847 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8849 # define ISLOWER(c) \
8850 (('a' <= (c) && (c) <= 'i') \
8851 || ('j' <= (c) && (c) <= 'r') \
8852 || ('s' <= (c) && (c) <= 'z'))
8853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8861 for (i = 0; i < 256; i++)
8862 if (XOR (islower (i), ISLOWER (i))
8863 || toupper (i) != TOUPPER (i))
8868 if ac_fn_c_try_run "$LINENO"; then :
8871 ac_cv_header_stdc=no
8873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8874 conftest.$ac_objext conftest.beam conftest.$ac_ext
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8880 $as_echo "$ac_cv_header_stdc" >&6; }
8881 if test $ac_cv_header_stdc = yes; then
8883 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8887 # elf_hp.h is for HP/UX 64-bit shared library support.
8888 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
8889 thread_db.h signal.h stddef.h \
8890 stdlib.h string.h memory.h strings.h sys/fault.h \
8891 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
8892 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
8893 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
8894 sys/types.h sys/wait.h wait.h termios.h termio.h \
8895 sgtty.h unistd.h elf_hp.h locale.h \
8896 dlfcn.h sys/socket.h sys/un.h linux/perf_event.h
8898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8900 eval as_val=\$$as_ac_Header
8901 if test "x$as_val" = x""yes; then :
8902 cat >>confdefs.h <<_ACEOF
8903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8910 for ac_header in link.h
8912 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
8913 # include <sys/types.h>
8920 if test "x$ac_cv_header_link_h" = x""yes; then :
8921 cat >>confdefs.h <<_ACEOF
8922 #define HAVE_LINK_H 1
8929 for ac_header in sys/proc.h
8931 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8932 # include <sys/param.h>
8936 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
8937 cat >>confdefs.h <<_ACEOF
8938 #define HAVE_SYS_PROC_H 1
8945 for ac_header in sys/user.h
8947 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8948 # include <sys/param.h>
8952 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_SYS_USER_H 1
8962 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8963 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8964 # think that we don't have <curses.h> if we're using GCC.
8967 if test "$GCC" = yes; then
8969 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8973 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
8975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8976 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8977 eval as_val=\$$as_ac_Header
8978 if test "x$as_val" = x""yes; then :
8979 cat >>confdefs.h <<_ACEOF
8980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8987 for ac_header in term.h
8989 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
8990 # include <curses.h>
8994 if test "x$ac_cv_header_term_h" = x""yes; then :
8995 cat >>confdefs.h <<_ACEOF
8996 #define HAVE_TERM_H 1
9004 # ------------------------- #
9005 # Checks for declarations. #
9006 # ------------------------- #
9008 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9009 if test "x$ac_cv_have_decl_free" = x""yes; then :
9015 cat >>confdefs.h <<_ACEOF
9016 #define HAVE_DECL_FREE $ac_have_decl
9018 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9019 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
9025 cat >>confdefs.h <<_ACEOF
9026 #define HAVE_DECL_MALLOC $ac_have_decl
9028 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9029 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
9035 cat >>confdefs.h <<_ACEOF
9036 #define HAVE_DECL_REALLOC $ac_have_decl
9038 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
9039 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
9045 cat >>confdefs.h <<_ACEOF
9046 #define HAVE_DECL_STRERROR $ac_have_decl
9048 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
9049 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
9055 cat >>confdefs.h <<_ACEOF
9056 #define HAVE_DECL_STRSTR $ac_have_decl
9058 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
9059 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
9065 cat >>confdefs.h <<_ACEOF
9066 #define HAVE_DECL_GETOPT $ac_have_decl
9068 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9069 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
9075 cat >>confdefs.h <<_ACEOF
9076 #define HAVE_DECL_SNPRINTF $ac_have_decl
9078 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9079 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
9085 cat >>confdefs.h <<_ACEOF
9086 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9091 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9092 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9106 if ac_fn_c_try_link "$LINENO"; then :
9107 am_cv_val_LC_MESSAGES=yes
9109 am_cv_val_LC_MESSAGES=no
9111 rm -f core conftest.err conftest.$ac_objext \
9112 conftest$ac_exeext conftest.$ac_ext
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9115 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9116 if test $am_cv_val_LC_MESSAGES = yes; then
9118 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9123 # ----------------------- #
9124 # Checks for structures. #
9125 # ----------------------- #
9127 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9128 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9130 cat >>confdefs.h <<_ACEOF
9131 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9136 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9137 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9139 cat >>confdefs.h <<_ACEOF
9140 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9147 # ------------------ #
9148 # Checks for types. #
9149 # ------------------ #
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9152 $as_echo_n "checking return type of signal handlers... " >&6; }
9153 if test "${ac_cv_type_signal+set}" = set; then :
9154 $as_echo_n "(cached) " >&6
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 #include <sys/types.h>
9164 return *(signal (0, 0)) (0) == 1;
9169 if ac_fn_c_try_compile "$LINENO"; then :
9170 ac_cv_type_signal=int
9172 ac_cv_type_signal=void
9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9177 $as_echo "$ac_cv_type_signal" >&6; }
9179 cat >>confdefs.h <<_ACEOF
9180 #define RETSIGTYPE $ac_cv_type_signal
9184 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9185 #include <sys/socket.h>
9188 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9190 cat >>confdefs.h <<_ACEOF
9191 #define HAVE_SOCKLEN_T 1
9198 # ------------------------------------- #
9199 # Checks for compiler characteristics. #
9200 # ------------------------------------- #
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9203 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9204 if test "${ac_cv_c_const+set}" = set; then :
9205 $as_echo_n "(cached) " >&6
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9213 /* FIXME: Include the comments suggested by Paul. */
9215 /* Ultrix mips cc rejects this. */
9216 typedef int charset[2];
9218 /* SunOS 4.1.1 cc rejects this. */
9219 char const *const *pcpcc;
9221 /* NEC SVR4.0.2 mips cc rejects this. */
9222 struct point {int x, y;};
9223 static struct point const zero = {0,0};
9224 /* AIX XL C 1.02.0.0 rejects this.
9225 It does not let you subtract one const X* pointer from another in
9226 an arm of an if-expression whose if-part is not a constant
9228 const char *g = "string";
9229 pcpcc = &g + (g ? g-g : 0);
9230 /* HPUX 7.0 cc rejects these. */
9232 ppc = (char**) pcpcc;
9233 pcpcc = (char const *const *) ppc;
9234 { /* SCO 3.2v4 cc rejects this. */
9236 char const *s = 0 ? (char *) 0 : (char const *) 0;
9241 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9243 const int *foo = &x[0];
9246 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9247 typedef const int *iptr;
9251 { /* AIX XL C 1.02.0.0 rejects this saying
9252 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9253 struct s { int j; const int *ap[3]; };
9254 struct s *b; b->j = 5;
9256 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9260 return !cs[0] && !zero.x;
9267 if ac_fn_c_try_compile "$LINENO"; then :
9272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9275 $as_echo "$ac_cv_c_const" >&6; }
9276 if test $ac_cv_c_const = no; then
9278 $as_echo "#define const /**/" >>confdefs.h
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9283 $as_echo_n "checking for inline... " >&6; }
9284 if test "${ac_cv_c_inline+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9288 for ac_kw in inline __inline__ __inline; do
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9293 static $ac_kw foo_t static_foo () {return 0; }
9294 $ac_kw foo_t foo () {return 0; }
9298 if ac_fn_c_try_compile "$LINENO"; then :
9299 ac_cv_c_inline=$ac_kw
9301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302 test "$ac_cv_c_inline" != no && break
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9307 $as_echo "$ac_cv_c_inline" >&6; }
9309 case $ac_cv_c_inline in
9312 case $ac_cv_c_inline in
9314 *) ac_val=$ac_cv_c_inline;;
9316 cat >>confdefs.h <<_ACEOF
9318 #define inline $ac_val
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9325 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9326 if test "${ac_cv_c_bigendian+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9329 ac_cv_c_bigendian=unknown
9330 # See if we're dealing with a universal compiler.
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9333 #ifndef __APPLE_CC__
9334 not a universal capable compiler
9339 if ac_fn_c_try_compile "$LINENO"; then :
9341 # Check for potential -arch flags. It is not universal unless
9342 # there are at least two -arch flags with different values.
9345 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9346 if test -n "$ac_prev"; then
9348 i?86 | x86_64 | ppc | ppc64)
9349 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9352 ac_cv_c_bigendian=universal
9358 elif test "x$ac_word" = "x-arch"; then
9363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364 if test $ac_cv_c_bigendian = unknown; then
9365 # See if sys/param.h defines the BYTE_ORDER macro.
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 #include <sys/types.h>
9369 #include <sys/param.h>
9374 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9375 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9384 if ac_fn_c_try_compile "$LINENO"; then :
9385 # It does; now see whether it defined to BIG_ENDIAN or not.
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <sys/types.h>
9389 #include <sys/param.h>
9394 #if BYTE_ORDER != BIG_ENDIAN
9402 if ac_fn_c_try_compile "$LINENO"; then :
9403 ac_cv_c_bigendian=yes
9405 ac_cv_c_bigendian=no
9407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 if test $ac_cv_c_bigendian = unknown; then
9412 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9420 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9428 if ac_fn_c_try_compile "$LINENO"; then :
9429 # It does; now see whether it defined to _BIG_ENDIAN or not.
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9445 if ac_fn_c_try_compile "$LINENO"; then :
9446 ac_cv_c_bigendian=yes
9448 ac_cv_c_bigendian=no
9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9454 if test $ac_cv_c_bigendian = unknown; then
9455 # Compile a test program.
9456 if test "$cross_compiling" = yes; then :
9457 # Try to guess by grepping values from an object file.
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 short int ascii_mm[] =
9461 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9462 short int ascii_ii[] =
9463 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9464 int use_ascii (int i) {
9465 return ascii_mm[i] + ascii_ii[i];
9467 short int ebcdic_ii[] =
9468 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9469 short int ebcdic_mm[] =
9470 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9471 int use_ebcdic (int i) {
9472 return ebcdic_mm[i] + ebcdic_ii[i];
9479 return use_ascii (foo) == use_ebcdic (foo);
9484 if ac_fn_c_try_compile "$LINENO"; then :
9485 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9486 ac_cv_c_bigendian=yes
9488 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9489 if test "$ac_cv_c_bigendian" = unknown; then
9490 ac_cv_c_bigendian=no
9492 # finding both strings is unlikely to happen, but who knows?
9493 ac_cv_c_bigendian=unknown
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 $ac_includes_default
9506 /* Are we little or big endian? From Harbison&Steele. */
9510 char c[sizeof (long int)];
9513 return u.c[sizeof (long int) - 1] == 1;
9519 if ac_fn_c_try_run "$LINENO"; then :
9520 ac_cv_c_bigendian=no
9522 ac_cv_c_bigendian=yes
9524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9525 conftest.$ac_objext conftest.beam conftest.$ac_ext
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9531 $as_echo "$ac_cv_c_bigendian" >&6; }
9532 case $ac_cv_c_bigendian in #(
9534 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9540 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9544 as_fn_error "unknown endianness
9545 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9549 # ------------------------------ #
9550 # Checks for library functions. #
9551 # ------------------------------ #
9553 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9554 # for constant arguments. Useless!
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9556 $as_echo_n "checking for working alloca.h... " >&6; }
9557 if test "${ac_cv_working_alloca_h+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9566 char *p = (char *) alloca (2 * sizeof (int));
9572 if ac_fn_c_try_link "$LINENO"; then :
9573 ac_cv_working_alloca_h=yes
9575 ac_cv_working_alloca_h=no
9577 rm -f core conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9581 $as_echo "$ac_cv_working_alloca_h" >&6; }
9582 if test $ac_cv_working_alloca_h = yes; then
9584 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9589 $as_echo_n "checking for alloca... " >&6; }
9590 if test "${ac_cv_func_alloca_works+set}" = set; then :
9591 $as_echo_n "(cached) " >&6
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9596 # define alloca __builtin_alloca
9599 # include <malloc.h>
9600 # define alloca _alloca
9602 # ifdef HAVE_ALLOCA_H
9603 # include <alloca.h>
9608 # ifndef alloca /* predefined by HP cc +Olibcalls */
9619 char *p = (char *) alloca (1);
9625 if ac_fn_c_try_link "$LINENO"; then :
9626 ac_cv_func_alloca_works=yes
9628 ac_cv_func_alloca_works=no
9630 rm -f core conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9634 $as_echo "$ac_cv_func_alloca_works" >&6; }
9636 if test $ac_cv_func_alloca_works = yes; then
9638 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9641 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9642 # that cause trouble. Some versions do not even contain alloca or
9643 # contain a buggy version. If you still want to use their alloca,
9644 # use ar to extract alloca.o from them instead of compiling alloca.c.
9646 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9648 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9652 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9653 if test "${ac_cv_os_cray+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 #if defined CRAY && ! defined CRAY2
9665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9666 $EGREP "webecray" >/dev/null 2>&1; then :
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9675 $as_echo "$ac_cv_os_cray" >&6; }
9676 if test $ac_cv_os_cray = yes; then
9677 for ac_func in _getb67 GETB67 getb67; do
9678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9679 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9680 eval as_val=\$$as_ac_var
9681 if test "x$as_val" = x""yes; then :
9683 cat >>confdefs.h <<_ACEOF
9684 #define CRAY_STACKSEG_END $ac_func
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9694 $as_echo_n "checking stack direction for C alloca... " >&6; }
9695 if test "${ac_cv_c_stack_direction+set}" = set; then :
9696 $as_echo_n "(cached) " >&6
9698 if test "$cross_compiling" = yes; then :
9699 ac_cv_c_stack_direction=0
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9703 $ac_includes_default
9705 find_stack_direction ()
9707 static char *addr = 0;
9712 return find_stack_direction ();
9715 return (&dummy > addr) ? 1 : -1;
9721 return find_stack_direction () < 0;
9724 if ac_fn_c_try_run "$LINENO"; then :
9725 ac_cv_c_stack_direction=1
9727 ac_cv_c_stack_direction=-1
9729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9730 conftest.$ac_objext conftest.beam conftest.$ac_ext
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9735 $as_echo "$ac_cv_c_stack_direction" >&6; }
9736 cat >>confdefs.h <<_ACEOF
9737 #define STACK_DIRECTION $ac_cv_c_stack_direction
9743 for ac_header in stdlib.h unistd.h
9745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9746 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9747 eval as_val=\$$as_ac_Header
9748 if test "x$as_val" = x""yes; then :
9749 cat >>confdefs.h <<_ACEOF
9750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9757 for ac_func in getpagesize
9759 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9760 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9761 cat >>confdefs.h <<_ACEOF
9762 #define HAVE_GETPAGESIZE 1
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9769 $as_echo_n "checking for working mmap... " >&6; }
9770 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9773 if test "$cross_compiling" = yes; then :
9774 ac_cv_func_mmap_fixed_mapped=no
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 $ac_includes_default
9779 /* malloc might have been renamed as rpl_malloc. */
9782 /* Thanks to Mike Haertel and Jim Avera for this test.
9783 Here is a matrix of mmap possibilities:
9784 mmap private not fixed
9785 mmap private fixed at somewhere currently unmapped
9786 mmap private fixed at somewhere already mapped
9787 mmap shared not fixed
9788 mmap shared fixed at somewhere currently unmapped
9789 mmap shared fixed at somewhere already mapped
9790 For private mappings, we should verify that changes cannot be read()
9791 back from the file, nor mmap's back from the file at a different
9792 address. (There have been systems where private was not correctly
9793 implemented like the infamous i386 svr4.0, and systems where the
9794 VM page cache was not coherent with the file system buffer cache
9795 like early versions of FreeBSD and possibly contemporary NetBSD.)
9796 For shared mappings, we should conversely verify that changes get
9797 propagated back to all the places they're supposed to be.
9799 Grep wants private fixed already mapped.
9800 The main things grep needs to know about mmap are:
9801 * does it exist and is it safe to write into the mmap'd area
9802 * how to use it (BSD variants) */
9805 #include <sys/mman.h>
9807 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9811 /* This mess was copied from the GNU getpagesize.h. */
9812 #ifndef HAVE_GETPAGESIZE
9813 /* Assume that all systems that can run configure have sys/param.h. */
9814 # ifndef HAVE_SYS_PARAM_H
9815 # define HAVE_SYS_PARAM_H 1
9818 # ifdef _SC_PAGESIZE
9819 # define getpagesize() sysconf(_SC_PAGESIZE)
9820 # else /* no _SC_PAGESIZE */
9821 # ifdef HAVE_SYS_PARAM_H
9822 # include <sys/param.h>
9823 # ifdef EXEC_PAGESIZE
9824 # define getpagesize() EXEC_PAGESIZE
9825 # else /* no EXEC_PAGESIZE */
9827 # define getpagesize() NBPG * CLSIZE
9830 # endif /* no CLSIZE */
9831 # else /* no NBPG */
9833 # define getpagesize() NBPC
9834 # else /* no NBPC */
9836 # define getpagesize() PAGESIZE
9837 # endif /* PAGESIZE */
9838 # endif /* no NBPC */
9839 # endif /* no NBPG */
9840 # endif /* no EXEC_PAGESIZE */
9841 # else /* no HAVE_SYS_PARAM_H */
9842 # define getpagesize() 8192 /* punt totally */
9843 # endif /* no HAVE_SYS_PARAM_H */
9844 # endif /* no _SC_PAGESIZE */
9846 #endif /* no HAVE_GETPAGESIZE */
9851 char *data, *data2, *data3;
9855 pagesize = getpagesize ();
9857 /* First, make a file with some known garbage in it. */
9858 data = (char *) malloc (pagesize);
9861 for (i = 0; i < pagesize; ++i)
9862 *(data + i) = rand ();
9864 fd = creat ("conftest.mmap", 0600);
9867 if (write (fd, data, pagesize) != pagesize)
9871 /* Next, try to mmap the file at a fixed address which already has
9872 something else allocated at it. If we can, also make sure that
9873 we see the same garbage. */
9874 fd = open ("conftest.mmap", O_RDWR);
9877 data2 = (char *) malloc (2 * pagesize);
9880 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9881 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9882 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9884 for (i = 0; i < pagesize; ++i)
9885 if (*(data + i) != *(data2 + i))
9888 /* Finally, make sure that changes to the mapped area do not
9889 percolate back to the file as seen by read(). (This is a bug on
9890 some variants of i386 svr4.0.) */
9891 for (i = 0; i < pagesize; ++i)
9892 *(data2 + i) = *(data2 + i) + 1;
9893 data3 = (char *) malloc (pagesize);
9896 if (read (fd, data3, pagesize) != pagesize)
9898 for (i = 0; i < pagesize; ++i)
9899 if (*(data + i) != *(data3 + i))
9905 if ac_fn_c_try_run "$LINENO"; then :
9906 ac_cv_func_mmap_fixed_mapped=yes
9908 ac_cv_func_mmap_fixed_mapped=no
9910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9911 conftest.$ac_objext conftest.beam conftest.$ac_ext
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9916 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9917 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9919 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9924 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9925 if test "x$ac_cv_type_pid_t" = x""yes; then :
9929 cat >>confdefs.h <<_ACEOF
9935 for ac_header in vfork.h
9937 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9938 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9939 cat >>confdefs.h <<_ACEOF
9940 #define HAVE_VFORK_H 1
9947 for ac_func in fork vfork
9949 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9950 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9951 eval as_val=\$$as_ac_var
9952 if test "x$as_val" = x""yes; then :
9953 cat >>confdefs.h <<_ACEOF
9954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9960 if test "x$ac_cv_func_fork" = xyes; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9962 $as_echo_n "checking for working fork... " >&6; }
9963 if test "${ac_cv_func_fork_works+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
9966 if test "$cross_compiling" = yes; then :
9967 ac_cv_func_fork_works=cross
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9971 $ac_includes_default
9976 /* By Ruediger Kuhlmann. */
9983 if ac_fn_c_try_run "$LINENO"; then :
9984 ac_cv_func_fork_works=yes
9986 ac_cv_func_fork_works=no
9988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9989 conftest.$ac_objext conftest.beam conftest.$ac_ext
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9994 $as_echo "$ac_cv_func_fork_works" >&6; }
9997 ac_cv_func_fork_works=$ac_cv_func_fork
9999 if test "x$ac_cv_func_fork_works" = xcross; then
10001 *-*-amigaos* | *-*-msdosdjgpp*)
10002 # Override, as these systems have only a dummy fork() stub
10003 ac_cv_func_fork_works=no
10006 ac_cv_func_fork_works=yes
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10010 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10012 ac_cv_func_vfork_works=$ac_cv_func_vfork
10013 if test "x$ac_cv_func_vfork" = xyes; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10015 $as_echo_n "checking for working vfork... " >&6; }
10016 if test "${ac_cv_func_vfork_works+set}" = set; then :
10017 $as_echo_n "(cached) " >&6
10019 if test "$cross_compiling" = yes; then :
10020 ac_cv_func_vfork_works=cross
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10024 /* Thanks to Paul Eggert for this test. */
10025 $ac_includes_default
10026 #include <sys/wait.h>
10027 #ifdef HAVE_VFORK_H
10028 # include <vfork.h>
10030 /* On some sparc systems, changes by the child to local and incoming
10031 argument registers are propagated back to the parent. The compiler
10032 is told about this with #include <vfork.h>, but some compilers
10033 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10034 static variable whose address is put into a register that is
10035 clobbered by the vfork. */
10038 sparc_address_test (int arg)
10040 sparc_address_test (arg) int arg;
10043 static pid_t child;
10061 pid_t parent = getpid ();
10064 sparc_address_test (0);
10069 /* Here is another test for sparc vfork register problems. This
10070 test uses lots of local variables, at least as many local
10071 variables as main has allocated so far including compiler
10072 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10073 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10074 reuse the register of parent for one of the local variables,
10075 since it will think that parent can't possibly be used any more
10076 in this routine. Assigning to the local variable will thus
10077 munge parent in the parent process. */
10079 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10080 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10081 /* Convince the compiler that p..p7 are live; otherwise, it might
10082 use the same hardware register for all 8 local variables. */
10083 if (p != p1 || p != p2 || p != p3 || p != p4
10084 || p != p5 || p != p6 || p != p7)
10087 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10088 from child file descriptors. If the child closes a descriptor
10089 before it execs or exits, this munges the parent's descriptor
10090 as well. Test for this by closing stdout in the child. */
10091 _exit(close(fileno(stdout)) != 0);
10096 while (wait(&status) != child)
10099 /* Was there some problem with vforking? */
10102 /* Did the child fail? (This shouldn't happen.) */
10105 /* Did the vfork/compiler bug occur? */
10106 || parent != getpid()
10108 /* Did the file descriptor bug occur? */
10109 || fstat(fileno(stdout), &st) != 0
10114 if ac_fn_c_try_run "$LINENO"; then :
10115 ac_cv_func_vfork_works=yes
10117 ac_cv_func_vfork_works=no
10119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10120 conftest.$ac_objext conftest.beam conftest.$ac_ext
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10125 $as_echo "$ac_cv_func_vfork_works" >&6; }
10128 if test "x$ac_cv_func_fork_works" = xcross; then
10129 ac_cv_func_vfork_works=$ac_cv_func_vfork
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10131 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10134 if test "x$ac_cv_func_vfork_works" = xyes; then
10136 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10140 $as_echo "#define vfork fork" >>confdefs.h
10143 if test "x$ac_cv_func_fork_works" = xyes; then
10145 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10149 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
10150 pipe poll pread pread64 pwrite readlink resize_term \
10151 sbrk setpgid setpgrp setsid \
10152 sigaction sigprocmask sigsetmask socketpair syscall \
10153 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10154 setrlimit getrlimit posix_madvise waitpid lstat
10156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10158 eval as_val=\$$as_ac_var
10159 if test "x$as_val" = x""yes; then :
10160 cat >>confdefs.h <<_ACEOF
10161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10169 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10170 if test "${am_cv_langinfo_codeset+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175 #include <langinfo.h>
10179 char* cs = nl_langinfo(CODESET);
10184 if ac_fn_c_try_link "$LINENO"; then :
10185 am_cv_langinfo_codeset=yes
10187 am_cv_langinfo_codeset=no
10189 rm -f core conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10194 $as_echo "$am_cv_langinfo_codeset" >&6; }
10195 if test $am_cv_langinfo_codeset = yes; then
10197 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10202 # Check the return and argument types of ptrace. No canned test for
10203 # this, so roll our own.
10204 gdb_ptrace_headers='
10205 #if HAVE_SYS_TYPES_H
10206 # include <sys/types.h>
10208 #if HAVE_SYS_PTRACE_H
10209 # include <sys/ptrace.h>
10212 # include <unistd.h>
10215 # There is no point in checking if we don't have a prototype.
10216 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10218 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
10224 cat >>confdefs.h <<_ACEOF
10225 #define HAVE_DECL_PTRACE $ac_have_decl
10227 if test $ac_have_decl = 1; then :
10231 : ${gdb_cv_func_ptrace_ret='int'}
10232 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10236 # Check return type. Varargs (used on GNU/Linux) conflict with the
10237 # empty argument list, so check for that explicitly.
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10239 $as_echo_n "checking return type of ptrace... " >&6; }
10240 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10241 $as_echo_n "(cached) " >&6
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 $gdb_ptrace_headers
10249 extern long ptrace (enum __ptrace_request, ...);
10254 if ac_fn_c_try_compile "$LINENO"; then :
10255 gdb_cv_func_ptrace_ret='long'
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259 $gdb_ptrace_headers
10263 extern int ptrace ();
10268 if ac_fn_c_try_compile "$LINENO"; then :
10269 gdb_cv_func_ptrace_ret='int'
10271 gdb_cv_func_ptrace_ret='long'
10273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10278 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10280 cat >>confdefs.h <<_ACEOF
10281 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10284 # Check argument types.
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10286 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10287 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 $gdb_ptrace_headers
10297 extern long ptrace (enum __ptrace_request, ...);
10302 if ac_fn_c_try_compile "$LINENO"; then :
10303 gdb_cv_func_ptrace_args='int,int,long,long'
10306 for gdb_arg1 in 'int' 'long'; do
10307 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10308 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10309 for gdb_arg4 in 'int' 'long'; do
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10312 $gdb_ptrace_headers
10317 extern $gdb_cv_func_ptrace_ret
10318 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10324 if ac_fn_c_try_compile "$LINENO"; then :
10325 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10329 for gdb_arg5 in 'int *' 'int' 'long'; do
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332 $gdb_ptrace_headers
10337 extern $gdb_cv_func_ptrace_ret
10338 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10344 if ac_fn_c_try_compile "$LINENO"; then :
10346 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10355 # Provide a safe default value.
10356 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10362 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10363 ac_save_IFS=$IFS; IFS=','
10364 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10368 cat >>confdefs.h <<_ACEOF
10369 #define PTRACE_TYPE_ARG3 $3
10372 if test -n "$5"; then
10374 cat >>confdefs.h <<_ACEOF
10375 #define PTRACE_TYPE_ARG5 $5
10380 if test "$cross_compiling" = no; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10382 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10383 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10386 if test "$cross_compiling" = yes; then :
10387 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10391 $ac_includes_default
10395 /* If this system has a BSD-style setpgrp which takes arguments,
10396 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10397 exit successfully. */
10398 return setpgrp (1,1) != -1;
10403 if ac_fn_c_try_run "$LINENO"; then :
10404 ac_cv_func_setpgrp_void=no
10406 ac_cv_func_setpgrp_void=yes
10408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10409 conftest.$ac_objext conftest.beam conftest.$ac_ext
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10414 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10415 if test $ac_cv_func_setpgrp_void = yes; then
10417 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10423 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10424 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10430 #include <unistd.h>
10436 if (setpgrp(1,1) == -1)
10445 if ac_fn_c_try_compile "$LINENO"; then :
10446 ac_cv_func_setpgrp_void=no
10448 ac_cv_func_setpgrp_void=yes
10450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10453 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10454 if test $ac_cv_func_setpgrp_void = yes; then
10455 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10460 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
10461 # since sigsetjmp might only be defined as a macro.
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10463 $as_echo_n "checking for sigsetjmp... " >&6; }
10464 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10470 #include <setjmp.h>
10475 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10480 if ac_fn_c_try_compile "$LINENO"; then :
10481 gdb_cv_func_sigsetjmp=yes
10483 gdb_cv_func_sigsetjmp=no
10485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10488 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10489 if test $gdb_cv_func_sigsetjmp = yes; then
10491 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10495 # Assume we'll default to using the included libiberty regex.
10496 gdb_use_included_regex=yes
10498 # However, if the system regex is GNU regex, then default to *not*
10499 # using the included regex.
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10501 $as_echo_n "checking for GNU regex... " >&6; }
10502 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10503 $as_echo_n "(cached) " >&6
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507 #include <gnu-versions.h>
10511 #define REGEX_INTERFACE_VERSION 1
10512 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10513 # error "Version mismatch"
10519 if ac_fn_c_try_compile "$LINENO"; then :
10520 gdb_cv_have_gnu_regex=yes
10522 gdb_cv_have_gnu_regex=no
10524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10527 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10528 if test $gdb_cv_have_gnu_regex = yes; then
10529 gdb_use_included_regex=no
10533 # Check whether --with-included-regex was given.
10534 if test "${with_included_regex+set}" = set; then :
10535 withval=$with_included_regex; gdb_with_regex=$withval
10537 gdb_with_regex=$gdb_use_included_regex
10540 if test "$gdb_with_regex" = yes; then
10542 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10546 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10547 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10548 #include <sys/proc.h>
10551 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
10553 cat >>confdefs.h <<_ACEOF
10554 #define HAVE_STRUCT_THREAD_TD_PCB 1
10561 # See if <sys/lwp.h> defines `struct lwp`.
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10563 $as_echo_n "checking for struct lwp... " >&6; }
10564 if test "${gdb_cv_struct_lwp+set}" = set; then :
10565 $as_echo_n "(cached) " >&6
10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10569 #include <sys/param.h>
10570 #include <sys/lwp.h>
10579 if ac_fn_c_try_compile "$LINENO"; then :
10580 gdb_cv_struct_lwp=yes
10582 gdb_cv_struct_lwp=no
10584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10587 $as_echo "$gdb_cv_struct_lwp" >&6; }
10588 if test $gdb_cv_struct_lwp = yes; then
10590 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10594 # See if <machine/reg.h> degines `struct reg'.
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10596 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10597 if test "${gdb_cv_struct_reg+set}" = set; then :
10598 $as_echo_n "(cached) " >&6
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10602 #include <sys/types.h>
10603 #include <machine/reg.h>
10612 if ac_fn_c_try_compile "$LINENO"; then :
10613 gdb_cv_struct_reg=yes
10615 gdb_cv_struct_reg=no
10617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
10620 $as_echo "$gdb_cv_struct_reg" >&6; }
10621 if test $gdb_cv_struct_reg = yes; then
10623 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10627 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10628 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10629 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10631 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
10633 cat >>confdefs.h <<_ACEOF
10634 #define HAVE_STRUCT_REG_R_FS 1
10639 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10641 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
10643 cat >>confdefs.h <<_ACEOF
10644 #define HAVE_STRUCT_REG_R_GS 1
10651 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
10652 # Older amd64 Linux's don't have the fs_base and gs_base members of
10653 # `struct user_regs_struct'.
10654 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>
10656 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
10658 cat >>confdefs.h <<_ACEOF
10659 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
10664 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>
10666 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
10668 cat >>confdefs.h <<_ACEOF
10669 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
10676 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10678 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10679 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
10680 $as_echo_n "(cached) " >&6
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684 #include <sys/ptrace.h>
10693 if ac_fn_c_try_compile "$LINENO"; then :
10694 gdb_cv_have_ptrace_getregs=yes
10696 gdb_cv_have_ptrace_getregs=no
10698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
10702 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
10703 if test $gdb_cv_have_ptrace_getregs = yes; then
10705 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10709 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10711 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10712 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10717 #include <sys/ptrace.h>
10726 if ac_fn_c_try_compile "$LINENO"; then :
10727 gdb_cv_have_ptrace_getfpxregs=yes
10729 gdb_cv_have_ptrace_getfpxregs=no
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
10735 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
10736 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
10738 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10742 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
10744 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
10745 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10750 #include <sys/types.h>
10751 #include <sys/ptrace.h>
10760 if ac_fn_c_try_compile "$LINENO"; then :
10761 gdb_cv_have_pt_getdbregs=yes
10763 gdb_cv_have_pt_getdbregs=no
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
10769 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
10770 if test $gdb_cv_have_pt_getdbregs = yes; then
10772 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
10776 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
10778 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
10779 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
10780 $as_echo_n "(cached) " >&6
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #include <sys/types.h>
10785 #include <sys/ptrace.h>
10794 if ac_fn_c_try_compile "$LINENO"; then :
10795 gdb_cv_have_pt_getxmmregs=yes
10797 gdb_cv_have_pt_getxmmregs=no
10799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
10803 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
10804 if test $gdb_cv_have_pt_getxmmregs = yes; then
10806 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
10810 # Detect which type of /proc is in use, such as for Solaris.
10812 if test "${target}" = "${host}"; then
10814 *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
10816 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10819 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
10821 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10825 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
10827 $as_echo "#define _KMEMUSER 1" >>confdefs.h
10833 if test "$ac_cv_header_sys_procfs_h" = yes; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
10835 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
10836 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
10837 $as_echo_n "(cached) " >&6
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10843 /* Needed for new procfs interface on sparc-solaris. */
10844 #define _STRUCTURED_PROC 1
10845 #include <sys/procfs.h>
10854 if ac_fn_c_try_compile "$LINENO"; then :
10855 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10857 bfd_cv_have_sys_procfs_type_pstatus_t=no
10860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10865 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10869 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
10872 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
10873 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
10874 $as_echo_n "(cached) " >&6
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10880 /* Needed for new procfs interface on sparc-solaris. */
10881 #define _STRUCTURED_PROC 1
10882 #include <sys/procfs.h>
10891 if ac_fn_c_try_compile "$LINENO"; then :
10892 bfd_cv_have_sys_procfs_type_prrun_t=yes
10894 bfd_cv_have_sys_procfs_type_prrun_t=no
10897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
10902 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
10906 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10909 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10910 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
10911 $as_echo_n "(cached) " >&6
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10917 /* Needed for new procfs interface on sparc-solaris. */
10918 #define _STRUCTURED_PROC 1
10919 #include <sys/procfs.h>
10928 if ac_fn_c_try_compile "$LINENO"; then :
10929 bfd_cv_have_sys_procfs_type_gregset_t=yes
10931 bfd_cv_have_sys_procfs_type_gregset_t=no
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10939 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10943 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10946 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10947 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
10948 $as_echo_n "(cached) " >&6
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10954 /* Needed for new procfs interface on sparc-solaris. */
10955 #define _STRUCTURED_PROC 1
10956 #include <sys/procfs.h>
10965 if ac_fn_c_try_compile "$LINENO"; then :
10966 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10968 bfd_cv_have_sys_procfs_type_fpregset_t=no
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10976 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10980 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10983 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10984 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10991 /* Needed for new procfs interface on sparc-solaris. */
10992 #define _STRUCTURED_PROC 1
10993 #include <sys/procfs.h>
11002 if ac_fn_c_try_compile "$LINENO"; then :
11003 bfd_cv_have_sys_procfs_type_prgregset_t=yes
11005 bfd_cv_have_sys_procfs_type_prgregset_t=no
11008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11013 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11017 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11020 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11021 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11028 /* Needed for new procfs interface on sparc-solaris. */
11029 #define _STRUCTURED_PROC 1
11030 #include <sys/procfs.h>
11039 if ac_fn_c_try_compile "$LINENO"; then :
11040 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
11042 bfd_cv_have_sys_procfs_type_prfpregset_t=no
11045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11050 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11054 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11057 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11058 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11065 /* Needed for new procfs interface on sparc-solaris. */
11066 #define _STRUCTURED_PROC 1
11067 #include <sys/procfs.h>
11076 if ac_fn_c_try_compile "$LINENO"; then :
11077 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
11079 bfd_cv_have_sys_procfs_type_prgregset32_t=no
11082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11087 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11091 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
11094 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
11095 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11102 /* Needed for new procfs interface on sparc-solaris. */
11103 #define _STRUCTURED_PROC 1
11104 #include <sys/procfs.h>
11108 prfpregset32_t avar
11113 if ac_fn_c_try_compile "$LINENO"; then :
11114 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
11116 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
11119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
11124 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
11128 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11131 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11132 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11139 /* Needed for new procfs interface on sparc-solaris. */
11140 #define _STRUCTURED_PROC 1
11141 #include <sys/procfs.h>
11150 if ac_fn_c_try_compile "$LINENO"; then :
11151 bfd_cv_have_sys_procfs_type_lwpid_t=yes
11153 bfd_cv_have_sys_procfs_type_lwpid_t=no
11156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11161 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11165 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11168 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11169 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h. */
11176 /* Needed for new procfs interface on sparc-solaris. */
11177 #define _STRUCTURED_PROC 1
11178 #include <sys/procfs.h>
11187 if ac_fn_c_try_compile "$LINENO"; then :
11188 bfd_cv_have_sys_procfs_type_psaddr_t=yes
11190 bfd_cv_have_sys_procfs_type_psaddr_t=no
11193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11198 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11202 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11205 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11206 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h. */
11213 /* Needed for new procfs interface on sparc-solaris. */
11214 #define _STRUCTURED_PROC 1
11215 #include <sys/procfs.h>
11224 if ac_fn_c_try_compile "$LINENO"; then :
11225 bfd_cv_have_sys_procfs_type_prsysent_t=yes
11227 bfd_cv_have_sys_procfs_type_prsysent_t=no
11230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11235 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11239 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11242 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11243 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11244 $as_echo_n "(cached) " >&6
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11250 /* Needed for new procfs interface on sparc-solaris. */
11251 #define _STRUCTURED_PROC 1
11252 #include <sys/procfs.h>
11261 if ac_fn_c_try_compile "$LINENO"; then :
11262 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
11264 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
11267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11272 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11276 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11279 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11280 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11287 /* Needed for new procfs interface on sparc-solaris. */
11288 #define _STRUCTURED_PROC 1
11289 #include <sys/procfs.h>
11293 pr_sigaction64_t avar
11298 if ac_fn_c_try_compile "$LINENO"; then :
11299 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
11301 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11307 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11309 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11313 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11316 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11317 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11318 $as_echo_n "(cached) " >&6
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11324 /* Needed for new procfs interface on sparc-solaris. */
11325 #define _STRUCTURED_PROC 1
11326 #include <sys/procfs.h>
11330 pr_siginfo64_t avar
11335 if ac_fn_c_try_compile "$LINENO"; then :
11336 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
11338 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
11341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11346 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11350 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11356 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11358 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11359 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11362 if test "$cross_compiling" = yes; then :
11363 gdb_cv_prfpregset_t_broken=yes
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367 #include <sys/procfs.h>
11370 if (sizeof (prfpregset_t) == sizeof (void *))
11375 if ac_fn_c_try_run "$LINENO"; then :
11376 gdb_cv_prfpregset_t_broken=no
11378 gdb_cv_prfpregset_t_broken=yes
11380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11381 conftest.$ac_objext conftest.beam conftest.$ac_ext
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11387 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11388 if test $gdb_cv_prfpregset_t_broken = yes; then
11390 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11397 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11398 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11399 $as_echo_n "(cached) " >&6
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403 #include <unistd.h>
11404 #include <sys/types.h>
11405 #include <sys/procfs.h>
11412 dummy = ioctl(0, PIOCSET, &dummy);
11418 if ac_fn_c_try_compile "$LINENO"; then :
11419 gdb_cv_have_procfs_piocset=yes
11421 gdb_cv_have_procfs_piocset=no
11423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11427 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11428 if test $gdb_cv_have_procfs_piocset = yes; then
11430 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
11435 if test ${host} = ${target} ; then
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
11438 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
11439 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11448 struct link_map lm; (void) lm.l_addr;
11453 if ac_fn_c_try_compile "$LINENO"; then :
11454 gdb_cv_have_struct_link_map_with_l_members=yes
11456 gdb_cv_have_struct_link_map_with_l_members=no
11458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
11462 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
11463 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
11465 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
11471 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
11472 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
11473 $as_echo_n "(cached) " >&6
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477 #include <sys/types.h>
11482 struct link_map lm; (void) lm.lm_addr;
11487 if ac_fn_c_try_compile "$LINENO"; then :
11488 gdb_cv_have_struct_link_map_with_lm_members=yes
11490 gdb_cv_have_struct_link_map_with_lm_members=no
11492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
11496 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
11497 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
11499 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
11505 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
11506 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11511 #include <sys/types.h>
11512 #ifdef HAVE_NLIST_H
11519 struct so_map lm; (void) lm.som_addr;
11524 if ac_fn_c_try_compile "$LINENO"; then :
11525 gdb_cv_have_struct_so_map_with_som_members=yes
11527 gdb_cv_have_struct_so_map_with_som_members=no
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
11533 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
11534 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
11536 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
11542 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
11543 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
11544 $as_echo_n "(cached) " >&6
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11549 #include <sys/link.h>
11553 struct link_map32 l;
11558 if ac_fn_c_try_compile "$LINENO"; then :
11559 gdb_cv_have_struct_link_map32=yes
11561 gdb_cv_have_struct_link_map32=no
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
11567 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
11568 if test $gdb_cv_have_struct_link_map32 = yes; then
11570 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
11573 $as_echo "#define _SYSCALL32 1" >>confdefs.h
11578 # Check if the compiler supports the `long long' type.
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11581 $as_echo_n "checking for long long support in compiler... " >&6; }
11582 if test "${gdb_cv_c_long_long+set}" = set; then :
11583 $as_echo_n "(cached) " >&6
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11587 extern long long foo;
11591 switch (foo & 2) { case 0: return 1; }
11596 if ac_fn_c_try_compile "$LINENO"; then :
11597 gdb_cv_c_long_long=yes
11599 gdb_cv_c_long_long=no
11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11604 $as_echo "$gdb_cv_c_long_long" >&6; }
11605 if test $gdb_cv_c_long_long != yes; then
11606 # libdecnumber requires long long.
11607 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
11610 # Check if the compiler and runtime support printing long longs.
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11613 $as_echo_n "checking for long long support in printf... " >&6; }
11614 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11615 $as_echo_n "(cached) " >&6
11617 if test "$cross_compiling" = yes; then :
11618 gdb_cv_printf_has_long_long=no
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11622 $ac_includes_default
11628 l = (l << 16) + 0x0123;
11629 l = (l << 16) + 0x4567;
11630 l = (l << 16) + 0x89ab;
11631 l = (l << 16) + 0xcdef;
11632 sprintf (buf, "0x%016llx", l);
11633 return (strcmp ("0x0123456789abcdef", buf));
11638 if ac_fn_c_try_run "$LINENO"; then :
11639 gdb_cv_printf_has_long_long=yes
11641 gdb_cv_printf_has_long_long=no
11643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11644 conftest.$ac_objext conftest.beam conftest.$ac_ext
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11649 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11650 if test $gdb_cv_printf_has_long_long = yes; then
11652 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11656 # Check if the compiler and runtime support printing decfloats.
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11659 $as_echo_n "checking for decfloat support in printf... " >&6; }
11660 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
11663 if test "$cross_compiling" = yes; then :
11664 gdb_cv_printf_has_decfloat=no
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11668 $ac_includes_default
11673 _Decimal32 d32 = 1.2345df;
11674 _Decimal64 d64 = 1.2345dd;
11675 _Decimal128 d128 = 1.2345dl;
11676 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11677 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11682 if ac_fn_c_try_run "$LINENO"; then :
11683 gdb_cv_printf_has_decfloat=yes
11685 gdb_cv_printf_has_decfloat=no
11687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11688 conftest.$ac_objext conftest.beam conftest.$ac_ext
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11693 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11694 if test $gdb_cv_printf_has_decfloat = yes; then
11696 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11700 # Check if the compiler supports the `long double' type. We can't use
11701 # AC_C_LONG_DOUBLE because that one does additional checks on the
11702 # constants defined in <float.h> that fail on some systems,
11703 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11706 $as_echo_n "checking for long double support in compiler... " >&6; }
11707 if test "${gdb_cv_c_long_double+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11714 if ac_fn_c_try_compile "$LINENO"; then :
11715 gdb_cv_c_long_double=yes
11717 gdb_cv_c_long_double=no
11719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11722 $as_echo "$gdb_cv_c_long_double" >&6; }
11723 if test $gdb_cv_c_long_double = yes; then
11725 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11729 # Check if the compiler and runtime support printing long doubles.
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11732 $as_echo_n "checking for long double support in printf... " >&6; }
11733 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11734 $as_echo_n "(cached) " >&6
11736 if test "$cross_compiling" = yes; then :
11737 gdb_cv_printf_has_long_double=no
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11741 $ac_includes_default
11746 long double f = 3.141592653;
11747 sprintf (buf, "%Lg", f);
11748 return (strncmp ("3.14159", buf, 7));
11753 if ac_fn_c_try_run "$LINENO"; then :
11754 gdb_cv_printf_has_long_double=yes
11756 gdb_cv_printf_has_long_double=no
11758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11759 conftest.$ac_objext conftest.beam conftest.$ac_ext
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11764 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11765 if test $gdb_cv_printf_has_long_double = yes; then
11767 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11771 # Check if the compiler and runtime support scanning long doubles.
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11774 $as_echo_n "checking for long double support in scanf... " >&6; }
11775 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11776 $as_echo_n "(cached) " >&6
11778 if test "$cross_compiling" = yes; then :
11779 gdb_cv_scanf_has_long_double=no
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h. */
11787 char *buf = "3.141592653";
11789 sscanf (buf, "%Lg", &f);
11790 return !(f > 3.14159 && f < 3.14160);
11795 if ac_fn_c_try_run "$LINENO"; then :
11796 gdb_cv_scanf_has_long_double=yes
11798 gdb_cv_scanf_has_long_double=no
11800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11801 conftest.$ac_objext conftest.beam conftest.$ac_ext
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11806 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11807 if test $gdb_cv_scanf_has_long_double = yes; then
11809 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11816 $as_echo_n "checking for -bbigtoc option... " >&6; }
11817 if test "${gdb_cv_bigtoc+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11821 SAVE_LDFLAGS=$LDFLAGS
11824 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11825 *) gdb_cv_bigtoc=-bbigtoc ;;
11828 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11840 if ac_fn_c_try_link "$LINENO"; then :
11845 rm -f core conftest.err conftest.$ac_objext \
11846 conftest$ac_exeext conftest.$ac_ext
11847 LDFLAGS="${SAVE_LDFLAGS}"
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11851 $as_echo "$gdb_cv_bigtoc" >&6; }
11852 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11857 $as_echo_n "checking for the dynamic export flag... " >&6; }
11859 if test "${gdb_native}" = yes; then
11860 # The dynamically loaded libthread_db needs access to symbols in the gdb
11861 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
11862 # may not be supported there.
11863 old_LDFLAGS="$LDFLAGS"
11864 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11865 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11866 LDFLAGS="$LDFLAGS $RDYNAMIC"
11867 if test "${have_libpython}" = no; then
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11879 if ac_fn_c_try_link "$LINENO"; then :
11882 rm -f core conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11885 # Workaround http://bugs.python.org/issue4434 where static
11886 # libpythonX.Y.a would get its symbols required for
11887 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11888 # Problem does not happen for the recommended libpythonX.Y.so linkage.
11889 old_CFLAGS="$CFLAGS"
11890 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
11891 if test "$cross_compiling" = yes; then :
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 #include "${have_libpython}/Python.h"
11902 err = PyRun_SimpleString ("import itertools\n");
11904 return err == 0 ? 0 : 1;
11909 if ac_fn_c_try_run "$LINENO"; then :
11912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11913 conftest.$ac_objext conftest.beam conftest.$ac_ext
11916 CFLAGS="$old_CFLAGS"
11918 LDFLAGS="$old_LDFLAGS"
11920 if $dynamic_list; then
11921 found="-Wl,--dynamic-list"
11922 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11925 RDYNAMIC="-rdynamic"
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11929 $as_echo "$found" >&6; }
11932 if test ${build} = ${host} -a ${host} = ${target} ; then
11935 # See if thread_db library is around for Solaris thread debugging.
11936 # Note that we must explicitly test for version 1 of the library
11937 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11940 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11941 if test -f /usr/lib/libthread_db.so.1 ; then
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943 $as_echo "yes" >&6; }
11945 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11947 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
11948 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
11949 # On SPARC CPUs, we also need to build sparc-sol-thread.
11950 case ${host_cpu} in
11952 CONFIG_OBS="${CONFIG_OBS} sparc-sol-thread.o"
11953 CONFIG_SRCS="${CONFIG_SRCS} sparc-sol-thread.c"
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11957 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11959 $as_echo_n "(cached) " >&6
11961 ac_check_lib_save_LIBS=$LIBS
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11966 /* Override any GCC internal prototype to avoid an error.
11967 Use char because int might match the return type of a GCC
11968 builtin and then its argument prototype would still apply. */
11981 if ac_fn_c_try_link "$LINENO"; then :
11982 ac_cv_lib_dl_dlopen=yes
11984 ac_cv_lib_dl_dlopen=no
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11991 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11992 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11993 cat >>confdefs.h <<_ACEOF
11994 #define HAVE_LIBDL 1
12001 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
12002 # Sun randomly tweaked the prototypes in <proc_service.h>
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12005 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12006 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12013 #include <proc_service.h>
12014 ps_err_e ps_pdwrite
12015 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12025 if ac_fn_c_try_compile "$LINENO"; then :
12026 gdb_cv_proc_service_is_old=no
12028 gdb_cv_proc_service_is_old=yes
12030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12035 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12036 if test $gdb_cv_proc_service_is_old = yes; then
12038 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12048 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12049 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12054 #include <sys/pthdebug.h>
12058 #ifndef PTHDB_VERSION_3
12065 if ac_fn_c_try_compile "$LINENO"; then :
12066 gdb_cv_have_aix_thread_debug=yes
12068 gdb_cv_have_aix_thread_debug=no
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12074 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12075 if test $gdb_cv_have_aix_thread_debug = yes; then
12076 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
12077 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
12078 LIBS="$LIBS -lpthdebug"
12080 # Older versions of AIX do not provide the declaration for
12081 # the getthrds function (it appears that it was introduced
12083 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12085 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
12091 cat >>confdefs.h <<_ACEOF
12092 #define HAVE_DECL_GETTHRDS $ac_have_decl
12101 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12103 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12104 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109 #include <thread_db.h>
12113 int i = TD_NOTALLOC;
12118 if ac_fn_c_try_compile "$LINENO"; then :
12119 gdb_cv_thread_db_h_has_td_notalloc=yes
12121 gdb_cv_thread_db_h_has_td_notalloc=no
12124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12128 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12130 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12131 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12132 $as_echo_n "(cached) " >&6
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #include <thread_db.h>
12140 int i = TD_VERSION;
12145 if ac_fn_c_try_compile "$LINENO"; then :
12146 gdb_cv_thread_db_h_has_td_version=yes
12148 gdb_cv_thread_db_h_has_td_version=no
12151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12155 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12157 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12158 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163 #include <thread_db.h>
12172 if ac_fn_c_try_compile "$LINENO"; then :
12173 gdb_cv_thread_db_h_has_td_notls=yes
12175 gdb_cv_thread_db_h_has_td_notls=no
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12182 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12184 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12186 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12189 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12191 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12194 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12196 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12200 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12202 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12203 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12204 $as_echo_n "(cached) " >&6
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208 #include <sys/syscall.h>
12212 int i = __NR_tkill;
12217 if ac_fn_c_try_compile "$LINENO"; then :
12218 gdb_cv_sys_syscall_h_has_tkill=yes
12220 gdb_cv_sys_syscall_h_has_tkill=no
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12227 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12229 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12231 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12235 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12237 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12243 cat >>confdefs.h <<_ACEOF
12244 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12248 if test "$cross_compiling" = yes; then :
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251 #include <sys/personality.h>
12256 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12257 # define ADDR_NO_RANDOMIZE 0x0040000
12259 /* Test the flag could be set and stays set. */
12260 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12261 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12267 if ac_fn_c_try_link "$LINENO"; then :
12268 have_personality=true
12270 have_personality=false
12272 rm -f core conftest.err conftest.$ac_objext \
12273 conftest$ac_exeext conftest.$ac_ext
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12277 #include <sys/personality.h>
12282 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12283 # define ADDR_NO_RANDOMIZE 0x0040000
12285 /* Test the flag could be set and stays set. */
12286 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12287 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12293 if ac_fn_c_try_run "$LINENO"; then :
12294 have_personality=true
12296 have_personality=false
12298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12299 conftest.$ac_objext conftest.beam conftest.$ac_ext
12302 if $have_personality
12305 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12310 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12311 # except that the argument to --with-sysroot is optional.
12312 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12313 if test "x$with_sysroot" = xyes; then
12314 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
12317 # Check whether --with-sysroot was given.
12318 if test "${with_sysroot+set}" = set; then :
12319 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
12321 TARGET_SYSTEM_ROOT=
12325 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12326 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12327 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
12328 ac_define_dir=`eval echo $ac_define_dir`
12330 cat >>confdefs.h <<_ACEOF
12331 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12337 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12338 if test "x$prefix" = xNONE; then
12339 test_prefix=/usr/local
12341 test_prefix=$prefix
12344 test_prefix=$exec_prefix
12347 case ${ac_define_dir} in
12348 "${test_prefix}"|"${test_prefix}/"*|\
12349 '${exec_prefix}'|'${exec_prefix}/'*)
12354 cat >>confdefs.h <<_ACEOF
12355 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12362 # Check whether --with-system-gdbinit was given.
12363 if test "${with_system_gdbinit+set}" = set; then :
12364 withval=$with_system_gdbinit;
12365 SYSTEM_GDBINIT=$withval
12371 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12372 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12373 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
12374 ac_define_dir=`eval echo $ac_define_dir`
12376 cat >>confdefs.h <<_ACEOF
12377 #define SYSTEM_GDBINIT "$ac_define_dir"
12383 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12384 if test "x$prefix" = xNONE; then
12385 test_prefix=/usr/local
12387 test_prefix=$prefix
12390 test_prefix=$exec_prefix
12393 case ${ac_define_dir} in
12394 "${test_prefix}"|"${test_prefix}/"*|\
12395 '${exec_prefix}'|'${exec_prefix}/'*)
12400 cat >>confdefs.h <<_ACEOF
12401 #define SYSTEM_GDBINIT_RELOCATABLE $value
12407 # Check whether --enable-werror was given.
12408 if test "${enable_werror+set}" = set; then :
12409 enableval=$enable_werror; case "${enableval}" in
12410 yes | y) ERROR_ON_WARNING="yes" ;;
12411 no | n) ERROR_ON_WARNING="no" ;;
12412 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12417 # Enable -Werror by default when using gcc. Turn it off for releases.
12418 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12419 ERROR_ON_WARNING=yes
12423 if test "${ERROR_ON_WARNING}" = yes ; then
12424 WERROR_CFLAGS="-Werror"
12427 # The entries after -Wno-pointer-sign are disabled warnings which may
12428 # be enabled in the future, which can not currently be used to build
12430 # NOTE: If you change this list, remember to update
12431 # gdb/doc/gdbint.texinfo.
12432 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12433 -Wformat-nonliteral -Wno-pointer-sign \
12434 -Wno-unused -Wunused-value -Wunused-function \
12435 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
12436 -Wdeclaration-after-statement -Wempty-body"
12438 # Enable -Wno-format by default when using gcc on mingw since many
12439 # GCC versions complain about %I64.
12441 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
12444 # Check whether --enable-build-warnings was given.
12445 if test "${enable_build_warnings+set}" = set; then :
12446 enableval=$enable_build_warnings; case "${enableval}" in
12448 no) build_warnings="-w";;
12449 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12450 build_warnings="${build_warnings} ${t}";;
12451 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12452 build_warnings="${t} ${build_warnings}";;
12453 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12455 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12456 echo "Setting compiler warning flags = $build_warnings" 6>&1
12459 # Check whether --enable-gdb-build-warnings was given.
12460 if test "${enable_gdb_build_warnings+set}" = set; then :
12461 enableval=$enable_gdb_build_warnings; case "${enableval}" in
12463 no) build_warnings="-w";;
12464 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12465 build_warnings="${build_warnings} ${t}";;
12466 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12467 build_warnings="${t} ${build_warnings}";;
12468 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12470 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12471 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12475 if test "x${build_warnings}" != x -a "x$GCC" = xyes
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12478 $as_echo_n "checking compiler warning flags... " >&6; }
12479 # Separate out the -Werror flag as some files just cannot be
12480 # compiled with it enabled.
12481 for w in ${build_warnings}; do
12483 -Werr*) WERROR_CFLAGS=-Werror ;;
12484 *) # Check that GCC accepts it
12485 saved_CFLAGS="$CFLAGS"
12486 CFLAGS="$CFLAGS $w"
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12498 if ac_fn_c_try_compile "$LINENO"; then :
12499 WARN_CFLAGS="${WARN_CFLAGS} $w"
12501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502 CFLAGS="$saved_CFLAGS"
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12506 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12511 # In the Cygwin environment, we need some additional flags.
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12513 $as_echo_n "checking for cygwin... " >&6; }
12514 if test "${gdb_cv_os_cygwin+set}" = set; then :
12515 $as_echo_n "(cached) " >&6
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12520 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12525 $EGREP "lose" >/dev/null 2>&1; then :
12526 gdb_cv_os_cygwin=yes
12528 gdb_cv_os_cygwin=no
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
12534 $as_echo "$gdb_cv_os_cygwin" >&6; }
12537 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
12539 *go32* ) SER_HARDWIRE=ser-go32.o ;;
12540 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12541 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
12545 # libreadline needs libuser32.a in a cygwin environment
12547 if test x$gdb_cv_os_cygwin = xyes; then
12548 WIN32LIBS="-luser32"
12549 case "${target}" in
12550 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12555 # The ser-tcp.c module requires sockets.
12559 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12561 WIN32LIBS="$WIN32LIBS -lws2_32"
12566 # Add ELF support to GDB, but only if BFD includes ELF support.
12569 OLD_LDFLAGS=$LDFLAGS
12571 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12572 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12573 # always want our bfd.
12574 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12575 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12576 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12577 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12578 if test "$plugins" = "yes"; then
12581 LIBS="-lbfd -liberty $intl $LIBS"
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12583 $as_echo_n "checking for ELF support in BFD... " >&6; }
12584 if test "${gdb_cv_var_elf+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12589 #include <stdlib.h>
12591 #include "elf-bfd.h"
12596 return bfd_get_elf_phdr_upper_bound (NULL);
12601 if ac_fn_c_try_link "$LINENO"; then :
12606 rm -f core conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12610 $as_echo "$gdb_cv_var_elf" >&6; }
12612 LDFLAGS=$OLD_LDFLAGS
12614 if test $gdb_cv_var_elf = yes; then
12615 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
12617 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12619 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12620 if test "$plugins" = "yes"; then
12625 # Add macho support to GDB, but only if BFD includes it.
12628 OLD_LDFLAGS=$LDFLAGS
12630 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12631 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12632 # always want our bfd.
12633 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12634 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12635 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12636 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12637 if test "$plugins" = "yes"; then
12640 LIBS="-lbfd -liberty $intl $LIBS"
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
12642 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
12643 if test "${gdb_cv_var_macho+set}" = set; then :
12644 $as_echo_n "(cached) " >&6
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12648 #include <stdlib.h>
12650 #include "mach-o.h"
12655 return bfd_mach_o_lookup_command (NULL, 0, NULL);
12660 if ac_fn_c_try_link "$LINENO"; then :
12661 gdb_cv_var_macho=yes
12663 gdb_cv_var_macho=no
12665 rm -f core conftest.err conftest.$ac_objext \
12666 conftest$ac_exeext conftest.$ac_ext
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
12669 $as_echo "$gdb_cv_var_macho" >&6; }
12671 LDFLAGS=$OLD_LDFLAGS
12673 if test $gdb_cv_var_macho = yes; then
12674 CONFIG_OBS="$CONFIG_OBS machoread.o"
12677 # Add any host-specific objects to GDB.
12678 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
12680 # If building on ELF, look for lzma support for embedded compressed debug info.
12681 if test $gdb_cv_var_elf = yes; then
12683 # Check whether --with-lzma was given.
12684 if test "${with_lzma+set}" = set; then :
12685 withval=$with_lzma;
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
12691 $as_echo_n "checking whether to use lzma... " >&6; }
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
12693 $as_echo "$with_lzma" >&6; }
12695 if test "${with_lzma}" != no; then
12706 acl_save_prefix="$prefix"
12707 prefix="$acl_final_prefix"
12708 acl_save_exec_prefix="$exec_prefix"
12709 exec_prefix="$acl_final_exec_prefix"
12711 eval additional_includedir=\"$includedir\"
12712 eval additional_libdir=\"$libdir\"
12714 exec_prefix="$acl_save_exec_prefix"
12715 prefix="$acl_save_prefix"
12718 # Check whether --with-liblzma-prefix was given.
12719 if test "${with_liblzma_prefix+set}" = set; then :
12720 withval=$with_liblzma_prefix;
12721 if test "X$withval" = "Xno"; then
12724 if test "X$withval" = "X"; then
12726 acl_save_prefix="$prefix"
12727 prefix="$acl_final_prefix"
12728 acl_save_exec_prefix="$exec_prefix"
12729 exec_prefix="$acl_final_exec_prefix"
12731 eval additional_includedir=\"$includedir\"
12732 eval additional_libdir=\"$libdir\"
12734 exec_prefix="$acl_save_exec_prefix"
12735 prefix="$acl_save_prefix"
12738 additional_includedir="$withval/include"
12739 additional_libdir="$withval/lib"
12750 names_already_handled=
12751 names_next_round='lzma '
12752 while test -n "$names_next_round"; do
12753 names_this_round="$names_next_round"
12755 for name in $names_this_round; do
12757 for n in $names_already_handled; do
12758 if test "$n" = "$name"; then
12759 already_handled=yes
12763 if test -z "$already_handled"; then
12764 names_already_handled="$names_already_handled $name"
12765 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12766 eval value=\"\$HAVE_LIB$uppername\"
12767 if test -n "$value"; then
12768 if test "$value" = yes; then
12769 eval value=\"\$LIB$uppername\"
12770 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
12771 eval value=\"\$LTLIB$uppername\"
12772 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
12781 if test $use_additional = yes; then
12782 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12783 found_dir="$additional_libdir"
12784 found_so="$additional_libdir/lib$name.$shlibext"
12785 if test -f "$additional_libdir/lib$name.la"; then
12786 found_la="$additional_libdir/lib$name.la"
12789 if test -f "$additional_libdir/lib$name.$libext"; then
12790 found_dir="$additional_libdir"
12791 found_a="$additional_libdir/lib$name.$libext"
12792 if test -f "$additional_libdir/lib$name.la"; then
12793 found_la="$additional_libdir/lib$name.la"
12798 if test "X$found_dir" = "X"; then
12799 for x in $LDFLAGS $LTLIBLZMA; do
12801 acl_save_prefix="$prefix"
12802 prefix="$acl_final_prefix"
12803 acl_save_exec_prefix="$exec_prefix"
12804 exec_prefix="$acl_final_exec_prefix"
12806 exec_prefix="$acl_save_exec_prefix"
12807 prefix="$acl_save_prefix"
12811 dir=`echo "X$x" | sed -e 's/^X-L//'`
12812 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12814 found_so="$dir/lib$name.$shlibext"
12815 if test -f "$dir/lib$name.la"; then
12816 found_la="$dir/lib$name.la"
12819 if test -f "$dir/lib$name.$libext"; then
12821 found_a="$dir/lib$name.$libext"
12822 if test -f "$dir/lib$name.la"; then
12823 found_la="$dir/lib$name.la"
12829 if test "X$found_dir" != "X"; then
12834 if test "X$found_dir" != "X"; then
12835 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
12836 if test "X$found_so" != "X"; then
12837 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12838 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
12841 for x in $ltrpathdirs; do
12842 if test "X$x" = "X$found_dir"; then
12847 if test -z "$haveit"; then
12848 ltrpathdirs="$ltrpathdirs $found_dir"
12850 if test "$hardcode_direct" = yes; then
12851 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
12853 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12854 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
12856 for x in $rpathdirs; do
12857 if test "X$x" = "X$found_dir"; then
12862 if test -z "$haveit"; then
12863 rpathdirs="$rpathdirs $found_dir"
12867 for x in $LDFLAGS $LIBLZMA; do
12869 acl_save_prefix="$prefix"
12870 prefix="$acl_final_prefix"
12871 acl_save_exec_prefix="$exec_prefix"
12872 exec_prefix="$acl_final_exec_prefix"
12874 exec_prefix="$acl_save_exec_prefix"
12875 prefix="$acl_save_prefix"
12877 if test "X$x" = "X-L$found_dir"; then
12882 if test -z "$haveit"; then
12883 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
12885 if test "$hardcode_minus_L" != no; then
12886 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
12888 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
12894 if test "X$found_a" != "X"; then
12895 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
12897 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
12900 additional_includedir=
12901 case "$found_dir" in
12903 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12904 additional_includedir="$basedir/include"
12907 if test "X$additional_includedir" != "X"; then
12908 if test "X$additional_includedir" != "X/usr/include"; then
12910 if test "X$additional_includedir" = "X/usr/local/include"; then
12911 if test -n "$GCC"; then
12913 linux*) haveit=yes;;
12917 if test -z "$haveit"; then
12918 for x in $CPPFLAGS $INCLZMA; do
12920 acl_save_prefix="$prefix"
12921 prefix="$acl_final_prefix"
12922 acl_save_exec_prefix="$exec_prefix"
12923 exec_prefix="$acl_final_exec_prefix"
12925 exec_prefix="$acl_save_exec_prefix"
12926 prefix="$acl_save_prefix"
12928 if test "X$x" = "X-I$additional_includedir"; then
12933 if test -z "$haveit"; then
12934 if test -d "$additional_includedir"; then
12935 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
12941 if test -n "$found_la"; then
12942 save_libdir="$libdir"
12943 case "$found_la" in
12944 */* | *\\*) . "$found_la" ;;
12945 *) . "./$found_la" ;;
12947 libdir="$save_libdir"
12948 for dep in $dependency_libs; do
12951 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12952 if test "X$additional_libdir" != "X/usr/lib"; then
12954 if test "X$additional_libdir" = "X/usr/local/lib"; then
12955 if test -n "$GCC"; then
12957 linux*) haveit=yes;;
12961 if test -z "$haveit"; then
12963 for x in $LDFLAGS $LIBLZMA; do
12965 acl_save_prefix="$prefix"
12966 prefix="$acl_final_prefix"
12967 acl_save_exec_prefix="$exec_prefix"
12968 exec_prefix="$acl_final_exec_prefix"
12970 exec_prefix="$acl_save_exec_prefix"
12971 prefix="$acl_save_prefix"
12973 if test "X$x" = "X-L$additional_libdir"; then
12978 if test -z "$haveit"; then
12979 if test -d "$additional_libdir"; then
12980 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
12984 for x in $LDFLAGS $LTLIBLZMA; do
12986 acl_save_prefix="$prefix"
12987 prefix="$acl_final_prefix"
12988 acl_save_exec_prefix="$exec_prefix"
12989 exec_prefix="$acl_final_exec_prefix"
12991 exec_prefix="$acl_save_exec_prefix"
12992 prefix="$acl_save_prefix"
12994 if test "X$x" = "X-L$additional_libdir"; then
12999 if test -z "$haveit"; then
13000 if test -d "$additional_libdir"; then
13001 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
13008 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13009 if test "$enable_rpath" != no; then
13011 for x in $rpathdirs; do
13012 if test "X$x" = "X$dir"; then
13017 if test -z "$haveit"; then
13018 rpathdirs="$rpathdirs $dir"
13021 for x in $ltrpathdirs; do
13022 if test "X$x" = "X$dir"; then
13027 if test -z "$haveit"; then
13028 ltrpathdirs="$ltrpathdirs $dir"
13033 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13036 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13039 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
13040 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
13046 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13047 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
13053 if test "X$rpathdirs" != "X"; then
13054 if test -n "$hardcode_libdir_separator"; then
13056 for found_dir in $rpathdirs; do
13057 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13059 acl_save_libdir="$libdir"
13061 eval flag=\"$hardcode_libdir_flag_spec\"
13062 libdir="$acl_save_libdir"
13063 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13065 for found_dir in $rpathdirs; do
13066 acl_save_libdir="$libdir"
13067 libdir="$found_dir"
13068 eval flag=\"$hardcode_libdir_flag_spec\"
13069 libdir="$acl_save_libdir"
13070 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13074 if test "X$ltrpathdirs" != "X"; then
13075 for found_dir in $ltrpathdirs; do
13076 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
13081 ac_save_CPPFLAGS="$CPPFLAGS"
13083 for element in $INCLZMA; do
13085 for x in $CPPFLAGS; do
13087 acl_save_prefix="$prefix"
13088 prefix="$acl_final_prefix"
13089 acl_save_exec_prefix="$exec_prefix"
13090 exec_prefix="$acl_final_exec_prefix"
13092 exec_prefix="$acl_save_exec_prefix"
13093 prefix="$acl_save_prefix"
13095 if test "X$x" = "X$element"; then
13100 if test -z "$haveit"; then
13101 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
13107 $as_echo_n "checking for liblzma... " >&6; }
13108 if test "${ac_cv_liblzma+set}" = set; then :
13109 $as_echo_n "(cached) " >&6
13112 ac_save_LIBS="$LIBS"
13113 LIBS="$LIBS $LIBLZMA"
13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h. */
13120 lzma_index_iter iter;
13121 lzma_index_iter_init (&iter, 0);
13122 lzma_mf_is_supported (LZMA_MF_HC3);
13127 if ac_fn_c_try_link "$LINENO"; then :
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13134 LIBS="$ac_save_LIBS"
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
13138 $as_echo "$ac_cv_liblzma" >&6; }
13139 if test "$ac_cv_liblzma" = yes; then
13142 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
13145 $as_echo_n "checking how to link with liblzma... " >&6; }
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
13147 $as_echo "$LIBLZMA" >&6; }
13150 CPPFLAGS="$ac_save_CPPFLAGS"
13160 if test "$HAVE_LIBLZMA" != yes; then
13161 if test "$with_lzma" = yes; then
13162 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
13168 LIBGUI="../libgui/src/libgui.a"
13169 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
13178 *-*-cygwin* | *-*-mingw* )
13187 if test "${enable_gdbtk}" = "yes"; then
13189 # Gdbtk must have an absolute path to srcdir in order to run
13190 # properly when not installed.
13193 GDBTK_SRC_DIR=`pwd`
13198 # Ok, lets find the tcl configuration
13199 # First, look for one uninstalled.
13200 # the alternative search directory is invoked by --with-tcl
13203 if test x"${no_tcl}" = x ; then
13204 # we reset no_tcl in case something fails here
13207 # Check whether --with-tcl was given.
13208 if test "${with_tcl+set}" = set; then :
13209 withval=$with_tcl; with_tclconfig=${withval}
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13213 $as_echo_n "checking for Tcl configuration... " >&6; }
13214 if test "${ac_cv_c_tclconfig+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13219 # First check to see if --with-tcl was specified.
13221 *-*-cygwin*) platDir="win" ;;
13222 *) platDir="unix" ;;
13224 if test x"${with_tclconfig}" != x ; then
13225 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13226 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
13228 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13232 # then check for a private Tcl installation
13233 if test x"${ac_cv_c_tclconfig}" = x ; then
13236 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13237 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13238 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13240 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13241 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13242 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13244 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13245 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13246 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13247 if test -f "$i/$platDir/tclConfig.sh" ; then
13248 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13254 # on Darwin, check in Framework installation locations
13255 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
13256 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13257 `ls -d /Library/Frameworks 2>/dev/null` \
13258 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13259 `ls -d /System/Library/Frameworks 2>/dev/null` \
13261 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13262 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
13268 # check in a few common install locations
13269 if test x"${ac_cv_c_tclconfig}" = x ; then
13270 for i in `ls -d ${libdir} 2>/dev/null` \
13271 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13272 `ls -d ${prefix}/lib 2>/dev/null` \
13273 `ls -d /usr/local/lib 2>/dev/null` \
13274 `ls -d /usr/contrib/lib 2>/dev/null` \
13275 `ls -d /usr/lib 2>/dev/null` \
13277 if test -f "$i/tclConfig.sh" ; then
13278 ac_cv_c_tclconfig=`(cd $i; pwd)`
13284 # check in a few other private locations
13285 if test x"${ac_cv_c_tclconfig}" = x ; then
13288 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13289 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13290 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13291 if test -f "$i/$platDir/tclConfig.sh" ; then
13292 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13301 if test x"${ac_cv_c_tclconfig}" = x ; then
13302 TCL_BIN_DIR="# no Tcl configs found"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13304 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13307 TCL_BIN_DIR=${ac_cv_c_tclconfig}
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13309 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13314 # If $no_tk is nonempty, then we can't do Tk, and there is no
13315 # point to doing Tcl.
13318 # Ok, lets find the tk configuration
13319 # First, look for one uninstalled.
13320 # the alternative search directory is invoked by --with-tk
13323 if test x"${no_tk}" = x ; then
13324 # we reset no_tk in case something fails here
13327 # Check whether --with-tk was given.
13328 if test "${with_tk+set}" = set; then :
13329 withval=$with_tk; with_tkconfig=${withval}
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13333 $as_echo_n "checking for Tk configuration... " >&6; }
13334 if test "${ac_cv_c_tkconfig+set}" = set; then :
13335 $as_echo_n "(cached) " >&6
13339 # First check to see if --with-tkconfig was specified.
13340 if test x"${with_tkconfig}" != x ; then
13341 if test -f "${with_tkconfig}/tkConfig.sh" ; then
13342 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
13344 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13348 # then check for a private Tk library
13350 *-*-cygwin*) platDir="win" ;;
13351 *) platDir="unix" ;;
13353 if test x"${ac_cv_c_tkconfig}" = x ; then
13356 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13357 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13358 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13360 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13361 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13362 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
13364 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13365 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
13366 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
13367 if test -f "$i/$platDir/tkConfig.sh" ; then
13368 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13374 # on Darwin, check in Framework installation locations
13375 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
13376 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13377 `ls -d /Library/Frameworks 2>/dev/null` \
13378 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13379 `ls -d /System/Library/Frameworks 2>/dev/null` \
13381 if test -f "$i/Tk.framework/tkConfig.sh" ; then
13382 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
13388 # check in a few common install locations
13389 if test x"${ac_cv_c_tkconfig}" = x ; then
13390 for i in `ls -d ${libdir} 2>/dev/null` \
13391 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13392 `ls -d ${prefix}/lib 2>/dev/null` \
13393 `ls -d /usr/local/lib 2>/dev/null` \
13394 `ls -d /usr/contrib/lib 2>/dev/null` \
13395 `ls -d /usr/lib 2>/dev/null` \
13397 if test -f "$i/tkConfig.sh" ; then
13398 ac_cv_c_tkconfig=`(cd $i; pwd)`
13403 # check in a few other private locations
13404 if test x"${ac_cv_c_tkconfig}" = x ; then
13407 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13408 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13409 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13410 if test -f "$i/$platDir/tkConfig.sh" ; then
13411 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13420 if test x"${ac_cv_c_tkconfig}" = x ; then
13421 TK_BIN_DIR="# no Tk configs found"
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13423 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13426 TK_BIN_DIR=${ac_cv_c_tkconfig}
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13428 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13433 if test -z "${no_tcl}" -a -z "${no_tk}"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13436 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13438 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13440 $as_echo "loading" >&6; }
13441 . ${TCL_BIN_DIR}/tclConfig.sh
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13444 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13447 # eval is required to do the TCL_DBGX substitution
13448 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13449 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13451 # If the TCL_BIN_DIR is the build directory (not the install directory),
13452 # then set the common variable name to the value of the build variables.
13453 # For example, the variable TCL_LIB_SPEC will be set to the value
13454 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13455 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13456 # installed and uninstalled version of Tcl.
13457 if test -f "${TCL_BIN_DIR}/Makefile" ; then
13458 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13459 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13460 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13461 elif test "`uname -s`" = "Darwin"; then
13462 # If Tcl was built as a framework, attempt to use the libraries
13463 # from the framework at the given location so that linking works
13464 # against Tcl.framework installed in an arbitrary location.
13465 case ${TCL_DEFS} in
13467 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13468 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
13469 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13470 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13471 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13476 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13477 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13478 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13484 # eval is required to do the TCL_DBGX substitution
13485 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13486 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13487 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13488 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13504 # Check for in-tree tcl
13511 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13515 # Find Tcl private headers
13516 if test x"${intree}" = xno; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13519 $as_echo_n "checking for Tcl private headers... " >&6; }
13521 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13522 if test -f ${dir}/tclInt.h ; then
13526 if test x"${private_dir}" = x; then
13527 as_fn_error "could not find private Tcl headers" "$LINENO" 5
13529 TCL_PRIVATE_INCLUDE="-I${private_dir}"
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13531 $as_echo "${private_dir}" >&6; }
13534 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13535 TCL_LIBRARY="${TCL_LIB_SPEC}"
13538 # If building tcl in the same src tree, private headers
13539 # are not needed, but we need to be sure to use the right
13541 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
13542 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
13543 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
13551 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
13553 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13555 $as_echo "loading" >&6; }
13556 . ${TK_BIN_DIR}/tkConfig.sh
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
13559 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13562 # eval is required to do the TK_DBGX substitution
13563 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
13564 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
13566 # If the TK_BIN_DIR is the build directory (not the install directory),
13567 # then set the common variable name to the value of the build variables.
13568 # For example, the variable TK_LIB_SPEC will be set to the value
13569 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
13570 # instead of TK_BUILD_LIB_SPEC since it will work with both an
13571 # installed and uninstalled version of Tcl.
13572 if test -f "${TK_BIN_DIR}/Makefile" ; then
13573 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
13574 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
13575 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
13576 elif test "`uname -s`" = "Darwin"; then
13577 # If Tk was built as a framework, attempt to use the libraries
13578 # from the framework at the given location so that linking works
13579 # against Tk.framework installed in an arbitrary location.
13582 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
13583 for i in "`cd ${TK_BIN_DIR}; pwd`" \
13584 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
13585 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
13586 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
13591 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
13592 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
13593 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
13599 # eval is required to do the TK_DBGX substitution
13600 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
13601 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
13602 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
13603 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
13618 # Check for in-tree Tk
13620 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
13624 # Find Tk private headers
13625 if test x"${intree}" = xno; then
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
13628 $as_echo_n "checking for Tk private headers... " >&6; }
13630 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
13631 if test -f ${dir}/tkInt.h; then
13635 if test x"${private_dir}" = x; then
13636 as_fn_error "could not find Tk private headers" "$LINENO" 5
13638 TK_PRIVATE_INCLUDE="-I${private_dir}"
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13640 $as_echo "${private_dir}" >&6; }
13643 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
13644 TK_LIBRARY=${TK_LIB_SPEC}
13647 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
13648 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
13649 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
13656 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
13658 # Include some libraries that Tcl and Tk want.
13659 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
13660 # Yes, the ordering seems wrong here. But it isn't.
13661 # TK_LIBS is the list of libraries that need to be linked
13662 # after Tcl/Tk. Note that this isn't put into LIBS. If it
13663 # were in LIBS then any link tests after this point would
13664 # try to include things like `$(LIBGUI)', which wouldn't work.
13665 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
13667 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
13668 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
13669 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
13670 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
13671 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
13672 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
13673 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
13675 if test x$gdb_cv_os_cygwin = xyes; then
13676 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
13677 WIN32LDAPP="-Wl,--subsystem,console"
13678 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
13681 subdirs="$subdirs gdbtk"
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13694 $as_echo_n "checking for X... " >&6; }
13697 # Check whether --with-x was given.
13698 if test "${with_x+set}" = set; then :
13702 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13703 if test "x$with_x" = xno; then
13704 # The user explicitly disabled X.
13707 case $x_includes,$x_libraries in #(
13708 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
13709 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
13710 $as_echo_n "(cached) " >&6
13712 # One or both of the vars are not set, and there is no cached value.
13713 ac_x_includes=no ac_x_libraries=no
13714 rm -f -r conftest.dir
13715 if mkdir conftest.dir; then
13717 cat >Imakefile <<'_ACEOF'
13719 @echo incroot='${INCROOT}'
13721 @echo usrlibdir='${USRLIBDIR}'
13723 @echo libdir='${LIBDIR}'
13725 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13727 for ac_var in incroot usrlibdir libdir; do
13728 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13730 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13731 for ac_extension in a so sl dylib la dll; do
13732 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13733 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13734 ac_im_usrlibdir=$ac_im_libdir; break
13737 # Screen out bogus values from the imake configuration. They are
13738 # bogus both because they are the default anyway, and because
13739 # using them would break gcc on systems where it needs fixed includes.
13740 case $ac_im_incroot in
13741 /usr/include) ac_x_includes= ;;
13742 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13744 case $ac_im_usrlibdir in
13745 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13746 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13750 rm -f -r conftest.dir
13753 # Standard set of common directories for X headers.
13754 # Check X11 before X11Rn because it is often a symlink to the current release.
13768 /usr/local/X11/include
13769 /usr/local/X11R7/include
13770 /usr/local/X11R6/include
13771 /usr/local/X11R5/include
13772 /usr/local/X11R4/include
13774 /usr/local/include/X11
13775 /usr/local/include/X11R7
13776 /usr/local/include/X11R6
13777 /usr/local/include/X11R5
13778 /usr/local/include/X11R4
13782 /usr/XFree86/include/X11
13786 /usr/unsupported/include
13787 /usr/athena/include
13788 /usr/local/x11r5/include
13789 /usr/lpp/Xamples/include
13791 /usr/openwin/include
13792 /usr/openwin/share/include'
13794 if test "$ac_x_includes" = no; then
13795 # Guess where to find include files, by looking for Xlib.h.
13796 # First, try using that file with no special directory specified.
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799 #include <X11/Xlib.h>
13801 if ac_fn_c_try_cpp "$LINENO"; then :
13802 # We can compile using X headers with no special include directory.
13805 for ac_dir in $ac_x_header_dirs; do
13806 if test -r "$ac_dir/X11/Xlib.h"; then
13807 ac_x_includes=$ac_dir
13812 rm -f conftest.err conftest.$ac_ext
13813 fi # $ac_x_includes = no
13815 if test "$ac_x_libraries" = no; then
13816 # Check for the libraries.
13817 # See if we find them without any special options.
13818 # Don't add to $LIBS permanently.
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13823 #include <X11/Xlib.h>
13832 if ac_fn_c_try_link "$LINENO"; then :
13834 # We can link X programs with no special library path.
13838 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13840 # Don't even attempt the hair of trying to link an X program!
13841 for ac_extension in a so sl dylib la dll; do
13842 if test -r "$ac_dir/libX11.$ac_extension"; then
13843 ac_x_libraries=$ac_dir
13849 rm -f core conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
13851 fi # $ac_x_libraries = no
13853 case $ac_x_includes,$ac_x_libraries in #(
13854 no,* | *,no | *\'*)
13855 # Didn't find X, or a directory has "'" in its name.
13856 ac_cv_have_x="have_x=no";; #(
13858 # Record where we found X for the cache.
13859 ac_cv_have_x="have_x=yes\
13860 ac_x_includes='$ac_x_includes'\
13861 ac_x_libraries='$ac_x_libraries'"
13867 eval "$ac_cv_have_x"
13870 if test "$have_x" != yes; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13872 $as_echo "$have_x" >&6; }
13875 # If each of the values was on the command line, it overrides each guess.
13876 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13877 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13878 # Update the cache value to reflect the command line values.
13879 ac_cv_have_x="have_x=yes\
13880 ac_x_includes='$x_includes'\
13881 ac_x_libraries='$x_libraries'"
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13883 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13887 # Unlike the sim directory, whether a simulator is linked is controlled by
13888 # presence of a gdb_sim definition in the target configure.tgt entry.
13889 # This code just checks for a few cases where we'd like to ignore those
13890 # definitions, even when they're present in the '.mt' file. These cases
13891 # are when --disable-sim is specified, or if the simulator directory is
13892 # not part of the source tree.
13894 # Check whether --enable-sim was given.
13895 if test "${enable_sim+set}" = set; then :
13896 enableval=$enable_sim; echo "enable_sim = $enable_sim";
13897 echo "enableval = ${enableval}";
13898 case "${enableval}" in
13899 yes) ignore_sim=false ;;
13900 no) ignore_sim=true ;;
13901 *) ignore_sim=false ;;
13908 if test ! -d "${srcdir}/../sim"; then
13914 if test "${ignore_sim}" = "false"; then
13915 if test x"${gdb_sim}" != x ; then
13917 SIM_OBS="remote-sim.o"
13919 $as_echo "#define WITH_SIM 1" >>confdefs.h
13937 # List of host floatformats.
13939 cat >>confdefs.h <<_ACEOF
13940 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
13944 cat >>confdefs.h <<_ACEOF
13945 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
13949 cat >>confdefs.h <<_ACEOF
13950 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
13954 # target_subdir is used by the testsuite to find the target libraries.
13956 if test "${host}" != "${target}"; then
13957 target_subdir="${target_alias}/"
13962 if test "${gdb_native}" = "yes"; then
13963 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
13964 if test ! -f ${host_makefile_frag}; then
13965 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
13967 frags="$frags $host_makefile_frag"
13969 host_makefile_frag=/dev/null
13975 if test "${gdb_native}" = "yes"; then
13976 # We pick this up from the host configuration file (.mh) because we
13977 # do not have a native configuration Makefile fragment.
13978 nativefile=`sed -n '
13979 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
13980 ' ${host_makefile_frag}`
13984 if test x"${gdb_osabi}" != x ; then
13986 cat >>confdefs.h <<_ACEOF
13987 #define GDB_OSABI_DEFAULT $gdb_osabi
13992 # Enable multi-ice-gdb-server.
13993 # Check whether --enable-multi-ice was given.
13994 if test "${enable_multi_ice+set}" = set; then :
13995 enableval=$enable_multi_ice; case $enableval in
13998 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14002 if test "x$enable_multi_ice" = xyes; then
14003 subdirs="$subdirs multi-ice"
14007 # Check whether --enable-gdbserver was given.
14008 if test "${enable_gdbserver+set}" = set; then :
14009 enableval=$enable_gdbserver; case "${enableval}" in
14011 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
14014 enable_gdbserver=auto
14018 # We only build gdbserver automatically in a native configuration, and
14019 # only if the user did not explicitly disable its build.
14020 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14022 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14023 if test "x$build_gdbserver" = xyes; then
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14025 $as_echo "yes" >&6; }
14026 subdirs="$subdirs gdbserver"
14028 gdbserver_build_enabled=yes
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 $as_echo "no" >&6; }
14035 # If the user explicitly request the gdbserver to be built, verify that
14036 # we were in fact able to enable it.
14037 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
14038 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
14041 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14042 # to an empty version.
14048 if test "${nativefile}" != ""; then
14049 case "${nativefile}" in
14050 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
14051 * ) GDB_NM_FILE="${nativefile}"
14053 files="${files} ${GDB_NM_FILE}"
14054 links="${links} nm.h"
14056 cat >>confdefs.h <<_ACEOF
14057 #define GDB_NM_FILE "${GDB_NM_FILE}"
14063 ac_sources="$files"
14065 while test -n "$ac_sources"; do
14066 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
14067 set $ac_sources; ac_source=$1; shift; ac_sources=$*
14068 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
14070 ac_config_links="$ac_config_links $ac_config_links_1"
14076 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14079 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
14081 ac_config_commands="$ac_config_commands default"
14083 cat >confcache <<\_ACEOF
14084 # This file is a shell script that caches the results of configure
14085 # tests run on this system so they can be shared between configure
14086 # scripts and configure runs, see configure's option --config-cache.
14087 # It is not useful on other systems. If it contains results you don't
14088 # want to keep, you may remove or edit it.
14090 # config.status only pays attention to the cache file if you give it
14091 # the --recheck option to rerun configure.
14093 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14094 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14095 # following values.
14099 # The following way of writing the cache mishandles newlines in values,
14100 # but we know of no workaround that is simple, portable, and efficient.
14101 # So, we kill variables containing newlines.
14102 # Ultrix sh set writes to stderr and can't be redirected directly,
14103 # and sets the high bit in the cache file unless we assign to the vars.
14105 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14106 eval ac_val=\$$ac_var
14110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14114 _ | IFS | as_nl) ;; #(
14115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14116 *) { eval $ac_var=; unset $ac_var;} ;;
14122 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14123 *${as_nl}ac_space=\ *)
14124 # `set' does not quote correctly, so add quotes: double-quote
14125 # substitution turns \\\\ into \\, and sed turns \\ into \.
14128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14131 # `set' quotes correctly as required by POSIX, so do not add quotes.
14132 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14141 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14143 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14145 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14146 if test -w "$cache_file"; then
14147 test "x$cache_file" != "x/dev/null" &&
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14149 $as_echo "$as_me: updating cache $cache_file" >&6;}
14150 cat confcache >$cache_file
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14153 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14158 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14159 # Let make expand exec_prefix.
14160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14162 DEFS=-DHAVE_CONFIG_H
14166 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14167 # 1. Remove the extension, and $U if already installed.
14168 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14169 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14170 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14171 # will be set to the directory where LIBOBJS objects are built.
14172 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14173 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14175 LIBOBJS=$ac_libobjs
14177 LTLIBOBJS=$ac_ltlibobjs
14180 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14181 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14184 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14185 as_fn_error "conditional \"GMAKE\" was never defined.
14186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14190 : ${CONFIG_STATUS=./config.status}
14192 ac_clean_files_save=$ac_clean_files
14193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14195 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14197 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14199 # Generated by $as_me.
14200 # Run this file to recreate the current configuration.
14201 # Compiler output produced by configure, useful for debugging
14202 # configure, is in config.log if it exists.
14205 ac_cs_recheck=false
14208 SHELL=\${CONFIG_SHELL-$SHELL}
14211 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14212 ## -------------------- ##
14213 ## M4sh Initialization. ##
14214 ## -------------------- ##
14216 # Be more Bourne compatible
14217 DUALCASE=1; export DUALCASE # for MKS sh
14218 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14221 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14222 # is contrary to our usage. Disable this feature.
14223 alias -g '${1+"$@"}'='"$@"'
14224 setopt NO_GLOB_SUBST
14226 case `(set -o) 2>/dev/null` in #(
14238 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14239 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14240 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14242 # Prefer a ksh shell builtin over an external printf program on Solaris,
14243 # but without wasting forks for bash or zsh.
14244 if test -z "$BASH_VERSION$ZSH_VERSION" \
14245 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14246 as_echo='print -r --'
14247 as_echo_n='print -rn --'
14248 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14249 as_echo='printf %s\n'
14250 as_echo_n='printf %s'
14252 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14253 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14254 as_echo_n='/usr/ucb/echo -n'
14256 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14257 as_echo_n_body='eval
14261 expr "X$arg" : "X\\(.*\\)$as_nl";
14262 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14264 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14266 export as_echo_n_body
14267 as_echo_n='sh -c $as_echo_n_body as_echo'
14269 export as_echo_body
14270 as_echo='sh -c $as_echo_body as_echo'
14273 # The user is always right.
14274 if test "${PATH_SEPARATOR+set}" != set; then
14276 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14277 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14284 # We need space, tab and new line, in precisely that order. Quoting is
14285 # there to prevent editors from complaining about space-tab.
14286 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14287 # splitting by setting IFS to empty value.)
14290 # Find who we are. Look in the path if we contain no directory separator.
14292 *[\\/]* ) as_myself=$0 ;;
14293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14297 test -z "$as_dir" && as_dir=.
14298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14304 # We did not find ourselves, most probably we were run as `sh COMMAND'
14305 # in which case we are not to be found in the path.
14306 if test "x$as_myself" = x; then
14309 if test ! -f "$as_myself"; then
14310 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14314 # Unset variables that we do not need and which cause bugs (e.g. in
14315 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14316 # suppresses any "Segmentation fault" message there. '((' could
14317 # trigger a bug in pdksh 5.2.14.
14318 for as_var in BASH_ENV ENV MAIL MAILPATH
14319 do eval test x\${$as_var+set} = xset \
14320 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14333 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14336 # as_fn_error ERROR [LINENO LOG_FD]
14337 # ---------------------------------
14338 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14339 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14340 # script with status $?, using 1 if that was 0.
14343 as_status=$?; test $as_status -eq 0 && as_status=1
14345 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14346 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14348 $as_echo "$as_me: error: $1" >&2
14349 as_fn_exit $as_status
14353 # as_fn_set_status STATUS
14354 # -----------------------
14355 # Set $? to STATUS, without forking.
14356 as_fn_set_status ()
14359 } # as_fn_set_status
14361 # as_fn_exit STATUS
14362 # -----------------
14363 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14367 as_fn_set_status $1
14373 # Portably unset VAR.
14376 { eval $1=; unset $1;}
14378 as_unset=as_fn_unset
14379 # as_fn_append VAR VALUE
14380 # ----------------------
14381 # Append the text in VALUE to the end of the definition contained in VAR. Take
14382 # advantage of any shell optimizations that allow amortized linear growth over
14383 # repeated appends, instead of the typical quadratic growth present in naive
14385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14386 eval 'as_fn_append ()
14397 # as_fn_arith ARG...
14398 # ------------------
14399 # Perform arithmetic evaluation on the ARGs, and store the result in the
14400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14401 # must be portable across $(()) and expr.
14402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14403 eval 'as_fn_arith ()
14410 as_val=`expr "$@" || test $? -eq 1`
14415 if expr a : '\(a\)' >/dev/null 2>&1 &&
14416 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14422 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14423 as_basename=basename
14428 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14434 as_me=`$as_basename -- "$0" ||
14435 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14436 X"$0" : 'X\(//\)$' \| \
14437 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14439 sed '/^.*\/\([^/][^/]*\)\/*$/{
14453 # Avoid depending upon Character Ranges.
14454 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14455 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14456 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14457 as_cr_digits='0123456789'
14458 as_cr_alnum=$as_cr_Letters$as_cr_digits
14460 ECHO_C= ECHO_N= ECHO_T=
14461 case `echo -n x` in #(((((
14463 case `echo 'xy\c'` in
14464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14473 rm -f conf$$ conf$$.exe conf$$.file
14474 if test -d conf$$.dir; then
14475 rm -f conf$$.dir/conf$$.file
14478 mkdir conf$$.dir 2>/dev/null
14480 if (echo >conf$$.file) 2>/dev/null; then
14481 if ln -s conf$$.file conf$$ 2>/dev/null; then
14483 # ... but there are two gotchas:
14484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14486 # In both cases, we have to default to `cp -p'.
14487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14489 elif ln conf$$.file conf$$ 2>/dev/null; then
14497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14498 rmdir conf$$.dir 2>/dev/null
14503 # Create "$as_dir" as a directory, including parents if necessary.
14508 -*) as_dir=./$as_dir;;
14510 test -d "$as_dir" || eval $as_mkdir_p || {
14514 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14515 *) as_qdir=$as_dir;;
14517 as_dirs="'$as_qdir' $as_dirs"
14518 as_dir=`$as_dirname -- "$as_dir" ||
14519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14520 X"$as_dir" : 'X\(//\)[^/]' \| \
14521 X"$as_dir" : 'X\(//\)$' \| \
14522 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14523 $as_echo X"$as_dir" |
14524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14528 /^X\(\/\/\)[^/].*/{
14541 test -d "$as_dir" && break
14543 test -z "$as_dirs" || eval "mkdir $as_dirs"
14544 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14548 if mkdir -p . 2>/dev/null; then
14549 as_mkdir_p='mkdir -p "$as_dir"'
14551 test -d ./-p && rmdir ./-p
14555 if test -x / >/dev/null 2>&1; then
14556 as_test_x='test -x'
14558 if ls -dL / >/dev/null 2>&1; then
14565 if test -d "$1"; then
14571 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14572 ???[sx]*):;;*)false;;esac;fi
14576 as_executable_p=$as_test_x
14578 # Sed expression to map a string onto a valid CPP name.
14579 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14581 # Sed expression to map a string onto a valid variable name.
14582 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14586 ## ----------------------------------- ##
14587 ## Main body of $CONFIG_STATUS script. ##
14588 ## ----------------------------------- ##
14590 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14593 # Save the log message, to keep $0 and so on meaningful, and to
14594 # report actual input values of CONFIG_FILES etc. instead of their
14595 # values after options handling.
14597 This file was extended by $as_me, which was
14598 generated by GNU Autoconf 2.64. Invocation command line was
14600 CONFIG_FILES = $CONFIG_FILES
14601 CONFIG_HEADERS = $CONFIG_HEADERS
14602 CONFIG_LINKS = $CONFIG_LINKS
14603 CONFIG_COMMANDS = $CONFIG_COMMANDS
14606 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14611 case $ac_config_files in *"
14612 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14615 case $ac_config_headers in *"
14616 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14621 # Files that config.status was made for.
14622 config_files="$ac_config_files"
14623 config_headers="$ac_config_headers"
14624 config_links="$ac_config_links"
14625 config_commands="$ac_config_commands"
14629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14631 \`$as_me' instantiates files and other configuration actions
14632 from templates according to the current configuration. Unless the files
14633 and actions are specified as TAGs, all are instantiated by default.
14635 Usage: $0 [OPTION]... [TAG]...
14637 -h, --help print this help, then exit
14638 -V, --version print version number and configuration settings, then exit
14639 -q, --quiet, --silent
14640 do not print progress messages
14641 -d, --debug don't remove temporary files
14642 --recheck update $as_me by reconfiguring in the same conditions
14643 --file=FILE[:TEMPLATE]
14644 instantiate the configuration file FILE
14645 --header=FILE[:TEMPLATE]
14646 instantiate the configuration header FILE
14648 Configuration files:
14651 Configuration headers:
14654 Configuration links:
14657 Configuration commands:
14660 Report bugs to the package provider."
14663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14666 configured by $0, generated by GNU Autoconf 2.64,
14667 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14669 Copyright (C) 2009 Free Software Foundation, Inc.
14670 This config.status script is free software; the Free Software Foundation
14671 gives unlimited permission to copy, distribute and modify it."
14677 test -n "\$AWK" || AWK=awk
14680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14681 # The default lists apply if the user does not specify any file.
14687 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14688 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14699 # Handling of the options.
14700 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14702 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14703 $as_echo "$ac_cs_version"; exit ;;
14704 --debug | --debu | --deb | --de | --d | -d )
14706 --file | --fil | --fi | --f )
14709 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14711 as_fn_append CONFIG_FILES " '$ac_optarg'"
14712 ac_need_defaults=false;;
14713 --header | --heade | --head | --hea )
14716 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14718 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14719 ac_need_defaults=false;;
14721 # Conflict between --help and --header
14722 as_fn_error "ambiguous option: \`$1'
14723 Try \`$0 --help' for more information.";;
14724 --help | --hel | -h )
14725 $as_echo "$ac_cs_usage"; exit ;;
14726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14727 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14730 # This is an error.
14731 -*) as_fn_error "unrecognized option: \`$1'
14732 Try \`$0 --help' for more information." ;;
14734 *) as_fn_append ac_config_targets " $1"
14735 ac_need_defaults=false ;;
14741 ac_configure_extra_args=
14743 if $ac_cs_silent; then
14745 ac_configure_extra_args="$ac_configure_extra_args --silent"
14749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14750 if \$ac_cs_recheck; then
14751 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14753 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14754 CONFIG_SHELL='$SHELL'
14755 export CONFIG_SHELL
14760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14764 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14765 ## Running $as_me. ##
14771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14775 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14781 # Handling of arguments.
14782 for ac_config_target in $ac_config_targets
14784 case $ac_config_target in
14785 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14786 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
14787 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
14788 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
14789 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14790 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
14791 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14792 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
14793 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14795 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14800 # If the user did not use the arguments to specify the items to instantiate,
14801 # then the envvar interface is used. Set only those that are not.
14802 # We use the long form for the default assignment because of an extremely
14803 # bizarre bug on SunOS 4.1.3.
14804 if $ac_need_defaults; then
14805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14807 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14808 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14811 # Have a temporary directory for convenience. Make it in the build tree
14812 # simply because there is no reason against having it here, and in addition,
14813 # creating and moving files from /tmp can sometimes cause problems.
14814 # Hook for its removal unless debugging.
14815 # Note that there is a small window in which the directory will not be cleaned:
14816 # after its creation but before its name has been assigned to `$tmp'.
14820 trap 'exit_status=$?
14821 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14823 trap 'as_fn_exit 1' 1 2 13 15
14825 # Create a (secure) tmp directory for tmp files.
14828 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14829 test -n "$tmp" && test -d "$tmp"
14832 tmp=./conf$$-$RANDOM
14833 (umask 077 && mkdir "$tmp")
14834 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14836 # Set up the scripts for CONFIG_FILES section.
14837 # No need to generate them if there are no CONFIG_FILES.
14838 # This happens for instance with `./config.status config.h'.
14839 if test -n "$CONFIG_FILES"; then
14841 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14842 ac_cs_awk_getline=:
14843 ac_cs_awk_pipe_init=
14844 ac_cs_awk_read_file='
14845 while ((getline aline < (F[key])) > 0)
14848 ac_cs_awk_pipe_fini=
14850 ac_cs_awk_getline=false
14851 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14852 ac_cs_awk_read_file='
14854 print "cat " F[key] " &&"
14855 '$ac_cs_awk_pipe_init
14856 # The final `:' finishes the AND list.
14857 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14859 ac_cr=`echo X | tr X '\015'`
14860 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14861 # But we know of no other shell where ac_cr would be empty at this
14862 # point, so we can use a bashism as a fallback.
14863 if test "x$ac_cr" = x; then
14864 eval ac_cr=\$\'\\r\'
14866 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14867 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14870 ac_cs_awk_cr=$ac_cr
14873 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14876 # Create commands to substitute file output variables.
14878 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14879 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14880 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14883 } >conf$$files.sh &&
14884 . ./conf$$files.sh ||
14885 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14886 rm -f conf$$files.sh
14889 echo "cat >conf$$subs.awk <<_ACEOF" &&
14890 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14892 } >conf$$subs.sh ||
14893 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14894 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14896 for ac_last_try in false false false false false :; do
14897 . ./conf$$subs.sh ||
14898 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14900 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14901 if test $ac_delim_n = $ac_delim_num; then
14903 elif $ac_last_try; then
14904 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14909 rm -f conf$$subs.sh
14911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14912 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14916 s/^/S["/; s/!.*/"]=/
14926 s/\(.\{148\}\).*/\1/
14928 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14933 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14940 s/\(.\{148\}\).*/\1/
14942 s/["\\]/\\&/g; s/^/"/; s/$/"/
14946 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14951 ' <conf$$subs.awk | sed '
14956 ' >>$CONFIG_STATUS || ac_write_fail=1
14957 rm -f conf$$subs.awk
14958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14960 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14961 for (key in S) S_is_set[key] = 1
14963 \$ac_cs_awk_pipe_init
14967 nfields = split(line, field, "@")
14969 len = length(field[1])
14970 for (i = 2; i < nfields; i++) {
14972 keylen = length(key)
14973 if (S_is_set[key]) {
14975 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14976 len += length(value) + length(field[++i])
14981 if (nfields == 3 && !substed) {
14983 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14984 \$ac_cs_awk_read_file
14990 \$ac_cs_awk_pipe_fini
14993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14994 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14995 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14998 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14999 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15004 # trailing colons and then remove the whole line if VPATH becomes empty
15005 # (actually we leave an empty line to preserve line numbers).
15006 if test "x$srcdir" = x.; then
15007 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15008 s/:*\$(srcdir):*/:/
15009 s/:*\${srcdir}:*/:/
15011 s/^\([^=]*=[ ]*\):*/\1/
15017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15018 fi # test -n "$CONFIG_FILES"
15020 # Set up the scripts for CONFIG_HEADERS section.
15021 # No need to generate them if there are no CONFIG_HEADERS.
15022 # This happens for instance with `./config.status Makefile'.
15023 if test -n "$CONFIG_HEADERS"; then
15024 cat >"$tmp/defines.awk" <<\_ACAWK ||
15028 # Transform confdefs.h into an awk script `defines.awk', embedded as
15029 # here-document in config.status, that substitutes the proper values into
15030 # config.h.in to produce config.h.
15032 # Create a delimiter string that does not exist in confdefs.h, to ease
15033 # handling of long lines.
15035 for ac_last_try in false false :; do
15036 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15037 if test -z "$ac_t"; then
15039 elif $ac_last_try; then
15040 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15046 # For the awk script, D is an array of macro values keyed by name,
15047 # likewise P contains macro parameters if any. Preserve backslash
15048 # newline sequences.
15050 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15052 s/.\{148\}/&'"$ac_delim"'/g
15055 s/^[ ]*#[ ]*define[ ][ ]*/ /
15062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15064 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15069 D["\1"]=" \3\\\\\\n"\\/p
15071 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15076 s/.\{148\}/&'"$ac_delim"'/g
15081 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15084 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15086 ' <confdefs.h | sed '
15087 s/'"$ac_delim"'/"\\\
15088 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15091 for (key in D) D_is_set[key] = 1
15094 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15096 split(line, arg, " ")
15097 if (arg[1] == "#") {
15101 defundef = substr(arg[1], 2)
15104 split(mac1, mac2, "(") #)
15106 prefix = substr(line, 1, index(line, defundef) - 1)
15107 if (D_is_set[macro]) {
15108 # Preserve the white space surrounding the "#".
15109 print prefix "define", macro P[macro] D[macro]
15112 # Replace #undef with comments. This is necessary, for example,
15113 # in the case of _POSIX_SOURCE, which is predefined and required
15114 # on some systems where configure will not decide to define it.
15115 if (defundef == "undef") {
15116 print "/*", prefix defundef, macro, "*/"
15124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15125 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15126 fi # test -n "$CONFIG_HEADERS"
15129 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15134 :[FHLC]) ac_mode=$ac_tag; continue;;
15136 case $ac_mode$ac_tag in
15138 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15139 :[FH]-) ac_tag=-:-;;
15140 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15157 -) ac_f="$tmp/stdin";;
15158 *) # Look for the file first in the build tree, then in the source tree
15159 # (if the path is not absolute). The absolute path cannot be DOS-style,
15160 # because $ac_f cannot contain `:'.
15164 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15166 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15168 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15169 as_fn_append ac_file_inputs " '$ac_f'"
15172 # Let's still pretend it is `configure' which instantiates (i.e., don't
15173 # use $as_me), people would be surprised to read:
15174 # /* config.h. Generated by config.status. */
15175 configure_input='Generated from '`
15176 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15178 if test x"$ac_file" != x-; then
15179 configure_input="$ac_file. $configure_input"
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15181 $as_echo "$as_me: creating $ac_file" >&6;}
15183 # Neutralize special characters interpreted by sed in replacement strings.
15184 case $configure_input in #(
15185 *\&* | *\|* | *\\* )
15186 ac_sed_conf_input=`$as_echo "$configure_input" |
15187 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15188 *) ac_sed_conf_input=$configure_input;;
15192 *:-:* | *:-) cat >"$tmp/stdin" \
15193 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15198 ac_dir=`$as_dirname -- "$ac_file" ||
15199 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15200 X"$ac_file" : 'X\(//\)[^/]' \| \
15201 X"$ac_file" : 'X\(//\)$' \| \
15202 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15203 $as_echo X"$ac_file" |
15204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15208 /^X\(\/\/\)[^/].*/{
15221 as_dir="$ac_dir"; as_fn_mkdir_p
15225 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15227 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15228 # A ".." for each directory in $ac_dir_suffix.
15229 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15230 case $ac_top_builddir_sub in
15231 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15232 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15235 ac_abs_top_builddir=$ac_pwd
15236 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15237 # for backward compatibility:
15238 ac_top_builddir=$ac_top_build_prefix
15241 .) # We are building in place.
15243 ac_top_srcdir=$ac_top_builddir_sub
15244 ac_abs_top_srcdir=$ac_pwd ;;
15245 [\\/]* | ?:[\\/]* ) # Absolute name.
15246 ac_srcdir=$srcdir$ac_dir_suffix;
15247 ac_top_srcdir=$srcdir
15248 ac_abs_top_srcdir=$srcdir ;;
15249 *) # Relative name.
15250 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15251 ac_top_srcdir=$ac_top_build_prefix$srcdir
15252 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15254 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15264 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15265 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15270 # If the template does not know about datarootdir, expand it.
15271 # FIXME: This hack should be removed a few years after 2.60.
15272 ac_datarootdir_hack=; ac_datarootdir_seen=
15283 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15284 *datarootdir*) ac_datarootdir_seen=yes;;
15285 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15287 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15290 ac_datarootdir_hack='
15291 s&@datadir@&$datadir&g
15292 s&@docdir@&$docdir&g
15293 s&@infodir@&$infodir&g
15294 s&@localedir@&$localedir&g
15295 s&@mandir@&$mandir&g
15296 s&\\\${datarootdir}&$datarootdir&g' ;;
15300 # Neutralize VPATH when `$srcdir' = `.'.
15301 # Shell code in configure.ac might set extrasub.
15302 # FIXME: do we really want to maintain this feature?
15303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15304 ac_sed_extra="$ac_vpsub
15307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15310 s|@configure_input@|$ac_sed_conf_input|;t t
15311 s&@top_builddir@&$ac_top_builddir_sub&;t t
15312 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15313 s&@srcdir@&$ac_srcdir&;t t
15314 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15315 s&@top_srcdir@&$ac_top_srcdir&;t t
15316 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15317 s&@builddir@&$ac_builddir&;t t
15318 s&@abs_builddir@&$ac_abs_builddir&;t t
15319 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15320 s&@INSTALL@&$ac_INSTALL&;t t
15321 $ac_datarootdir_hack
15323 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15324 if $ac_cs_awk_getline; then
15325 $AWK -f "$tmp/subs.awk"
15327 $AWK -f "$tmp/subs.awk" | $SHELL
15329 || as_fn_error "could not create $ac_file" "$LINENO" 5
15331 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15332 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15335 which seems to be undefined. Please make sure it is defined." >&5
15336 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15337 which seems to be undefined. Please make sure it is defined." >&2;}
15341 -) cat "$tmp/out" && rm -f "$tmp/out";;
15342 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15344 || as_fn_error "could not create $ac_file" "$LINENO" 5
15350 if test x"$ac_file" != x-; then
15352 $as_echo "/* $configure_input */" \
15353 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15354 } >"$tmp/config.h" \
15355 || as_fn_error "could not create $ac_file" "$LINENO" 5
15356 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15358 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15361 mv "$tmp/config.h" "$ac_file" \
15362 || as_fn_error "could not create $ac_file" "$LINENO" 5
15365 $as_echo "/* $configure_input */" \
15366 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15367 || as_fn_error "could not create -" "$LINENO" 5
15375 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15378 # Prefer the file from the source tree if names are identical.
15379 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15380 ac_source=$srcdir/$ac_source
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15384 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15386 if test ! -r "$ac_source"; then
15387 as_fn_error "$ac_source: file not found" "$LINENO" 5
15391 # Try a relative symlink, then a hard link, then a copy.
15393 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15394 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15396 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15397 ln "$ac_source" "$ac_file" 2>/dev/null ||
15398 cp -p "$ac_source" "$ac_file" ||
15399 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15402 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15403 $as_echo "$as_me: executing $ac_file commands" >&6;}
15408 case $ac_file$ac_mode in
15409 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
15411 case x$CONFIG_HEADERS in
15412 xconfig.h:config.in)
15423 ac_clean_files=$ac_clean_files_save
15425 test $ac_write_fail = 0 ||
15426 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15429 # configure is writing to config.log, and then calls config.status.
15430 # config.status does its own redirection, appending to config.log.
15431 # Unfortunately, on DOS this fails, as config.log is still kept open
15432 # by configure, so config.status won't be able to write to it; its
15433 # output is simply discarded. So we exec the FD to /dev/null,
15434 # effectively closing config.log, so it can be properly (re)opened and
15435 # appended to by config.status. When coming back to configure, we
15436 # need to make the FD available again.
15437 if test "$no_create" != yes; then
15439 ac_config_status_args=
15440 test "$silent" = yes &&
15441 ac_config_status_args="$ac_config_status_args --quiet"
15443 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15446 # would make configure fail if this is the last instruction.
15447 $ac_cs_success || as_fn_exit $?
15451 # CONFIG_SUBDIRS section.
15453 if test "$no_recursion" != yes; then
15455 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15456 # so they do not pile up.
15457 ac_sub_configure_args=
15459 eval "set x $ac_configure_args"
15463 if test -n "$ac_prev"; then
15468 -cache-file | --cache-file | --cache-fil | --cache-fi \
15469 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15470 ac_prev=cache_file ;;
15471 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15472 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15475 --config-cache | -C)
15477 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15479 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15481 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15483 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15485 --disable-option-checking)
15489 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15491 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15495 # Always prepend --prefix to ensure using the same prefix
15496 # in subdir configurations.
15497 ac_arg="--prefix=$prefix"
15499 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15501 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15504 if test "$silent" = yes; then
15505 ac_sub_configure_args="--silent $ac_sub_configure_args"
15508 # Always prepend --disable-option-checking to silence warnings, since
15509 # different subdirs can have different --enable and --with options.
15510 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15513 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15515 # Do not complain, so a configure script can configure whichever
15516 # parts of a large source tree are present.
15517 test -d "$srcdir/$ac_dir" || continue
15519 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15520 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15521 $as_echo "$ac_msg" >&6
15522 as_dir="$ac_dir"; as_fn_mkdir_p
15526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15529 # A ".." for each directory in $ac_dir_suffix.
15530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15531 case $ac_top_builddir_sub in
15532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15536 ac_abs_top_builddir=$ac_pwd
15537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15538 # for backward compatibility:
15539 ac_top_builddir=$ac_top_build_prefix
15542 .) # We are building in place.
15544 ac_top_srcdir=$ac_top_builddir_sub
15545 ac_abs_top_srcdir=$ac_pwd ;;
15546 [\\/]* | ?:[\\/]* ) # Absolute name.
15547 ac_srcdir=$srcdir$ac_dir_suffix;
15548 ac_top_srcdir=$srcdir
15549 ac_abs_top_srcdir=$srcdir ;;
15550 *) # Relative name.
15551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15552 ac_top_srcdir=$ac_top_build_prefix$srcdir
15553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15560 # Check for guested configure; otherwise get Cygnus style configure.
15561 if test -f "$ac_srcdir/configure.gnu"; then
15562 ac_sub_configure=$ac_srcdir/configure.gnu
15563 elif test -f "$ac_srcdir/configure"; then
15564 ac_sub_configure=$ac_srcdir/configure
15565 elif test -f "$ac_srcdir/configure.in"; then
15566 # This should be Cygnus configure.
15567 ac_sub_configure=$ac_aux_dir/configure
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15574 # The recursion is here.
15575 if test -n "$ac_sub_configure"; then
15576 # Make the cache file name correct relative to the subdirectory.
15577 case $cache_file in
15578 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15579 *) # Relative name.
15580 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15583 { $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
15584 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15585 # The eval makes quoting arguments work.
15586 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15587 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15588 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15594 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15596 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}