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
="server.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars
='LTLIBOBJS
651 MAINTAINER_MODE_FALSE
680 program_transform_name
693 enable_option_checking
694 enable_maintainer_mode
696 enable_build_with_cxx
702 enable_build_warnings
703 enable_gdb_build_warnings
707 enable_inprocess_agent
709 ac_precious_vars
='build_alias
723 # Initialize some variables set by options.
725 ac_init_version
=false
726 ac_unrecognized_opts
=
728 # The variables have the same names as the options, with
729 # dashes changed to underlines.
737 program_transform_name
=s
,x
,x
,
745 # Installation directory options.
746 # These are left unexpanded so users can "make install exec_prefix=/foo"
747 # and all the variables that are supposed to be based on exec_prefix
748 # by default will actually change.
749 # Use braces instead of parens because sh, perl, etc. also accept them.
750 # (The list follows the same order as the GNU Coding Standards.)
751 bindir
='${exec_prefix}/bin'
752 sbindir
='${exec_prefix}/sbin'
753 libexecdir
='${exec_prefix}/libexec'
754 datarootdir
='${prefix}/share'
755 datadir
='${datarootdir}'
756 sysconfdir
='${prefix}/etc'
757 sharedstatedir
='${prefix}/com'
758 localstatedir
='${prefix}/var'
759 includedir
='${prefix}/include'
760 oldincludedir
='/usr/include'
761 docdir
='${datarootdir}/doc/${PACKAGE}'
762 infodir
='${datarootdir}/info'
767 libdir
='${exec_prefix}/lib'
768 localedir
='${datarootdir}/locale'
769 mandir
='${datarootdir}/man'
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
777 eval $ac_prev=\
$ac_option
783 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 # Accept the important Cygnus configure options, so we can diagnose typos.
789 case $ac_dashdash$ac_option in
793 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
795 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
798 -build |
--build |
--buil |
--bui |
--bu)
799 ac_prev
=build_alias
;;
800 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
801 build_alias
=$ac_optarg ;;
803 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
804 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
805 ac_prev
=cache_file
;;
806 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
807 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
808 cache_file
=$ac_optarg ;;
811 cache_file
=config.cache
;;
813 -datadir |
--datadir |
--datadi |
--datad)
815 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
816 datadir
=$ac_optarg ;;
818 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
819 |
--dataroo |
--dataro |
--datar)
820 ac_prev
=datarootdir
;;
821 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
822 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
823 datarootdir
=$ac_optarg ;;
825 -disable-* |
--disable-*)
826 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
829 as_fn_error
"invalid feature name: $ac_useropt"
830 ac_useropt_orig
=$ac_useropt
831 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
836 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep
=', ';;
839 eval enable_
$ac_useropt=no
;;
841 -docdir |
--docdir |
--docdi |
--doc |
--do)
843 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
846 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
848 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
851 -enable-* |
--enable-*)
852 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
855 as_fn_error
"invalid feature name: $ac_useropt"
856 ac_useropt_orig
=$ac_useropt
857 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
862 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep
=', ';;
865 eval enable_
$ac_useropt=\
$ac_optarg ;;
867 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
868 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
869 |
--exec |
--exe |
--ex)
870 ac_prev
=exec_prefix
;;
871 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
872 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
873 |
--exec=* |
--exe=* |
--ex=*)
874 exec_prefix
=$ac_optarg ;;
876 -gas |
--gas |
--ga |
--g)
877 # Obsolete; use --with-gas.
880 -help |
--help |
--hel |
--he |
-h)
882 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
883 ac_init_help
=recursive
;;
884 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
885 ac_init_help
=short
;;
887 -host |
--host |
--hos |
--ho)
888 ac_prev
=host_alias
;;
889 -host=* |
--host=* |
--hos=* |
--ho=*)
890 host_alias
=$ac_optarg ;;
892 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
894 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
896 htmldir
=$ac_optarg ;;
898 -includedir |
--includedir |
--includedi |
--included |
--include \
899 |
--includ |
--inclu |
--incl |
--inc)
900 ac_prev
=includedir
;;
901 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
902 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
903 includedir
=$ac_optarg ;;
905 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
907 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
908 infodir
=$ac_optarg ;;
910 -libdir |
--libdir |
--libdi |
--libd)
912 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
915 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
916 |
--libexe |
--libex |
--libe)
917 ac_prev
=libexecdir
;;
918 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
919 |
--libexe=* |
--libex=* |
--libe=*)
920 libexecdir
=$ac_optarg ;;
922 -localedir |
--localedir |
--localedi |
--localed |
--locale)
924 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
925 localedir
=$ac_optarg ;;
927 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
928 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
929 ac_prev
=localstatedir
;;
930 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
931 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
932 localstatedir
=$ac_optarg ;;
934 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
936 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
940 # Obsolete; use --without-fp.
943 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
944 |
--no-cr |
--no-c |
-n)
947 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
948 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
951 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
952 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
953 |
--oldin |
--oldi |
--old |
--ol |
--o)
954 ac_prev
=oldincludedir
;;
955 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
956 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
957 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
958 oldincludedir
=$ac_optarg ;;
960 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
962 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
965 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
966 |
--program-pre |
--program-pr |
--program-p)
967 ac_prev
=program_prefix
;;
968 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
969 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
970 program_prefix
=$ac_optarg ;;
972 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
973 |
--program-suf |
--program-su |
--program-s)
974 ac_prev
=program_suffix
;;
975 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
976 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
977 program_suffix
=$ac_optarg ;;
979 -program-transform-name |
--program-transform-name \
980 |
--program-transform-nam |
--program-transform-na \
981 |
--program-transform-n |
--program-transform- \
982 |
--program-transform |
--program-transfor \
983 |
--program-transfo |
--program-transf \
984 |
--program-trans |
--program-tran \
985 |
--progr-tra |
--program-tr |
--program-t)
986 ac_prev
=program_transform_name
;;
987 -program-transform-name=* |
--program-transform-name=* \
988 |
--program-transform-nam=* |
--program-transform-na=* \
989 |
--program-transform-n=* |
--program-transform-=* \
990 |
--program-transform=* |
--program-transfor=* \
991 |
--program-transfo=* |
--program-transf=* \
992 |
--program-trans=* |
--program-tran=* \
993 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
994 program_transform_name
=$ac_optarg ;;
996 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
998 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1001 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1003 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1006 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1007 |
-silent |
--silent |
--silen |
--sile |
--sil)
1010 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1012 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1014 sbindir
=$ac_optarg ;;
1016 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1017 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1018 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1020 ac_prev
=sharedstatedir
;;
1021 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1022 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1023 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1025 sharedstatedir
=$ac_optarg ;;
1027 -site |
--site |
--sit)
1029 -site=* |
--site=* |
--sit=*)
1032 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1034 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1035 srcdir
=$ac_optarg ;;
1037 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1038 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1039 ac_prev
=sysconfdir
;;
1040 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1041 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1042 sysconfdir
=$ac_optarg ;;
1044 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1045 ac_prev
=target_alias
;;
1046 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1047 target_alias
=$ac_optarg ;;
1049 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1052 -version |
--version |
--versio |
--versi |
--vers |
-V)
1053 ac_init_version
=: ;;
1056 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1059 as_fn_error
"invalid package name: $ac_useropt"
1060 ac_useropt_orig
=$ac_useropt
1061 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1066 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep
=', ';;
1069 eval with_
$ac_useropt=\
$ac_optarg ;;
1071 -without-* |
--without-*)
1072 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1075 as_fn_error
"invalid package name: $ac_useropt"
1076 ac_useropt_orig
=$ac_useropt
1077 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1082 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep
=', ';;
1085 eval with_
$ac_useropt=no
;;
1088 # Obsolete; use --with-x.
1091 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1092 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1093 ac_prev
=x_includes
;;
1094 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1095 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1096 x_includes
=$ac_optarg ;;
1098 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1099 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1100 ac_prev
=x_libraries
;;
1101 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1102 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1103 x_libraries
=$ac_optarg ;;
1105 -*) as_fn_error
"unrecognized option: \`$ac_option'
1106 Try \`$0 --help' for more information."
1110 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1114 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1116 eval $ac_envvar=\
$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1130 if test -n "$ac_prev"; then
1131 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error
"missing argument to $ac_option"
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1138 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 # Check all directory arguments for consistency.
1144 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
1149 eval ac_val
=\$
$ac_var
1150 # Remove trailing slashes.
1153 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\
$ac_val;;
1156 # Be sure to have absolute directory names.
1158 [\\/$
]* | ?
:[\\/]* ) continue;;
1159 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1161 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1164 # There might be people who depend on the old broken behavior: `$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1169 target
=$target_alias
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x
; then
1173 if test "x$build_alias" = x
; then
1174 cross_compiling
=maybe
1175 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1176 If a cross compiler is detected then cross compile mode will be used." >&2
1177 elif test "x$build_alias" != "x$host_alias"; then
1183 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1185 test "$silent" = yes && exec 6>/dev
/null
1188 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1189 ac_ls_di
=`ls -di .` &&
1190 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1191 as_fn_error
"working directory cannot be determined"
1192 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1193 as_fn_error
"pwd does not report name of working directory"
1196 # Find the source files, if location was not specified.
1197 if test -z "$srcdir"; then
1198 ac_srcdir_defaulted
=yes
1199 # Try the directory containing this script, then the parent directory.
1200 ac_confdir
=`$as_dirname -- "$as_myself" ||
1201 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202 X"$as_myself" : 'X\(//\)[^/]' \| \
1203 X"$as_myself" : 'X\(//\)$' \| \
1204 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1205 $as_echo X"$as_myself" |
1206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1228 ac_srcdir_defaulted
=no
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1232 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1234 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1238 # When building in place, set srcdir=.
1239 if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 # Remove unnecessary trailing slashes from srcdir.
1243 # Double slashes in file names in object file debugging info
1244 # mess up M-x gdb in Emacs.
1246 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 for ac_var
in $ac_precious_vars; do
1249 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1250 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1251 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1252 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1256 # Report the --help message.
1258 if test "$ac_init_help" = "long"; then
1259 # Omit some internal or obsolete options to make the list less imposing.
1260 # This message is too long to be a string in the A/UX 3.1 sh.
1262 \`configure' configures this package to adapt to many kinds of systems.
1264 Usage: $0 [OPTION]... [VAR=VALUE]...
1266 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1267 VAR=VALUE. See below for descriptions of some of the useful variables.
1269 Defaults for the options are specified in brackets.
1272 -h, --help display this help and exit
1273 --help=short display options specific to this package
1274 --help=recursive display the short help of all the included packages
1275 -V, --version display version information and exit
1276 -q, --quiet, --silent do not print \`checking...' messages
1277 --cache-file=FILE cache test results in FILE [disabled]
1278 -C, --config-cache alias for \`--cache-file=config.cache'
1279 -n, --no-create do not create output files
1280 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1282 Installation directories:
1283 --prefix=PREFIX install architecture-independent files in PREFIX
1284 [$ac_default_prefix]
1285 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1288 By default, \`make install' will install all the files in
1289 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1290 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1291 for instance \`--prefix=\$HOME'.
1293 For better control, use the options below.
1295 Fine tuning of the installation directories:
1296 --bindir=DIR user executables [EPREFIX/bin]
1297 --sbindir=DIR system admin executables [EPREFIX/sbin]
1298 --libexecdir=DIR program executables [EPREFIX/libexec]
1299 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1300 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1301 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1302 --libdir=DIR object code libraries [EPREFIX/lib]
1303 --includedir=DIR C header files [PREFIX/include]
1304 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1305 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1306 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1307 --infodir=DIR info documentation [DATAROOTDIR/info]
1308 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1309 --mandir=DIR man documentation [DATAROOTDIR/man]
1310 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1311 --htmldir=DIR html documentation [DOCDIR]
1312 --dvidir=DIR dvi documentation [DOCDIR]
1313 --pdfdir=DIR pdf documentation [DOCDIR]
1314 --psdir=DIR ps documentation [DOCDIR]
1320 --program-prefix=PREFIX prepend PREFIX to installed program names
1321 --program-suffix=SUFFIX append SUFFIX to installed program names
1322 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1325 --build=BUILD configure
for building on BUILD
[guessed
]
1326 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1327 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1331 if test -n "$ac_init_help"; then
1336 --disable-option-checking ignore unrecognized
--enable/--with options
1337 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1338 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1339 --enable-maintainer-mode enable make rules and dependencies not useful
1340 (and sometimes confusing
) to the casual installer
1341 --disable-largefile omit support
for large files
1342 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1343 --enable-libmcheck Try linking with
-lmcheck if available
1344 --enable-werror treat compile warnings as errors
1345 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1346 --enable-gdb-build-warnings
1347 enable GDB specific build-time compiler warnings
if
1349 --enable-inprocess-agent
1353 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1354 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1355 --with-ust=PATH Specify prefix directory
for the installed UST package
1356 Equivalent to
--with-ust-include=PATH
/include
1357 plus
--with-ust-lib=PATH
/lib
1358 --with-ust-include=PATH Specify directory
for installed UST include files
1359 --with-ust-lib=PATH Specify the directory
for the installed UST library
1360 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1361 --with-bugurl=URL Direct users to URL to report a bug
1362 --with-libthread-db=PATH
1363 use given libthread_db directly
1365 Some influential environment variables
:
1366 CC C compiler
command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1369 nonstandard directory
<lib dir
>
1370 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1371 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1372 you have headers
in a nonstandard directory
<include dir
>
1373 CXX C
++ compiler
command
1374 CXXFLAGS C
++ compiler flags
1377 Use these variables to override the choices made by
`configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 Report bugs to the package provider.
1385 if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" ||
1389 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1410 .) # We are building in place.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1434 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1444 generated by GNU Autoconf 2.64
1446 Copyright (C) 2009 Free Software Foundation, Inc.
1447 This configure script is free software; the Free Software Foundation
1448 gives unlimited permission to copy, distribute and modify it.
1453 ## ------------------------ ##
1454 ## Autoconf initialization. ##
1455 ## ------------------------ ##
1457 # ac_fn_c_try_compile LINENO
1458 # --------------------------
1459 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1460 ac_fn_c_try_compile ()
1462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1463 rm -f conftest.$ac_objext
1464 if { { ac_try="$ac_compile"
1466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1467 *) ac_try_echo
=$ac_try;;
1469 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1470 $as_echo "$ac_try_echo"; } >&5
1471 (eval "$ac_compile") 2>conftest.err
1473 if test -s conftest.err
; then
1474 grep -v '^ *+' conftest.err
>conftest.er1
1475 cat conftest.er1
>&5
1476 mv -f conftest.er1 conftest.err
1478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1479 test $ac_status = 0; } && {
1480 test -z "$ac_c_werror_flag" ||
1481 test ! -s conftest.err
1482 } && test -s conftest.
$ac_objext; then :
1485 $as_echo "$as_me: failed program was:" >&5
1486 sed 's/^/| /' conftest.
$ac_ext >&5
1490 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1493 } # ac_fn_c_try_compile
1495 # ac_fn_cxx_try_compile LINENO
1496 # ----------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_cxx_try_compile
()
1500 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1501 rm -f conftest.
$ac_objext
1502 if { { ac_try
="$ac_compile"
1504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_cxx_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1531 } # ac_fn_cxx_try_compile
1533 # ac_fn_c_try_cpp LINENO
1534 # ----------------------
1535 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 if { { ac_try="$ac_cpp conftest.$ac_ext"
1541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1542 *) ac_try_echo
=$ac_try;;
1544 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1548 if test -s conftest.err
; then
1549 grep -v '^ *+' conftest.err
>conftest.er1
1550 cat conftest.er1
>&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } >/dev
/null
&& {
1555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.
$ac_ext >&5
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1570 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1571 # -------------------------------------------------------
1572 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1573 # the include files in INCLUDES and setting the cache variable VAR
1575 ac_fn_c_check_header_mongrel
()
1577 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1578 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580 $as_echo_n "checking for $2... " >&6; }
1581 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1582 $as_echo_n "(cached) " >&6
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586 $as_echo "$ac_res" >&6; }
1588 # Is the header compilable?
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1590 $as_echo_n "checking $2 usability... " >&6; }
1591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h. */
1596 if ac_fn_c_try_compile
"$LINENO"; then :
1597 ac_header_compiler
=yes
1599 ac_header_compiler
=no
1601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1603 $as_echo "$ac_header_compiler" >&6; }
1605 # Is the header present?
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1607 $as_echo_n "checking $2 presence... " >&6; }
1608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1612 if ac_fn_c_try_cpp
"$LINENO"; then :
1613 ac_header_preproc
=yes
1615 ac_header_preproc
=no
1617 rm -f conftest.err conftest.
$ac_ext
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1619 $as_echo "$ac_header_preproc" >&6; }
1621 # So? What about this header?
1622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1625 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1627 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1631 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1633 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1635 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1637 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1645 $as_echo_n "(cached) " >&6
1647 eval "$3=\$ac_header_compiler"
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1655 } # ac_fn_c_check_header_mongrel
1657 # ac_fn_c_try_run LINENO
1658 # ----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1660 # that executables *can* be run.
1663 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1664 if { { ac_try
="$ac_link"
1666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>&5
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1675 { { case "(($ac_try" in
1676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1677 *) ac_try_echo
=$ac_try;;
1679 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_try") 2>&5
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; }; }; then :
1687 $as_echo "$as_me: program exited with status $ac_status" >&5
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.
$ac_ext >&5
1691 ac_retval
=$ac_status
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile
()
1705 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1709 $as_echo_n "(cached) " >&6
1711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1716 if ac_fn_c_try_compile
"$LINENO"; then :
1721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1728 } # ac_fn_c_check_header_compile
1730 # ac_fn_c_try_link LINENO
1731 # -----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded.
1735 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1736 rm -f conftest.
$ac_objext conftest
$ac_exeext
1737 if { { ac_try
="$ac_link"
1739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>conftest.err
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest$ac_exeext && {
1756 test "$cross_compiling" = yes ||
1757 $as_test_x conftest$ac_exeext
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768 # interfere with the next link command; also delete a directory that is
1769 # left behind by Apple's compiler. We do this before executing the actions.
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 } # ac_fn_c_try_link
1776 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1777 # -------------------------------------------
1778 # Tests whether TYPE exists after having included INCLUDES, setting cache
1779 # variable VAR accordingly.
1780 ac_fn_c_check_type ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"; then :
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 } # ac_fn_c_check_type
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845 #define $2 innocuous_$2
1847 /* System header to define __stub macros and hopefully few prototypes,
1848 which can conflict with char $2 (); below.
1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850 <limits.h> exists even on freestanding compilers. */
1853 # include <limits.h>
1855 # include <assert.h>
1860 /* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined __stub_$2 || defined __stub___$2
1882 if ac_fn_c_try_link "$LINENO"; then :
1887 rm -f core conftest.err conftest.$ac_objext \
1888 conftest$ac_exeext conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895 } # ac_fn_c_check_func
1897 # ac_fn_c_check_decl LINENO SYMBOL VAR
1898 # ------------------------------------
1899 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1900 ac_fn_c_check_decl ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1904 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1906 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1907 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1916 #ifndef $as_decl_name
1918 (void) $as_decl_use;
1920 (void) $as_decl_name;
1928 if ac_fn_c_try_compile "$LINENO"; then :
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940 } # ac_fn_c_check_decl
1942 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
1943 # --------------------------------------
1944 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1945 ac_fn_cxx_check_decl ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1949 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1951 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1952 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1953 $as_echo_n "(cached) " >&6
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1961 #ifndef $as_decl_name
1963 (void) $as_decl_use;
1965 (void) $as_decl_name;
1973 if ac_fn_cxx_try_compile "$LINENO"; then :
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 } # ac_fn_cxx_check_decl
1987 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1988 # --------------------------------------------
1989 # Tries to find the compile-time value of EXPR in a program that includes
1990 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1992 ac_fn_c_compute_int ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if test "$cross_compiling" = yes; then
1996 # Depending upon the size, compute the lo and hi bounds.
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2003 static int test_array [1 - 2 * !(($2) >= 0)];
2010 if ac_fn_c_try_compile "$LINENO"; then :
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_hi=$ac_mid; break
2029 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2030 if test $ac_lo -le $ac_mid; then
2034 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2045 static int test_array [1 - 2 * !(($2) < 0)];
2052 if ac_fn_c_try_compile "$LINENO"; then :
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_lo=$ac_mid; break
2071 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2072 if test $ac_mid -le $ac_hi; then
2076 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 # Binary search between lo and hi bounds.
2087 while test "x$ac_lo" != "x$ac_hi"; do
2088 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2102 if ac_fn_c_try_compile "$LINENO"; then :
2105 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2117 static long int longval () { return $2; }
2118 static unsigned long int ulongval () { return $2; }
2125 FILE *f = fopen ("conftest.val", "w");
2130 long int i = longval ();
2133 fprintf (f, "%ld", i);
2137 unsigned long int i = ulongval ();
2140 fprintf (f, "%lu", i);
2142 /* Do not output a trailing newline, as this causes \r\n confusion
2143 on some platforms. */
2144 return ferror (f) || fclose (f) != 0;
2150 if ac_fn_c_try_run "$LINENO"; then :
2151 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2156 conftest.$ac_objext conftest.beam conftest.$ac_ext
2160 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2163 } # ac_fn_c_compute_int
2165 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2166 # ----------------------------------------------------
2167 # Tries to find if the field MEMBER exists in type AGGR, after including
2168 # INCLUDES, setting cache variable VAR accordingly.
2169 ac_fn_c_check_member ()
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2173 $as_echo_n "checking for $2.$3... " >&6; }
2174 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2175 $as_echo_n "(cached) " >&6
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2190 if ac_fn_c_try_compile "$LINENO"; then :
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2200 if (sizeof ac_aggr.$3)
2206 if ac_fn_c_try_compile "$LINENO"; then :
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 } # ac_fn_c_check_member
2221 cat >config.log <<_ACEOF
2222 This file contains any messages produced by compilers while
2223 running configure, to aid debugging if configure makes a mistake.
2225 It was created by $as_me, which was
2226 generated by GNU Autoconf 2.64. Invocation command line was
2238 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2239 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2240 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2241 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2242 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2244 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2245 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2247 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2248 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2249 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2250 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2251 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2252 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2253 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 $as_echo "PATH: $as_dir"
2278 # Keep a trace of the command line.
2279 # Strip out --no-create and --no-recursion so they do not pile up.
2280 # Strip out --silent because we don't want to record it for future runs.
2281 # Also quote any args containing shell meta-characters.
2282 # Make two passes to allow for proper duplicate-argument suppression.
2286 ac_must_keep_next=false
2292 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2294 | -silent | --silent | --silen | --sile | --sil)
2297 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2300 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2302 as_fn_append ac_configure_args1 " '$ac_arg'"
2303 if test $ac_must_keep_next = true; then
2304 ac_must_keep_next=false # Got value, back to normal.
2307 *=* | --config-cache | -C | -disable-* | --disable-* \
2308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2310 | -with-* | --with-* | -without-* | --without-* | --x)
2311 case "$ac_configure_args0 " in
2312 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2315 -* ) ac_must_keep_next=true ;;
2318 as_fn_append ac_configure_args " '$ac_arg'"
2323 { ac_configure_args0=; unset ac_configure_args0;}
2324 { ac_configure_args1=; unset ac_configure_args1;}
2326 # When interrupted or exit'd, cleanup temporary files, and complete
2327 # config.log. We remove comments because anyway the quotes in there
2328 # would cause problems or look ugly.
2329 # WARNING: Use '\'' to represent an apostrophe within the trap.
2330 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2331 trap 'exit_status=$?
2332 # Save into config.log some information that might help in debugging.
2337 ## ---------------- ##
2338 ## Cache variables. ##
2339 ## ---------------- ##
2342 # The following way of writing the cache mishandles newlines in values,
2344 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2345 eval ac_val=\$$ac_var
2349 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2350 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2353 _ | IFS | as_nl) ;; #(
2354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2355 *) { eval $ac_var=; unset $ac_var;} ;;
2360 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2361 *${as_nl}ac_space=\ *)
2363 "s/'\''/'\''\\\\'\'''\''/g;
2364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2367 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2375 ## ----------------- ##
2376 ## Output variables. ##
2377 ## ----------------- ##
2380 for ac_var in $ac_subst_vars
2382 eval ac_val=\$$ac_var
2384 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2386 $as_echo "$ac_var='\''$ac_val'\''"
2390 if test -n "$ac_subst_files"; then
2392 ## ------------------- ##
2393 ## File substitutions. ##
2394 ## ------------------- ##
2397 for ac_var in $ac_subst_files
2399 eval ac_val=\$$ac_var
2401 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2403 $as_echo "$ac_var='\''$ac_val'\''"
2408 if test -s confdefs.h; then
2418 test "$ac_signal" != 0 &&
2419 $as_echo "$as_me: caught signal $ac_signal"
2420 $as_echo "$as_me: exit $exit_status"
2422 rm -f core *.core core.conftest.* &&
2423 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2426 for ac_signal in 1 2 13 15; do
2427 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2431 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2432 rm -f -r conftest* confdefs.h
2434 $as_echo "/* confdefs.h */" > confdefs.h
2436 # Predefined preprocessor variables.
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_NAME "$PACKAGE_NAME"
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_STRING "$PACKAGE_STRING"
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_URL "$PACKAGE_URL"
2463 # Let the site file select an alternate cache file if it wants to.
2464 # Prefer an explicitly selected file to automatically selected ones.
2467 if test -n "$CONFIG_SITE"; then
2468 ac_site_file1=$CONFIG_SITE
2469 elif test "x$prefix" != xNONE; then
2470 ac_site_file1=$prefix/share/config.site
2471 ac_site_file2=$prefix/etc/config.site
2473 ac_site_file1=$ac_default_prefix/share/config.site
2474 ac_site_file2=$ac_default_prefix/etc/config.site
2476 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2478 test "x$ac_site_file" = xNONE && continue
2479 if test -r "$ac_site_file"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2481 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2482 sed 's/^/| /' "$ac_site_file" >&5
2487 if test -r "$cache_file"; then
2488 # Some versions of bash will fail to source /dev/null (special
2489 # files actually), so we avoid doing that.
2490 if test -f "$cache_file"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2492 $as_echo "$as_me: loading cache $cache_file" >&6;}
2494 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2495 *) . "./$cache_file";;
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2500 $as_echo "$as_me: creating cache $cache_file" >&6;}
2504 # Check that the precious variables saved in the cache have kept the same
2506 ac_cache_corrupted=false
2507 for ac_var in $ac_precious_vars; do
2508 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2509 eval ac_new_set=\$ac_env_${ac_var}_set
2510 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2511 eval ac_new_val=\$ac_env_${ac_var}_value
2512 case $ac_old_set,$ac_new_set in
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2515 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2516 ac_cache_corrupted=: ;;
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2519 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2520 ac_cache_corrupted=: ;;
2523 if test "x$ac_old_val" != "x$ac_new_val"; then
2524 # differences in whitespace do not lead to failure.
2525 ac_old_val_w=`echo x
$ac_old_val`
2526 ac_new_val_w=`echo x
$ac_new_val`
2527 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2529 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2530 ac_cache_corrupted=:
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2533 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2534 eval $ac_var=\$ac_old_val
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2537 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2539 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2542 # Pass precious variables to config.status.
2543 if test "$ac_new_set" = set; then
2545 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2546 *) ac_arg=$ac_var=$ac_new_val ;;
2548 case " $ac_configure_args " in
2549 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2550 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2554 if $ac_cache_corrupted; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2558 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2559 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2561 ## -------------------- ##
2562 ## Main body of script. ##
2563 ## -------------------- ##
2566 ac_cpp='$CPP $CPPFLAGS'
2567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575 ac_config_headers="$ac_config_headers config.h:config.in"
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2580 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2581 # Check whether --enable-maintainer-mode was given.
2582 if test "${enable_maintainer_mode+set}" = set; then :
2583 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2585 USE_MAINTAINER_MODE=no
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2589 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2590 if test $USE_MAINTAINER_MODE = yes; then
2591 MAINTAINER_MODE_TRUE=
2592 MAINTAINER_MODE_FALSE='#'
2594 MAINTAINER_MODE_TRUE='#'
2595 MAINTAINER_MODE_FALSE=
2598 MAINT=$MAINTAINER_MODE_TRUE
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_prog_CC+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 if test -n "$CC"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2638 $as_echo "$CC" >&6; }
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2646 if test -z "$ac_cv_prog_CC"; then
2648 # Extract the first word of "gcc", so it can be a program name with args.
2649 set dummy gcc; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$ac_ct_CC"; then
2656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_ac_ct_CC="gcc"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676 if test -n "$ac_ct_CC"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2678 $as_echo "$ac_ct_CC" >&6; }
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2684 if test "x$ac_ct_CC" = x; then
2687 case $cross_compiling:$ac_tool_warned in
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2691 ac_tool_warned=yes ;;
2699 if test -z "$CC"; then
2700 if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2702 set dummy ${ac_tool_prefix}cc; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_CC+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_CC="${ac_tool_prefix}cc"
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 if test -n "$CC"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2731 $as_echo "$CC" >&6; }
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2740 if test -z "$CC"; then
2741 # Extract the first word of "cc", so it can be a program name with args.
2742 set dummy cc; ac_word=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_CC+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2760 ac_prog_rejected=yes
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 if test $ac_prog_rejected = yes; then
2772 # We found a bogon in the path, so make sure we never use it.
2773 set dummy $ac_cv_prog_CC
2775 if test $# != 0; then
2776 # We chose a different compiler from the bogus one.
2777 # However, it has the same basename, so the bogon will be chosen
2778 # first if we set CC to just the basename; use the full file name.
2780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2786 if test -n "$CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788 $as_echo "$CC" >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2796 if test -z "$CC"; then
2797 if test -n "$ac_tool_prefix"; then
2798 for ac_prog in cl.exe
2800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if test "${ac_cv_prog_CC+set}" = set; then :
2805 $as_echo_n "(cached) " >&6
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 if test -n "$CC"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830 $as_echo "$CC" >&6; }
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2837 test -n "$CC" && break
2840 if test -z "$CC"; then
2842 for ac_prog in cl.exe
2844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy $ac_prog; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2849 $as_echo_n "(cached) " >&6
2851 if test -n "$ac_ct_CC"; then
2852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 ac_cv_prog_ac_ct_CC="$ac_prog"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872 if test -n "$ac_ct_CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2874 $as_echo "$ac_ct_CC" >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2881 test -n "$ac_ct_CC" && break
2884 if test "x$ac_ct_CC" = x; then
2887 case $cross_compiling:$ac_tool_warned in
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2891 ac_tool_warned=yes ;;
2900 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2902 as_fn_error "no acceptable C compiler found
in \
$PATH
2903 See \
`config.log' for more details." "$LINENO" 5; }
2905 # Provide some information about the compiler.
2906 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2909 for ac_option in --version -v -V -qversion; do
2910 { { ac_try="$ac_compiler $ac_option >&5"
2912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2913 *) ac_try_echo
=$ac_try;;
2915 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2916 $as_echo "$ac_try_echo"; } >&5
2917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2919 if test -s conftest.err
; then
2921 ... rest of stderr output deleted ...
2922 10q' conftest.err
>conftest.er1
2923 cat conftest.er1
>&5
2924 rm -f conftest.er1 conftest.err
2926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2927 test $ac_status = 0; }
2930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2941 ac_clean_files_save
=$ac_clean_files
2942 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2943 # Try to create an executable without -o first, disregard a.out.
2944 # It will help us diagnose broken compilers, and finding out an intuition
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2947 $as_echo_n "checking for C compiler default output file name... " >&6; }
2948 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2950 # The possible output files:
2951 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2954 for ac_file
in $ac_files
2957 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2958 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2963 if { { ac_try
="$ac_link_default"
2965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_link_default") 2>&5
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2975 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2976 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2977 # so that the user can short-circuit this test for compilers unknown to
2979 for ac_file in $ac_files ''
2981 test -f "$ac_file" || continue
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2986 # We found the default executable, but exeext='' is most
2990 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994 # We set ac_cv_exeext here because the later test for it is not
2995 # safe: cross compilers may not add the suffix if given an `-o'
2996 # argument, so we may need to know it at that point already.
2997 # Even if this section looks crufty: it has the advantage of
3004 test "$ac_cv_exeext" = no && ac_cv_exeext=
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3010 $as_echo "$ac_file" >&6; }
3011 if test -z "$ac_file"; then :
3012 $as_echo "$as_me: failed program was:" >&5
3013 sed 's
/^
/|
/' conftest.$ac_ext >&5
3015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3017 { as_fn_set_status 77
3018 as_fn_error "C compiler cannot create executables
3019 See \`config.log
' for more details." "$LINENO" 5; }; }
3021 ac_exeext=$ac_cv_exeext
3023 # Check that the compiler produces executables we can run. If not, either
3024 # the compiler is broken, or we cross compile.
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3026 $as_echo_n "checking whether the C compiler works... " >&6; }
3027 # If not cross compiling, check that we can run a simple program.
3028 if test "$cross_compiling" != yes; then
3029 if { ac_try='.
/$ac_file'
3030 { { case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035 $as_echo "$ac_try_echo"; } >&5
3036 (eval "$ac_try") 2>&5
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }; }; then
3042 if test "$cross_compiling" = maybe; then
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3047 as_fn_error "cannot run C compiled programs.
3048 If you meant to cross compile, use \`--host'.
3049 See \`config.log' for more details.
" "$LINENO" 5; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3054 $as_echo "yes" >&6; }
3056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3057 ac_clean_files=$ac_clean_files_save
3058 # Check that the compiler produces executables we can run. If not, either
3059 # the compiler is broken, or we cross compile.
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3061 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3063 $as_echo "$cross_compiling" >&6; }
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3066 $as_echo_n "checking
for suffix of executables...
" >&6; }
3067 if { { ac_try="$ac_link"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 $as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_link") 2>&5
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3077 test $ac_status = 0; }; then :
3078 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3079 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3080 # work properly (i.e., refer to `conftest.exe'), while it won't with
3082 for ac_file in conftest.exe conftest conftest.*; do
3083 test -f "$ac_file" || continue
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 as_fn_error "cannot compute suffix of executables: cannot compile and link
3095 See \`config.log' for more details.
" "$LINENO" 5; }
3097 rm -f conftest$ac_cv_exeext
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3099 $as_echo "$ac_cv_exeext" >&6; }
3101 rm -f conftest.$ac_ext
3102 EXEEXT=$ac_cv_exeext
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3105 $as_echo_n "checking
for suffix of object files...
" >&6; }
3106 if test "${ac_cv_objext+set}" = set; then :
3107 $as_echo_n "(cached
) " >&6
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3120 rm -f conftest.o conftest.obj
3121 if { { ac_try="$ac_compile"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_compile") 2>&5
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3131 test $ac_status = 0; }; then :
3132 for ac_file in conftest.o conftest.obj conftest.*; do
3133 test -f "$ac_file" || continue;
3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3141 $as_echo "$as_me: failed program was
:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error "cannot compute suffix of object files: cannot compile
3147 See \`config.log' for more details.
" "$LINENO" 5; }
3149 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3152 $as_echo "$ac_cv_objext" >&6; }
3153 OBJEXT=$ac_cv_objext
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3156 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3157 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3158 $as_echo_n "(cached
) " >&6
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3174 if ac_fn_c_try_compile "$LINENO"; then :
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3184 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3185 if test $ac_compiler_gnu = yes; then
3190 ac_test_CFLAGS=${CFLAGS+set}
3191 ac_save_CFLAGS=$CFLAGS
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3193 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3194 if test "${ac_cv_prog_cc_g+set}" = set; then :
3195 $as_echo_n "(cached
) " >&6
3197 ac_save_c_werror_flag=$ac_c_werror_flag
3198 ac_c_werror_flag=yes
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3212 if ac_fn_c_try_compile "$LINENO"; then :
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3227 if ac_fn_c_try_compile "$LINENO"; then :
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3243 if ac_fn_c_try_compile "$LINENO"; then :
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_c_werror_flag=$ac_save_c_werror_flag
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3254 $as_echo "$ac_cv_prog_cc_g" >&6; }
3255 if test "$ac_test_CFLAGS" = set; then
3256 CFLAGS=$ac_save_CFLAGS
3257 elif test $ac_cv_prog_cc_g = yes; then
3258 if test "$GCC" = yes; then
3264 if test "$GCC" = yes; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3271 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3272 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3273 $as_echo_n "(cached
) " >&6
3275 ac_cv_prog_cc_c89=no
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3281 #include <sys/types.h>
3282 #include <sys/stat.h>
3283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3284 struct buf { int x; };
3285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3286 static char *e (p, i)
3292 static char *f (char * (*g) (char **, int), char **p, ...)
3297 s = g (p, va_arg (v,int));
3302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3303 function prototypes and stuff, but not '\xHH' hex character constants.
3304 These don't provoke an error unfortunately, instead are silently treated
3305 as 'x'. The following induces an error, until -std is added to get
3306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3307 array size at least. It's necessary to write '\x00'==0 to get something
3308 that's true only with -std. */
3309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3312 inside strings and character constants. */
3314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3316 int test (int i, double x);
3317 struct s1 {int (*f) (int a);};
3318 struct s2 {int (*f) (double a);};
3319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3333 CC="$ac_save_CC $ac_arg"
3334 if ac_fn_c_try_compile "$LINENO"; then :
3335 ac_cv_prog_cc_c89=$ac_arg
3337 rm -f core conftest.err conftest.$ac_objext
3338 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3340 rm -f conftest.$ac_ext
3345 case "x
$ac_cv_prog_cc_c89" in
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3348 $as_echo "none needed
" >&6; } ;;
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3351 $as_echo "unsupported
" >&6; } ;;
3353 CC="$CC $ac_cv_prog_cc_c89"
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3355 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3357 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 ac_cpp='$CXXCPP $CPPFLAGS'
3369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3372 if test -z "$CXX"; then
3373 if test -n "$CCC"; then
3376 if test -n "$ac_tool_prefix"; then
3377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3382 $as_echo_n "checking
for $ac_word...
" >&6; }
3383 if test "${ac_cv_prog_CXX+set}" = set; then :
3384 $as_echo_n "(cached
) " >&6
3386 if test -n "$CXX"; then
3387 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3407 if test -n "$CXX"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
3409 $as_echo "$CXX" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3412 $as_echo "no
" >&6; }
3416 test -n "$CXX" && break
3419 if test -z "$CXX"; then
3421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3423 # Extract the first word of "$ac_prog", so it can be a program name with args.
3424 set dummy $ac_prog; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3426 $as_echo_n "checking
for $ac_word...
" >&6; }
3427 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3428 $as_echo_n "(cached
) " >&6
3430 if test -n "$ac_ct_CXX"; then
3431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440 ac_cv_prog_ac_ct_CXX="$ac_prog"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3451 if test -n "$ac_ct_CXX"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
3453 $as_echo "$ac_ct_CXX" >&6; }
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3456 $as_echo "no
" >&6; }
3460 test -n "$ac_ct_CXX" && break
3463 if test "x
$ac_ct_CXX" = x; then
3466 case $cross_compiling:$ac_tool_warned in
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3469 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3470 ac_tool_warned=yes ;;
3478 # Provide some information about the compiler.
3479 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
3482 for ac_option in --version -v -V -qversion; do
3483 { { ac_try="$ac_compiler $ac_option >&5"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3492 if test -s conftest.err; then
3494 ... rest of stderr output deleted ...
3495 10q' conftest.err >conftest.er1
3496 cat conftest.er1 >&5
3497 rm -f conftest.er1 conftest.err
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3500 test $ac_status = 0; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
3504 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
3505 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3506 $as_echo_n "(cached
) " >&6
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3522 if ac_fn_cxx_try_compile "$LINENO"; then :
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
3532 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3533 if test $ac_compiler_gnu = yes; then
3538 ac_test_CXXFLAGS=${CXXFLAGS+set}
3539 ac_save_CXXFLAGS=$CXXFLAGS
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
3541 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
3542 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3543 $as_echo_n "(cached
) " >&6
3545 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3546 ac_cxx_werror_flag=yes
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3560 if ac_fn_cxx_try_compile "$LINENO"; then :
3561 ac_cv_prog_cxx_g=yes
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3575 if ac_fn_cxx_try_compile "$LINENO"; then :
3578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3591 if ac_fn_cxx_try_compile "$LINENO"; then :
3592 ac_cv_prog_cxx_g=yes
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3602 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3603 if test "$ac_test_CXXFLAGS" = set; then
3604 CXXFLAGS=$ac_save_CXXFLAGS
3605 elif test $ac_cv_prog_cxx_g = yes; then
3606 if test "$GXX" = yes; then
3612 if test "$GXX" = yes; then
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3631 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3632 # On Suns, sometimes $CPP names a directory.
3633 if test -n "$CPP" && test -d "$CPP"; then
3636 if test -z "$CPP"; then
3637 if test "${ac_cv_prog_CPP+set}" = set; then :
3638 $as_echo_n "(cached
) " >&6
3640 # Double quotes because CPP needs to be expanded
3641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3644 for ac_c_preproc_warn_flag in '' yes
3646 # Use a header file that comes with gcc, so configuring glibc
3647 # with a fresh cross-compiler works.
3648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3649 # <limits.h> exists even on freestanding compilers.
3650 # On the NeXT, cc -E runs the code through the compiler's parser,
3651 # not just through cpp. "Syntax error
" is here to catch this case.
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3655 # include <limits.h>
3657 # include <assert.h>
3661 if ac_fn_c_try_cpp "$LINENO"; then :
3664 # Broken: fails on valid input.
3667 rm -f conftest.err conftest.$ac_ext
3669 # OK, works on sane cases. Now check whether nonexistent headers
3670 # can be detected and how.
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3673 #include <ac_nonexistent.h>
3675 if ac_fn_c_try_cpp "$LINENO"; then :
3676 # Broken: success on invalid input.
3679 # Passes both tests.
3683 rm -f conftest.err conftest.$ac_ext
3686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3687 rm -f conftest.err conftest.$ac_ext
3688 if $ac_preproc_ok; then :
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3701 $as_echo "$CPP" >&6; }
3703 for ac_c_preproc_warn_flag in '' yes
3705 # Use a header file that comes with gcc, so configuring glibc
3706 # with a fresh cross-compiler works.
3707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3708 # <limits.h> exists even on freestanding compilers.
3709 # On the NeXT, cc -E runs the code through the compiler's parser,
3710 # not just through cpp. "Syntax error
" is here to catch this case.
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3714 # include <limits.h>
3716 # include <assert.h>
3720 if ac_fn_c_try_cpp "$LINENO"; then :
3723 # Broken: fails on valid input.
3726 rm -f conftest.err conftest.$ac_ext
3728 # OK, works on sane cases. Now check whether nonexistent headers
3729 # can be detected and how.
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732 #include <ac_nonexistent.h>
3734 if ac_fn_c_try_cpp "$LINENO"; then :
3735 # Broken: success on invalid input.
3738 # Passes both tests.
3742 rm -f conftest.err conftest.$ac_ext
3745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3746 rm -f conftest.err conftest.$ac_ext
3747 if $ac_preproc_ok; then :
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3753 See \`config.log' for more details.
" "$LINENO" 5; }
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3764 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3765 if test "${ac_cv_path_GREP+set}" = set; then :
3766 $as_echo_n "(cached
) " >&6
3768 if test -z "$GREP"; then
3769 ac_path_GREP_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in grep ggrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3779 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3780 # Check for GNU ac_path_GREP and select it if it is found.
3781 # Check for GNU $ac_path_GREP
3782 case `"$ac_path_GREP" --version 2>&1` in
3784 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3787 $as_echo_n 0123456789 >"conftest.
in"
3790 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3791 mv "conftest.tmp
" "conftest.
in"
3792 cp "conftest.
in" "conftest.
nl"
3793 $as_echo 'GREP' >> "conftest.
nl"
3794 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3795 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3796 as_fn_arith $ac_count + 1 && ac_count=$as_val
3797 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_GREP="$ac_path_GREP"
3800 ac_path_GREP_max=$ac_count
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3808 $ac_path_GREP_found && break 3
3813 if test -z "$ac_cv_path_GREP"; then
3814 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3817 ac_cv_path_GREP=$GREP
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3822 $as_echo "$ac_cv_path_GREP" >&6; }
3823 GREP="$ac_cv_path_GREP"
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3827 $as_echo_n "checking
for egrep...
" >&6; }
3828 if test "${ac_cv_path_EGREP+set}" = set; then :
3829 $as_echo_n "(cached
) " >&6
3831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3832 then ac_cv_path_EGREP="$GREP -E"
3834 if test -z "$EGREP"; then
3835 ac_path_EGREP_found=false
3836 # Loop through the user's path and test for each of PROGNAME-LIST
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3841 test -z "$as_dir" && as_dir=.
3842 for ac_prog in egrep; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3845 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3846 # Check for GNU ac_path_EGREP and select it if it is found.
3847 # Check for GNU $ac_path_EGREP
3848 case `"$ac_path_EGREP" --version 2>&1` in
3850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3853 $as_echo_n 0123456789 >"conftest.
in"
3856 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3857 mv "conftest.tmp
" "conftest.
in"
3858 cp "conftest.
in" "conftest.
nl"
3859 $as_echo 'EGREP' >> "conftest.
nl"
3860 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3861 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3862 as_fn_arith $ac_count + 1 && ac_count=$as_val
3863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3864 # Best one so far, save it but keep looking for a better one
3865 ac_cv_path_EGREP="$ac_path_EGREP"
3866 ac_path_EGREP_max=$ac_count
3868 # 10*(2^10) chars as input seems more than enough
3869 test $ac_count -gt 10 && break
3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3874 $ac_path_EGREP_found && break 3
3879 if test -z "$ac_cv_path_EGREP"; then
3880 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3883 ac_cv_path_EGREP=$EGREP
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3889 $as_echo "$ac_cv_path_EGREP" >&6; }
3890 EGREP="$ac_cv_path_EGREP"
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3894 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3895 if test "${ac_cv_header_stdc+set}" = set; then :
3896 $as_echo_n "(cached
) " >&6
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3913 if ac_fn_c_try_compile "$LINENO"; then :
3914 ac_cv_header_stdc=yes
3916 ac_cv_header_stdc=no
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3927 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3928 $EGREP "memchr
" >/dev/null 2>&1; then :
3931 ac_cv_header_stdc=no
3937 if test $ac_cv_header_stdc = yes; then
3938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3944 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3945 $EGREP "free
" >/dev/null 2>&1; then :
3948 ac_cv_header_stdc=no
3954 if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then :
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3963 #if ((' ' & 0x0FF) == 0x020)
3964 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3965 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3967 # define ISLOWER(c) \
3968 (('a' <= (c) && (c) <= 'i') \
3969 || ('j' <= (c) && (c) <= 'r') \
3970 || ('s' <= (c) && (c) <= 'z'))
3971 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3974 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3979 for (i = 0; i < 256; i++)
3980 if (XOR (islower (i), ISLOWER (i))
3981 || toupper (i) != TOUPPER (i))
3986 if ac_fn_c_try_run "$LINENO"; then :
3989 ac_cv_header_stdc=no
3991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3992 conftest.$ac_objext conftest.beam conftest.$ac_ext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3998 $as_echo "$ac_cv_header_stdc" >&6; }
3999 if test $ac_cv_header_stdc = yes; then
4001 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4006 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4007 inttypes.h stdint.h unistd.h
4009 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4010 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4012 eval as_val
=\$
$as_ac_Header
4013 if test "x$as_val" = x
""yes; then :
4014 cat >>confdefs.h
<<_ACEOF
4015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4024 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4025 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4032 if test "$MINIX" = yes; then
4034 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4037 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4040 $as_echo "#define _MINIX 1" >>confdefs.h
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4046 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4047 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4053 # define __EXTENSIONS__ 1
4054 $ac_includes_default
4063 if ac_fn_c_try_compile
"$LINENO"; then :
4064 ac_cv_safe_to_define___extensions__
=yes
4066 ac_cv_safe_to_define___extensions__
=no
4068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4071 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4072 test $ac_cv_safe_to_define___extensions__ = yes &&
4073 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4075 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4077 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4079 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4081 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4085 # Check whether --enable-largefile was given.
4086 if test "${enable_largefile+set}" = set; then :
4087 enableval
=$enable_largefile;
4090 if test "$enable_largefile" != no
; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4093 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4094 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4097 ac_cv_sys_largefile_CC
=no
4098 if test "$GCC" != yes; then
4101 # IRIX 6.2 and later do not support large files by default,
4102 # so use the C compiler's -n32 option if that helps.
4103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105 #include <sys/types.h>
4106 /* Check that off_t can represent 2**63 - 1 correctly.
4107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4108 since some C++ compilers masquerading as C compilers
4109 incorrectly reject 9223372036854775807. */
4110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4112 && LARGE_OFF_T % 2147483647 == 1)
4122 if ac_fn_c_try_compile
"$LINENO"; then :
4125 rm -f core conftest.err conftest.
$ac_objext
4127 if ac_fn_c_try_compile
"$LINENO"; then :
4128 ac_cv_sys_largefile_CC
=' -n32'; break
4130 rm -f core conftest.err conftest.
$ac_objext
4134 rm -f conftest.
$ac_ext
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4138 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4139 if test "$ac_cv_sys_largefile_CC" != no
; then
4140 CC
=$CC$ac_cv_sys_largefile_CC
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4144 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4145 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #include <sys/types.h>
4152 /* Check that off_t can represent 2**63 - 1 correctly.
4153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4154 since some C++ compilers masquerading as C compilers
4155 incorrectly reject 9223372036854775807. */
4156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4158 && LARGE_OFF_T % 2147483647 == 1)
4168 if ac_fn_c_try_compile
"$LINENO"; then :
4169 ac_cv_sys_file_offset_bits
=no
; break
4171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #define _FILE_OFFSET_BITS 64
4175 #include <sys/types.h>
4176 /* Check that off_t can represent 2**63 - 1 correctly.
4177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4178 since some C++ compilers masquerading as C compilers
4179 incorrectly reject 9223372036854775807. */
4180 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4182 && LARGE_OFF_T % 2147483647 == 1)
4192 if ac_fn_c_try_compile
"$LINENO"; then :
4193 ac_cv_sys_file_offset_bits
=64; break
4195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4196 ac_cv_sys_file_offset_bits
=unknown
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4201 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4202 case $ac_cv_sys_file_offset_bits in #(
4205 cat >>confdefs.h
<<_ACEOF
4206 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4211 if test $ac_cv_sys_file_offset_bits = unknown
; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4213 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4214 if test "${ac_cv_sys_large_files+set}" = set; then :
4215 $as_echo_n "(cached) " >&6
4218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <sys/types.h>
4221 /* Check that off_t can represent 2**63 - 1 correctly.
4222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4223 since some C++ compilers masquerading as C compilers
4224 incorrectly reject 9223372036854775807. */
4225 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4227 && LARGE_OFF_T % 2147483647 == 1)
4237 if ac_fn_c_try_compile
"$LINENO"; then :
4238 ac_cv_sys_large_files
=no
; break
4240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #define _LARGE_FILES 1
4244 #include <sys/types.h>
4245 /* Check that off_t can represent 2**63 - 1 correctly.
4246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4247 since some C++ compilers masquerading as C compilers
4248 incorrectly reject 9223372036854775807. */
4249 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4251 && LARGE_OFF_T % 2147483647 == 1)
4261 if ac_fn_c_try_compile
"$LINENO"; then :
4262 ac_cv_sys_large_files
=1; break
4264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4265 ac_cv_sys_large_files
=unknown
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4270 $as_echo "$ac_cv_sys_large_files" >&6; }
4271 case $ac_cv_sys_large_files in #(
4274 cat >>confdefs.h
<<_ACEOF
4275 #define _LARGE_FILES $ac_cv_sys_large_files
4285 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4286 for ac_t
in install-sh
install.sh shtool
; do
4287 if test -f "$ac_dir/$ac_t"; then
4289 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4294 if test -z "$ac_aux_dir"; then
4295 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4298 # These three variables are undocumented and unsupported,
4299 # and are intended to be withdrawn in a future Autoconf release.
4300 # They can cause serious problems if a builder's source tree is in a directory
4301 # whose full name contains unusual characters.
4302 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4303 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4304 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4307 # Make sure we can run config.sub.
4308 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4309 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4312 $as_echo_n "checking build system type... " >&6; }
4313 if test "${ac_cv_build+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4316 ac_build_alias
=$build_alias
4317 test "x$ac_build_alias" = x
&&
4318 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4319 test "x$ac_build_alias" = x
&&
4320 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4321 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4322 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4326 $as_echo "$ac_cv_build" >&6; }
4327 case $ac_cv_build in
4329 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4332 ac_save_IFS
=$IFS; IFS
='-'
4338 # Remember, the first character of IFS is used to create $*,
4339 # except with old shells:
4342 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4346 $as_echo_n "checking host system type... " >&6; }
4347 if test "${ac_cv_host+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4350 if test "x$host_alias" = x
; then
4351 ac_cv_host
=$ac_cv_build
4353 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4354 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4359 $as_echo "$ac_cv_host" >&6; }
4362 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4365 ac_save_IFS
=$IFS; IFS
='-'
4371 # Remember, the first character of IFS is used to create $*,
4372 # except with old shells:
4375 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4379 $as_echo_n "checking target system type... " >&6; }
4380 if test "${ac_cv_target+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4383 if test "x$target_alias" = x
; then
4384 ac_cv_target
=$ac_cv_host
4386 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4387 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4392 $as_echo "$ac_cv_target" >&6; }
4393 case $ac_cv_target in
4395 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4397 target
=$ac_cv_target
4398 ac_save_IFS
=$IFS; IFS
='-'
4404 # Remember, the first character of IFS is used to create $*,
4405 # except with old shells:
4408 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4411 # The aliases save the names the user supplied, while $host etc.
4412 # will get canonicalized.
4413 test -n "$target_alias" &&
4414 test "$program_prefix$program_suffix$program_transform_name" = \
4416 program_prefix
=${target_alias}-
4419 # Find a good install program. We prefer a C program (faster),
4420 # so one script is as good as another. But avoid the broken or
4421 # incompatible versions:
4422 # SysV /etc/install, /usr/sbin/install
4423 # SunOS /usr/etc/install
4424 # IRIX /sbin/install
4426 # AmigaOS /C/install, which installs bootblocks on floppy discs
4427 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4428 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4429 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4430 # OS/2's system install, which has a completely different semantic
4431 # ./install, which can be erroneously created by make from ./install.sh.
4432 # Reject install programs that cannot install multiple files.
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4434 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4435 if test -z "$INSTALL"; then
4436 if test "${ac_cv_path_install+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir
=.
4444 # Account for people who put trailing slashes in PATH elements.
4445 case $as_dir/ in #((
4446 .
/ | .
// |
/[cC
]/* | \
4447 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4448 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4451 # OSF1 and SCO ODT 3.0 have their own names for install.
4452 # Don't use installbsd from OSF since it installs stuff as root
4454 for ac_prog
in ginstall scoinst
install; do
4455 for ac_exec_ext
in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4457 if test $ac_prog = install &&
4458 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4459 # AIX install. It has an incompatible calling convention.
4461 elif test $ac_prog = install &&
4462 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4463 # program-specific install script used by HP pwplus--don't use.
4466 rm -rf conftest.one conftest.two conftest.dir
4467 echo one
> conftest.one
4468 echo two
> conftest.two
4470 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4471 test -s conftest.one
&& test -s conftest.two
&&
4472 test -s conftest.dir
/conftest.one
&&
4473 test -s conftest.dir
/conftest.two
4475 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4488 rm -rf conftest.one conftest.two conftest.dir
4491 if test "${ac_cv_path_install+set}" = set; then
4492 INSTALL
=$ac_cv_path_install
4494 # As a last resort, use the slow shell script. Don't cache a
4495 # value for INSTALL within a source directory, because that will
4496 # break other packages using the cache if that directory is
4497 # removed, or if the value is a relative name.
4498 INSTALL
=$ac_install_sh
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4502 $as_echo "$INSTALL" >&6; }
4504 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4505 # It thinks the first close brace ends the variable substitution.
4506 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4508 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4510 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4512 if test -n "$ac_tool_prefix"; then
4513 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4514 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if test "${ac_cv_prog_AR+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4520 if test -n "$AR"; then
4521 ac_cv_prog_AR
="$AR" # Let the user override the test.
4523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir
=.
4528 for ac_exec_ext
in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 if test -n "$AR"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4543 $as_echo "$AR" >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4551 if test -z "$ac_cv_prog_AR"; then
4553 # Extract the first word of "ar", so it can be a program name with args.
4554 set dummy
ar; ac_word
=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 if test -n "$ac_ct_AR"; then
4561 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir
=.
4568 for ac_exec_ext
in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_ac_ct_AR
="ar"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4581 if test -n "$ac_ct_AR"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4583 $as_echo "$ac_ct_AR" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4589 if test "x$ac_ct_AR" = x
; then
4592 case $cross_compiling:$ac_tool_warned in
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596 ac_tool_warned
=yes ;;
4604 if test -n "$ac_tool_prefix"; then
4605 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4606 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4612 if test -n "$RANLIB"; then
4613 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir
=.
4620 for ac_exec_ext
in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 RANLIB
=$ac_cv_prog_RANLIB
4633 if test -n "$RANLIB"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4635 $as_echo "$RANLIB" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4643 if test -z "$ac_cv_prog_RANLIB"; then
4644 ac_ct_RANLIB
=$RANLIB
4645 # Extract the first word of "ranlib", so it can be a program name with args.
4646 set dummy ranlib
; ac_word
=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4652 if test -n "$ac_ct_RANLIB"; then
4653 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir
=.
4660 for ac_exec_ext
in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4673 if test -n "$ac_ct_RANLIB"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4675 $as_echo "$ac_ct_RANLIB" >&6; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4681 if test "x$ac_ct_RANLIB" = x
; then
4684 case $cross_compiling:$ac_tool_warned in
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688 ac_tool_warned
=yes ;;
4690 RANLIB
=$ac_ct_RANLIB
4693 RANLIB
="$ac_cv_prog_RANLIB"
4697 test "$program_prefix" != NONE
&&
4698 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4699 # Use a double $ so make ignores it.
4700 test "$program_suffix" != NONE
&&
4701 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4702 # Double any \ or $.
4703 # By default was `s,x,x', remove it if useless.
4704 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4705 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4709 $as_echo_n "checking for ANSI C header files... " >&6; }
4710 if test "${ac_cv_header_stdc+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
4713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4728 if ac_fn_c_try_compile
"$LINENO"; then :
4729 ac_cv_header_stdc
=yes
4731 ac_cv_header_stdc
=no
4733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4735 if test $ac_cv_header_stdc = yes; then
4736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4743 $EGREP "memchr" >/dev
/null
2>&1; then :
4746 ac_cv_header_stdc
=no
4752 if test $ac_cv_header_stdc = yes; then
4753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4760 $EGREP "free" >/dev
/null
2>&1; then :
4763 ac_cv_header_stdc
=no
4769 if test $ac_cv_header_stdc = yes; then
4770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4771 if test "$cross_compiling" = yes; then :
4774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4778 #if ((' ' & 0x0FF) == 0x020)
4779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4782 # define ISLOWER(c) \
4783 (('a' <= (c) && (c) <= 'i') \
4784 || ('j' <= (c) && (c) <= 'r') \
4785 || ('s' <= (c) && (c) <= 'z'))
4786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4794 for (i = 0; i < 256; i++)
4795 if (XOR (islower (i), ISLOWER (i))
4796 || toupper (i) != TOUPPER (i))
4801 if ac_fn_c_try_run
"$LINENO"; then :
4804 ac_cv_header_stdc
=no
4806 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4807 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4813 $as_echo "$ac_cv_header_stdc" >&6; }
4814 if test $ac_cv_header_stdc = yes; then
4816 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4821 # See if we are building with C++, and substitute COMPILER.
4823 # Check whether --enable-build-with-cxx was given.
4824 if test "${enable_build_with_cxx+set}" = set; then :
4825 enableval
=$enable_build_with_cxx; case $enableval in
4829 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4832 enable_build_with_cxx
=no
4836 if test "$enable_build_with_cxx" = "yes"; then
4838 COMPILER_CFLAGS
='$(CXXFLAGS)'
4841 COMPILER_CFLAGS
='$(CFLAGS)'
4847 # Set the 'development' global.
4848 .
$srcdir/..
/..
/bfd
/development.sh
4850 # Enable -lmcheck by default (it provides cheap-enough memory
4851 # mangling), but turn it off for releases.
4852 if $development; then
4853 libmcheck_default
=yes
4855 libmcheck_default
=no
4858 # Check whether --enable-libmcheck was given.
4859 if test "${enable_libmcheck+set}" = set; then :
4860 enableval
=$enable_libmcheck; case "${enableval}" in
4861 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
4862 no | n
) ENABLE_LIBMCHECK
="no" ;;
4863 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
4868 if test -z "${ENABLE_LIBMCHECK}"; then
4869 ENABLE_LIBMCHECK
=${libmcheck_default}
4872 if test "$ENABLE_LIBMCHECK" = "yes" ; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
4874 $as_echo_n "checking for main in -lmcheck... " >&6; }
4875 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
4878 ac_check_lib_save_LIBS
=$LIBS
4879 LIBS
="-lmcheck $LIBS"
4880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4892 if ac_fn_c_try_link
"$LINENO"; then :
4893 ac_cv_lib_mcheck_main
=yes
4895 ac_cv_lib_mcheck_main
=no
4897 rm -f core conftest.err conftest.
$ac_objext \
4898 conftest
$ac_exeext conftest.
$ac_ext
4899 LIBS
=$ac_check_lib_save_LIBS
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
4902 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
4903 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
4904 cat >>confdefs.h
<<_ACEOF
4905 #define HAVE_LIBMCHECK 1
4908 LIBS
="-lmcheck $LIBS"
4915 case ${build_alias} in
4916 "") build_noncanonical
=${build} ;;
4917 *) build_noncanonical
=${build_alias} ;;
4920 case ${host_alias} in
4921 "") host_noncanonical
=${build_noncanonical} ;;
4922 *) host_noncanonical
=${host_alias} ;;
4925 case ${target_alias} in
4926 "") target_noncanonical
=${host_noncanonical} ;;
4927 *) target_noncanonical
=${target_alias} ;;
4935 # Dependency checking.
4936 rm -rf .tst
2>/dev
/null
4937 mkdir .tst
2>/dev
/null
4938 if test -d .tst
; then
4943 rmdir .tst
2>/dev
/null
4945 DEPDIR
="${am__leading_dot}deps"
4947 ac_config_commands
="$ac_config_commands depdir"
4950 depcc
="$CC" am_compiler_list
=
4952 am_depcomp
=$ac_aux_dir/depcomp
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4954 $as_echo_n "checking dependency style of $depcc... " >&6; }
4955 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4958 if test -f "$am_depcomp"; then
4959 # We make a subdir and do the tests there. Otherwise we can end up
4960 # making bogus files that we don't know about and never remove. For
4961 # instance it was reported that on HP-UX the gcc test will end up
4962 # making a dummy file named `D' -- because `-MD' means `put the output
4965 # Copy depcomp to subdir because otherwise we won't find it if we're
4966 # using a relative directory.
4967 cp "$am_depcomp" conftest.dir
4969 # We will build objects and dependencies in a subdirectory because
4970 # it helps to detect inapplicable dependency modes. For instance
4971 # both Tru64's cc and ICC support -MD to output dependencies as a
4972 # side effect of compilation, but ICC will put the dependencies in
4973 # the current directory while Tru64 will put them in the object
4977 am_cv_CC_dependencies_compiler_type
=none
4978 if test "$am_compiler_list" = ""; then
4979 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4981 for depmode
in $am_compiler_list; do
4982 if test $depmode = none
; then break; fi
4984 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4985 # Setup a source with many dependencies, because some compilers
4986 # like to wrap large dependency lists on column 80 (with \), and
4987 # we should not choose a depcomp mode which is confused by this.
4989 # We need to recreate these files for each test, as the compiler may
4990 # overwrite some of them when testing with obscure command lines.
4991 # This happens at least with the AIX C compiler.
4993 for i
in 1 2 3 4 5 6; do
4994 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4996 # Solaris 8's {/usr,}/bin/sh.
4997 touch sub
/conftst
$i.h
4999 echo "include sub/conftest.Po" > confmf
5001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5002 # mode. It turns out that the SunPro C++ compiler does not properly
5003 # handle `-M -o', and we need to detect this.
5004 depcmd
="depmode=$depmode \
5005 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5007 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5008 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5009 if env
$depcmd > conftest.err
2>&1 &&
5010 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5011 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5012 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5013 # icc doesn't choke on unknown options, it will just issue warnings
5014 # or remarks (even with -Werror). So we grep stderr for any message
5015 # that says an option was ignored or not supported.
5016 # When given -MP, icc 7.0 and 7.1 complain thusly:
5017 # icc: Command line warning: ignoring option '-M'; no argument required
5018 # The diagnosis changed in icc 8.0:
5019 # icc: Command line remark: option '-MP' not supported
5020 if (grep 'ignoring option' conftest.err ||
5021 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5022 am_cv_CC_dependencies_compiler_type
=$depmode
5023 $as_echo "$as_me:$LINENO: success" >&5
5027 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5028 sed -e 's/^/| /' < conftest.err
>&5
5034 am_cv_CC_dependencies_compiler_type
=none
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5039 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5040 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5041 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5042 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5047 # Check for the 'make' the user wants to use.
5050 # Extract the first word of "$ac_prog", so it can be a program name with args.
5051 set dummy
$ac_prog; ac_word
=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if test "${ac_cv_prog_MAKE+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -n "$MAKE"; then
5058 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir
=.
5065 for ac_exec_ext
in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_prog_MAKE
="$ac_prog"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 MAKE
=$ac_cv_prog_MAKE
5078 if test -n "$MAKE"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5080 $as_echo "$MAKE" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5087 test -n "$MAKE" && break
5091 case "`$MAKE --version 2>&1 | sed 1q`" in
5096 if test "$MAKE_IS_GNU" = yes; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5105 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5107 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5108 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5109 $as_echo_n "(cached) " >&6
5111 cat >conftest.
make <<\_ACEOF
5114 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5116 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5117 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5119 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5121 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5125 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5127 $as_echo "yes" >&6; }
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5132 SET_MAKE
="MAKE=${MAKE-make}"
5136 gnulib_extra_configure_args
=
5137 # If large-file support is disabled, make sure gnulib does the same.
5138 if test "$enable_largefile" = no
; then
5139 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5142 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
5143 # to find the the source subdir to be configured directly under
5144 # gdbserver/. We need to build gnulib under some other directory not
5145 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
5146 # build it in the same directory, when building in the source dir.
5149 in_build
="build-gnulib-gdbserver"
5150 in_extra_args
="$gnulib_extra_configure_args"
5152 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5153 # so they do not pile up.
5154 ac_sub_configure_args
=
5156 eval "set x $ac_configure_args"
5160 if test -n "$ac_prev"; then
5165 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5166 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5167 ac_prev
=cache_file
;;
5168 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5169 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5172 --config-cache |
-C)
5174 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5176 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5178 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5180 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5182 --disable-option-checking)
5186 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5188 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5192 # Always prepend --prefix to ensure using the same prefix
5193 # in subdir configurations.
5194 ac_arg
="--prefix=$prefix"
5196 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5198 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5201 if test "$silent" = yes; then
5202 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5205 # Always prepend --disable-option-checking to silence warnings, since
5206 # different subdirs can have different --enable and --with options.
5207 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5212 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5214 $as_echo "$ac_msg" >&6
5215 as_dir
="$ac_dir"; as_fn_mkdir_p
5219 ac_srcdir
=$srcdir/$in_src ;;
5221 ac_srcdir
=..
/$srcdir/$in_src ;;
5226 ac_sub_configure
=$ac_srcdir/configure
5228 # Make the cache file name correct relative to the subdirectory.
5230 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5232 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5235 if test -n "$in_extra_args"; then
5236 # Add the extra args at the end.
5237 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5240 { $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
5241 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5242 # The eval makes quoting arguments work.
5243 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5244 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5245 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5251 in_src
="../../libiberty"
5252 in_build
="build-libiberty-gdbserver"
5255 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5256 # so they do not pile up.
5257 ac_sub_configure_args
=
5259 eval "set x $ac_configure_args"
5263 if test -n "$ac_prev"; then
5268 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5269 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5270 ac_prev
=cache_file
;;
5271 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5272 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5275 --config-cache |
-C)
5277 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5279 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5281 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5283 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5285 --disable-option-checking)
5289 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5291 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5295 # Always prepend --prefix to ensure using the same prefix
5296 # in subdir configurations.
5297 ac_arg
="--prefix=$prefix"
5299 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5301 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5304 if test "$silent" = yes; then
5305 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5308 # Always prepend --disable-option-checking to silence warnings, since
5309 # different subdirs can have different --enable and --with options.
5310 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5315 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5316 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5317 $as_echo "$ac_msg" >&6
5318 as_dir
="$ac_dir"; as_fn_mkdir_p
5322 ac_srcdir
=$srcdir/$in_src ;;
5324 ac_srcdir
=..
/$srcdir/$in_src ;;
5329 ac_sub_configure
=$ac_srcdir/configure
5331 # Make the cache file name correct relative to the subdirectory.
5333 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5335 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5338 if test -n "$in_extra_args"; then
5339 # Add the extra args at the end.
5340 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5343 { $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
5344 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5345 # The eval makes quoting arguments work.
5346 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5347 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5348 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5353 for ac_header
in sgtty.h termio.h termios.h sys
/reg.h string.h proc_service.h sys
/procfs.h linux
/elf.h fcntl.h signal.h sys
/file.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h
5355 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5357 eval as_val
=\$
$as_ac_Header
5358 if test "x$as_val" = x
""yes; then :
5359 cat >>confdefs.h
<<_ACEOF
5360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5367 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5368 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5372 cat >>confdefs.h
<<_ACEOF
5378 for ac_header
in vfork.h
5380 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5381 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
5382 cat >>confdefs.h
<<_ACEOF
5383 #define HAVE_VFORK_H 1
5390 for ac_func
in fork vfork
5392 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5393 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5394 eval as_val
=\$
$as_ac_var
5395 if test "x$as_val" = x
""yes; then :
5396 cat >>confdefs.h
<<_ACEOF
5397 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5403 if test "x$ac_cv_func_fork" = xyes
; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5405 $as_echo_n "checking for working fork... " >&6; }
5406 if test "${ac_cv_func_fork_works+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5409 if test "$cross_compiling" = yes; then :
5410 ac_cv_func_fork_works
=cross
5412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 $ac_includes_default
5419 /* By Ruediger Kuhlmann. */
5426 if ac_fn_c_try_run
"$LINENO"; then :
5427 ac_cv_func_fork_works
=yes
5429 ac_cv_func_fork_works
=no
5431 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5432 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5437 $as_echo "$ac_cv_func_fork_works" >&6; }
5440 ac_cv_func_fork_works
=$ac_cv_func_fork
5442 if test "x$ac_cv_func_fork_works" = xcross
; then
5444 *-*-amigaos* |
*-*-msdosdjgpp*)
5445 # Override, as these systems have only a dummy fork() stub
5446 ac_cv_func_fork_works
=no
5449 ac_cv_func_fork_works
=yes
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5453 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5455 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5456 if test "x$ac_cv_func_vfork" = xyes
; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5458 $as_echo_n "checking for working vfork... " >&6; }
5459 if test "${ac_cv_func_vfork_works+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5462 if test "$cross_compiling" = yes; then :
5463 ac_cv_func_vfork_works
=cross
5465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 /* Thanks to Paul Eggert for this test. */
5468 $ac_includes_default
5469 #include <sys/wait.h>
5473 /* On some sparc systems, changes by the child to local and incoming
5474 argument registers are propagated back to the parent. The compiler
5475 is told about this with #include <vfork.h>, but some compilers
5476 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5477 static variable whose address is put into a register that is
5478 clobbered by the vfork. */
5481 sparc_address_test (int arg)
5483 sparc_address_test (arg) int arg;
5504 pid_t parent = getpid ();
5507 sparc_address_test (0);
5512 /* Here is another test for sparc vfork register problems. This
5513 test uses lots of local variables, at least as many local
5514 variables as main has allocated so far including compiler
5515 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5516 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5517 reuse the register of parent for one of the local variables,
5518 since it will think that parent can't possibly be used any more
5519 in this routine. Assigning to the local variable will thus
5520 munge parent in the parent process. */
5522 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5523 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5524 /* Convince the compiler that p..p7 are live; otherwise, it might
5525 use the same hardware register for all 8 local variables. */
5526 if (p != p1 || p != p2 || p != p3 || p != p4
5527 || p != p5 || p != p6 || p != p7)
5530 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5531 from child file descriptors. If the child closes a descriptor
5532 before it execs or exits, this munges the parent's descriptor
5533 as well. Test for this by closing stdout in the child. */
5534 _exit(close(fileno(stdout)) != 0);
5539 while (wait(&status) != child)
5542 /* Was there some problem with vforking? */
5545 /* Did the child fail? (This shouldn't happen.) */
5548 /* Did the vfork/compiler bug occur? */
5549 || parent != getpid()
5551 /* Did the file descriptor bug occur? */
5552 || fstat(fileno(stdout), &st) != 0
5557 if ac_fn_c_try_run
"$LINENO"; then :
5558 ac_cv_func_vfork_works
=yes
5560 ac_cv_func_vfork_works
=no
5562 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5563 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5568 $as_echo "$ac_cv_func_vfork_works" >&6; }
5571 if test "x$ac_cv_func_fork_works" = xcross
; then
5572 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5574 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5577 if test "x$ac_cv_func_vfork_works" = xyes
; then
5579 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5583 $as_echo "#define vfork fork" >>confdefs.h
5586 if test "x$ac_cv_func_fork_works" = xyes
; then
5588 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5592 for ac_func
in getauxval pread pwrite pread64 setns
5594 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5595 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5596 eval as_val
=\$
$as_ac_var
5597 if test "x$as_val" = x
""yes; then :
5598 cat >>confdefs.h
<<_ACEOF
5599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5608 $as_echo_n "checking for ANSI C header files... " >&6; }
5609 if test "${ac_cv_header_stdc+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5627 if ac_fn_c_try_compile
"$LINENO"; then :
5628 ac_cv_header_stdc
=yes
5630 ac_cv_header_stdc
=no
5632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5634 if test $ac_cv_header_stdc = yes; then
5635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5642 $EGREP "memchr" >/dev
/null
2>&1; then :
5645 ac_cv_header_stdc
=no
5651 if test $ac_cv_header_stdc = yes; then
5652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5659 $EGREP "free" >/dev
/null
2>&1; then :
5662 ac_cv_header_stdc
=no
5668 if test $ac_cv_header_stdc = yes; then
5669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5670 if test "$cross_compiling" = yes; then :
5673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5677 #if ((' ' & 0x0FF) == 0x020)
5678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5681 # define ISLOWER(c) \
5682 (('a' <= (c) && (c) <= 'i') \
5683 || ('j' <= (c) && (c) <= 'r') \
5684 || ('s' <= (c) && (c) <= 'z'))
5685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5693 for (i = 0; i < 256; i++)
5694 if (XOR (islower (i), ISLOWER (i))
5695 || toupper (i) != TOUPPER (i))
5700 if ac_fn_c_try_run
"$LINENO"; then :
5703 ac_cv_header_stdc
=no
5705 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5706 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5712 $as_echo "$ac_cv_header_stdc" >&6; }
5713 if test $ac_cv_header_stdc = yes; then
5715 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5719 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5720 # for constant arguments. Useless!
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5722 $as_echo_n "checking for working alloca.h... " >&6; }
5723 if test "${ac_cv_working_alloca_h+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5732 char *p = (char *) alloca (2 * sizeof (int));
5738 if ac_fn_c_try_link
"$LINENO"; then :
5739 ac_cv_working_alloca_h
=yes
5741 ac_cv_working_alloca_h
=no
5743 rm -f core conftest.err conftest.
$ac_objext \
5744 conftest
$ac_exeext conftest.
$ac_ext
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5747 $as_echo "$ac_cv_working_alloca_h" >&6; }
5748 if test $ac_cv_working_alloca_h = yes; then
5750 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5755 $as_echo_n "checking for alloca... " >&6; }
5756 if test "${ac_cv_func_alloca_works+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5762 # define alloca __builtin_alloca
5765 # include <malloc.h>
5766 # define alloca _alloca
5768 # ifdef HAVE_ALLOCA_H
5769 # include <alloca.h>
5774 # ifndef alloca /* predefined by HP cc +Olibcalls */
5785 char *p = (char *) alloca (1);
5791 if ac_fn_c_try_link
"$LINENO"; then :
5792 ac_cv_func_alloca_works
=yes
5794 ac_cv_func_alloca_works
=no
5796 rm -f core conftest.err conftest.
$ac_objext \
5797 conftest
$ac_exeext conftest.
$ac_ext
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5800 $as_echo "$ac_cv_func_alloca_works" >&6; }
5802 if test $ac_cv_func_alloca_works = yes; then
5804 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5807 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5808 # that cause trouble. Some versions do not even contain alloca or
5809 # contain a buggy version. If you still want to use their alloca,
5810 # use ar to extract alloca.o from them instead of compiling alloca.c.
5812 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5814 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5818 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5819 if test "${ac_cv_os_cray+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #if defined CRAY && ! defined CRAY2
5831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5832 $EGREP "webecray" >/dev
/null
2>&1; then :
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5841 $as_echo "$ac_cv_os_cray" >&6; }
5842 if test $ac_cv_os_cray = yes; then
5843 for ac_func
in _getb67 GETB67 getb67
; do
5844 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5845 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5846 eval as_val
=\$
$as_ac_var
5847 if test "x$as_val" = x
""yes; then :
5849 cat >>confdefs.h
<<_ACEOF
5850 #define CRAY_STACKSEG_END $ac_func
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5860 $as_echo_n "checking stack direction for C alloca... " >&6; }
5861 if test "${ac_cv_c_stack_direction+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5864 if test "$cross_compiling" = yes; then :
5865 ac_cv_c_stack_direction
=0
5867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 $ac_includes_default
5871 find_stack_direction ()
5873 static char *addr = 0;
5878 return find_stack_direction ();
5881 return (&dummy > addr) ? 1 : -1;
5887 return find_stack_direction () < 0;
5890 if ac_fn_c_try_run
"$LINENO"; then :
5891 ac_cv_c_stack_direction
=1
5893 ac_cv_c_stack_direction
=-1
5895 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5896 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5901 $as_echo "$ac_cv_c_stack_direction" >&6; }
5902 cat >>confdefs.h
<<_ACEOF
5903 #define STACK_DIRECTION $ac_cv_c_stack_direction
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5912 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5913 if test "${am_cv_langinfo_codeset+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918 #include <langinfo.h>
5922 char* cs = nl_langinfo(CODESET);
5927 if ac_fn_c_try_link
"$LINENO"; then :
5928 am_cv_langinfo_codeset
=yes
5930 am_cv_langinfo_codeset
=no
5932 rm -f core conftest.err conftest.
$ac_objext \
5933 conftest
$ac_exeext conftest.
$ac_ext
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5937 $as_echo "$am_cv_langinfo_codeset" >&6; }
5938 if test $am_cv_langinfo_codeset = yes; then
5940 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5945 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/syscall.h sys
/un.h sys
/wait.h thread_db.h
wait.h
5947 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5948 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5949 eval as_val
=\$
$as_ac_Header
5950 if test "x$as_val" = x
""yes; then :
5951 cat >>confdefs.h
<<_ACEOF
5952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5960 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
5962 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5963 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5964 eval as_val
=\$
$as_ac_var
5965 if test "x$as_val" = x
""yes; then :
5966 cat >>confdefs.h
<<_ACEOF
5967 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5974 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5975 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
5981 cat >>confdefs.h
<<_ACEOF
5982 #define HAVE_DECL_STRERROR $ac_have_decl
5984 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5985 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
5991 cat >>confdefs.h
<<_ACEOF
5992 #define HAVE_DECL_STRSTR $ac_have_decl
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
5997 $as_echo_n "checking for sigsetjmp... " >&6; }
5998 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6009 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6014 if ac_fn_c_try_compile
"$LINENO"; then :
6015 gdb_cv_func_sigsetjmp
=yes
6017 gdb_cv_func_sigsetjmp
=no
6019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
6022 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
6023 if test $gdb_cv_func_sigsetjmp = yes; then
6025 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
6030 # Check the return and argument types of ptrace.
6034 for ac_header
in sys
/ptrace.h ptrace.h
6036 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6037 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6038 eval as_val
=\$
$as_ac_Header
6039 if test "x$as_val" = x
""yes; then :
6040 cat >>confdefs.h
<<_ACEOF
6041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6049 # Needs to be tested in C++ mode, to detect whether we need to cast
6050 # the first argument to enum __ptrace_request.
6051 if test "$enable_build_with_cxx" = "yes"; then
6053 ac_cpp
='$CXXCPP $CPPFLAGS'
6054 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6060 gdb_ptrace_headers
='
6061 #include <sys/types.h>
6062 #if HAVE_SYS_PTRACE_H
6063 # include <sys/ptrace.h>
6066 # include <unistd.h>
6069 # There is no point in checking if we don't have a prototype.
6070 ac_fn_cxx_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
6072 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
6078 cat >>confdefs.h
<<_ACEOF
6079 #define HAVE_DECL_PTRACE $ac_have_decl
6081 if test $ac_have_decl = 1; then :
6085 : ${gdb_cv_func_ptrace_ret='int'}
6086 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6090 # Check return type. Varargs (used on GNU/Linux) conflict with the
6091 # empty argument list, so check for that explicitly.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6093 $as_echo_n "checking return type of ptrace... " >&6; }
6094 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6103 extern long ptrace (enum __ptrace_request, ...);
6108 if ac_fn_cxx_try_compile
"$LINENO"; then :
6109 gdb_cv_func_ptrace_ret
='long'
6111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6117 extern int ptrace ();
6122 if ac_fn_cxx_try_compile
"$LINENO"; then :
6123 gdb_cv_func_ptrace_ret
='int'
6125 gdb_cv_func_ptrace_ret
='long'
6127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
6132 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
6134 cat >>confdefs.h
<<_ACEOF
6135 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
6138 # Check argument types.
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
6140 $as_echo_n "checking types of arguments for ptrace... " >&6; }
6141 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6151 extern long ptrace (enum __ptrace_request, ...);
6156 if ac_fn_cxx_try_compile
"$LINENO"; then :
6157 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
6160 for gdb_arg1
in 'int' 'long'; do
6161 for gdb_arg2
in 'pid_t' 'int' 'long'; do
6162 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
6163 for gdb_arg4
in 'int' 'long' 'void *'; do
6164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6171 extern $gdb_cv_func_ptrace_ret
6172 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
6178 if ac_fn_cxx_try_compile
"$LINENO"; then :
6179 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
6182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6183 for gdb_arg5
in 'int *' 'int' 'long'; do
6184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6191 extern $gdb_cv_func_ptrace_ret
6192 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
6198 if ac_fn_cxx_try_compile
"$LINENO"; then :
6200 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
6203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6209 # Provide a safe default value.
6210 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
6216 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
6217 ac_save_IFS
=$IFS; IFS
=','
6218 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
6222 cat >>confdefs.h
<<_ACEOF
6223 #define PTRACE_TYPE_ARG1 $1
6227 cat >>confdefs.h
<<_ACEOF
6228 #define PTRACE_TYPE_ARG3 $3
6232 cat >>confdefs.h
<<_ACEOF
6233 #define PTRACE_TYPE_ARG4 $4
6236 if test -n "$5"; then
6238 cat >>confdefs.h
<<_ACEOF
6239 #define PTRACE_TYPE_ARG5 $5
6244 if test "$enable_build_with_cxx" = "yes"; then
6246 ac_cpp
='$CPP $CPPFLAGS'
6247 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6248 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6249 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6259 # Check whether --with-ust was given.
6260 if test "${with_ust+set}" = set; then :
6265 # Check whether --with-ust_include was given.
6266 if test "${with_ust_include+set}" = set; then :
6267 withval
=$with_ust_include;
6271 # Check whether --with-ust_lib was given.
6272 if test "${with_ust_lib+set}" = set; then :
6273 withval
=$with_ust_lib;
6287 ustlibs
="-L$with_ust/lib -lust"
6288 ustinc
="-I$with_ust/include "
6291 if test "x$with_ust_include" != x
; then
6292 ustinc
="-I$with_ust_include "
6294 if test "x$with_ust_lib" != x
; then
6295 ustlibs
="-L$with_ust_lib -lust"
6298 if test "x$with_ust" != "xno"; then
6299 saved_CFLAGS
="$CFLAGS"
6300 CFLAGS
="$CFLAGS $ustinc"
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
6302 $as_echo_n "checking for ust... " >&6; }
6303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6306 #define CONFIG_UST_GDB_INTEGRATION
6307 #include <ust/ust.h>
6317 if ac_fn_c_try_compile
"$LINENO"; then :
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6319 $as_echo "yes" >&6; };
6320 $as_echo "#define HAVE_UST 1" >>confdefs.h
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
6326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6327 CFLAGS
="$saved_CFLAGS"
6330 # Flags needed for UST
6335 # Check whether --enable-werror was given.
6336 if test "${enable_werror+set}" = set; then :
6337 enableval
=$enable_werror; case "${enableval}" in
6338 yes | y
) ERROR_ON_WARNING
="yes" ;;
6339 no | n
) ERROR_ON_WARNING
="no" ;;
6340 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6345 # Enable -Werror by default when using gcc. Turn it off for releases.
6346 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
6347 ERROR_ON_WARNING
=yes
6351 if test "${ERROR_ON_WARNING}" = yes ; then
6352 WERROR_CFLAGS
="-Werror"
6355 # These options work in either C or C++ modes.
6356 build_warnings
="-Wall -Wpointer-arith \
6357 -Wno-unused -Wunused-value -Wunused-function \
6358 -Wno-switch -Wno-char-subscripts \
6361 # Now add in C and C++ specific options, depending on mode.
6362 if test "$enable_build_with_cxx" = "yes"; then
6363 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
6366 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
6367 -Wdeclaration-after-statement -Wmissing-parameter-type \
6368 -Wold-style-declaration -Wold-style-definition"
6371 # Enable -Wno-format by default when using gcc on mingw since many
6372 # GCC versions complain about %I64.
6374 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
6375 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
6378 # Check whether --enable-build-warnings was given.
6379 if test "${enable_build_warnings+set}" = set; then :
6380 enableval
=$enable_build_warnings; case "${enableval}" in
6382 no
) build_warnings
="-w";;
6383 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6384 build_warnings
="${build_warnings} ${t}";;
6385 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6386 build_warnings
="${t} ${build_warnings}";;
6387 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6389 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6390 echo "Setting compiler warning flags = $build_warnings" 6>&1
6393 # Check whether --enable-gdb-build-warnings was given.
6394 if test "${enable_gdb_build_warnings+set}" = set; then :
6395 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
6397 no
) build_warnings
="-w";;
6398 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6399 build_warnings
="${build_warnings} ${t}";;
6400 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6401 build_warnings
="${t} ${build_warnings}";;
6402 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6404 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6405 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6409 # The set of warnings supported by a C++ compiler is not the same as
6410 # of the C compiler.
6411 if test "$enable_build_with_cxx" = "yes"; then
6413 ac_cpp
='$CXXCPP $CPPFLAGS'
6414 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6421 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
6424 $as_echo_n "checking compiler warning flags... " >&6; }
6425 # Separate out the -Werror flag as some files just cannot be
6426 # compiled with it enabled.
6427 for w
in ${build_warnings}; do
6428 # GCC does not complain about -Wno-unknown-warning. Invert
6429 # and test -Wunknown-warning instead.
6432 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
6438 -Werr*) WERROR_CFLAGS
=-Werror ;;
6440 # Check whether GCC accepts it.
6441 saved_CFLAGS
="$CFLAGS"
6442 CFLAGS
="$CFLAGS $wtest"
6443 saved_CXXFLAGS
="$CXXFLAGS"
6444 CXXFLAGS
="$CXXFLAGS $wtest"
6445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6456 if ac_fn_cxx_try_compile
"$LINENO"; then :
6457 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6460 CFLAGS
="$saved_CFLAGS"
6461 CXXFLAGS
="$saved_CXXFLAGS"
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
6465 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
6470 if test "$enable_build_with_cxx" = "yes"; then
6472 ac_cpp='$CPP $CPPFLAGS'
6473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6479 case " $WARN_CFLAGS " in
6480 *" -Wmissing-prototypes "*)
6481 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
6487 for ac_func in dladdr
6489 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
6490 if test "x
$ac_cv_func_dladdr" = x""yes; then :
6491 cat >>confdefs.h <<_ACEOF
6492 #define HAVE_DLADDR 1
6501 # Check for presence and size of long long.
6502 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
6503 if test "x
$ac_cv_type_long_long" = x""yes; then :
6505 cat >>confdefs.h <<_ACEOF
6506 #define HAVE_LONG_LONG 1
6509 # The cast to long int works around a bug in the HP C Compiler
6510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6512 # This bug is HP SR number 8606223364.
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
6514 $as_echo_n "checking size of long long...
" >&6; }
6515 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6516 $as_echo_n "(cached
) " >&6
6518 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
6521 if test "$ac_cv_type_long_long" = yes; then
6522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
6523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6524 { as_fn_set_status 77
6525 as_fn_error "cannot compute sizeof (long long)
6526 See \`config.log' for more details.
" "$LINENO" 5; }; }
6528 ac_cv_sizeof_long_long=0
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
6534 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6538 cat >>confdefs.h <<_ACEOF
6539 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6546 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "ac_cv_have_decl_basename_char_p_
" "$ac_includes_default"
6547 if test "x
$ac_cv_have_decl_basename_char_p_" = x""yes; then :
6553 cat >>confdefs.h <<_ACEOF
6554 #define HAVE_DECL_BASENAME $ac_have_decl
6556 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
6557 if test "x
$ac_cv_have_decl_ffs" = x""yes; then :
6563 cat >>confdefs.h <<_ACEOF
6564 #define HAVE_DECL_FFS $ac_have_decl
6566 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
6567 if test "x
$ac_cv_have_decl_asprintf" = x""yes; then :
6573 cat >>confdefs.h <<_ACEOF
6574 #define HAVE_DECL_ASPRINTF $ac_have_decl
6576 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6577 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6583 cat >>confdefs.h <<_ACEOF
6584 #define HAVE_DECL_VASPRINTF $ac_have_decl
6586 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
6587 if test "x
$ac_cv_have_decl_snprintf" = x""yes; then :
6593 cat >>confdefs.h <<_ACEOF
6594 #define HAVE_DECL_SNPRINTF $ac_have_decl
6596 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6597 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6603 cat >>confdefs.h <<_ACEOF
6604 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6607 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
6608 if test "x
$ac_cv_have_decl_strtol" = x""yes; then :
6614 cat >>confdefs.h <<_ACEOF
6615 #define HAVE_DECL_STRTOL $ac_have_decl
6617 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
6618 if test "x
$ac_cv_have_decl_strtoul" = x""yes; then :
6624 cat >>confdefs.h <<_ACEOF
6625 #define HAVE_DECL_STRTOUL $ac_have_decl
6627 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
6628 if test "x
$ac_cv_have_decl_strtoll" = x""yes; then :
6634 cat >>confdefs.h <<_ACEOF
6635 #define HAVE_DECL_STRTOLL $ac_have_decl
6637 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
6638 if test "x
$ac_cv_have_decl_strtoull" = x""yes; then :
6644 cat >>confdefs.h <<_ACEOF
6645 #define HAVE_DECL_STRTOULL $ac_have_decl
6648 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
6649 if test "x
$ac_cv_have_decl_strverscmp" = x""yes; then :
6655 cat >>confdefs.h <<_ACEOF
6656 #define HAVE_DECL_STRVERSCMP $ac_have_decl
6661 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
6662 if test "x
$ac_cv_have_decl_strerror" = x""yes; then :
6668 cat >>confdefs.h <<_ACEOF
6669 #define HAVE_DECL_STRERROR $ac_have_decl
6671 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
6672 if test "x
$ac_cv_have_decl_perror" = x""yes; then :
6678 cat >>confdefs.h <<_ACEOF
6679 #define HAVE_DECL_PERROR $ac_have_decl
6681 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6682 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6688 cat >>confdefs.h <<_ACEOF
6689 #define HAVE_DECL_VASPRINTF $ac_have_decl
6691 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6692 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6698 cat >>confdefs.h <<_ACEOF
6699 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6703 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
6704 if test "x
$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6706 cat >>confdefs.h <<_ACEOF
6707 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6712 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
6713 if test "x
$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6715 cat >>confdefs.h <<_ACEOF
6716 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6723 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
6724 #include <sys/socket.h>
6727 if test "x
$ac_cv_type_socklen_t" = x""yes; then :
6729 cat >>confdefs.h <<_ACEOF
6730 #define HAVE_SOCKLEN_T 1
6739 # Starting with NDK version 9, <elf.h> actually includes definitions
6740 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
6741 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
6742 # leading to conflicts with the defintions from <linux/elf.h>.
6743 # This makes it impossible for us to include both <elf.h> and
6744 # <linux/elf.h>, which means that, in practice, we do not have
6745 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
6746 # Therefore, do not try to auto-detect availability, as it would
6747 # get it wrong on this platform.
6750 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
6753 if test "x
$ac_cv_type_Elf32_auxv_t" = x""yes; then :
6755 cat >>confdefs.h <<_ACEOF
6756 #define HAVE_ELF32_AUXV_T 1
6761 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
6764 if test "x
$ac_cv_type_Elf64_auxv_t" = x""yes; then :
6766 cat >>confdefs.h <<_ACEOF
6767 #define HAVE_ELF64_AUXV_T 1
6777 # Check whether --with-pkgversion was given.
6778 if test "${with_pkgversion+set}" = set; then :
6779 withval=$with_pkgversion; case "$withval" in
6780 yes) as_fn_error "package version not specified
" "$LINENO" 5 ;;
6782 *) PKGVERSION="($withval) " ;;
6793 # Check whether --with-bugurl was given.
6794 if test "${with_bugurl+set}" = set; then :
6795 withval=$with_bugurl; case "$withval" in
6796 yes) as_fn_error "bug URL not specified
" "$LINENO" 5 ;;
6799 *) BUGURL="$withval"
6803 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
6813 REPORT_BUGS_TO="<$BUGURL>"
6814 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6821 cat >>confdefs.h <<_ACEOF
6822 #define PKGVERSION "$PKGVERSION"
6826 cat >>confdefs.h <<_ACEOF
6827 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6831 # Check for various supplementary target information (beyond the
6832 # triplet) which might affect the choices in configure.srv.
6834 i[34567]86-*-linux*)
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
6836 $as_echo_n "checking
if building
for x86-64...
" >&6; }
6837 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
6838 $as_echo_n "(cached
) " >&6
6840 save_CPPFLAGS="$CPPFLAGS"
6841 CPPFLAGS="$CPPFLAGS $CFLAGS"
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6850 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6851 $EGREP "got it
" >/dev/null 2>&1; then :
6852 gdb_cv_i386_is_x86_64=yes
6854 gdb_cv_i386_is_x86_64=no
6858 CPPFLAGS="$save_CPPFLAGS"
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
6861 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
6865 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
6866 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
6867 $as_echo_n "(cached
) " >&6
6869 save_CPPFLAGS="$CPPFLAGS"
6870 CPPFLAGS="$CPPFLAGS $CFLAGS"
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6874 #ifdef __mcoldfire__
6879 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6880 $EGREP "got it
" >/dev/null 2>&1; then :
6881 gdb_cv_m68k_is_coldfire=yes
6883 gdb_cv_m68k_is_coldfire=no
6887 CPPFLAGS="$save_CPPFLAGS"
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
6890 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
6894 . ${srcdir}/configure.srv
6896 # Add in the common host objects.
6897 . ${srcdir}/../common/common.host
6898 srv_host_obs="$common_host_obs"
6900 if test "${srv_mingwce}" = "yes"; then
6902 elif test "${srv_mingw}" = "yes"; then
6903 LIBS="$LIBS -lws2_32"
6904 elif test "${srv_qnx}" = "yes"; then
6905 LIBS="$LIBS -lsocket"
6906 elif test "${srv_lynxos}" = "yes"; then
6907 LIBS="$LIBS -lnetinet"
6910 if test "${srv_mingw}" = "yes"; then
6912 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6916 if test "${srv_linux_usrregs}" = "yes"; then
6918 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
6922 if test "${srv_linux_regsets}" = "yes"; then
6924 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
6928 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
6929 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
6930 $as_echo_n "(cached) " >&6
6932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6934 #include <sys/ptrace.h>
6943 if ac_fn_c_try_compile
"$LINENO"; then :
6944 gdbsrv_cv_have_ptrace_getregs
=yes
6946 gdbsrv_cv_have_ptrace_getregs
=no
6948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
6952 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
6953 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
6955 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
6960 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
6961 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
6964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966 #include <sys/ptrace.h>
6975 if ac_fn_c_try_compile
"$LINENO"; then :
6976 gdbsrv_cv_have_ptrace_getfpxregs
=yes
6978 gdbsrv_cv_have_ptrace_getfpxregs
=no
6980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
6984 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
6985 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
6987 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
6992 if test "${srv_linux_btrace}" = "yes"; then
6994 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
6998 if test "$ac_cv_header_sys_procfs_h" = yes; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
7000 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
7001 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
7002 $as_echo_n "(cached) " >&6
7004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7008 /* Needed for new procfs interface on sparc-solaris. */
7009 #define _STRUCTURED_PROC 1
7010 #include <sys/procfs.h>
7019 if ac_fn_c_try_compile
"$LINENO"; then :
7020 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7022 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7028 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7030 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
7034 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
7037 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
7038 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7045 /* Needed for new procfs interface on sparc-solaris. */
7046 #define _STRUCTURED_PROC 1
7047 #include <sys/procfs.h>
7056 if ac_fn_c_try_compile
"$LINENO"; then :
7057 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7059 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7065 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7067 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
7071 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
7074 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
7075 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7082 /* Needed for new procfs interface on sparc-solaris. */
7083 #define _STRUCTURED_PROC 1
7084 #include <sys/procfs.h>
7093 if ac_fn_c_try_compile
"$LINENO"; then :
7094 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7096 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7102 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7104 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
7108 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
7111 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
7112 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
7113 $as_echo_n "(cached) " >&6
7115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7119 /* Needed for new procfs interface on sparc-solaris. */
7120 #define _STRUCTURED_PROC 1
7121 #include <sys/procfs.h>
7130 if ac_fn_c_try_compile
"$LINENO"; then :
7131 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7133 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7139 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7141 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
7145 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
7148 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
7149 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
7150 $as_echo_n "(cached) " >&6
7152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7156 /* Needed for new procfs interface on sparc-solaris. */
7157 #define _STRUCTURED_PROC 1
7158 #include <sys/procfs.h>
7167 if ac_fn_c_try_compile
"$LINENO"; then :
7168 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
7170 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
7173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7176 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
7178 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
7182 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
7186 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
7188 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
7189 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
7192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7195 #include <thread_db.h>
7204 if ac_fn_c_try_compile
"$LINENO"; then :
7205 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
7207 gdbserver_cv_have_thread_db_type_lwpid_t
=no
7210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7213 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
7215 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
7219 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
7223 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
7225 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
7226 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7232 #include <thread_db.h>
7241 if ac_fn_c_try_compile
"$LINENO"; then :
7242 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
7244 gdbserver_cv_have_thread_db_type_psaddr_t
=no
7247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7250 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
7252 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
7256 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7266 ac_check_lib_save_LIBS
=$LIBS
7268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7271 /* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
7286 if ac_fn_c_try_link
"$LINENO"; then :
7287 ac_cv_lib_dl_dlopen
=yes
7289 ac_cv_lib_dl_dlopen
=no
7291 rm -f core conftest.err conftest.
$ac_objext \
7292 conftest
$ac_exeext conftest.
$ac_ext
7293 LIBS
=$ac_check_lib_save_LIBS
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7296 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7297 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
7298 cat >>confdefs.h
<<_ACEOF
7299 #define HAVE_LIBDL 1
7308 srv_thread_depfiles
=
7311 if test "$srv_linux_thread_db" = "yes"; then
7312 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
7315 $as_echo_n "checking for the dynamic export flag... " >&6; }
7316 old_LDFLAGS
="$LDFLAGS"
7317 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
7319 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
7320 LDFLAGS
="$LDFLAGS $RDYNAMIC"
7321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7332 if ac_fn_c_try_link
"$LINENO"; then :
7333 found
="-Wl,--dynamic-list"
7334 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
7336 RDYNAMIC
="-rdynamic"
7337 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
7338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7349 if ac_fn_c_try_link
"$LINENO"; then :
7355 rm -f core conftest.err conftest.
$ac_objext \
7356 conftest
$ac_exeext conftest.
$ac_ext
7358 rm -f core conftest.err conftest.
$ac_objext \
7359 conftest
$ac_exeext conftest.
$ac_ext
7361 LDFLAGS
="$old_LDFLAGS"
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
7363 $as_echo "$found" >&6; }
7365 srv_libs
="-lthread_db"
7368 srv_thread_depfiles
="thread-db.o proc-service.o"
7370 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
7373 $as_echo_n "checking for TD_VERSION... " >&6; }
7374 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 #include <thread_db.h>
7388 if ac_fn_c_try_compile
"$LINENO"; then :
7389 gdbsrv_cv_have_td_version
=yes
7391 gdbsrv_cv_have_td_version
=no
7393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
7396 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
7397 if test $gdbsrv_cv_have_td_version = yes; then
7399 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
7405 # Check whether --with-libthread-db was given.
7406 if test "${with_libthread_db+set}" = set; then :
7407 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
7408 srv_libs
="$srv_libthread_db_path"
7413 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
7415 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
7419 if test "$srv_xmlfiles" != ""; then
7420 srv_xmlbuiltin
="xml-builtin.o"
7422 $as_echo "#define USE_XML 1" >>confdefs.h
7425 tmp_xmlfiles
=$srv_xmlfiles
7427 for f
in $tmp_xmlfiles; do
7428 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
7432 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
7433 GDBSERVER_LIBS
="$srv_libs"
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
7436 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
7437 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7447 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
7452 if ac_fn_c_try_link
"$LINENO"; then :
7453 gdbsrv_cv_have_sync_builtins
=yes
7455 gdbsrv_cv_have_sync_builtins
=no
7457 rm -f core conftest.err conftest.
$ac_objext \
7458 conftest
$ac_exeext conftest.
$ac_ext
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
7461 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
7462 if test $gdbsrv_cv_have_sync_builtins = yes; then
7464 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
7468 saved_cflags
="$CFLAGS"
7469 CFLAGS
="$CFLAGS -fvisibility=hidden"
7470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7481 if ac_fn_c_try_compile
"$LINENO"; then :
7482 gdbsrv_cv_have_visibility_hidden
=yes
7484 gdbsrv_cv_have_visibility_hidden
=no
7486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7487 CFLAGS
="$saved_cflags"
7489 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7491 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
7497 cat >>confdefs.h
<<_ACEOF
7498 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7502 if test "$cross_compiling" = yes; then :
7503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 #include <sys/personality.h>
7510 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7511 # define ADDR_NO_RANDOMIZE 0x0040000
7513 /* Test the flag could be set and stays set. */
7514 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7515 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7521 if ac_fn_c_try_link
"$LINENO"; then :
7522 gdbsrv_cv_have_personality
=true
7524 gdbsrv_cv_have_personality
=false
7526 rm -f core conftest.err conftest.
$ac_objext \
7527 conftest
$ac_exeext conftest.
$ac_ext
7529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 #include <sys/personality.h>
7536 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7537 # define ADDR_NO_RANDOMIZE 0x0040000
7539 /* Test the flag could be set and stays set. */
7540 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7541 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7547 if ac_fn_c_try_run
"$LINENO"; then :
7548 gdbsrv_cv_have_personality
=true
7550 gdbsrv_cv_have_personality
=false
7552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7553 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7556 if $gdbsrv_cv_have_personality
7559 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
7567 # check whether to enable the inprocess agent
7568 if test "$ipa_obj" != "" \
7569 -a "$gdbsrv_cv_have_sync_builtins" = yes \
7570 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
7576 # Check whether --enable-inprocess-agent was given.
7577 if test "${enable_inprocess_agent+set}" = set; then :
7578 enableval
=$enable_inprocess_agent; case "$enableval" in
7579 yes) want_ipa
=true
;;
7580 no
) want_ipa
=false
;;
7581 *) as_fn_error
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
7590 IPA_DEPFILES
="$ipa_obj"
7591 extra_libraries
="$extra_libraries libinproctrace.so"
7593 as_fn_error
"inprocess agent not supported for this target" "$LINENO" 5
7604 GNULIB
=build-gnulib-gdbserver
/import
7607 if test x
"$STDINT_H" != x
; then
7608 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
7612 ac_config_files
="$ac_config_files Makefile"
7614 ac_config_commands
="$ac_config_commands default"
7616 cat >confcache
<<\_ACEOF
7617 # This file is a shell script that caches the results of configure
7618 # tests run on this system so they can be shared between configure
7619 # scripts and configure runs, see configure's option --config-cache.
7620 # It is not useful on other systems. If it contains results you don't
7621 # want to keep, you may remove or edit it.
7623 # config.status only pays attention to the cache file if you give it
7624 # the --recheck option to rerun configure.
7626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7632 # The following way of writing the cache mishandles newlines in values,
7633 # but we know of no workaround that is simple, portable, and efficient.
7634 # So, we kill variables containing newlines.
7635 # Ultrix sh set writes to stderr and can't be redirected directly,
7636 # and sets the high bit in the cache file unless we assign to the vars.
7638 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7639 eval ac_val
=\$
$ac_var
7643 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7644 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7647 _ | IFS | as_nl
) ;; #(
7648 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7649 *) { eval $ac_var=; unset $ac_var;} ;;
7655 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7656 *${as_nl}ac_space
=\
*)
7657 # `set' does not quote correctly, so add quotes: double-quote
7658 # substitution turns \\\\ into \\, and sed turns \\ into \.
7661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7664 # `set' quotes correctly as required by POSIX, so do not add quotes.
7665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7678 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7679 if test -w "$cache_file"; then
7680 test "x$cache_file" != "x/dev/null" &&
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7682 $as_echo "$as_me: updating cache $cache_file" >&6;}
7683 cat confcache
>$cache_file
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7686 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7691 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7692 # Let make expand exec_prefix.
7693 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7695 DEFS
=-DHAVE_CONFIG_H
7699 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7700 # 1. Remove the extension, and $U if already installed.
7701 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7702 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7703 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7704 # will be set to the directory where LIBOBJS objects are built.
7705 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7706 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7710 LTLIBOBJS
=$ac_ltlibobjs
7713 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7714 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
7715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7717 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
7718 as_fn_error
"conditional \"GMAKE\" was never defined.
7719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7722 : ${CONFIG_STATUS=./config.status}
7724 ac_clean_files_save
=$ac_clean_files
7725 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7727 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7729 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7731 # Generated by $as_me.
7732 # Run this file to recreate the current configuration.
7733 # Compiler output produced by configure, useful for debugging
7734 # configure, is in config.log if it exists.
7740 SHELL=\${CONFIG_SHELL-$SHELL}
7743 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7744 ## -------------------- ##
7745 ## M4sh Initialization. ##
7746 ## -------------------- ##
7748 # Be more Bourne compatible
7749 DUALCASE
=1; export DUALCASE
# for MKS sh
7750 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7753 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7754 # is contrary to our usage. Disable this feature.
7755 alias -g '${1+"$@"}'='"$@"'
7756 setopt NO_GLOB_SUBST
7758 case `(set -o) 2>/dev/null` in #(
7770 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7771 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7774 # Prefer a ksh shell builtin over an external printf program on Solaris,
7775 # but without wasting forks for bash or zsh.
7776 if test -z "$BASH_VERSION$ZSH_VERSION" \
7777 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7778 as_echo='print
-r --'
7779 as_echo_n='print
-rn --'
7780 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7781 as_echo='printf %s
\n'
7782 as_echo_n='printf %s
'
7784 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7785 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7786 as_echo_n='/usr
/ucb
/echo -n'
7788 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7789 as_echo_n_body='eval
7793 expr "X$arg" : "X\\(.*\\)$as_nl";
7794 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7796 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7798 export as_echo_n_body
7799 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7802 as_echo='sh
-c $as_echo_body as_echo
'
7805 # The user is always right.
7806 if test "${PATH_SEPARATOR+set}" != set; then
7808 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7809 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7816 # We need space, tab and new line, in precisely that order. Quoting is
7817 # there to prevent editors from complaining about space-tab.
7818 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7819 # splitting by setting IFS to empty value.)
7822 # Find who we are. Look in the path if we contain no directory separator.
7824 *[\\/]* ) as_myself=$0 ;;
7825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 test -z "$as_dir" && as_dir=.
7830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7836 # We did not find ourselves, most probably we were run as `sh COMMAND'
7837 # in which case we are not to be found in the path.
7838 if test "x$as_myself" = x
; then
7841 if test ! -f "$as_myself"; then
7842 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7846 # Unset variables that we do not need and which cause bugs (e.g. in
7847 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7848 # suppresses any "Segmentation fault" message there. '((' could
7849 # trigger a bug in pdksh 5.2.14.
7850 for as_var
in BASH_ENV ENV MAIL MAILPATH
7851 do eval test x\
${$as_var+set} = xset \
7852 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7865 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7868 # as_fn_error ERROR [LINENO LOG_FD]
7869 # ---------------------------------
7870 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7871 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7872 # script with status $?, using 1 if that was 0.
7875 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7877 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7878 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7880 $as_echo "$as_me: error: $1" >&2
7881 as_fn_exit
$as_status
7885 # as_fn_set_status STATUS
7886 # -----------------------
7887 # Set $? to STATUS, without forking.
7891 } # as_fn_set_status
7895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7905 # Portably unset VAR.
7908 { eval $1=; unset $1;}
7910 as_unset
=as_fn_unset
7911 # as_fn_append VAR VALUE
7912 # ----------------------
7913 # Append the text in VALUE to the end of the definition contained in VAR. Take
7914 # advantage of any shell optimizations that allow amortized linear growth over
7915 # repeated appends, instead of the typical quadratic growth present in naive
7917 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7918 eval 'as_fn_append ()
7929 # as_fn_arith ARG...
7930 # ------------------
7931 # Perform arithmetic evaluation on the ARGs, and store the result in the
7932 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7933 # must be portable across $(()) and expr.
7934 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7935 eval 'as_fn_arith ()
7942 as_val
=`expr "$@" || test $? -eq 1`
7947 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7948 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7954 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7955 as_basename
=basename
7960 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7966 as_me
=`$as_basename -- "$0" ||
7967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7968 X"$0" : 'X\(//\)$' \| \
7969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7971 sed '/^.*\/\([^/][^/]*\)\/*$/{
7985 # Avoid depending upon Character Ranges.
7986 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7987 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7988 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7989 as_cr_digits
='0123456789'
7990 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7992 ECHO_C
= ECHO_N
= ECHO_T
=
7993 case `echo -n x` in #(((((
7995 case `echo 'xy\c'` in
7996 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7998 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8005 rm -f conf$$ conf$$.exe conf$$.
file
8006 if test -d conf$$.dir
; then
8007 rm -f conf$$.dir
/conf$$.
file
8010 mkdir conf$$.dir
2>/dev
/null
8012 if (echo >conf$$.
file) 2>/dev
/null
; then
8013 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8015 # ... but there are two gotchas:
8016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8018 # In both cases, we have to default to `cp -p'.
8019 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8021 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8029 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8030 rmdir conf$$.dir
2>/dev
/null
8035 # Create "$as_dir" as a directory, including parents if necessary.
8040 -*) as_dir
=.
/$as_dir;;
8042 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8046 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8047 *) as_qdir
=$as_dir;;
8049 as_dirs
="'$as_qdir' $as_dirs"
8050 as_dir
=`$as_dirname -- "$as_dir" ||
8051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8052 X"$as_dir" : 'X\(//\)[^/]' \| \
8053 X"$as_dir" : 'X\(//\)$' \| \
8054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8055 $as_echo X"$as_dir" |
8056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8073 test -d "$as_dir" && break
8075 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8076 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
8080 if mkdir
-p .
2>/dev
/null
; then
8081 as_mkdir_p
='mkdir -p "$as_dir"'
8083 test -d .
/-p && rmdir .
/-p
8087 if test -x / >/dev
/null
2>&1; then
8090 if ls -dL / >/dev
/null
2>&1; then
8097 if test -d "$1"; then
8103 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8104 ???[sx]*):;;*)false;;esac;fi
8108 as_executable_p
=$as_test_x
8110 # Sed expression to map a string onto a valid CPP name.
8111 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8113 # Sed expression to map a string onto a valid variable name.
8114 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8118 ## ----------------------------------- ##
8119 ## Main body of $CONFIG_STATUS script. ##
8120 ## ----------------------------------- ##
8122 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8125 # Save the log message, to keep $0 and so on meaningful, and to
8126 # report actual input values of CONFIG_FILES etc. instead of their
8127 # values after options handling.
8129 This file was extended by $as_me, which was
8130 generated by GNU Autoconf 2.64. Invocation command line was
8132 CONFIG_FILES = $CONFIG_FILES
8133 CONFIG_HEADERS = $CONFIG_HEADERS
8134 CONFIG_LINKS = $CONFIG_LINKS
8135 CONFIG_COMMANDS = $CONFIG_COMMANDS
8138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8143 case $ac_config_files in *"
8144 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8147 case $ac_config_headers in *"
8148 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8153 # Files that config.status was made for.
8154 config_files="$ac_config_files"
8155 config_headers="$ac_config_headers"
8156 config_commands="$ac_config_commands"
8160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8162 \`$as_me' instantiates files and other configuration actions
8163 from templates according to the current configuration. Unless the files
8164 and actions are specified as TAGs, all are instantiated by default.
8166 Usage: $0 [OPTION]... [TAG]...
8168 -h, --help print this help, then exit
8169 -V, --version print version number and configuration settings, then exit
8170 -q, --quiet, --silent
8171 do not print progress messages
8172 -d, --debug don't remove temporary files
8173 --recheck update $as_me by reconfiguring in the same conditions
8174 --file=FILE[:TEMPLATE]
8175 instantiate the configuration file FILE
8176 --header=FILE[:TEMPLATE]
8177 instantiate the configuration header FILE
8179 Configuration files:
8182 Configuration headers:
8185 Configuration commands:
8188 Report bugs to the package provider."
8191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8194 configured by $0, generated by GNU Autoconf 2.64,
8195 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8197 Copyright (C) 2009 Free Software Foundation, Inc.
8198 This config.status script is free software; the Free Software Foundation
8199 gives unlimited permission to copy, distribute and modify it."
8204 test -n "\$AWK" || AWK=awk
8207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8208 # The default lists apply if the user does not specify any file.
8214 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8215 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8226 # Handling of the options.
8227 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8229 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8230 $as_echo "$ac_cs_version"; exit ;;
8231 --debug |
--debu |
--deb |
--de |
--d |
-d )
8233 --file |
--fil |
--fi |
--f )
8236 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8238 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8239 ac_need_defaults
=false
;;
8240 --header |
--heade |
--head |
--hea )
8243 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8245 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8246 ac_need_defaults
=false
;;
8248 # Conflict between --help and --header
8249 as_fn_error
"ambiguous option: \`$1'
8250 Try \`$0 --help' for more information.";;
8251 --help |
--hel |
-h )
8252 $as_echo "$ac_cs_usage"; exit ;;
8253 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8254 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8258 -*) as_fn_error
"unrecognized option: \`$1'
8259 Try \`$0 --help' for more information." ;;
8261 *) as_fn_append ac_config_targets
" $1"
8262 ac_need_defaults
=false
;;
8268 ac_configure_extra_args
=
8270 if $ac_cs_silent; then
8272 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8277 if \$ac_cs_recheck; then
8278 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8280 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8281 CONFIG_SHELL='$SHELL'
8287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8291 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8292 ## Running $as_me. ##
8298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8302 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8308 # Handling of arguments.
8309 for ac_config_target
in $ac_config_targets
8311 case $ac_config_target in
8312 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8313 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
8314 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8315 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8317 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8322 # If the user did not use the arguments to specify the items to instantiate,
8323 # then the envvar interface is used. Set only those that are not.
8324 # We use the long form for the default assignment because of an extremely
8325 # bizarre bug on SunOS 4.1.3.
8326 if $ac_need_defaults; then
8327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8332 # Have a temporary directory for convenience. Make it in the build tree
8333 # simply because there is no reason against having it here, and in addition,
8334 # creating and moving files from /tmp can sometimes cause problems.
8335 # Hook for its removal unless debugging.
8336 # Note that there is a small window in which the directory will not be cleaned:
8337 # after its creation but before its name has been assigned to `$tmp'.
8341 trap 'exit_status=$?
8342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8344 trap 'as_fn_exit 1' 1 2 13 15
8346 # Create a (secure) tmp directory for tmp files.
8349 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8350 test -n "$tmp" && test -d "$tmp"
8353 tmp
=.
/conf$$
-$RANDOM
8354 (umask 077 && mkdir
"$tmp")
8355 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8357 # Set up the scripts for CONFIG_FILES section.
8358 # No need to generate them if there are no CONFIG_FILES.
8359 # This happens for instance with `./config.status config.h'.
8360 if test -n "$CONFIG_FILES"; then
8363 ac_cr
=`echo X | tr X '\015'`
8364 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8365 # But we know of no other shell where ac_cr would be empty at this
8366 # point, so we can use a bashism as a fallback.
8367 if test "x$ac_cr" = x
; then
8368 eval ac_cr
=\$
\'\\r
\'
8370 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8371 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8377 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8382 echo "cat >conf$$subs.awk <<_ACEOF" &&
8383 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8386 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8387 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8389 for ac_last_try in false false false false false :; do
8390 . ./conf$$subs.sh ||
8391 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8393 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8394 if test $ac_delim_n = $ac_delim_num; then
8396 elif $ac_last_try; then
8397 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8399 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8405 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8409 s/^/S["/; s
/!.
*/"]=/
8419 s/\(.\{148\}\).*/\1/
8421 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8426 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8433 s/\(.\{148\}\).*/\1/
8435 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8439 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8444 ' <conf$$subs.awk | sed '
8449 ' >>$CONFIG_STATUS || ac_write_fail=1
8450 rm -f conf$$subs.awk
8451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8453 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8454 for (key in S) S_is_set[key] = 1
8460 nfields = split(line, field, "@
")
8462 len = length(field[1])
8463 for (i = 2; i < nfields; i++) {
8465 keylen = length(key)
8466 if (S_is_set[key]) {
8468 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8469 len += length(value) + length(field[++i])
8480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8481 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8482 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8485 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8486 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8489 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8490 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8491 # trailing colons and then remove the whole line if VPATH becomes empty
8492 # (actually we leave an empty line to preserve line numbers).
8493 if test "x
$srcdir" = x.; then
8494 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8498 s/^\([^=]*=[ ]*\):*/\1/
8504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8505 fi # test -n "$CONFIG_FILES"
8507 # Set up the scripts for CONFIG_HEADERS section.
8508 # No need to generate them if there are no CONFIG_HEADERS.
8509 # This happens for instance with `./config.status Makefile'.
8510 if test -n "$CONFIG_HEADERS"; then
8511 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8515 # Transform confdefs.h into an awk script `defines.awk', embedded as
8516 # here-document in config.status, that substitutes the proper values into
8517 # config.h.in to produce config.h.
8519 # Create a delimiter string that does not exist in confdefs.h, to ease
8520 # handling of long lines.
8522 for ac_last_try in false false :; do
8523 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8524 if test -z "$ac_t"; then
8526 elif $ac_last_try; then
8527 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8529 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8533 # For the awk script, D is an array of macro values keyed by name,
8534 # likewise P contains macro parameters if any. Preserve backslash
8535 # newline sequences.
8537 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8539 s/.\{148\}/&'"$ac_delim"'/g
8542 s/^[ ]*#[ ]*define[ ][ ]*/ /
8549 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8551 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8555 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8556 D["\
1"]=" \
3\\\\\\n
"\\/p
8558 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8563 s/.\{148\}/&'"$ac_delim"'/g
8568 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8571 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8573 ' <confdefs.h | sed '
8574 s/'"$ac_delim"'/"\\\
8575 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8578 for (key in D) D_is_set[key] = 1
8581 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8583 split(line, arg, " ")
8584 if (arg[1] == "#") {
8588 defundef
= substr
(arg
[1], 2)
8591 split(mac1
, mac2
, "(") #)
8593 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8594 if (D_is_set
[macro
]) {
8595 # Preserve the white space surrounding the "#".
8596 print prefix
"define", macro P
[macro
] D
[macro
]
8599 # Replace #undef with comments. This is necessary, for example,
8600 # in the case of _POSIX_SOURCE, which is predefined and required
8601 # on some systems where configure will not decide to define it.
8602 if (defundef
== "undef") {
8603 print
"/*", prefix defundef
, macro
, "*/"
8611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8612 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8613 fi # test -n "$CONFIG_HEADERS"
8616 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8621 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8623 case $ac_mode$ac_tag in
8625 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8626 :[FH
]-) ac_tag
=-:-;;
8627 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8644 -) ac_f
="$tmp/stdin";;
8645 *) # Look for the file first in the build tree, then in the source tree
8646 # (if the path is not absolute). The absolute path cannot be DOS-style,
8647 # because $ac_f cannot contain `:'.
8651 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8653 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8655 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8656 as_fn_append ac_file_inputs
" '$ac_f'"
8659 # Let's still pretend it is `configure' which instantiates (i.e., don't
8660 # use $as_me), people would be surprised to read:
8661 # /* config.h. Generated by config.status. */
8662 configure_input
='Generated from '`
8663 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8665 if test x
"$ac_file" != x-
; then
8666 configure_input
="$ac_file. $configure_input"
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8668 $as_echo "$as_me: creating $ac_file" >&6;}
8670 # Neutralize special characters interpreted by sed in replacement strings.
8671 case $configure_input in #(
8672 *\
&* |
*\|
* |
*\\* )
8673 ac_sed_conf_input
=`$as_echo "$configure_input" |
8674 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8675 *) ac_sed_conf_input
=$configure_input;;
8679 *:-:* |
*:-) cat >"$tmp/stdin" \
8680 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8685 ac_dir
=`$as_dirname -- "$ac_file" ||
8686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8687 X"$ac_file" : 'X\(//\)[^/]' \| \
8688 X"$ac_file" : 'X\(//\)$' \| \
8689 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8690 $as_echo X"$ac_file" |
8691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8708 as_dir
="$ac_dir"; as_fn_mkdir_p
8712 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8714 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8715 # A ".." for each directory in $ac_dir_suffix.
8716 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8717 case $ac_top_builddir_sub in
8718 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8719 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8722 ac_abs_top_builddir
=$ac_pwd
8723 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8724 # for backward compatibility:
8725 ac_top_builddir
=$ac_top_build_prefix
8728 .
) # We are building in place.
8730 ac_top_srcdir
=$ac_top_builddir_sub
8731 ac_abs_top_srcdir
=$ac_pwd ;;
8732 [\\/]* | ?
:[\\/]* ) # Absolute name.
8733 ac_srcdir
=$srcdir$ac_dir_suffix;
8734 ac_top_srcdir
=$srcdir
8735 ac_abs_top_srcdir
=$srcdir ;;
8737 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8738 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8739 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8741 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8751 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8752 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8757 # If the template does not know about datarootdir, expand it.
8758 # FIXME: This hack should be removed a few years after 2.60.
8759 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8770 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8771 *datarootdir
*) ac_datarootdir_seen
=yes;;
8772 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8774 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8777 ac_datarootdir_hack='
8778 s&@datadir@&$datadir&g
8779 s&@docdir@&$docdir&g
8780 s&@infodir@&$infodir&g
8781 s&@localedir@&$localedir&g
8782 s&@mandir@&$mandir&g
8783 s&\\\${datarootdir}&$datarootdir&g' ;;
8787 # Neutralize VPATH when `$srcdir' = `.'.
8788 # Shell code in configure.ac might set extrasub.
8789 # FIXME: do we really want to maintain this feature?
8790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8791 ac_sed_extra="$ac_vpsub
8794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8796 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8797 s|@configure_input@|
$ac_sed_conf_input|
;t t
8798 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8799 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8800 s
&@srcdir@
&$ac_srcdir&;t t
8801 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8802 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8803 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8804 s
&@builddir@
&$ac_builddir&;t t
8805 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8806 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8807 s
&@INSTALL@
&$ac_INSTALL&;t t
8808 $ac_datarootdir_hack
8810 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8811 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8813 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8814 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8815 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8817 which seems to be undefined. Please make sure it is defined." >&5
8818 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8819 which seems to be undefined. Please make sure it is defined." >&2;}
8823 -) cat "$tmp/out" && rm -f "$tmp/out";;
8824 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8826 || as_fn_error "could not create $ac_file" "$LINENO" 5
8832 if test x"$ac_file" != x-; then
8834 $as_echo "/* $configure_input */" \
8835 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8836 } >"$tmp/config.h" \
8837 || as_fn_error "could not create $ac_file" "$LINENO" 5
8838 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8840 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8843 mv "$tmp/config.h" "$ac_file" \
8844 || as_fn_error "could not create $ac_file" "$LINENO" 5
8847 $as_echo "/* $configure_input */" \
8848 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8849 || as_fn_error "could not create -" "$LINENO" 5
8853 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8854 $as_echo "$as_me: executing $ac_file commands" >&6;}
8859 case $ac_file$ac_mode in
8860 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8861 "default":C) case x$CONFIG_HEADERS in
8862 xconfig.h:config.in)
8873 ac_clean_files=$ac_clean_files_save
8875 test $ac_write_fail = 0 ||
8876 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8879 # configure is writing to config.log, and then calls config.status.
8880 # config.status does its own redirection, appending to config.log.
8881 # Unfortunately, on DOS this fails, as config.log is still kept open
8882 # by configure, so config.status won't be able to
write to it
; its
8883 # output is simply discarded. So we exec the FD to /dev/null,
8884 # effectively closing config.log, so it can be properly (re)opened and
8885 # appended to by config.status. When coming back to configure, we
8886 # need to make the FD available again.
8887 if test "$no_create" != yes; then
8889 ac_config_status_args
=
8890 test "$silent" = yes &&
8891 ac_config_status_args
="$ac_config_status_args --quiet"
8893 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8896 # would make configure fail if this is the last instruction.
8897 $ac_cs_success || as_fn_exit $?
8899 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8901 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}