2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="server.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
679 MAINTAINER_MODE_FALSE
708 program_transform_name
721 enable_option_checking
722 enable_maintainer_mode
730 enable_build_warnings
731 enable_gdb_build_warnings
735 enable_inprocess_agent
737 ac_precious_vars
='build_alias
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 ac_unrecognized_opts
=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
765 program_transform_name
=s
,x
,x
,
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir
='${exec_prefix}/bin'
780 sbindir
='${exec_prefix}/sbin'
781 libexecdir
='${exec_prefix}/libexec'
782 datarootdir
='${prefix}/share'
783 datadir
='${datarootdir}'
784 sysconfdir
='${prefix}/etc'
785 sharedstatedir
='${prefix}/com'
786 localstatedir
='${prefix}/var'
787 includedir
='${prefix}/include'
788 oldincludedir
='/usr/include'
789 docdir
='${datarootdir}/doc/${PACKAGE}'
790 infodir
='${datarootdir}/info'
795 libdir
='${exec_prefix}/lib'
796 localedir
='${datarootdir}/locale'
797 mandir
='${datarootdir}/man'
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\
$ac_option
811 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816 # Accept the important Cygnus configure options, so we can diagnose typos.
818 case $ac_dashdash$ac_option in
822 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
824 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
827 -build |
--build |
--buil |
--bui |
--bu)
828 ac_prev
=build_alias
;;
829 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
830 build_alias
=$ac_optarg ;;
832 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
833 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
834 ac_prev
=cache_file
;;
835 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
836 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
837 cache_file
=$ac_optarg ;;
840 cache_file
=config.cache
;;
842 -datadir |
--datadir |
--datadi |
--datad)
844 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
845 datadir
=$ac_optarg ;;
847 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
848 |
--dataroo |
--dataro |
--datar)
849 ac_prev
=datarootdir
;;
850 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
851 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
852 datarootdir
=$ac_optarg ;;
854 -disable-* |
--disable-*)
855 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
858 as_fn_error $?
"invalid feature name: $ac_useropt"
859 ac_useropt_orig
=$ac_useropt
860 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
865 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866 ac_unrecognized_sep
=', ';;
868 eval enable_
$ac_useropt=no
;;
870 -docdir |
--docdir |
--docdi |
--doc |
--do)
872 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
875 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
877 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
880 -enable-* |
--enable-*)
881 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
884 as_fn_error $?
"invalid feature name: $ac_useropt"
885 ac_useropt_orig
=$ac_useropt
886 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892 ac_unrecognized_sep
=', ';;
894 eval enable_
$ac_useropt=\
$ac_optarg ;;
896 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
897 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
898 |
--exec |
--exe |
--ex)
899 ac_prev
=exec_prefix
;;
900 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
901 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
902 |
--exec=* |
--exe=* |
--ex=*)
903 exec_prefix
=$ac_optarg ;;
905 -gas |
--gas |
--ga |
--g)
906 # Obsolete; use --with-gas.
909 -help |
--help |
--hel |
--he |
-h)
911 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
912 ac_init_help
=recursive
;;
913 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
914 ac_init_help
=short
;;
916 -host |
--host |
--hos |
--ho)
917 ac_prev
=host_alias
;;
918 -host=* |
--host=* |
--hos=* |
--ho=*)
919 host_alias
=$ac_optarg ;;
921 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
923 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
925 htmldir
=$ac_optarg ;;
927 -includedir |
--includedir |
--includedi |
--included |
--include \
928 |
--includ |
--inclu |
--incl |
--inc)
929 ac_prev
=includedir
;;
930 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
931 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
932 includedir
=$ac_optarg ;;
934 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
936 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
937 infodir
=$ac_optarg ;;
939 -libdir |
--libdir |
--libdi |
--libd)
941 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
944 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
945 |
--libexe |
--libex |
--libe)
946 ac_prev
=libexecdir
;;
947 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
948 |
--libexe=* |
--libex=* |
--libe=*)
949 libexecdir
=$ac_optarg ;;
951 -localedir |
--localedir |
--localedi |
--localed |
--locale)
953 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
954 localedir
=$ac_optarg ;;
956 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
957 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
958 ac_prev
=localstatedir
;;
959 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
960 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
961 localstatedir
=$ac_optarg ;;
963 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
965 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
969 # Obsolete; use --without-fp.
972 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
973 |
--no-cr |
--no-c |
-n)
976 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
977 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
980 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
981 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
982 |
--oldin |
--oldi |
--old |
--ol |
--o)
983 ac_prev
=oldincludedir
;;
984 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
985 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
986 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
987 oldincludedir
=$ac_optarg ;;
989 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
991 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
994 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
995 |
--program-pre |
--program-pr |
--program-p)
996 ac_prev
=program_prefix
;;
997 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
998 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
999 program_prefix
=$ac_optarg ;;
1001 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1002 |
--program-suf |
--program-su |
--program-s)
1003 ac_prev
=program_suffix
;;
1004 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1005 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1006 program_suffix
=$ac_optarg ;;
1008 -program-transform-name |
--program-transform-name \
1009 |
--program-transform-nam |
--program-transform-na \
1010 |
--program-transform-n |
--program-transform- \
1011 |
--program-transform |
--program-transfor \
1012 |
--program-transfo |
--program-transf \
1013 |
--program-trans |
--program-tran \
1014 |
--progr-tra |
--program-tr |
--program-t)
1015 ac_prev
=program_transform_name
;;
1016 -program-transform-name=* |
--program-transform-name=* \
1017 |
--program-transform-nam=* |
--program-transform-na=* \
1018 |
--program-transform-n=* |
--program-transform-=* \
1019 |
--program-transform=* |
--program-transfor=* \
1020 |
--program-transfo=* |
--program-transf=* \
1021 |
--program-trans=* |
--program-tran=* \
1022 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1023 program_transform_name
=$ac_optarg ;;
1025 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1027 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1028 pdfdir
=$ac_optarg ;;
1030 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1032 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1035 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1036 |
-silent |
--silent |
--silen |
--sile |
--sil)
1039 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1041 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1043 sbindir
=$ac_optarg ;;
1045 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1046 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1047 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1049 ac_prev
=sharedstatedir
;;
1050 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1051 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1052 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1054 sharedstatedir
=$ac_optarg ;;
1056 -site |
--site |
--sit)
1058 -site=* |
--site=* |
--sit=*)
1061 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1063 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1064 srcdir
=$ac_optarg ;;
1066 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1067 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1068 ac_prev
=sysconfdir
;;
1069 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1070 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1071 sysconfdir
=$ac_optarg ;;
1073 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1074 ac_prev
=target_alias
;;
1075 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1076 target_alias
=$ac_optarg ;;
1078 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1081 -version |
--version |
--versio |
--versi |
--vers |
-V)
1082 ac_init_version
=: ;;
1085 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1088 as_fn_error $?
"invalid package name: $ac_useropt"
1089 ac_useropt_orig
=$ac_useropt
1090 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1095 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096 ac_unrecognized_sep
=', ';;
1098 eval with_
$ac_useropt=\
$ac_optarg ;;
1100 -without-* |
--without-*)
1101 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1104 as_fn_error $?
"invalid package name: $ac_useropt"
1105 ac_useropt_orig
=$ac_useropt
1106 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1111 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112 ac_unrecognized_sep
=', ';;
1114 eval with_
$ac_useropt=no
;;
1117 # Obsolete; use --with-x.
1120 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1121 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1122 ac_prev
=x_includes
;;
1123 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1124 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1125 x_includes
=$ac_optarg ;;
1127 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1128 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1129 ac_prev
=x_libraries
;;
1130 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1131 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1132 x_libraries
=$ac_optarg ;;
1134 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information"
1139 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 case $ac_envvar in #(
1142 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1143 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1145 eval $ac_envvar=\
$ac_optarg
1146 export $ac_envvar ;;
1149 # FIXME: should be removed in autoconf 3.0.
1150 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1152 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159 if test -n "$ac_prev"; then
1160 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1161 as_fn_error $?
"missing argument to $ac_option"
1164 if test -n "$ac_unrecognized_opts"; then
1165 case $enable_option_checking in
1167 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1168 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1172 # Check all directory arguments for consistency.
1173 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1178 eval ac_val
=\$
$ac_var
1179 # Remove trailing slashes.
1182 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\
$ac_val;;
1185 # Be sure to have absolute directory names.
1187 [\\/$
]* | ?
:[\\/]* ) continue;;
1188 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1190 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target
=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x
; then
1202 if test "x$build_alias" = x
; then
1203 cross_compiling
=maybe
1204 elif test "x$build_alias" != "x$host_alias"; then
1210 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1212 test "$silent" = yes && exec 6>/dev
/null
1215 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di
=`ls -di .` &&
1217 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1218 as_fn_error $?
"working directory cannot be determined"
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 as_fn_error $?
"pwd does not report name of working directory"
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225 ac_srcdir_defaulted
=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir
=`$as_dirname -- "$as_myself" ||
1228 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$as_myself" : 'X\(//\)[^/]' \| \
1230 X"$as_myself" : 'X\(//\)$' \| \
1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232 $as_echo X"$as_myself" |
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1255 ac_srcdir_defaulted
=no
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1259 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1261 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1273 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 for ac_var
in $ac_precious_vars; do
1276 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1278 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1283 # Report the --help message.
1285 if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1289 \`configure' configures this package to adapt to many kinds of systems.
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE. See below for descriptions of some of the useful variables.
1296 Defaults for the options are specified in brackets.
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking ...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309 Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1320 For better control, use the options below.
1322 Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1347 --program-prefix=PREFIX prepend PREFIX to installed program names
1348 --program-suffix=SUFFIX append SUFFIX to installed program names
1349 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1352 --build=BUILD configure
for building on BUILD
[guessed
]
1353 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1354 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1358 if test -n "$ac_init_help"; then
1363 --disable-option-checking ignore unrecognized
--enable/--with options
1364 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1365 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1366 --enable-maintainer-mode
1367 enable make rules and dependencies not useful
(and
1368 sometimes confusing
) to the casual installer
1369 --disable-largefile omit support
for large files
1370 --enable-libmcheck Try linking with
-lmcheck if available
1371 --enable-unit-tests Enable the inclusion of unit tests when compiling
1373 --enable-werror treat compile warnings as errors
1374 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1375 --enable-gdb-build-warnings
1376 enable GDB specific build-time compiler warnings
if
1378 --enable-inprocess-agent
1382 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1383 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1384 --with-ust=PATH Specify prefix directory
for the installed UST package
1385 Equivalent to
--with-ust-include=PATH
/include
1386 plus
--with-ust-lib=PATH
/lib
1387 --with-ust-include=PATH Specify directory
for installed UST include files
1388 --with-ust-lib=PATH Specify the directory
for the installed UST library
1389 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1390 --with-bugurl=URL Direct users to URL to report a bug
1391 --with-libthread-db=PATH
1392 use given libthread_db directly
1394 Some influential environment variables
:
1395 CC C compiler
command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1398 nonstandard directory
<lib dir
>
1399 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1400 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1401 you have headers
in a nonstandard directory
<include dir
>
1402 CXX C
++ compiler
command
1403 CXXFLAGS C
++ compiler flags
1406 Use these variables to override the choices made by
`configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1409 Report bugs to the package provider.
1414 if test "$ac_init_help" = "recursive"; then
1415 # If there are subdirs, report their specific --help.
1416 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1417 test -d "$ac_dir" ||
1418 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1426 # A ".." for each directory in $ac_dir_suffix.
1427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1428 case $ac_top_builddir_sub in
1429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433 ac_abs_top_builddir=$ac_pwd
1434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1435 # for backward compatibility:
1436 ac_top_builddir=$ac_top_build_prefix
1439 .) # We are building in place.
1441 ac_top_srcdir=$ac_top_builddir_sub
1442 ac_abs_top_srcdir=$ac_pwd ;;
1443 [\\/]* | ?:[\\/]* ) # Absolute name.
1444 ac_srcdir=$srcdir$ac_dir_suffix;
1445 ac_top_srcdir=$srcdir
1446 ac_abs_top_srcdir=$srcdir ;;
1448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1449 ac_top_srcdir=$ac_top_build_prefix$srcdir
1450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454 cd "$ac_dir" || { ac_status=$?; continue; }
1455 # Check for guested configure.
1456 if test -f "$ac_srcdir/configure.gnu"; then
1458 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1459 elif test -f "$ac_srcdir/configure"; then
1461 $SHELL "$ac_srcdir/configure" --help=recursive
1463 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1465 cd "$ac_pwd" || { ac_status=$?; break; }
1469 test -n "$ac_init_help" && exit $ac_status
1470 if $ac_init_version; then
1473 generated by GNU Autoconf 2.69
1475 Copyright (C) 2012 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1482 ## ------------------------ ##
1483 ## Autoconf initialization. ##
1484 ## ------------------------ ##
1486 # ac_fn_c_try_compile LINENO
1487 # --------------------------
1488 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_c_try_compile ()
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 rm -f conftest.$ac_objext
1493 if { { ac_try="$ac_compile"
1495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1496 *) ac_try_echo
=$ac_try;;
1498 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_compile") 2>conftest.err
1502 if test -s conftest.err
; then
1503 grep -v '^ *+' conftest.err
>conftest.er1
1504 cat conftest.er1
>&5
1505 mv -f conftest.er1 conftest.err
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } && {
1509 test -z "$ac_c_werror_flag" ||
1510 test ! -s conftest.err
1511 } && test -s conftest.
$ac_objext; then :
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.
$ac_ext >&5
1519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520 as_fn_set_status
$ac_retval
1522 } # ac_fn_c_try_compile
1524 # ac_fn_cxx_try_compile LINENO
1525 # ----------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_cxx_try_compile
()
1529 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1530 rm -f conftest.
$ac_objext
1531 if { { ac_try
="$ac_compile"
1533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_cxx_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1560 } # ac_fn_cxx_try_compile
1562 # ac_fn_c_try_cpp LINENO
1563 # ----------------------
1564 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 if { { ac_try="$ac_cpp conftest.$ac_ext"
1570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1571 *) ac_try_echo
=$ac_try;;
1573 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1577 if test -s conftest.err
; then
1578 grep -v '^ *+' conftest.err
>conftest.er1
1579 cat conftest.er1
>&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } > conftest.i
&& {
1584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.
$ac_ext >&5
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status
$ac_retval
1599 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1600 # -------------------------------------------------------
1601 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1602 # the include files in INCLUDES and setting the cache variable VAR
1604 ac_fn_c_check_header_mongrel
()
1606 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1607 if eval \
${$3+:} false
; then :
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609 $as_echo_n "checking for $2... " >&6; }
1610 if eval \
${$3+:} false
; then :
1611 $as_echo_n "(cached) " >&6
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1615 $as_echo "$ac_res" >&6; }
1617 # Is the header compilable?
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1619 $as_echo_n "checking $2 usability... " >&6; }
1620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1625 if ac_fn_c_try_compile
"$LINENO"; then :
1626 ac_header_compiler
=yes
1628 ac_header_compiler
=no
1630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1632 $as_echo "$ac_header_compiler" >&6; }
1634 # Is the header present?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1636 $as_echo_n "checking $2 presence... " >&6; }
1637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1641 if ac_fn_c_try_cpp
"$LINENO"; then :
1642 ac_header_preproc
=yes
1644 ac_header_preproc
=no
1646 rm -f conftest.err conftest.i conftest.
$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1648 $as_echo "$ac_header_preproc" >&6; }
1650 # So? What about this header?
1651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1654 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1660 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1662 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1664 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1666 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \
${$3+:} false
; then :
1674 $as_echo_n "(cached) " >&6
1676 eval "$3=\$ac_header_compiler"
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 } # ac_fn_c_check_header_mongrel
1686 # ac_fn_c_try_run LINENO
1687 # ----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689 # that executables *can* be run.
1692 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1693 if { { ac_try
="$ac_link"
1695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1706 *) ac_try_echo
=$ac_try;;
1708 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.
$ac_ext >&5
1720 ac_retval
=$ac_status
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status
$ac_retval
1728 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile
()
1734 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \
${$3+:} false
; then :
1738 $as_echo_n "(cached) " >&6
1740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1745 if ac_fn_c_try_compile
"$LINENO"; then :
1750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 } # ac_fn_c_check_header_compile
1759 # ac_fn_c_try_link LINENO
1760 # -----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded.
1764 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1765 rm -f conftest.
$ac_objext conftest
$ac_exeext
1766 if { { ac_try
="$ac_link"
1768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
1786 test -x conftest$ac_exeext
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1803 } # ac_fn_c_try_link
1805 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1806 # -------------------------------------------
1807 # Tests whether TYPE exists after having included INCLUDES, setting cache
1808 # variable VAR accordingly.
1809 ac_fn_c_check_type ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 $as_echo_n "checking for $2... " >&6; }
1814 if eval \${$3+:} false; then :
1815 $as_echo_n "(cached) " >&6
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1843 if ac_fn_c_try_compile "$LINENO"; then :
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_type
1859 # ac_fn_c_check_func LINENO FUNC VAR
1860 # ----------------------------------
1861 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1862 ac_fn_c_check_func ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1874 #define $2 innocuous_$2
1876 /* System header to define __stub macros and hopefully few prototypes,
1877 which can conflict with char $2 (); below.
1878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1879 <limits.h> exists even on freestanding compilers. */
1882 # include <limits.h>
1884 # include <assert.h>
1889 /* Override any GCC internal prototype to avoid an error.
1890 Use char because int might match the return type of a GCC
1891 builtin and then its argument prototype would still apply. */
1896 /* The GNU C library defines this for functions which it implements
1897 to always fail with ENOSYS. Some functions are actually named
1898 something starting with __ and the normal name is an alias. */
1899 #if defined __stub_$2 || defined __stub___$2
1911 if ac_fn_c_try_link "$LINENO"; then :
1916 rm -f core conftest.err conftest.$ac_objext \
1917 conftest$ac_exeext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 } # ac_fn_c_check_func
1926 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1927 # ---------------------------------------------
1928 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1930 ac_fn_c_check_decl ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1934 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1936 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1946 #ifndef $as_decl_name
1948 (void) $as_decl_use;
1950 (void) $as_decl_name;
1958 if ac_fn_c_try_compile "$LINENO"; then :
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 } # ac_fn_c_check_decl
1972 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1973 # --------------------------------------------
1974 # Tries to find the compile-time value of EXPR in a program that includes
1975 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1977 ac_fn_c_compute_int ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if test "$cross_compiling" = yes; then
1981 # Depending upon the size, compute the lo and hi bounds.
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1988 static int test_array [1 - 2 * !(($2) >= 0)];
1990 return test_array [0];
1996 if ac_fn_c_try_compile "$LINENO"; then :
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2005 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2007 return test_array [0];
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_hi=$ac_mid; break
2016 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2017 if test $ac_lo -le $ac_mid; then
2021 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2032 static int test_array [1 - 2 * !(($2) < 0)];
2034 return test_array [0];
2040 if ac_fn_c_try_compile "$LINENO"; then :
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2049 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2051 return test_array [0];
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 ac_lo=$ac_mid; break
2060 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2061 if test $ac_mid -le $ac_hi; then
2065 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 # Binary search between lo and hi bounds.
2076 while test "x$ac_lo" != "x$ac_hi"; do
2077 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 return test_array [0];
2092 if ac_fn_c_try_compile "$LINENO"; then :
2095 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2107 static long int longval () { return $2; }
2108 static unsigned long int ulongval () { return $2; }
2115 FILE *f = fopen ("conftest.val", "w");
2120 long int i = longval ();
2123 fprintf (f, "%ld", i);
2127 unsigned long int i = ulongval ();
2130 fprintf (f, "%lu", i);
2132 /* Do not output a trailing newline, as this causes \r\n confusion
2133 on some platforms. */
2134 return ferror (f) || fclose (f) != 0;
2140 if ac_fn_c_try_run "$LINENO"; then :
2141 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2146 conftest.$ac_objext conftest.beam conftest.$ac_ext
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 as_fn_set_status $ac_retval
2153 } # ac_fn_c_compute_int
2155 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2156 # ----------------------------------------------------
2157 # Tries to find if the field MEMBER exists in type AGGR, after including
2158 # INCLUDES, setting cache variable VAR accordingly.
2159 ac_fn_c_check_member ()
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2163 $as_echo_n "checking for $2.$3... " >&6; }
2164 if eval \${$4+:} false; then :
2165 $as_echo_n "(cached) " >&6
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2180 if ac_fn_c_try_compile "$LINENO"; then :
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2190 if (sizeof ac_aggr.$3)
2196 if ac_fn_c_try_compile "$LINENO"; then :
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207 $as_echo "$ac_res" >&6; }
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 } # ac_fn_c_check_member
2211 cat >config.log <<_ACEOF
2212 This file contains any messages produced by compilers while
2213 running configure, to aid debugging if configure makes a mistake.
2215 It was created by $as_me, which was
2216 generated by GNU Autoconf 2.69. Invocation command line was
2228 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2229 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2230 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2231 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2232 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2234 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2235 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2237 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2238 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2239 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2240 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2241 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2242 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2243 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir=.
2252 $as_echo "PATH: $as_dir"
2268 # Keep a trace of the command line.
2269 # Strip out --no-create and --no-recursion so they do not pile up.
2270 # Strip out --silent because we don't want to record it for future runs.
2271 # Also quote any args containing shell meta-characters.
2272 # Make two passes to allow for proper duplicate-argument suppression.
2276 ac_must_keep_next=false
2282 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2284 | -silent | --silent | --silen | --sile | --sil)
2287 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2290 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2292 as_fn_append ac_configure_args1 " '$ac_arg'"
2293 if test $ac_must_keep_next = true; then
2294 ac_must_keep_next=false # Got value, back to normal.
2297 *=* | --config-cache | -C | -disable-* | --disable-* \
2298 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2299 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2300 | -with-* | --with-* | -without-* | --without-* | --x)
2301 case "$ac_configure_args0 " in
2302 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2305 -* ) ac_must_keep_next=true ;;
2308 as_fn_append ac_configure_args " '$ac_arg'"
2313 { ac_configure_args0=; unset ac_configure_args0;}
2314 { ac_configure_args1=; unset ac_configure_args1;}
2316 # When interrupted or exit'd, cleanup temporary files, and complete
2317 # config.log. We remove comments because anyway the quotes in there
2318 # would cause problems or look ugly.
2319 # WARNING: Use '\'' to represent an apostrophe within the trap.
2320 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2321 trap 'exit_status=$?
2322 # Save into config.log some information that might help in debugging.
2326 $as_echo "## ---------------- ##
2327 ## Cache variables. ##
2328 ## ---------------- ##"
2330 # The following way of writing the cache mishandles newlines in values,
2332 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2333 eval ac_val=\$$ac_var
2337 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2338 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2341 _ | IFS | as_nl) ;; #(
2342 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2343 *) { eval $ac_var=; unset $ac_var;} ;;
2348 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2349 *${as_nl}ac_space=\ *)
2351 "s/'\''/'\''\\\\'\'''\''/g;
2352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2362 $as_echo "## ----------------- ##
2363 ## Output variables. ##
2364 ## ----------------- ##"
2366 for ac_var in $ac_subst_vars
2368 eval ac_val=\$$ac_var
2370 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2372 $as_echo "$ac_var='\''$ac_val'\''"
2376 if test -n "$ac_subst_files"; then
2377 $as_echo "## ------------------- ##
2378 ## File substitutions. ##
2379 ## ------------------- ##"
2381 for ac_var in $ac_subst_files
2383 eval ac_val=\$$ac_var
2385 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2387 $as_echo "$ac_var='\''$ac_val'\''"
2392 if test -s confdefs.h; then
2393 $as_echo "## ----------- ##
2400 test "$ac_signal" != 0 &&
2401 $as_echo "$as_me: caught signal $ac_signal"
2402 $as_echo "$as_me: exit $exit_status"
2404 rm -f core *.core core.conftest.* &&
2405 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2408 for ac_signal in 1 2 13 15; do
2409 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2413 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2414 rm -f -r conftest* confdefs.h
2416 $as_echo "/* confdefs.h */" > confdefs.h
2418 # Predefined preprocessor variables.
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_NAME "$PACKAGE_NAME"
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_STRING "$PACKAGE_STRING"
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_URL "$PACKAGE_URL"
2445 # Let the site file select an alternate cache file if it wants to.
2446 # Prefer an explicitly selected file to automatically selected ones.
2449 if test -n "$CONFIG_SITE"; then
2450 # We do not want a PATH search for config.site.
2451 case $CONFIG_SITE in #((
2452 -*) ac_site_file1=./$CONFIG_SITE;;
2453 */*) ac_site_file1=$CONFIG_SITE;;
2454 *) ac_site_file1=./$CONFIG_SITE;;
2456 elif test "x$prefix" != xNONE; then
2457 ac_site_file1=$prefix/share/config.site
2458 ac_site_file2=$prefix/etc/config.site
2460 ac_site_file1=$ac_default_prefix/share/config.site
2461 ac_site_file2=$ac_default_prefix/etc/config.site
2463 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2465 test "x$ac_site_file" = xNONE && continue
2466 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2468 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2469 sed 's/^/| /' "$ac_site_file" >&5
2471 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473 as_fn_error $? "failed to load site
script $ac_site_file
2474 See \
`config.log' for more details" "$LINENO" 5; }
2478 if test -r "$cache_file"; then
2479 # Some versions of bash will fail to source /dev/null (special files
2480 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2481 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2483 $as_echo "$as_me: loading cache $cache_file" >&6;}
2485 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2486 *) . "./$cache_file";;
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2491 $as_echo "$as_me: creating cache $cache_file" >&6;}
2495 # Check that the precious variables saved in the cache have kept the same
2497 ac_cache_corrupted=false
2498 for ac_var in $ac_precious_vars; do
2499 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2500 eval ac_new_set=\$ac_env_${ac_var}_set
2501 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2502 eval ac_new_val=\$ac_env_${ac_var}_value
2503 case $ac_old_set,$ac_new_set in
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2506 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2507 ac_cache_corrupted=: ;;
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2510 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2511 ac_cache_corrupted=: ;;
2514 if test "x$ac_old_val" != "x$ac_new_val"; then
2515 # differences in whitespace do not lead to failure.
2516 ac_old_val_w=`echo x
$ac_old_val`
2517 ac_new_val_w=`echo x
$ac_new_val`
2518 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2520 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2521 ac_cache_corrupted=:
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2524 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2525 eval $ac_var=\$ac_old_val
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2528 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2530 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2533 # Pass precious variables to config.status.
2534 if test "$ac_new_set" = set; then
2536 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2537 *) ac_arg=$ac_var=$ac_new_val ;;
2539 case " $ac_configure_args " in
2540 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2541 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2545 if $ac_cache_corrupted; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2549 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2550 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2552 ## -------------------- ##
2553 ## Main body of script. ##
2554 ## -------------------- ##
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566 ac_config_headers="$ac_config_headers config.h:config.in"
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2571 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2572 # Check whether --enable-maintainer-mode was given.
2573 if test "${enable_maintainer_mode+set}" = set; then :
2574 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2576 USE_MAINTAINER_MODE=no
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2580 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2581 if test $USE_MAINTAINER_MODE = yes; then
2582 MAINTAINER_MODE_TRUE=
2583 MAINTAINER_MODE_FALSE='#'
2585 MAINTAINER_MODE_TRUE='#'
2586 MAINTAINER_MODE_FALSE=
2589 MAINT=$MAINTAINER_MODE_TRUE
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 if test -n "$ac_tool_prefix"; then
2599 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2600 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602 $as_echo_n "checking for $ac_word... " >&6; }
2603 if ${ac_cv_prog_CC+:} false; then :
2604 $as_echo_n "(cached) " >&6
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 if test -n "$CC"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2629 $as_echo "$CC" >&6; }
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632 $as_echo "no" >&6; }
2637 if test -z "$ac_cv_prog_CC"; then
2639 # Extract the first word of "gcc", so it can be a program name with args.
2640 set dummy gcc; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2644 $as_echo_n "(cached) " >&6
2646 if test -n "$ac_ct_CC"; then
2647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_ac_ct_CC="gcc"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2667 if test -n "$ac_ct_CC"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2669 $as_echo "$ac_ct_CC" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2675 if test "x$ac_ct_CC" = x; then
2678 case $cross_compiling:$ac_tool_warned in
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2682 ac_tool_warned=yes ;;
2690 if test -z "$CC"; then
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}cc; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_CC+:} false; then :
2697 $as_echo_n "(cached) " >&6
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_CC="${ac_tool_prefix}cc"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 if test -n "$CC"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2722 $as_echo "$CC" >&6; }
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2731 if test -z "$CC"; then
2732 # Extract the first word of "cc", so it can be a program name with args.
2733 set dummy cc; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_CC+:} false; then :
2737 $as_echo_n "(cached) " >&6
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2751 ac_prog_rejected=yes
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 if test $ac_prog_rejected = yes; then
2763 # We found a bogon in the path, so make sure we never use it.
2764 set dummy $ac_cv_prog_CC
2766 if test $# != 0; then
2767 # We chose a different compiler from the bogus one.
2768 # However, it has the same basename, so the bogon will be chosen
2769 # first if we set CC to just the basename; use the full file name.
2771 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2777 if test -n "$CC"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779 $as_echo "$CC" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2787 if test -z "$CC"; then
2788 if test -n "$ac_tool_prefix"; then
2789 for ac_prog in cl.exe
2791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2792 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_CC+:} false; then :
2796 $as_echo_n "(cached) " >&6
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 if test -n "$CC"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2821 $as_echo "$CC" >&6; }
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2828 test -n "$CC" && break
2831 if test -z "$CC"; then
2833 for ac_prog in cl.exe
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy $ac_prog; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2840 $as_echo_n "(cached) " >&6
2842 if test -n "$ac_ct_CC"; then
2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_ac_ct_CC="$ac_prog"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2865 $as_echo "$ac_ct_CC" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2872 test -n "$ac_ct_CC" && break
2875 if test "x$ac_ct_CC" = x; then
2878 case $cross_compiling:$ac_tool_warned in
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2882 ac_tool_warned=yes ;;
2891 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2894 See \
`config.log' for more details" "$LINENO" 5; }
2896 # Provide some information about the compiler.
2897 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2900 for ac_option in --version -v -V -qversion; do
2901 { { ac_try="$ac_compiler $ac_option >&5"
2903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2904 *) ac_try_echo
=$ac_try;;
2906 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2907 $as_echo "$ac_try_echo"; } >&5
2908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2910 if test -s conftest.err
; then
2912 ... rest of stderr output deleted ...
2913 10q' conftest.err
>conftest.er1
2914 cat conftest.er1
>&5
2916 rm -f conftest.er1 conftest.err
2917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2918 test $ac_status = 0; }
2921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2932 ac_clean_files_save
=$ac_clean_files
2933 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2934 # Try to create an executable without -o first, disregard a.out.
2935 # It will help us diagnose broken compilers, and finding out an intuition
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2938 $as_echo_n "checking whether the C compiler works... " >&6; }
2939 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2941 # The possible output files:
2942 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2945 for ac_file
in $ac_files
2948 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2949 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2954 if { { ac_try
="$ac_link_default"
2956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2960 $as_echo "$ac_try_echo"; } >&5
2961 (eval "$ac_link_default") 2>&5
2963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964 test $ac_status = 0; }; then :
2965 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2966 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2967 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2968 # so that the user can short-circuit this test for compilers unknown to
2970 for ac_file in $ac_files ''
2972 test -f "$ac_file" || continue
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2977 # We found the default executable, but exeext='' is most
2981 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2983 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2985 # We set ac_cv_exeext here because the later test for it is not
2986 # safe: cross compilers may not add the suffix if given an `-o'
2987 # argument, so we may need to know it at that point already.
2988 # Even if this section looks crufty: it has the advantage of
2995 test "$ac_cv_exeext" = no && ac_cv_exeext=
3000 if test -z "$ac_file"; then :
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 $as_echo "$as_me: failed program was:" >&5
3004 sed 's
/^
/|
/' conftest.$ac_ext >&5
3006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3008 as_fn_error 77 "C compiler cannot create executables
3009 See \`config.log
' for more details" "$LINENO" 5; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3012 $as_echo "yes" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3015 $as_echo_n "checking for C compiler default output file name... " >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3017 $as_echo "$ac_file" >&6; }
3018 ac_exeext=$ac_cv_exeext
3020 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3021 ac_clean_files=$ac_clean_files_save
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3023 $as_echo_n "checking for suffix of executables... " >&6; }
3024 if { { ac_try="$ac_link"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030 $as_echo "$ac_try_echo"; } >&5
3031 (eval "$ac_link") 2>&5
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }; then :
3035 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3036 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3037 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3039 for ac_file
in conftest.exe conftest conftest.
*; do
3040 test -f "$ac_file" ||
continue
3042 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3043 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3052 See \`config.log' for more details" "$LINENO" 5; }
3054 rm -f conftest conftest
$ac_cv_exeext
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3056 $as_echo "$ac_cv_exeext" >&6; }
3058 rm -f conftest.
$ac_ext
3059 EXEEXT
=$ac_cv_exeext
3061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3067 FILE *f = fopen ("conftest.out", "w");
3068 return ferror (f) || fclose (f) != 0;
3074 ac_clean_files
="$ac_clean_files conftest.out"
3075 # Check that the compiler produces executables we can run. If not, either
3076 # the compiler is broken, or we cross compile.
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3078 $as_echo_n "checking whether we are cross compiling... " >&6; }
3079 if test "$cross_compiling" != yes; then
3080 { { ac_try
="$ac_link"
3082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_link") 2>&5
3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }
3091 if { ac_try='./conftest$ac_cv_exeext'
3092 { { case "(($ac_try" in
3093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3094 *) ac_try_echo
=$ac_try;;
3096 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097 $as_echo "$ac_try_echo"; } >&5
3098 (eval "$ac_try") 2>&5
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }; }; then
3104 if test "$cross_compiling" = maybe
; then
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error $?
"cannot run C compiled programs.
3110 If you meant to cross compile, use \`--host'.
3111 See \`config.log' for more details" "$LINENO" 5; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3116 $as_echo "$cross_compiling" >&6; }
3118 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3119 ac_clean_files
=$ac_clean_files_save
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3121 $as_echo_n "checking for suffix of object files... " >&6; }
3122 if ${ac_cv_objext+:} false
; then :
3123 $as_echo_n "(cached) " >&6
3125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3136 rm -f conftest.o conftest.obj
3137 if { { ac_try
="$ac_compile"
3139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_compile") 2>&5
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; then :
3148 for ac_file in conftest.o conftest.obj conftest.*; do
3149 test -f "$ac_file" || continue;
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3152 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3157 $as_echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3163 See \
`config.log' for more details" "$LINENO" 5; }
3165 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3168 $as_echo "$ac_cv_objext" >&6; }
3169 OBJEXT=$ac_cv_objext
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3172 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3173 if ${ac_cv_c_compiler_gnu+:} false; then :
3174 $as_echo_n "(cached) " >&6
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3190 if ac_fn_c_try_compile "$LINENO"; then :
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3200 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3201 if test $ac_compiler_gnu = yes; then
3206 ac_test_CFLAGS=${CFLAGS+set}
3207 ac_save_CFLAGS=$CFLAGS
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3209 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3210 if ${ac_cv_prog_cc_g+:} false; then :
3211 $as_echo_n "(cached) " >&6
3213 ac_save_c_werror_flag=$ac_c_werror_flag
3214 ac_c_werror_flag=yes
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3228 if ac_fn_c_try_compile "$LINENO"; then :
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3243 if ac_fn_c_try_compile "$LINENO"; then :
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3259 if ac_fn_c_try_compile "$LINENO"; then :
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 ac_c_werror_flag=$ac_save_c_werror_flag
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3270 $as_echo "$ac_cv_prog_cc_g" >&6; }
3271 if test "$ac_test_CFLAGS" = set; then
3272 CFLAGS=$ac_save_CFLAGS
3273 elif test $ac_cv_prog_cc_g = yes; then
3274 if test "$GCC" = yes; then
3280 if test "$GCC" = yes; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3287 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3288 if ${ac_cv_prog_cc_c89+:} false; then :
3289 $as_echo_n "(cached) " >&6
3291 ac_cv_prog_cc_c89=no
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3298 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3299 struct buf { int x; };
3300 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3301 static char *e (p, i)
3307 static char *f (char * (*g) (char **, int), char **p, ...)
3312 s = g (p, va_arg (v,int));
3317 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3318 function prototypes and stuff, but not '\xHH' hex character constants.
3319 These don't provoke an error unfortunately, instead are silently treated
3320 as 'x'. The following induces an error, until -std is added to get
3321 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3322 array size at least. It's necessary to write '\x00'==0 to get something
3323 that's true only with -std. */
3324 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3326 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3327 inside strings and character constants. */
3329 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3331 int test (int i, double x);
3332 struct s1 {int (*f) (int a);};
3333 struct s2 {int (*f) (double a);};
3334 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3340 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3345 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3346 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3348 CC="$ac_save_CC $ac_arg"
3349 if ac_fn_c_try_compile "$LINENO"; then :
3350 ac_cv_prog_cc_c89=$ac_arg
3352 rm -f core conftest.err conftest.$ac_objext
3353 test "x$ac_cv_prog_cc_c89" != "xno" && break
3355 rm -f conftest.$ac_ext
3360 case "x$ac_cv_prog_cc_c89" in
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3363 $as_echo "none needed" >&6; } ;;
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3366 $as_echo "unsupported" >&6; } ;;
3368 CC="$CC $ac_cv_prog_cc_c89"
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3370 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3372 if test "x$ac_cv_prog_cc_c89" != xno; then :
3377 ac_cpp='$CPP $CPPFLAGS'
3378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383 ac_cpp='$CXXCPP $CPPFLAGS'
3384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3387 if test -z "$CXX"; then
3388 if test -n "$CCC"; then
3391 if test -n "$ac_tool_prefix"; then
3392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_CXX+:} false; then :
3399 $as_echo_n "(cached) " >&6
3401 if test -n "$CXX"; then
3402 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 if test -n "$CXX"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3424 $as_echo "$CXX" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3431 test -n "$CXX" && break
3434 if test -z "$CXX"; then
3436 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3438 # Extract the first word of "$ac_prog", so it can be a program name with args.
3439 set dummy $ac_prog; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3443 $as_echo_n "(cached) " >&6
3445 if test -n "$ac_ct_CXX"; then
3446 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 ac_cv_prog_ac_ct_CXX="$ac_prog"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3466 if test -n "$ac_ct_CXX"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3468 $as_echo "$ac_ct_CXX" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3475 test -n "$ac_ct_CXX" && break
3478 if test "x$ac_ct_CXX" = x; then
3481 case $cross_compiling:$ac_tool_warned in
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3485 ac_tool_warned=yes ;;
3493 # Provide some information about the compiler.
3494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3497 for ac_option in --version -v -V -qversion; do
3498 { { ac_try="$ac_compiler $ac_option >&5"
3500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3501 *) ac_try_echo
=$ac_try;;
3503 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3507 if test -s conftest.err
; then
3509 ... rest of stderr output deleted ...
3510 10q' conftest.err
>conftest.er1
3511 cat conftest.er1
>&5
3513 rm -f conftest.er1 conftest.err
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3520 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3521 $as_echo_n "(cached) " >&6
3523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3537 if ac_fn_cxx_try_compile
"$LINENO"; then :
3542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3543 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3548 if test $ac_compiler_gnu = yes; then
3553 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3554 ac_save_CXXFLAGS
=$CXXFLAGS
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3557 if ${ac_cv_prog_cxx_g+:} false
; then :
3558 $as_echo_n "(cached) " >&6
3560 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3561 ac_cxx_werror_flag
=yes
3564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3575 if ac_fn_cxx_try_compile
"$LINENO"; then :
3576 ac_cv_prog_cxx_g
=yes
3579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3590 if ac_fn_cxx_try_compile
"$LINENO"; then :
3593 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3606 if ac_fn_cxx_try_compile
"$LINENO"; then :
3607 ac_cv_prog_cxx_g
=yes
3609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3614 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3618 if test "$ac_test_CXXFLAGS" = set; then
3619 CXXFLAGS
=$ac_save_CXXFLAGS
3620 elif test $ac_cv_prog_cxx_g = yes; then
3621 if test "$GXX" = yes; then
3627 if test "$GXX" = yes; then
3634 ac_cpp
='$CPP $CPPFLAGS'
3635 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3641 ac_cpp
='$CPP $CPPFLAGS'
3642 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3646 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3651 if test -z "$CPP"; then
3652 if ${ac_cv_prog_CPP+:} false
; then :
3653 $as_echo_n "(cached) " >&6
3655 # Double quotes because CPP needs to be expanded
3656 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3659 for ac_c_preproc_warn_flag
in '' yes
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error" is here to catch this case.
3667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3670 # include <limits.h>
3672 # include <assert.h>
3676 if ac_fn_c_try_cpp
"$LINENO"; then :
3679 # Broken: fails on valid input.
3682 rm -f conftest.err conftest.i conftest.
$ac_ext
3684 # OK, works on sane cases. Now check whether nonexistent headers
3685 # can be detected and how.
3686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <ac_nonexistent.h>
3690 if ac_fn_c_try_cpp
"$LINENO"; then :
3691 # Broken: success on invalid input.
3694 # Passes both tests.
3698 rm -f conftest.err conftest.i conftest.
$ac_ext
3701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3702 rm -f conftest.i conftest.err conftest.
$ac_ext
3703 if $ac_preproc_ok; then :
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3716 $as_echo "$CPP" >&6; }
3718 for ac_c_preproc_warn_flag
in '' yes
3720 # Use a header file that comes with gcc, so configuring glibc
3721 # with a fresh cross-compiler works.
3722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3723 # <limits.h> exists even on freestanding compilers.
3724 # On the NeXT, cc -E runs the code through the compiler's parser,
3725 # not just through cpp. "Syntax error" is here to catch this case.
3726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3729 # include <limits.h>
3731 # include <assert.h>
3735 if ac_fn_c_try_cpp
"$LINENO"; then :
3738 # Broken: fails on valid input.
3741 rm -f conftest.err conftest.i conftest.
$ac_ext
3743 # OK, works on sane cases. Now check whether nonexistent headers
3744 # can be detected and how.
3745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747 #include <ac_nonexistent.h>
3749 if ac_fn_c_try_cpp
"$LINENO"; then :
3750 # Broken: success on invalid input.
3753 # Passes both tests.
3757 rm -f conftest.err conftest.i conftest.
$ac_ext
3760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3761 rm -f conftest.i conftest.err conftest.
$ac_ext
3762 if $ac_preproc_ok; then :
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3768 See \`config.log' for more details" "$LINENO" 5; }
3772 ac_cpp
='$CPP $CPPFLAGS'
3773 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3779 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3780 if ${ac_cv_path_GREP+:} false
; then :
3781 $as_echo_n "(cached) " >&6
3783 if test -z "$GREP"; then
3784 ac_path_GREP_found
=false
3785 # Loop through the user's path and test for each of PROGNAME-LIST
3786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3787 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3790 test -z "$as_dir" && as_dir
=.
3791 for ac_prog
in grep ggrep
; do
3792 for ac_exec_ext
in '' $ac_executable_extensions; do
3793 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3794 as_fn_executable_p
"$ac_path_GREP" ||
continue
3795 # Check for GNU ac_path_GREP and select it if it is found.
3796 # Check for GNU $ac_path_GREP
3797 case `"$ac_path_GREP" --version 2>&1` in
3799 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3802 $as_echo_n 0123456789 >"conftest.in"
3805 cat "conftest.in" "conftest.in" >"conftest.tmp"
3806 mv "conftest.tmp" "conftest.in"
3807 cp "conftest.in" "conftest.nl"
3808 $as_echo 'GREP' >> "conftest.nl"
3809 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3810 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3811 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3812 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3813 # Best one so far, save it but keep looking for a better one
3814 ac_cv_path_GREP
="$ac_path_GREP"
3815 ac_path_GREP_max
=$ac_count
3817 # 10*(2^10) chars as input seems more than enough
3818 test $ac_count -gt 10 && break
3820 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3823 $ac_path_GREP_found && break 3
3828 if test -z "$ac_cv_path_GREP"; then
3829 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3832 ac_cv_path_GREP
=$GREP
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3837 $as_echo "$ac_cv_path_GREP" >&6; }
3838 GREP
="$ac_cv_path_GREP"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3842 $as_echo_n "checking for egrep... " >&6; }
3843 if ${ac_cv_path_EGREP+:} false
; then :
3844 $as_echo_n "(cached) " >&6
3846 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3847 then ac_cv_path_EGREP
="$GREP -E"
3849 if test -z "$EGREP"; then
3850 ac_path_EGREP_found
=false
3851 # Loop through the user's path and test for each of PROGNAME-LIST
3852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3853 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3856 test -z "$as_dir" && as_dir
=.
3857 for ac_prog
in egrep; do
3858 for ac_exec_ext
in '' $ac_executable_extensions; do
3859 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3860 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3861 # Check for GNU ac_path_EGREP and select it if it is found.
3862 # Check for GNU $ac_path_EGREP
3863 case `"$ac_path_EGREP" --version 2>&1` in
3865 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3868 $as_echo_n 0123456789 >"conftest.in"
3871 cat "conftest.in" "conftest.in" >"conftest.tmp"
3872 mv "conftest.tmp" "conftest.in"
3873 cp "conftest.in" "conftest.nl"
3874 $as_echo 'EGREP' >> "conftest.nl"
3875 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3876 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3877 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3878 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3879 # Best one so far, save it but keep looking for a better one
3880 ac_cv_path_EGREP
="$ac_path_EGREP"
3881 ac_path_EGREP_max
=$ac_count
3883 # 10*(2^10) chars as input seems more than enough
3884 test $ac_count -gt 10 && break
3886 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3889 $ac_path_EGREP_found && break 3
3894 if test -z "$ac_cv_path_EGREP"; then
3895 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3898 ac_cv_path_EGREP
=$EGREP
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3904 $as_echo "$ac_cv_path_EGREP" >&6; }
3905 EGREP
="$ac_cv_path_EGREP"
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3909 $as_echo_n "checking for ANSI C header files... " >&6; }
3910 if ${ac_cv_header_stdc+:} false
; then :
3911 $as_echo_n "(cached) " >&6
3913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3928 if ac_fn_c_try_compile
"$LINENO"; then :
3929 ac_cv_header_stdc
=yes
3931 ac_cv_header_stdc
=no
3933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3935 if test $ac_cv_header_stdc = yes; then
3936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 $EGREP "memchr" >/dev
/null
2>&1; then :
3946 ac_cv_header_stdc
=no
3952 if test $ac_cv_header_stdc = yes; then
3953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3960 $EGREP "free" >/dev
/null
2>&1; then :
3963 ac_cv_header_stdc
=no
3969 if test $ac_cv_header_stdc = yes; then
3970 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3971 if test "$cross_compiling" = yes; then :
3974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3978 #if ((' ' & 0x0FF) == 0x020)
3979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3982 # define ISLOWER(c) \
3983 (('a' <= (c) && (c) <= 'i') \
3984 || ('j' <= (c) && (c) <= 'r') \
3985 || ('s' <= (c) && (c) <= 'z'))
3986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3994 for (i = 0; i < 256; i++)
3995 if (XOR (islower (i), ISLOWER (i))
3996 || toupper (i) != TOUPPER (i))
4001 if ac_fn_c_try_run
"$LINENO"; then :
4004 ac_cv_header_stdc
=no
4006 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4007 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4013 $as_echo "$ac_cv_header_stdc" >&6; }
4014 if test $ac_cv_header_stdc = yes; then
4016 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4021 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4022 inttypes.h stdint.h unistd.h
4024 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4027 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4028 cat >>confdefs.h
<<_ACEOF
4029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4038 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4039 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4046 if test "$MINIX" = yes; then
4048 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4051 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4054 $as_echo "#define _MINIX 1" >>confdefs.h
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4060 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4061 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4062 $as_echo_n "(cached) " >&6
4064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4067 # define __EXTENSIONS__ 1
4068 $ac_includes_default
4077 if ac_fn_c_try_compile
"$LINENO"; then :
4078 ac_cv_safe_to_define___extensions__
=yes
4080 ac_cv_safe_to_define___extensions__
=no
4082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4085 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4086 test $ac_cv_safe_to_define___extensions__ = yes &&
4087 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4089 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4091 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4093 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4095 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4099 # Check whether --enable-largefile was given.
4100 if test "${enable_largefile+set}" = set; then :
4101 enableval
=$enable_largefile;
4104 if test "$enable_largefile" != no
; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4107 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4108 if ${ac_cv_sys_largefile_CC+:} false
; then :
4109 $as_echo_n "(cached) " >&6
4111 ac_cv_sys_largefile_CC
=no
4112 if test "$GCC" != yes; then
4115 # IRIX 6.2 and later do not support large files by default,
4116 # so use the C compiler's -n32 option if that helps.
4117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119 #include <sys/types.h>
4120 /* Check that off_t can represent 2**63 - 1 correctly.
4121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4122 since some C++ compilers masquerading as C compilers
4123 incorrectly reject 9223372036854775807. */
4124 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4126 && LARGE_OFF_T % 2147483647 == 1)
4136 if ac_fn_c_try_compile
"$LINENO"; then :
4139 rm -f core conftest.err conftest.
$ac_objext
4141 if ac_fn_c_try_compile
"$LINENO"; then :
4142 ac_cv_sys_largefile_CC
=' -n32'; break
4144 rm -f core conftest.err conftest.
$ac_objext
4148 rm -f conftest.
$ac_ext
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4152 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4153 if test "$ac_cv_sys_largefile_CC" != no
; then
4154 CC
=$CC$ac_cv_sys_largefile_CC
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4158 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4159 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4160 $as_echo_n "(cached) " >&6
4163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <sys/types.h>
4166 /* Check that off_t can represent 2**63 - 1 correctly.
4167 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4168 since some C++ compilers masquerading as C compilers
4169 incorrectly reject 9223372036854775807. */
4170 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4171 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4172 && LARGE_OFF_T % 2147483647 == 1)
4182 if ac_fn_c_try_compile
"$LINENO"; then :
4183 ac_cv_sys_file_offset_bits
=no
; break
4185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #define _FILE_OFFSET_BITS 64
4189 #include <sys/types.h>
4190 /* Check that off_t can represent 2**63 - 1 correctly.
4191 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4192 since some C++ compilers masquerading as C compilers
4193 incorrectly reject 9223372036854775807. */
4194 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4195 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4196 && LARGE_OFF_T % 2147483647 == 1)
4206 if ac_fn_c_try_compile
"$LINENO"; then :
4207 ac_cv_sys_file_offset_bits
=64; break
4209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4210 ac_cv_sys_file_offset_bits
=unknown
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4215 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4216 case $ac_cv_sys_file_offset_bits in #(
4219 cat >>confdefs.h
<<_ACEOF
4220 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4225 if test $ac_cv_sys_file_offset_bits = unknown
; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4227 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4228 if ${ac_cv_sys_large_files+:} false
; then :
4229 $as_echo_n "(cached) " >&6
4232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <sys/types.h>
4235 /* Check that off_t can represent 2**63 - 1 correctly.
4236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4237 since some C++ compilers masquerading as C compilers
4238 incorrectly reject 9223372036854775807. */
4239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4241 && LARGE_OFF_T % 2147483647 == 1)
4251 if ac_fn_c_try_compile
"$LINENO"; then :
4252 ac_cv_sys_large_files
=no
; break
4254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #define _LARGE_FILES 1
4258 #include <sys/types.h>
4259 /* Check that off_t can represent 2**63 - 1 correctly.
4260 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4261 since some C++ compilers masquerading as C compilers
4262 incorrectly reject 9223372036854775807. */
4263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4265 && LARGE_OFF_T % 2147483647 == 1)
4275 if ac_fn_c_try_compile
"$LINENO"; then :
4276 ac_cv_sys_large_files
=1; break
4278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4279 ac_cv_sys_large_files
=unknown
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4284 $as_echo "$ac_cv_sys_large_files" >&6; }
4285 case $ac_cv_sys_large_files in #(
4288 cat >>confdefs.h
<<_ACEOF
4289 #define _LARGE_FILES $ac_cv_sys_large_files
4301 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4302 if test -f "$ac_dir/install-sh"; then
4304 ac_install_sh
="$ac_aux_dir/install-sh -c"
4306 elif test -f "$ac_dir/install.sh"; then
4308 ac_install_sh
="$ac_aux_dir/install.sh -c"
4310 elif test -f "$ac_dir/shtool"; then
4312 ac_install_sh
="$ac_aux_dir/shtool install -c"
4316 if test -z "$ac_aux_dir"; then
4317 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4320 # These three variables are undocumented and unsupported,
4321 # and are intended to be withdrawn in a future Autoconf release.
4322 # They can cause serious problems if a builder's source tree is in a directory
4323 # whose full name contains unusual characters.
4324 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4325 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4326 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4329 # Make sure we can run config.sub.
4330 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4331 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4334 $as_echo_n "checking build system type... " >&6; }
4335 if ${ac_cv_build+:} false
; then :
4336 $as_echo_n "(cached) " >&6
4338 ac_build_alias
=$build_alias
4339 test "x$ac_build_alias" = x
&&
4340 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4341 test "x$ac_build_alias" = x
&&
4342 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4343 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4344 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4348 $as_echo "$ac_cv_build" >&6; }
4349 case $ac_cv_build in
4351 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4354 ac_save_IFS
=$IFS; IFS
='-'
4360 # Remember, the first character of IFS is used to create $*,
4361 # except with old shells:
4364 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4368 $as_echo_n "checking host system type... " >&6; }
4369 if ${ac_cv_host+:} false
; then :
4370 $as_echo_n "(cached) " >&6
4372 if test "x$host_alias" = x
; then
4373 ac_cv_host
=$ac_cv_build
4375 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4376 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4381 $as_echo "$ac_cv_host" >&6; }
4384 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4387 ac_save_IFS
=$IFS; IFS
='-'
4393 # Remember, the first character of IFS is used to create $*,
4394 # except with old shells:
4397 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4401 $as_echo_n "checking target system type... " >&6; }
4402 if ${ac_cv_target+:} false
; then :
4403 $as_echo_n "(cached) " >&6
4405 if test "x$target_alias" = x
; then
4406 ac_cv_target
=$ac_cv_host
4408 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4409 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4414 $as_echo "$ac_cv_target" >&6; }
4415 case $ac_cv_target in
4417 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4419 target
=$ac_cv_target
4420 ac_save_IFS
=$IFS; IFS
='-'
4426 # Remember, the first character of IFS is used to create $*,
4427 # except with old shells:
4430 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4433 # The aliases save the names the user supplied, while $host etc.
4434 # will get canonicalized.
4435 test -n "$target_alias" &&
4436 test "$program_prefix$program_suffix$program_transform_name" = \
4438 program_prefix
=${target_alias}-
4441 # Find a good install program. We prefer a C program (faster),
4442 # so one script is as good as another. But avoid the broken or
4443 # incompatible versions:
4444 # SysV /etc/install, /usr/sbin/install
4445 # SunOS /usr/etc/install
4446 # IRIX /sbin/install
4448 # AmigaOS /C/install, which installs bootblocks on floppy discs
4449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4452 # OS/2's system install, which has a completely different semantic
4453 # ./install, which can be erroneously created by make from ./install.sh.
4454 # Reject install programs that cannot install multiple files.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4456 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4457 if test -z "$INSTALL"; then
4458 if ${ac_cv_path_install+:} false
; then :
4459 $as_echo_n "(cached) " >&6
4461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir
=.
4466 # Account for people who put trailing slashes in PATH elements.
4467 case $as_dir/ in #((
4468 .
/ | .
// |
/[cC
]/* | \
4469 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4470 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4473 # OSF1 and SCO ODT 3.0 have their own names for install.
4474 # Don't use installbsd from OSF since it installs stuff as root
4476 for ac_prog
in ginstall scoinst
install; do
4477 for ac_exec_ext
in '' $ac_executable_extensions; do
4478 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4479 if test $ac_prog = install &&
4480 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4481 # AIX install. It has an incompatible calling convention.
4483 elif test $ac_prog = install &&
4484 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4485 # program-specific install script used by HP pwplus--don't use.
4488 rm -rf conftest.one conftest.two conftest.dir
4489 echo one
> conftest.one
4490 echo two
> conftest.two
4492 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4493 test -s conftest.one
&& test -s conftest.two
&&
4494 test -s conftest.dir
/conftest.one
&&
4495 test -s conftest.dir
/conftest.two
4497 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4510 rm -rf conftest.one conftest.two conftest.dir
4513 if test "${ac_cv_path_install+set}" = set; then
4514 INSTALL
=$ac_cv_path_install
4516 # As a last resort, use the slow shell script. Don't cache a
4517 # value for INSTALL within a source directory, because that will
4518 # break other packages using the cache if that directory is
4519 # removed, or if the value is a relative name.
4520 INSTALL
=$ac_install_sh
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4524 $as_echo "$INSTALL" >&6; }
4526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4527 # It thinks the first close brace ends the variable substitution.
4528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4532 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4534 if test -n "$ac_tool_prefix"; then
4535 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4536 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_prog_AR+:} false
; then :
4540 $as_echo_n "(cached) " >&6
4542 if test -n "$AR"; then
4543 ac_cv_prog_AR
="$AR" # Let the user override the test.
4545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir
=.
4550 for ac_exec_ext
in '' $ac_executable_extensions; do
4551 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 if test -n "$AR"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4565 $as_echo "$AR" >&6; }
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4573 if test -z "$ac_cv_prog_AR"; then
4575 # Extract the first word of "ar", so it can be a program name with args.
4576 set dummy
ar; ac_word
=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4580 $as_echo_n "(cached) " >&6
4582 if test -n "$ac_ct_AR"; then
4583 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir
=.
4590 for ac_exec_ext
in '' $ac_executable_extensions; do
4591 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4592 ac_cv_prog_ac_ct_AR
="ar"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4603 if test -n "$ac_ct_AR"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4605 $as_echo "$ac_ct_AR" >&6; }
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4611 if test "x$ac_ct_AR" = x
; then
4614 case $cross_compiling:$ac_tool_warned in
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618 ac_tool_warned
=yes ;;
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4628 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if ${ac_cv_prog_RANLIB+:} false
; then :
4632 $as_echo_n "(cached) " >&6
4634 if test -n "$RANLIB"; then
4635 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir
=.
4642 for ac_exec_ext
in '' $ac_executable_extensions; do
4643 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 RANLIB
=$ac_cv_prog_RANLIB
4655 if test -n "$RANLIB"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4657 $as_echo "$RANLIB" >&6; }
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4665 if test -z "$ac_cv_prog_RANLIB"; then
4666 ac_ct_RANLIB
=$RANLIB
4667 # Extract the first word of "ranlib", so it can be a program name with args.
4668 set dummy ranlib
; ac_word
=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4672 $as_echo_n "(cached) " >&6
4674 if test -n "$ac_ct_RANLIB"; then
4675 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir
=.
4682 for ac_exec_ext
in '' $ac_executable_extensions; do
4683 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4684 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4695 if test -n "$ac_ct_RANLIB"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4697 $as_echo "$ac_ct_RANLIB" >&6; }
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4703 if test "x$ac_ct_RANLIB" = x
; then
4706 case $cross_compiling:$ac_tool_warned in
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4710 ac_tool_warned
=yes ;;
4712 RANLIB
=$ac_ct_RANLIB
4715 RANLIB
="$ac_cv_prog_RANLIB"
4719 test "$program_prefix" != NONE
&&
4720 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4721 # Use a double $ so make ignores it.
4722 test "$program_suffix" != NONE
&&
4723 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4724 # Double any \ or $.
4725 # By default was `s,x,x', remove it if useless.
4726 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4727 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4730 # We require a C++11 compiler. Check if one is available, and if
4731 # necessary, set CXX_DIALECT to some -std=xxx switch.
4733 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
4735 ac_cpp
='$CXXCPP $CPPFLAGS'
4736 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4742 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4743 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
4744 $as_echo_n "(cached) " >&6
4746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4750 // If the compiler admits that it is not ready for C++11, why torture it?
4751 // Hopefully, this will speed up the test.
4755 #error "This is not a C++ compiler"
4757 #elif __cplusplus < 201103L
4759 #error "This is not a C++11 compiler"
4766 namespace test_static_assert
4769 template <typename T>
4772 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4777 namespace test_final_override
4785 struct Derived : public Base
4787 virtual void f() override {}
4792 namespace test_double_right_angle_brackets
4795 template < typename T >
4798 typedef check<void> single_type;
4799 typedef check<check<void>> double_type;
4800 typedef check<check<check<void>>> triple_type;
4801 typedef check<check<check<check<void>>>> quadruple_type;
4805 namespace test_decltype
4818 namespace test_type_deduction
4821 template < typename T1, typename T2 >
4824 static const bool value = false;
4827 template < typename T >
4828 struct is_same<T, T>
4830 static const bool value = true;
4833 template < typename T1, typename T2 >
4835 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4841 test(const int c, volatile int v)
4843 static_assert(is_same<int, decltype(0)>::value == true, "");
4844 static_assert(is_same<int, decltype(c)>::value == false, "");
4845 static_assert(is_same<int, decltype(v)>::value == false, "");
4848 auto sumi = ac + av + 'x';
4849 auto sumf = ac + av + 1.0;
4850 static_assert(is_same<int, decltype(ac)>::value == true, "");
4851 static_assert(is_same<int, decltype(av)>::value == true, "");
4852 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4853 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4854 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4855 return (sumf > 0.0) ? sumi : add(c, v);
4860 namespace test_noexcept
4863 int f() { return 0; }
4864 int g() noexcept { return 0; }
4866 static_assert(noexcept(f()) == false, "");
4867 static_assert(noexcept(g()) == true, "");
4871 namespace test_constexpr
4874 template < typename CharT >
4875 unsigned long constexpr
4876 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4878 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4881 template < typename CharT >
4882 unsigned long constexpr
4883 strlen_c(const CharT *const s) noexcept
4885 return strlen_c_r(s, 0UL);
4888 static_assert(strlen_c("") == 0UL, "");
4889 static_assert(strlen_c("1") == 1UL, "");
4890 static_assert(strlen_c("example") == 7UL, "");
4891 static_assert(strlen_c("another\0example") == 7UL, "");
4895 namespace test_rvalue_references
4901 static constexpr int value = N;
4904 answer<1> f(int&) { return answer<1>(); }
4905 answer<2> f(const int&) { return answer<2>(); }
4906 answer<3> f(int&&) { return answer<3>(); }
4913 static_assert(decltype(f(i))::value == 1, "");
4914 static_assert(decltype(f(c))::value == 2, "");
4915 static_assert(decltype(f(0))::value == 3, "");
4920 namespace test_uniform_initialization
4925 static const int zero {};
4926 static const int one {1};
4929 static_assert(test::zero == 0, "");
4930 static_assert(test::one == 1, "");
4934 namespace test_lambdas
4940 auto lambda1 = [](){};
4941 auto lambda2 = lambda1;
4949 auto a = [](int i, int j){ return i + j; }(1, 2);
4950 auto b = []() -> int { return '0'; }();
4951 auto c = [=](){ return a + b; }();
4952 auto d = [&](){ return c; }();
4953 auto e = [a, &b](int x) mutable {
4954 const auto identity = [](int y){ return y; };
4955 for (auto i = 0; i < a; ++i)
4957 return x + identity(a + b);
4959 return a + b + c + d + e;
4965 const auto nullary = [](){ return 0; };
4966 const auto unary = [](int x){ return x; };
4967 using nullary_t = decltype(nullary);
4968 using unary_t = decltype(unary);
4969 const auto higher1st = [](nullary_t f){ return f(); };
4970 const auto higher2nd = [unary](nullary_t f1){
4971 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
4973 return higher1st(nullary) + higher2nd(nullary)(unary);
4978 namespace test_variadic_templates
4984 template <int N0, int... N1toN>
4985 struct sum<N0, N1toN...>
4987 static constexpr auto value = N0 + sum<N1toN...>::value;
4993 static constexpr auto value = 0;
4996 static_assert(sum<>::value == 0, "");
4997 static_assert(sum<1>::value == 1, "");
4998 static_assert(sum<23>::value == 23, "");
4999 static_assert(sum<1, 2>::value == 3, "");
5000 static_assert(sum<5, 5, 11>::value == 21, "");
5001 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5005 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5006 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5008 namespace test_template_alias_sfinae
5013 template<typename T>
5014 using member = typename T::member_type;
5016 template<typename T>
5019 template<typename T>
5020 void func(member<T>*) {}
5024 void test() { func<foo>(0); }
5028 } // namespace cxx11
5030 #endif // __cplusplus >= 201103L
5035 if ac_fn_cxx_try_compile
"$LINENO"; then :
5036 ax_cv_cxx_compile_cxx11
=yes
5038 ax_cv_cxx_compile_cxx11
=no
5040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5043 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5044 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5048 if test x
$ac_success = xno
; then
5049 for alternative
in ${ax_cxx_compile_alternatives}; do
5050 switch
="-std=gnu++${alternative}"
5051 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5053 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5054 if eval \
${$cachevar+:} false
; then :
5055 $as_echo_n "(cached) " >&6
5059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5063 // If the compiler admits that it is not ready for C++11, why torture it?
5064 // Hopefully, this will speed up the test.
5068 #error "This is not a C++ compiler"
5070 #elif __cplusplus < 201103L
5072 #error "This is not a C++11 compiler"
5079 namespace test_static_assert
5082 template <typename T>
5085 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5090 namespace test_final_override
5098 struct Derived : public Base
5100 virtual void f() override {}
5105 namespace test_double_right_angle_brackets
5108 template < typename T >
5111 typedef check<void> single_type;
5112 typedef check<check<void>> double_type;
5113 typedef check<check<check<void>>> triple_type;
5114 typedef check<check<check<check<void>>>> quadruple_type;
5118 namespace test_decltype
5131 namespace test_type_deduction
5134 template < typename T1, typename T2 >
5137 static const bool value = false;
5140 template < typename T >
5141 struct is_same<T, T>
5143 static const bool value = true;
5146 template < typename T1, typename T2 >
5148 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5154 test(const int c, volatile int v)
5156 static_assert(is_same<int, decltype(0)>::value == true, "");
5157 static_assert(is_same<int, decltype(c)>::value == false, "");
5158 static_assert(is_same<int, decltype(v)>::value == false, "");
5161 auto sumi = ac + av + 'x';
5162 auto sumf = ac + av + 1.0;
5163 static_assert(is_same<int, decltype(ac)>::value == true, "");
5164 static_assert(is_same<int, decltype(av)>::value == true, "");
5165 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5166 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5167 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5168 return (sumf > 0.0) ? sumi : add(c, v);
5173 namespace test_noexcept
5176 int f() { return 0; }
5177 int g() noexcept { return 0; }
5179 static_assert(noexcept(f()) == false, "");
5180 static_assert(noexcept(g()) == true, "");
5184 namespace test_constexpr
5187 template < typename CharT >
5188 unsigned long constexpr
5189 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5191 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5194 template < typename CharT >
5195 unsigned long constexpr
5196 strlen_c(const CharT *const s) noexcept
5198 return strlen_c_r(s, 0UL);
5201 static_assert(strlen_c("") == 0UL, "");
5202 static_assert(strlen_c("1") == 1UL, "");
5203 static_assert(strlen_c("example") == 7UL, "");
5204 static_assert(strlen_c("another\0example") == 7UL, "");
5208 namespace test_rvalue_references
5214 static constexpr int value = N;
5217 answer<1> f(int&) { return answer<1>(); }
5218 answer<2> f(const int&) { return answer<2>(); }
5219 answer<3> f(int&&) { return answer<3>(); }
5226 static_assert(decltype(f(i))::value == 1, "");
5227 static_assert(decltype(f(c))::value == 2, "");
5228 static_assert(decltype(f(0))::value == 3, "");
5233 namespace test_uniform_initialization
5238 static const int zero {};
5239 static const int one {1};
5242 static_assert(test::zero == 0, "");
5243 static_assert(test::one == 1, "");
5247 namespace test_lambdas
5253 auto lambda1 = [](){};
5254 auto lambda2 = lambda1;
5262 auto a = [](int i, int j){ return i + j; }(1, 2);
5263 auto b = []() -> int { return '0'; }();
5264 auto c = [=](){ return a + b; }();
5265 auto d = [&](){ return c; }();
5266 auto e = [a, &b](int x) mutable {
5267 const auto identity = [](int y){ return y; };
5268 for (auto i = 0; i < a; ++i)
5270 return x + identity(a + b);
5272 return a + b + c + d + e;
5278 const auto nullary = [](){ return 0; };
5279 const auto unary = [](int x){ return x; };
5280 using nullary_t = decltype(nullary);
5281 using unary_t = decltype(unary);
5282 const auto higher1st = [](nullary_t f){ return f(); };
5283 const auto higher2nd = [unary](nullary_t f1){
5284 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5286 return higher1st(nullary) + higher2nd(nullary)(unary);
5291 namespace test_variadic_templates
5297 template <int N0, int... N1toN>
5298 struct sum<N0, N1toN...>
5300 static constexpr auto value = N0 + sum<N1toN...>::value;
5306 static constexpr auto value = 0;
5309 static_assert(sum<>::value == 0, "");
5310 static_assert(sum<1>::value == 1, "");
5311 static_assert(sum<23>::value == 23, "");
5312 static_assert(sum<1, 2>::value == 3, "");
5313 static_assert(sum<5, 5, 11>::value == 21, "");
5314 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5318 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5319 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5321 namespace test_template_alias_sfinae
5326 template<typename T>
5327 using member = typename T::member_type;
5329 template<typename T>
5332 template<typename T>
5333 void func(member<T>*) {}
5337 void test() { func<foo>(0); }
5341 } // namespace cxx11
5343 #endif // __cplusplus >= 201103L
5348 if ac_fn_cxx_try_compile
"$LINENO"; then :
5353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5356 eval ac_res
=\$
$cachevar
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5358 $as_echo "$ac_res" >&6; }
5359 if eval test x\$
$cachevar = xyes
; then
5360 CXX_DIALECT
="$switch"
5367 if test x
$ac_success = xno
; then
5368 for alternative
in ${ax_cxx_compile_alternatives}; do
5369 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5370 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5372 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5373 if eval \${$cachevar+:} false; then :
5374 $as_echo_n "(cached
) " >&6
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5382 // If the compiler admits that it is not ready for C++11, why torture it?
5383 // Hopefully, this will speed up the test.
5387 #error "This is not a C
++ compiler
"
5389 #elif __cplusplus < 201103L
5391 #error "This is not a C
++11 compiler
"
5398 namespace test_static_assert
5401 template <typename T>
5404 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5409 namespace test_final_override
5417 struct Derived : public Base
5419 virtual void f() override {}
5424 namespace test_double_right_angle_brackets
5427 template < typename T >
5430 typedef check<void> single_type;
5431 typedef check<check<void>> double_type;
5432 typedef check<check<check<void>>> triple_type;
5433 typedef check<check<check<check<void>>>> quadruple_type;
5437 namespace test_decltype
5450 namespace test_type_deduction
5453 template < typename T1, typename T2 >
5456 static const bool value = false;
5459 template < typename T >
5460 struct is_same<T, T>
5462 static const bool value = true;
5465 template < typename T1, typename T2 >
5467 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5473 test(const int c, volatile int v)
5475 static_assert(is_same<int, decltype(0)>::value == true, "");
5476 static_assert(is_same<int, decltype(c)>::value == false, "");
5477 static_assert(is_same<int, decltype(v)>::value == false, "");
5480 auto sumi = ac + av + 'x';
5481 auto sumf = ac + av + 1.0;
5482 static_assert(is_same<int, decltype(ac)>::value == true, "");
5483 static_assert(is_same<int, decltype(av)>::value == true, "");
5484 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5485 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5486 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5487 return (sumf > 0.0) ? sumi : add(c, v);
5492 namespace test_noexcept
5495 int f() { return 0; }
5496 int g() noexcept { return 0; }
5498 static_assert(noexcept(f()) == false, "");
5499 static_assert(noexcept(g()) == true, "");
5503 namespace test_constexpr
5506 template < typename CharT >
5507 unsigned long constexpr
5508 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5510 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5513 template < typename CharT >
5514 unsigned long constexpr
5515 strlen_c(const CharT *const s) noexcept
5517 return strlen_c_r(s, 0UL);
5520 static_assert(strlen_c("") == 0UL, "");
5521 static_assert(strlen_c("1") == 1UL, "");
5522 static_assert(strlen_c("example
") == 7UL, "");
5523 static_assert(strlen_c("another\
0example
") == 7UL, "");
5527 namespace test_rvalue_references
5533 static constexpr int value = N;
5536 answer<1> f(int&) { return answer<1>(); }
5537 answer<2> f(const int&) { return answer<2>(); }
5538 answer<3> f(int&&) { return answer<3>(); }
5545 static_assert(decltype(f(i))::value == 1, "");
5546 static_assert(decltype(f(c))::value == 2, "");
5547 static_assert(decltype(f(0))::value == 3, "");
5552 namespace test_uniform_initialization
5557 static const int zero {};
5558 static const int one {1};
5561 static_assert(test::zero == 0, "");
5562 static_assert(test::one == 1, "");
5566 namespace test_lambdas
5572 auto lambda1 = [](){};
5573 auto lambda2 = lambda1;
5581 auto a = [](int i, int j){ return i + j; }(1, 2);
5582 auto b = []() -> int { return '0'; }();
5583 auto c = [=](){ return a + b; }();
5584 auto d = [&](){ return c; }();
5585 auto e = [a, &b](int x) mutable {
5586 const auto identity = [](int y){ return y; };
5587 for (auto i = 0; i < a; ++i)
5589 return x + identity(a + b);
5591 return a + b + c + d + e;
5597 const auto nullary = [](){ return 0; };
5598 const auto unary = [](int x){ return x; };
5599 using nullary_t = decltype(nullary);
5600 using unary_t = decltype(unary);
5601 const auto higher1st = [](nullary_t f){ return f(); };
5602 const auto higher2nd = [unary](nullary_t f1){
5603 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5605 return higher1st(nullary) + higher2nd(nullary)(unary);
5610 namespace test_variadic_templates
5616 template <int N0, int... N1toN>
5617 struct sum<N0, N1toN...>
5619 static constexpr auto value = N0 + sum<N1toN...>::value;
5625 static constexpr auto value = 0;
5628 static_assert(sum<>::value == 0, "");
5629 static_assert(sum<1>::value == 1, "");
5630 static_assert(sum<23>::value == 23, "");
5631 static_assert(sum<1, 2>::value == 3, "");
5632 static_assert(sum<5, 5, 11>::value == 21, "");
5633 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5637 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5638 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5640 namespace test_template_alias_sfinae
5645 template<typename T>
5646 using member = typename T::member_type;
5648 template<typename T>
5651 template<typename T>
5652 void func(member<T>*) {}
5656 void test() { func<foo>(0); }
5660 } // namespace cxx11
5662 #endif // __cplusplus >= 201103L
5667 if ac_fn_cxx_try_compile "$LINENO"; then :
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 eval ac_res=\$$cachevar
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5677 $as_echo "$ac_res" >&6; }
5678 if eval test x\$$cachevar = xyes; then
5679 CXX_DIALECT="$switch"
5684 if test x$ac_success = xyes; then
5690 ac_cpp='$CPP $CPPFLAGS'
5691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5695 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5696 if test x$ac_success = xno; then
5697 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5700 if test x$ac_success = xno; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5703 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5707 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5715 $as_echo_n "checking for ANSI C header files... " >&6; }
5716 if ${ac_cv_header_stdc+:} false
; then :
5717 $as_echo_n "(cached) " >&6
5719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5734 if ac_fn_c_try_compile
"$LINENO"; then :
5735 ac_cv_header_stdc
=yes
5737 ac_cv_header_stdc
=no
5739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5741 if test $ac_cv_header_stdc = yes; then
5742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5749 $EGREP "memchr" >/dev
/null
2>&1; then :
5752 ac_cv_header_stdc
=no
5758 if test $ac_cv_header_stdc = yes; then
5759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5766 $EGREP "free" >/dev
/null
2>&1; then :
5769 ac_cv_header_stdc
=no
5775 if test $ac_cv_header_stdc = yes; then
5776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5777 if test "$cross_compiling" = yes; then :
5780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5784 #if ((' ' & 0x0FF) == 0x020)
5785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5788 # define ISLOWER(c) \
5789 (('a' <= (c) && (c) <= 'i') \
5790 || ('j' <= (c) && (c) <= 'r') \
5791 || ('s' <= (c) && (c) <= 'z'))
5792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5800 for (i = 0; i < 256; i++)
5801 if (XOR (islower (i), ISLOWER (i))
5802 || toupper (i) != TOUPPER (i))
5807 if ac_fn_c_try_run
"$LINENO"; then :
5810 ac_cv_header_stdc
=no
5812 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5813 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5819 $as_echo "$ac_cv_header_stdc" >&6; }
5820 if test $ac_cv_header_stdc = yes; then
5822 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5827 # Set the 'development' global.
5828 .
$srcdir/..
/..
/bfd
/development.sh
5830 # Enable -lmcheck by default (it provides cheap-enough memory
5831 # mangling), but turn it off for releases.
5832 if $development; then
5833 libmcheck_default
=yes
5835 libmcheck_default
=no
5838 # Check whether --enable-libmcheck was given.
5839 if test "${enable_libmcheck+set}" = set; then :
5840 enableval
=$enable_libmcheck; case "${enableval}" in
5841 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
5842 no | n
) ENABLE_LIBMCHECK
="no" ;;
5843 *) as_fn_error $?
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
5848 if test -z "${ENABLE_LIBMCHECK}"; then
5849 ENABLE_LIBMCHECK
=${libmcheck_default}
5852 if test "$ENABLE_LIBMCHECK" = "yes" ; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
5854 $as_echo_n "checking for main in -lmcheck... " >&6; }
5855 if ${ac_cv_lib_mcheck_main+:} false
; then :
5856 $as_echo_n "(cached) " >&6
5858 ac_check_lib_save_LIBS
=$LIBS
5859 LIBS
="-lmcheck $LIBS"
5860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5872 if ac_fn_c_try_link
"$LINENO"; then :
5873 ac_cv_lib_mcheck_main
=yes
5875 ac_cv_lib_mcheck_main
=no
5877 rm -f core conftest.err conftest.
$ac_objext \
5878 conftest
$ac_exeext conftest.
$ac_ext
5879 LIBS
=$ac_check_lib_save_LIBS
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
5882 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
5883 if test "x$ac_cv_lib_mcheck_main" = xyes
; then :
5884 cat >>confdefs.h
<<_ACEOF
5885 #define HAVE_LIBMCHECK 1
5888 LIBS
="-lmcheck $LIBS"
5896 # Check whether we will enable the inclusion of unit tests when
5899 # The default value of this option changes depending whether we're on
5900 # development mode (in which case it's "true") or not (in which case
5902 # Check whether --enable-unit-tests was given.
5903 if test "${enable_unit_tests+set}" = set; then :
5904 enableval
=$enable_unit_tests; case "${enableval}" in
5905 yes) enable_unittests
=true
;;
5906 no
) enable_unittests
=false
;;
5907 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
5910 enable_unittests
=$development
5914 if $enable_unittests; then
5916 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
5919 srv_selftest_objs
="common/selftest.o"
5924 case ${build_alias} in
5925 "") build_noncanonical
=${build} ;;
5926 *) build_noncanonical
=${build_alias} ;;
5929 case ${host_alias} in
5930 "") host_noncanonical
=${build_noncanonical} ;;
5931 *) host_noncanonical
=${host_alias} ;;
5934 case ${target_alias} in
5935 "") target_noncanonical
=${host_noncanonical} ;;
5936 *) target_noncanonical
=${target_alias} ;;
5944 # Dependency checking.
5945 rm -rf .tst
2>/dev
/null
5946 mkdir .tst
2>/dev
/null
5947 if test -d .tst
; then
5952 rmdir .tst
2>/dev
/null
5954 DEPDIR
="${am__leading_dot}deps"
5956 ac_config_commands
="$ac_config_commands depdir"
5960 # Create sub-directories for objects and dependencies.
5961 CONFIG_SRC_SUBDIR
="arch common"
5964 ac_config_commands
="$ac_config_commands gdbdepdir"
5967 depcc
="$CC" am_compiler_list
=
5969 am_depcomp
=$ac_aux_dir/depcomp
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5971 $as_echo_n "checking dependency style of $depcc... " >&6; }
5972 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5973 $as_echo_n "(cached) " >&6
5975 if test -f "$am_depcomp"; then
5976 # We make a subdir and do the tests there. Otherwise we can end up
5977 # making bogus files that we don't know about and never remove. For
5978 # instance it was reported that on HP-UX the gcc test will end up
5979 # making a dummy file named `D' -- because `-MD' means `put the output
5982 # Copy depcomp to subdir because otherwise we won't find it if we're
5983 # using a relative directory.
5984 cp "$am_depcomp" conftest.dir
5986 # We will build objects and dependencies in a subdirectory because
5987 # it helps to detect inapplicable dependency modes. For instance
5988 # both Tru64's cc and ICC support -MD to output dependencies as a
5989 # side effect of compilation, but ICC will put the dependencies in
5990 # the current directory while Tru64 will put them in the object
5994 am_cv_CC_dependencies_compiler_type
=none
5995 if test "$am_compiler_list" = ""; then
5996 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5998 for depmode
in $am_compiler_list; do
5999 if test $depmode = none
; then break; fi
6001 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6002 # Setup a source with many dependencies, because some compilers
6003 # like to wrap large dependency lists on column 80 (with \), and
6004 # we should not choose a depcomp mode which is confused by this.
6006 # We need to recreate these files for each test, as the compiler may
6007 # overwrite some of them when testing with obscure command lines.
6008 # This happens at least with the AIX C compiler.
6010 for i
in 1 2 3 4 5 6; do
6011 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6012 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6013 # Solaris 8's {/usr,}/bin/sh.
6014 touch sub
/conftst
$i.h
6016 echo "include sub/conftest.Po" > confmf
6018 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6019 # mode. It turns out that the SunPro C++ compiler does not properly
6020 # handle `-M -o', and we need to detect this.
6021 depcmd
="depmode=$depmode \
6022 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6023 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6024 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6025 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6026 if env
$depcmd > conftest.err
2>&1 &&
6027 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6028 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6029 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6030 # icc doesn't choke on unknown options, it will just issue warnings
6031 # or remarks (even with -Werror). So we grep stderr for any message
6032 # that says an option was ignored or not supported.
6033 # When given -MP, icc 7.0 and 7.1 complain thusly:
6034 # icc: Command line warning: ignoring option '-M'; no argument required
6035 # The diagnosis changed in icc 8.0:
6036 # icc: Command line remark: option '-MP' not supported
6037 if (grep 'ignoring option' conftest.err ||
6038 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6039 am_cv_CC_dependencies_compiler_type
=$depmode
6040 $as_echo "$as_me:$LINENO: success" >&5
6044 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6045 sed -e 's/^/| /' < conftest.err
>&5
6051 am_cv_CC_dependencies_compiler_type
=none
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6056 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6057 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6058 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6059 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6064 gnulib_extra_configure_args
=
6065 # If large-file support is disabled, make sure gnulib does the same.
6066 if test "$enable_largefile" = no
; then
6067 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6070 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
6071 # to find the the source subdir to be configured directly under
6072 # gdbserver/. We need to build gnulib under some other directory not
6073 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
6074 # build it in the same directory, when building in the source dir.
6077 in_build
="build-gnulib-gdbserver"
6078 in_extra_args
="$gnulib_extra_configure_args"
6080 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6081 # so they do not pile up.
6082 ac_sub_configure_args
=
6084 eval "set x $ac_configure_args"
6088 if test -n "$ac_prev"; then
6093 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6094 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6095 ac_prev
=cache_file
;;
6096 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6097 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6100 --config-cache |
-C)
6102 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6104 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6106 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6108 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6110 --disable-option-checking)
6114 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6116 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6120 # Always prepend --prefix to ensure using the same prefix
6121 # in subdir configurations.
6122 ac_arg
="--prefix=$prefix"
6124 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6126 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6129 if test "$silent" = yes; then
6130 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6133 # Always prepend --disable-option-checking to silence warnings, since
6134 # different subdirs can have different --enable and --with options.
6135 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6140 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6142 $as_echo "$ac_msg" >&6
6143 as_dir
="$ac_dir"; as_fn_mkdir_p
6147 ac_srcdir
=$srcdir/$in_src ;;
6149 ac_srcdir
=..
/$srcdir/$in_src ;;
6154 ac_sub_configure
=$ac_srcdir/configure
6156 # Make the cache file name correct relative to the subdirectory.
6158 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6160 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6163 if test -n "$in_extra_args"; then
6164 # Add the extra args at the end.
6165 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6168 { $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
6169 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6170 # The eval makes quoting arguments work.
6171 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6172 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6173 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6179 in_src
="../../libiberty"
6180 in_build
="build-libiberty-gdbserver"
6183 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6184 # so they do not pile up.
6185 ac_sub_configure_args
=
6187 eval "set x $ac_configure_args"
6191 if test -n "$ac_prev"; then
6196 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6197 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6198 ac_prev
=cache_file
;;
6199 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6200 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6203 --config-cache |
-C)
6205 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6207 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6209 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6211 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6213 --disable-option-checking)
6217 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6219 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6223 # Always prepend --prefix to ensure using the same prefix
6224 # in subdir configurations.
6225 ac_arg
="--prefix=$prefix"
6227 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6229 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6232 if test "$silent" = yes; then
6233 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6236 # Always prepend --disable-option-checking to silence warnings, since
6237 # different subdirs can have different --enable and --with options.
6238 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6243 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6245 $as_echo "$ac_msg" >&6
6246 as_dir
="$ac_dir"; as_fn_mkdir_p
6250 ac_srcdir
=$srcdir/$in_src ;;
6252 ac_srcdir
=..
/$srcdir/$in_src ;;
6257 ac_sub_configure
=$ac_srcdir/configure
6259 # Make the cache file name correct relative to the subdirectory.
6261 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6263 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6266 if test -n "$in_extra_args"; then
6267 # Add the extra args at the end.
6268 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6271 { $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
6272 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6273 # The eval makes quoting arguments work.
6274 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6275 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6276 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6281 for ac_header
in 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
6283 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6284 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6285 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6286 cat >>confdefs.h
<<_ACEOF
6287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6294 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6295 if test "x$ac_cv_type_pid_t" = xyes
; then :
6299 cat >>confdefs.h
<<_ACEOF
6305 for ac_header
in vfork.h
6307 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6308 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6309 cat >>confdefs.h
<<_ACEOF
6310 #define HAVE_VFORK_H 1
6317 for ac_func
in fork vfork
6319 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6320 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6321 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6322 cat >>confdefs.h
<<_ACEOF
6323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6329 if test "x$ac_cv_func_fork" = xyes
; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6331 $as_echo_n "checking for working fork... " >&6; }
6332 if ${ac_cv_func_fork_works+:} false
; then :
6333 $as_echo_n "(cached) " >&6
6335 if test "$cross_compiling" = yes; then :
6336 ac_cv_func_fork_works
=cross
6338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 $ac_includes_default
6345 /* By Ruediger Kuhlmann. */
6352 if ac_fn_c_try_run
"$LINENO"; then :
6353 ac_cv_func_fork_works
=yes
6355 ac_cv_func_fork_works
=no
6357 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6358 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6363 $as_echo "$ac_cv_func_fork_works" >&6; }
6366 ac_cv_func_fork_works
=$ac_cv_func_fork
6368 if test "x$ac_cv_func_fork_works" = xcross
; then
6370 *-*-amigaos* |
*-*-msdosdjgpp*)
6371 # Override, as these systems have only a dummy fork() stub
6372 ac_cv_func_fork_works
=no
6375 ac_cv_func_fork_works
=yes
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6379 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6381 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6382 if test "x$ac_cv_func_vfork" = xyes
; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6384 $as_echo_n "checking for working vfork... " >&6; }
6385 if ${ac_cv_func_vfork_works+:} false
; then :
6386 $as_echo_n "(cached) " >&6
6388 if test "$cross_compiling" = yes; then :
6389 ac_cv_func_vfork_works
=cross
6391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 /* Thanks to Paul Eggert for this test. */
6394 $ac_includes_default
6395 #include <sys/wait.h>
6399 /* On some sparc systems, changes by the child to local and incoming
6400 argument registers are propagated back to the parent. The compiler
6401 is told about this with #include <vfork.h>, but some compilers
6402 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6403 static variable whose address is put into a register that is
6404 clobbered by the vfork. */
6407 sparc_address_test (int arg)
6409 sparc_address_test (arg) int arg;
6430 pid_t parent = getpid ();
6433 sparc_address_test (0);
6438 /* Here is another test for sparc vfork register problems. This
6439 test uses lots of local variables, at least as many local
6440 variables as main has allocated so far including compiler
6441 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6442 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6443 reuse the register of parent for one of the local variables,
6444 since it will think that parent can't possibly be used any more
6445 in this routine. Assigning to the local variable will thus
6446 munge parent in the parent process. */
6448 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6449 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6450 /* Convince the compiler that p..p7 are live; otherwise, it might
6451 use the same hardware register for all 8 local variables. */
6452 if (p != p1 || p != p2 || p != p3 || p != p4
6453 || p != p5 || p != p6 || p != p7)
6456 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6457 from child file descriptors. If the child closes a descriptor
6458 before it execs or exits, this munges the parent's descriptor
6459 as well. Test for this by closing stdout in the child. */
6460 _exit(close(fileno(stdout)) != 0);
6465 while (wait(&status) != child)
6468 /* Was there some problem with vforking? */
6471 /* Did the child fail? (This shouldn't happen.) */
6474 /* Did the vfork/compiler bug occur? */
6475 || parent != getpid()
6477 /* Did the file descriptor bug occur? */
6478 || fstat(fileno(stdout), &st) != 0
6483 if ac_fn_c_try_run
"$LINENO"; then :
6484 ac_cv_func_vfork_works
=yes
6486 ac_cv_func_vfork_works
=no
6488 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6489 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6494 $as_echo "$ac_cv_func_vfork_works" >&6; }
6497 if test "x$ac_cv_func_fork_works" = xcross
; then
6498 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6500 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6503 if test "x$ac_cv_func_vfork_works" = xyes
; then
6505 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6509 $as_echo "#define vfork fork" >>confdefs.h
6512 if test "x$ac_cv_func_fork_works" = xyes
; then
6514 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6518 for ac_func
in getauxval pread pwrite pread64 setns
6520 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6521 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6522 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6523 cat >>confdefs.h
<<_ACEOF
6524 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6531 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6532 if test "x$ac_cv_type_size_t" = xyes
; then :
6536 cat >>confdefs.h
<<_ACEOF
6537 #define size_t unsigned int
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6544 $as_echo_n "checking for ANSI C header files... " >&6; }
6545 if ${ac_cv_header_stdc+:} false
; then :
6546 $as_echo_n "(cached) " >&6
6548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6563 if ac_fn_c_try_compile
"$LINENO"; then :
6564 ac_cv_header_stdc
=yes
6566 ac_cv_header_stdc
=no
6568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6570 if test $ac_cv_header_stdc = yes; then
6571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6578 $EGREP "memchr" >/dev
/null
2>&1; then :
6581 ac_cv_header_stdc
=no
6587 if test $ac_cv_header_stdc = yes; then
6588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6595 $EGREP "free" >/dev
/null
2>&1; then :
6598 ac_cv_header_stdc
=no
6604 if test $ac_cv_header_stdc = yes; then
6605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6606 if test "$cross_compiling" = yes; then :
6609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6613 #if ((' ' & 0x0FF) == 0x020)
6614 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6615 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6617 # define ISLOWER(c) \
6618 (('a' <= (c) && (c) <= 'i') \
6619 || ('j' <= (c) && (c) <= 'r') \
6620 || ('s' <= (c) && (c) <= 'z'))
6621 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6624 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6629 for (i = 0; i < 256; i++)
6630 if (XOR (islower (i), ISLOWER (i))
6631 || toupper (i) != TOUPPER (i))
6636 if ac_fn_c_try_run
"$LINENO"; then :
6639 ac_cv_header_stdc
=no
6641 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6642 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6648 $as_echo "$ac_cv_header_stdc" >&6; }
6649 if test $ac_cv_header_stdc = yes; then
6651 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6656 # for constant arguments. Useless!
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6658 $as_echo_n "checking for working alloca.h... " >&6; }
6659 if ${ac_cv_working_alloca_h+:} false
; then :
6660 $as_echo_n "(cached) " >&6
6662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6668 char *p = (char *) alloca (2 * sizeof (int));
6674 if ac_fn_c_try_link
"$LINENO"; then :
6675 ac_cv_working_alloca_h
=yes
6677 ac_cv_working_alloca_h
=no
6679 rm -f core conftest.err conftest.
$ac_objext \
6680 conftest
$ac_exeext conftest.
$ac_ext
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6683 $as_echo "$ac_cv_working_alloca_h" >&6; }
6684 if test $ac_cv_working_alloca_h = yes; then
6686 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6691 $as_echo_n "checking for alloca... " >&6; }
6692 if ${ac_cv_func_alloca_works+:} false
; then :
6693 $as_echo_n "(cached) " >&6
6695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6698 # define alloca __builtin_alloca
6701 # include <malloc.h>
6702 # define alloca _alloca
6704 # ifdef HAVE_ALLOCA_H
6705 # include <alloca.h>
6710 # ifndef alloca /* predefined by HP cc +Olibcalls */
6711 void *alloca (size_t);
6721 char *p = (char *) alloca (1);
6727 if ac_fn_c_try_link
"$LINENO"; then :
6728 ac_cv_func_alloca_works
=yes
6730 ac_cv_func_alloca_works
=no
6732 rm -f core conftest.err conftest.
$ac_objext \
6733 conftest
$ac_exeext conftest.
$ac_ext
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6736 $as_echo "$ac_cv_func_alloca_works" >&6; }
6738 if test $ac_cv_func_alloca_works = yes; then
6740 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6743 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6744 # that cause trouble. Some versions do not even contain alloca or
6745 # contain a buggy version. If you still want to use their alloca,
6746 # use ar to extract alloca.o from them instead of compiling alloca.c.
6748 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6750 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6754 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6755 if ${ac_cv_os_cray+:} false
; then :
6756 $as_echo_n "(cached) " >&6
6758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 #if defined CRAY && ! defined CRAY2
6767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6768 $EGREP "webecray" >/dev
/null
2>&1; then :
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6777 $as_echo "$ac_cv_os_cray" >&6; }
6778 if test $ac_cv_os_cray = yes; then
6779 for ac_func
in _getb67 GETB67 getb67
; do
6780 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6781 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6782 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6784 cat >>confdefs.h
<<_ACEOF
6785 #define CRAY_STACKSEG_END $ac_func
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6795 $as_echo_n "checking stack direction for C alloca... " >&6; }
6796 if ${ac_cv_c_stack_direction+:} false
; then :
6797 $as_echo_n "(cached) " >&6
6799 if test "$cross_compiling" = yes; then :
6800 ac_cv_c_stack_direction
=0
6802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 $ac_includes_default
6806 find_stack_direction (int *addr, int depth)
6811 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6812 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6817 main (int argc, char **argv)
6819 return find_stack_direction (0, argc + !argv + 20) < 0;
6822 if ac_fn_c_try_run
"$LINENO"; then :
6823 ac_cv_c_stack_direction
=1
6825 ac_cv_c_stack_direction
=-1
6827 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6828 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6833 $as_echo "$ac_cv_c_stack_direction" >&6; }
6834 cat >>confdefs.h
<<_ACEOF
6835 #define STACK_DIRECTION $ac_cv_c_stack_direction
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6844 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6845 if ${am_cv_langinfo_codeset+:} false
; then :
6846 $as_echo_n "(cached) " >&6
6848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 #include <langinfo.h>
6854 char* cs = nl_langinfo(CODESET);
6859 if ac_fn_c_try_link
"$LINENO"; then :
6860 am_cv_langinfo_codeset
=yes
6862 am_cv_langinfo_codeset
=no
6864 rm -f core conftest.err conftest.
$ac_objext \
6865 conftest
$ac_exeext conftest.
$ac_ext
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6869 $as_echo "$am_cv_langinfo_codeset" >&6; }
6870 if test $am_cv_langinfo_codeset = yes; then
6872 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6877 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h
6879 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6880 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6881 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6882 cat >>confdefs.h
<<_ACEOF
6883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6891 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
6893 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6894 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6895 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6896 cat >>confdefs.h
<<_ACEOF
6897 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6904 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6905 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
6911 cat >>confdefs.h
<<_ACEOF
6912 #define HAVE_DECL_STRERROR $ac_have_decl
6914 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
6915 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
6921 cat >>confdefs.h
<<_ACEOF
6922 #define HAVE_DECL_STRSTR $ac_have_decl
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
6927 $as_echo_n "checking for sigsetjmp... " >&6; }
6928 if ${gdb_cv_func_sigsetjmp+:} false
; then :
6929 $as_echo_n "(cached) " >&6
6931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6939 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6944 if ac_fn_c_try_compile
"$LINENO"; then :
6945 gdb_cv_func_sigsetjmp
=yes
6947 gdb_cv_func_sigsetjmp
=no
6949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
6952 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
6953 if test $gdb_cv_func_sigsetjmp = yes; then
6955 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
6960 # Check the return and argument types of ptrace.
6963 for ac_header
in sys
/ptrace.h ptrace.h
6965 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6966 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6967 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6968 cat >>confdefs.h
<<_ACEOF
6969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6977 gdb_ptrace_headers
='
6978 #include <sys/types.h>
6979 #if HAVE_SYS_PTRACE_H
6980 # include <sys/ptrace.h>
6983 # include <unistd.h>
6986 # There is no point in checking if we don't have a prototype.
6987 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
6989 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
6995 cat >>confdefs.h
<<_ACEOF
6996 #define HAVE_DECL_PTRACE $ac_have_decl
6998 if test $ac_have_decl = 1; then :
7002 : ${gdb_cv_func_ptrace_ret='int'}
7003 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7007 # Check return type. Varargs (used on GNU/Linux) conflict with the
7008 # empty argument list, so check for that explicitly.
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
7010 $as_echo_n "checking return type of ptrace... " >&6; }
7011 if ${gdb_cv_func_ptrace_ret+:} false
; then :
7012 $as_echo_n "(cached) " >&6
7014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7020 extern long ptrace (enum __ptrace_request, ...);
7025 if ac_fn_c_try_compile
"$LINENO"; then :
7026 gdb_cv_func_ptrace_ret
='long'
7028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7034 extern int ptrace ();
7039 if ac_fn_c_try_compile
"$LINENO"; then :
7040 gdb_cv_func_ptrace_ret
='int'
7042 gdb_cv_func_ptrace_ret
='long'
7044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
7049 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
7051 cat >>confdefs.h
<<_ACEOF
7052 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
7055 # Check argument types.
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
7057 $as_echo_n "checking types of arguments for ptrace... " >&6; }
7058 if ${gdb_cv_func_ptrace_args+:} false
; then :
7059 $as_echo_n "(cached) " >&6
7062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7068 extern long ptrace (enum __ptrace_request, ...);
7073 if ac_fn_c_try_compile
"$LINENO"; then :
7074 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
7077 for gdb_arg1
in 'int' 'long'; do
7078 for gdb_arg2
in 'pid_t' 'int' 'long'; do
7079 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
7080 for gdb_arg4
in 'int' 'long' 'void *'; do
7081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7088 extern $gdb_cv_func_ptrace_ret
7089 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
7095 if ac_fn_c_try_compile
"$LINENO"; then :
7096 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
7099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7100 for gdb_arg5
in 'int *' 'int' 'long'; do
7101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7108 extern $gdb_cv_func_ptrace_ret
7109 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7115 if ac_fn_c_try_compile
"$LINENO"; then :
7117 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7126 # Provide a safe default value.
7127 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
7133 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
7134 ac_save_IFS
=$IFS; IFS
=','
7135 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7139 cat >>confdefs.h
<<_ACEOF
7140 #define PTRACE_TYPE_ARG1 $1
7144 cat >>confdefs.h
<<_ACEOF
7145 #define PTRACE_TYPE_ARG3 $3
7149 cat >>confdefs.h
<<_ACEOF
7150 #define PTRACE_TYPE_ARG4 $4
7153 if test -n "$5"; then
7155 cat >>confdefs.h
<<_ACEOF
7156 #define PTRACE_TYPE_ARG5 $5
7167 # Check whether --with-ust was given.
7168 if test "${with_ust+set}" = set; then :
7173 # Check whether --with-ust_include was given.
7174 if test "${with_ust_include+set}" = set; then :
7175 withval
=$with_ust_include;
7179 # Check whether --with-ust_lib was given.
7180 if test "${with_ust_lib+set}" = set; then :
7181 withval
=$with_ust_lib;
7195 ustlibs
="-L$with_ust/lib -lust"
7196 ustinc
="-I$with_ust/include "
7199 if test "x$with_ust_include" != x
; then
7200 ustinc
="-I$with_ust_include "
7202 if test "x$with_ust_lib" != x
; then
7203 ustlibs
="-L$with_ust_lib -lust"
7206 if test "x$with_ust" != "xno"; then
7207 saved_CFLAGS
="$CFLAGS"
7208 CFLAGS
="$CFLAGS $ustinc"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
7210 $as_echo_n "checking for ust... " >&6; }
7211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7214 #define CONFIG_UST_GDB_INTEGRATION
7215 #include <ust/ust.h>
7225 if ac_fn_c_try_compile
"$LINENO"; then :
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7227 $as_echo "yes" >&6; };
7228 $as_echo "#define HAVE_UST 1" >>confdefs.h
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
7234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7235 CFLAGS
="$saved_CFLAGS"
7238 # Flags needed for UST
7243 # Check whether --enable-werror was given.
7244 if test "${enable_werror+set}" = set; then :
7245 enableval
=$enable_werror; case "${enableval}" in
7246 yes | y
) ERROR_ON_WARNING
="yes" ;;
7247 no | n
) ERROR_ON_WARNING
="no" ;;
7248 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7253 # Enable -Werror by default when using gcc. Turn it off for releases.
7254 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
7255 ERROR_ON_WARNING
=yes
7259 if test "${ERROR_ON_WARNING}" = yes ; then
7260 WERROR_CFLAGS
="-Werror"
7263 # The options we'll try to enable.
7264 build_warnings
="-Wall -Wpointer-arith \
7265 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
7266 -Wno-switch -Wno-char-subscripts \
7267 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
7268 -Wno-sign-compare -Wno-error=maybe-uninitialized \
7269 -Wno-mismatched-tags \
7270 -Wno-error=deprecated-register \
7271 -Wsuggest-override \
7272 -Wimplicit-fallthrough=3 \
7278 # Enable -Wno-format by default when using gcc on mingw since many
7279 # GCC versions complain about %I64.
7280 build_warnings
="$build_warnings -Wno-format" ;;
7282 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
7283 # doesn't understand.
7284 build_warnings
="$build_warnings -Wno-unknown-pragmas"
7285 # Solaris 11 <unistd.h> marks vfork deprecated.
7286 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
7288 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
7289 # but there's a special case for this below.
7290 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
7293 # Check whether --enable-build-warnings was given.
7294 if test "${enable_build_warnings+set}" = set; then :
7295 enableval
=$enable_build_warnings; case "${enableval}" in
7297 no
) build_warnings
="-w";;
7298 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7299 build_warnings
="${build_warnings} ${t}";;
7300 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7301 build_warnings
="${t} ${build_warnings}";;
7302 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7304 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7305 echo "Setting compiler warning flags = $build_warnings" 6>&1
7308 # Check whether --enable-gdb-build-warnings was given.
7309 if test "${enable_gdb_build_warnings+set}" = set; then :
7310 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
7312 no
) build_warnings
="-w";;
7313 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7314 build_warnings
="${build_warnings} ${t}";;
7315 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7316 build_warnings
="${t} ${build_warnings}";;
7317 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7319 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7320 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7324 # The set of warnings supported by a C++ compiler is not the same as
7325 # of the C compiler.
7327 ac_cpp
='$CXXCPP $CPPFLAGS'
7328 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7334 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
7337 $as_echo_n "checking compiler warning flags... " >&6; }
7338 # Separate out the -Werror flag as some files just cannot be
7339 # compiled with it enabled.
7340 for w
in ${build_warnings}; do
7341 # GCC does not complain about -Wno-unknown-warning. Invert
7342 # and test -Wunknown-warning instead.
7345 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
7346 -Wformat-nonliteral)
7347 # gcc requires -Wformat before -Wformat-nonliteral
7348 # will work, so stick them together.
7357 -Werr*) WERROR_CFLAGS
=-Werror ;;
7359 # Check whether GCC accepts it.
7360 saved_CFLAGS
="$CFLAGS"
7361 CFLAGS
="$CFLAGS -Werror $wtest"
7362 saved_CXXFLAGS
="$CXXFLAGS"
7363 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
7364 if test "x$w" = "x-Wunused-variable"; then
7365 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
7366 # fixed in GCC 4.9. This test is derived from the gdb
7367 # source code that triggered this bug in GCC.
7368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 struct scoped_restore_base {};
7371 struct scoped_restore_tmpl : public scoped_restore_base {
7372 ~scoped_restore_tmpl() {}
7377 const scoped_restore_base &b = scoped_restore_tmpl();
7382 if ac_fn_cxx_try_compile
"$LINENO"; then :
7383 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7398 if ac_fn_cxx_try_compile
"$LINENO"; then :
7399 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7403 CFLAGS
="$saved_CFLAGS"
7404 CXXFLAGS
="$saved_CXXFLAGS"
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
7408 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
7414 ac_cpp='$CPP $CPPFLAGS'
7415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7423 for ac_func in dladdr
7425 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
7426 if test "x
$ac_cv_func_dladdr" = xyes; then :
7427 cat >>confdefs.h <<_ACEOF
7428 #define HAVE_DLADDR 1
7437 # Check for presence and size of long long.
7438 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
7439 if test "x
$ac_cv_type_long_long" = xyes; then :
7441 cat >>confdefs.h <<_ACEOF
7442 #define HAVE_LONG_LONG 1
7445 # The cast to long int works around a bug in the HP C Compiler
7446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7448 # This bug is HP SR number 8606223364.
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
7450 $as_echo_n "checking size of long long...
" >&6; }
7451 if ${ac_cv_sizeof_long_long+:} false; then :
7452 $as_echo_n "(cached
) " >&6
7454 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
7457 if test "$ac_cv_type_long_long" = yes; then
7458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7460 as_fn_error 77 "cannot compute sizeof (long long)
7461 See \`config.log' for more details
" "$LINENO" 5; }
7463 ac_cv_sizeof_long_long=0
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
7469 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7473 cat >>confdefs.h <<_ACEOF
7474 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7481 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
7482 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
7483 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7489 cat >>confdefs.h <<_ACEOF
7490 #define HAVE_DECL_BASENAME $ac_have_decl
7492 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
7493 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
7499 cat >>confdefs.h <<_ACEOF
7500 #define HAVE_DECL_FFS $ac_have_decl
7502 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
7503 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
7509 cat >>confdefs.h <<_ACEOF
7510 #define HAVE_DECL_ASPRINTF $ac_have_decl
7512 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7513 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
7519 cat >>confdefs.h <<_ACEOF
7520 #define HAVE_DECL_VASPRINTF $ac_have_decl
7522 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
7523 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
7529 cat >>confdefs.h <<_ACEOF
7530 #define HAVE_DECL_SNPRINTF $ac_have_decl
7532 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7533 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
7539 cat >>confdefs.h <<_ACEOF
7540 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7543 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
7544 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
7550 cat >>confdefs.h <<_ACEOF
7551 #define HAVE_DECL_STRTOL $ac_have_decl
7553 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
7554 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
7560 cat >>confdefs.h <<_ACEOF
7561 #define HAVE_DECL_STRTOUL $ac_have_decl
7563 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
7564 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
7570 cat >>confdefs.h <<_ACEOF
7571 #define HAVE_DECL_STRTOLL $ac_have_decl
7573 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
7574 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
7580 cat >>confdefs.h <<_ACEOF
7581 #define HAVE_DECL_STRTOULL $ac_have_decl
7584 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
7585 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
7591 cat >>confdefs.h <<_ACEOF
7592 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7597 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
7598 if test "x
$ac_cv_have_decl_strerror" = xyes; then :
7604 cat >>confdefs.h <<_ACEOF
7605 #define HAVE_DECL_STRERROR $ac_have_decl
7607 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
7608 if test "x
$ac_cv_have_decl_perror" = xyes; then :
7614 cat >>confdefs.h <<_ACEOF
7615 #define HAVE_DECL_PERROR $ac_have_decl
7617 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
7618 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
7624 cat >>confdefs.h <<_ACEOF
7625 #define HAVE_DECL_VASPRINTF $ac_have_decl
7627 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
7628 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
7634 cat >>confdefs.h <<_ACEOF
7635 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7639 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
7640 if test "x
$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7642 cat >>confdefs.h <<_ACEOF
7643 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7648 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
7649 if test "x
$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7651 cat >>confdefs.h <<_ACEOF
7652 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7659 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
7660 # Older amd64 Linux's don't have the fs_base and gs_base members of
7661 # `struct user_regs_struct'.
7662 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "fs_base
" "ac_cv_member_struct_user_regs_struct_fs_base
" "#include <sys/types.h>
7663 #include <sys/user.h>
7665 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
7667 cat >>confdefs.h <<_ACEOF
7668 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
7673 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "gs_base
" "ac_cv_member_struct_user_regs_struct_gs_base
" "#include <sys/types.h>
7674 #include <sys/user.h>
7676 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
7678 cat >>confdefs.h <<_ACEOF
7679 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
7687 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
7688 #include <sys/socket.h>
7691 if test "x
$ac_cv_type_socklen_t" = xyes; then :
7693 cat >>confdefs.h <<_ACEOF
7694 #define HAVE_SOCKLEN_T 1
7703 # Starting with NDK version 9, <elf.h> actually includes definitions
7704 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
7705 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
7706 # leading to conflicts with the defintions from <linux/elf.h>.
7707 # This makes it impossible for us to include both <elf.h> and
7708 # <linux/elf.h>, which means that, in practice, we do not have
7709 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
7710 # Therefore, do not try to auto-detect availability, as it would
7711 # get it wrong on this platform.
7714 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
7717 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
7719 cat >>confdefs.h <<_ACEOF
7720 #define HAVE_ELF32_AUXV_T 1
7725 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
7728 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
7730 cat >>confdefs.h <<_ACEOF
7731 #define HAVE_ELF64_AUXV_T 1
7741 # Check whether --with-pkgversion was given.
7742 if test "${with_pkgversion+set}" = set; then :
7743 withval=$with_pkgversion; case "$withval" in
7744 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
7746 *) PKGVERSION="($withval) " ;;
7757 # Check whether --with-bugurl was given.
7758 if test "${with_bugurl+set}" = set; then :
7759 withval=$with_bugurl; case "$withval" in
7760 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
7763 *) BUGURL="$withval"
7767 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
7777 REPORT_BUGS_TO="<$BUGURL>"
7778 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7785 cat >>confdefs.h <<_ACEOF
7786 #define PKGVERSION "$PKGVERSION"
7790 cat >>confdefs.h <<_ACEOF
7791 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7795 # Check for various supplementary target information (beyond the
7796 # triplet) which might affect the choices in configure.srv.
7798 i[34567]86-*-linux*)
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
7800 $as_echo_n "checking
if building
for x86-64...
" >&6; }
7801 if ${gdb_cv_i386_is_x86_64+:} false; then :
7802 $as_echo_n "(cached
) " >&6
7804 save_CPPFLAGS="$CPPFLAGS"
7805 CPPFLAGS="$CPPFLAGS $CFLAGS"
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7814 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7815 $EGREP "got it
" >/dev/null 2>&1; then :
7816 gdb_cv_i386_is_x86_64=yes
7818 gdb_cv_i386_is_x86_64=no
7822 CPPFLAGS="$save_CPPFLAGS"
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
7825 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
7830 $as_echo_n "checking
if building
for x32...
" >&6; }
7831 if ${gdb_cv_x86_is_x32+:} false; then :
7832 $as_echo_n "(cached
) " >&6
7834 save_CPPFLAGS="$CPPFLAGS"
7835 CPPFLAGS="$CPPFLAGS $CFLAGS"
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7839 #if __x86_64__ && __ILP32__
7844 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7845 $EGREP "got it
" >/dev/null 2>&1; then :
7846 gdb_cv_x86_is_x32=yes
7848 gdb_cv_x86_is_x32=no
7852 CPPFLAGS="$save_CPPFLAGS"
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
7855 $as_echo "$gdb_cv_x86_is_x32" >&6; }
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
7860 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
7861 if ${gdb_cv_m68k_is_coldfire+:} false; then :
7862 $as_echo_n "(cached
) " >&6
7864 save_CPPFLAGS="$CPPFLAGS"
7865 CPPFLAGS="$CPPFLAGS $CFLAGS"
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7869 #ifdef __mcoldfire__
7874 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7875 $EGREP "got it
" >/dev/null 2>&1; then :
7876 gdb_cv_m68k_is_coldfire=yes
7878 gdb_cv_m68k_is_coldfire=no
7882 CPPFLAGS="$save_CPPFLAGS"
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
7885 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
7889 . ${srcdir}/configure.srv
7891 # Add in the common host objects.
7892 . ${srcdir}/../common/common.host
7893 srv_host_obs="$common_host_obs"
7895 if test "${srv_mingwce}" = "yes"; then
7897 elif test "${srv_mingw}" = "yes"; then
7898 LIBS="$LIBS -lws2_32"
7899 elif test "${srv_qnx}" = "yes"; then
7900 LIBS="$LIBS -lsocket"
7901 elif test "${srv_lynxos}" = "yes"; then
7902 LIBS="$LIBS -lnetinet"
7905 if test "${srv_mingw}" = "yes"; then
7907 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7911 if test "${srv_linux_usrregs}" = "yes"; then
7913 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
7917 if test "${srv_linux_regsets}" = "yes"; then
7919 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
7923 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
7924 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
7925 $as_echo_n "(cached) " >&6
7927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929 #include <sys/ptrace.h>
7938 if ac_fn_c_try_compile
"$LINENO"; then :
7939 gdbsrv_cv_have_ptrace_getregs
=yes
7941 gdbsrv_cv_have_ptrace_getregs
=no
7943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
7947 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
7948 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
7950 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
7955 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
7956 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
7957 $as_echo_n "(cached) " >&6
7959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 #include <sys/ptrace.h>
7970 if ac_fn_c_try_compile
"$LINENO"; then :
7971 gdbsrv_cv_have_ptrace_getfpxregs
=yes
7973 gdbsrv_cv_have_ptrace_getfpxregs
=no
7975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
7979 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
7980 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
7982 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
7987 if test "${srv_linux_btrace}" = "yes"; then
7989 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
7993 if test "$ac_cv_header_sys_procfs_h" = yes; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
7995 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
7996 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
7997 $as_echo_n "(cached) " >&6
7999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8003 /* Needed for new procfs interface on sparc-solaris. */
8004 #define _STRUCTURED_PROC 1
8005 #include <sys/procfs.h>
8014 if ac_fn_c_try_compile
"$LINENO"; then :
8015 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8017 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8023 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8025 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
8029 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
8032 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
8033 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
8034 $as_echo_n "(cached) " >&6
8036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8040 /* Needed for new procfs interface on sparc-solaris. */
8041 #define _STRUCTURED_PROC 1
8042 #include <sys/procfs.h>
8051 if ac_fn_c_try_compile
"$LINENO"; then :
8052 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8054 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8060 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8062 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8066 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8069 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8070 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
8071 $as_echo_n "(cached) " >&6
8073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8077 /* Needed for new procfs interface on sparc-solaris. */
8078 #define _STRUCTURED_PROC 1
8079 #include <sys/procfs.h>
8088 if ac_fn_c_try_compile
"$LINENO"; then :
8089 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8091 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8097 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8099 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8103 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8106 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8107 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
8108 $as_echo_n "(cached) " >&6
8110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8114 /* Needed for new procfs interface on sparc-solaris. */
8115 #define _STRUCTURED_PROC 1
8116 #include <sys/procfs.h>
8125 if ac_fn_c_try_compile
"$LINENO"; then :
8126 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8128 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8134 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8136 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8140 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8143 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8144 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
8145 $as_echo_n "(cached) " >&6
8147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8151 /* Needed for new procfs interface on sparc-solaris. */
8152 #define _STRUCTURED_PROC 1
8153 #include <sys/procfs.h>
8162 if ac_fn_c_try_compile
"$LINENO"; then :
8163 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8165 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8171 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8173 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8177 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8181 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
8183 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
8184 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
8185 $as_echo_n "(cached) " >&6
8187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8190 #include <thread_db.h>
8199 if ac_fn_c_try_compile
"$LINENO"; then :
8200 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
8202 gdbserver_cv_have_thread_db_type_lwpid_t
=no
8205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8208 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
8210 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
8214 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
8218 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
8220 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
8221 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
8222 $as_echo_n "(cached) " >&6
8224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8227 #include <thread_db.h>
8236 if ac_fn_c_try_compile
"$LINENO"; then :
8237 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
8239 gdbserver_cv_have_thread_db_type_psaddr_t
=no
8242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8245 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
8247 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
8251 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8257 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8258 if ${ac_cv_lib_dl_dlopen+:} false
; then :
8259 $as_echo_n "(cached) " >&6
8261 ac_check_lib_save_LIBS
=$LIBS
8263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8266 /* Override any GCC internal prototype to avoid an error.
8267 Use char because int might match the return type of a GCC
8268 builtin and then its argument prototype would still apply. */
8281 if ac_fn_c_try_link
"$LINENO"; then :
8282 ac_cv_lib_dl_dlopen
=yes
8284 ac_cv_lib_dl_dlopen
=no
8286 rm -f core conftest.err conftest.
$ac_objext \
8287 conftest
$ac_exeext conftest.
$ac_ext
8288 LIBS
=$ac_check_lib_save_LIBS
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8291 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8292 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
8293 cat >>confdefs.h
<<_ACEOF
8294 #define HAVE_LIBDL 1
8303 srv_thread_depfiles
=
8306 if test "$srv_linux_thread_db" = "yes"; then
8307 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
8310 $as_echo_n "checking for the dynamic export flag... " >&6; }
8311 old_LDFLAGS
="$LDFLAGS"
8312 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
8314 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
8315 LDFLAGS
="$LDFLAGS $RDYNAMIC"
8316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8327 if ac_fn_c_try_link
"$LINENO"; then :
8328 found
="-Wl,--dynamic-list"
8329 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
8331 RDYNAMIC
="-rdynamic"
8332 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
8333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8344 if ac_fn_c_try_link
"$LINENO"; then :
8350 rm -f core conftest.err conftest.
$ac_objext \
8351 conftest
$ac_exeext conftest.
$ac_ext
8353 rm -f core conftest.err conftest.
$ac_objext \
8354 conftest
$ac_exeext conftest.
$ac_ext
8356 LDFLAGS
="$old_LDFLAGS"
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8358 $as_echo "$found" >&6; }
8360 srv_libs
="-lthread_db"
8363 srv_thread_depfiles
="thread-db.o proc-service.o"
8365 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
8368 $as_echo_n "checking for TD_VERSION... " >&6; }
8369 if ${gdbsrv_cv_have_td_version+:} false
; then :
8370 $as_echo_n "(cached) " >&6
8372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8374 #include <thread_db.h>
8383 if ac_fn_c_try_compile
"$LINENO"; then :
8384 gdbsrv_cv_have_td_version
=yes
8386 gdbsrv_cv_have_td_version
=no
8388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
8391 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
8392 if test $gdbsrv_cv_have_td_version = yes; then
8394 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
8400 # Check whether --with-libthread-db was given.
8401 if test "${with_libthread_db+set}" = set; then :
8402 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
8403 srv_libs
="$srv_libthread_db_path"
8408 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
8410 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
8414 if test "$srv_xmlfiles" != ""; then
8415 srv_xmlbuiltin
="xml-builtin.o"
8417 $as_echo "#define USE_XML 1" >>confdefs.h
8420 tmp_xmlfiles
=$srv_xmlfiles
8422 for f
in $tmp_xmlfiles; do
8423 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
8427 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs $srv_selftest_objs"
8428 GDBSERVER_LIBS
="$srv_libs"
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
8431 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
8432 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
8433 $as_echo_n "(cached) " >&6
8436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8442 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
8447 if ac_fn_c_try_link
"$LINENO"; then :
8448 gdbsrv_cv_have_sync_builtins
=yes
8450 gdbsrv_cv_have_sync_builtins
=no
8452 rm -f core conftest.err conftest.
$ac_objext \
8453 conftest
$ac_exeext conftest.
$ac_ext
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
8456 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
8457 if test $gdbsrv_cv_have_sync_builtins = yes; then
8459 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
8463 saved_cflags
="$CFLAGS"
8464 CFLAGS
="$CFLAGS -fvisibility=hidden"
8465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8476 if ac_fn_c_try_compile
"$LINENO"; then :
8477 gdbsrv_cv_have_visibility_hidden
=yes
8479 gdbsrv_cv_have_visibility_hidden
=no
8481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8482 CFLAGS
="$saved_cflags"
8484 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8486 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
8492 cat >>confdefs.h
<<_ACEOF
8493 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8497 if test "$cross_compiling" = yes; then :
8498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 #include <sys/personality.h>
8505 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8506 # define ADDR_NO_RANDOMIZE 0x0040000
8508 /* Test the flag could be set and stays set. */
8509 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8510 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8516 if ac_fn_c_try_link
"$LINENO"; then :
8517 gdbsrv_cv_have_personality
=true
8519 gdbsrv_cv_have_personality
=false
8521 rm -f core conftest.err conftest.
$ac_objext \
8522 conftest
$ac_exeext conftest.
$ac_ext
8524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 #include <sys/personality.h>
8531 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8532 # define ADDR_NO_RANDOMIZE 0x0040000
8534 /* Test the flag could be set and stays set. */
8535 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8536 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8542 if ac_fn_c_try_run
"$LINENO"; then :
8543 gdbsrv_cv_have_personality
=true
8545 gdbsrv_cv_have_personality
=false
8547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8548 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8551 if $gdbsrv_cv_have_personality
8554 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8562 # check whether to enable the inprocess agent
8563 if test "$ipa_obj" != "" \
8564 -a "$gdbsrv_cv_have_sync_builtins" = yes \
8565 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
8571 # Check whether --enable-inprocess-agent was given.
8572 if test "${enable_inprocess_agent+set}" = set; then :
8573 enableval
=$enable_inprocess_agent; case "$enableval" in
8574 yes) want_ipa
=true
;;
8575 no
) want_ipa
=false
;;
8576 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
8585 IPA_DEPFILES
="$ipa_obj"
8586 extra_libraries
="$extra_libraries libinproctrace.so"
8588 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
8599 GNULIB
=build-gnulib-gdbserver
/import
8602 if test x
"$STDINT_H" != x
; then
8603 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
8607 ac_config_files
="$ac_config_files Makefile"
8610 cat >confcache
<<\_ACEOF
8611 # This file is a shell script that caches the results of configure
8612 # tests run on this system so they can be shared between configure
8613 # scripts and configure runs, see configure's option --config-cache.
8614 # It is not useful on other systems. If it contains results you don't
8615 # want to keep, you may remove or edit it.
8617 # config.status only pays attention to the cache file if you give it
8618 # the --recheck option to rerun configure.
8620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8626 # The following way of writing the cache mishandles newlines in values,
8627 # but we know of no workaround that is simple, portable, and efficient.
8628 # So, we kill variables containing newlines.
8629 # Ultrix sh set writes to stderr and can't be redirected directly,
8630 # and sets the high bit in the cache file unless we assign to the vars.
8632 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8633 eval ac_val
=\$
$ac_var
8637 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8638 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8641 _ | IFS | as_nl
) ;; #(
8642 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8643 *) { eval $ac_var=; unset $ac_var;} ;;
8649 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8650 *${as_nl}ac_space
=\
*)
8651 # `set' does not quote correctly, so add quotes: double-quote
8652 # substitution turns \\\\ into \\, and sed turns \\ into \.
8655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8658 # `set' quotes correctly as required by POSIX, so do not add quotes.
8659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8668 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8670 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8672 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8673 if test -w "$cache_file"; then
8674 if test "x$cache_file" != "x/dev/null"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8676 $as_echo "$as_me: updating cache $cache_file" >&6;}
8677 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
8678 cat confcache
>"$cache_file"
8680 case $cache_file in #(
8682 mv -f confcache
"$cache_file"$$
&&
8683 mv -f "$cache_file"$$
"$cache_file" ;; #(
8685 mv -f confcache
"$cache_file" ;;
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8691 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8696 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8697 # Let make expand exec_prefix.
8698 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8700 DEFS
=-DHAVE_CONFIG_H
8705 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8706 # 1. Remove the extension, and $U if already installed.
8707 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8708 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8709 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8710 # will be set to the directory where LIBOBJS objects are built.
8711 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8712 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8716 LTLIBOBJS
=$ac_ltlibobjs
8719 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8720 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
8721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8724 : "${CONFIG_STATUS=./config.status}"
8726 ac_clean_files_save
=$ac_clean_files
8727 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8729 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8731 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8733 # Generated by $as_me.
8734 # Run this file to recreate the current configuration.
8735 # Compiler output produced by configure, useful for debugging
8736 # configure, is in config.log if it exists.
8742 SHELL=\${CONFIG_SHELL-$SHELL}
8745 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8746 ## -------------------- ##
8747 ## M4sh Initialization. ##
8748 ## -------------------- ##
8750 # Be more Bourne compatible
8751 DUALCASE
=1; export DUALCASE
# for MKS sh
8752 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8755 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8756 # is contrary to our usage. Disable this feature.
8757 alias -g '${1+"$@"}'='"$@"'
8758 setopt NO_GLOB_SUBST
8760 case `(set -o) 2>/dev/null` in #(
8772 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8773 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8776 # Prefer a ksh shell builtin over an external printf program on Solaris,
8777 # but without wasting forks for bash or zsh.
8778 if test -z "$BASH_VERSION$ZSH_VERSION" \
8779 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8780 as_echo='print
-r --'
8781 as_echo_n='print
-rn --'
8782 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8783 as_echo='printf %s
\n'
8784 as_echo_n='printf %s
'
8786 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8787 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8788 as_echo_n='/usr
/ucb
/echo -n'
8790 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8791 as_echo_n_body='eval
8795 expr "X$arg" : "X\\(.*\\)$as_nl";
8796 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8798 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8800 export as_echo_n_body
8801 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8804 as_echo='sh
-c $as_echo_body as_echo
'
8807 # The user is always right.
8808 if test "${PATH_SEPARATOR+set}" != set; then
8810 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8811 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8818 # We need space, tab and new line, in precisely that order. Quoting is
8819 # there to prevent editors from complaining about space-tab.
8820 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8821 # splitting by setting IFS to empty value.)
8824 # Find who we are. Look in the path if we contain no directory separator.
8827 *[\\/]* ) as_myself=$0 ;;
8828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir=.
8833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8839 # We did not find ourselves, most probably we were run as `sh COMMAND'
8840 # in which case we are not to be found in the path.
8841 if test "x$as_myself" = x
; then
8844 if test ! -f "$as_myself"; then
8845 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8849 # Unset variables that we do not need and which cause bugs (e.g. in
8850 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8851 # suppresses any "Segmentation fault" message there. '((' could
8852 # trigger a bug in pdksh 5.2.14.
8853 for as_var
in BASH_ENV ENV MAIL MAILPATH
8854 do eval test x\
${$as_var+set} = xset \
8855 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8868 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8871 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8872 # ----------------------------------------
8873 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8874 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8875 # script with STATUS, using 1 if that was 0.
8878 as_status
=$1; test $as_status -eq 0 && as_status
=1
8880 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8881 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8883 $as_echo "$as_me: error: $2" >&2
8884 as_fn_exit
$as_status
8888 # as_fn_set_status STATUS
8889 # -----------------------
8890 # Set $? to STATUS, without forking.
8894 } # as_fn_set_status
8898 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8908 # Portably unset VAR.
8911 { eval $1=; unset $1;}
8913 as_unset
=as_fn_unset
8914 # as_fn_append VAR VALUE
8915 # ----------------------
8916 # Append the text in VALUE to the end of the definition contained in VAR. Take
8917 # advantage of any shell optimizations that allow amortized linear growth over
8918 # repeated appends, instead of the typical quadratic growth present in naive
8920 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8921 eval 'as_fn_append ()
8932 # as_fn_arith ARG...
8933 # ------------------
8934 # Perform arithmetic evaluation on the ARGs, and store the result in the
8935 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8936 # must be portable across $(()) and expr.
8937 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8938 eval 'as_fn_arith ()
8945 as_val
=`expr "$@" || test $? -eq 1`
8950 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8951 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8957 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8958 as_basename
=basename
8963 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8969 as_me
=`$as_basename -- "$0" ||
8970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8971 X"$0" : 'X\(//\)$' \| \
8972 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8974 sed '/^.*\/\([^/][^/]*\)\/*$/{
8988 # Avoid depending upon Character Ranges.
8989 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8990 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8991 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8992 as_cr_digits
='0123456789'
8993 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8995 ECHO_C
= ECHO_N
= ECHO_T
=
8996 case `echo -n x` in #(((((
8998 case `echo 'xy\c'` in
8999 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9001 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9008 rm -f conf$$ conf$$.exe conf$$.
file
9009 if test -d conf$$.dir
; then
9010 rm -f conf$$.dir
/conf$$.
file
9013 mkdir conf$$.dir
2>/dev
/null
9015 if (echo >conf$$.
file) 2>/dev
/null
; then
9016 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9018 # ... but there are two gotchas:
9019 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9020 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9021 # In both cases, we have to default to `cp -pR'.
9022 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9024 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9032 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9033 rmdir conf$$.dir
2>/dev
/null
9038 # Create "$as_dir" as a directory, including parents if necessary.
9043 -*) as_dir
=.
/$as_dir;;
9045 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9049 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9050 *) as_qdir
=$as_dir;;
9052 as_dirs
="'$as_qdir' $as_dirs"
9053 as_dir
=`$as_dirname -- "$as_dir" ||
9054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9055 X"$as_dir" : 'X\(//\)[^/]' \| \
9056 X"$as_dir" : 'X\(//\)$' \| \
9057 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9058 $as_echo X"$as_dir" |
9059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9076 test -d "$as_dir" && break
9078 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9079 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9083 if mkdir
-p .
2>/dev
/null
; then
9084 as_mkdir_p
='mkdir -p "$as_dir"'
9086 test -d .
/-p && rmdir .
/-p
9091 # as_fn_executable_p FILE
9092 # -----------------------
9093 # Test if FILE is an executable regular file.
9094 as_fn_executable_p
()
9096 test -f "$1" && test -x "$1"
9097 } # as_fn_executable_p
9099 as_executable_p
=as_fn_executable_p
9101 # Sed expression to map a string onto a valid CPP name.
9102 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9104 # Sed expression to map a string onto a valid variable name.
9105 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9109 ## ----------------------------------- ##
9110 ## Main body of $CONFIG_STATUS script. ##
9111 ## ----------------------------------- ##
9113 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9116 # Save the log message, to keep $0 and so on meaningful, and to
9117 # report actual input values of CONFIG_FILES etc. instead of their
9118 # values after options handling.
9120 This file was extended by $as_me, which was
9121 generated by GNU Autoconf 2.69. Invocation command line was
9123 CONFIG_FILES = $CONFIG_FILES
9124 CONFIG_HEADERS = $CONFIG_HEADERS
9125 CONFIG_LINKS = $CONFIG_LINKS
9126 CONFIG_COMMANDS = $CONFIG_COMMANDS
9129 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9134 case $ac_config_files in *"
9135 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9138 case $ac_config_headers in *"
9139 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9144 # Files that config.status was made for.
9145 config_files="$ac_config_files"
9146 config_headers="$ac_config_headers"
9147 config_commands="$ac_config_commands"
9151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9153 \`$as_me' instantiates files and other configuration actions
9154 from templates according to the current configuration. Unless the files
9155 and actions are specified as TAGs, all are instantiated by default.
9157 Usage: $0 [OPTION]... [TAG]...
9159 -h, --help print this help, then exit
9160 -V, --version print version number and configuration settings, then exit
9161 --config print configuration, then exit
9162 -q, --quiet, --silent
9163 do not print progress messages
9164 -d, --debug don't remove temporary files
9165 --recheck update $as_me by reconfiguring in the same conditions
9166 --file=FILE[:TEMPLATE]
9167 instantiate the configuration file FILE
9168 --header=FILE[:TEMPLATE]
9169 instantiate the configuration header FILE
9171 Configuration files:
9174 Configuration headers:
9177 Configuration commands:
9180 Report bugs to the package provider."
9183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9184 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9187 configured by $0, generated by GNU Autoconf 2.69,
9188 with options \\"\$ac_cs_config\\"
9190 Copyright (C) 2012 Free Software Foundation, Inc.
9191 This config.status script is free software; the Free Software Foundation
9192 gives unlimited permission to copy, distribute and modify it."
9197 test -n "\$AWK" || AWK=awk
9200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9201 # The default lists apply if the user does not specify any file.
9207 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9208 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9212 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9224 # Handling of the options.
9225 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9227 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9228 $as_echo "$ac_cs_version"; exit ;;
9229 --config |
--confi |
--conf |
--con |
--co |
--c )
9230 $as_echo "$ac_cs_config"; exit ;;
9231 --debug |
--debu |
--deb |
--de |
--d |
-d )
9233 --file |
--fil |
--fi |
--f )
9236 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9237 '') as_fn_error $?
"missing file argument" ;;
9239 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9240 ac_need_defaults
=false
;;
9241 --header |
--heade |
--head |
--hea )
9244 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9246 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9247 ac_need_defaults
=false
;;
9249 # Conflict between --help and --header
9250 as_fn_error $?
"ambiguous option: \`$1'
9251 Try \`$0 --help' for more information.";;
9252 --help |
--hel |
-h )
9253 $as_echo "$ac_cs_usage"; exit ;;
9254 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9255 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9259 -*) as_fn_error $?
"unrecognized option: \`$1'
9260 Try \`$0 --help' for more information." ;;
9262 *) as_fn_append ac_config_targets
" $1"
9263 ac_need_defaults
=false
;;
9269 ac_configure_extra_args
=
9271 if $ac_cs_silent; then
9273 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9278 if \$ac_cs_recheck; then
9279 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9281 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9282 CONFIG_SHELL='$SHELL'
9288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9292 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9293 ## Running $as_me. ##
9299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9303 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
9304 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
9308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9310 # Handling of arguments.
9311 for ac_config_target
in $ac_config_targets
9313 case $ac_config_target in
9314 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9315 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
9316 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
9317 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9319 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9324 # If the user did not use the arguments to specify the items to instantiate,
9325 # then the envvar interface is used. Set only those that are not.
9326 # We use the long form for the default assignment because of an extremely
9327 # bizarre bug on SunOS 4.1.3.
9328 if $ac_need_defaults; then
9329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9331 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9334 # Have a temporary directory for convenience. Make it in the build tree
9335 # simply because there is no reason against having it here, and in addition,
9336 # creating and moving files from /tmp can sometimes cause problems.
9337 # Hook for its removal unless debugging.
9338 # Note that there is a small window in which the directory will not be cleaned:
9339 # after its creation but before its name has been assigned to `$tmp'.
9343 trap 'exit_status=$?
9345 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9347 trap 'as_fn_exit 1' 1 2 13 15
9349 # Create a (secure) tmp directory for tmp files.
9352 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9356 tmp
=.
/conf$$
-$RANDOM
9357 (umask 077 && mkdir
"$tmp")
9358 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9361 # Set up the scripts for CONFIG_FILES section.
9362 # No need to generate them if there are no CONFIG_FILES.
9363 # This happens for instance with `./config.status config.h'.
9364 if test -n "$CONFIG_FILES"; then
9367 ac_cr
=`echo X | tr X '\015'`
9368 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9369 # But we know of no other shell where ac_cr would be empty at this
9370 # point, so we can use a bashism as a fallback.
9371 if test "x$ac_cr" = x
; then
9372 eval ac_cr
=\$
\'\\r
\'
9374 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9375 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9381 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9386 echo "cat >conf$$subs.awk <<_ACEOF" &&
9387 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9390 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9391 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9393 for ac_last_try in false false false false false :; do
9394 . ./conf$$subs.sh ||
9395 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9397 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9398 if test $ac_delim_n = $ac_delim_num; then
9400 elif $ac_last_try; then
9401 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9403 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9409 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9413 s/^/S["/; s
/!.
*/"]=/
9423 s/\(.\{148\}\)..*/\1/
9425 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9430 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9437 s/\(.\{148\}\)..*/\1/
9439 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9443 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9448 ' <conf$$subs.awk | sed '
9453 ' >>$CONFIG_STATUS || ac_write_fail=1
9454 rm -f conf$$subs.awk
9455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9457 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9458 for (key in S) S_is_set[key] = 1
9464 nfields = split(line, field, "@
")
9466 len = length(field[1])
9467 for (i = 2; i < nfields; i++) {
9469 keylen = length(key)
9470 if (S_is_set[key]) {
9472 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9473 len += length(value) + length(field[++i])
9484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9485 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9486 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9489 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9490 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9493 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9494 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9495 # trailing colons and then remove the whole line if VPATH becomes empty
9496 # (actually we leave an empty line to preserve line numbers).
9497 if test "x
$srcdir" = x.; then
9498 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9517 fi # test -n "$CONFIG_FILES"
9519 # Set up the scripts for CONFIG_HEADERS section.
9520 # No need to generate them if there are no CONFIG_HEADERS.
9521 # This happens for instance with `./config.status Makefile'.
9522 if test -n "$CONFIG_HEADERS"; then
9523 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9527 # Transform confdefs.h into an awk script `defines.awk', embedded as
9528 # here-document in config.status, that substitutes the proper values into
9529 # config.h.in to produce config.h.
9531 # Create a delimiter string that does not exist in confdefs.h, to ease
9532 # handling of long lines.
9534 for ac_last_try in false false :; do
9535 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9536 if test -z "$ac_tt"; then
9538 elif $ac_last_try; then
9539 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9541 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9545 # For the awk script, D is an array of macro values keyed by name,
9546 # likewise P contains macro parameters if any. Preserve backslash
9547 # newline sequences.
9549 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9551 s/.\{148\}/&'"$ac_delim"'/g
9554 s/^[ ]*#[ ]*define[ ][ ]*/ /
9561 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9563 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9567 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9568 D["\
1"]=" \
3\\\\\\n
"\\/p
9570 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9575 s/.\{148\}/&'"$ac_delim"'/g
9580 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9583 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9585 ' <confdefs.h | sed '
9586 s/'"$ac_delim"'/"\\\
9587 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9590 for (key in D) D_is_set[key] = 1
9593 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9595 split(line, arg, " ")
9596 if (arg[1] == "#") {
9600 defundef
= substr
(arg
[1], 2)
9603 split(mac1
, mac2
, "(") #)
9605 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9606 if (D_is_set
[macro
]) {
9607 # Preserve the white space surrounding the "#".
9608 print prefix
"define", macro P
[macro
] D
[macro
]
9611 # Replace #undef with comments. This is necessary, for example,
9612 # in the case of _POSIX_SOURCE, which is predefined and required
9613 # on some systems where configure will not decide to define it.
9614 if (defundef
== "undef") {
9615 print
"/*", prefix defundef
, macro
, "*/"
9623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9624 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
9625 fi # test -n "$CONFIG_HEADERS"
9628 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9633 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9635 case $ac_mode$ac_tag in
9637 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9638 :[FH
]-) ac_tag
=-:-;;
9639 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9656 -) ac_f
="$ac_tmp/stdin";;
9657 *) # Look for the file first in the build tree, then in the source tree
9658 # (if the path is not absolute). The absolute path cannot be DOS-style,
9659 # because $ac_f cannot contain `:'.
9663 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9665 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9667 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9668 as_fn_append ac_file_inputs
" '$ac_f'"
9671 # Let's still pretend it is `configure' which instantiates (i.e., don't
9672 # use $as_me), people would be surprised to read:
9673 # /* config.h. Generated by config.status. */
9674 configure_input
='Generated from '`
9675 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9677 if test x
"$ac_file" != x-
; then
9678 configure_input
="$ac_file. $configure_input"
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9680 $as_echo "$as_me: creating $ac_file" >&6;}
9682 # Neutralize special characters interpreted by sed in replacement strings.
9683 case $configure_input in #(
9684 *\
&* |
*\|
* |
*\\* )
9685 ac_sed_conf_input
=`$as_echo "$configure_input" |
9686 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9687 *) ac_sed_conf_input
=$configure_input;;
9691 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
9692 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
9697 ac_dir
=`$as_dirname -- "$ac_file" ||
9698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9699 X"$ac_file" : 'X\(//\)[^/]' \| \
9700 X"$ac_file" : 'X\(//\)$' \| \
9701 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9702 $as_echo X"$ac_file" |
9703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9720 as_dir
="$ac_dir"; as_fn_mkdir_p
9724 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9726 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9727 # A ".." for each directory in $ac_dir_suffix.
9728 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9729 case $ac_top_builddir_sub in
9730 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9731 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9734 ac_abs_top_builddir
=$ac_pwd
9735 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9736 # for backward compatibility:
9737 ac_top_builddir
=$ac_top_build_prefix
9740 .
) # We are building in place.
9742 ac_top_srcdir
=$ac_top_builddir_sub
9743 ac_abs_top_srcdir
=$ac_pwd ;;
9744 [\\/]* | ?
:[\\/]* ) # Absolute name.
9745 ac_srcdir
=$srcdir$ac_dir_suffix;
9746 ac_top_srcdir
=$srcdir
9747 ac_abs_top_srcdir
=$srcdir ;;
9749 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9750 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9751 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9753 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9763 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9764 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9769 # If the template does not know about datarootdir, expand it.
9770 # FIXME: This hack should be removed a few years after 2.60.
9771 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9782 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9783 *datarootdir
*) ac_datarootdir_seen
=yes;;
9784 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9786 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9789 ac_datarootdir_hack='
9790 s&@datadir@&$datadir&g
9791 s&@docdir@&$docdir&g
9792 s&@infodir@&$infodir&g
9793 s&@localedir@&$localedir&g
9794 s&@mandir@&$mandir&g
9795 s&\\\${datarootdir}&$datarootdir&g' ;;
9799 # Neutralize VPATH when `$srcdir' = `.'.
9800 # Shell code in configure.ac might set extrasub.
9801 # FIXME: do we really want to maintain this feature?
9802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9803 ac_sed_extra="$ac_vpsub
9806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9808 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9809 s|@configure_input@|
$ac_sed_conf_input|
;t t
9810 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9811 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9812 s
&@srcdir@
&$ac_srcdir&;t t
9813 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9814 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9815 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9816 s
&@builddir@
&$ac_builddir&;t t
9817 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9818 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9819 s
&@INSTALL@
&$ac_INSTALL&;t t
9820 $ac_datarootdir_hack
9822 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
9823 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9825 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9826 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9827 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9828 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9830 which seems to be undefined. Please make sure it is defined" >&5
9831 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9832 which seems to be undefined. Please make sure it is defined" >&2;}
9834 rm -f "$ac_tmp/stdin"
9836 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9837 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9845 if test x"$ac_file" != x-; then
9847 $as_echo "/* $configure_input */" \
9848 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9849 } >"$ac_tmp/config.h" \
9850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9851 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9853 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9856 mv "$ac_tmp/config.h" "$ac_file" \
9857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9860 $as_echo "/* $configure_input */" \
9861 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9862 || as_fn_error $? "could not create -" "$LINENO" 5
9866 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9867 $as_echo "$as_me: executing $ac_file commands" >&6;}
9872 case $ac_file$ac_mode in
9873 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9875 for subdir in ${CONFIG_SRC_SUBDIR}
9877 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
9879 "Makefile":F) case x$CONFIG_HEADERS in
9880 xconfig.h:config.in)
9891 ac_clean_files=$ac_clean_files_save
9893 test $ac_write_fail = 0 ||
9894 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9897 # configure is writing to config.log, and then calls config.status.
9898 # config.status does its own redirection, appending to config.log.
9899 # Unfortunately, on DOS this fails, as config.log is still kept open
9900 # by configure, so config.status won't be able to
write to it
; its
9901 # output is simply discarded. So we exec the FD to /dev/null,
9902 # effectively closing config.log, so it can be properly (re)opened and
9903 # appended to by config.status. When coming back to configure, we
9904 # need to make the FD available again.
9905 if test "$no_create" != yes; then
9907 ac_config_status_args
=
9908 test "$silent" = yes &&
9909 ac_config_status_args
="$ac_config_status_args --quiet"
9911 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9913 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9914 # would make configure fail if this is the last instruction.
9915 $ac_cs_success || as_fn_exit
1
9917 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9919 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}