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>
592 enable_option_checking
=no
593 ac_subst_vars
='am__EXEEXT_FALSE
656 TARGET_SYSTEM_ROOT_DEFINE
694 INSTALL_STRIP_PROGRAM
727 HAVE_SIGNED_SIG_ATOMIC_T
731 BITSIZEOF_SIG_ATOMIC_T
740 HAVE_UNSIGNED_LONG_LONG_INT
793 GL_COND_LIBTOOL_FALSE
838 MAINTAINER_MODE_FALSE
867 program_transform_name
878 ac_subst_files
='host_makefile_frag'
880 enable_option_checking
881 enable_maintainer_mode
882 enable_dependency_tracking
883 with_separate_debug_dir
885 with_relocated_sources
908 enable_build_warnings
909 enable_gdb_build_warnings
920 ac_precious_vars
='build_alias
932 ac_subdirs_all
='doc testsuite
937 # Initialize some variables set by options.
939 ac_init_version
=false
940 ac_unrecognized_opts
=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
951 program_transform_name
=s
,x
,x
,
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir
='${exec_prefix}/bin'
966 sbindir
='${exec_prefix}/sbin'
967 libexecdir
='${exec_prefix}/libexec'
968 datarootdir
='${prefix}/share'
969 datadir
='${datarootdir}'
970 sysconfdir
='${prefix}/etc'
971 sharedstatedir
='${prefix}/com'
972 localstatedir
='${prefix}/var'
973 includedir
='${prefix}/include'
974 oldincludedir
='/usr/include'
975 docdir
='${datarootdir}/doc/${PACKAGE}'
976 infodir
='${datarootdir}/info'
981 libdir
='${exec_prefix}/lib'
982 localedir
='${datarootdir}/locale'
983 mandir
='${datarootdir}/man'
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\
$ac_option
997 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1009 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1010 bindir
=$ac_optarg ;;
1012 -build |
--build |
--buil |
--bui |
--bu)
1013 ac_prev
=build_alias
;;
1014 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1015 build_alias
=$ac_optarg ;;
1017 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1018 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1019 ac_prev
=cache_file
;;
1020 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1021 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1022 cache_file
=$ac_optarg ;;
1024 --config-cache |
-C)
1025 cache_file
=config.cache
;;
1027 -datadir |
--datadir |
--datadi |
--datad)
1029 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1030 datadir
=$ac_optarg ;;
1032 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1033 |
--dataroo |
--dataro |
--datar)
1034 ac_prev
=datarootdir
;;
1035 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1036 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1037 datarootdir
=$ac_optarg ;;
1039 -disable-* |
--disable-*)
1040 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1043 as_fn_error
"invalid feature name: $ac_useropt"
1044 ac_useropt_orig
=$ac_useropt
1045 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_
$ac_useropt"
1050 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep
=', ';;
1053 eval enable_
$ac_useropt=no
;;
1055 -docdir |
--docdir |
--docdi |
--doc |
--do)
1057 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1058 docdir
=$ac_optarg ;;
1060 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1062 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1063 dvidir
=$ac_optarg ;;
1065 -enable-* |
--enable-*)
1066 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1069 as_fn_error
"invalid feature name: $ac_useropt"
1070 ac_useropt_orig
=$ac_useropt
1071 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_
$ac_useropt"
1076 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep
=', ';;
1079 eval enable_
$ac_useropt=\
$ac_optarg ;;
1081 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1082 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1083 |
--exec |
--exe |
--ex)
1084 ac_prev
=exec_prefix
;;
1085 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1086 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1087 |
--exec=* |
--exe=* |
--ex=*)
1088 exec_prefix
=$ac_optarg ;;
1090 -gas |
--gas |
--ga |
--g)
1091 # Obsolete; use --with-gas.
1094 -help |
--help |
--hel |
--he |
-h)
1095 ac_init_help
=long
;;
1096 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1097 ac_init_help
=recursive
;;
1098 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1099 ac_init_help
=short
;;
1101 -host |
--host |
--hos |
--ho)
1102 ac_prev
=host_alias
;;
1103 -host=* |
--host=* |
--hos=* |
--ho=*)
1104 host_alias
=$ac_optarg ;;
1106 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1108 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1110 htmldir
=$ac_optarg ;;
1112 -includedir |
--includedir |
--includedi |
--included |
--include \
1113 |
--includ |
--inclu |
--incl |
--inc)
1114 ac_prev
=includedir
;;
1115 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1116 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1117 includedir
=$ac_optarg ;;
1119 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1121 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1122 infodir
=$ac_optarg ;;
1124 -libdir |
--libdir |
--libdi |
--libd)
1126 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1127 libdir
=$ac_optarg ;;
1129 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1130 |
--libexe |
--libex |
--libe)
1131 ac_prev
=libexecdir
;;
1132 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1133 |
--libexe=* |
--libex=* |
--libe=*)
1134 libexecdir
=$ac_optarg ;;
1136 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1137 ac_prev
=localedir
;;
1138 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1139 localedir
=$ac_optarg ;;
1141 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1142 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1143 ac_prev
=localstatedir
;;
1144 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1145 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1146 localstatedir
=$ac_optarg ;;
1148 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1150 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1151 mandir
=$ac_optarg ;;
1153 -nfp |
--nfp |
--nf)
1154 # Obsolete; use --without-fp.
1157 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1158 |
--no-cr |
--no-c |
-n)
1161 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1162 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1165 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1166 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1167 |
--oldin |
--oldi |
--old |
--ol |
--o)
1168 ac_prev
=oldincludedir
;;
1169 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1170 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1171 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1172 oldincludedir
=$ac_optarg ;;
1174 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1176 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1177 prefix
=$ac_optarg ;;
1179 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1180 |
--program-pre |
--program-pr |
--program-p)
1181 ac_prev
=program_prefix
;;
1182 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1183 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1184 program_prefix
=$ac_optarg ;;
1186 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1187 |
--program-suf |
--program-su |
--program-s)
1188 ac_prev
=program_suffix
;;
1189 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1190 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1191 program_suffix
=$ac_optarg ;;
1193 -program-transform-name |
--program-transform-name \
1194 |
--program-transform-nam |
--program-transform-na \
1195 |
--program-transform-n |
--program-transform- \
1196 |
--program-transform |
--program-transfor \
1197 |
--program-transfo |
--program-transf \
1198 |
--program-trans |
--program-tran \
1199 |
--progr-tra |
--program-tr |
--program-t)
1200 ac_prev
=program_transform_name
;;
1201 -program-transform-name=* |
--program-transform-name=* \
1202 |
--program-transform-nam=* |
--program-transform-na=* \
1203 |
--program-transform-n=* |
--program-transform-=* \
1204 |
--program-transform=* |
--program-transfor=* \
1205 |
--program-transfo=* |
--program-transf=* \
1206 |
--program-trans=* |
--program-tran=* \
1207 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1208 program_transform_name
=$ac_optarg ;;
1210 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1212 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1213 pdfdir
=$ac_optarg ;;
1215 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1217 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1220 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1221 |
-silent |
--silent |
--silen |
--sile |
--sil)
1224 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1226 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1228 sbindir
=$ac_optarg ;;
1230 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1231 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1232 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1234 ac_prev
=sharedstatedir
;;
1235 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1236 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1237 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1239 sharedstatedir
=$ac_optarg ;;
1241 -site |
--site |
--sit)
1243 -site=* |
--site=* |
--sit=*)
1246 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1248 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1249 srcdir
=$ac_optarg ;;
1251 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1252 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1253 ac_prev
=sysconfdir
;;
1254 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1255 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1256 sysconfdir
=$ac_optarg ;;
1258 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1259 ac_prev
=target_alias
;;
1260 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1261 target_alias
=$ac_optarg ;;
1263 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1266 -version |
--version |
--versio |
--versi |
--vers |
-V)
1267 ac_init_version
=: ;;
1270 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1273 as_fn_error
"invalid package name: $ac_useropt"
1274 ac_useropt_orig
=$ac_useropt
1275 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep
=', ';;
1283 eval with_
$ac_useropt=\
$ac_optarg ;;
1285 -without-* |
--without-*)
1286 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1289 as_fn_error
"invalid package name: $ac_useropt"
1290 ac_useropt_orig
=$ac_useropt
1291 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1296 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep
=', ';;
1299 eval with_
$ac_useropt=no
;;
1302 # Obsolete; use --with-x.
1305 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1306 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1307 ac_prev
=x_includes
;;
1308 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1309 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1310 x_includes
=$ac_optarg ;;
1312 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1313 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1314 ac_prev
=x_libraries
;;
1315 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1316 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1317 x_libraries
=$ac_optarg ;;
1319 -*) as_fn_error
"unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1324 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1328 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1330 eval $ac_envvar=\
$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 if test -n "$ac_prev"; then
1345 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error
"missing argument to $ac_option"
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1352 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357 # Check all directory arguments for consistency.
1358 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val
=\$
$ac_var
1364 # Remove trailing slashes.
1367 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\
$ac_val;;
1370 # Be sure to have absolute directory names.
1372 [\\/$
]* | ?
:[\\/]* ) continue;;
1373 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1375 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1383 target
=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x
; then
1387 if test "x$build_alias" = x
; then
1388 cross_compiling
=maybe
1389 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 If a cross compiler is detected then cross compile mode will be used." >&2
1391 elif test "x$build_alias" != "x$host_alias"; then
1397 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1399 test "$silent" = yes && exec 6>/dev
/null
1402 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di
=`ls -di .` &&
1404 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1405 as_fn_error
"working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 as_fn_error
"pwd does not report name of working directory"
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412 ac_srcdir_defaulted
=yes
1413 # Try the directory containing this script, then the parent directory.
1414 ac_confdir
=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416 X"$as_myself" : 'X\(//\)[^/]' \| \
1417 X"$as_myself" : 'X\(//\)$' \| \
1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1442 ac_srcdir_defaulted
=no
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1446 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1448 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1460 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 for ac_var
in $ac_precious_vars; do
1463 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1465 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1476 \`configure' configures this package to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1534 --program-prefix=PREFIX prepend PREFIX to installed program names
1535 --program-suffix=SUFFIX append SUFFIX to installed program names
1536 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1539 --x-includes=DIR X include files are
in DIR
1540 --x-libraries=DIR X library files are
in DIR
1543 --build=BUILD configure
for building on BUILD
[guessed
]
1544 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1545 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1549 if test -n "$ac_init_help"; then
1554 --disable-option-checking ignore unrecognized
--enable/--with options
1555 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1556 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1557 --enable-maintainer-mode enable make rules and dependencies not useful
1558 (and sometimes confusing
) to the casual installer
1559 --disable-dependency-tracking speeds up one-time build
1560 --enable-dependency-tracking do not reject slow dependency extractors
1561 --enable-targets=TARGETS
1562 alternative target configurations
1563 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1564 --disable-gdbcli disable command-line interface
(CLI
)
1565 --disable-gdbmi disable machine-interface
(MI
)
1566 --enable-tui enable full-screen terminal user interface
(TUI
)
1567 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1568 --enable-profiling enable profiling of GDB
1569 --disable-rpath do not hardcode runtime library paths
1570 --enable-werror treat compile warnings as errors
1571 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1572 --enable-gdb-build-warnings
1573 enable GDB specific build-time compiler warnings
if
1575 --enable-sim link gdb with simulator
1576 --enable-multi-ice build the multi-ice-gdb-server
1579 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1580 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1581 --with-separate-debug-dir=PATH
1582 look for global separate debug info
in this path
1584 --with-gdb-datadir=PATH
look for global separate data files
in this path
1586 --with-relocated-sources=PATH
1587 automatically relocate this path
for source files
1588 --with-libunwind use libunwind frame unwinding support
1589 --with-curses use the curses library instead of the termcap
1591 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1592 --with-bugurl=URL Direct users to URL to report a bug
1593 --with-libiconv-prefix=DIR
1594 search
for libiconv
in DIR
/include and DIR
/lib
1595 --with-system-readline use installed readline library
1596 --with-expat include expat support
(auto
/yes
/no
)
1597 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1598 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1599 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1600 --with-python include python support (auto/yes/no/<path>)
1601 --without-included-regex
1602 don't use included regex
; this is the default on
1603 systems with version
2 of the GNU C library
(use
1604 with caution on other system
)
1605 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1606 --with-system-gdbinit=PATH
1607 automatically load a system-wide gdbinit
file
1608 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1609 --with-tk directory containing tk configuration
(tkConfig.sh
)
1610 --with-x use the X Window System
1611 --with-datarootdir use datarootdir as the data root directory.
1612 --with-docdir install documentation
in this directory.
1613 --with-pdfdir install pdf
in this directory.
1614 --with-htmldir install html
in this directory.
1616 Some influential environment variables
:
1617 CC C compiler
command
1618 CFLAGS C compiler flags
1619 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1620 nonstandard directory
<lib dir
>
1621 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1622 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1623 you have headers
in a nonstandard directory
<include dir
>
1625 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1626 the first program found out of: `bison
-y', `byacc', `yacc'.
1627 YFLAGS The list of arguments that will be passed by default to $YACC.
1628 This script will default YFLAGS to the empty string to avoid a
1629 default value of `-d' given by some make applications.
1630 XMKMF Path to xmkmf, Makefile generator for X Window System
1632 Use these variables to override the choices made by `configure' or to
help
1633 it to
find libraries and programs with nonstandard names
/locations.
1635 Report bugs to the package provider.
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1649 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1651 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1656 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1659 ac_abs_top_builddir
=$ac_pwd
1660 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir
=$ac_top_build_prefix
1665 .
) # We are building in place.
1667 ac_top_srcdir
=$ac_top_builddir_sub
1668 ac_abs_top_srcdir
=$ac_pwd ;;
1669 [\\/]* | ?
:[\\/]* ) # Absolute name.
1670 ac_srcdir
=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir
=$srcdir
1672 ac_abs_top_srcdir
=$srcdir ;;
1674 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1678 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1680 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1699 generated by GNU Autoconf
2.64
1701 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1702 This configure
script is free software
; the Free Software Foundation
1703 gives unlimited permission to copy
, distribute and modify it.
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile
()
1717 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1718 rm -f conftest.
$ac_objext
1719 if { { ac_try
="$ac_compile"
1721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 } # ac_fn_c_try_compile
1750 # ac_fn_c_try_cpp LINENO
1751 # ----------------------
1752 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 if { { ac_try="$ac_cpp conftest.$ac_ext"
1758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1759 *) ac_try_echo
=$ac_try;;
1761 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765 if test -s conftest.err
; then
1766 grep -v '^ *+' conftest.err
>conftest.er1
1767 cat conftest.er1
>&5
1768 mv -f conftest.er1 conftest.err
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } >/dev
/null
&& {
1772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.
$ac_ext >&5
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1787 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1788 # -------------------------------------------------------
1789 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1790 # the include files in INCLUDES and setting the cache variable VAR
1792 ac_fn_c_check_header_mongrel
()
1794 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1795 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1799 $as_echo_n "(cached) " >&6
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1805 # Is the header compilable?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1807 $as_echo_n "checking $2 usability... " >&6; }
1808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1813 if ac_fn_c_try_compile
"$LINENO"; then :
1814 ac_header_compiler
=yes
1816 ac_header_compiler
=no
1818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1820 $as_echo "$ac_header_compiler" >&6; }
1822 # Is the header present?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1824 $as_echo_n "checking $2 presence... " >&6; }
1825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1829 if ac_fn_c_try_cpp
"$LINENO"; then :
1830 ac_header_preproc
=yes
1832 ac_header_preproc
=no
1834 rm -f conftest.err conftest.
$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1836 $as_echo "$ac_header_preproc" >&6; }
1838 # So? What about this header?
1839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1842 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1848 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1850 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1852 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1854 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1862 $as_echo_n "(cached) " >&6
1864 eval "$3=\$ac_header_compiler"
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1872 } # ac_fn_c_check_header_mongrel
1874 # ac_fn_c_try_run LINENO
1875 # ----------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1877 # that executables *can* be run.
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 if { { ac_try
="$ac_link"
1883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>&5
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1892 { { case "(($ac_try" in
1893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1894 *) ac_try_echo
=$ac_try;;
1896 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_try") 2>&5
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; }; }; then :
1904 $as_echo "$as_me: program exited with status $ac_status" >&5
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.
$ac_ext >&5
1908 ac_retval
=$ac_status
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1916 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists and can be compiled using the include files in
1919 # INCLUDES, setting the cache variable VAR accordingly.
1920 ac_fn_c_check_header_compile
()
1922 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1926 $as_echo_n "(cached) " >&6
1928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1933 if ac_fn_c_try_compile
"$LINENO"; then :
1938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1945 } # ac_fn_c_check_header_compile
1947 # ac_fn_c_try_link LINENO
1948 # -----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded.
1952 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1953 rm -f conftest.
$ac_objext conftest
$ac_exeext
1954 if { { ac_try
="$ac_link"
1956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_link") 2>conftest.err
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && {
1970 test -z "$ac_c_werror_flag" ||
1971 test ! -s conftest.err
1972 } && test -s conftest$ac_exeext && {
1973 test "$cross_compiling" = yes ||
1974 $as_test_x conftest$ac_exeext
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1983 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1984 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1985 # interfere with the next link command; also delete a directory that is
1986 # left behind by Apple's compiler. We do this before executing the actions.
1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991 } # ac_fn_c_try_link
1993 # ac_fn_c_check_func LINENO FUNC VAR
1994 # ----------------------------------
1995 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1996 ac_fn_c_check_func ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2002 $as_echo_n "(cached) " >&6
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2008 #define $2 innocuous_$2
2010 /* System header to define __stub macros and hopefully few prototypes,
2011 which can conflict with char $2 (); below.
2012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2013 <limits.h> exists even on freestanding compilers. */
2016 # include <limits.h>
2018 # include <assert.h>
2023 /* Override any GCC internal prototype to avoid an error.
2024 Use char because int might match the return type of a GCC
2025 builtin and then its argument prototype would still apply. */
2030 /* The GNU C library defines this for functions which it implements
2031 to always fail with ENOSYS. Some functions are actually named
2032 something starting with __ and the normal name is an alias. */
2033 #if defined __stub_$2 || defined __stub___$2
2045 if ac_fn_c_try_link "$LINENO"; then :
2050 rm -f core conftest.err conftest.$ac_objext \
2051 conftest$ac_exeext conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 } # ac_fn_c_check_func
2060 # ac_fn_c_check_decl LINENO SYMBOL VAR
2061 # ------------------------------------
2062 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2063 ac_fn_c_check_decl ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2067 $as_echo_n "checking whether $2 is declared... " >&6; }
2068 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069 $as_echo_n "(cached) " >&6
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2085 if ac_fn_c_try_compile "$LINENO"; then :
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097 } # ac_fn_c_check_decl
2099 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2100 # --------------------------------------------
2101 # Tries to find the compile-time value of EXPR in a program that includes
2102 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2104 ac_fn_c_compute_int ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 if test "$cross_compiling" = yes; then
2108 # Depending upon the size, compute the lo and hi bounds.
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2115 static int test_array [1 - 2 * !(($2) >= 0)];
2122 if ac_fn_c_try_compile "$LINENO"; then :
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 ac_hi=$ac_mid; break
2141 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2142 if test $ac_lo -le $ac_mid; then
2146 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2157 static int test_array [1 - 2 * !(($2) < 0)];
2164 if ac_fn_c_try_compile "$LINENO"; then :
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2180 if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_lo=$ac_mid; break
2183 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2184 if test $ac_mid -le $ac_hi; then
2188 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 # Binary search between lo and hi bounds.
2199 while test "x$ac_lo" != "x$ac_hi"; do
2200 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2207 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2214 if ac_fn_c_try_compile "$LINENO"; then :
2217 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2229 static long int longval () { return $2; }
2230 static unsigned long int ulongval () { return $2; }
2237 FILE *f = fopen ("conftest.val", "w");
2242 long int i = longval ();
2245 fprintf (f, "%ld", i);
2249 unsigned long int i = ulongval ();
2252 fprintf (f, "%lu", i);
2254 /* Do not output a trailing newline, as this causes \r\n confusion
2255 on some platforms. */
2256 return ferror (f) || fclose (f) != 0;
2262 if ac_fn_c_try_run "$LINENO"; then :
2263 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2268 conftest.$ac_objext conftest.beam conftest.$ac_ext
2272 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275 } # ac_fn_c_compute_int
2277 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2278 # ----------------------------------------------------
2279 # Tries to find if the field MEMBER exists in type AGGR, after including
2280 # INCLUDES, setting cache variable VAR accordingly.
2281 ac_fn_c_check_member ()
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2285 $as_echo_n "checking for $2.$3... " >&6; }
2286 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2287 $as_echo_n "(cached) " >&6
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2302 if ac_fn_c_try_compile "$LINENO"; then :
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2312 if (sizeof ac_aggr.$3)
2318 if ac_fn_c_try_compile "$LINENO"; then :
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332 } # ac_fn_c_check_member
2334 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2335 # -------------------------------------------
2336 # Tests whether TYPE exists after having included INCLUDES, setting cache
2337 # variable VAR accordingly.
2338 ac_fn_c_check_type ()
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2372 if ac_fn_c_try_compile "$LINENO"; then :
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386 } # ac_fn_c_check_type
2387 cat >config.log <<_ACEOF
2388 This file contains any messages produced by compilers while
2389 running configure, to aid debugging if configure makes a mistake.
2391 It was created by $as_me, which was
2392 generated by GNU Autoconf 2.64. Invocation command line was
2404 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2405 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2406 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2407 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2408 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2410 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2411 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2413 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2414 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2415 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2416 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2417 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2418 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2419 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 $as_echo "PATH: $as_dir"
2444 # Keep a trace of the command line.
2445 # Strip out --no-create and --no-recursion so they do not pile up.
2446 # Strip out --silent because we don't want to record it for future runs.
2447 # Also quote any args containing shell meta-characters.
2448 # Make two passes to allow for proper duplicate-argument suppression.
2452 ac_must_keep_next=false
2458 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2460 | -silent | --silent | --silen | --sile | --sil)
2463 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2466 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2468 as_fn_append ac_configure_args1 " '$ac_arg'"
2469 if test $ac_must_keep_next = true; then
2470 ac_must_keep_next=false # Got value, back to normal.
2473 *=* | --config-cache | -C | -disable-* | --disable-* \
2474 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2475 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2476 | -with-* | --with-* | -without-* | --without-* | --x)
2477 case "$ac_configure_args0 " in
2478 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2481 -* ) ac_must_keep_next=true ;;
2484 as_fn_append ac_configure_args " '$ac_arg'"
2489 { ac_configure_args0=; unset ac_configure_args0;}
2490 { ac_configure_args1=; unset ac_configure_args1;}
2492 # When interrupted or exit'd, cleanup temporary files, and complete
2493 # config.log. We remove comments because anyway the quotes in there
2494 # would cause problems or look ugly.
2495 # WARNING: Use '\'' to represent an apostrophe within the trap.
2496 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2497 trap 'exit_status=$?
2498 # Save into config.log some information that might help in debugging.
2503 ## ---------------- ##
2504 ## Cache variables. ##
2505 ## ---------------- ##
2508 # The following way of writing the cache mishandles newlines in values,
2510 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2511 eval ac_val=\$$ac_var
2515 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2519 _ | IFS | as_nl) ;; #(
2520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2521 *) { eval $ac_var=; unset $ac_var;} ;;
2526 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2527 *${as_nl}ac_space=\ *)
2529 "s/'\''/'\''\\\\'\'''\''/g;
2530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2541 ## ----------------- ##
2542 ## Output variables. ##
2543 ## ----------------- ##
2546 for ac_var in $ac_subst_vars
2548 eval ac_val=\$$ac_var
2550 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2552 $as_echo "$ac_var='\''$ac_val'\''"
2556 if test -n "$ac_subst_files"; then
2558 ## ------------------- ##
2559 ## File substitutions. ##
2560 ## ------------------- ##
2563 for ac_var in $ac_subst_files
2565 eval ac_val=\$$ac_var
2567 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2569 $as_echo "$ac_var='\''$ac_val'\''"
2574 if test -s confdefs.h; then
2584 test "$ac_signal" != 0 &&
2585 $as_echo "$as_me: caught signal $ac_signal"
2586 $as_echo "$as_me: exit $exit_status"
2588 rm -f core *.core core.conftest.* &&
2589 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2592 for ac_signal in 1 2 13 15; do
2593 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2597 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2598 rm -f -r conftest* confdefs.h
2600 $as_echo "/* confdefs.h */" > confdefs.h
2602 # Predefined preprocessor variables.
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_NAME "$PACKAGE_NAME"
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_STRING "$PACKAGE_STRING"
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_URL "$PACKAGE_URL"
2629 # Let the site file select an alternate cache file if it wants to.
2630 # Prefer an explicitly selected file to automatically selected ones.
2633 if test -n "$CONFIG_SITE"; then
2634 ac_site_file1=$CONFIG_SITE
2635 elif test "x$prefix" != xNONE; then
2636 ac_site_file1=$prefix/share/config.site
2637 ac_site_file2=$prefix/etc/config.site
2639 ac_site_file1=$ac_default_prefix/share/config.site
2640 ac_site_file2=$ac_default_prefix/etc/config.site
2642 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2644 test "x$ac_site_file" = xNONE && continue
2645 if test -r "$ac_site_file"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2647 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2648 sed 's/^/| /' "$ac_site_file" >&5
2653 if test -r "$cache_file"; then
2654 # Some versions of bash will fail to source /dev/null (special
2655 # files actually), so we avoid doing that.
2656 if test -f "$cache_file"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2658 $as_echo "$as_me: loading cache $cache_file" >&6;}
2660 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2661 *) . "./$cache_file";;
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2666 $as_echo "$as_me: creating cache $cache_file" >&6;}
2670 gl_header_list="$gl_header_list stdint.h"
2671 gl_header_list="$gl_header_list wchar.h"
2672 gl_header_list="$gl_header_list string.h"
2673 # Check that the precious variables saved in the cache have kept the same
2675 ac_cache_corrupted=false
2676 for ac_var in $ac_precious_vars; do
2677 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2678 eval ac_new_set=\$ac_env_${ac_var}_set
2679 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2680 eval ac_new_val=\$ac_env_${ac_var}_value
2681 case $ac_old_set,$ac_new_set in
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2684 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2685 ac_cache_corrupted=: ;;
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2688 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2689 ac_cache_corrupted=: ;;
2692 if test "x$ac_old_val" != "x$ac_new_val"; then
2693 # differences in whitespace do not lead to failure.
2694 ac_old_val_w=`echo x
$ac_old_val`
2695 ac_new_val_w=`echo x
$ac_new_val`
2696 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2698 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2699 ac_cache_corrupted=:
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2702 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2703 eval $ac_var=\$ac_old_val
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2706 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2708 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2711 # Pass precious variables to config.status.
2712 if test "$ac_new_set" = set; then
2714 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2715 *) ac_arg=$ac_var=$ac_new_val ;;
2717 case " $ac_configure_args " in
2718 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2719 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2723 if $ac_cache_corrupted; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2727 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2728 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2730 ## -------------------- ##
2731 ## Main body of script. ##
2732 ## -------------------- ##
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744 ac_config_headers="$ac_config_headers config.h:config.in"
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2748 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2749 # Check whether --enable-maintainer-mode was given.
2750 if test "${enable_maintainer_mode+set}" = set; then :
2751 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2753 USE_MAINTAINER_MODE=no
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2757 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2758 if test $USE_MAINTAINER_MODE = yes; then
2759 MAINTAINER_MODE_TRUE=
2760 MAINTAINER_MODE_FALSE='#'
2762 MAINTAINER_MODE_TRUE='#'
2763 MAINTAINER_MODE_FALSE=
2766 MAINT=$MAINTAINER_MODE_TRUE
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if test "${ac_cv_prog_CC+set}" = set; then :
2781 $as_echo_n "(cached) " >&6
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 if test -n "$CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806 $as_echo "$CC" >&6; }
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2814 if test -z "$ac_cv_prog_CC"; then
2816 # Extract the first word of "gcc", so it can be a program name with args.
2817 set dummy gcc; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2821 $as_echo_n "(cached) " >&6
2823 if test -n "$ac_ct_CC"; then
2824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_ac_ct_CC="gcc"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2844 if test -n "$ac_ct_CC"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2846 $as_echo "$ac_ct_CC" >&6; }
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2852 if test "x$ac_ct_CC" = x; then
2855 case $cross_compiling:$ac_tool_warned in
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2859 ac_tool_warned=yes ;;
2867 if test -z "$CC"; then
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}cc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if test "${ac_cv_prog_CC+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_CC="${ac_tool_prefix}cc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2908 if test -z "$CC"; then
2909 # Extract the first word of "cc", so it can be a program name with args.
2910 set dummy cc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2928 ac_prog_rejected=yes
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 if test $ac_prog_rejected = yes; then
2940 # We found a bogon in the path, so make sure we never use it.
2941 set dummy $ac_cv_prog_CC
2943 if test $# != 0; then
2944 # We chose a different compiler from the bogus one.
2945 # However, it has the same basename, so the bogon will be chosen
2946 # first if we set CC to just the basename; use the full file name.
2948 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2964 if test -z "$CC"; then
2965 if test -n "$ac_tool_prefix"; then
2966 for ac_prog in cl.exe
2968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 if test -n "$CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3005 test -n "$CC" && break
3008 if test -z "$CC"; then
3010 for ac_prog in cl.exe
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013 set dummy $ac_prog; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3019 if test -n "$ac_ct_CC"; then
3020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_ac_ct_CC="$ac_prog"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040 if test -n "$ac_ct_CC"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042 $as_echo "$ac_ct_CC" >&6; }
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3049 test -n "$ac_ct_CC" && break
3052 if test "x$ac_ct_CC" = x; then
3055 case $cross_compiling:$ac_tool_warned in
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3059 ac_tool_warned=yes ;;
3068 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 as_fn_error "no acceptable C compiler found
in \
$PATH
3071 See \
`config.log' for more details." "$LINENO" 5; }
3073 # Provide some information about the compiler.
3074 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3077 for ac_option in --version -v -V -qversion; do
3078 { { ac_try="$ac_compiler $ac_option >&5"
3080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3081 *) ac_try_echo
=$ac_try;;
3083 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 $as_echo "$ac_try_echo"; } >&5
3085 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3087 if test -s conftest.err
; then
3089 ... rest of stderr output deleted ...
3090 10q' conftest.err
>conftest.er1
3091 cat conftest.er1
>&5
3092 rm -f conftest.er1 conftest.err
3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }
3098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3109 ac_clean_files_save
=$ac_clean_files
3110 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3111 # Try to create an executable without -o first, disregard a.out.
3112 # It will help us diagnose broken compilers, and finding out an intuition
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3115 $as_echo_n "checking for C compiler default output file name... " >&6; }
3116 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3118 # The possible output files:
3119 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3122 for ac_file
in $ac_files
3125 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3126 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3131 if { { ac_try
="$ac_link_default"
3133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_link_default") 2>&5
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; then :
3142 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3143 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3144 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3145 # so that the user can short-circuit this test for compilers unknown to
3147 for ac_file in $ac_files ''
3149 test -f "$ac_file" || continue
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3154 # We found the default executable, but exeext='' is most
3158 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3160 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3162 # We set ac_cv_exeext here because the later test for it is not
3163 # safe: cross compilers may not add the suffix if given an `-o'
3164 # argument, so we may need to know it at that point already.
3165 # Even if this section looks crufty: it has the advantage of
3172 test "$ac_cv_exeext" = no && ac_cv_exeext=
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3178 $as_echo "$ac_file" >&6; }
3179 if test -z "$ac_file"; then :
3180 $as_echo "$as_me: failed program was:" >&5
3181 sed 's
/^
/|
/' conftest.$ac_ext >&5
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3185 { as_fn_set_status 77
3186 as_fn_error "C compiler cannot create executables
3187 See \`config.log
' for more details." "$LINENO" 5; }; }
3189 ac_exeext=$ac_cv_exeext
3191 # Check that the compiler produces executables we can run. If not, either
3192 # the compiler is broken, or we cross compile.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194 $as_echo_n "checking whether the C compiler works... " >&6; }
3195 # If not cross compiling, check that we can run a simple program.
3196 if test "$cross_compiling" != yes; then
3197 if { ac_try='.
/$ac_file'
3198 { { case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_try") 2>&5
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; }; then
3210 if test "$cross_compiling" = maybe; then
3213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3215 as_fn_error "cannot run C compiled programs.
3216 If you meant to cross compile, use \`--host'.
3217 See \`config.log' for more details.
" "$LINENO" 5; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3222 $as_echo "yes" >&6; }
3224 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3225 ac_clean_files=$ac_clean_files_save
3226 # Check that the compiler produces executables we can run. If not, either
3227 # the compiler is broken, or we cross compile.
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3229 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3231 $as_echo "$cross_compiling" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3234 $as_echo_n "checking
for suffix of executables...
" >&6; }
3235 if { { ac_try="$ac_link"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_link") 2>&5
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3247 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3248 # work properly (i.e., refer to `conftest.exe'), while it won't with
3250 for ac_file in conftest.exe conftest conftest.*; do
3251 test -f "$ac_file" || continue
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error "cannot compute suffix of executables: cannot compile and link
3263 See \`config.log' for more details.
" "$LINENO" 5; }
3265 rm -f conftest$ac_cv_exeext
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3267 $as_echo "$ac_cv_exeext" >&6; }
3269 rm -f conftest.$ac_ext
3270 EXEEXT=$ac_cv_exeext
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3273 $as_echo_n "checking
for suffix of object files...
" >&6; }
3274 if test "${ac_cv_objext+set}" = set; then :
3275 $as_echo_n "(cached
) " >&6
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3288 rm -f conftest.o conftest.obj
3289 if { { ac_try="$ac_compile"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_compile") 2>&5
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3299 test $ac_status = 0; }; then :
3300 for ac_file in conftest.o conftest.obj conftest.*; do
3301 test -f "$ac_file" || continue;
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3304 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3309 $as_echo "$as_me: failed program was
:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error "cannot compute suffix of object files: cannot compile
3315 See \`config.log' for more details.
" "$LINENO" 5; }
3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3320 $as_echo "$ac_cv_objext" >&6; }
3321 OBJEXT=$ac_cv_objext
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3324 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3325 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3326 $as_echo_n "(cached
) " >&6
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3342 if ac_fn_c_try_compile "$LINENO"; then :
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3352 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3353 if test $ac_compiler_gnu = yes; then
3358 ac_test_CFLAGS=${CFLAGS+set}
3359 ac_save_CFLAGS=$CFLAGS
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3361 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3362 if test "${ac_cv_prog_cc_g+set}" = set; then :
3363 $as_echo_n "(cached
) " >&6
3365 ac_save_c_werror_flag=$ac_c_werror_flag
3366 ac_c_werror_flag=yes
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3380 if ac_fn_c_try_compile "$LINENO"; then :
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3395 if ac_fn_c_try_compile "$LINENO"; then :
3398 ac_c_werror_flag=$ac_save_c_werror_flag
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3411 if ac_fn_c_try_compile "$LINENO"; then :
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 ac_c_werror_flag=$ac_save_c_werror_flag
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3422 $as_echo "$ac_cv_prog_cc_g" >&6; }
3423 if test "$ac_test_CFLAGS" = set; then
3424 CFLAGS=$ac_save_CFLAGS
3425 elif test $ac_cv_prog_cc_g = yes; then
3426 if test "$GCC" = yes; then
3432 if test "$GCC" = yes; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3439 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3440 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3441 $as_echo_n "(cached
) " >&6
3443 ac_cv_prog_cc_c89=no
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3449 #include <sys/types.h>
3450 #include <sys/stat.h>
3451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3452 struct buf { int x; };
3453 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3454 static char *e (p, i)
3460 static char *f (char * (*g) (char **, int), char **p, ...)
3465 s = g (p, va_arg (v,int));
3470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3471 function prototypes and stuff, but not '\xHH' hex character constants.
3472 These don't provoke an error unfortunately, instead are silently treated
3473 as 'x'. The following induces an error, until -std is added to get
3474 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3475 array size at least. It's necessary to write '\x00'==0 to get something
3476 that's true only with -std. */
3477 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3480 inside strings and character constants. */
3482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3484 int test (int i, double x);
3485 struct s1 {int (*f) (int a);};
3486 struct s2 {int (*f) (double a);};
3487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3493 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3499 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3501 CC="$ac_save_CC $ac_arg"
3502 if ac_fn_c_try_compile "$LINENO"; then :
3503 ac_cv_prog_cc_c89=$ac_arg
3505 rm -f core conftest.err conftest.$ac_objext
3506 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3508 rm -f conftest.$ac_ext
3513 case "x
$ac_cv_prog_cc_c89" in
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3516 $as_echo "none needed
" >&6; } ;;
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3519 $as_echo "unsupported
" >&6; } ;;
3521 CC="$CC $ac_cv_prog_cc_c89"
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3525 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3542 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3543 # On Suns, sometimes $CPP names a directory.
3544 if test -n "$CPP" && test -d "$CPP"; then
3547 if test -z "$CPP"; then
3548 if test "${ac_cv_prog_CPP+set}" = set; then :
3549 $as_echo_n "(cached
) " >&6
3551 # Double quotes because CPP needs to be expanded
3552 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3555 for ac_c_preproc_warn_flag in '' yes
3557 # Use a header file that comes with gcc, so configuring glibc
3558 # with a fresh cross-compiler works.
3559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560 # <limits.h> exists even on freestanding compilers.
3561 # On the NeXT, cc -E runs the code through the compiler's parser,
3562 # not just through cpp. "Syntax error
" is here to catch this case.
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3566 # include <limits.h>
3568 # include <assert.h>
3572 if ac_fn_c_try_cpp "$LINENO"; then :
3575 # Broken: fails on valid input.
3578 rm -f conftest.err conftest.$ac_ext
3580 # OK, works on sane cases. Now check whether nonexistent headers
3581 # can be detected and how.
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584 #include <ac_nonexistent.h>
3586 if ac_fn_c_try_cpp "$LINENO"; then :
3587 # Broken: success on invalid input.
3590 # Passes both tests.
3594 rm -f conftest.err conftest.$ac_ext
3597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598 rm -f conftest.err conftest.$ac_ext
3599 if $ac_preproc_ok; then :
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3612 $as_echo "$CPP" >&6; }
3614 for ac_c_preproc_warn_flag in '' yes
3616 # Use a header file that comes with gcc, so configuring glibc
3617 # with a fresh cross-compiler works.
3618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619 # <limits.h> exists even on freestanding compilers.
3620 # On the NeXT, cc -E runs the code through the compiler's parser,
3621 # not just through cpp. "Syntax error
" is here to catch this case.
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3625 # include <limits.h>
3627 # include <assert.h>
3631 if ac_fn_c_try_cpp "$LINENO"; then :
3634 # Broken: fails on valid input.
3637 rm -f conftest.err conftest.$ac_ext
3639 # OK, works on sane cases. Now check whether nonexistent headers
3640 # can be detected and how.
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643 #include <ac_nonexistent.h>
3645 if ac_fn_c_try_cpp "$LINENO"; then :
3646 # Broken: success on invalid input.
3649 # Passes both tests.
3653 rm -f conftest.err conftest.$ac_ext
3656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3657 rm -f conftest.err conftest.$ac_ext
3658 if $ac_preproc_ok; then :
3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3664 See \`config.log' for more details.
" "$LINENO" 5; }
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3675 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3676 if test "${ac_cv_path_GREP+set}" = set; then :
3677 $as_echo_n "(cached
) " >&6
3679 if test -z "$GREP"; then
3680 ac_path_GREP_found=false
3681 # Loop through the user's path and test for each of PROGNAME-LIST
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3686 test -z "$as_dir" && as_dir=.
3687 for ac_prog in grep ggrep; do
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3690 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3691 # Check for GNU ac_path_GREP and select it if it is found.
3692 # Check for GNU $ac_path_GREP
3693 case `"$ac_path_GREP" --version 2>&1` in
3695 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3698 $as_echo_n 0123456789 >"conftest.
in"
3701 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3702 mv "conftest.tmp
" "conftest.
in"
3703 cp "conftest.
in" "conftest.
nl"
3704 $as_echo 'GREP' >> "conftest.
nl"
3705 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3706 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3707 as_fn_arith $ac_count + 1 && ac_count=$as_val
3708 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3709 # Best one so far, save it but keep looking for a better one
3710 ac_cv_path_GREP="$ac_path_GREP"
3711 ac_path_GREP_max=$ac_count
3713 # 10*(2^10) chars as input seems more than enough
3714 test $ac_count -gt 10 && break
3716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3719 $ac_path_GREP_found && break 3
3724 if test -z "$ac_cv_path_GREP"; then
3725 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3728 ac_cv_path_GREP=$GREP
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3733 $as_echo "$ac_cv_path_GREP" >&6; }
3734 GREP="$ac_cv_path_GREP"
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3738 $as_echo_n "checking
for egrep...
" >&6; }
3739 if test "${ac_cv_path_EGREP+set}" = set; then :
3740 $as_echo_n "(cached
) " >&6
3742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743 then ac_cv_path_EGREP="$GREP -E"
3745 if test -z "$EGREP"; then
3746 ac_path_EGREP_found=false
3747 # Loop through the user's path and test for each of PROGNAME-LIST
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3752 test -z "$as_dir" && as_dir=.
3753 for ac_prog in egrep; do
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3756 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3757 # Check for GNU ac_path_EGREP and select it if it is found.
3758 # Check for GNU $ac_path_EGREP
3759 case `"$ac_path_EGREP" --version 2>&1` in
3761 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3764 $as_echo_n 0123456789 >"conftest.
in"
3767 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3768 mv "conftest.tmp
" "conftest.
in"
3769 cp "conftest.
in" "conftest.
nl"
3770 $as_echo 'EGREP' >> "conftest.
nl"
3771 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3772 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3773 as_fn_arith $ac_count + 1 && ac_count=$as_val
3774 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3775 # Best one so far, save it but keep looking for a better one
3776 ac_cv_path_EGREP="$ac_path_EGREP"
3777 ac_path_EGREP_max=$ac_count
3779 # 10*(2^10) chars as input seems more than enough
3780 test $ac_count -gt 10 && break
3782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3785 $ac_path_EGREP_found && break 3
3790 if test -z "$ac_cv_path_EGREP"; then
3791 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3794 ac_cv_path_EGREP=$EGREP
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3800 $as_echo "$ac_cv_path_EGREP" >&6; }
3801 EGREP="$ac_cv_path_EGREP"
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3805 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3806 if test "${ac_cv_header_stdc+set}" = set; then :
3807 $as_echo_n "(cached
) " >&6
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_cv_header_stdc=yes
3827 ac_cv_header_stdc=no
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 if test $ac_cv_header_stdc = yes; then
3832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3838 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3839 $EGREP "memchr
" >/dev/null 2>&1; then :
3842 ac_cv_header_stdc=no
3848 if test $ac_cv_header_stdc = yes; then
3849 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3855 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3856 $EGREP "free
" >/dev/null 2>&1; then :
3859 ac_cv_header_stdc=no
3865 if test $ac_cv_header_stdc = yes; then
3866 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3867 if test "$cross_compiling" = yes; then :
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3874 #if ((' ' & 0x0FF) == 0x020)
3875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3878 # define ISLOWER(c) \
3879 (('a' <= (c) && (c) <= 'i') \
3880 || ('j' <= (c) && (c) <= 'r') \
3881 || ('s' <= (c) && (c) <= 'z'))
3882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3890 for (i = 0; i < 256; i++)
3891 if (XOR (islower (i), ISLOWER (i))
3892 || toupper (i) != TOUPPER (i))
3897 if ac_fn_c_try_run "$LINENO"; then :
3900 ac_cv_header_stdc=no
3902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3903 conftest.$ac_objext conftest.beam conftest.$ac_ext
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3909 $as_echo "$ac_cv_header_stdc" >&6; }
3910 if test $ac_cv_header_stdc = yes; then
3912 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3916 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3917 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3918 inttypes.h stdint.h unistd.h
3920 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3921 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3923 eval as_val
=\$
$as_ac_Header
3924 if test "x$as_val" = x
""yes; then :
3925 cat >>confdefs.h
<<_ACEOF
3926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3935 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3936 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3943 if test "$MINIX" = yes; then
3945 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3948 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3951 $as_echo "#define _MINIX 1" >>confdefs.h
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3957 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3958 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
3961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3964 # define __EXTENSIONS__ 1
3965 $ac_includes_default
3974 if ac_fn_c_try_compile
"$LINENO"; then :
3975 ac_cv_safe_to_define___extensions__
=yes
3977 ac_cv_safe_to_define___extensions__
=no
3979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3982 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3983 test $ac_cv_safe_to_define___extensions__ = yes &&
3984 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3986 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3988 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3990 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3992 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3995 if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3997 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4003 if test -n "$RANLIB"; then
4004 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4010 test -z "$as_dir" && as_dir
=.
4011 for ac_exec_ext
in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 RANLIB
=$ac_cv_prog_RANLIB
4024 if test -n "$RANLIB"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4026 $as_echo "$RANLIB" >&6; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4034 if test -z "$ac_cv_prog_RANLIB"; then
4035 ac_ct_RANLIB
=$RANLIB
4036 # Extract the first word of "ranlib", so it can be a program name with args.
4037 set dummy ranlib
; ac_word
=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4043 if test -n "$ac_ct_RANLIB"; then
4044 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir
=.
4051 for ac_exec_ext
in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4064 if test -n "$ac_ct_RANLIB"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4066 $as_echo "$ac_ct_RANLIB" >&6; }
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4072 if test "x$ac_ct_RANLIB" = x
; then
4075 case $cross_compiling:$ac_tool_warned in
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned
=yes ;;
4081 RANLIB
=$ac_ct_RANLIB
4084 RANLIB
="$ac_cv_prog_RANLIB"
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4096 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4097 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4100 am_cv_prog_cc_stdc
=no
4102 # Don't try gcc -ansi; that turns off useful extensions and
4103 # breaks some systems' header files.
4104 # AIX -qlanglvl=ansi
4105 # Ultrix and OSF/1 -std1
4106 # HP-UX 10.20 and later -Ae
4107 # HP-UX older versions -Aa -D_HPUX_SOURCE
4108 # SVR4 -Xc -D__EXTENSIONS__
4109 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4111 CC
="$ac_save_CC $ac_arg"
4112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4116 #include <sys/types.h>
4117 #include <sys/stat.h>
4118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4119 struct buf { int x; };
4120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4121 static char *e (p, i)
4127 static char *f (char * (*g) (char **, int), char **p, ...)
4132 s = g (p, va_arg (v,int));
4136 int test (int i, double x);
4137 struct s1 {int (*f) (int a);};
4138 struct s2 {int (*f) (double a);};
4139 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4153 if ac_fn_c_try_compile
"$LINENO"; then :
4154 am_cv_prog_cc_stdc
="$ac_arg"; break
4156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4162 if test -z "$am_cv_prog_cc_stdc"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4164 $as_echo "none needed" >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4167 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4169 case "x$am_cv_prog_cc_stdc" in
4171 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4176 for ac_dir
in ..
"$srcdir"/..
; do
4177 for ac_t
in install-sh
install.sh shtool
; do
4178 if test -f "$ac_dir/$ac_t"; then
4180 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4185 if test -z "$ac_aux_dir"; then
4186 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4189 # These three variables are undocumented and unsupported,
4190 # and are intended to be withdrawn in a future Autoconf release.
4191 # They can cause serious problems if a builder's source tree is in a directory
4192 # whose full name contains unusual characters.
4193 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4194 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4195 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4198 # Make sure we can run config.sub.
4199 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4200 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4203 $as_echo_n "checking build system type... " >&6; }
4204 if test "${ac_cv_build+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4207 ac_build_alias
=$build_alias
4208 test "x$ac_build_alias" = x
&&
4209 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4210 test "x$ac_build_alias" = x
&&
4211 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4212 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4213 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4217 $as_echo "$ac_cv_build" >&6; }
4218 case $ac_cv_build in
4220 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4223 ac_save_IFS
=$IFS; IFS
='-'
4229 # Remember, the first character of IFS is used to create $*,
4230 # except with old shells:
4233 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4237 $as_echo_n "checking host system type... " >&6; }
4238 if test "${ac_cv_host+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4241 if test "x$host_alias" = x
; then
4242 ac_cv_host
=$ac_cv_build
4244 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4245 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4250 $as_echo "$ac_cv_host" >&6; }
4253 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4256 ac_save_IFS
=$IFS; IFS
='-'
4262 # Remember, the first character of IFS is used to create $*,
4263 # except with old shells:
4266 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4270 $as_echo_n "checking target system type... " >&6; }
4271 if test "${ac_cv_target+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4274 if test "x$target_alias" = x
; then
4275 ac_cv_target
=$ac_cv_host
4277 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4278 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4283 $as_echo "$ac_cv_target" >&6; }
4284 case $ac_cv_target in
4286 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4288 target
=$ac_cv_target
4289 ac_save_IFS
=$IFS; IFS
='-'
4295 # Remember, the first character of IFS is used to create $*,
4296 # except with old shells:
4299 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4302 # The aliases save the names the user supplied, while $host etc.
4303 # will get canonicalized.
4304 test -n "$target_alias" &&
4305 test "$program_prefix$program_suffix$program_transform_name" = \
4307 program_prefix
=${target_alias}-
4310 # Dependency checking.
4311 rm -rf .tst
2>/dev
/null
4312 mkdir .tst
2>/dev
/null
4313 if test -d .tst
; then
4318 rmdir .tst
2>/dev
/null
4320 DEPDIR
="${am__leading_dot}deps"
4322 ac_config_commands
="$ac_config_commands depdir"
4325 depcc
="$CC" am_compiler_list
=
4327 am_depcomp
=$ac_aux_dir/depcomp
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4329 $as_echo_n "checking dependency style of $depcc... " >&6; }
4330 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4333 if test -f "$am_depcomp"; then
4334 # We make a subdir and do the tests there. Otherwise we can end up
4335 # making bogus files that we don't know about and never remove. For
4336 # instance it was reported that on HP-UX the gcc test will end up
4337 # making a dummy file named `D' -- because `-MD' means `put the output
4340 # Copy depcomp to subdir because otherwise we won't find it if we're
4341 # using a relative directory.
4342 cp "$am_depcomp" conftest.dir
4344 # We will build objects and dependencies in a subdirectory because
4345 # it helps to detect inapplicable dependency modes. For instance
4346 # both Tru64's cc and ICC support -MD to output dependencies as a
4347 # side effect of compilation, but ICC will put the dependencies in
4348 # the current directory while Tru64 will put them in the object
4352 am_cv_CC_dependencies_compiler_type
=none
4353 if test "$am_compiler_list" = ""; then
4354 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4356 for depmode
in $am_compiler_list; do
4357 if test $depmode = none
; then break; fi
4359 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4360 # Setup a source with many dependencies, because some compilers
4361 # like to wrap large dependency lists on column 80 (with \), and
4362 # we should not choose a depcomp mode which is confused by this.
4364 # We need to recreate these files for each test, as the compiler may
4365 # overwrite some of them when testing with obscure command lines.
4366 # This happens at least with the AIX C compiler.
4368 for i
in 1 2 3 4 5 6; do
4369 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4370 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4371 # Solaris 8's {/usr,}/bin/sh.
4372 touch sub
/conftst
$i.h
4374 echo "include sub/conftest.Po" > confmf
4376 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4377 # mode. It turns out that the SunPro C++ compiler does not properly
4378 # handle `-M -o', and we need to detect this.
4379 depcmd
="depmode=$depmode \
4380 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4381 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4382 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4383 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4384 if env
$depcmd > conftest.err
2>&1 &&
4385 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4386 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4387 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4388 # icc doesn't choke on unknown options, it will just issue warnings
4389 # or remarks (even with -Werror). So we grep stderr for any message
4390 # that says an option was ignored or not supported.
4391 # When given -MP, icc 7.0 and 7.1 complain thusly:
4392 # icc: Command line warning: ignoring option '-M'; no argument required
4393 # The diagnosis changed in icc 8.0:
4394 # icc: Command line remark: option '-MP' not supported
4395 if (grep 'ignoring option' conftest.err ||
4396 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4397 am_cv_CC_dependencies_compiler_type
=$depmode
4398 $as_echo "$as_me:$LINENO: success" >&5
4402 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4403 sed -e 's/^/| /' < conftest.err
>&5
4409 am_cv_CC_dependencies_compiler_type
=none
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4414 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4415 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4416 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4417 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4422 # Check for the 'make' the user wants to use.
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy
$ac_prog; ac_word
=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if test "${ac_cv_prog_MAKE+set}" = set; then :
4430 $as_echo_n "(cached) " >&6
4432 if test -n "$MAKE"; then
4433 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir
=.
4440 for ac_exec_ext
in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_MAKE
="$ac_prog"
4443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 MAKE
=$ac_cv_prog_MAKE
4453 if test -n "$MAKE"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4455 $as_echo "$MAKE" >&6; }
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4462 test -n "$MAKE" && break
4466 case "`$MAKE --version 2>&1 | sed 1q`" in
4471 if test "$MAKE_IS_GNU" = yes; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4480 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4482 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4483 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4484 $as_echo_n "(cached) " >&6
4486 cat >conftest.
make <<\_ACEOF
4489 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4492 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4494 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4496 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4500 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 $as_echo "yes" >&6; }
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507 SET_MAKE
="MAKE=${MAKE-make}"
4522 # If we haven't got the data from the intl directory,
4523 # assume NLS is disabled.
4532 if test -f ..
/intl
/config.intl
; then
4533 . ..
/intl
/config.intl
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4536 $as_echo_n "checking whether NLS is requested... " >&6; }
4537 if test x
"$USE_NLS" != xyes
; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542 $as_echo "yes" >&6; }
4544 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4548 $as_echo_n "checking for catalogs to be installed... " >&6; }
4549 # Look for .po and .gmo files in the source directory.
4552 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4553 # If there aren't any .gmo files the shell will give us the
4554 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4556 case "$cat" in *\
**)
4559 # The quadruple backslash is collapsed to a double backslash
4560 # by the backticks, then collapsed again by the double quotes,
4561 # leaving us with one backslash in the sed expression (right
4562 # before the dot that mustn't act as a wildcard).
4563 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4564 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4565 # The user is allowed to set LINGUAS to a list of languages to
4566 # install catalogs for. If it's empty that means "all of them."
4567 if test "x$LINGUAS" = x
; then
4568 CATALOGS
="$CATALOGS $cat"
4569 XLINGUAS
="$XLINGUAS $lang"
4571 case "$LINGUAS" in *$lang*)
4572 CATALOGS
="$CATALOGS $cat"
4573 XLINGUAS
="$XLINGUAS $lang"
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4580 $as_echo "$LINGUAS" >&6; }
4593 localedir
='${datadir}/locale'
4596 if test x
"$USE_NLS" = xyes
; then
4597 CONFIG_ALL
="$CONFIG_ALL all-po"
4598 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4599 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4600 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4616 GNULIB_STRCASESTR
=0;
4623 GNULIB_MBSCASECMP
=0;
4624 GNULIB_MBSNCASECMP
=0;
4625 GNULIB_MBSPCASECMP
=0;
4626 GNULIB_MBSCASESTR
=0;
4636 HAVE_DECL_MEMRCHR
=1;
4642 HAVE_DECL_STRNDUP
=1;
4643 HAVE_DECL_STRNLEN
=1;
4647 HAVE_DECL_STRTOK_R
=1;
4648 HAVE_DECL_STRERROR
=1;
4649 HAVE_DECL_STRSIGNAL
=1;
4651 REPLACE_STRSIGNAL
=0;
4653 REPLACE_STRCASESTR
=0;
4657 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4658 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
4664 cat >>confdefs.h
<<_ACEOF
4665 #define HAVE_DECL_MEMMEM $ac_have_decl
4680 for ac_func
in memmem
4682 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
4683 if test "x$ac_cv_func_memmem" = x
""yes; then :
4684 cat >>confdefs.h
<<_ACEOF
4685 #define HAVE_MEMMEM 1
4690 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4703 if test $ac_cv_have_decl_memmem = no
; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4710 $as_echo_n "checking for long long int... " >&6; }
4711 if test "${ac_cv_type_long_long_int+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4717 /* For now, do not test the preprocessor; as of 2007 there are too many
4718 implementations with broken preprocessors. Perhaps this can
4719 be revisited in 2012. In the meantime, code should not expect
4720 #if to work with literals wider than 32 bits. */
4721 /* Test literals. */
4722 long long int ll = 9223372036854775807ll;
4723 long long int nll = -9223372036854775807LL;
4724 unsigned long long int ull = 18446744073709551615ULL;
4725 /* Test constant expressions. */
4726 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4728 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4734 /* Test availability of runtime routines for shift and division. */
4735 long long int llmax = 9223372036854775807ll;
4736 unsigned long long int ullmax = 18446744073709551615ull;
4737 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4738 | (llmax / ll) | (llmax % ll)
4739 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4740 | (ullmax / ull) | (ullmax % ull));
4746 if ac_fn_c_try_link
"$LINENO"; then :
4747 if test "$cross_compiling" = yes; then :
4748 ac_cv_type_long_long_int
=yes
4750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4755 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4756 # define LLONG_MAX (HALF - 1 + HALF)
4761 long long int n = 1;
4765 long long int m = n << i;
4768 if (LLONG_MAX / 2 < m)
4776 if ac_fn_c_try_run
"$LINENO"; then :
4777 ac_cv_type_long_long_int
=yes
4779 ac_cv_type_long_long_int
=no
4781 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4782 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4786 ac_cv_type_long_long_int
=no
4788 rm -f core conftest.err conftest.
$ac_objext \
4789 conftest
$ac_exeext conftest.
$ac_ext
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4792 $as_echo "$ac_cv_type_long_long_int" >&6; }
4793 if test $ac_cv_type_long_long_int = yes; then
4795 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4801 $as_echo_n "checking for unsigned long long int... " >&6; }
4802 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4808 /* For now, do not test the preprocessor; as of 2007 there are too many
4809 implementations with broken preprocessors. Perhaps this can
4810 be revisited in 2012. In the meantime, code should not expect
4811 #if to work with literals wider than 32 bits. */
4812 /* Test literals. */
4813 long long int ll = 9223372036854775807ll;
4814 long long int nll = -9223372036854775807LL;
4815 unsigned long long int ull = 18446744073709551615ULL;
4816 /* Test constant expressions. */
4817 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4819 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4825 /* Test availability of runtime routines for shift and division. */
4826 long long int llmax = 9223372036854775807ll;
4827 unsigned long long int ullmax = 18446744073709551615ull;
4828 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4829 | (llmax / ll) | (llmax % ll)
4830 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4831 | (ullmax / ull) | (ullmax % ull));
4837 if ac_fn_c_try_link
"$LINENO"; then :
4838 ac_cv_type_unsigned_long_long_int
=yes
4840 ac_cv_type_unsigned_long_long_int
=no
4842 rm -f core conftest.err conftest.
$ac_objext \
4843 conftest
$ac_exeext conftest.
$ac_ext
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4846 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4847 if test $ac_cv_type_unsigned_long_long_int = yes; then
4849 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
4856 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
4857 if test "${gl_cv_have_include_next+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4860 rm -rf conftestd1 conftestd2
4861 mkdir conftestd1 conftestd2
4862 cat <<EOF > conftestd1/conftest.h
4863 #define DEFINED_IN_CONFTESTD1
4864 #include_next <conftest.h>
4865 #ifdef DEFINED_IN_CONFTESTD2
4868 #error "include_next doesn't work"
4871 cat <<EOF > conftestd2/conftest.h
4872 #ifndef DEFINED_IN_CONFTESTD1
4873 #error "include_next test doesn't work"
4875 #define DEFINED_IN_CONFTESTD2
4877 save_CPPFLAGS
="$CPPFLAGS"
4878 CPPFLAGS
="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 #include <conftest.h>
4883 if ac_fn_c_try_compile
"$LINENO"; then :
4884 gl_cv_have_include_next
=yes
4886 gl_cv_have_include_next
=no
4888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4889 CPPFLAGS
="$save_CPPFLAGS"
4890 rm -rf conftestd1 conftestd2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
4894 $as_echo "$gl_cv_have_include_next" >&6; }
4895 if test $gl_cv_have_include_next = yes; then
4898 $as_echo "#define HAVE_INCLUDE_NEXT 1" >>confdefs.h
4901 INCLUDE_NEXT
=include_next
4903 INCLUDE_NEXT
=include
4911 for ac_header
in $gl_header_list
4913 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4914 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4915 eval as_val
=\$
$as_ac_Header
4916 if test "x$as_val" = x
""yes; then :
4917 cat >>confdefs.h
<<_ACEOF
4918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4935 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4936 if test "${ac_cv_c_restrict+set}" = set; then :
4937 $as_echo_n "(cached) " >&6
4940 # The order here caters to the fact that C++ does not require restrict.
4941 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
4942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 typedef int * int_ptr;
4945 int foo (int_ptr $ac_kw ip) {
4959 if ac_fn_c_try_compile
"$LINENO"; then :
4960 ac_cv_c_restrict
=$ac_kw
4962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4963 test "$ac_cv_c_restrict" != no
&& break
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4968 $as_echo "$ac_cv_c_restrict" >&6; }
4970 case $ac_cv_c_restrict in
4972 no
) $as_echo "#define restrict /**/" >>confdefs.h
4974 *) cat >>confdefs.h
<<_ACEOF
4975 #define restrict $ac_cv_c_restrict
4999 if test $gl_cv_have_include_next = yes; then
5000 gl_cv_next_string_h
='<'string.h
'>'
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5003 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5004 if test "${gl_cv_next_string_h+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5008 if test $ac_cv_header_string_h = yes; then
5009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5014 gl_cv_next_string_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015 sed -n '\#/string.h#{
5016 s#.*"\(.*/string.h\)".*#\1#
5022 gl_cv_next_string_h
='<'string.h
'>'
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5027 $as_echo "$gl_cv_next_string_h" >&6; }
5029 NEXT_STRING_H
=$gl_cv_next_string_h
5036 HAVE_DECL_WCWIDTH
=1;
5043 GL_COND_LIBTOOL_TRUE
=
5044 GL_COND_LIBTOOL_FALSE
='#'
5046 GL_COND_LIBTOOL_TRUE
='#'
5047 GL_COND_LIBTOOL_FALSE
=
5050 gl_cond_libtool
=false
5056 gl_source_base
='gnulib'
5065 for ac_func
in memchr
5067 ac_fn_c_check_func
"$LINENO" "memchr" "ac_cv_func_memchr"
5068 if test "x$ac_cv_func_memchr" = x
""yes; then :
5069 cat >>confdefs.h
<<_ACEOF
5070 #define HAVE_MEMCHR 1
5075 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5081 if test $ac_cv_func_memchr = no
; then
5083 for ac_header
in bp-sym.h
5085 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5086 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5087 cat >>confdefs.h
<<_ACEOF
5088 #define HAVE_BP_SYM_H 1
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5100 $as_echo_n "checking for working memcmp... " >&6; }
5101 if test "${ac_cv_func_memcmp_working+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5104 if test "$cross_compiling" = yes; then :
5105 ac_cv_func_memcmp_working
=no
5107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5109 $ac_includes_default
5114 /* Some versions of memcmp are not 8-bit clean. */
5115 char c0 = '\100', c1 = '\200', c2 = '\201';
5116 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5119 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5120 or more and with at least one buffer not starting on a 4-byte boundary.
5121 William Lewis provided this test program. */
5126 for (i = 0; i < 4; i++)
5130 strcpy (a, "--------01111111");
5131 strcpy (b, "--------10000000");
5132 if (memcmp (a, b, 16) >= 0)
5142 if ac_fn_c_try_run
"$LINENO"; then :
5143 ac_cv_func_memcmp_working
=yes
5145 ac_cv_func_memcmp_working
=no
5147 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5148 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5153 $as_echo "$ac_cv_func_memcmp_working" >&6; }
5154 test $ac_cv_func_memcmp_working = no
&&
5161 gl_LIBOBJS
="$gl_LIBOBJS memcmp.$ac_objext"
5164 if test $ac_cv_func_memcmp_working = no
; then
5166 $as_echo "#define memcmp rpl_memcmp" >>confdefs.h
5173 if test $ac_cv_have_decl_memmem = yes; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5175 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5176 if test "${gl_cv_func_memmem_works+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5179 if test "$cross_compiling" = yes; then :
5180 gl_cv_func_memmem_works
="guessing no"
5182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5185 #include <string.h> /* for memmem */
5186 #include <stdlib.h> /* for malloc */
5187 #include <unistd.h> /* for alarm */
5193 char *haystack = (char *) malloc (2 * m + 1);
5194 char *needle = (char *) malloc (m + 1);
5196 /* Failure to compile this test due to missing alarm is okay,
5197 since all such platforms (mingw) also lack memmem. */
5199 /* Check for quadratic performance. */
5200 if (haystack && needle)
5202 memset (haystack, 'A', 2 * m);
5203 haystack[2 * m] = 'B';
5204 memset (needle, 'A', m);
5206 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5208 /* Check for empty needle behavior. */
5209 return !result || !memmem ("a", 1, 0, 0);
5214 if ac_fn_c_try_run
"$LINENO"; then :
5215 gl_cv_func_memmem_works
=yes
5217 gl_cv_func_memmem_works
=no
5219 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5220 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
5225 $as_echo "$gl_cv_func_memmem_works" >&6; }
5226 if test "$gl_cv_func_memmem_works" != yes; then
5235 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
5251 for ac_func
in memmem
5253 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5254 if test "x$ac_cv_func_memmem" = x
""yes; then :
5255 cat >>confdefs.h
<<_ACEOF
5256 #define HAVE_MEMMEM 1
5261 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5274 if test $ac_cv_have_decl_memmem = no
; then
5286 if test $ac_cv_type_long_long_int = yes; then
5287 HAVE_LONG_LONG_INT
=1
5289 HAVE_LONG_LONG_INT
=0
5293 if test $ac_cv_type_unsigned_long_long_int = yes; then
5294 HAVE_UNSIGNED_LONG_LONG_INT
=1
5296 HAVE_UNSIGNED_LONG_LONG_INT
=0
5300 if test $ac_cv_header_inttypes_h = yes; then
5307 if test $ac_cv_header_sys_types_h = yes; then
5325 if test $gl_cv_have_include_next = yes; then
5326 gl_cv_next_stdint_h
='<'stdint.h
'>'
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5329 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5330 if test "${gl_cv_next_stdint_h+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5334 if test $ac_cv_header_stdint_h = yes; then
5335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5340 gl_cv_next_stdint_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5341 sed -n '\#/stdint.h#{
5342 s#.*"\(.*/stdint.h\)".*#\1#
5348 gl_cv_next_stdint_h
='<'stdint.h
'>'
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5353 $as_echo "$gl_cv_next_stdint_h" >&6; }
5355 NEXT_STDINT_H
=$gl_cv_next_stdint_h
5359 if test $ac_cv_header_stdint_h = yes; then
5366 if test $ac_cv_header_stdint_h = yes; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5368 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5369 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5372 gl_cv_header_working_stdint_h
=no
5373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5377 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5378 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5379 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5381 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5382 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5383 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5387 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5388 included before <wchar.h>. */
5399 int8_t a1 = INT8_MAX;
5400 int8_t a1min = INT8_MIN;
5403 int16_t a2 = INT16_MAX;
5404 int16_t a2min = INT16_MIN;
5407 int32_t a3 = INT32_MAX;
5408 int32_t a3min = INT32_MIN;
5411 int64_t a4 = INT64_MAX;
5412 int64_t a4min = INT64_MIN;
5415 uint8_t b1 = UINT8_MAX;
5417 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5420 uint16_t b2 = UINT16_MAX;
5423 uint32_t b3 = UINT32_MAX;
5426 uint64_t b4 = UINT64_MAX;
5428 int_least8_t c1 = INT8_C (0x7f);
5429 int_least8_t c1max = INT_LEAST8_MAX;
5430 int_least8_t c1min = INT_LEAST8_MIN;
5431 int_least16_t c2 = INT16_C (0x7fff);
5432 int_least16_t c2max = INT_LEAST16_MAX;
5433 int_least16_t c2min = INT_LEAST16_MIN;
5434 int_least32_t c3 = INT32_C (0x7fffffff);
5435 int_least32_t c3max = INT_LEAST32_MAX;
5436 int_least32_t c3min = INT_LEAST32_MIN;
5437 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5438 int_least64_t c4max = INT_LEAST64_MAX;
5439 int_least64_t c4min = INT_LEAST64_MIN;
5440 uint_least8_t d1 = UINT8_C (0xff);
5441 uint_least8_t d1max = UINT_LEAST8_MAX;
5442 uint_least16_t d2 = UINT16_C (0xffff);
5443 uint_least16_t d2max = UINT_LEAST16_MAX;
5444 uint_least32_t d3 = UINT32_C (0xffffffff);
5445 uint_least32_t d3max = UINT_LEAST32_MAX;
5446 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5447 uint_least64_t d4max = UINT_LEAST64_MAX;
5448 int_fast8_t e1 = INT_FAST8_MAX;
5449 int_fast8_t e1min = INT_FAST8_MIN;
5450 int_fast16_t e2 = INT_FAST16_MAX;
5451 int_fast16_t e2min = INT_FAST16_MIN;
5452 int_fast32_t e3 = INT_FAST32_MAX;
5453 int_fast32_t e3min = INT_FAST32_MIN;
5454 int_fast64_t e4 = INT_FAST64_MAX;
5455 int_fast64_t e4min = INT_FAST64_MIN;
5456 uint_fast8_t f1 = UINT_FAST8_MAX;
5457 uint_fast16_t f2 = UINT_FAST16_MAX;
5458 uint_fast32_t f3 = UINT_FAST32_MAX;
5459 uint_fast64_t f4 = UINT_FAST64_MAX;
5461 intptr_t g = INTPTR_MAX;
5462 intptr_t gmin = INTPTR_MIN;
5465 uintptr_t h = UINTPTR_MAX;
5467 intmax_t i = INTMAX_MAX;
5468 uintmax_t j = UINTMAX_MAX;
5470 #include <limits.h> /* for CHAR_BIT */
5471 #define TYPE_MINIMUM(t) \
5472 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5473 #define TYPE_MAXIMUM(t) \
5474 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5477 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5478 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5480 /* Detect bug in FreeBSD 6.0 / ia64. */
5481 int check_SIG_ATOMIC:
5482 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5483 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5485 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5487 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5488 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5490 /* Detect bug in mingw. */
5492 WINT_MIN == TYPE_MINIMUM (wint_t)
5493 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5496 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5498 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5500 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5502 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5504 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5507 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5510 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5513 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5515 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5516 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5517 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5518 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5519 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5520 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5521 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5522 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5523 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5524 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5525 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5536 if ac_fn_c_try_compile
"$LINENO"; then :
5537 gl_cv_header_working_stdint_h
=yes
5539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5542 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5544 if test "$gl_cv_header_working_stdint_h" = yes; then
5547 for ac_header
in sys
/inttypes.h sys
/bitypes.h
5549 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5550 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5551 eval as_val
=\$
$as_ac_Header
5552 if test "x$as_val" = x
""yes; then :
5553 cat >>confdefs.h
<<_ACEOF
5554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5561 if test $ac_cv_header_sys_inttypes_h = yes; then
5562 HAVE_SYS_INTTYPES_H
=1
5564 HAVE_SYS_INTTYPES_H
=0
5567 if test $ac_cv_header_sys_bitypes_h = yes; then
5568 HAVE_SYS_BITYPES_H
=1
5570 HAVE_SYS_BITYPES_H
=0
5585 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5587 $as_echo_n "checking for bit size of $gltype... " >&6; }
5588 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5589 $as_echo_n "(cached) " >&6
5591 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5592 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5593 included before <wchar.h>. */
5602 #include <limits.h>"; then :
5608 eval gl_cv_bitsizeof_
${gltype}=\
$result
5611 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5613 $as_echo "$ac_res" >&6; }
5614 eval result
=\
$gl_cv_bitsizeof_${gltype}
5615 if test $result = unknown
; then
5618 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5619 cat >>confdefs.h
<<_ACEOF
5620 #define BITSIZEOF_${GLTYPE} $result
5623 eval BITSIZEOF_
${GLTYPE}=\
$result
5629 for gltype
in sig_atomic_t wchar_t wint_t
; do
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5631 $as_echo_n "checking whether $gltype is signed... " >&6; }
5632 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5633 $as_echo_n "(cached) " >&6
5635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5638 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5639 included before <wchar.h>. */
5648 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5657 if ac_fn_c_try_compile
"$LINENO"; then :
5662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5663 eval gl_cv_type_
${gltype}_signed
=\
$result
5666 eval ac_res
=\
$gl_cv_type_${gltype}_signed
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5668 $as_echo "$ac_res" >&6; }
5669 eval result
=\
$gl_cv_type_${gltype}_signed
5670 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5671 if test "$result" = yes; then
5672 cat >>confdefs.h
<<_ACEOF
5673 #define HAVE_SIGNED_${GLTYPE} 1
5676 eval HAVE_SIGNED_
${GLTYPE}=1
5678 eval HAVE_SIGNED_
${GLTYPE}=0
5683 gl_cv_type_ptrdiff_t_signed
=yes
5684 gl_cv_type_size_t_signed
=no
5687 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5689 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5690 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5691 $as_echo_n "(cached) " >&6
5693 eval gl_cv_type_
${gltype}_suffix
=no
5694 eval result
=\
$gl_cv_type_${gltype}_signed
5695 if test "$result" = yes; then
5700 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
5703 l
) gltype1
='long int';;
5704 ll
) gltype1
='long long int';;
5705 i64
) gltype1
='__int64';;
5706 u
) gltype1
='unsigned int';;
5707 ul
) gltype1
='unsigned long int';;
5708 ull
) gltype1
='unsigned long long int';;
5709 ui64
)gltype1
='unsigned __int64';;
5711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5714 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5715 included before <wchar.h>. */
5725 extern $gltype1 foo;
5734 if ac_fn_c_try_compile
"$LINENO"; then :
5735 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
5737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5738 eval result
=\
$gl_cv_type_${gltype}_suffix
5739 test "$result" != no
&& break
5742 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5744 $as_echo "$ac_res" >&6; }
5745 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5746 eval result
=\
$gl_cv_type_${gltype}_suffix
5747 test "$result" = no
&& result
=
5748 eval ${GLTYPE}_SUFFIX
=\
$result
5749 cat >>confdefs.h
<<_ACEOF
5750 #define ${GLTYPE}_SUFFIX $result
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
5767 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
5768 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
5769 $as_echo_n "(cached) " >&6
5771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5776 if ac_fn_c_try_compile
"$LINENO"; then :
5777 gl_cv_header_wchar_h_standalone
=yes
5779 gl_cv_header_wchar_h_standalone
=no
5781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
5784 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
5785 if test $gl_cv_header_wchar_h_standalone != yes; then
5796 if test $ac_cv_header_wchar_h = yes; then
5813 if test $gl_cv_have_include_next = yes; then
5814 gl_cv_next_wchar_h
='<'wchar.h
'>'
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
5817 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
5818 if test "${gl_cv_next_wchar_h+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5822 if test $ac_cv_header_wchar_h = yes; then
5823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5828 gl_cv_next_wchar_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5829 sed -n '\#/wchar.h#{
5830 s#.*"\(.*/wchar.h\)".*#\1#
5836 gl_cv_next_wchar_h
='<'wchar.h
'>'
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
5841 $as_echo "$gl_cv_next_wchar_h" >&6; }
5843 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
5857 gl_source_base
='tests'
5862 LIBGNU_LIBDEPS
="$gl_libdeps"
5864 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
5868 # For Makefile dependencies.
5870 if test x
"$STDINT_H" != x
; then
5871 GNULIB_STDINT_H
=gnulib
/$STDINT_H
5877 cat >>confdefs.h
<<_ACEOF
5878 #define PACKAGE "$PACKAGE"
5883 # GDB does not use automake, but gnulib does. This line lets us
5884 # generate its Makefile.in.
5885 am__api_version
='1.11'
5887 # Find a good install program. We prefer a C program (faster),
5888 # so one script is as good as another. But avoid the broken or
5889 # incompatible versions:
5890 # SysV /etc/install, /usr/sbin/install
5891 # SunOS /usr/etc/install
5892 # IRIX /sbin/install
5894 # AmigaOS /C/install, which installs bootblocks on floppy discs
5895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5898 # OS/2's system install, which has a completely different semantic
5899 # ./install, which can be erroneously created by make from ./install.sh.
5900 # Reject install programs that cannot install multiple files.
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5902 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5903 if test -z "$INSTALL"; then
5904 if test "${ac_cv_path_install+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5911 test -z "$as_dir" && as_dir
=.
5912 # Account for people who put trailing slashes in PATH elements.
5913 case $as_dir/ in #((
5914 .
/ | .
// |
/[cC
]/* | \
5915 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5916 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5919 # OSF1 and SCO ODT 3.0 have their own names for install.
5920 # Don't use installbsd from OSF since it installs stuff as root
5922 for ac_prog
in ginstall scoinst
install; do
5923 for ac_exec_ext
in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5925 if test $ac_prog = install &&
5926 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5927 # AIX install. It has an incompatible calling convention.
5929 elif test $ac_prog = install &&
5930 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5931 # program-specific install script used by HP pwplus--don't use.
5934 rm -rf conftest.one conftest.two conftest.dir
5935 echo one
> conftest.one
5936 echo two
> conftest.two
5938 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5939 test -s conftest.one
&& test -s conftest.two
&&
5940 test -s conftest.dir
/conftest.one
&&
5941 test -s conftest.dir
/conftest.two
5943 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5956 rm -rf conftest.one conftest.two conftest.dir
5959 if test "${ac_cv_path_install+set}" = set; then
5960 INSTALL
=$ac_cv_path_install
5962 # As a last resort, use the slow shell script. Don't cache a
5963 # value for INSTALL within a source directory, because that will
5964 # break other packages using the cache if that directory is
5965 # removed, or if the value is a relative name.
5966 INSTALL
=$ac_install_sh
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5970 $as_echo "$INSTALL" >&6; }
5972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5973 # It thinks the first close brace ends the variable substitution.
5974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5978 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5981 $as_echo_n "checking whether build environment is sane... " >&6; }
5984 echo timestamp
> conftest.
file
5985 # Reject unsafe characters in $srcdir or the absolute working directory
5986 # name. Accept space and tab only in the latter.
5990 *[\\\"\
#\$\&\'\`$am_lf]*)
5991 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
5994 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
5995 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5998 # Do `set' in a subshell so we don't clobber the current shell's
5999 # arguments. Must try -L first in case configure is actually a
6000 # symlink; some systems play weird games with the mod time of symlinks
6001 # (eg FreeBSD returns the mod time of the symlink's containing
6004 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6005 if test "$*" = "X"; then
6007 set X
`ls -t "$srcdir/configure" conftest.file`
6010 if test "$*" != "X $srcdir/configure conftest.file" \
6011 && test "$*" != "X conftest.file $srcdir/configure"; then
6013 # If neither matched, then we have a broken ls. This can happen
6014 # if, for instance, CONFIG_SHELL is bash and it inherits a
6015 # broken ls alias from the environment. This has actually
6016 # happened. Such a system could not be considered "sane".
6017 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
6018 alias in your environment" "$LINENO" 5
6021 test "$2" = conftest.
file
6027 as_fn_error
"newly created file is older than distributed files!
6028 Check your system clock" "$LINENO" 5
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6031 $as_echo "yes" >&6; }
6032 test "$program_prefix" != NONE
&&
6033 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
6034 # Use a double $ so make ignores it.
6035 test "$program_suffix" != NONE
&&
6036 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
6037 # Double any \ or $.
6038 # By default was `s,x,x', remove it if useless.
6039 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
6040 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
6042 # expand $ac_aux_dir to an absolute path
6043 am_aux_dir
=`cd $ac_aux_dir && pwd`
6045 if test x
"${MISSING+set}" != xset
; then
6048 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
6050 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
6053 # Use eval to expand $SHELL
6054 if eval "$MISSING --run true"; then
6055 am_missing_run
="$MISSING --run "
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
6059 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6062 if test x
"${install_sh}" != xset
; then
6065 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
6067 install_sh
="\${SHELL} $am_aux_dir/install-sh"
6071 # Installed binaries are usually stripped using `strip' when the user
6072 # run `make install-strip'. However `strip' might not be the right
6073 # tool to use in cross-compilation environments, therefore Automake
6074 # will honor the `STRIP' environment variable to overrule this program.
6075 if test "$cross_compiling" != no
; then
6076 if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6078 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_STRIP+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6084 if test -n "$STRIP"; then
6085 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir
=.
6092 for ac_exec_ext
in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 STRIP
=$ac_cv_prog_STRIP
6105 if test -n "$STRIP"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6107 $as_echo "$STRIP" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6115 if test -z "$ac_cv_prog_STRIP"; then
6117 # Extract the first word of "strip", so it can be a program name with args.
6118 set dummy strip
; ac_word
=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6124 if test -n "$ac_ct_STRIP"; then
6125 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6131 test -z "$as_dir" && as_dir
=.
6132 for ac_exec_ext
in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_ac_ct_STRIP
="strip"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6145 if test -n "$ac_ct_STRIP"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6147 $as_echo "$ac_ct_STRIP" >&6; }
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6153 if test "x$ac_ct_STRIP" = x
; then
6156 case $cross_compiling:$ac_tool_warned in
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160 ac_tool_warned
=yes ;;
6165 STRIP
="$ac_cv_prog_STRIP"
6169 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6172 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6173 if test -z "$MKDIR_P"; then
6174 if test "${ac_cv_path_mkdir+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6178 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
6181 test -z "$as_dir" && as_dir
=.
6182 for ac_prog
in mkdir gmkdir
; do
6183 for ac_exec_ext
in '' $ac_executable_extensions; do
6184 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
6185 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6186 'mkdir (GNU coreutils) '* | \
6187 'mkdir (coreutils) '* | \
6188 'mkdir (fileutils) '4.1*)
6189 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
6199 if test "${ac_cv_path_mkdir+set}" = set; then
6200 MKDIR_P
="$ac_cv_path_mkdir -p"
6202 # As a last resort, use the slow shell script. Don't cache a
6203 # value for MKDIR_P within a source directory, because that will
6204 # break other packages using the cache if that directory is
6205 # removed, or if the value is a relative name.
6206 test -d .
/--version && rmdir .
/--version
6207 MKDIR_P
="$ac_install_sh -d"
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6211 $as_echo "$MKDIR_P" >&6; }
6215 [\\/$
]* | ?
:[\\/]*) ;;
6216 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
6219 for ac_prog
in gawk mawk nawk
awk
6221 # Extract the first word of "$ac_prog", so it can be a program name with args.
6222 set dummy
$ac_prog; ac_word
=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if test "${ac_cv_prog_AWK+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6228 if test -n "$AWK"; then
6229 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir
=.
6236 for ac_exec_ext
in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_AWK
="$ac_prog"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 if test -n "$AWK"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6251 $as_echo "$AWK" >&6; }
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6258 test -n "$AWK" && break
6261 ac_config_commands
="$ac_config_commands depfiles"
6264 am_make
=${MAKE-make}
6265 cat > confinc
<< 'END'
6267 @
echo this is the am__doit target
6270 # If we don't find an include directive, just comment out the code.
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6272 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6276 # First try GNU make style include.
6277 echo "include confinc" > confmf
6278 # Ignore all kinds of additional output from `make'.
6279 case `$am_make -s -f confmf 2> /dev/null` in #(
6280 *the\ am__doit\ target
*)
6286 # Now try BSD make style include.
6287 if test "$am__include" = "#"; then
6288 echo '.include "confinc"' > confmf
6289 case `$am_make -s -f confmf 2> /dev/null` in #(
6290 *the\ am__doit\ target
*)
6291 am__include
=.include
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6300 $as_echo "$_am_result" >&6; }
6301 rm -f confinc confmf
6303 # Check whether --enable-dependency-tracking was given.
6304 if test "${enable_dependency_tracking+set}" = set; then :
6305 enableval
=$enable_dependency_tracking;
6308 if test "x$enable_dependency_tracking" != xno
; then
6309 am_depcomp
="$ac_aux_dir/depcomp"
6312 if test "x$enable_dependency_tracking" != xno; then
6321 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6322 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6323 # is not polluted with repeated "-I."
6324 am__isrc
=' -I$(srcdir)'
6325 # test to see if srcdir already configured
6326 if test -f $srcdir/config.status
; then
6327 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6331 # test whether we have cygpath
6332 if test -z "$CYGPATH_W"; then
6333 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
6334 CYGPATH_W
='cygpath -w'
6341 # Define the identity of the package.
6343 VERSION
=UNUSED-VERSION
6346 # Some tools Automake needs.
6348 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6351 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
6354 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6357 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
6360 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
6362 # We need awk for the "check" target. The system "awk" is bad on
6364 # Always define AMTAR for backward compatibility.
6366 AMTAR
=${AMTAR-"${am_missing_run}tar"}
6368 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
6373 depcc
="$CC" am_compiler_list
=
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6376 $as_echo_n "checking dependency style of $depcc... " >&6; }
6377 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6380 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6381 # We make a subdir and do the tests there. Otherwise we can end up
6382 # making bogus files that we don't know about and never remove. For
6383 # instance it was reported that on HP-UX the gcc test will end up
6384 # making a dummy file named `D' -- because `-MD' means `put the output
6387 # Copy depcomp to subdir because otherwise we won't find it if we're
6388 # using a relative directory.
6389 cp "$am_depcomp" conftest.dir
6391 # We will build objects and dependencies in a subdirectory because
6392 # it helps to detect inapplicable dependency modes. For instance
6393 # both Tru64's cc and ICC support -MD to output dependencies as a
6394 # side effect of compilation, but ICC will put the dependencies in
6395 # the current directory while Tru64 will put them in the object
6399 am_cv_CC_dependencies_compiler_type
=none
6400 if test "$am_compiler_list" = ""; then
6401 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6404 case " $depcc " in #(
6405 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
6408 for depmode
in $am_compiler_list; do
6409 # Setup a source with many dependencies, because some compilers
6410 # like to wrap large dependency lists on column 80 (with \), and
6411 # we should not choose a depcomp mode which is confused by this.
6413 # We need to recreate these files for each test, as the compiler may
6414 # overwrite some of them when testing with obscure command lines.
6415 # This happens at least with the AIX C compiler.
6417 for i
in 1 2 3 4 5 6; do
6418 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6419 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6420 # Solaris 8's {/usr,}/bin/sh.
6421 touch sub
/conftst
$i.h
6423 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6425 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6426 # mode. It turns out that the SunPro C++ compiler does not properly
6427 # handle `-M -o', and we need to detect this. Also, some Intel
6428 # versions had trouble with output in subdirs
6429 am__obj
=sub
/conftest.
${OBJEXT-o}
6430 am__minus_obj
="-o $am__obj"
6433 # This depmode causes a compiler race in universal mode.
6434 test "$am__universal" = false ||
continue
6437 # after this tag, mechanisms are not by side-effect, so they'll
6438 # only be used when explicitly requested
6439 if test "x$enable_dependency_tracking" = xyes
; then
6445 msvisualcpp | msvcmsys
)
6446 # This compiler won't grok `-c -o', but also, the minuso test has
6447 # not run yet. These depmodes are late enough in the game, and
6448 # so weak that their functioning should not be impacted.
6449 am__obj
=conftest.
${OBJEXT-o}
6454 if depmode
=$depmode \
6455 source=sub
/conftest.c object
=$am__obj \
6456 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6457 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
6458 >/dev
/null
2>conftest.err
&&
6459 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6460 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6461 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
6462 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6463 # icc doesn't choke on unknown options, it will just issue warnings
6464 # or remarks (even with -Werror). So we grep stderr for any message
6465 # that says an option was ignored or not supported.
6466 # When given -MP, icc 7.0 and 7.1 complain thusly:
6467 # icc: Command line warning: ignoring option '-M'; no argument required
6468 # The diagnosis changed in icc 8.0:
6469 # icc: Command line remark: option '-MP' not supported
6470 if (grep 'ignoring option' conftest.err ||
6471 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6472 am_cv_CC_dependencies_compiler_type
=$depmode
6481 am_cv_CC_dependencies_compiler_type
=none
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6486 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6487 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6490 test "x$enable_dependency_tracking" != xno \
6491 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
6493 am__fastdepCC_FALSE
='#'
6495 am__fastdepCC_TRUE
='#'
6496 am__fastdepCC_FALSE
=
6504 # Check whether --with-separate-debug-dir was given.
6505 if test "${with_separate_debug_dir+set}" = set; then :
6506 withval
=$with_separate_debug_dir;
6509 DEBUGDIR
=${libdir}/debug
6513 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6514 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6515 ac_define_dir
=`eval echo $DEBUGDIR`
6516 ac_define_dir
=`eval echo $ac_define_dir`
6518 cat >>confdefs.h
<<_ACEOF
6519 #define DEBUGDIR "$ac_define_dir"
6524 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6525 if test "x$prefix" = xNONE
; then
6526 test_prefix
=/usr
/local
6531 test_prefix
=$exec_prefix
6534 case ${ac_define_dir} in
6535 "${test_prefix}"|
"${test_prefix}/"*|\
6536 '${exec_prefix}'|
'${exec_prefix}/'*)
6541 cat >>confdefs.h
<<_ACEOF
6542 #define DEBUGDIR_RELOCATABLE $value
6547 # GDB's datadir relocation
6551 # Check whether --with-gdb-datadir was given.
6552 if test "${with_gdb_datadir+set}" = set; then :
6553 withval
=$with_gdb_datadir;
6554 GDB_DATADIR
=$withval
6556 GDB_DATADIR
=${datadir}/gdb
6560 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6561 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6562 ac_define_dir
=`eval echo $GDB_DATADIR`
6563 ac_define_dir
=`eval echo $ac_define_dir`
6565 cat >>confdefs.h
<<_ACEOF
6566 #define GDB_DATADIR "$ac_define_dir"
6571 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6572 if test "x$prefix" = xNONE
; then
6573 test_prefix
=/usr
/local
6578 test_prefix
=$exec_prefix
6581 case ${ac_define_dir} in
6582 "${test_prefix}"|
"${test_prefix}/"*|\
6583 '${exec_prefix}'|
'${exec_prefix}/'*)
6588 cat >>confdefs.h
<<_ACEOF
6589 #define GDB_DATADIR_RELOCATABLE $value
6595 # Check whether --with-relocated-sources was given.
6596 if test "${with_relocated_sources+set}" = set; then :
6597 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6599 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6600 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6601 ac_define_dir
=`eval echo $reloc_srcdir`
6602 ac_define_dir
=`eval echo $ac_define_dir`
6604 cat >>confdefs.h
<<_ACEOF
6605 #define RELOC_SRCDIR "$ac_define_dir"
6615 subdirs
="$subdirs doc testsuite"
6618 # Check whether to support alternative target configurations
6619 # Check whether --enable-targets was given.
6620 if test "${enable_targets+set}" = set; then :
6621 enableval
=$enable_targets; case "${enableval}" in
6622 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6624 no
) enable_targets
= ;;
6625 *) enable_targets
=$enableval ;;
6630 # Check whether to enable 64-bit support on 32-bit hosts
6631 # Check whether --enable-64-bit-bfd was given.
6632 if test "${enable_64_bit_bfd+set}" = set; then :
6633 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6636 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6642 # Provide defaults for some variables set by the per-host and per-target
6644 gdb_host_obs
=posix-hdep.o
6646 if test "${target}" = "${host}"; then
6652 .
$srcdir/configure.
host
6654 # Accumulate some settings from configure.tgt over all enabled targets
6659 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6661 if test "$targ_alias" = "all"; then
6664 # Canonicalize the secondary target names.
6665 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6666 if test -n "$result"; then
6672 .
${srcdir}/configure.tgt
6674 # Target-specific object files
6675 for i
in ${gdb_target_obs}; do
6676 case " $TARGET_OBS " in
6679 TARGET_OBS
="$TARGET_OBS ${i}"
6684 # Check whether this target needs 64-bit CORE_ADDR
6685 if test x
${want64} = xfalse
; then
6686 .
${srcdir}/..
/bfd
/config.bfd
6691 if test x
${all_targets} = xtrue
; then
6693 # We want all 64-bit targets if we either:
6694 # - run on a 64-bit host or
6695 # - already require 64-bit support for some other target or
6696 # - the --enable-64-bit-bfd option was supplied
6697 # Otherwise we only support all 32-bit targets.
6699 # NOTE: This test must be in sync with the corresponding
6702 if test x
${want64} = xfalse
; then
6703 # The cast to long int works around a bug in the HP C Compiler
6704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6706 # This bug is HP SR number 8606223364.
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6708 $as_echo_n "checking size of long... " >&6; }
6709 if test "${ac_cv_sizeof_long+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6712 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6715 if test "$ac_cv_type_long" = yes; then
6716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6718 { as_fn_set_status
77
6719 as_fn_error
"cannot compute sizeof (long)
6720 See \`config.log' for more details." "$LINENO" 5; }; }
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6728 $as_echo "$ac_cv_sizeof_long" >&6; }
6732 cat >>confdefs.h
<<_ACEOF
6733 #define SIZEOF_LONG $ac_cv_sizeof_long
6737 if test "x${ac_cv_sizeof_long}" = "x8"; then
6741 if test x
${want64} = xtrue
; then
6742 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6744 TARGET_OBS
='$(ALL_TARGET_OBS)'
6750 # For other settings, only the main target counts.
6754 targ
=$target; .
${srcdir}/configure.tgt
6756 # Fetch the default architecture and default target vector from BFD.
6757 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6759 # We only want the first architecture, so strip off the others if
6760 # there is more than one.
6761 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6763 if test "x$targ_archs" != x
; then
6765 cat >>confdefs.h
<<_ACEOF
6766 #define DEFAULT_BFD_ARCH $targ_archs
6770 if test "x$targ_defvec" != x
; then
6772 cat >>confdefs.h
<<_ACEOF
6773 #define DEFAULT_BFD_VEC $targ_defvec
6778 # The CLI cannot be disabled yet, but may be in the future.
6781 # Check whether --enable-gdbcli was given.
6782 if test "${enable_gdbcli+set}" = set; then :
6783 enableval
=$enable_gdbcli; case $enableval in
6787 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
6789 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
6795 if test x
"$enable_gdbcli" = xyes
; then
6796 if test -d $srcdir/cli
; then
6797 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6798 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6799 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6800 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6805 # Check whether --enable-gdbmi was given.
6806 if test "${enable_gdbmi+set}" = set; then :
6807 enableval
=$enable_gdbmi; case $enableval in
6811 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6817 if test x
"$enable_gdbmi" = xyes
; then
6818 if test -d $srcdir/mi
; then
6819 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6820 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6821 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6822 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6827 # Check whether --enable-tui was given.
6828 if test "${enable_tui+set}" = set; then :
6829 enableval
=$enable_tui; case $enableval in
6833 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6841 # Check whether --enable-gdbtk was given.
6842 if test "${enable_gdbtk+set}" = set; then :
6843 enableval
=$enable_gdbtk; case $enableval in
6847 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6850 if test -d $srcdir/gdbtk
; then
6857 # We unconditionally disable gdbtk tests on selected platforms.
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6861 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6865 # Libunwind support.
6867 # Check whether --with-libunwind was given.
6868 if test "${with_libunwind+set}" = set; then :
6869 withval
=$with_libunwind; case "${withval}" in
6870 yes) enable_libunwind
=yes ;;
6871 no
) enable_libunwind
=no
;;
6872 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
6876 for ac_header
in libunwind.h libunwind-ia64.h
6878 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6879 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6880 eval as_val
=\$
$as_ac_Header
6881 if test "x$as_val" = x
""yes; then :
6882 cat >>confdefs.h
<<_ACEOF
6883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6890 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
6891 enable_libunwind
=yes;
6897 if test x
"$enable_libunwind" = xyes
; then
6898 for ac_header
in libunwind.h libunwind-ia64.h
6900 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6901 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6902 eval as_val
=\$
$as_ac_Header
6903 if test "x$as_val" = x
""yes; then :
6904 cat >>confdefs.h
<<_ACEOF
6905 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6913 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
6915 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
6916 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
6917 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
6922 # Check whether --with-curses was given.
6923 if test "${with_curses+set}" = set; then :
6924 withval
=$with_curses; opt_curses
=$withval
6929 if test "$opt_curses" = "yes"; then
6933 # Profiling support.
6934 # Check whether --enable-profiling was given.
6935 if test "${enable_profiling+set}" = set; then :
6936 enableval
=$enable_profiling; case $enableval in
6940 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6947 for ac_func
in monstartup _mcleanup
6949 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6950 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6951 eval as_val
=\$
$as_ac_var
6952 if test "x$as_val" = x
""yes; then :
6953 cat >>confdefs.h
<<_ACEOF
6954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6961 $as_echo_n "checking for _etext... " >&6; }
6962 if test "${ac_cv_var__etext+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6978 if ac_fn_c_try_link
"$LINENO"; then :
6979 ac_cv_var__etext
=yes
6983 rm -f core conftest.err conftest.
$ac_objext \
6984 conftest
$ac_exeext conftest.
$ac_ext
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6987 $as_echo "$ac_cv_var__etext" >&6; }
6988 if test $ac_cv_var__etext = yes; then
6990 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6994 $as_echo_n "checking for etext... " >&6; }
6995 if test "${ac_cv_var_etext+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
6998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7011 if ac_fn_c_try_link
"$LINENO"; then :
7016 rm -f core conftest.err conftest.
$ac_objext \
7017 conftest
$ac_exeext conftest.
$ac_ext
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7020 $as_echo "$ac_cv_var_etext" >&6; }
7021 if test $ac_cv_var_etext = yes; then
7023 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7026 if test "$enable_profiling" = yes ; then
7027 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
7028 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7031 OLD_CFLAGS
="$CFLAGS"
7032 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7035 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7036 if test "${ac_cv_cc_supports_pg+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7050 if ac_fn_c_try_compile
"$LINENO"; then :
7051 ac_cv_cc_supports_pg
=yes
7053 ac_cv_cc_supports_pg
=no
7055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7058 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7060 if test $ac_cv_cc_supports_pg = no
; then
7061 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7064 CFLAGS
="$OLD_CFLAGS"
7069 # Check whether --with-pkgversion was given.
7070 if test "${with_pkgversion+set}" = set; then :
7071 withval
=$with_pkgversion; case "$withval" in
7072 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7074 *) PKGVERSION
="($withval) " ;;
7085 # Check whether --with-bugurl was given.
7086 if test "${with_bugurl+set}" = set; then :
7087 withval
=$with_bugurl; case "$withval" in
7088 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7091 *) BUGURL
="$withval"
7095 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7105 REPORT_BUGS_TO
="<$BUGURL>"
7106 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7113 cat >>confdefs.h
<<_ACEOF
7114 #define PKGVERSION "$PKGVERSION"
7118 cat >>confdefs.h
<<_ACEOF
7119 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7123 # --------------------- #
7124 # Checks for programs. #
7125 # --------------------- #
7127 for ac_prog
in gawk mawk nawk
awk
7129 # Extract the first word of "$ac_prog", so it can be a program name with args.
7130 set dummy
$ac_prog; ac_word
=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if test "${ac_cv_prog_AWK+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7136 if test -n "$AWK"; then
7137 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7143 test -z "$as_dir" && as_dir
=.
7144 for ac_exec_ext
in '' $ac_executable_extensions; do
7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146 ac_cv_prog_AWK
="$ac_prog"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 if test -n "$AWK"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7159 $as_echo "$AWK" >&6; }
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7166 test -n "$AWK" && break
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7171 $as_echo_n "checking whether ln -s works... " >&6; }
7173 if test "$LN_S" = "ln -s"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7175 $as_echo "yes" >&6; }
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7178 $as_echo "no, using $LN_S" >&6; }
7181 if test -n "$ac_tool_prefix"; then
7182 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7183 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7187 $as_echo_n "(cached) " >&6
7189 if test -n "$RANLIB"; then
7190 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir
=.
7197 for ac_exec_ext
in '' $ac_executable_extensions; do
7198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7199 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 RANLIB
=$ac_cv_prog_RANLIB
7210 if test -n "$RANLIB"; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7212 $as_echo "$RANLIB" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7220 if test -z "$ac_cv_prog_RANLIB"; then
7221 ac_ct_RANLIB
=$RANLIB
7222 # Extract the first word of "ranlib", so it can be a program name with args.
7223 set dummy ranlib
; ac_word
=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7229 if test -n "$ac_ct_RANLIB"; then
7230 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir
=.
7237 for ac_exec_ext
in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7250 if test -n "$ac_ct_RANLIB"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7252 $as_echo "$ac_ct_RANLIB" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7258 if test "x$ac_ct_RANLIB" = x
; then
7261 case $cross_compiling:$ac_tool_warned in
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7265 ac_tool_warned
=yes ;;
7267 RANLIB
=$ac_ct_RANLIB
7270 RANLIB
="$ac_cv_prog_RANLIB"
7273 for ac_prog
in 'bison -y' byacc
7275 # Extract the first word of "$ac_prog", so it can be a program name with args.
7276 set dummy
$ac_prog; ac_word
=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if test "${ac_cv_prog_YACC+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7282 if test -n "$YACC"; then
7283 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7289 test -z "$as_dir" && as_dir
=.
7290 for ac_exec_ext
in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292 ac_cv_prog_YACC
="$ac_prog"
7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 YACC
=$ac_cv_prog_YACC
7303 if test -n "$YACC"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7305 $as_echo "$YACC" >&6; }
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7312 test -n "$YACC" && break
7314 test -n "$YACC" || YACC
="yacc"
7317 if test -n "$ac_tool_prefix"; then
7318 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7319 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_AR+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7325 if test -n "$AR"; then
7326 ac_cv_prog_AR
="$AR" # Let the user override the test.
7328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir
=.
7333 for ac_exec_ext
in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 if test -n "$AR"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7348 $as_echo "$AR" >&6; }
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7356 if test -z "$ac_cv_prog_AR"; then
7358 # Extract the first word of "ar", so it can be a program name with args.
7359 set dummy
ar; ac_word
=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7363 $as_echo_n "(cached) " >&6
7365 if test -n "$ac_ct_AR"; then
7366 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir
=.
7373 for ac_exec_ext
in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_prog_ac_ct_AR
="ar"
7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7386 if test -n "$ac_ct_AR"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7388 $as_echo "$ac_ct_AR" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7394 if test "x$ac_ct_AR" = x
; then
7397 case $cross_compiling:$ac_tool_warned in
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401 ac_tool_warned
=yes ;;
7409 if test -n "$ac_tool_prefix"; then
7410 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7411 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7417 if test -n "$DLLTOOL"; then
7418 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7424 test -z "$as_dir" && as_dir
=.
7425 for ac_exec_ext
in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 DLLTOOL
=$ac_cv_prog_DLLTOOL
7438 if test -n "$DLLTOOL"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7440 $as_echo "$DLLTOOL" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7448 if test -z "$ac_cv_prog_DLLTOOL"; then
7449 ac_ct_DLLTOOL
=$DLLTOOL
7450 # Extract the first word of "dlltool", so it can be a program name with args.
7451 set dummy dlltool
; ac_word
=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7455 $as_echo_n "(cached) " >&6
7457 if test -n "$ac_ct_DLLTOOL"; then
7458 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir
=.
7465 for ac_exec_ext
in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7478 if test -n "$ac_ct_DLLTOOL"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7480 $as_echo "$ac_ct_DLLTOOL" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7486 if test "x$ac_ct_DLLTOOL" = x
; then
7489 case $cross_compiling:$ac_tool_warned in
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493 ac_tool_warned
=yes ;;
7495 DLLTOOL
=$ac_ct_DLLTOOL
7498 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7501 if test -n "$ac_tool_prefix"; then
7502 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7503 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if test "${ac_cv_prog_WINDRES+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7509 if test -n "$WINDRES"; then
7510 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir
=.
7517 for ac_exec_ext
in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 WINDRES
=$ac_cv_prog_WINDRES
7530 if test -n "$WINDRES"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7532 $as_echo "$WINDRES" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7540 if test -z "$ac_cv_prog_WINDRES"; then
7541 ac_ct_WINDRES
=$WINDRES
7542 # Extract the first word of "windres", so it can be a program name with args.
7543 set dummy windres
; ac_word
=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7547 $as_echo_n "(cached) " >&6
7549 if test -n "$ac_ct_WINDRES"; then
7550 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir
=.
7557 for ac_exec_ext
in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_prog_ac_ct_WINDRES
="windres"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7570 if test -n "$ac_ct_WINDRES"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7572 $as_echo "$ac_ct_WINDRES" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7578 if test "x$ac_ct_WINDRES" = x
; then
7581 case $cross_compiling:$ac_tool_warned in
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585 ac_tool_warned
=yes ;;
7587 WINDRES
=$ac_ct_WINDRES
7590 WINDRES
="$ac_cv_prog_WINDRES"
7594 # Needed for GNU/Hurd.
7595 if test -n "$ac_tool_prefix"; then
7596 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7597 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if test "${ac_cv_prog_MIG+set}" = set; then :
7601 $as_echo_n "(cached) " >&6
7603 if test -n "$MIG"; then
7604 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir
=.
7611 for ac_exec_ext
in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 if test -n "$MIG"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7626 $as_echo "$MIG" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7634 if test -z "$ac_cv_prog_MIG"; then
7636 # Extract the first word of "mig", so it can be a program name with args.
7637 set dummy mig
; ac_word
=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7643 if test -n "$ac_ct_MIG"; then
7644 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir
=.
7651 for ac_exec_ext
in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_prog_ac_ct_MIG
="mig"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7664 if test -n "$ac_ct_MIG"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7666 $as_echo "$ac_ct_MIG" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7672 if test "x$ac_ct_MIG" = x
; then
7675 case $cross_compiling:$ac_tool_warned in
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned
=yes ;;
7684 MIG
="$ac_cv_prog_MIG"
7688 # ---------------------- #
7689 # Checks for libraries. #
7690 # ---------------------- #
7692 # We might need to link with -lm; most simulators need it.
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7694 $as_echo_n "checking for main in -lm... " >&6; }
7695 if test "${ac_cv_lib_m_main+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7698 ac_check_lib_save_LIBS
=$LIBS
7700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7712 if ac_fn_c_try_link
"$LINENO"; then :
7713 ac_cv_lib_m_main
=yes
7717 rm -f core conftest.err conftest.
$ac_objext \
7718 conftest
$ac_exeext conftest.
$ac_ext
7719 LIBS
=$ac_check_lib_save_LIBS
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7722 $as_echo "$ac_cv_lib_m_main" >&6; }
7723 if test "x$ac_cv_lib_m_main" = x
""yes; then :
7724 cat >>confdefs.h
<<_ACEOF
7733 # We need to link with -lw to get `wctype' on Solaris before Solaris
7734 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7735 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7736 # is known to have this problem). Therefore we avoid libw if we can.
7737 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
7738 if test "x$ac_cv_func_wctype" = x
""yes; then :
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
7742 $as_echo_n "checking for wctype in -lw... " >&6; }
7743 if test "${ac_cv_lib_w_wctype+set}" = set; then :
7744 $as_echo_n "(cached) " >&6
7746 ac_check_lib_save_LIBS
=$LIBS
7748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7751 /* Override any GCC internal prototype to avoid an error.
7752 Use char because int might match the return type of a GCC
7753 builtin and then its argument prototype would still apply. */
7766 if ac_fn_c_try_link
"$LINENO"; then :
7767 ac_cv_lib_w_wctype
=yes
7769 ac_cv_lib_w_wctype
=no
7771 rm -f core conftest.err conftest.
$ac_objext \
7772 conftest
$ac_exeext conftest.
$ac_ext
7773 LIBS
=$ac_check_lib_save_LIBS
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
7776 $as_echo "$ac_cv_lib_w_wctype" >&6; }
7777 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
7778 cat >>confdefs.h
<<_ACEOF
7789 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7791 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7792 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7793 $as_echo_n "(cached) " >&6
7795 ac_func_search_save_LIBS
=$LIBS
7796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7799 /* Override any GCC internal prototype to avoid an error.
7800 Use char because int might match the return type of a GCC
7801 builtin and then its argument prototype would still apply. */
7805 char gethostbyname ();
7809 return gethostbyname ();
7814 for ac_lib
in '' nsl
; do
7815 if test -z "$ac_lib"; then
7816 ac_res
="none required"
7819 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7821 if ac_fn_c_try_link
"$LINENO"; then :
7822 ac_cv_search_gethostbyname
=$ac_res
7824 rm -f core conftest.err conftest.
$ac_objext \
7826 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7830 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7833 ac_cv_search_gethostbyname
=no
7836 LIBS
=$ac_func_search_save_LIBS
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7839 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7840 ac_res
=$ac_cv_search_gethostbyname
7841 if test "$ac_res" != no
; then :
7842 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7847 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7849 $as_echo_n "checking for library containing socketpair... " >&6; }
7850 if test "${ac_cv_search_socketpair+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7853 ac_func_search_save_LIBS
=$LIBS
7854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7857 /* Override any GCC internal prototype to avoid an error.
7858 Use char because int might match the return type of a GCC
7859 builtin and then its argument prototype would still apply. */
7867 return socketpair ();
7872 for ac_lib
in '' socket
; do
7873 if test -z "$ac_lib"; then
7874 ac_res
="none required"
7877 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7879 if ac_fn_c_try_link
"$LINENO"; then :
7880 ac_cv_search_socketpair
=$ac_res
7882 rm -f core conftest.err conftest.
$ac_objext \
7884 if test "${ac_cv_search_socketpair+set}" = set; then :
7888 if test "${ac_cv_search_socketpair+set}" = set; then :
7891 ac_cv_search_socketpair
=no
7894 LIBS
=$ac_func_search_save_LIBS
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7897 $as_echo "$ac_cv_search_socketpair" >&6; }
7898 ac_res
=$ac_cv_search_socketpair
7899 if test "$ac_res" != no
; then :
7900 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7905 # Link in zlib if we can. This allows us to read compressed debug sections.
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
7907 $as_echo_n "checking for library containing zlibVersion... " >&6; }
7908 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
7911 ac_func_search_save_LIBS
=$LIBS
7912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7915 /* Override any GCC internal prototype to avoid an error.
7916 Use char because int might match the return type of a GCC
7917 builtin and then its argument prototype would still apply. */
7921 char zlibVersion ();
7925 return zlibVersion ();
7930 for ac_lib
in '' z
; do
7931 if test -z "$ac_lib"; then
7932 ac_res
="none required"
7935 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7937 if ac_fn_c_try_link
"$LINENO"; then :
7938 ac_cv_search_zlibVersion
=$ac_res
7940 rm -f core conftest.err conftest.
$ac_objext \
7942 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7946 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7949 ac_cv_search_zlibVersion
=no
7952 LIBS
=$ac_func_search_save_LIBS
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
7955 $as_echo "$ac_cv_search_zlibVersion" >&6; }
7956 ac_res
=$ac_cv_search_zlibVersion
7957 if test "$ac_res" != no
; then :
7958 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7959 for ac_header
in zlib.h
7961 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7962 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
7963 cat >>confdefs.h
<<_ACEOF
7964 #define HAVE_ZLIB_H 1
7974 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
7976 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
7977 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7980 ac_func_search_save_LIBS
=$LIBS
7981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7984 /* Override any GCC internal prototype to avoid an error.
7985 Use char because int might match the return type of a GCC
7986 builtin and then its argument prototype would still apply. */
7990 char dlgetmodinfo ();
7994 return dlgetmodinfo ();
7999 for ac_lib
in '' dl xpdl
; do
8000 if test -z "$ac_lib"; then
8001 ac_res
="none required"
8004 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8006 if ac_fn_c_try_link
"$LINENO"; then :
8007 ac_cv_search_dlgetmodinfo
=$ac_res
8009 rm -f core conftest.err conftest.
$ac_objext \
8011 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8015 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8018 ac_cv_search_dlgetmodinfo
=no
8021 LIBS
=$ac_func_search_save_LIBS
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
8024 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
8025 ac_res
=$ac_cv_search_dlgetmodinfo
8026 if test "$ac_res" != no
; then :
8027 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8035 # Check whether --with-libiconv-prefix was given.
8036 if test "${with_libiconv_prefix+set}" = set; then :
8037 withval
=$with_libiconv_prefix;
8038 for dir
in `echo "$withval" | tr : ' '`; do
8039 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
8040 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
8046 BUILD_LIBICONV_LIBDIR
="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
8047 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8050 $as_echo_n "checking for iconv... " >&6; }
8051 if test "${am_cv_func_iconv+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8055 am_cv_func_iconv
="no, consider installing GNU libiconv"
8057 am_cv_use_build_libiconv
=no
8059 # If libiconv is part of the build tree, then try using it over
8061 if test -d ..
/libiconv
; then
8062 am_save_LIBS
="$LIBS"
8063 am_save_CPPFLAGS
="$CPPFLAGS"
8064 LIBS
="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
8065 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
8066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8073 iconv_t cd = iconv_open("","");
8074 iconv(cd,NULL,NULL,NULL,NULL);
8080 if ac_fn_c_try_link
"$LINENO"; then :
8081 am_cv_use_build_libiconv
=yes
8083 am_cv_func_iconv
=yes
8085 rm -f core conftest.err conftest.
$ac_objext \
8086 conftest
$ac_exeext conftest.
$ac_ext
8087 LIBS
="$am_save_LIBS"
8088 CPPFLAGS
="$am_save_CPPFLAGS"
8091 # Next, try to find iconv in libc.
8092 if test "$am_cv_func_iconv" != yes; then
8093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8100 iconv_t cd = iconv_open("","");
8101 iconv(cd,NULL,NULL,NULL,NULL);
8107 if ac_fn_c_try_link
"$LINENO"; then :
8108 am_cv_func_iconv
=yes
8110 rm -f core conftest.err conftest.
$ac_objext \
8111 conftest
$ac_exeext conftest.
$ac_ext
8114 # If iconv was not in libc, try -liconv. In this case, arrange to
8115 # look in the libiconv prefix, if it was specified by the user.
8116 if test "$am_cv_func_iconv" != yes; then
8117 am_save_CPPFLAGS
="$CPPFLAGS"
8118 am_save_LIBS
="$LIBS"
8119 if test -n "$LIBICONV_INCLUDE"; then
8120 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
8121 LIBS
="$LIBS $LIBICONV_LIBDIR"
8123 LIBS
="$LIBS -liconv"
8124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8131 iconv_t cd = iconv_open("","");
8132 iconv(cd,NULL,NULL,NULL,NULL);
8138 if ac_fn_c_try_link
"$LINENO"; then :
8140 am_cv_func_iconv
=yes
8142 rm -f core conftest.err conftest.
$ac_objext \
8143 conftest
$ac_exeext conftest.
$ac_ext
8144 LIBS
="$am_save_LIBS"
8145 CPPFLAGS
="$am_save_CPPFLAGS"
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8150 $as_echo "$am_cv_func_iconv" >&6; }
8152 # Set the various flags based on the cache variables. We can't rely
8153 # on the flags to remain set from the above code, due to caching.
8155 if test "$am_cv_lib_iconv" = yes; then
8161 if test "$am_cv_use_build_libiconv" = yes; then
8162 LIBICONV_LIBDIR
="$BUILD_LIBICONV_LIBDIR"
8163 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
8165 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
8166 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
8168 if test "$am_cv_func_iconv" = yes; then
8170 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8173 $as_echo_n "checking for iconv declaration... " >&6; }
8174 if test "${am_cv_proto_iconv+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8187 #if defined(__STDC__) || defined(__cplusplus)
8188 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8201 if ac_fn_c_try_compile
"$LINENO"; then :
8202 am_cv_proto_iconv_arg1
=""
8204 am_cv_proto_iconv_arg1
="const"
8206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8207 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);"
8210 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8212 }$am_cv_proto_iconv" >&5
8214 }$am_cv_proto_iconv" >&6; }
8216 cat >>confdefs.h
<<_ACEOF
8217 #define ICONV_CONST $am_cv_proto_iconv_arg1
8223 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
8224 # There is a very specific comment in /usr/include/curses.h explaining that
8225 # termcap routines built into libcurses must not be used.
8227 # The symptoms we observed so far is GDB unexpectedly changing
8228 # the terminal settings when tgetent is called - this is particularly
8229 # visible as the output is missing carriage returns, and so rapidly
8230 # becomes very hard to read.
8232 # The readline configure script has already decided that libtermcap
8233 # was enough for its purposes, and so decided to build readline using
8234 # libtermcap. Since the TUI mode requires curses, building GDB with
8235 # TUI enabled results in both libraries to be used at the same time,
8236 # which is not allowed. This basically means that GDB with TUI is
8237 # broken on alpha-osf.
8241 if "$enable_tui" = "yes"; then
8242 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
8244 if "$enable_tui" = "auto"; then
8250 # For the TUI, we need enhanced curses functionality.
8251 if test x
"$enable_tui" != xno
; then
8256 if test x
"$prefer_curses" = xyes
; then
8257 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8258 # curses library because the latter might not provide all the
8259 # functionality we need. However, this leads to problems on systems
8260 # where the linker searches /usr/local/lib, but the compiler doesn't
8261 # search /usr/local/include, if ncurses is installed in /usr/local. A
8262 # default installation of ncurses on alpha*-dec-osf* will lead to such
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8265 $as_echo_n "checking for library containing waddstr... " >&6; }
8266 if test "${ac_cv_search_waddstr+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8269 ac_func_search_save_LIBS
=$LIBS
8270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8273 /* Override any GCC internal prototype to avoid an error.
8274 Use char because int might match the return type of a GCC
8275 builtin and then its argument prototype would still apply. */
8288 for ac_lib
in '' ncurses cursesX curses
; do
8289 if test -z "$ac_lib"; then
8290 ac_res
="none required"
8293 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8295 if ac_fn_c_try_link
"$LINENO"; then :
8296 ac_cv_search_waddstr
=$ac_res
8298 rm -f core conftest.err conftest.
$ac_objext \
8300 if test "${ac_cv_search_waddstr+set}" = set; then :
8304 if test "${ac_cv_search_waddstr+set}" = set; then :
8307 ac_cv_search_waddstr
=no
8310 LIBS
=$ac_func_search_save_LIBS
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8313 $as_echo "$ac_cv_search_waddstr" >&6; }
8314 ac_res
=$ac_cv_search_waddstr
8315 if test "$ac_res" != no
; then :
8316 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8321 if test "$ac_cv_search_waddstr" != no
; then
8326 # Check whether we should enable the TUI, but only do so if we really
8328 if test x
"$enable_tui" != xno
; then
8329 if test -d $srcdir/tui
; then
8330 if test "$curses_found" != no
; then
8331 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8332 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8333 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8334 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8335 CONFIG_ALL
="${CONFIG_ALL} all-tui"
8336 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
8337 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
8338 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
8340 if test x
"$enable_tui" = xyes
; then
8341 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8344 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8350 # Since GDB uses Readline, we need termcap functionality. In many
8351 # cases this will be provided by the curses library, but some systems
8352 # have a seperate termcap library, or no curses library at all.
8356 if test -d $srcdir/libtermcap
; then
8357 LIBS
="../libtermcap/libtermcap.a $LIBS"
8358 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8361 ac_cv_search_tgetent
="none required"
8364 ac_cv_search_tgetent
="none required"
8365 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
8369 # These are the libraries checked by Readline.
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8371 $as_echo_n "checking for library containing tgetent... " >&6; }
8372 if test "${ac_cv_search_tgetent+set}" = set; then :
8373 $as_echo_n "(cached) " >&6
8375 ac_func_search_save_LIBS
=$LIBS
8376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8379 /* Override any GCC internal prototype to avoid an error.
8380 Use char because int might match the return type of a GCC
8381 builtin and then its argument prototype would still apply. */
8394 for ac_lib
in '' termcap tinfo curses ncurses
; do
8395 if test -z "$ac_lib"; then
8396 ac_res
="none required"
8399 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8401 if ac_fn_c_try_link
"$LINENO"; then :
8402 ac_cv_search_tgetent
=$ac_res
8404 rm -f core conftest.err conftest.
$ac_objext \
8406 if test "${ac_cv_search_tgetent+set}" = set; then :
8410 if test "${ac_cv_search_tgetent+set}" = set; then :
8413 ac_cv_search_tgetent
=no
8416 LIBS
=$ac_func_search_save_LIBS
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8419 $as_echo "$ac_cv_search_tgetent" >&6; }
8420 ac_res
=$ac_cv_search_tgetent
8421 if test "$ac_res" != no
; then :
8422 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8427 if test "$ac_cv_search_tgetent" = no
; then
8428 as_fn_error
"no termcap library found" "$LINENO" 5
8432 # Check whether --with-system-readline was given.
8433 if test "${with_system_readline+set}" = set; then :
8434 withval
=$with_system_readline;
8438 if test "$with_system_readline" = yes; then
8443 READLINE
='$(READLINE_DIR)/libreadline.a'
8444 READLINE_DEPS
='$(READLINE)'
8445 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
8452 # Check whether --with-expat was given.
8453 if test "${with_expat+set}" = set; then :
8454 withval
=$with_expat;
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8460 $as_echo_n "checking whether to use expat... " >&6; }
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8462 $as_echo "$with_expat" >&6; }
8464 if test "${with_expat}" = no
; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8466 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8470 if test "X$prefix" = "XNONE"; then
8471 acl_final_prefix
="$ac_default_prefix"
8473 acl_final_prefix
="$prefix"
8475 if test "X$exec_prefix" = "XNONE"; then
8476 acl_final_exec_prefix
='${prefix}'
8478 acl_final_exec_prefix
="$exec_prefix"
8480 acl_save_prefix
="$prefix"
8481 prefix
="$acl_final_prefix"
8482 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8483 prefix
="$acl_save_prefix"
8486 # Check whether --with-gnu-ld was given.
8487 if test "${with_gnu_ld+set}" = set; then :
8488 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8493 # Prepare PATH_SEPARATOR.
8494 # The user is always right.
8495 if test "${PATH_SEPARATOR+set}" != set; then
8496 echo "#! /bin/sh" >conf$$.sh
8497 echo "exit 0" >>conf$$.sh
8499 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8507 if test "$GCC" = yes; then
8508 # Check if gcc -print-prog-name=ld gives a path.
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8510 $as_echo_n "checking for ld used by GCC... " >&6; }
8513 # gcc leaves a trailing carriage return which upsets mingw
8514 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8516 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8519 # Accept absolute paths.
8520 [\\/]* |
[A-Za-z
]:[\\/]*)
8521 re_direlt
='/[^/][^/]*/\.\./'
8522 # Canonicalize the path of ld
8523 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8524 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8525 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8527 test -z "$LD" && LD
="$ac_prog"
8530 # If it fails, then pretend we aren't using GCC.
8534 # If it is relative, then search for the first ld in PATH.
8538 elif test "$with_gnu_ld" = yes; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8540 $as_echo_n "checking for GNU ld... " >&6; }
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8543 $as_echo_n "checking for non-GNU ld... " >&6; }
8545 if test "${acl_cv_path_LD+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8548 if test -z "$LD"; then
8549 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8550 for ac_dir
in $PATH; do
8551 test -z "$ac_dir" && ac_dir
=.
8552 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8553 acl_cv_path_LD
="$ac_dir/$ac_prog"
8554 # Check to see if the program is GNU ld. I'd rather use --version,
8555 # but apparently some GNU ld's only accept -v.
8556 # Break only if it was the GNU/non-GNU ld that we prefer.
8557 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8558 test "$with_gnu_ld" != no
&& break
8560 test "$with_gnu_ld" != yes && break
8566 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8570 LD
="$acl_cv_path_LD"
8571 if test -n "$LD"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8573 $as_echo "$LD" >&6; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8578 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8581 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
8584 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8585 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8586 acl_cv_prog_gnu_ld
=yes
8588 acl_cv_prog_gnu_ld
=no
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8592 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8593 with_gnu_ld
=$acl_cv_prog_gnu_ld
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8598 $as_echo_n "checking for shared library run path origin... " >&6; }
8599 if test "${acl_cv_rpath+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8603 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8604 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8611 $as_echo "$acl_cv_rpath" >&6; }
8613 libext
="$acl_cv_libext"
8614 shlibext
="$acl_cv_shlibext"
8615 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8616 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8617 hardcode_direct
="$acl_cv_hardcode_direct"
8618 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8619 # Check whether --enable-rpath was given.
8620 if test "${enable_rpath+set}" = set; then :
8621 enableval
=$enable_rpath; :
8637 acl_save_prefix
="$prefix"
8638 prefix
="$acl_final_prefix"
8639 acl_save_exec_prefix
="$exec_prefix"
8640 exec_prefix
="$acl_final_exec_prefix"
8642 eval additional_includedir
=\"$includedir\"
8643 eval additional_libdir
=\"$libdir\"
8645 exec_prefix
="$acl_save_exec_prefix"
8646 prefix
="$acl_save_prefix"
8649 # Check whether --with-libexpat-prefix was given.
8650 if test "${with_libexpat_prefix+set}" = set; then :
8651 withval
=$with_libexpat_prefix;
8652 if test "X$withval" = "Xno"; then
8655 if test "X$withval" = "X"; then
8657 acl_save_prefix
="$prefix"
8658 prefix
="$acl_final_prefix"
8659 acl_save_exec_prefix
="$exec_prefix"
8660 exec_prefix
="$acl_final_exec_prefix"
8662 eval additional_includedir
=\"$includedir\"
8663 eval additional_libdir
=\"$libdir\"
8665 exec_prefix
="$acl_save_exec_prefix"
8666 prefix
="$acl_save_prefix"
8669 additional_includedir
="$withval/include"
8670 additional_libdir
="$withval/lib"
8681 names_already_handled
=
8682 names_next_round
='expat '
8683 while test -n "$names_next_round"; do
8684 names_this_round
="$names_next_round"
8686 for name
in $names_this_round; do
8688 for n
in $names_already_handled; do
8689 if test "$n" = "$name"; then
8694 if test -z "$already_handled"; then
8695 names_already_handled
="$names_already_handled $name"
8696 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8697 eval value
=\"\
$HAVE_LIB$uppername\"
8698 if test -n "$value"; then
8699 if test "$value" = yes; then
8700 eval value
=\"\
$LIB$uppername\"
8701 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
8702 eval value
=\"\
$LTLIB$uppername\"
8703 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8712 if test $use_additional = yes; then
8713 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8714 found_dir
="$additional_libdir"
8715 found_so
="$additional_libdir/lib$name.$shlibext"
8716 if test -f "$additional_libdir/lib$name.la"; then
8717 found_la
="$additional_libdir/lib$name.la"
8720 if test -f "$additional_libdir/lib$name.$libext"; then
8721 found_dir
="$additional_libdir"
8722 found_a
="$additional_libdir/lib$name.$libext"
8723 if test -f "$additional_libdir/lib$name.la"; then
8724 found_la
="$additional_libdir/lib$name.la"
8729 if test "X$found_dir" = "X"; then
8730 for x
in $LDFLAGS $LTLIBEXPAT; do
8732 acl_save_prefix
="$prefix"
8733 prefix
="$acl_final_prefix"
8734 acl_save_exec_prefix
="$exec_prefix"
8735 exec_prefix
="$acl_final_exec_prefix"
8737 exec_prefix
="$acl_save_exec_prefix"
8738 prefix
="$acl_save_prefix"
8742 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8743 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8745 found_so
="$dir/lib$name.$shlibext"
8746 if test -f "$dir/lib$name.la"; then
8747 found_la
="$dir/lib$name.la"
8750 if test -f "$dir/lib$name.$libext"; then
8752 found_a
="$dir/lib$name.$libext"
8753 if test -f "$dir/lib$name.la"; then
8754 found_la
="$dir/lib$name.la"
8760 if test "X$found_dir" != "X"; then
8765 if test "X$found_dir" != "X"; then
8766 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8767 if test "X$found_so" != "X"; then
8768 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8769 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8772 for x
in $ltrpathdirs; do
8773 if test "X$x" = "X$found_dir"; then
8778 if test -z "$haveit"; then
8779 ltrpathdirs
="$ltrpathdirs $found_dir"
8781 if test "$hardcode_direct" = yes; then
8782 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8784 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8785 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8787 for x
in $rpathdirs; do
8788 if test "X$x" = "X$found_dir"; then
8793 if test -z "$haveit"; then
8794 rpathdirs
="$rpathdirs $found_dir"
8798 for x
in $LDFLAGS $LIBEXPAT; do
8800 acl_save_prefix
="$prefix"
8801 prefix
="$acl_final_prefix"
8802 acl_save_exec_prefix
="$exec_prefix"
8803 exec_prefix
="$acl_final_exec_prefix"
8805 exec_prefix
="$acl_save_exec_prefix"
8806 prefix
="$acl_save_prefix"
8808 if test "X$x" = "X-L$found_dir"; then
8813 if test -z "$haveit"; then
8814 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8816 if test "$hardcode_minus_L" != no
; then
8817 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8819 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8825 if test "X$found_a" != "X"; then
8826 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8828 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8831 additional_includedir
=
8832 case "$found_dir" in
8834 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8835 additional_includedir
="$basedir/include"
8838 if test "X$additional_includedir" != "X"; then
8839 if test "X$additional_includedir" != "X/usr/include"; then
8841 if test "X$additional_includedir" = "X/usr/local/include"; then
8842 if test -n "$GCC"; then
8844 linux
*) haveit
=yes;;
8848 if test -z "$haveit"; then
8849 for x
in $CPPFLAGS $INCEXPAT; do
8851 acl_save_prefix
="$prefix"
8852 prefix
="$acl_final_prefix"
8853 acl_save_exec_prefix
="$exec_prefix"
8854 exec_prefix
="$acl_final_exec_prefix"
8856 exec_prefix
="$acl_save_exec_prefix"
8857 prefix
="$acl_save_prefix"
8859 if test "X$x" = "X-I$additional_includedir"; then
8864 if test -z "$haveit"; then
8865 if test -d "$additional_includedir"; then
8866 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8872 if test -n "$found_la"; then
8873 save_libdir
="$libdir"
8875 */* |
*\\*) .
"$found_la" ;;
8876 *) .
"./$found_la" ;;
8878 libdir
="$save_libdir"
8879 for dep
in $dependency_libs; do
8882 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8883 if test "X$additional_libdir" != "X/usr/lib"; then
8885 if test "X$additional_libdir" = "X/usr/local/lib"; then
8886 if test -n "$GCC"; then
8888 linux
*) haveit
=yes;;
8892 if test -z "$haveit"; then
8894 for x
in $LDFLAGS $LIBEXPAT; do
8896 acl_save_prefix
="$prefix"
8897 prefix
="$acl_final_prefix"
8898 acl_save_exec_prefix
="$exec_prefix"
8899 exec_prefix
="$acl_final_exec_prefix"
8901 exec_prefix
="$acl_save_exec_prefix"
8902 prefix
="$acl_save_prefix"
8904 if test "X$x" = "X-L$additional_libdir"; then
8909 if test -z "$haveit"; then
8910 if test -d "$additional_libdir"; then
8911 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8915 for x
in $LDFLAGS $LTLIBEXPAT; do
8917 acl_save_prefix
="$prefix"
8918 prefix
="$acl_final_prefix"
8919 acl_save_exec_prefix
="$exec_prefix"
8920 exec_prefix
="$acl_final_exec_prefix"
8922 exec_prefix
="$acl_save_exec_prefix"
8923 prefix
="$acl_save_prefix"
8925 if test "X$x" = "X-L$additional_libdir"; then
8930 if test -z "$haveit"; then
8931 if test -d "$additional_libdir"; then
8932 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8939 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8940 if test "$enable_rpath" != no
; then
8942 for x
in $rpathdirs; do
8943 if test "X$x" = "X$dir"; then
8948 if test -z "$haveit"; then
8949 rpathdirs
="$rpathdirs $dir"
8952 for x
in $ltrpathdirs; do
8953 if test "X$x" = "X$dir"; then
8958 if test -z "$haveit"; then
8959 ltrpathdirs
="$ltrpathdirs $dir"
8964 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8967 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8970 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8971 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8977 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8978 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8984 if test "X$rpathdirs" != "X"; then
8985 if test -n "$hardcode_libdir_separator"; then
8987 for found_dir
in $rpathdirs; do
8988 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8990 acl_save_libdir
="$libdir"
8992 eval flag
=\"$hardcode_libdir_flag_spec\"
8993 libdir
="$acl_save_libdir"
8994 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8996 for found_dir
in $rpathdirs; do
8997 acl_save_libdir
="$libdir"
8999 eval flag
=\"$hardcode_libdir_flag_spec\"
9000 libdir
="$acl_save_libdir"
9001 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9005 if test "X$ltrpathdirs" != "X"; then
9006 for found_dir
in $ltrpathdirs; do
9007 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9012 ac_save_CPPFLAGS
="$CPPFLAGS"
9014 for element
in $INCEXPAT; do
9016 for x
in $CPPFLAGS; do
9018 acl_save_prefix
="$prefix"
9019 prefix
="$acl_final_prefix"
9020 acl_save_exec_prefix
="$exec_prefix"
9021 exec_prefix
="$acl_final_exec_prefix"
9023 exec_prefix
="$acl_save_exec_prefix"
9024 prefix
="$acl_save_prefix"
9026 if test "X$x" = "X$element"; then
9031 if test -z "$haveit"; then
9032 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9038 $as_echo_n "checking for libexpat... " >&6; }
9039 if test "${ac_cv_libexpat+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9043 ac_save_LIBS
="$LIBS"
9044 LIBS
="$LIBS $LIBEXPAT"
9045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9051 XML_Parser p = XML_ParserCreate (0);
9056 if ac_fn_c_try_link
"$LINENO"; then :
9061 rm -f core conftest.err conftest.
$ac_objext \
9062 conftest
$ac_exeext conftest.
$ac_ext
9063 LIBS
="$ac_save_LIBS"
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9067 $as_echo "$ac_cv_libexpat" >&6; }
9068 if test "$ac_cv_libexpat" = yes; then
9071 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9074 $as_echo_n "checking how to link with libexpat... " >&6; }
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9076 $as_echo "$LIBEXPAT" >&6; }
9079 CPPFLAGS
="$ac_save_CPPFLAGS"
9089 if test "$HAVE_LIBEXPAT" != yes; then
9090 if test "$with_expat" = yes; then
9091 as_fn_error
"expat is missing or unusable" "$LINENO" 5
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9094 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9098 LIBS
="$LIBS $LIBEXPAT"
9099 for ac_func
in XML_StopParser
9101 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9102 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
9103 cat >>confdefs.h
<<_ACEOF
9104 #define HAVE_XML_STOPPARSER 1
9117 # Check whether --with-python was given.
9118 if test "${with_python+set}" = set; then :
9119 withval
=$with_python;
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
9125 $as_echo_n "checking whether to use python... " >&6; }
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
9127 $as_echo "$with_python" >&6; }
9129 if test "${with_python}" = no
; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
9131 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
9134 case "${with_python}" in
9136 # Leave as empty, use defaults.
9141 python_includes
="-I${with_python}/include"
9142 python_libs
="-L${with_python}/lib"
9145 as_fn_error
"invalid value for --with-python" "$LINENO" 5
9149 save_CPPFLAGS
=$CPPFLAGS
9150 CPPFLAGS
="$CPPFLAGS ${python_includes}"
9152 LIBS
="$LIBS ${python_libs}"
9154 if test "${have_libpython}" = no
; then
9159 HAVE_LIBPYTHON2_6
=no
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9161 $as_echo_n "checking for ${version}... " >&6; }
9163 LIBS
="$LIBS -l${version}"
9164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 #include "${version}/Python.h"
9175 if ac_fn_c_try_link
"$LINENO"; then :
9176 HAVE_LIBPYTHON2_6
=yes
9181 rm -f core conftest.err conftest.
$ac_objext \
9182 conftest
$ac_exeext conftest.
$ac_ext
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_6" >&5
9184 $as_echo "$HAVE_LIBPYTHON2_6" >&6; }
9186 if test "${HAVE_LIBPYTHON2_6}" = yes; then
9188 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9192 if test ${have_libpython} = no
; then
9197 HAVE_LIBPYTHON2_5
=no
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9199 $as_echo_n "checking for ${version}... " >&6; }
9201 LIBS
="$LIBS -l${version}"
9202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9204 #include "${version}/Python.h"
9213 if ac_fn_c_try_link
"$LINENO"; then :
9214 HAVE_LIBPYTHON2_5
=yes
9219 rm -f core conftest.err conftest.
$ac_objext \
9220 conftest
$ac_exeext conftest.
$ac_ext
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_5" >&5
9222 $as_echo "$HAVE_LIBPYTHON2_5" >&6; }
9224 if test "${HAVE_LIBPYTHON2_5}" = yes; then
9226 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9230 if test ${have_libpython} = no
; then
9235 HAVE_LIBPYTHON2_4
=no
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9237 $as_echo_n "checking for ${version}... " >&6; }
9239 LIBS
="$LIBS -l${version}"
9240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242 #include "${version}/Python.h"
9251 if ac_fn_c_try_link
"$LINENO"; then :
9252 HAVE_LIBPYTHON2_4
=yes
9257 rm -f core conftest.err conftest.
$ac_objext \
9258 conftest
$ac_exeext conftest.
$ac_ext
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_4" >&5
9260 $as_echo "$HAVE_LIBPYTHON2_4" >&6; }
9262 if test "${HAVE_LIBPYTHON2_4}" = yes; then
9264 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9268 if test ${have_libpython} = no
; then
9269 case "${with_python}" in
9271 as_fn_error
"python is missing or unusable" "$LINENO" 5
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9275 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9278 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
9281 CPPFLAGS
=$save_CPPFLAGS
9286 if test "${have_libpython}" = yes; then
9288 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9290 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9291 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9292 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9293 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9295 # Flags needed to compile Python code (taken from python-config --cflags).
9296 # We cannot call python-config directly because it will output whatever was
9297 # used when compiling the Python interpreter itself, including flags which
9298 # would make the python-related objects be compiled differently from the
9299 # rest of GDB (e.g., -O2 and -fPIC).
9300 if test "${GCC}" = yes; then
9301 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
9304 if test "x${tentative_python_cflags}" != x
; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9306 $as_echo_n "checking compiler flags for python code... " >&6; }
9307 for flag
in ${tentative_python_cflags}; do
9308 # Check that the compiler accepts it
9309 saved_CFLAGS
="$CFLAGS"
9310 CFLAGS
="$CFLAGS $flag"
9311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9322 if ac_fn_c_try_compile
"$LINENO"; then :
9323 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
9325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9326 CFLAGS
="$saved_CFLAGS"
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9329 $as_echo "${PYTHON_CFLAGS}" >&6; }
9332 # Even if Python support is not compiled in, we need to have these files
9333 # included in order to recognize the GDB command "python".
9334 CONFIG_OBS
="$CONFIG_OBS python.o python-value.o python-prettyprint.o"
9335 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/python-value.c python/python-prettyprint.c"
9339 # ------------------------- #
9340 # Checks for header files. #
9341 # ------------------------- #
9344 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9345 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9347 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9348 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9349 $as_echo_n "(cached) " >&6
9351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 #include <sys/types.h>
9365 if ac_fn_c_try_compile
"$LINENO"; then :
9366 eval "$as_ac_Header=yes"
9368 eval "$as_ac_Header=no"
9370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9372 eval ac_res
=\$
$as_ac_Header
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9374 $as_echo "$ac_res" >&6; }
9375 eval as_val
=\$
$as_ac_Header
9376 if test "x$as_val" = x
""yes; then :
9377 cat >>confdefs.h
<<_ACEOF
9378 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9381 ac_header_dirent
=$ac_hdr; break
9385 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9386 if test $ac_header_dirent = dirent.h
; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9388 $as_echo_n "checking for library containing opendir... " >&6; }
9389 if test "${ac_cv_search_opendir+set}" = set; then :
9390 $as_echo_n "(cached) " >&6
9392 ac_func_search_save_LIBS
=$LIBS
9393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9396 /* Override any GCC internal prototype to avoid an error.
9397 Use char because int might match the return type of a GCC
9398 builtin and then its argument prototype would still apply. */
9411 for ac_lib
in '' dir
; do
9412 if test -z "$ac_lib"; then
9413 ac_res
="none required"
9416 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9418 if ac_fn_c_try_link
"$LINENO"; then :
9419 ac_cv_search_opendir
=$ac_res
9421 rm -f core conftest.err conftest.
$ac_objext \
9423 if test "${ac_cv_search_opendir+set}" = set; then :
9427 if test "${ac_cv_search_opendir+set}" = set; then :
9430 ac_cv_search_opendir
=no
9433 LIBS
=$ac_func_search_save_LIBS
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9436 $as_echo "$ac_cv_search_opendir" >&6; }
9437 ac_res
=$ac_cv_search_opendir
9438 if test "$ac_res" != no
; then :
9439 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9445 $as_echo_n "checking for library containing opendir... " >&6; }
9446 if test "${ac_cv_search_opendir+set}" = set; then :
9447 $as_echo_n "(cached) " >&6
9449 ac_func_search_save_LIBS
=$LIBS
9450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9453 /* Override any GCC internal prototype to avoid an error.
9454 Use char because int might match the return type of a GCC
9455 builtin and then its argument prototype would still apply. */
9468 for ac_lib
in '' x
; do
9469 if test -z "$ac_lib"; then
9470 ac_res
="none required"
9473 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9475 if ac_fn_c_try_link
"$LINENO"; then :
9476 ac_cv_search_opendir
=$ac_res
9478 rm -f core conftest.err conftest.
$ac_objext \
9480 if test "${ac_cv_search_opendir+set}" = set; then :
9484 if test "${ac_cv_search_opendir+set}" = set; then :
9487 ac_cv_search_opendir
=no
9490 LIBS
=$ac_func_search_save_LIBS
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9493 $as_echo "$ac_cv_search_opendir" >&6; }
9494 ac_res
=$ac_cv_search_opendir
9495 if test "$ac_res" != no
; then :
9496 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9503 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9504 if test "${ac_cv_header_stat_broken+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9509 #include <sys/types.h>
9510 #include <sys/stat.h>
9512 #if defined S_ISBLK && defined S_IFDIR
9513 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9516 #if defined S_ISBLK && defined S_IFCHR
9517 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9520 #if defined S_ISLNK && defined S_IFREG
9521 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9524 #if defined S_ISSOCK && defined S_IFREG
9525 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9529 if ac_fn_c_try_compile
"$LINENO"; then :
9530 ac_cv_header_stat_broken
=no
9532 ac_cv_header_stat_broken
=yes
9534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9537 $as_echo "$ac_cv_header_stat_broken" >&6; }
9538 if test $ac_cv_header_stat_broken = yes; then
9540 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9545 $as_echo_n "checking for ANSI C header files... " >&6; }
9546 if test "${ac_cv_header_stdc+set}" = set; then :
9547 $as_echo_n "(cached) " >&6
9549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9564 if ac_fn_c_try_compile
"$LINENO"; then :
9565 ac_cv_header_stdc
=yes
9567 ac_cv_header_stdc
=no
9569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9571 if test $ac_cv_header_stdc = yes; then
9572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9579 $EGREP "memchr" >/dev
/null
2>&1; then :
9582 ac_cv_header_stdc
=no
9588 if test $ac_cv_header_stdc = yes; then
9589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9596 $EGREP "free" >/dev
/null
2>&1; then :
9599 ac_cv_header_stdc
=no
9605 if test $ac_cv_header_stdc = yes; then
9606 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9607 if test "$cross_compiling" = yes; then :
9610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9614 #if ((' ' & 0x0FF) == 0x020)
9615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9618 # define ISLOWER(c) \
9619 (('a' <= (c) && (c) <= 'i') \
9620 || ('j' <= (c) && (c) <= 'r') \
9621 || ('s' <= (c) && (c) <= 'z'))
9622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9630 for (i = 0; i < 256; i++)
9631 if (XOR (islower (i), ISLOWER (i))
9632 || toupper (i) != TOUPPER (i))
9637 if ac_fn_c_try_run
"$LINENO"; then :
9640 ac_cv_header_stdc
=no
9642 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9643 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9649 $as_echo "$ac_cv_header_stdc" >&6; }
9650 if test $ac_cv_header_stdc = yes; then
9652 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9656 # elf_hp.h is for HP/UX 64-bit shared library support.
9657 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
9658 # unconditionally, so what's the point in checking these?
9659 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
9660 thread_db.h gnu
/libc-version.h signal.h stddef.h \
9661 stdlib.h string.h memory.h
strings.h sys
/fault.h \
9662 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
9663 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
9664 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
9665 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
9666 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
9668 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9669 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9670 eval as_val
=\$
$as_ac_Header
9671 if test "x$as_val" = x
""yes; then :
9672 cat >>confdefs.h
<<_ACEOF
9673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9680 for ac_header
in link.h
9682 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
9683 # include <sys/types.h>
9690 if test "x$ac_cv_header_link_h" = x
""yes; then :
9691 cat >>confdefs.h
<<_ACEOF
9692 #define HAVE_LINK_H 1
9699 for ac_header
in sys
/proc.h
9701 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9702 # include <sys/param.h>
9706 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
9707 cat >>confdefs.h
<<_ACEOF
9708 #define HAVE_SYS_PROC_H 1
9715 for ac_header
in sys
/user.h
9717 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9718 # include <sys/param.h>
9722 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
9723 cat >>confdefs.h
<<_ACEOF
9724 #define HAVE_SYS_USER_H 1
9732 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9733 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9734 # think that we don't have <curses.h> if we're using GCC.
9737 if test "$GCC" = yes; then
9739 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9743 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.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_header
in term.h
9759 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9760 # include <curses.h>
9764 if test "x$ac_cv_header_term_h" = x
""yes; then :
9765 cat >>confdefs.h
<<_ACEOF
9766 #define HAVE_TERM_H 1
9774 # ------------------------- #
9775 # Checks for declarations. #
9776 # ------------------------- #
9778 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9779 if test "x$ac_cv_have_decl_free" = x
""yes; then :
9785 cat >>confdefs.h
<<_ACEOF
9786 #define HAVE_DECL_FREE $ac_have_decl
9788 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9789 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
9795 cat >>confdefs.h
<<_ACEOF
9796 #define HAVE_DECL_MALLOC $ac_have_decl
9798 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9799 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
9805 cat >>confdefs.h
<<_ACEOF
9806 #define HAVE_DECL_REALLOC $ac_have_decl
9808 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
9809 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
9815 cat >>confdefs.h
<<_ACEOF
9816 #define HAVE_DECL_STRERROR $ac_have_decl
9818 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
9819 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
9825 cat >>confdefs.h
<<_ACEOF
9826 #define HAVE_DECL_STRSTR $ac_have_decl
9828 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
9829 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
9835 cat >>confdefs.h
<<_ACEOF
9836 #define HAVE_DECL_GETOPT $ac_have_decl
9838 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9839 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
9845 cat >>confdefs.h
<<_ACEOF
9846 #define HAVE_DECL_SNPRINTF $ac_have_decl
9848 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9849 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
9855 cat >>confdefs.h
<<_ACEOF
9856 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9861 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9862 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9863 $as_echo_n "(cached) " >&6
9865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9876 if ac_fn_c_try_link
"$LINENO"; then :
9877 am_cv_val_LC_MESSAGES
=yes
9879 am_cv_val_LC_MESSAGES
=no
9881 rm -f core conftest.err conftest.
$ac_objext \
9882 conftest
$ac_exeext conftest.
$ac_ext
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9885 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9886 if test $am_cv_val_LC_MESSAGES = yes; then
9888 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9893 # ----------------------- #
9894 # Checks for structures. #
9895 # ----------------------- #
9897 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9898 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
9900 cat >>confdefs.h
<<_ACEOF
9901 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9906 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9907 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
9909 cat >>confdefs.h
<<_ACEOF
9910 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9917 # ------------------ #
9918 # Checks for types. #
9919 # ------------------ #
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9922 $as_echo_n "checking return type of signal handlers... " >&6; }
9923 if test "${ac_cv_type_signal+set}" = set; then :
9924 $as_echo_n "(cached) " >&6
9926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 #include <sys/types.h>
9934 return *(signal (0, 0)) (0) == 1;
9939 if ac_fn_c_try_compile
"$LINENO"; then :
9940 ac_cv_type_signal
=int
9942 ac_cv_type_signal
=void
9944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9947 $as_echo "$ac_cv_type_signal" >&6; }
9949 cat >>confdefs.h
<<_ACEOF
9950 #define RETSIGTYPE $ac_cv_type_signal
9954 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9955 #include <sys/socket.h>
9958 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
9960 cat >>confdefs.h
<<_ACEOF
9961 #define HAVE_SOCKLEN_T 1
9968 # ------------------------------------- #
9969 # Checks for compiler characteristics. #
9970 # ------------------------------------- #
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9973 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9974 if test "${ac_cv_c_const+set}" = set; then :
9975 $as_echo_n "(cached) " >&6
9977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9983 /* FIXME: Include the comments suggested by Paul. */
9985 /* Ultrix mips cc rejects this. */
9986 typedef int charset[2];
9988 /* SunOS 4.1.1 cc rejects this. */
9989 char const *const *pcpcc;
9991 /* NEC SVR4.0.2 mips cc rejects this. */
9992 struct point {int x, y;};
9993 static struct point const zero = {0,0};
9994 /* AIX XL C 1.02.0.0 rejects this.
9995 It does not let you subtract one const X* pointer from another in
9996 an arm of an if-expression whose if-part is not a constant
9998 const char *g = "string";
9999 pcpcc = &g + (g ? g-g : 0);
10000 /* HPUX 7.0 cc rejects these. */
10002 ppc = (char**) pcpcc;
10003 pcpcc = (char const *const *) ppc;
10004 { /* SCO 3.2v4 cc rejects this. */
10006 char const *s = 0 ? (char *) 0 : (char const *) 0;
10011 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10012 int x[] = {25, 17};
10013 const int *foo = &x[0];
10016 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10017 typedef const int *iptr;
10021 { /* AIX XL C 1.02.0.0 rejects this saying
10022 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10023 struct s { int j; const int *ap[3]; };
10024 struct s *b; b->j = 5;
10026 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10027 const int foo = 10;
10028 if (!foo) return 0;
10030 return !cs[0] && !zero.x;
10037 if ac_fn_c_try_compile
"$LINENO"; then :
10042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10045 $as_echo "$ac_cv_c_const" >&6; }
10046 if test $ac_cv_c_const = no
; then
10048 $as_echo "#define const /**/" >>confdefs.h
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10053 $as_echo_n "checking for inline... " >&6; }
10054 if test "${ac_cv_c_inline+set}" = set; then :
10055 $as_echo_n "(cached) " >&6
10058 for ac_kw
in inline __inline__ __inline
; do
10059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061 #ifndef __cplusplus
10063 static $ac_kw foo_t static_foo () {return 0; }
10064 $ac_kw foo_t foo () {return 0; }
10068 if ac_fn_c_try_compile
"$LINENO"; then :
10069 ac_cv_c_inline
=$ac_kw
10071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10072 test "$ac_cv_c_inline" != no
&& break
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10077 $as_echo "$ac_cv_c_inline" >&6; }
10079 case $ac_cv_c_inline in
10082 case $ac_cv_c_inline in
10084 *) ac_val
=$ac_cv_c_inline;;
10086 cat >>confdefs.h
<<_ACEOF
10087 #ifndef __cplusplus
10088 #define inline $ac_val
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10095 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10096 if test "${ac_cv_c_bigendian+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
10099 ac_cv_c_bigendian
=unknown
10100 # See if we're dealing with a universal compiler.
10101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h. */
10103 #ifndef __APPLE_CC__
10104 not a universal capable compiler
10109 if ac_fn_c_try_compile
"$LINENO"; then :
10111 # Check for potential -arch flags. It is not universal unless
10112 # there are at least two -arch flags with different values.
10115 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10116 if test -n "$ac_prev"; then
10118 i?
86 | x86_64 | ppc | ppc64
)
10119 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10122 ac_cv_c_bigendian
=universal
10128 elif test "x$ac_word" = "x-arch"; then
10133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10134 if test $ac_cv_c_bigendian = unknown
; then
10135 # See if sys/param.h defines the BYTE_ORDER macro.
10136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10138 #include <sys/types.h>
10139 #include <sys/param.h>
10144 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10145 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10147 bogus endian macros
10154 if ac_fn_c_try_compile
"$LINENO"; then :
10155 # It does; now see whether it defined to BIG_ENDIAN or not.
10156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 #include <sys/types.h>
10159 #include <sys/param.h>
10164 #if BYTE_ORDER != BIG_ENDIAN
10172 if ac_fn_c_try_compile
"$LINENO"; then :
10173 ac_cv_c_bigendian
=yes
10175 ac_cv_c_bigendian
=no
10177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10181 if test $ac_cv_c_bigendian = unknown
; then
10182 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 #include <limits.h>
10190 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10191 bogus endian macros
10198 if ac_fn_c_try_compile
"$LINENO"; then :
10199 # It does; now see whether it defined to _BIG_ENDIAN or not.
10200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10202 #include <limits.h>
10207 #ifndef _BIG_ENDIAN
10215 if ac_fn_c_try_compile
"$LINENO"; then :
10216 ac_cv_c_bigendian
=yes
10218 ac_cv_c_bigendian
=no
10220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10224 if test $ac_cv_c_bigendian = unknown
; then
10225 # Compile a test program.
10226 if test "$cross_compiling" = yes; then :
10227 # Try to guess by grepping values from an object file.
10228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10230 short int ascii_mm[] =
10231 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10232 short int ascii_ii[] =
10233 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10234 int use_ascii (int i) {
10235 return ascii_mm[i] + ascii_ii[i];
10237 short int ebcdic_ii[] =
10238 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10239 short int ebcdic_mm[] =
10240 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10241 int use_ebcdic (int i) {
10242 return ebcdic_mm[i] + ebcdic_ii[i];
10249 return use_ascii (foo) == use_ebcdic (foo);
10254 if ac_fn_c_try_compile
"$LINENO"; then :
10255 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10256 ac_cv_c_bigendian
=yes
10258 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10259 if test "$ac_cv_c_bigendian" = unknown
; then
10260 ac_cv_c_bigendian
=no
10262 # finding both strings is unlikely to happen, but who knows?
10263 ac_cv_c_bigendian
=unknown
10267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 $ac_includes_default
10276 /* Are we little or big endian? From Harbison&Steele. */
10280 char c[sizeof (long int)];
10283 return u.c[sizeof (long int) - 1] == 1;
10289 if ac_fn_c_try_run
"$LINENO"; then :
10290 ac_cv_c_bigendian
=no
10292 ac_cv_c_bigendian
=yes
10294 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10295 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10301 $as_echo "$ac_cv_c_bigendian" >&6; }
10302 case $ac_cv_c_bigendian in #(
10304 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10310 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10314 as_fn_error
"unknown endianness
10315 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10319 # ------------------------------ #
10320 # Checks for library functions. #
10321 # ------------------------------ #
10323 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10324 # for constant arguments. Useless!
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10326 $as_echo_n "checking for working alloca.h... " >&6; }
10327 if test "${ac_cv_working_alloca_h+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332 #include <alloca.h>
10336 char *p = (char *) alloca (2 * sizeof (int));
10342 if ac_fn_c_try_link
"$LINENO"; then :
10343 ac_cv_working_alloca_h
=yes
10345 ac_cv_working_alloca_h
=no
10347 rm -f core conftest.err conftest.
$ac_objext \
10348 conftest
$ac_exeext conftest.
$ac_ext
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10351 $as_echo "$ac_cv_working_alloca_h" >&6; }
10352 if test $ac_cv_working_alloca_h = yes; then
10354 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10359 $as_echo_n "checking for alloca... " >&6; }
10360 if test "${ac_cv_func_alloca_works+set}" = set; then :
10361 $as_echo_n "(cached) " >&6
10363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10366 # define alloca __builtin_alloca
10369 # include <malloc.h>
10370 # define alloca _alloca
10372 # ifdef HAVE_ALLOCA_H
10373 # include <alloca.h>
10378 # ifndef alloca /* predefined by HP cc +Olibcalls */
10389 char *p = (char *) alloca (1);
10395 if ac_fn_c_try_link
"$LINENO"; then :
10396 ac_cv_func_alloca_works
=yes
10398 ac_cv_func_alloca_works
=no
10400 rm -f core conftest.err conftest.
$ac_objext \
10401 conftest
$ac_exeext conftest.
$ac_ext
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10404 $as_echo "$ac_cv_func_alloca_works" >&6; }
10406 if test $ac_cv_func_alloca_works = yes; then
10408 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10411 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10412 # that cause trouble. Some versions do not even contain alloca or
10413 # contain a buggy version. If you still want to use their alloca,
10414 # use ar to extract alloca.o from them instead of compiling alloca.c.
10416 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10418 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10422 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10423 if test "${ac_cv_os_cray+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
10426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 #if defined CRAY && ! defined CRAY2
10435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10436 $EGREP "webecray" >/dev
/null
2>&1; then :
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10445 $as_echo "$ac_cv_os_cray" >&6; }
10446 if test $ac_cv_os_cray = yes; then
10447 for ac_func
in _getb67 GETB67 getb67
; do
10448 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10449 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10450 eval as_val
=\$
$as_ac_var
10451 if test "x$as_val" = x
""yes; then :
10453 cat >>confdefs.h
<<_ACEOF
10454 #define CRAY_STACKSEG_END $ac_func
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10464 $as_echo_n "checking stack direction for C alloca... " >&6; }
10465 if test "${ac_cv_c_stack_direction+set}" = set; then :
10466 $as_echo_n "(cached) " >&6
10468 if test "$cross_compiling" = yes; then :
10469 ac_cv_c_stack_direction
=0
10471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 $ac_includes_default
10475 find_stack_direction ()
10477 static char *addr = 0;
10482 return find_stack_direction ();
10485 return (&dummy > addr) ? 1 : -1;
10491 return find_stack_direction () < 0;
10494 if ac_fn_c_try_run
"$LINENO"; then :
10495 ac_cv_c_stack_direction
=1
10497 ac_cv_c_stack_direction
=-1
10499 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10500 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10505 $as_echo "$ac_cv_c_stack_direction" >&6; }
10506 cat >>confdefs.h
<<_ACEOF
10507 #define STACK_DIRECTION $ac_cv_c_stack_direction
10513 for ac_header
in stdlib.h unistd.h
10515 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10516 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10517 eval as_val
=\$
$as_ac_Header
10518 if test "x$as_val" = x
""yes; then :
10519 cat >>confdefs.h
<<_ACEOF
10520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10527 for ac_func
in getpagesize
10529 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10530 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10531 cat >>confdefs.h
<<_ACEOF
10532 #define HAVE_GETPAGESIZE 1
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10539 $as_echo_n "checking for working mmap... " >&6; }
10540 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
10543 if test "$cross_compiling" = yes; then :
10544 ac_cv_func_mmap_fixed_mapped
=no
10546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10548 $ac_includes_default
10549 /* malloc might have been renamed as rpl_malloc. */
10552 /* Thanks to Mike Haertel and Jim Avera for this test.
10553 Here is a matrix of mmap possibilities:
10554 mmap private not fixed
10555 mmap private fixed at somewhere currently unmapped
10556 mmap private fixed at somewhere already mapped
10557 mmap shared not fixed
10558 mmap shared fixed at somewhere currently unmapped
10559 mmap shared fixed at somewhere already mapped
10560 For private mappings, we should verify that changes cannot be read()
10561 back from the file, nor mmap's back from the file at a different
10562 address. (There have been systems where private was not correctly
10563 implemented like the infamous i386 svr4.0, and systems where the
10564 VM page cache was not coherent with the file system buffer cache
10565 like early versions of FreeBSD and possibly contemporary NetBSD.)
10566 For shared mappings, we should conversely verify that changes get
10567 propagated back to all the places they're supposed to be.
10569 Grep wants private fixed already mapped.
10570 The main things grep needs to know about mmap are:
10571 * does it exist and is it safe to write into the mmap'd area
10572 * how to use it (BSD variants) */
10575 #include <sys/mman.h>
10577 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10581 /* This mess was copied from the GNU getpagesize.h. */
10582 #ifndef HAVE_GETPAGESIZE
10583 /* Assume that all systems that can run configure have sys/param.h. */
10584 # ifndef HAVE_SYS_PARAM_H
10585 # define HAVE_SYS_PARAM_H 1
10588 # ifdef _SC_PAGESIZE
10589 # define getpagesize() sysconf(_SC_PAGESIZE)
10590 # else /* no _SC_PAGESIZE */
10591 # ifdef HAVE_SYS_PARAM_H
10592 # include <sys/param.h>
10593 # ifdef EXEC_PAGESIZE
10594 # define getpagesize() EXEC_PAGESIZE
10595 # else /* no EXEC_PAGESIZE */
10597 # define getpagesize() NBPG * CLSIZE
10600 # endif /* no CLSIZE */
10601 # else /* no NBPG */
10603 # define getpagesize() NBPC
10604 # else /* no NBPC */
10606 # define getpagesize() PAGESIZE
10607 # endif /* PAGESIZE */
10608 # endif /* no NBPC */
10609 # endif /* no NBPG */
10610 # endif /* no EXEC_PAGESIZE */
10611 # else /* no HAVE_SYS_PARAM_H */
10612 # define getpagesize() 8192 /* punt totally */
10613 # endif /* no HAVE_SYS_PARAM_H */
10614 # endif /* no _SC_PAGESIZE */
10616 #endif /* no HAVE_GETPAGESIZE */
10621 char *data, *data2, *data3;
10625 pagesize = getpagesize ();
10627 /* First, make a file with some known garbage in it. */
10628 data = (char *) malloc (pagesize);
10631 for (i = 0; i < pagesize; ++i)
10632 *(data + i) = rand ();
10634 fd = creat ("conftest.mmap", 0600);
10637 if (write (fd, data, pagesize) != pagesize)
10641 /* Next, try to mmap the file at a fixed address which already has
10642 something else allocated at it. If we can, also make sure that
10643 we see the same garbage. */
10644 fd = open ("conftest.mmap", O_RDWR);
10647 data2 = (char *) malloc (2 * pagesize);
10650 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10651 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10652 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10654 for (i = 0; i < pagesize; ++i)
10655 if (*(data + i) != *(data2 + i))
10658 /* Finally, make sure that changes to the mapped area do not
10659 percolate back to the file as seen by read(). (This is a bug on
10660 some variants of i386 svr4.0.) */
10661 for (i = 0; i < pagesize; ++i)
10662 *(data2 + i) = *(data2 + i) + 1;
10663 data3 = (char *) malloc (pagesize);
10666 if (read (fd, data3, pagesize) != pagesize)
10668 for (i = 0; i < pagesize; ++i)
10669 if (*(data + i) != *(data3 + i))
10675 if ac_fn_c_try_run
"$LINENO"; then :
10676 ac_cv_func_mmap_fixed_mapped
=yes
10678 ac_cv_func_mmap_fixed_mapped
=no
10680 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10681 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10686 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10687 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10689 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10692 rm -f conftest.mmap
10694 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10695 if test "x$ac_cv_type_pid_t" = x
""yes; then :
10699 cat >>confdefs.h
<<_ACEOF
10705 for ac_header
in vfork.h
10707 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10708 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
10709 cat >>confdefs.h
<<_ACEOF
10710 #define HAVE_VFORK_H 1
10717 for ac_func
in fork vfork
10719 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10720 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10721 eval as_val
=\$
$as_ac_var
10722 if test "x$as_val" = x
""yes; then :
10723 cat >>confdefs.h
<<_ACEOF
10724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10730 if test "x$ac_cv_func_fork" = xyes
; then
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10732 $as_echo_n "checking for working fork... " >&6; }
10733 if test "${ac_cv_func_fork_works+set}" = set; then :
10734 $as_echo_n "(cached) " >&6
10736 if test "$cross_compiling" = yes; then :
10737 ac_cv_func_fork_works
=cross
10739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h. */
10741 $ac_includes_default
10746 /* By Ruediger Kuhlmann. */
10747 return fork () < 0;
10753 if ac_fn_c_try_run
"$LINENO"; then :
10754 ac_cv_func_fork_works
=yes
10756 ac_cv_func_fork_works
=no
10758 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10759 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10764 $as_echo "$ac_cv_func_fork_works" >&6; }
10767 ac_cv_func_fork_works
=$ac_cv_func_fork
10769 if test "x$ac_cv_func_fork_works" = xcross
; then
10771 *-*-amigaos* |
*-*-msdosdjgpp*)
10772 # Override, as these systems have only a dummy fork() stub
10773 ac_cv_func_fork_works
=no
10776 ac_cv_func_fork_works
=yes
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10780 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10782 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10783 if test "x$ac_cv_func_vfork" = xyes
; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10785 $as_echo_n "checking for working vfork... " >&6; }
10786 if test "${ac_cv_func_vfork_works+set}" = set; then :
10787 $as_echo_n "(cached) " >&6
10789 if test "$cross_compiling" = yes; then :
10790 ac_cv_func_vfork_works
=cross
10792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10794 /* Thanks to Paul Eggert for this test. */
10795 $ac_includes_default
10796 #include <sys/wait.h>
10797 #ifdef HAVE_VFORK_H
10798 # include <vfork.h>
10800 /* On some sparc systems, changes by the child to local and incoming
10801 argument registers are propagated back to the parent. The compiler
10802 is told about this with #include <vfork.h>, but some compilers
10803 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10804 static variable whose address is put into a register that is
10805 clobbered by the vfork. */
10808 sparc_address_test (int arg)
10810 sparc_address_test (arg) int arg;
10813 static pid_t child;
10831 pid_t parent = getpid ();
10834 sparc_address_test (0);
10839 /* Here is another test for sparc vfork register problems. This
10840 test uses lots of local variables, at least as many local
10841 variables as main has allocated so far including compiler
10842 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10843 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10844 reuse the register of parent for one of the local variables,
10845 since it will think that parent can't possibly be used any more
10846 in this routine. Assigning to the local variable will thus
10847 munge parent in the parent process. */
10849 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10850 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10851 /* Convince the compiler that p..p7 are live; otherwise, it might
10852 use the same hardware register for all 8 local variables. */
10853 if (p != p1 || p != p2 || p != p3 || p != p4
10854 || p != p5 || p != p6 || p != p7)
10857 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10858 from child file descriptors. If the child closes a descriptor
10859 before it execs or exits, this munges the parent's descriptor
10860 as well. Test for this by closing stdout in the child. */
10861 _exit(close(fileno(stdout)) != 0);
10866 while (wait(&status) != child)
10869 /* Was there some problem with vforking? */
10872 /* Did the child fail? (This shouldn't happen.) */
10875 /* Did the vfork/compiler bug occur? */
10876 || parent != getpid()
10878 /* Did the file descriptor bug occur? */
10879 || fstat(fileno(stdout), &st) != 0
10884 if ac_fn_c_try_run
"$LINENO"; then :
10885 ac_cv_func_vfork_works
=yes
10887 ac_cv_func_vfork_works
=no
10889 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10890 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10895 $as_echo "$ac_cv_func_vfork_works" >&6; }
10898 if test "x$ac_cv_func_fork_works" = xcross
; then
10899 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10901 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10904 if test "x$ac_cv_func_vfork_works" = xyes
; then
10906 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10910 $as_echo "#define vfork fork" >>confdefs.h
10913 if test "x$ac_cv_func_fork_works" = xyes
; then
10915 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10919 for ac_func
in canonicalize_file_name realpath getrusage getuid \
10920 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
10921 sigaction sigprocmask sigsetmask socketpair syscall \
10922 ttrace wborder setlocale iconvlist libiconvlist btowc
10924 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10925 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10926 eval as_val
=\$
$as_ac_var
10927 if test "x$as_val" = x
""yes; then :
10928 cat >>confdefs.h
<<_ACEOF
10929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10937 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10938 if test "${am_cv_langinfo_codeset+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
10941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10943 #include <langinfo.h>
10947 char* cs = nl_langinfo(CODESET);
10952 if ac_fn_c_try_link
"$LINENO"; then :
10953 am_cv_langinfo_codeset
=yes
10955 am_cv_langinfo_codeset
=no
10957 rm -f core conftest.err conftest.
$ac_objext \
10958 conftest
$ac_exeext conftest.
$ac_ext
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10962 $as_echo "$am_cv_langinfo_codeset" >&6; }
10963 if test $am_cv_langinfo_codeset = yes; then
10965 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10970 # Check the return and argument types of ptrace. No canned test for
10971 # this, so roll our own.
10972 gdb_ptrace_headers
='
10973 #if HAVE_SYS_TYPES_H
10974 # include <sys/types.h>
10976 #if HAVE_SYS_PTRACE_H
10977 # include <sys/ptrace.h>
10980 # include <unistd.h>
10983 # There is no point in checking if we don't have a prototype.
10984 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10986 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
10992 cat >>confdefs.h
<<_ACEOF
10993 #define HAVE_DECL_PTRACE $ac_have_decl
10995 if test $ac_have_decl = 1; then :
10999 : ${gdb_cv_func_ptrace_ret='int'}
11000 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11004 # Check return type. Varargs (used on GNU/Linux) conflict with the
11005 # empty argument list, so check for that explicitly.
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11007 $as_echo_n "checking return type of ptrace... " >&6; }
11008 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11009 $as_echo_n "(cached) " >&6
11011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11013 $gdb_ptrace_headers
11017 extern long ptrace (enum __ptrace_request, ...);
11022 if ac_fn_c_try_compile
"$LINENO"; then :
11023 gdb_cv_func_ptrace_ret
='long'
11025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027 $gdb_ptrace_headers
11031 extern int ptrace ();
11036 if ac_fn_c_try_compile
"$LINENO"; then :
11037 gdb_cv_func_ptrace_ret
='int'
11039 gdb_cv_func_ptrace_ret
='long'
11041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11046 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11048 cat >>confdefs.h
<<_ACEOF
11049 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11052 # Check argument types.
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11054 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11055 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 $gdb_ptrace_headers
11065 extern long ptrace (enum __ptrace_request, ...);
11070 if ac_fn_c_try_compile
"$LINENO"; then :
11071 gdb_cv_func_ptrace_args
='int,int,long,long'
11074 for gdb_arg1
in 'int' 'long'; do
11075 for gdb_arg2
in 'pid_t' 'int' 'long'; do
11076 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11077 for gdb_arg4
in 'int' 'long'; do
11078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11080 $gdb_ptrace_headers
11085 extern $gdb_cv_func_ptrace_ret
11086 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11092 if ac_fn_c_try_compile
"$LINENO"; then :
11093 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11097 for gdb_arg5
in 'int *' 'int' 'long'; do
11098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11100 $gdb_ptrace_headers
11105 extern $gdb_cv_func_ptrace_ret
11106 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11112 if ac_fn_c_try_compile
"$LINENO"; then :
11114 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11123 # Provide a safe default value.
11124 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11130 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11131 ac_save_IFS
=$IFS; IFS
=','
11132 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11136 cat >>confdefs.h
<<_ACEOF
11137 #define PTRACE_TYPE_ARG3 $3
11140 if test -n "$5"; then
11142 cat >>confdefs.h
<<_ACEOF
11143 #define PTRACE_TYPE_ARG5 $5
11148 if test "$cross_compiling" = no
; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11150 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11151 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11152 $as_echo_n "(cached) " >&6
11154 if test "$cross_compiling" = yes; then :
11155 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
11157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11159 $ac_includes_default
11163 /* If this system has a BSD-style setpgrp which takes arguments,
11164 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11165 exit successfully. */
11166 return setpgrp (1,1) != -1;
11171 if ac_fn_c_try_run
"$LINENO"; then :
11172 ac_cv_func_setpgrp_void
=no
11174 ac_cv_func_setpgrp_void
=yes
11176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11182 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11183 if test $ac_cv_func_setpgrp_void = yes; then
11185 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11191 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11192 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
11195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11198 #include <unistd.h>
11204 if (setpgrp(1,1) == -1)
11213 if ac_fn_c_try_compile
"$LINENO"; then :
11214 ac_cv_func_setpgrp_void
=no
11216 ac_cv_func_setpgrp_void
=yes
11218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11221 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11222 if test $ac_cv_func_setpgrp_void = yes; then
11223 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11228 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11229 # since sigsetjmp might only be defined as a macro.
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11231 $as_echo_n "checking for sigsetjmp... " >&6; }
11232 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11238 #include <setjmp.h>
11243 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11248 if ac_fn_c_try_compile
"$LINENO"; then :
11249 gdb_cv_func_sigsetjmp
=yes
11251 gdb_cv_func_sigsetjmp
=no
11253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11256 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11257 if test $gdb_cv_func_sigsetjmp = yes; then
11259 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11263 # Assume we'll default to using the included libiberty regex.
11264 gdb_use_included_regex
=yes
11266 # However, if the system regex is GNU regex, then default to *not*
11267 # using the included regex.
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11269 $as_echo_n "checking for GNU regex... " >&6; }
11270 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11275 #include <gnu-versions.h>
11279 #define REGEX_INTERFACE_VERSION 1
11280 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11281 # error "Version mismatch"
11287 if ac_fn_c_try_compile
"$LINENO"; then :
11288 gdb_cv_have_gnu_regex
=yes
11290 gdb_cv_have_gnu_regex
=no
11292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11295 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11296 if test $gdb_cv_have_gnu_regex = yes; then
11297 gdb_use_included_regex
=no
11301 # Check whether --with-included-regex was given.
11302 if test "${with_included_regex+set}" = set; then :
11303 withval
=$with_included_regex; gdb_with_regex
=$withval
11305 gdb_with_regex
=$gdb_use_included_regex
11308 if test "$gdb_with_regex" = yes; then
11310 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11314 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11315 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11316 #include <sys/proc.h>
11319 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
11321 cat >>confdefs.h
<<_ACEOF
11322 #define HAVE_STRUCT_THREAD_TD_PCB 1
11329 # See if <sys/lwp.h> defines `struct lwp`.
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11331 $as_echo_n "checking for struct lwp... " >&6; }
11332 if test "${gdb_cv_struct_lwp+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
11335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11337 #include <sys/param.h>
11338 #include <sys/lwp.h>
11347 if ac_fn_c_try_compile
"$LINENO"; then :
11348 gdb_cv_struct_lwp
=yes
11350 gdb_cv_struct_lwp
=no
11352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11355 $as_echo "$gdb_cv_struct_lwp" >&6; }
11356 if test $gdb_cv_struct_lwp = yes; then
11358 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11362 # See if <machine/reg.h> degines `struct reg'.
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11364 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11365 if test "${gdb_cv_struct_reg+set}" = set; then :
11366 $as_echo_n "(cached) " >&6
11368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11370 #include <sys/types.h>
11371 #include <machine/reg.h>
11380 if ac_fn_c_try_compile
"$LINENO"; then :
11381 gdb_cv_struct_reg
=yes
11383 gdb_cv_struct_reg
=no
11385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11388 $as_echo "$gdb_cv_struct_reg" >&6; }
11389 if test $gdb_cv_struct_reg = yes; then
11391 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11395 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11396 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11397 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11399 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
11401 cat >>confdefs.h
<<_ACEOF
11402 #define HAVE_STRUCT_REG_R_FS 1
11407 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11409 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
11411 cat >>confdefs.h
<<_ACEOF
11412 #define HAVE_STRUCT_REG_R_GS 1
11419 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11421 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11422 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11423 $as_echo_n "(cached) " >&6
11425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427 #include <sys/ptrace.h>
11436 if ac_fn_c_try_compile
"$LINENO"; then :
11437 gdb_cv_have_ptrace_getregs
=yes
11439 gdb_cv_have_ptrace_getregs
=no
11441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11445 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11446 if test $gdb_cv_have_ptrace_getregs = yes; then
11448 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11452 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11454 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11455 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460 #include <sys/ptrace.h>
11469 if ac_fn_c_try_compile
"$LINENO"; then :
11470 gdb_cv_have_ptrace_getfpxregs
=yes
11472 gdb_cv_have_ptrace_getfpxregs
=no
11474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11478 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11479 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11481 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11485 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11487 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11488 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11489 $as_echo_n "(cached) " >&6
11491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11493 #include <sys/types.h>
11494 #include <sys/ptrace.h>
11503 if ac_fn_c_try_compile
"$LINENO"; then :
11504 gdb_cv_have_pt_getdbregs
=yes
11506 gdb_cv_have_pt_getdbregs
=no
11508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11512 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11513 if test $gdb_cv_have_pt_getdbregs = yes; then
11515 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11519 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11521 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11522 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11527 #include <sys/types.h>
11528 #include <sys/ptrace.h>
11537 if ac_fn_c_try_compile
"$LINENO"; then :
11538 gdb_cv_have_pt_getxmmregs
=yes
11540 gdb_cv_have_pt_getxmmregs
=no
11542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11546 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11547 if test $gdb_cv_have_pt_getxmmregs = yes; then
11549 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11553 # Detect which type of /proc is in use, such as for Unixware or Solaris.
11555 if test "${target}" = "${host}"; then
11557 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
11559 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11562 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
11564 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11568 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11570 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11576 if test "$ac_cv_header_sys_procfs_h" = yes; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
11578 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
11579 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
11580 $as_echo_n "(cached) " >&6
11582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11586 #include <sys/procfs.h>
11595 if ac_fn_c_try_compile
"$LINENO"; then :
11596 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
11598 bfd_cv_have_sys_procfs_type_pstatus_t
=no
11601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11604 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11606 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11610 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
11613 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
11614 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
11615 $as_echo_n "(cached) " >&6
11617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11621 #include <sys/procfs.h>
11630 if ac_fn_c_try_compile
"$LINENO"; then :
11631 bfd_cv_have_sys_procfs_type_prrun_t
=yes
11633 bfd_cv_have_sys_procfs_type_prrun_t
=no
11636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11639 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
11641 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
11645 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11648 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11649 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11650 $as_echo_n "(cached) " >&6
11652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11656 #include <sys/procfs.h>
11665 if ac_fn_c_try_compile
"$LINENO"; then :
11666 bfd_cv_have_sys_procfs_type_gregset_t
=yes
11668 bfd_cv_have_sys_procfs_type_gregset_t
=no
11671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11674 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11676 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11680 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11683 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11684 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11691 #include <sys/procfs.h>
11700 if ac_fn_c_try_compile
"$LINENO"; then :
11701 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
11703 bfd_cv_have_sys_procfs_type_fpregset_t
=no
11706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11709 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11711 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11715 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11718 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11719 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11726 #include <sys/procfs.h>
11735 if ac_fn_c_try_compile
"$LINENO"; then :
11736 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
11738 bfd_cv_have_sys_procfs_type_prgregset_t
=no
11741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11744 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11746 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11750 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11753 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11754 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11755 $as_echo_n "(cached) " >&6
11757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11761 #include <sys/procfs.h>
11770 if ac_fn_c_try_compile
"$LINENO"; then :
11771 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
11773 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
11776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11779 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11781 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11785 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11788 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11789 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11796 #include <sys/procfs.h>
11805 if ac_fn_c_try_compile
"$LINENO"; then :
11806 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
11808 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
11811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11814 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11816 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11820 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
11823 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
11824 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
11827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h. */
11831 #include <sys/procfs.h>
11835 prfpregset32_t avar
11840 if ac_fn_c_try_compile
"$LINENO"; then :
11841 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
11843 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
11846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11849 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
11851 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
11855 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11858 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11859 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11866 #include <sys/procfs.h>
11875 if ac_fn_c_try_compile
"$LINENO"; then :
11876 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
11878 bfd_cv_have_sys_procfs_type_lwpid_t
=no
11881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11884 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11886 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11890 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11893 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11894 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11901 #include <sys/procfs.h>
11910 if ac_fn_c_try_compile
"$LINENO"; then :
11911 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
11913 bfd_cv_have_sys_procfs_type_psaddr_t
=no
11916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11919 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11921 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11925 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11928 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11929 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11936 #include <sys/procfs.h>
11945 if ac_fn_c_try_compile
"$LINENO"; then :
11946 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
11948 bfd_cv_have_sys_procfs_type_prsysent_t
=no
11951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11954 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11956 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11960 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11963 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11964 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11965 $as_echo_n "(cached) " >&6
11967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11971 #include <sys/procfs.h>
11980 if ac_fn_c_try_compile
"$LINENO"; then :
11981 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
11983 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
11986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11989 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11991 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11995 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11998 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11999 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12006 #include <sys/procfs.h>
12010 pr_sigaction64_t avar
12015 if ac_fn_c_try_compile
"$LINENO"; then :
12016 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
12018 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
12021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12024 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12026 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12030 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12033 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12034 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
12037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12041 #include <sys/procfs.h>
12045 pr_siginfo64_t avar
12050 if ac_fn_c_try_compile
"$LINENO"; then :
12051 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
12053 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
12056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12059 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12061 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12065 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12071 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12073 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12074 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12075 $as_echo_n "(cached) " >&6
12077 if test "$cross_compiling" = yes; then :
12078 gdb_cv_prfpregset_t_broken
=yes
12080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 #include <sys/procfs.h>
12085 if (sizeof (prfpregset_t) == sizeof (void *))
12090 if ac_fn_c_try_run
"$LINENO"; then :
12091 gdb_cv_prfpregset_t_broken
=no
12093 gdb_cv_prfpregset_t_broken
=yes
12095 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12096 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12102 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12103 if test $gdb_cv_prfpregset_t_broken = yes; then
12105 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
12112 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
12113 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
12114 $as_echo_n "(cached) " >&6
12116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h. */
12118 #include <unistd.h>
12119 #include <sys/types.h>
12120 #include <sys/procfs.h>
12127 dummy = ioctl(0, PIOCSET, &dummy);
12133 if ac_fn_c_try_compile
"$LINENO"; then :
12134 gdb_cv_have_procfs_piocset
=yes
12136 gdb_cv_have_procfs_piocset
=no
12138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
12142 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
12143 if test $gdb_cv_have_procfs_piocset = yes; then
12145 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
12150 if test ${host} = ${target} ; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
12153 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
12154 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12163 struct link_map lm; (void) lm.l_addr;
12168 if ac_fn_c_try_compile
"$LINENO"; then :
12169 gdb_cv_have_struct_link_map_with_l_members
=yes
12171 gdb_cv_have_struct_link_map_with_l_members
=no
12173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
12177 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
12178 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
12180 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
12186 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
12187 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 #include <sys/types.h>
12197 struct link_map lm; (void) lm.lm_addr;
12202 if ac_fn_c_try_compile
"$LINENO"; then :
12203 gdb_cv_have_struct_link_map_with_lm_members
=yes
12205 gdb_cv_have_struct_link_map_with_lm_members
=no
12207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
12211 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
12212 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
12214 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
12220 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
12221 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
12222 $as_echo_n "(cached) " >&6
12224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226 #include <sys/types.h>
12227 #ifdef HAVE_NLIST_H
12234 struct so_map lm; (void) lm.som_addr;
12239 if ac_fn_c_try_compile
"$LINENO"; then :
12240 gdb_cv_have_struct_so_map_with_som_members
=yes
12242 gdb_cv_have_struct_so_map_with_som_members
=no
12244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
12248 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
12249 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
12251 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
12257 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
12258 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
12259 $as_echo_n "(cached) " >&6
12261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12264 #include <sys/link.h>
12268 struct link_map32 l;
12273 if ac_fn_c_try_compile
"$LINENO"; then :
12274 gdb_cv_have_struct_link_map32
=yes
12276 gdb_cv_have_struct_link_map32
=no
12278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
12282 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
12283 if test $gdb_cv_have_struct_link_map32 = yes; then
12285 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
12288 $as_echo "#define _SYSCALL32 1" >>confdefs.h
12293 # Check if the compiler supports the `long long' type.
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12296 $as_echo_n "checking for long long support in compiler... " >&6; }
12297 if test "${gdb_cv_c_long_long+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12302 extern long long foo;
12306 switch (foo & 2) { case 0: return 1; }
12311 if ac_fn_c_try_compile
"$LINENO"; then :
12312 gdb_cv_c_long_long
=yes
12314 gdb_cv_c_long_long
=no
12316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12319 $as_echo "$gdb_cv_c_long_long" >&6; }
12320 if test $gdb_cv_c_long_long = yes; then
12322 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12326 # Check if the compiler and runtime support printing long longs.
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12329 $as_echo_n "checking for long long support in printf... " >&6; }
12330 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12331 $as_echo_n "(cached) " >&6
12333 if test "$cross_compiling" = yes; then :
12334 gdb_cv_printf_has_long_long
=no
12336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12338 $ac_includes_default
12344 l = (l << 16) + 0x0123;
12345 l = (l << 16) + 0x4567;
12346 l = (l << 16) + 0x89ab;
12347 l = (l << 16) + 0xcdef;
12348 sprintf (buf, "0x%016llx", l);
12349 return (strcmp ("0x0123456789abcdef", buf));
12354 if ac_fn_c_try_run
"$LINENO"; then :
12355 gdb_cv_printf_has_long_long
=yes
12357 gdb_cv_printf_has_long_long
=no
12359 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12360 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12365 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12366 if test $gdb_cv_printf_has_long_long = yes; then
12368 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12372 # Check if the compiler and runtime support printing decfloats.
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12375 $as_echo_n "checking for decfloat support in printf... " >&6; }
12376 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12379 if test "$cross_compiling" = yes; then :
12380 gdb_cv_printf_has_decfloat
=no
12382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12384 $ac_includes_default
12389 _Decimal32 d32 = 1.2345df;
12390 _Decimal64 d64 = 1.2345dd;
12391 _Decimal128 d128 = 1.2345dl;
12392 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12393 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12398 if ac_fn_c_try_run
"$LINENO"; then :
12399 gdb_cv_printf_has_decfloat
=yes
12401 gdb_cv_printf_has_decfloat
=no
12403 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12404 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12409 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12410 if test $gdb_cv_printf_has_decfloat = yes; then
12412 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12416 # Check if the compiler supports the `long double' type. We can't use
12417 # AC_C_LONG_DOUBLE because that one does additional checks on the
12418 # constants defined in <float.h> that fail on some systems,
12419 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12422 $as_echo_n "checking for long double support in compiler... " >&6; }
12423 if test "${gdb_cv_c_long_double+set}" = set; then :
12424 $as_echo_n "(cached) " >&6
12426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12430 if ac_fn_c_try_compile
"$LINENO"; then :
12431 gdb_cv_c_long_double
=yes
12433 gdb_cv_c_long_double
=no
12435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12438 $as_echo "$gdb_cv_c_long_double" >&6; }
12439 if test $gdb_cv_c_long_double = yes; then
12441 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12445 # Check if the compiler and runtime support printing long doubles.
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12448 $as_echo_n "checking for long double support in printf... " >&6; }
12449 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12452 if test "$cross_compiling" = yes; then :
12453 gdb_cv_printf_has_long_double
=no
12455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12457 $ac_includes_default
12462 long double f = 3.141592653;
12463 sprintf (buf, "%Lg", f);
12464 return (strncmp ("3.14159", buf, 7));
12469 if ac_fn_c_try_run
"$LINENO"; then :
12470 gdb_cv_printf_has_long_double
=yes
12472 gdb_cv_printf_has_long_double
=no
12474 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12475 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12480 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12481 if test $gdb_cv_printf_has_long_double = yes; then
12483 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12487 # Check if the compiler and runtime support scanning long doubles.
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12490 $as_echo_n "checking for long double support in scanf... " >&6; }
12491 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12492 $as_echo_n "(cached) " >&6
12494 if test "$cross_compiling" = yes; then :
12495 gdb_cv_scanf_has_long_double
=no
12497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12503 char *buf = "3.141592653";
12505 sscanf (buf, "%Lg", &f);
12506 return !(f > 3.14159 && f < 3.14160);
12511 if ac_fn_c_try_run
"$LINENO"; then :
12512 gdb_cv_scanf_has_long_double
=yes
12514 gdb_cv_scanf_has_long_double
=no
12516 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12517 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12522 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12523 if test $gdb_cv_scanf_has_long_double = yes; then
12525 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12532 $as_echo_n "checking for -bbigtoc option... " >&6; }
12533 if test "${gdb_cv_bigtoc+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
12537 SAVE_LDFLAGS
=$LDFLAGS
12540 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
12541 *) gdb_cv_bigtoc
=-bbigtoc ;;
12544 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
12545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12556 if ac_fn_c_try_link
"$LINENO"; then :
12561 rm -f core conftest.err conftest.
$ac_objext \
12562 conftest
$ac_exeext conftest.
$ac_ext
12563 LDFLAGS
="${SAVE_LDFLAGS}"
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12567 $as_echo "$gdb_cv_bigtoc" >&6; }
12568 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12574 if test ${build} = ${host} -a ${host} = ${target} ; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
12578 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
12579 if test -f /usr
/include
/dce
/cma_config.h
; then
12580 if test "$GCC" = "yes" ; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12582 $as_echo "yes" >&6; }
12584 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
12586 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
12587 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
12590 $as_echo "no (suppressed because you are not using GCC)" >&6; }
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12598 # See if thread_db library is around for Solaris thread debugging.
12599 # Note that we must explicitly test for version 1 of the library
12600 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12603 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12604 if test -f /usr
/lib
/libthread_db.so
.1 ; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12606 $as_echo "yes" >&6; }
12608 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12610 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
12611 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12613 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12614 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
12617 ac_check_lib_save_LIBS
=$LIBS
12619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 /* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12637 if ac_fn_c_try_link
"$LINENO"; then :
12638 ac_cv_lib_dl_dlopen
=yes
12640 ac_cv_lib_dl_dlopen
=no
12642 rm -f core conftest.err conftest.
$ac_objext \
12643 conftest
$ac_exeext conftest.
$ac_ext
12644 LIBS
=$ac_check_lib_save_LIBS
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12648 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12649 cat >>confdefs.h
<<_ACEOF
12650 #define HAVE_LIBDL 1
12657 if test "$GCC" = "yes" ; then
12658 # The GNU linker requires the -export-dynamic option to make
12659 # all symbols visible in the dynamic symbol table.
12660 hold_ldflags
=$LDFLAGS
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
12662 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
12663 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
12664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12675 if ac_fn_c_try_link
"$LINENO"; then :
12680 rm -f core conftest.err conftest.
$ac_objext \
12681 conftest
$ac_exeext conftest.
$ac_ext
12682 LDFLAGS
=$hold_ldflags
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12684 $as_echo "$found" >&6; }
12685 if test $found = yes; then
12686 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
12689 # Sun randomly tweaked the prototypes in <proc_service.h>
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12692 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12693 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12694 $as_echo_n "(cached) " >&6
12697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12700 #include <proc_service.h>
12701 ps_err_e ps_pdwrite
12702 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12712 if ac_fn_c_try_compile
"$LINENO"; then :
12713 gdb_cv_proc_service_is_old
=no
12715 gdb_cv_proc_service_is_old
=yes
12717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12722 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12723 if test $gdb_cv_proc_service_is_old = yes; then
12725 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12735 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12736 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12737 $as_echo_n "(cached) " >&6
12739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12741 #include <sys/pthdebug.h>
12745 #ifndef PTHDB_VERSION_3
12752 if ac_fn_c_try_compile
"$LINENO"; then :
12753 gdb_cv_have_aix_thread_debug
=yes
12755 gdb_cv_have_aix_thread_debug
=no
12757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12761 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12762 if test $gdb_cv_have_aix_thread_debug = yes; then
12763 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
12764 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
12765 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
12772 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12774 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12775 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780 #include <thread_db.h>
12784 int i = TD_NOTALLOC;
12789 if ac_fn_c_try_compile
"$LINENO"; then :
12790 gdb_cv_thread_db_h_has_td_notalloc
=yes
12792 gdb_cv_thread_db_h_has_td_notalloc
=no
12795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12799 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12801 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12802 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12803 $as_echo_n "(cached) " >&6
12805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12807 #include <thread_db.h>
12811 int i = TD_VERSION;
12816 if ac_fn_c_try_compile
"$LINENO"; then :
12817 gdb_cv_thread_db_h_has_td_version
=yes
12819 gdb_cv_thread_db_h_has_td_version
=no
12822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12826 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12828 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12829 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12834 #include <thread_db.h>
12843 if ac_fn_c_try_compile
"$LINENO"; then :
12844 gdb_cv_thread_db_h_has_td_notls
=yes
12846 gdb_cv_thread_db_h_has_td_notls
=no
12849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12853 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12855 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12857 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12860 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12862 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12865 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12867 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12871 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12873 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12874 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879 #include <sys/syscall.h>
12883 int i = __NR_tkill;
12888 if ac_fn_c_try_compile
"$LINENO"; then :
12889 gdb_cv_sys_syscall_h_has_tkill
=yes
12891 gdb_cv_sys_syscall_h_has_tkill
=no
12894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12898 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12900 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12902 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12906 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12908 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
12914 cat >>confdefs.h
<<_ACEOF
12915 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12919 if test "$cross_compiling" = yes; then :
12920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12922 #include <sys/personality.h>
12927 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12928 # define ADDR_NO_RANDOMIZE 0x0040000
12930 /* Test the flag could be set and stays set. */
12931 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12932 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12938 if ac_fn_c_try_link
"$LINENO"; then :
12939 have_personality
=true
12941 have_personality
=false
12943 rm -f core conftest.err conftest.
$ac_objext \
12944 conftest
$ac_exeext conftest.
$ac_ext
12946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12948 #include <sys/personality.h>
12953 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12954 # define ADDR_NO_RANDOMIZE 0x0040000
12956 /* Test the flag could be set and stays set. */
12957 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12958 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12964 if ac_fn_c_try_run
"$LINENO"; then :
12965 have_personality
=true
12967 have_personality
=false
12969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12970 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12973 if $have_personality
12976 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12981 target_sysroot_reloc
=0
12983 # Check whether --with-sysroot was given.
12984 if test "${with_sysroot+set}" = set; then :
12985 withval
=$with_sysroot;
12986 case ${with_sysroot} in
12987 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
12988 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
12991 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
12993 if test "x$prefix" = xNONE
; then
12994 test_prefix
=/usr
/local
12996 test_prefix
=$prefix
12998 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12999 test_exec_prefix
=$test_prefix
13001 test_exec_prefix
=$exec_prefix
13003 case ${TARGET_SYSTEM_ROOT} in
13004 "${test_prefix}"|
"${test_prefix}/"*|\
13005 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
13006 '${prefix}'|
'${prefix}/'*|\
13007 '${exec_prefix}'|
'${exec_prefix}/'*)
13008 target_sysroot_reloc
=1
13014 TARGET_SYSTEM_ROOT
=
13015 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
13019 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
13025 # Check whether --with-system-gdbinit was given.
13026 if test "${with_system_gdbinit+set}" = set; then :
13027 withval
=$with_system_gdbinit;
13028 SYSTEM_GDBINIT
=$withval
13034 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13035 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13036 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
13037 ac_define_dir
=`eval echo $ac_define_dir`
13039 cat >>confdefs.h
<<_ACEOF
13040 #define SYSTEM_GDBINIT "$ac_define_dir"
13045 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13046 if test "x$prefix" = xNONE
; then
13047 test_prefix
=/usr
/local
13049 test_prefix
=$prefix
13052 test_prefix
=$exec_prefix
13055 case ${ac_define_dir} in
13056 "${test_prefix}"|
"${test_prefix}/"*|\
13057 '${exec_prefix}'|
'${exec_prefix}/'*)
13062 cat >>confdefs.h
<<_ACEOF
13063 #define SYSTEM_GDBINIT_RELOCATABLE $value
13068 # Check whether --enable-werror was given.
13069 if test "${enable_werror+set}" = set; then :
13070 enableval
=$enable_werror; case "${enableval}" in
13071 yes | y
) ERROR_ON_WARNING
="yes" ;;
13072 no | n
) ERROR_ON_WARNING
="no" ;;
13073 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13078 # Enable -Werror by default when using gcc
13079 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13080 ERROR_ON_WARNING
=yes
13084 if test "${ERROR_ON_WARNING}" = yes ; then
13085 WERROR_CFLAGS
="-Werror"
13088 # The entries after -Wno-pointer-sign are disabled warnings which may
13089 # be enabled in the future, which can not currently be used to build
13091 # NOTE: If you change this list, remember to update
13092 # gdb/doc/gdbint.texinfo.
13093 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13094 -Wformat-nonliteral -Wno-pointer-sign \
13095 -Wno-unused -Wno-switch -Wno-char-subscripts"
13097 # Enable -Wno-format by default when using gcc on mingw since many
13098 # GCC versions complain about %I64.
13100 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
13103 # Check whether --enable-build-warnings was given.
13104 if test "${enable_build_warnings+set}" = set; then :
13105 enableval
=$enable_build_warnings; case "${enableval}" in
13107 no
) build_warnings
="-w";;
13108 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13109 build_warnings
="${build_warnings} ${t}";;
13110 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13111 build_warnings
="${t} ${build_warnings}";;
13112 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13114 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13115 echo "Setting compiler warning flags = $build_warnings" 6>&1
13118 # Check whether --enable-gdb-build-warnings was given.
13119 if test "${enable_gdb_build_warnings+set}" = set; then :
13120 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
13122 no
) build_warnings
="-w";;
13123 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13124 build_warnings
="${build_warnings} ${t}";;
13125 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13126 build_warnings
="${t} ${build_warnings}";;
13127 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13129 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13130 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13134 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13137 $as_echo_n "checking compiler warning flags... " >&6; }
13138 # Separate out the -Werror flag as some files just cannot be
13139 # compiled with it enabled.
13140 for w
in ${build_warnings}; do
13142 -Werr*) WERROR_CFLAGS
=-Werror ;;
13143 *) # Check that GCC accepts it
13144 saved_CFLAGS
="$CFLAGS"
13145 CFLAGS
="$CFLAGS $w"
13146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13157 if ac_fn_c_try_compile
"$LINENO"; then :
13158 WARN_CFLAGS
="${WARN_CFLAGS} $w"
13160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13161 CFLAGS
="$saved_CFLAGS"
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13165 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13170 # In the Cygwin environment, we need some additional flags.
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
13172 $as_echo_n "checking
for cygwin...
" >&6; }
13173 if test "${gdb_cv_os_cygwin+set}" = set; then :
13174 $as_echo_n "(cached
) " >&6
13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13179 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13183 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13184 $EGREP "lose
" >/dev/null 2>&1; then :
13185 gdb_cv_os_cygwin=yes
13187 gdb_cv_os_cygwin=no
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
13193 $as_echo "$gdb_cv_os_cygwin" >&6; }
13196 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
13198 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13199 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13200 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
13204 # libreadline needs libuser32.a in a cygwin environment
13206 if test x$gdb_cv_os_cygwin = xyes; then
13207 WIN32LIBS="-luser32"
13208 case "${target}" in
13209 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13214 # The ser-tcp.c module requires sockets.
13218 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13220 WIN32LIBS
="$WIN32LIBS -lws2_32"
13225 # Add ELF support to GDB, but only if BFD includes ELF support.
13227 OLD_LDFLAGS
=$LDFLAGS
13229 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
13230 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
13231 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13232 LIBS
="-lbfd -liberty $intl $LIBS"
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13234 $as_echo_n "checking for ELF support in BFD... " >&6; }
13235 if test "${gdb_cv_var_elf+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
13238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13240 #include <stdlib.h>
13242 #include "elf-bfd.h"
13247 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
13252 if ac_fn_c_try_link
"$LINENO"; then :
13257 rm -f core conftest.err conftest.
$ac_objext \
13258 conftest
$ac_exeext conftest.
$ac_ext
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13261 $as_echo "$gdb_cv_var_elf" >&6; }
13262 if test $gdb_cv_var_elf = yes; then
13263 CONFIG_OBS
="$CONFIG_OBS elfread.o"
13265 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13269 LDFLAGS
=$OLD_LDFLAGS
13272 # Add any host-specific objects to GDB.
13273 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
13275 LIBGUI
="../libgui/src/libgui.a"
13276 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
13285 *-*-cygwin* |
*-*-mingw* )
13294 if test "${enable_gdbtk}" = "yes"; then
13296 # Gdbtk must have an absolute path to srcdir in order to run
13297 # properly when not installed.
13300 GDBTK_SRC_DIR
=`pwd`
13305 # Ok, lets find the tcl configuration
13306 # First, look for one uninstalled.
13307 # the alternative search directory is invoked by --with-tcl
13310 if test x
"${no_tcl}" = x
; then
13311 # we reset no_tcl in case something fails here
13314 # Check whether --with-tcl was given.
13315 if test "${with_tcl+set}" = set; then :
13316 withval
=$with_tcl; with_tclconfig
=${withval}
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13320 $as_echo_n "checking for Tcl configuration... " >&6; }
13321 if test "${ac_cv_c_tclconfig+set}" = set; then :
13322 $as_echo_n "(cached) " >&6
13326 # First check to see if --with-tcl was specified.
13328 *-*-cygwin*) platDir
="win" ;;
13329 *) platDir
="unix" ;;
13331 if test x
"${with_tclconfig}" != x
; then
13332 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13333 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
13335 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13339 # then check for a private Tcl installation
13340 if test x
"${ac_cv_c_tclconfig}" = x
; then
13343 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13344 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13345 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13347 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13348 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13349 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13351 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13352 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13353 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13354 if test -f "$i/$platDir/tclConfig.sh" ; then
13355 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
13361 # on Darwin, check in Framework installation locations
13362 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
13363 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
13364 `ls -d /Library/Frameworks 2>/dev/null` \
13365 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13366 `ls -d /System/Library/Frameworks 2>/dev/null` \
13368 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13369 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
13375 # check in a few common install locations
13376 if test x
"${ac_cv_c_tclconfig}" = x
; then
13377 for i
in `ls -d ${libdir} 2>/dev/null` \
13378 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13379 `ls -d ${prefix}/lib 2>/dev/null` \
13380 `ls -d /usr/local/lib 2>/dev/null` \
13381 `ls -d /usr/contrib/lib 2>/dev/null` \
13382 `ls -d /usr/lib 2>/dev/null` \
13384 if test -f "$i/tclConfig.sh" ; then
13385 ac_cv_c_tclconfig
=`(cd $i; pwd)`
13391 # check in a few other private locations
13392 if test x
"${ac_cv_c_tclconfig}" = x
; then
13395 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13396 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13397 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13398 if test -f "$i/$platDir/tclConfig.sh" ; then
13399 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
13408 if test x
"${ac_cv_c_tclconfig}" = x
; then
13409 TCL_BIN_DIR
="# no Tcl configs found"
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13411 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13414 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13416 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13421 # If $no_tk is nonempty, then we can't do Tk, and there is no
13422 # point to doing Tcl.
13425 # Ok, lets find the tk configuration
13426 # First, look for one uninstalled.
13427 # the alternative search directory is invoked by --with-tk
13430 if test x
"${no_tk}" = x
; then
13431 # we reset no_tk in case something fails here
13434 # Check whether --with-tk was given.
13435 if test "${with_tk+set}" = set; then :
13436 withval
=$with_tk; with_tkconfig
=${withval}
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13440 $as_echo_n "checking for Tk configuration... " >&6; }
13441 if test "${ac_cv_c_tkconfig+set}" = set; then :
13442 $as_echo_n "(cached) " >&6
13446 # First check to see if --with-tkconfig was specified.
13447 if test x
"${with_tkconfig}" != x
; then
13448 if test -f "${with_tkconfig}/tkConfig.sh" ; then
13449 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
13451 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13455 # then check for a private Tk library
13457 *-*-cygwin*) platDir
="win" ;;
13458 *) platDir
="unix" ;;
13460 if test x
"${ac_cv_c_tkconfig}" = x
; then
13463 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13464 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13465 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13467 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13468 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13469 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
13471 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13472 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
13473 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
13474 if test -f "$i/$platDir/tkConfig.sh" ; then
13475 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
13481 # on Darwin, check in Framework installation locations
13482 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
13483 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
13484 `ls -d /Library/Frameworks 2>/dev/null` \
13485 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13486 `ls -d /System/Library/Frameworks 2>/dev/null` \
13488 if test -f "$i/Tk.framework/tkConfig.sh" ; then
13489 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
13495 # check in a few common install locations
13496 if test x
"${ac_cv_c_tkconfig}" = x
; then
13497 for i
in `ls -d ${libdir} 2>/dev/null` \
13498 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13499 `ls -d ${prefix}/lib 2>/dev/null` \
13500 `ls -d /usr/local/lib 2>/dev/null` \
13501 `ls -d /usr/contrib/lib 2>/dev/null` \
13502 `ls -d /usr/lib 2>/dev/null` \
13504 if test -f "$i/tkConfig.sh" ; then
13505 ac_cv_c_tkconfig
=`(cd $i; pwd)`
13510 # check in a few other private locations
13511 if test x
"${ac_cv_c_tkconfig}" = x
; then
13514 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13515 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13516 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13517 if test -f "$i/$platDir/tkConfig.sh" ; then
13518 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
13527 if test x
"${ac_cv_c_tkconfig}" = x
; then
13528 TK_BIN_DIR
="# no Tk configs found"
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13530 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13533 TK_BIN_DIR
=${ac_cv_c_tkconfig}
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13535 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13540 if test -z "${no_tcl}" -a -z "${no_tk}"; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13543 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13545 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13547 $as_echo "loading" >&6; }
13548 .
${TCL_BIN_DIR}/tclConfig.sh
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13551 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13554 # eval is required to do the TCL_DBGX substitution
13555 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13556 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13558 # If the TCL_BIN_DIR is the build directory (not the install directory),
13559 # then set the common variable name to the value of the build variables.
13560 # For example, the variable TCL_LIB_SPEC will be set to the value
13561 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13562 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13563 # installed and uninstalled version of Tcl.
13564 if test -f "${TCL_BIN_DIR}/Makefile" ; then
13565 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
13566 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
13567 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
13568 elif test "`uname -s`" = "Darwin"; then
13569 # If Tcl was built as a framework, attempt to use the libraries
13570 # from the framework at the given location so that linking works
13571 # against Tcl.framework installed in an arbitary location.
13572 case ${TCL_DEFS} in
13574 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13575 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
13576 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13577 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13578 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13583 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13584 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13585 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13591 # eval is required to do the TCL_DBGX substitution
13592 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13593 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13594 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13595 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13611 # Check for in-tree tcl
13618 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13622 # Find Tcl private headers
13623 if test x
"${intree}" = xno
; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13626 $as_echo_n "checking for Tcl private headers... " >&6; }
13628 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13629 if test -f ${dir}/tclInt.h
; then
13633 if test x
"${private_dir}" = x
; then
13634 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
13636 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13638 $as_echo "${private_dir}" >&6; }
13641 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13642 TCL_LIBRARY
="${TCL_LIB_SPEC}"
13645 # If building tcl in the same src tree, private headers
13646 # are not needed, but we need to be sure to use the right
13648 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
13649 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
13650 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
13658 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
13660 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13662 $as_echo "loading" >&6; }
13663 .
${TK_BIN_DIR}/tkConfig.sh
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
13666 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13669 # eval is required to do the TK_DBGX substitution
13670 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
13671 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
13673 # If the TK_BIN_DIR is the build directory (not the install directory),
13674 # then set the common variable name to the value of the build variables.
13675 # For example, the variable TK_LIB_SPEC will be set to the value
13676 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
13677 # instead of TK_BUILD_LIB_SPEC since it will work with both an
13678 # installed and uninstalled version of Tcl.
13679 if test -f "${TK_BIN_DIR}/Makefile" ; then
13680 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
13681 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
13682 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
13683 elif test "`uname -s`" = "Darwin"; then
13684 # If Tk was built as a framework, attempt to use the libraries
13685 # from the framework at the given location so that linking works
13686 # against Tk.framework installed in an arbitary location.
13689 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
13690 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
13691 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
13692 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
13693 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
13698 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
13699 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
13700 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
13706 # eval is required to do the TK_DBGX substitution
13707 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
13708 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
13709 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
13710 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
13725 # Check for in-tree Tk
13727 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
13731 # Find Tk private headers
13732 if test x
"${intree}" = xno
; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
13735 $as_echo_n "checking for Tk private headers... " >&6; }
13737 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
13738 if test -f ${dir}/tkInt.h
; then
13742 if test x
"${private_dir}" = x
; then
13743 as_fn_error
"could not find Tk private headers" "$LINENO" 5
13745 TK_PRIVATE_INCLUDE
="-I${private_dir}"
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13747 $as_echo "${private_dir}" >&6; }
13750 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
13751 TK_LIBRARY
=${TK_LIB_SPEC}
13754 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
13755 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
13756 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
13763 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
13765 # Include some libraries that Tcl and Tk want.
13766 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
13767 # Yes, the ordering seems wrong here. But it isn't.
13768 # TK_LIBS is the list of libraries that need to be linked
13769 # after Tcl/Tk. Note that this isn't put into LIBS. If it
13770 # were in LIBS then any link tests after this point would
13771 # try to include things like `$(LIBGUI)', which wouldn't work.
13772 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
13774 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
13775 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
13776 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
13777 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
13778 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
13779 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
13780 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
13782 if test x
$gdb_cv_os_cygwin = xyes
; then
13783 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
13784 WIN32LDAPP
="-Wl,--subsystem,console"
13785 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
13788 subdirs
="$subdirs gdbtk"
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13801 $as_echo_n "checking for X... " >&6; }
13804 # Check whether --with-x was given.
13805 if test "${with_x+set}" = set; then :
13809 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13810 if test "x$with_x" = xno
; then
13811 # The user explicitly disabled X.
13814 case $x_includes,$x_libraries in #(
13815 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
13816 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
13817 $as_echo_n "(cached) " >&6
13819 # One or both of the vars are not set, and there is no cached value.
13820 ac_x_includes
=no ac_x_libraries
=no
13821 rm -f -r conftest.dir
13822 if mkdir conftest.dir
; then
13824 cat >Imakefile
<<'_ACEOF'
13826 @echo incroot='${INCROOT}'
13828 @echo usrlibdir='${USRLIBDIR}'
13830 @echo libdir='${LIBDIR}'
13832 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13833 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13834 for ac_var
in incroot usrlibdir libdir
; do
13835 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13837 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13838 for ac_extension
in a so sl dylib la dll
; do
13839 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13840 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13841 ac_im_usrlibdir
=$ac_im_libdir; break
13844 # Screen out bogus values from the imake configuration. They are
13845 # bogus both because they are the default anyway, and because
13846 # using them would break gcc on systems where it needs fixed includes.
13847 case $ac_im_incroot in
13848 /usr
/include
) ac_x_includes
= ;;
13849 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13851 case $ac_im_usrlibdir in
13852 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13853 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13857 rm -f -r conftest.dir
13860 # Standard set of common directories for X headers.
13861 # Check X11 before X11Rn because it is often a symlink to the current release.
13875 /usr/local/X11/include
13876 /usr/local/X11R7/include
13877 /usr/local/X11R6/include
13878 /usr/local/X11R5/include
13879 /usr/local/X11R4/include
13881 /usr/local/include/X11
13882 /usr/local/include/X11R7
13883 /usr/local/include/X11R6
13884 /usr/local/include/X11R5
13885 /usr/local/include/X11R4
13889 /usr/XFree86/include/X11
13893 /usr/unsupported/include
13894 /usr/athena/include
13895 /usr/local/x11r5/include
13896 /usr/lpp/Xamples/include
13898 /usr/openwin/include
13899 /usr/openwin/share/include'
13901 if test "$ac_x_includes" = no
; then
13902 # Guess where to find include files, by looking for Xlib.h.
13903 # First, try using that file with no special directory specified.
13904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906 #include <X11/Xlib.h>
13908 if ac_fn_c_try_cpp
"$LINENO"; then :
13909 # We can compile using X headers with no special include directory.
13912 for ac_dir
in $ac_x_header_dirs; do
13913 if test -r "$ac_dir/X11/Xlib.h"; then
13914 ac_x_includes
=$ac_dir
13919 rm -f conftest.err conftest.
$ac_ext
13920 fi # $ac_x_includes = no
13922 if test "$ac_x_libraries" = no
; then
13923 # Check for the libraries.
13924 # See if we find them without any special options.
13925 # Don't add to $LIBS permanently.
13928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930 #include <X11/Xlib.h>
13939 if ac_fn_c_try_link
"$LINENO"; then :
13941 # We can link X programs with no special library path.
13945 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13947 # Don't even attempt the hair of trying to link an X program!
13948 for ac_extension
in a so sl dylib la dll
; do
13949 if test -r "$ac_dir/libX11.$ac_extension"; then
13950 ac_x_libraries
=$ac_dir
13956 rm -f core conftest.err conftest.
$ac_objext \
13957 conftest
$ac_exeext conftest.
$ac_ext
13958 fi # $ac_x_libraries = no
13960 case $ac_x_includes,$ac_x_libraries in #(
13961 no
,* |
*,no |
*\'*)
13962 # Didn't find X, or a directory has "'" in its name.
13963 ac_cv_have_x
="have_x=no";; #(
13965 # Record where we found X for the cache.
13966 ac_cv_have_x
="have_x=yes\
13967 ac_x_includes='$ac_x_includes'\
13968 ac_x_libraries='$ac_x_libraries'"
13974 eval "$ac_cv_have_x"
13977 if test "$have_x" != yes; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13979 $as_echo "$have_x" >&6; }
13982 # If each of the values was on the command line, it overrides each guess.
13983 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13984 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13985 # Update the cache value to reflect the command line values.
13986 ac_cv_have_x
="have_x=yes\
13987 ac_x_includes='$x_includes'\
13988 ac_x_libraries='$x_libraries'"
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13990 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13994 # Unlike the sim directory, whether a simulator is linked is controlled by
13995 # presence of a gdb_sim definition in the target configure.tgt entry.
13996 # This code just checks for a few cases where we'd like to ignore those
13997 # definitions, even when they're present in the '.mt' file. These cases
13998 # are when --disable-sim is specified, or if the simulator directory is
13999 # not part of the source tree.
14001 # Check whether --enable-sim was given.
14002 if test "${enable_sim+set}" = set; then :
14003 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
14004 echo "enableval = ${enableval}";
14005 case "${enableval}" in
14006 yes) ignore_sim
=false
;;
14007 no
) ignore_sim
=true
;;
14008 *) ignore_sim
=false
;;
14015 if test ! -d "${srcdir}/../sim"; then
14021 if test "${ignore_sim}" = "false"; then
14022 if test x
"${gdb_sim}" != x
; then
14024 SIM_OBS
="remote-sim.o"
14026 $as_echo "#define WITH_SIM 1" >>confdefs.h
14044 # List of host floatformats.
14046 cat >>confdefs.h
<<_ACEOF
14047 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14051 cat >>confdefs.h
<<_ACEOF
14052 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14056 cat >>confdefs.h
<<_ACEOF
14057 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14061 # target_subdir is used by the testsuite to find the target libraries.
14063 if test "${host}" != "${target}"; then
14064 target_subdir
="${target_alias}/"
14069 if test "${gdb_native}" = "yes"; then
14070 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14071 if test ! -f ${host_makefile_frag}; then
14072 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14074 frags
="$frags $host_makefile_frag"
14076 host_makefile_frag
=/dev
/null
14082 if test "${gdb_native}" = "yes"; then
14083 # We pick this up from the host configuration file (.mh) because we
14084 # do not have a native configuration Makefile fragment.
14085 nativefile
=`sed -n '
14086 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14087 ' ${host_makefile_frag}`
14091 if test x
"${gdb_osabi}" != x
; then
14093 cat >>confdefs.h
<<_ACEOF
14094 #define GDB_OSABI_DEFAULT $gdb_osabi
14099 # Enable multi-ice-gdb-server.
14100 # Check whether --enable-multi-ice was given.
14101 if test "${enable_multi_ice+set}" = set; then :
14102 enableval
=$enable_multi_ice; case $enableval in
14105 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14109 if test "x$enable_multi_ice" = xyes
; then
14110 subdirs
="$subdirs multi-ice"
14114 # We only build gdbserver automatically in a native configuration.
14115 if test "$gdb_native" = "yes"; then
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14117 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14118 if test "x$build_gdbserver" = xyes
; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14120 $as_echo "yes" >&6; }
14121 subdirs
="$subdirs gdbserver"
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 $as_echo "no" >&6; }
14129 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14130 # to an empty version.
14136 if test "${nativefile}" != ""; then
14137 case "${nativefile}" in
14138 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
14139 * ) GDB_NM_FILE
="${nativefile}"
14141 files
="${files} ${GDB_NM_FILE}"
14142 links
="${links} nm.h"
14144 cat >>confdefs.h
<<_ACEOF
14145 #define GDB_NM_FILE "${GDB_NM_FILE}"
14151 ac_sources
="$files"
14153 while test -n "$ac_sources"; do
14154 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
14155 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
14156 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
14158 ac_config_links
="$ac_config_links $ac_config_links_1"
14164 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14167 # Flags needed to enable html installing and building
14169 # Check whether --with-datarootdir was given.
14170 if test "${with_datarootdir+set}" = set; then :
14171 withval
=$with_datarootdir; datarootdir
="\${prefix}/${withval}"
14173 datarootdir
="\${prefix}/share"
14178 # Check whether --with-docdir was given.
14179 if test "${with_docdir+set}" = set; then :
14180 withval
=$with_docdir; docdir
="\${prefix}/${withval}"
14182 docdir
="\${datarootdir}/doc"
14187 # Check whether --with-pdfdir was given.
14188 if test "${with_pdfdir+set}" = set; then :
14189 withval
=$with_pdfdir; pdfdir
="\${prefix}/${withval}"
14191 pdfdir
="\${docdir}"
14196 # Check whether --with-htmldir was given.
14197 if test "${with_htmldir+set}" = set; then :
14198 withval
=$with_htmldir; htmldir
="\${prefix}/${withval}"
14200 htmldir
="\${docdir}"
14209 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
14211 ac_config_commands
="$ac_config_commands default"
14213 cat >confcache
<<\_ACEOF
14214 # This file is a shell script that caches the results of configure
14215 # tests run on this system so they can be shared between configure
14216 # scripts and configure runs, see configure's option --config-cache.
14217 # It is not useful on other systems. If it contains results you don't
14218 # want to keep, you may remove or edit it.
14220 # config.status only pays attention to the cache file if you give it
14221 # the --recheck option to rerun configure.
14223 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14225 # following values.
14229 # The following way of writing the cache mishandles newlines in values,
14230 # but we know of no workaround that is simple, portable, and efficient.
14231 # So, we kill variables containing newlines.
14232 # Ultrix sh set writes to stderr and can't be redirected directly,
14233 # and sets the high bit in the cache file unless we assign to the vars.
14235 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14236 eval ac_val
=\$
$ac_var
14240 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14241 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14244 _ | IFS | as_nl
) ;; #(
14245 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14246 *) { eval $ac_var=; unset $ac_var;} ;;
14252 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14253 *${as_nl}ac_space
=\
*)
14254 # `set' does not quote correctly, so add quotes: double-quote
14255 # substitution turns \\\\ into \\, and sed turns \\ into \.
14258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14261 # `set' quotes correctly as required by POSIX, so do not add quotes.
14262 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14271 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14273 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14275 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14276 if test -w "$cache_file"; then
14277 test "x$cache_file" != "x/dev/null" &&
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14279 $as_echo "$as_me: updating cache $cache_file" >&6;}
14280 cat confcache
>$cache_file
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14283 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14288 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14289 # Let make expand exec_prefix.
14290 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14292 DEFS
=-DHAVE_CONFIG_H
14296 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14297 # 1. Remove the extension, and $U if already installed.
14298 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14299 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14301 # will be set to the directory where LIBOBJS objects are built.
14302 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14303 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14305 LIBOBJS
=$ac_libobjs
14307 LTLIBOBJS
=$ac_ltlibobjs
14310 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14311 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
14312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14314 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14315 as_fn_error
"conditional \"GMAKE\" was never defined.
14316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14318 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14319 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
14320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14325 if test -n "$gl_LIBOBJS"; then
14326 # Remove the extension.
14327 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14328 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14329 gl_libobjs
="$gl_libobjs $i.$ac_objext"
14330 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
14333 gl_LIBOBJS
=$gl_libobjs
14335 gl_LTLIBOBJS
=$gl_ltlibobjs
14341 if test -n "$gltests_LIBOBJS"; then
14342 # Remove the extension.
14343 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14344 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14345 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
14346 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
14349 gltests_LIBOBJS
=$gltests_libobjs
14351 gltests_LTLIBOBJS
=$gltests_ltlibobjs
14354 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14355 as_fn_error
"conditional \"AMDEP\" was never defined.
14356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14358 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14359 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
14360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14362 if test -n "$EXEEXT"; then
14364 am__EXEEXT_FALSE
='#'
14366 am__EXEEXT_TRUE
='#'
14372 : ${CONFIG_STATUS=./config.status}
14374 ac_clean_files_save
=$ac_clean_files
14375 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14377 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14379 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14381 # Generated by $as_me.
14382 # Run this file to recreate the current configuration.
14383 # Compiler output produced by configure, useful for debugging
14384 # configure, is in config.log if it exists.
14387 ac_cs_recheck=false
14390 SHELL=\${CONFIG_SHELL-$SHELL}
14393 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14394 ## -------------------- ##
14395 ## M4sh Initialization. ##
14396 ## -------------------- ##
14398 # Be more Bourne compatible
14399 DUALCASE
=1; export DUALCASE
# for MKS sh
14400 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14403 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14404 # is contrary to our usage. Disable this feature.
14405 alias -g '${1+"$@"}'='"$@"'
14406 setopt NO_GLOB_SUBST
14408 case `(set -o) 2>/dev/null` in #(
14420 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14421 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14422 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14423 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14424 # Prefer a ksh shell builtin over an external printf program on Solaris,
14425 # but without wasting forks for bash or zsh.
14426 if test -z "$BASH_VERSION$ZSH_VERSION" \
14427 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14428 as_echo='print
-r --'
14429 as_echo_n='print
-rn --'
14430 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14431 as_echo='printf %s
\n'
14432 as_echo_n='printf %s
'
14434 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14435 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14436 as_echo_n='/usr
/ucb
/echo -n'
14438 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14439 as_echo_n_body='eval
14443 expr "X$arg" : "X\\(.*\\)$as_nl";
14444 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14446 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14448 export as_echo_n_body
14449 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14451 export as_echo_body
14452 as_echo='sh
-c $as_echo_body as_echo
'
14455 # The user is always right.
14456 if test "${PATH_SEPARATOR+set}" != set; then
14458 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14459 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14466 # We need space, tab and new line, in precisely that order. Quoting is
14467 # there to prevent editors from complaining about space-tab.
14468 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14469 # splitting by setting IFS to empty value.)
14472 # Find who we are. Look in the path if we contain no directory separator.
14474 *[\\/]* ) as_myself=$0 ;;
14475 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14476 for as_dir in $PATH
14479 test -z "$as_dir" && as_dir=.
14480 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14486 # We did not find ourselves, most probably we were run as `sh COMMAND'
14487 # in which case we are not to be found in the path.
14488 if test "x$as_myself" = x
; then
14491 if test ! -f "$as_myself"; then
14492 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14496 # Unset variables that we do not need and which cause bugs (e.g. in
14497 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14498 # suppresses any "Segmentation fault" message there. '((' could
14499 # trigger a bug in pdksh 5.2.14.
14500 for as_var
in BASH_ENV ENV MAIL MAILPATH
14501 do eval test x\
${$as_var+set} = xset \
14502 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14515 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14518 # as_fn_error ERROR [LINENO LOG_FD]
14519 # ---------------------------------
14520 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14521 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14522 # script with status $?, using 1 if that was 0.
14525 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14527 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14528 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14530 $as_echo "$as_me: error: $1" >&2
14531 as_fn_exit
$as_status
14535 # as_fn_set_status STATUS
14536 # -----------------------
14537 # Set $? to STATUS, without forking.
14538 as_fn_set_status
()
14541 } # as_fn_set_status
14543 # as_fn_exit STATUS
14544 # -----------------
14545 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14549 as_fn_set_status
$1
14555 # Portably unset VAR.
14558 { eval $1=; unset $1;}
14560 as_unset
=as_fn_unset
14561 # as_fn_append VAR VALUE
14562 # ----------------------
14563 # Append the text in VALUE to the end of the definition contained in VAR. Take
14564 # advantage of any shell optimizations that allow amortized linear growth over
14565 # repeated appends, instead of the typical quadratic growth present in naive
14567 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14568 eval 'as_fn_append ()
14579 # as_fn_arith ARG...
14580 # ------------------
14581 # Perform arithmetic evaluation on the ARGs, and store the result in the
14582 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14583 # must be portable across $(()) and expr.
14584 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14585 eval 'as_fn_arith ()
14592 as_val
=`expr "$@" || test $? -eq 1`
14597 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14598 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14604 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14605 as_basename
=basename
14610 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14616 as_me
=`$as_basename -- "$0" ||
14617 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14618 X"$0" : 'X\(//\)$' \| \
14619 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14621 sed '/^.*\/\([^/][^/]*\)\/*$/{
14635 # Avoid depending upon Character Ranges.
14636 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14637 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14638 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14639 as_cr_digits
='0123456789'
14640 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14642 ECHO_C
= ECHO_N
= ECHO_T
=
14643 case `echo -n x` in #(((((
14645 case `echo 'xy\c'` in
14646 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14648 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14655 rm -f conf$$ conf$$.exe conf$$.
file
14656 if test -d conf$$.dir
; then
14657 rm -f conf$$.dir
/conf$$.
file
14660 mkdir conf$$.dir
2>/dev
/null
14662 if (echo >conf$$.
file) 2>/dev
/null
; then
14663 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14665 # ... but there are two gotchas:
14666 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14667 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14668 # In both cases, we have to default to `cp -p'.
14669 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14671 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14679 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14680 rmdir conf$$.dir
2>/dev
/null
14685 # Create "$as_dir" as a directory, including parents if necessary.
14690 -*) as_dir
=.
/$as_dir;;
14692 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14696 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14697 *) as_qdir
=$as_dir;;
14699 as_dirs
="'$as_qdir' $as_dirs"
14700 as_dir
=`$as_dirname -- "$as_dir" ||
14701 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14702 X"$as_dir" : 'X\(//\)[^/]' \| \
14703 X"$as_dir" : 'X\(//\)$' \| \
14704 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14705 $as_echo X"$as_dir" |
14706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14710 /^X\(\/\/\)[^/].*/{
14723 test -d "$as_dir" && break
14725 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14726 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14730 if mkdir
-p .
2>/dev
/null
; then
14731 as_mkdir_p
='mkdir -p "$as_dir"'
14733 test -d .
/-p && rmdir .
/-p
14737 if test -x / >/dev
/null
2>&1; then
14738 as_test_x
='test -x'
14740 if ls -dL / >/dev
/null
2>&1; then
14747 if test -d "$1"; then
14753 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14754 ???[sx]*):;;*)false;;esac;fi
14758 as_executable_p
=$as_test_x
14760 # Sed expression to map a string onto a valid CPP name.
14761 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14763 # Sed expression to map a string onto a valid variable name.
14764 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14768 ## ----------------------------------- ##
14769 ## Main body of $CONFIG_STATUS script. ##
14770 ## ----------------------------------- ##
14772 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14775 # Save the log message, to keep $0 and so on meaningful, and to
14776 # report actual input values of CONFIG_FILES etc. instead of their
14777 # values after options handling.
14779 This file was extended by $as_me, which was
14780 generated by GNU Autoconf 2.64. Invocation command line was
14782 CONFIG_FILES = $CONFIG_FILES
14783 CONFIG_HEADERS = $CONFIG_HEADERS
14784 CONFIG_LINKS = $CONFIG_LINKS
14785 CONFIG_COMMANDS = $CONFIG_COMMANDS
14788 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14793 case $ac_config_files in *"
14794 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14797 case $ac_config_headers in *"
14798 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14803 # Files that config.status was made for.
14804 config_files="$ac_config_files"
14805 config_headers="$ac_config_headers"
14806 config_links="$ac_config_links"
14807 config_commands="$ac_config_commands"
14811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14813 \`$as_me' instantiates files and other configuration actions
14814 from templates according to the current configuration. Unless the files
14815 and actions are specified as TAGs, all are instantiated by default.
14817 Usage: $0 [OPTION]... [TAG]...
14819 -h, --help print this help, then exit
14820 -V, --version print version number and configuration settings, then exit
14821 -q, --quiet, --silent
14822 do not print progress messages
14823 -d, --debug don't remove temporary files
14824 --recheck update $as_me by reconfiguring in the same conditions
14825 --file=FILE[:TEMPLATE]
14826 instantiate the configuration file FILE
14827 --header=FILE[:TEMPLATE]
14828 instantiate the configuration header FILE
14830 Configuration files:
14833 Configuration headers:
14836 Configuration links:
14839 Configuration commands:
14842 Report bugs to the package provider."
14845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14848 configured by $0, generated by GNU Autoconf 2.64,
14849 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14851 Copyright (C) 2009 Free Software Foundation, Inc.
14852 This config.status script is free software; the Free Software Foundation
14853 gives unlimited permission to copy, distribute and modify it."
14860 test -n "\$AWK" || AWK=awk
14863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14864 # The default lists apply if the user does not specify any file.
14870 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14871 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14882 # Handling of the options.
14883 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14885 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14886 $as_echo "$ac_cs_version"; exit ;;
14887 --debug |
--debu |
--deb |
--de |
--d |
-d )
14889 --file |
--fil |
--fi |
--f )
14892 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14894 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14895 ac_need_defaults
=false
;;
14896 --header |
--heade |
--head |
--hea )
14899 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14901 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14902 ac_need_defaults
=false
;;
14904 # Conflict between --help and --header
14905 as_fn_error
"ambiguous option: \`$1'
14906 Try \`$0 --help' for more information.";;
14907 --help |
--hel |
-h )
14908 $as_echo "$ac_cs_usage"; exit ;;
14909 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14910 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14913 # This is an error.
14914 -*) as_fn_error
"unrecognized option: \`$1'
14915 Try \`$0 --help' for more information." ;;
14917 *) as_fn_append ac_config_targets
" $1"
14918 ac_need_defaults
=false
;;
14924 ac_configure_extra_args
=
14926 if $ac_cs_silent; then
14928 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14933 if \$ac_cs_recheck; then
14934 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14936 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14937 CONFIG_SHELL='$SHELL'
14938 export CONFIG_SHELL
14943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14948 ## Running $as_me. ##
14954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14958 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14959 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14965 # Handling of arguments.
14966 for ac_config_target
in $ac_config_targets
14968 case $ac_config_target in
14969 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
14970 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
14971 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
14972 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
14973 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14974 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14975 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
14976 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14978 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14983 # If the user did not use the arguments to specify the items to instantiate,
14984 # then the envvar interface is used. Set only those that are not.
14985 # We use the long form for the default assignment because of an extremely
14986 # bizarre bug on SunOS 4.1.3.
14987 if $ac_need_defaults; then
14988 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14989 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14990 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
14991 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14994 # Have a temporary directory for convenience. Make it in the build tree
14995 # simply because there is no reason against having it here, and in addition,
14996 # creating and moving files from /tmp can sometimes cause problems.
14997 # Hook for its removal unless debugging.
14998 # Note that there is a small window in which the directory will not be cleaned:
14999 # after its creation but before its name has been assigned to `$tmp'.
15003 trap 'exit_status=$?
15004 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15006 trap 'as_fn_exit 1' 1 2 13 15
15008 # Create a (secure) tmp directory for tmp files.
15011 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15012 test -n "$tmp" && test -d "$tmp"
15015 tmp
=.
/conf$$
-$RANDOM
15016 (umask 077 && mkdir
"$tmp")
15017 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15019 # Set up the scripts for CONFIG_FILES section.
15020 # No need to generate them if there are no CONFIG_FILES.
15021 # This happens for instance with `./config.status config.h'.
15022 if test -n "$CONFIG_FILES"; then
15024 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15025 ac_cs_awk_getline
=:
15026 ac_cs_awk_pipe_init
=
15027 ac_cs_awk_read_file
='
15028 while ((getline aline < (F[key])) > 0)
15031 ac_cs_awk_pipe_fini
=
15033 ac_cs_awk_getline
=false
15034 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15035 ac_cs_awk_read_file
='
15037 print "cat " F[key] " &&"
15038 '$ac_cs_awk_pipe_init
15039 # The final `:' finishes the AND list.
15040 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15042 ac_cr
=`echo X | tr X '\015'`
15043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15044 # But we know of no other shell where ac_cr would be empty at this
15045 # point, so we can use a bashism as a fallback.
15046 if test "x$ac_cr" = x
; then
15047 eval ac_cr
=\$
\'\\r
\'
15049 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15053 ac_cs_awk_cr
=$ac_cr
15056 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15059 # Create commands to substitute file output variables.
15061 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15062 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15063 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15066 } >conf$
$files.sh
&&
15067 . .
/conf$
$files.sh ||
15068 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
15069 rm -f conf$
$files.sh
15072 echo "cat >conf$$subs.awk <<_ACEOF" &&
15073 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15075 } >conf$$subs.sh ||
15076 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15077 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15079 for ac_last_try in false false false false false :; do
15080 . ./conf$$subs.sh ||
15081 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15083 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15084 if test $ac_delim_n = $ac_delim_num; then
15086 elif $ac_last_try; then
15087 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15089 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15092 rm -f conf$$subs.sh
15094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15095 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15099 s/^/S["/; s
/!.
*/"]=/
15109 s/\(.\{148\}\).*/\1/
15111 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15116 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15123 s/\(.\{148\}\).*/\1/
15125 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15129 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15134 ' <conf$$subs.awk | sed '
15139 ' >>$CONFIG_STATUS || ac_write_fail=1
15140 rm -f conf$$subs.awk
15141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15143 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15144 for (key in S) S_is_set[key] = 1
15146 \$ac_cs_awk_pipe_init
15150 nfields = split(line, field, "@
")
15152 len = length(field[1])
15153 for (i = 2; i < nfields; i++) {
15155 keylen = length(key)
15156 if (S_is_set[key]) {
15158 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15159 len += length(value) + length(field[++i])
15164 if (nfields == 3 && !substed) {
15166 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15167 \$ac_cs_awk_read_file
15173 \$ac_cs_awk_pipe_fini
15176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15177 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15178 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15181 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15182 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15185 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15186 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15187 # trailing colons and then remove the whole line if VPATH becomes empty
15188 # (actually we leave an empty line to preserve line numbers).
15189 if test "x
$srcdir" = x.; then
15190 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15191 s/:*\$(srcdir):*/:/
15192 s/:*\${srcdir}:*/:/
15194 s/^\([^=]*=[ ]*\):*/\1/
15200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15201 fi # test -n "$CONFIG_FILES"
15203 # Set up the scripts for CONFIG_HEADERS section.
15204 # No need to generate them if there are no CONFIG_HEADERS.
15205 # This happens for instance with `./config.status Makefile'.
15206 if test -n "$CONFIG_HEADERS"; then
15207 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15211 # Transform confdefs.h into an awk script `defines.awk', embedded as
15212 # here-document in config.status, that substitutes the proper values into
15213 # config.h.in to produce config.h.
15215 # Create a delimiter string that does not exist in confdefs.h, to ease
15216 # handling of long lines.
15218 for ac_last_try in false false :; do
15219 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15220 if test -z "$ac_t"; then
15222 elif $ac_last_try; then
15223 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15225 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15229 # For the awk script, D is an array of macro values keyed by name,
15230 # likewise P contains macro parameters if any. Preserve backslash
15231 # newline sequences.
15233 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15235 s/.\{148\}/&'"$ac_delim"'/g
15238 s/^[ ]*#[ ]*define[ ][ ]*/ /
15245 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15247 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15251 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15252 D["\
1"]=" \
3\\\\\\n
"\\/p
15254 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15259 s/.\{148\}/&'"$ac_delim"'/g
15264 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15267 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15269 ' <confdefs.h | sed '
15270 s/'"$ac_delim"'/"\\\
15271 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15274 for (key in D) D_is_set[key] = 1
15277 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15279 split(line, arg, " ")
15280 if (arg[1] == "#") {
15284 defundef
= substr
(arg
[1], 2)
15287 split(mac1
, mac2
, "(") #)
15289 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15290 if (D_is_set
[macro
]) {
15291 # Preserve the white space surrounding the "#".
15292 print prefix
"define", macro P
[macro
] D
[macro
]
15295 # Replace #undef with comments. This is necessary, for example,
15296 # in the case of _POSIX_SOURCE, which is predefined and required
15297 # on some systems where configure will not decide to define it.
15298 if (defundef
== "undef") {
15299 print
"/*", prefix defundef
, macro
, "*/"
15307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15308 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15309 fi # test -n "$CONFIG_HEADERS"
15312 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15317 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15319 case $ac_mode$ac_tag in
15321 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15322 :[FH
]-) ac_tag
=-:-;;
15323 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15340 -) ac_f
="$tmp/stdin";;
15341 *) # Look for the file first in the build tree, then in the source tree
15342 # (if the path is not absolute). The absolute path cannot be DOS-style,
15343 # because $ac_f cannot contain `:'.
15347 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15349 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15351 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15352 as_fn_append ac_file_inputs
" '$ac_f'"
15355 # Let's still pretend it is `configure' which instantiates (i.e., don't
15356 # use $as_me), people would be surprised to read:
15357 # /* config.h. Generated by config.status. */
15358 configure_input
='Generated from '`
15359 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15361 if test x
"$ac_file" != x-
; then
15362 configure_input
="$ac_file. $configure_input"
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15364 $as_echo "$as_me: creating $ac_file" >&6;}
15366 # Neutralize special characters interpreted by sed in replacement strings.
15367 case $configure_input in #(
15368 *\
&* |
*\|
* |
*\\* )
15369 ac_sed_conf_input
=`$as_echo "$configure_input" |
15370 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15371 *) ac_sed_conf_input
=$configure_input;;
15375 *:-:* |
*:-) cat >"$tmp/stdin" \
15376 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15381 ac_dir
=`$as_dirname -- "$ac_file" ||
15382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15383 X"$ac_file" : 'X\(//\)[^/]' \| \
15384 X"$ac_file" : 'X\(//\)$' \| \
15385 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15386 $as_echo X"$ac_file" |
15387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15391 /^X\(\/\/\)[^/].*/{
15404 as_dir
="$ac_dir"; as_fn_mkdir_p
15408 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15410 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15411 # A ".." for each directory in $ac_dir_suffix.
15412 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15413 case $ac_top_builddir_sub in
15414 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15415 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15418 ac_abs_top_builddir
=$ac_pwd
15419 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15420 # for backward compatibility:
15421 ac_top_builddir
=$ac_top_build_prefix
15424 .
) # We are building in place.
15426 ac_top_srcdir
=$ac_top_builddir_sub
15427 ac_abs_top_srcdir
=$ac_pwd ;;
15428 [\\/]* | ?
:[\\/]* ) # Absolute name.
15429 ac_srcdir
=$srcdir$ac_dir_suffix;
15430 ac_top_srcdir
=$srcdir
15431 ac_abs_top_srcdir
=$srcdir ;;
15432 *) # Relative name.
15433 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15434 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15435 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15437 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15447 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15448 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15450 ac_MKDIR_P
=$MKDIR_P
15452 [\\/$
]* | ?
:[\\/]* ) ;;
15453 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15458 # If the template does not know about datarootdir, expand it.
15459 # FIXME: This hack should be removed a few years after 2.60.
15460 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15471 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15472 *datarootdir
*) ac_datarootdir_seen
=yes;;
15473 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15475 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15478 ac_datarootdir_hack='
15479 s&@datadir@&$datadir&g
15480 s&@docdir@&$docdir&g
15481 s&@infodir@&$infodir&g
15482 s&@localedir@&$localedir&g
15483 s&@mandir@&$mandir&g
15484 s&\\\${datarootdir}&$datarootdir&g' ;;
15488 # Neutralize VPATH when `$srcdir' = `.'.
15489 # Shell code in configure.ac might set extrasub.
15490 # FIXME: do we really want to maintain this feature?
15491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15492 ac_sed_extra="$ac_vpsub
15495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15497 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15498 s|@configure_input@|
$ac_sed_conf_input|
;t t
15499 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15500 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15501 s
&@srcdir@
&$ac_srcdir&;t t
15502 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15503 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15504 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15505 s
&@builddir@
&$ac_builddir&;t t
15506 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15507 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15508 s
&@INSTALL@
&$ac_INSTALL&;t t
15509 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15510 $ac_datarootdir_hack
15512 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15513 if $ac_cs_awk_getline; then
15514 $AWK -f "$tmp/subs.
awk"
15516 $AWK -f "$tmp/subs.
awk" | $SHELL
15518 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15520 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15521 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15522 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15524 which seems to be undefined. Please make sure it is defined." >&5
15525 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15526 which seems to be undefined. Please make sure it is defined." >&2;}
15530 -) cat "$tmp/out" && rm -f "$tmp/out";;
15531 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15533 || as_fn_error "could not create $ac_file" "$LINENO" 5
15539 if test x"$ac_file" != x-; then
15541 $as_echo "/* $configure_input */" \
15542 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15543 } >"$tmp/config.h" \
15544 || as_fn_error "could not create $ac_file" "$LINENO" 5
15545 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15547 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15550 mv "$tmp/config.h" "$ac_file" \
15551 || as_fn_error "could not create $ac_file" "$LINENO" 5
15554 $as_echo "/* $configure_input */" \
15555 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15556 || as_fn_error "could not create -" "$LINENO" 5
15558 # Compute "$ac_file"'s index
in $config_headers.
15561 for _am_header
in $config_headers :; do
15562 case $_am_header in
15563 $_am_arg |
$_am_arg:* )
15566 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15569 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15570 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15571 X"$_am_arg" : 'X\(//\)[^/]' \| \
15572 X"$_am_arg" : 'X\(//\)$' \| \
15573 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15574 $as_echo X"$_am_arg" |
15575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15579 /^X\(\/\/\)[^/].*/{
15591 s/.*/./; q'`/stamp-h
$_am_stamp_count
15598 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15601 # Prefer the file from the source tree if names are identical.
15602 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
15603 ac_source
=$srcdir/$ac_source
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15607 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15609 if test ! -r "$ac_source"; then
15610 as_fn_error
"$ac_source: file not found" "$LINENO" 5
15614 # Try a relative symlink, then a hard link, then a copy.
15616 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
15617 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
15619 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
15620 ln "$ac_source" "$ac_file" 2>/dev
/null ||
15621 cp -p "$ac_source" "$ac_file" ||
15622 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15625 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15626 $as_echo "$as_me: executing $ac_file commands" >&6;}
15631 case $ac_file$ac_mode in
15632 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
15633 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
15634 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15635 # are listed without --file. Let's play safe and only enable the eval
15636 # if we detect the quoting.
15637 case $CONFIG_FILES in
15638 *\'*) eval set x
"$CONFIG_FILES" ;;
15639 *) set x
$CONFIG_FILES ;;
15644 # Strip MF so we end up with the name of the file.
15645 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15646 # Check whether this is an Automake generated Makefile or not.
15647 # We used to match only the files named `Makefile.in', but
15648 # some people rename them; so instead we look at the file content.
15649 # Grep'ing the first line is not enough: some people post-process
15650 # each Makefile.in and add a new line on top of each file to say so.
15651 # Grep'ing the whole file is not good either: AIX grep has a line
15652 # limit of 2048, but all sed's we know have understand at least 4000.
15653 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
15654 dirpart
=`$as_dirname -- "$mf" ||
15655 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15656 X"$mf" : 'X\(//\)[^/]' \| \
15657 X"$mf" : 'X\(//\)$' \| \
15658 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15664 /^X\(\/\/\)[^/].*/{
15680 # Extract the definition of DEPDIR, am__include, and am__quote
15681 # from the Makefile without running `make'.
15682 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15683 test -z "$DEPDIR" && continue
15684 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15685 test -z "am__include" && continue
15686 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15687 # When using ansi2knr, U may be empty or an underscore; expand it
15688 U
=`sed -n 's/^U = //p' < "$mf"`
15689 # Find all dependency output files, they are included files with
15690 # $(DEPDIR) in their names. We invoke sed twice because it is the
15691 # simplest approach to changing $(DEPDIR) to its actual value in the
15693 for file in `sed -n "
15694 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15695 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15696 # Make sure the directory exists.
15697 test -f "$dirpart/$file" && continue
15698 fdir
=`$as_dirname -- "$file" ||
15699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15700 X"$file" : 'X\(//\)[^/]' \| \
15701 X"$file" : 'X\(//\)$' \| \
15702 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15703 $as_echo X"$file" |
15704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15708 /^X\(\/\/\)[^/].*/{
15721 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
15722 # echo "creating $dirpart/$file"
15723 echo '# dummy' > "$dirpart/$file"
15729 case x
$CONFIG_HEADERS in
15730 xconfig.h
:config.
in)
15741 ac_clean_files
=$ac_clean_files_save
15743 test $ac_write_fail = 0 ||
15744 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15747 # configure is writing to config.log, and then calls config.status.
15748 # config.status does its own redirection, appending to config.log.
15749 # Unfortunately, on DOS this fails, as config.log is still kept open
15750 # by configure, so config.status won't be able to write to it; its
15751 # output is simply discarded. So we exec the FD to /dev/null,
15752 # effectively closing config.log, so it can be properly (re)opened and
15753 # appended to by config.status. When coming back to configure, we
15754 # need to make the FD available again.
15755 if test "$no_create" != yes; then
15757 ac_config_status_args
=
15758 test "$silent" = yes &&
15759 ac_config_status_args
="$ac_config_status_args --quiet"
15761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15764 # would make configure fail if this is the last instruction.
15765 $ac_cs_success || as_fn_exit $?
15769 # CONFIG_SUBDIRS section.
15771 if test "$no_recursion" != yes; then
15773 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15774 # so they do not pile up.
15775 ac_sub_configure_args
=
15777 eval "set x $ac_configure_args"
15781 if test -n "$ac_prev"; then
15786 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
15787 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
15788 ac_prev
=cache_file
;;
15789 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
15790 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
15793 --config-cache |
-C)
15795 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
15797 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
15799 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
15801 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
15803 --disable-option-checking)
15807 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15809 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
15813 # Always prepend --prefix to ensure using the same prefix
15814 # in subdir configurations.
15815 ac_arg
="--prefix=$prefix"
15817 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15819 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
15822 if test "$silent" = yes; then
15823 ac_sub_configure_args
="--silent $ac_sub_configure_args"
15826 # Always prepend --disable-option-checking to silence warnings, since
15827 # different subdirs can have different --enable and --with options.
15828 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
15831 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
15833 # Do not complain, so a configure script can configure whichever
15834 # parts of a large source tree are present.
15835 test -d "$srcdir/$ac_dir" ||
continue
15837 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15838 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15839 $as_echo "$ac_msg" >&6
15840 as_dir
="$ac_dir"; as_fn_mkdir_p
15844 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15846 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15847 # A ".." for each directory in $ac_dir_suffix.
15848 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15849 case $ac_top_builddir_sub in
15850 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15851 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15854 ac_abs_top_builddir
=$ac_pwd
15855 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15856 # for backward compatibility:
15857 ac_top_builddir
=$ac_top_build_prefix
15860 .
) # We are building in place.
15862 ac_top_srcdir
=$ac_top_builddir_sub
15863 ac_abs_top_srcdir
=$ac_pwd ;;
15864 [\\/]* | ?
:[\\/]* ) # Absolute name.
15865 ac_srcdir
=$srcdir$ac_dir_suffix;
15866 ac_top_srcdir
=$srcdir
15867 ac_abs_top_srcdir
=$srcdir ;;
15868 *) # Relative name.
15869 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15870 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15871 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15873 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15878 # Check for guested configure; otherwise get Cygnus style configure.
15879 if test -f "$ac_srcdir/configure.gnu"; then
15880 ac_sub_configure
=$ac_srcdir/configure.gnu
15881 elif test -f "$ac_srcdir/configure"; then
15882 ac_sub_configure
=$ac_srcdir/configure
15883 elif test -f "$ac_srcdir/configure.in"; then
15884 # This should be Cygnus configure.
15885 ac_sub_configure
=$ac_aux_dir/configure
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15888 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15892 # The recursion is here.
15893 if test -n "$ac_sub_configure"; then
15894 # Make the cache file name correct relative to the subdirectory.
15895 case $cache_file in
15896 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
15897 *) # Relative name.
15898 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
15901 { $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
15902 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15903 # The eval makes quoting arguments work.
15904 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15905 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15906 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15912 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15914 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}