2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gdbsupport 1.0.
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.
578 PACKAGE_NAME
='gdbsupport'
579 PACKAGE_TARNAME
='gdbsupport'
580 PACKAGE_VERSION
='1.0'
581 PACKAGE_STRING
='gdbsupport 1.0'
585 ac_unique_file
="common-defs.h"
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>
623 ac_subst_vars
='am__EXEEXT_FALSE
693 INSTALL_STRIP_PROGRAM
709 MAINTAINER_MODE_FALSE
750 program_transform_name
763 enable_option_checking
764 enable_maintainer_mode
766 enable_dependency_tracking
775 enable_build_warnings
776 enable_gdb_build_warnings
778 ac_precious_vars
='build_alias
792 # Initialize some variables set by options.
794 ac_init_version
=false
795 ac_unrecognized_opts
=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
806 program_transform_name
=s
,x
,x
,
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir
='${exec_prefix}/bin'
821 sbindir
='${exec_prefix}/sbin'
822 libexecdir
='${exec_prefix}/libexec'
823 datarootdir
='${prefix}/share'
824 datadir
='${datarootdir}'
825 sysconfdir
='${prefix}/etc'
826 sharedstatedir
='${prefix}/com'
827 localstatedir
='${prefix}/var'
828 includedir
='${prefix}/include'
829 oldincludedir
='/usr/include'
830 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir
='${datarootdir}/info'
836 libdir
='${exec_prefix}/lib'
837 localedir
='${datarootdir}/locale'
838 mandir
='${datarootdir}/man'
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\
$ac_option
852 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
865 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
868 -build |
--build |
--buil |
--bui |
--bu)
869 ac_prev
=build_alias
;;
870 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
871 build_alias
=$ac_optarg ;;
873 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
874 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
875 ac_prev
=cache_file
;;
876 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
877 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
878 cache_file
=$ac_optarg ;;
881 cache_file
=config.cache
;;
883 -datadir |
--datadir |
--datadi |
--datad)
885 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
886 datadir
=$ac_optarg ;;
888 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
889 |
--dataroo |
--dataro |
--datar)
890 ac_prev
=datarootdir
;;
891 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
892 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
893 datarootdir
=$ac_optarg ;;
895 -disable-* |
--disable-*)
896 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
899 as_fn_error $?
"invalid feature name: $ac_useropt"
900 ac_useropt_orig
=$ac_useropt
901 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
906 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep
=', ';;
909 eval enable_
$ac_useropt=no
;;
911 -docdir |
--docdir |
--docdi |
--doc |
--do)
913 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
916 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
918 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
921 -enable-* |
--enable-*)
922 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
925 as_fn_error $?
"invalid feature name: $ac_useropt"
926 ac_useropt_orig
=$ac_useropt
927 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep
=', ';;
935 eval enable_
$ac_useropt=\
$ac_optarg ;;
937 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
938 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
939 |
--exec |
--exe |
--ex)
940 ac_prev
=exec_prefix
;;
941 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
942 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
943 |
--exec=* |
--exe=* |
--ex=*)
944 exec_prefix
=$ac_optarg ;;
946 -gas |
--gas |
--ga |
--g)
947 # Obsolete; use --with-gas.
950 -help |
--help |
--hel |
--he |
-h)
952 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
953 ac_init_help
=recursive
;;
954 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
955 ac_init_help
=short
;;
957 -host |
--host |
--hos |
--ho)
958 ac_prev
=host_alias
;;
959 -host=* |
--host=* |
--hos=* |
--ho=*)
960 host_alias
=$ac_optarg ;;
962 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
964 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
966 htmldir
=$ac_optarg ;;
968 -includedir |
--includedir |
--includedi |
--included |
--include \
969 |
--includ |
--inclu |
--incl |
--inc)
970 ac_prev
=includedir
;;
971 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
972 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
973 includedir
=$ac_optarg ;;
975 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
977 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
978 infodir
=$ac_optarg ;;
980 -libdir |
--libdir |
--libdi |
--libd)
982 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
985 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
986 |
--libexe |
--libex |
--libe)
987 ac_prev
=libexecdir
;;
988 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
989 |
--libexe=* |
--libex=* |
--libe=*)
990 libexecdir
=$ac_optarg ;;
992 -localedir |
--localedir |
--localedi |
--localed |
--locale)
994 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
995 localedir
=$ac_optarg ;;
997 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
998 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
999 ac_prev
=localstatedir
;;
1000 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1001 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1002 localstatedir
=$ac_optarg ;;
1004 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1006 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1007 mandir
=$ac_optarg ;;
1009 -nfp |
--nfp |
--nf)
1010 # Obsolete; use --without-fp.
1013 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1014 |
--no-cr |
--no-c |
-n)
1017 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1018 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1021 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1022 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1023 |
--oldin |
--oldi |
--old |
--ol |
--o)
1024 ac_prev
=oldincludedir
;;
1025 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1026 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1027 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1028 oldincludedir
=$ac_optarg ;;
1030 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1032 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1033 prefix
=$ac_optarg ;;
1035 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1036 |
--program-pre |
--program-pr |
--program-p)
1037 ac_prev
=program_prefix
;;
1038 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1039 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1040 program_prefix
=$ac_optarg ;;
1042 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1043 |
--program-suf |
--program-su |
--program-s)
1044 ac_prev
=program_suffix
;;
1045 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1046 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1047 program_suffix
=$ac_optarg ;;
1049 -program-transform-name |
--program-transform-name \
1050 |
--program-transform-nam |
--program-transform-na \
1051 |
--program-transform-n |
--program-transform- \
1052 |
--program-transform |
--program-transfor \
1053 |
--program-transfo |
--program-transf \
1054 |
--program-trans |
--program-tran \
1055 |
--progr-tra |
--program-tr |
--program-t)
1056 ac_prev
=program_transform_name
;;
1057 -program-transform-name=* |
--program-transform-name=* \
1058 |
--program-transform-nam=* |
--program-transform-na=* \
1059 |
--program-transform-n=* |
--program-transform-=* \
1060 |
--program-transform=* |
--program-transfor=* \
1061 |
--program-transfo=* |
--program-transf=* \
1062 |
--program-trans=* |
--program-tran=* \
1063 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1064 program_transform_name
=$ac_optarg ;;
1066 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1068 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1069 pdfdir
=$ac_optarg ;;
1071 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1073 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1076 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1077 |
-silent |
--silent |
--silen |
--sile |
--sil)
1080 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1082 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1084 sbindir
=$ac_optarg ;;
1086 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1087 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1088 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1090 ac_prev
=sharedstatedir
;;
1091 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1092 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1093 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1095 sharedstatedir
=$ac_optarg ;;
1097 -site |
--site |
--sit)
1099 -site=* |
--site=* |
--sit=*)
1102 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1104 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1105 srcdir
=$ac_optarg ;;
1107 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1108 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1109 ac_prev
=sysconfdir
;;
1110 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1111 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1112 sysconfdir
=$ac_optarg ;;
1114 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1115 ac_prev
=target_alias
;;
1116 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1117 target_alias
=$ac_optarg ;;
1119 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1122 -version |
--version |
--versio |
--versi |
--vers |
-V)
1123 ac_init_version
=: ;;
1126 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1129 as_fn_error $?
"invalid package name: $ac_useropt"
1130 ac_useropt_orig
=$ac_useropt
1131 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep
=', ';;
1139 eval with_
$ac_useropt=\
$ac_optarg ;;
1141 -without-* |
--without-*)
1142 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1145 as_fn_error $?
"invalid package name: $ac_useropt"
1146 ac_useropt_orig
=$ac_useropt
1147 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1152 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep
=', ';;
1155 eval with_
$ac_useropt=no
;;
1158 # Obsolete; use --with-x.
1161 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1162 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1163 ac_prev
=x_includes
;;
1164 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1165 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1166 x_includes
=$ac_optarg ;;
1168 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1169 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1170 ac_prev
=x_libraries
;;
1171 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1172 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1173 x_libraries
=$ac_optarg ;;
1175 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1180 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1184 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1186 eval $ac_envvar=\
$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200 if test -n "$ac_prev"; then
1201 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $?
"missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1208 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 # Check all directory arguments for consistency.
1214 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val
=\$
$ac_var
1220 # Remove trailing slashes.
1223 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\
$ac_val;;
1226 # Be sure to have absolute directory names.
1228 [\\/$
]* | ?
:[\\/]* ) continue;;
1229 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1231 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target
=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x
; then
1243 if test "x$build_alias" = x
; then
1244 cross_compiling
=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1253 test "$silent" = yes && exec 6>/dev
/null
1256 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di
=`ls -di .` &&
1258 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $?
"working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $?
"pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted
=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir
=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted
=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1300 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1314 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 for ac_var
in $ac_precious_vars; do
1317 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1319 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1330 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1393 --build=BUILD configure
for building on BUILD
[guessed
]
1394 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1395 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive
) echo "Configuration of gdbsupport 1.0:";;
1406 --disable-option-checking ignore unrecognized
--enable/--with options
1407 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1408 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1409 --enable-maintainer-mode
1410 enable make rules and dependencies not useful
(and
1411 sometimes confusing
) to the casual installer
1412 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1413 --disable-silent-rules verbose build output
(undo
: "make V=0")
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --enable-plugins Enable support
for plugins
1419 --disable-largefile omit support
for large files
1420 --disable-rpath do not hardcode runtime library paths
1421 --enable-unit-tests Enable the inclusion of unit tests when compiling
1423 --enable-werror treat compile warnings as errors
1424 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1425 --enable-gdb-build-warnings
1426 enable GDB specific build-time compiler warnings
if
1430 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1431 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1432 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1433 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1434 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1435 --without-libipt-prefix don
't search for libipt in includedir and libdir
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CXX C++ compiler command
1446 CXXFLAGS C++ compiler flags
1449 Use these variables to override the choices made by `configure' or to
help
1450 it to
find libraries and programs with nonstandard names
/locations.
1452 Report bugs to the package provider.
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1466 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1468 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1473 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1476 ac_abs_top_builddir
=$ac_pwd
1477 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir
=$ac_top_build_prefix
1482 .
) # We are building in place.
1484 ac_top_srcdir
=$ac_top_builddir_sub
1485 ac_abs_top_srcdir
=$ac_pwd ;;
1486 [\\/]* | ?
:[\\/]* ) # Absolute name.
1487 ac_srcdir
=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir
=$srcdir
1489 ac_abs_top_srcdir
=$srcdir ;;
1491 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1495 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1497 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1515 gdbsupport configure
1.0
1516 generated by GNU Autoconf
2.69
1518 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1519 This configure
script is free software
; the Free Software Foundation
1520 gives unlimited permission to copy
, distribute and modify it.
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile
()
1534 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1535 rm -f conftest.
$ac_objext
1536 if { { ac_try
="$ac_compile"
1538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1565 } # ac_fn_c_try_compile
1567 # ac_fn_cxx_try_compile LINENO
1568 # ----------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_cxx_try_compile ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext
1574 if { { ac_try="$ac_compile"
1576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1577 *) ac_try_echo
=$ac_try;;
1579 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1583 if test -s conftest.err
; then
1584 grep -v '^ *+' conftest.err
>conftest.er1
1585 cat conftest.er1
>&5
1586 mv -f conftest.er1 conftest.err
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_cxx_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.
$ac_objext; then :
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.
$ac_ext >&5
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status
$ac_retval
1603 } # ac_fn_cxx_try_compile
1605 # ac_fn_c_try_cpp LINENO
1606 # ----------------------
1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1611 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } > conftest.i && {
1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1642 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1645 # the include files in INCLUDES and setting the cache variable VAR
1647 ac_fn_c_check_header_mongrel ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if eval \${$3+:} false; then :
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1660 # Is the header compilable?
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1662 $as_echo_n "checking $2 usability... " >&6; }
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1668 if ac_fn_c_try_compile "$LINENO"; then :
1669 ac_header_compiler=yes
1671 ac_header_compiler=no
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1675 $as_echo "$ac_header_compiler" >&6; }
1677 # Is the header present?
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1679 $as_echo_n "checking $2 presence... " >&6; }
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1684 if ac_fn_c_try_cpp "$LINENO"; then :
1685 ac_header_preproc=yes
1687 ac_header_preproc=no
1689 rm -f conftest.err conftest.i conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1691 $as_echo "$ac_header_preproc" >&6; }
1693 # So? What about this header?
1694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1697 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1703 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1705 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1707 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1709 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1719 eval "$3=\$ac_header_compiler"
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 } # ac_fn_c_check_header_mongrel
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1739 *) ac_try_echo
=$ac_try;;
1741 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=$ac_status
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1771 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists and can be compiled using the include files in
1774 # INCLUDES, setting the cache variable VAR accordingly.
1775 ac_fn_c_check_header_compile ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1788 if ac_fn_c_try_compile "$LINENO"; then :
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } # ac_fn_c_check_header_compile
1802 # ac_fn_c_try_link LINENO
1803 # -----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1812 *) ac_try_echo
=$ac_try;;
1814 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1818 if test -s conftest.err
; then
1819 grep -v '^ *+' conftest.err
>conftest.er1
1820 cat conftest.er1
>&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest
$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 test -x conftest
$ac_exeext
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.
$ac_ext >&5
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status
$ac_retval
1846 } # ac_fn_c_try_link
1848 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1849 # -------------------------------------------
1850 # Tests whether TYPE exists after having included INCLUDES, setting cache
1851 # variable VAR accordingly.
1852 ac_fn_c_check_type
()
1854 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \
${$3+:} false
; then :
1858 $as_echo_n "(cached) " >&6
1861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1873 if ac_fn_c_try_compile
"$LINENO"; then :
1874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1886 if ac_fn_c_try_compile
"$LINENO"; then :
1891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 } # ac_fn_c_check_type
1902 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1903 # --------------------------------------------
1904 # Tries to find the compile-time value of EXPR in a program that includes
1905 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1907 ac_fn_c_compute_int
()
1909 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1910 if test "$cross_compiling" = yes; then
1911 # Depending upon the size, compute the lo and hi bounds.
1912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1918 static int test_array [1 - 2 * !(($2) >= 0)];
1920 return test_array [0];
1926 if ac_fn_c_try_compile
"$LINENO"; then :
1929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1935 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1937 return test_array [0];
1943 if ac_fn_c_try_compile
"$LINENO"; then :
1944 ac_hi
=$ac_mid; break
1946 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1947 if test $ac_lo -le $ac_mid; then
1951 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1962 static int test_array [1 - 2 * !(($2) < 0)];
1964 return test_array [0];
1970 if ac_fn_c_try_compile
"$LINENO"; then :
1973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1979 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1981 return test_array [0];
1987 if ac_fn_c_try_compile
"$LINENO"; then :
1988 ac_lo
=$ac_mid; break
1990 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1991 if test $ac_mid -le $ac_hi; then
1995 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2005 # Binary search between lo and hi bounds.
2006 while test "x$ac_lo" != "x$ac_hi"; do
2007 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2014 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2016 return test_array [0];
2022 if ac_fn_c_try_compile
"$LINENO"; then :
2025 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2030 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2037 static long int longval () { return $2; }
2038 static unsigned long int ulongval () { return $2; }
2045 FILE *f = fopen ("conftest.val", "w");
2050 long int i = longval ();
2053 fprintf (f, "%ld", i);
2057 unsigned long int i = ulongval ();
2060 fprintf (f, "%lu", i);
2062 /* Do not output a trailing newline, as this causes \r\n confusion
2063 on some platforms. */
2064 return ferror (f) || fclose (f) != 0;
2070 if ac_fn_c_try_run
"$LINENO"; then :
2071 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2075 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2076 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 as_fn_set_status
$ac_retval
2083 } # ac_fn_c_compute_int
2085 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2086 # ---------------------------------------------
2087 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2089 ac_fn_c_check_decl
()
2091 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2092 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2093 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2095 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2096 if eval \
${$3+:} false
; then :
2097 $as_echo_n "(cached) " >&6
2099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2105 #ifndef $as_decl_name
2107 (void) $as_decl_use;
2109 (void) $as_decl_name;
2117 if ac_fn_c_try_compile
"$LINENO"; then :
2122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 } # ac_fn_c_check_decl
2131 # ac_fn_c_check_func LINENO FUNC VAR
2132 # ----------------------------------
2133 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2134 ac_fn_c_check_func
()
2136 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \
${$3+:} false
; then :
2140 $as_echo_n "(cached) " >&6
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2146 #define $2 innocuous_$2
2148 /* System header to define __stub macros and hopefully few prototypes,
2149 which can conflict with char $2 (); below.
2150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2151 <limits.h> exists even on freestanding compilers. */
2154 # include <limits.h>
2156 # include <assert.h>
2161 /* Override any GCC internal prototype to avoid an error.
2162 Use char because int might match the return type of a GCC
2163 builtin and then its argument prototype would still apply. */
2168 /* The GNU C library defines this for functions which it implements
2169 to always fail with ENOSYS. Some functions are actually named
2170 something starting with __ and the normal name is an alias. */
2171 #if defined __stub_$2 || defined __stub___$2
2183 if ac_fn_c_try_link
"$LINENO"; then :
2188 rm -f core conftest.err conftest.
$ac_objext \
2189 conftest
$ac_exeext conftest.
$ac_ext
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196 } # ac_fn_c_check_func
2198 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2199 # ----------------------------------------------------
2200 # Tries to find if the field MEMBER exists in type AGGR, after including
2201 # INCLUDES, setting cache variable VAR accordingly.
2202 ac_fn_c_check_member
()
2204 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2206 $as_echo_n "checking for $2.$3... " >&6; }
2207 if eval \
${$4+:} false
; then :
2208 $as_echo_n "(cached) " >&6
2210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2223 if ac_fn_c_try_compile
"$LINENO"; then :
2226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2233 if (sizeof ac_aggr.$3)
2239 if ac_fn_c_try_compile
"$LINENO"; then :
2244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253 } # ac_fn_c_check_member
2255 # ac_fn_cxx_try_link LINENO
2256 # -------------------------
2257 # Try to link conftest.$ac_ext, and return whether this succeeded.
2258 ac_fn_cxx_try_link
()
2260 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2261 rm -f conftest.
$ac_objext conftest
$ac_exeext
2262 if { { ac_try
="$ac_link"
2264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268 $as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_link") 2>conftest.err
2271 if test -s conftest.err; then
2272 grep -v '^ *+' conftest.err >conftest.er1
2273 cat conftest.er1 >&5
2274 mv -f conftest.er1 conftest.err
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; } && {
2278 test -z "$ac_cxx_werror_flag" ||
2279 test ! -s conftest.err
2280 } && test -s conftest$ac_exeext && {
2281 test "$cross_compiling" = yes ||
2282 test -x conftest$ac_exeext
2286 $as_echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2291 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2292 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2293 # interfere with the next link command; also delete a directory that is
2294 # left behind by Apple's compiler. We do this before executing the actions.
2295 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 as_fn_set_status $ac_retval
2299 } # ac_fn_cxx_try_link
2301 # ac_fn_cxx_check_func LINENO FUNC VAR
2302 # ------------------------------------
2303 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2304 ac_fn_cxx_check_func ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if eval \${$3+:} false; then :
2310 $as_echo_n "(cached) " >&6
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2316 #define $2 innocuous_$2
2318 /* System header to define __stub macros and hopefully few prototypes,
2319 which can conflict with char $2 (); below.
2320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2321 <limits.h> exists even on freestanding compilers. */
2324 # include <limits.h>
2326 # include <assert.h>
2331 /* Override any GCC internal prototype to avoid an error.
2332 Use char because int might match the return type of a GCC
2333 builtin and then its argument prototype would still apply. */
2338 /* The GNU C library defines this for functions which it implements
2339 to always fail with ENOSYS. Some functions are actually named
2340 something starting with __ and the normal name is an alias. */
2341 #if defined __stub_$2 || defined __stub___$2
2353 if ac_fn_cxx_try_link "$LINENO"; then :
2358 rm -f core conftest.err conftest.$ac_objext \
2359 conftest$ac_exeext conftest.$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 $as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366 } # ac_fn_cxx_check_func
2367 cat >config.log <<_ACEOF
2368 This file contains any messages produced by compilers while
2369 running configure, to aid debugging if configure makes a mistake.
2371 It was created by gdbsupport $as_me 1.0, which was
2372 generated by GNU Autoconf 2.69. Invocation command line was
2384 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2385 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2386 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2387 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2388 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2390 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2391 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2393 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2394 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2395 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2396 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2397 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2398 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2399 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 $as_echo "PATH: $as_dir"
2424 # Keep a trace of the command line.
2425 # Strip out --no-create and --no-recursion so they do not pile up.
2426 # Strip out --silent because we don't want to record it for future runs.
2427 # Also quote any args containing shell meta-characters.
2428 # Make two passes to allow for proper duplicate-argument suppression.
2432 ac_must_keep_next=false
2438 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440 | -silent | --silent | --silen | --sile | --sil)
2443 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2446 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2448 as_fn_append ac_configure_args1 " '$ac_arg'"
2449 if test $ac_must_keep_next = true; then
2450 ac_must_keep_next=false # Got value, back to normal.
2453 *=* | --config-cache | -C | -disable-* | --disable-* \
2454 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2455 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2456 | -with-* | --with-* | -without-* | --without-* | --x)
2457 case "$ac_configure_args0 " in
2458 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2461 -* ) ac_must_keep_next=true ;;
2464 as_fn_append ac_configure_args " '$ac_arg'"
2469 { ac_configure_args0=; unset ac_configure_args0;}
2470 { ac_configure_args1=; unset ac_configure_args1;}
2472 # When interrupted or exit'd, cleanup temporary files, and complete
2473 # config.log. We remove comments because anyway the quotes in there
2474 # would cause problems or look ugly.
2475 # WARNING: Use '\'' to represent an apostrophe within the trap.
2476 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2477 trap 'exit_status=$?
2478 # Save into config.log some information that might help in debugging.
2482 $as_echo "## ---------------- ##
2483 ## Cache variables. ##
2484 ## ---------------- ##"
2486 # The following way of writing the cache mishandles newlines in values,
2488 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2489 eval ac_val=\$$ac_var
2493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2497 _ | IFS | as_nl) ;; #(
2498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499 *) { eval $ac_var=; unset $ac_var;} ;;
2504 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2505 *${as_nl}ac_space=\ *)
2507 "s/'\''/'\''\\\\'\'''\''/g;
2508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2518 $as_echo "## ----------------- ##
2519 ## Output variables. ##
2520 ## ----------------- ##"
2522 for ac_var in $ac_subst_vars
2524 eval ac_val=\$$ac_var
2526 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2528 $as_echo "$ac_var='\''$ac_val'\''"
2532 if test -n "$ac_subst_files"; then
2533 $as_echo "## ------------------- ##
2534 ## File substitutions. ##
2535 ## ------------------- ##"
2537 for ac_var in $ac_subst_files
2539 eval ac_val=\$$ac_var
2541 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2543 $as_echo "$ac_var='\''$ac_val'\''"
2548 if test -s confdefs.h; then
2549 $as_echo "## ----------- ##
2556 test "$ac_signal" != 0 &&
2557 $as_echo "$as_me: caught signal $ac_signal"
2558 $as_echo "$as_me: exit $exit_status"
2560 rm -f core *.core core.conftest.* &&
2561 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2564 for ac_signal in 1 2 13 15; do
2565 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2569 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2570 rm -f -r conftest* confdefs.h
2572 $as_echo "/* confdefs.h */" > confdefs.h
2574 # Predefined preprocessor variables.
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_NAME "$PACKAGE_NAME"
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_STRING "$PACKAGE_STRING"
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_URL "$PACKAGE_URL"
2601 # Let the site file select an alternate cache file if it wants to.
2602 # Prefer an explicitly selected file to automatically selected ones.
2605 if test -n "$CONFIG_SITE"; then
2606 # We do not want a PATH search for config.site.
2607 case $CONFIG_SITE in #((
2608 -*) ac_site_file1=./$CONFIG_SITE;;
2609 */*) ac_site_file1=$CONFIG_SITE;;
2610 *) ac_site_file1=./$CONFIG_SITE;;
2612 elif test "x$prefix" != xNONE; then
2613 ac_site_file1=$prefix/share/config.site
2614 ac_site_file2=$prefix/etc/config.site
2616 ac_site_file1=$ac_default_prefix/share/config.site
2617 ac_site_file2=$ac_default_prefix/etc/config.site
2619 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2621 test "x$ac_site_file" = xNONE && continue
2622 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2624 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2625 sed 's/^/| /' "$ac_site_file" >&5
2627 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error $? "failed to load site
script $ac_site_file
2630 See \
`config.log' for more details" "$LINENO" 5; }
2634 if test -r "$cache_file"; then
2635 # Some versions of bash will fail to source /dev/null (special files
2636 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2637 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2639 $as_echo "$as_me: loading cache $cache_file" >&6;}
2641 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2642 *) . "./$cache_file";;
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2647 $as_echo "$as_me: creating cache $cache_file" >&6;}
2651 as_fn_append ac_header_list " stdlib.h"
2652 as_fn_append ac_header_list " unistd.h"
2653 as_fn_append ac_header_list " sys/param.h"
2654 # Check that the precious variables saved in the cache have kept the same
2656 ac_cache_corrupted=false
2657 for ac_var in $ac_precious_vars; do
2658 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2659 eval ac_new_set=\$ac_env_${ac_var}_set
2660 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2661 eval ac_new_val=\$ac_env_${ac_var}_value
2662 case $ac_old_set,$ac_new_set in
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2665 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2666 ac_cache_corrupted=: ;;
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2669 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2670 ac_cache_corrupted=: ;;
2673 if test "x$ac_old_val" != "x$ac_new_val"; then
2674 # differences in whitespace do not lead to failure.
2675 ac_old_val_w=`echo x
$ac_old_val`
2676 ac_new_val_w=`echo x
$ac_new_val`
2677 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2679 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2680 ac_cache_corrupted=:
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2683 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2684 eval $ac_var=\$ac_old_val
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2687 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2689 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2692 # Pass precious variables to config.status.
2693 if test "$ac_new_set" = set; then
2695 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2696 *) ac_arg=$ac_var=$ac_new_val ;;
2698 case " $ac_configure_args " in
2699 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2700 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2704 if $ac_cache_corrupted; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2708 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2709 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2711 ## -------------------- ##
2712 ## Main body of script. ##
2713 ## -------------------- ##
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726 ac_config_headers="$ac_config_headers config.h:config.in"
2729 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2730 if test -f "$ac_dir/install-sh"; then
2732 ac_install_sh="$ac_aux_dir/install-sh -c"
2734 elif test -f "$ac_dir/install.sh"; then
2736 ac_install_sh="$ac_aux_dir/install.sh -c"
2738 elif test -f "$ac_dir/shtool"; then
2740 ac_install_sh="$ac_aux_dir/shtool install -c"
2744 if test -z "$ac_aux_dir"; then
2745 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2748 # These three variables are undocumented and unsupported,
2749 # and are intended to be withdrawn in a future Autoconf release.
2750 # They can cause serious problems if a builder's source tree is in a directory
2751 # whose full name contains unusual characters.
2752 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2753 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2754 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2757 # Make sure we can run config.sub.
2758 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2759 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2762 $as_echo_n "checking build system type... " >&6; }
2763 if ${ac_cv_build+:} false; then :
2764 $as_echo_n "(cached) " >&6
2766 ac_build_alias=$build_alias
2767 test "x$ac_build_alias" = x &&
2768 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2769 test "x$ac_build_alias" = x &&
2770 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2771 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2772 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2776 $as_echo "$ac_cv_build" >&6; }
2777 case $ac_cv_build in
2779 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2782 ac_save_IFS=$IFS; IFS='-'
2788 # Remember, the first character of IFS is used to create $*,
2789 # except with old shells:
2792 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2796 $as_echo_n "checking host system type... " >&6; }
2797 if ${ac_cv_host+:} false; then :
2798 $as_echo_n "(cached) " >&6
2800 if test "x$host_alias" = x; then
2801 ac_cv_host=$ac_cv_build
2803 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2804 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2809 $as_echo "$ac_cv_host" >&6; }
2812 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2815 ac_save_IFS=$IFS; IFS='-'
2821 # Remember, the first character of IFS is used to create $*,
2822 # except with old shells:
2825 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2829 $as_echo_n "checking target system type... " >&6; }
2830 if ${ac_cv_target+:} false; then :
2831 $as_echo_n "(cached) " >&6
2833 if test "x$target_alias" = x; then
2834 ac_cv_target=$ac_cv_host
2836 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2837 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2842 $as_echo "$ac_cv_target" >&6; }
2843 case $ac_cv_target in
2845 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2847 target=$ac_cv_target
2848 ac_save_IFS=$IFS; IFS='-'
2854 # Remember, the first character of IFS is used to create $*,
2855 # except with old shells:
2858 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2861 # The aliases save the names the user supplied, while $host etc.
2862 # will get canonicalized.
2863 test -n "$target_alias" &&
2864 test "$program_prefix$program_suffix$program_transform_name" = \
2866 program_prefix=${target_alias}-
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2870 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2871 # Check whether --enable-maintainer-mode was given.
2872 if test "${enable_maintainer_mode+set}" = set; then :
2873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2875 USE_MAINTAINER_MODE=no
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2879 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2880 if test $USE_MAINTAINER_MODE = yes; then
2881 MAINTAINER_MODE_TRUE=
2882 MAINTAINER_MODE_FALSE='#'
2884 MAINTAINER_MODE_TRUE='#'
2885 MAINTAINER_MODE_FALSE=
2888 MAINT=$MAINTAINER_MODE_TRUE
2892 for ac_dir in .. "$srcdir"/..; do
2893 if test -f "$ac_dir/install-sh"; then
2895 ac_install_sh="$ac_aux_dir/install-sh -c"
2897 elif test -f "$ac_dir/install.sh"; then
2899 ac_install_sh="$ac_aux_dir/install.sh -c"
2901 elif test -f "$ac_dir/shtool"; then
2903 ac_install_sh="$ac_aux_dir/shtool install -c"
2907 if test -z "$ac_aux_dir"; then
2908 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2911 # These three variables are undocumented and unsupported,
2912 # and are intended to be withdrawn in a future Autoconf release.
2913 # They can cause serious problems if a builder's source tree is in a directory
2914 # whose full name contains unusual characters.
2915 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2916 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2917 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2920 am__api_version='1.15'
2922 # Find a good install program. We prefer a C program (faster),
2923 # so one script is as good as another. But avoid the broken or
2924 # incompatible versions:
2925 # SysV /etc/install, /usr/sbin/install
2926 # SunOS /usr/etc/install
2927 # IRIX /sbin/install
2929 # AmigaOS /C/install, which installs bootblocks on floppy discs
2930 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2931 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2932 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2933 # OS/2's system install, which has a completely different semantic
2934 # ./install, which can be erroneously created by make from ./install.sh.
2935 # Reject install programs that cannot install multiple files.
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2937 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2938 if test -z "$INSTALL"; then
2939 if ${ac_cv_path_install+:} false; then :
2940 $as_echo_n "(cached) " >&6
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 # Account for people who put trailing slashes in PATH elements.
2948 case $as_dir/ in #((
2949 ./ | .// | /[cC]/* | \
2950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2951 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2954 # OSF1 and SCO ODT 3.0 have their own names for install.
2955 # Don't use installbsd from OSF since it installs stuff as root
2957 for ac_prog in ginstall scoinst install; do
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2960 if test $ac_prog = install &&
2961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2962 # AIX install. It has an incompatible calling convention.
2964 elif test $ac_prog = install &&
2965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2966 # program-specific install script used by HP pwplus--don't use.
2969 rm -rf conftest.one conftest.two conftest.dir
2970 echo one > conftest.one
2971 echo two > conftest.two
2973 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2974 test -s conftest.one && test -s conftest.two &&
2975 test -s conftest.dir/conftest.one &&
2976 test -s conftest.dir/conftest.two
2978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2991 rm -rf conftest.one conftest.two conftest.dir
2994 if test "${ac_cv_path_install+set}" = set; then
2995 INSTALL=$ac_cv_path_install
2997 # As a last resort, use the slow shell script. Don't cache a
2998 # value for INSTALL within a source directory, because that will
2999 # break other packages using the cache if that directory is
3000 # removed, or if the value is a relative name.
3001 INSTALL=$ac_install_sh
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3005 $as_echo "$INSTALL" >&6; }
3007 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3008 # It thinks the first close brace ends the variable substitution.
3009 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3011 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3013 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3016 $as_echo_n "checking whether build environment is sane... " >&6; }
3017 # Reject unsafe characters in $srcdir or the absolute working directory
3018 # name. Accept space and tab only in the latter.
3022 *[\\\"\#\$\&\'\`$am_lf]*)
3023 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3026 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3027 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3030 # Do 'set' in a subshell so we don't clobber the current shell's
3031 # arguments. Must try -L first in case configure is actually a
3032 # symlink; some systems play weird games with the mod time of symlinks
3033 # (eg FreeBSD returns the mod time of the symlink's containing
3037 for am_try
in 1 2; do
3038 echo "timestamp, slept: $am_has_slept" > conftest.
file
3039 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3040 if test "$*" = "X"; then
3042 set X
`ls -t "$srcdir/configure" conftest.file`
3044 if test "$*" != "X $srcdir/configure conftest.file" \
3045 && test "$*" != "X conftest.file $srcdir/configure"; then
3047 # If neither matched, then we have a broken ls. This can happen
3048 # if, for instance, CONFIG_SHELL is bash and it inherits a
3049 # broken ls alias from the environment. This has actually
3050 # happened. Such a system could not be considered "sane".
3051 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3052 alias in your environment" "$LINENO" 5
3054 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3061 test "$2" = conftest.
file
3067 as_fn_error $?
"newly created file is older than distributed files!
3068 Check your system clock" "$LINENO" 5
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3071 $as_echo "yes" >&6; }
3072 # If we didn't sleep, we still need to ensure time stamps of config.status and
3073 # generated files are strictly newer.
3075 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3082 test "$program_prefix" != NONE
&&
3083 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3084 # Use a double $ so make ignores it.
3085 test "$program_suffix" != NONE
&&
3086 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3087 # Double any \ or $.
3088 # By default was `s,x,x', remove it if useless.
3089 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3090 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3092 # Expand $ac_aux_dir to an absolute path.
3093 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3095 if test x
"${MISSING+set}" != xset
; then
3098 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3100 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3103 # Use eval to expand $SHELL
3104 if eval "$MISSING --is-lightweight"; then
3105 am_missing_run
="$MISSING "
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3109 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3112 if test x
"${install_sh+set}" != xset
; then
3115 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3117 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3121 # Installed binaries are usually stripped using 'strip' when the user
3122 # run "make install-strip". However 'strip' might not be the right
3123 # tool to use in cross-compilation environments, therefore Automake
3124 # will honor the 'STRIP' environment variable to overrule this program.
3125 if test "$cross_compiling" != no
; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3128 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_STRIP+:} false
; then :
3132 $as_echo_n "(cached) " >&6
3134 if test -n "$STRIP"; then
3135 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3141 test -z "$as_dir" && as_dir
=.
3142 for ac_exec_ext
in '' $ac_executable_extensions; do
3143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 STRIP
=$ac_cv_prog_STRIP
3155 if test -n "$STRIP"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3157 $as_echo "$STRIP" >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3165 if test -z "$ac_cv_prog_STRIP"; then
3167 # Extract the first word of "strip", so it can be a program name with args.
3168 set dummy strip
; ac_word
=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3172 $as_echo_n "(cached) " >&6
3174 if test -n "$ac_ct_STRIP"; then
3175 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir
=.
3182 for ac_exec_ext
in '' $ac_executable_extensions; do
3183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_ac_ct_STRIP
="strip"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3195 if test -n "$ac_ct_STRIP"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3197 $as_echo "$ac_ct_STRIP" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3203 if test "x$ac_ct_STRIP" = x
; then
3206 case $cross_compiling:$ac_tool_warned in
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned
=yes ;;
3215 STRIP
="$ac_cv_prog_STRIP"
3219 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3222 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3223 if test -z "$MKDIR_P"; then
3224 if ${ac_cv_path_mkdir+:} false
; then :
3225 $as_echo_n "(cached) " >&6
3227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3228 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3231 test -z "$as_dir" && as_dir
=.
3232 for ac_prog
in mkdir gmkdir
; do
3233 for ac_exec_ext
in '' $ac_executable_extensions; do
3234 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3235 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3236 'mkdir (GNU coreutils) '* | \
3237 'mkdir (coreutils) '* | \
3238 'mkdir (fileutils) '4.1*)
3239 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3249 test -d .
/--version && rmdir .
/--version
3250 if test "${ac_cv_path_mkdir+set}" = set; then
3251 MKDIR_P
="$ac_cv_path_mkdir -p"
3253 # As a last resort, use the slow shell script. Don't cache a
3254 # value for MKDIR_P within a source directory, because that will
3255 # break other packages using the cache if that directory is
3256 # removed, or if the value is a relative name.
3257 MKDIR_P
="$ac_install_sh -d"
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3261 $as_echo "$MKDIR_P" >&6; }
3263 for ac_prog
in gawk mawk nawk
awk
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy
$ac_prog; ac_word
=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_AWK+:} false
; then :
3270 $as_echo_n "(cached) " >&6
3272 if test -n "$AWK"; then
3273 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3279 test -z "$as_dir" && as_dir
=.
3280 for ac_exec_ext
in '' $ac_executable_extensions; do
3281 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_AWK
="$ac_prog"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 if test -n "$AWK"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3295 $as_echo "$AWK" >&6; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3302 test -n "$AWK" && break
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3306 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3308 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3309 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3310 $as_echo_n "(cached) " >&6
3312 cat >conftest.
make <<\_ACEOF
3315 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3317 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3320 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3322 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3326 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 SET_MAKE
="MAKE=${MAKE-make}"
3336 rm -rf .tst
2>/dev
/null
3337 mkdir .tst
2>/dev
/null
3338 if test -d .tst
; then
3343 rmdir .tst
2>/dev
/null
3345 # Check whether --enable-silent-rules was given.
3346 if test "${enable_silent_rules+set}" = set; then :
3347 enableval
=$enable_silent_rules;
3350 case $enable_silent_rules in # (((
3351 yes) AM_DEFAULT_VERBOSITY
=0;;
3352 no
) AM_DEFAULT_VERBOSITY
=1;;
3353 *) AM_DEFAULT_VERBOSITY
=1;;
3355 am_make
=${MAKE-make}
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3357 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3358 if ${am_cv_make_support_nested_variables+:} false
; then :
3359 $as_echo_n "(cached) " >&6
3361 if $as_echo 'TRUE=$(BAR$(V))
3367 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3368 am_cv_make_support_nested_variables
=yes
3370 am_cv_make_support_nested_variables
=no
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3374 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3375 if test $am_cv_make_support_nested_variables = yes; then
3377 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3379 AM_V
=$AM_DEFAULT_VERBOSITY
3380 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3384 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3385 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3386 # is not polluted with repeated "-I."
3387 am__isrc
=' -I$(srcdir)'
3388 # test to see if srcdir already configured
3389 if test -f $srcdir/config.status
; then
3390 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3394 # test whether we have cygpath
3395 if test -z "$CYGPATH_W"; then
3396 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3397 CYGPATH_W
='cygpath -w'
3404 # Define the identity of the package.
3405 PACKAGE
='gdbsupport'
3409 cat >>confdefs.h
<<_ACEOF
3410 #define PACKAGE "$PACKAGE"
3414 cat >>confdefs.h
<<_ACEOF
3415 #define VERSION "$VERSION"
3418 # Some tools Automake needs.
3420 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3423 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3426 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3429 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3432 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3434 # For better backward compatibility. To be removed once Automake 1.9.x
3435 # dies out for good. For more background, see:
3436 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3437 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3438 mkdir_p
='$(MKDIR_P)'
3440 # We need awk for the "check" target (and possibly the TAP driver). The
3441 # system "awk" is bad on some platforms.
3442 # Always define AMTAR for backward compatibility. Yes, it's still used
3443 # in the wild :-( We should find a proper way to deprecate it ...
3447 # We'll loop over all known methods to create a tar archive until one works.
3448 _am_tools
='gnutar pax cpio none'
3450 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3457 # POSIX will say in a future version that running "rm -f" with no argument
3458 # is OK; and we want to be able to make that assumption in our Makefile
3459 # recipes. So use an aggressive probe to check that the usage we want is
3460 # actually supported "in the wild" to an acceptable degree.
3461 # See automake bug#10828.
3462 # To make any issue more visible, cause the running configure to be aborted
3463 # by default if the 'rm' program in use doesn't match our expectations; the
3464 # user can still override this though.
3465 if rm -f && rm -fr && rm -rf; then : OK
; else
3469 Your 'rm' program seems unable to run without file operands specified
3470 on the command line, even when the '-f' option is present. This is contrary
3471 to the behaviour of most rm programs out there, and not conforming with
3472 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3474 Please tell bug-automake@gnu.org about your system, including the value
3475 of your $PATH and any error possibly output before this message. This
3476 can help us improve future automake versions.
3479 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3480 echo 'Configuration will proceed anyway, since you have set the' >&2
3481 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3485 Aborting the configuration process, to ensure you take notice of the issue.
3487 You can download and install GNU coreutils to get an 'rm' implementation
3488 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3490 If you want to complete the configuration process using your problematic
3491 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3492 to "yes", and re-run configure.
3495 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3499 # Check whether --enable-silent-rules was given.
3500 if test "${enable_silent_rules+set}" = set; then :
3501 enableval
=$enable_silent_rules;
3504 case $enable_silent_rules in # (((
3505 yes) AM_DEFAULT_VERBOSITY
=0;;
3506 no
) AM_DEFAULT_VERBOSITY
=1;;
3507 *) AM_DEFAULT_VERBOSITY
=0;;
3509 am_make
=${MAKE-make}
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3511 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3512 if ${am_cv_make_support_nested_variables+:} false
; then :
3513 $as_echo_n "(cached) " >&6
3515 if $as_echo 'TRUE=$(BAR$(V))
3521 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3522 am_cv_make_support_nested_variables
=yes
3524 am_cv_make_support_nested_variables
=no
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3528 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3529 if test $am_cv_make_support_nested_variables = yes; then
3531 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3533 AM_V
=$AM_DEFAULT_VERBOSITY
3534 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3542 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544 if test -n "$ac_tool_prefix"; then
3545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_CC+:} false; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC="$CC" # Let the user override the test.
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 if test -n "$CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 $as_echo "$CC" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3583 if test -z "$ac_cv_prog_CC"; then
3585 # Extract the first word of "gcc", so it can be a program name with args.
3586 set dummy gcc; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3590 $as_echo_n "(cached) " >&6
3592 if test -n "$ac_ct_CC"; then
3593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_ac_ct_CC="gcc"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3613 if test -n "$ac_ct_CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3615 $as_echo "$ac_ct_CC" >&6; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3621 if test "x$ac_ct_CC" = x; then
3624 case $cross_compiling:$ac_tool_warned in
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628 ac_tool_warned=yes ;;
3636 if test -z "$CC"; then
3637 if test -n "$ac_tool_prefix"; then
3638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3639 set dummy ${ac_tool_prefix}cc; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if ${ac_cv_prog_CC+:} false; then :
3643 $as_echo_n "(cached) " >&6
3645 if test -n "$CC"; then
3646 ac_cv_prog_CC="$CC" # Let the user override the test.
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655 ac_cv_prog_CC="${ac_tool_prefix}cc"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3677 if test -z "$CC"; then
3678 # Extract the first word of "cc", so it can be a program name with args.
3679 set dummy cc; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if ${ac_cv_prog_CC+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 if test -n "$CC"; then
3686 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3697 ac_prog_rejected=yes
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 if test $ac_prog_rejected = yes; then
3709 # We found a bogon in the path, so make sure we never use it.
3710 set dummy $ac_cv_prog_CC
3712 if test $# != 0; then
3713 # We chose a different compiler from the bogus one.
3714 # However, it has the same basename, so the bogon will be chosen
3715 # first if we set CC to just the basename; use the full file name.
3717 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3733 if test -z "$CC"; then
3734 if test -n "$ac_tool_prefix"; then
3735 for ac_prog in cl.exe
3737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if ${ac_cv_prog_CC+:} false; then :
3742 $as_echo_n "(cached) " >&6
3744 if test -n "$CC"; then
3745 ac_cv_prog_CC="$CC" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 if test -n "$CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3767 $as_echo "$CC" >&6; }
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3774 test -n "$CC" && break
3777 if test -z "$CC"; then
3779 for ac_prog in cl.exe
3781 # Extract the first word of "$ac_prog", so it can be a program name with args.
3782 set dummy $ac_prog; ac_word=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3786 $as_echo_n "(cached) " >&6
3788 if test -n "$ac_ct_CC"; then
3789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798 ac_cv_prog_ac_ct_CC="$ac_prog"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3809 if test -n "$ac_ct_CC"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3811 $as_echo "$ac_ct_CC" >&6; }
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3818 test -n "$ac_ct_CC" && break
3821 if test "x$ac_ct_CC" = x; then
3824 case $cross_compiling:$ac_tool_warned in
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3828 ac_tool_warned=yes ;;
3837 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3838 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3839 as_fn_error $? "no acceptable C compiler found in \$PATH
3840 See \`config.log
' for more details" "$LINENO" 5; }
3842 # Provide some information about the compiler.
3843 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3846 for ac_option in --version -v -V -qversion; do
3847 { { ac_try="$ac_compiler $ac_option >&5"
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3856 if test -s conftest.err; then
3858 ... rest of stderr output deleted ...
3859 10q
' conftest.err >conftest.er1
3860 cat conftest.er1 >&5
3862 rm -f conftest.er1 conftest.err
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3878 ac_clean_files_save=$ac_clean_files
3879 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3880 # Try to create an executable without -o first, disregard a.out.
3881 # It will help us diagnose broken compilers, and finding out an intuition
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3884 $as_echo_n "checking whether the C compiler works... " >&6; }
3885 ac_link_default=`$as_echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3887 # The possible output files:
3888 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3891 for ac_file in $ac_files
3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3895 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3900 if { { ac_try="$ac_link_default"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_link_default") 2>&5
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; then :
3911 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3912 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3913 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3914 # so that the user can short-circuit this test for compilers unknown to
3916 for ac_file
in $ac_files ''
3918 test -f "$ac_file" ||
continue
3920 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3923 # We found the default executable, but exeext='' is most
3927 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3929 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3931 # We set ac_cv_exeext here because the later test for it is not
3932 # safe: cross compilers may not add the suffix if given an `-o'
3933 # argument, so we may need to know it at that point already.
3934 # Even if this section looks crufty: it has the advantage of
3941 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3946 if test -z "$ac_file"; then :
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3949 $as_echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.
$ac_ext >&5
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error
77 "C compiler cannot create executables
3955 See \`config.log' for more details" "$LINENO" 5; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3958 $as_echo "yes" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3961 $as_echo_n "checking for C compiler default output file name... " >&6; }
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3963 $as_echo "$ac_file" >&6; }
3964 ac_exeext
=$ac_cv_exeext
3966 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3967 ac_clean_files
=$ac_clean_files_save
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3969 $as_echo_n "checking for suffix of executables... " >&6; }
3970 if { { ac_try
="$ac_link"
3972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_link") 2>&5
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }; then :
3981 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3982 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3983 # work properly (i.e., refer to `conftest.exe'), while it won't with
3985 for ac_file
in conftest.exe conftest conftest.
*; do
3986 test -f "$ac_file" ||
continue
3988 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3989 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3998 See \`config.log' for more details" "$LINENO" 5; }
4000 rm -f conftest conftest
$ac_cv_exeext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4002 $as_echo "$ac_cv_exeext" >&6; }
4004 rm -f conftest.
$ac_ext
4005 EXEEXT
=$ac_cv_exeext
4007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4013 FILE *f = fopen ("conftest.out", "w");
4014 return ferror (f) || fclose (f) != 0;
4020 ac_clean_files
="$ac_clean_files conftest.out"
4021 # Check that the compiler produces executables we can run. If not, either
4022 # the compiler is broken, or we cross compile.
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4024 $as_echo_n "checking whether we are cross compiling... " >&6; }
4025 if test "$cross_compiling" != yes; then
4026 { { ac_try
="$ac_link"
4028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_link") 2>&5
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }
4037 if { ac_try='./conftest$ac_cv_exeext'
4038 { { case "(($ac_try" in
4039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4040 *) ac_try_echo
=$ac_try;;
4042 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_try") 2>&5
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }; }; then
4050 if test "$cross_compiling" = maybe
; then
4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error $?
"cannot run C compiled programs.
4056 If you meant to cross compile, use \`--host'.
4057 See \`config.log' for more details" "$LINENO" 5; }
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4062 $as_echo "$cross_compiling" >&6; }
4064 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4065 ac_clean_files
=$ac_clean_files_save
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4067 $as_echo_n "checking for suffix of object files... " >&6; }
4068 if ${ac_cv_objext+:} false
; then :
4069 $as_echo_n "(cached) " >&6
4071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4082 rm -f conftest.o conftest.obj
4083 if { { ac_try
="$ac_compile"
4085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 $as_echo "$ac_try_echo"; } >&5
4090 (eval "$ac_compile") 2>&5
4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }; then :
4094 for ac_file in conftest.o conftest.obj conftest.*; do
4095 test -f "$ac_file" || continue;
4097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4103 $as_echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4108 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4109 See \
`config.log' for more details" "$LINENO" 5; }
4111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4114 $as_echo "$ac_cv_objext" >&6; }
4115 OBJEXT=$ac_cv_objext
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4118 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4119 if ${ac_cv_c_compiler_gnu+:} false; then :
4120 $as_echo_n "(cached) " >&6
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4136 if ac_fn_c_try_compile "$LINENO"; then :
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4146 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4147 if test $ac_compiler_gnu = yes; then
4152 ac_test_CFLAGS=${CFLAGS+set}
4153 ac_save_CFLAGS=$CFLAGS
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4155 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4156 if ${ac_cv_prog_cc_g+:} false; then :
4157 $as_echo_n "(cached) " >&6
4159 ac_save_c_werror_flag=$ac_c_werror_flag
4160 ac_c_werror_flag=yes
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4174 if ac_fn_c_try_compile "$LINENO"; then :
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4189 if ac_fn_c_try_compile "$LINENO"; then :
4192 ac_c_werror_flag=$ac_save_c_werror_flag
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4205 if ac_fn_c_try_compile "$LINENO"; then :
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 ac_c_werror_flag=$ac_save_c_werror_flag
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4216 $as_echo "$ac_cv_prog_cc_g" >&6; }
4217 if test "$ac_test_CFLAGS" = set; then
4218 CFLAGS=$ac_save_CFLAGS
4219 elif test $ac_cv_prog_cc_g = yes; then
4220 if test "$GCC" = yes; then
4226 if test "$GCC" = yes; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4233 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4234 if ${ac_cv_prog_cc_c89+:} false; then :
4235 $as_echo_n "(cached) " >&6
4237 ac_cv_prog_cc_c89=no
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4245 struct buf { int x; };
4246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4247 static char *e (p, i)
4253 static char *f (char * (*g) (char **, int), char **p, ...)
4258 s = g (p, va_arg (v,int));
4263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4264 function prototypes and stuff, but not '\xHH' hex character constants.
4265 These don't provoke an error unfortunately, instead are silently treated
4266 as 'x'. The following induces an error, until -std is added to get
4267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4268 array size at least. It's necessary to write '\x00'==0 to get something
4269 that's true only with -std. */
4270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4273 inside strings and character constants. */
4275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4277 int test (int i, double x);
4278 struct s1 {int (*f) (int a);};
4279 struct s2 {int (*f) (double a);};
4280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4286 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4294 CC="$ac_save_CC $ac_arg"
4295 if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_cv_prog_cc_c89=$ac_arg
4298 rm -f core conftest.err conftest.$ac_objext
4299 test "x$ac_cv_prog_cc_c89" != "xno" && break
4301 rm -f conftest.$ac_ext
4306 case "x$ac_cv_prog_cc_c89" in
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4309 $as_echo "none needed" >&6; } ;;
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4312 $as_echo "unsupported" >&6; } ;;
4314 CC="$CC $ac_cv_prog_cc_c89"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4316 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4318 if test "x$ac_cv_prog_cc_c89" != xno; then :
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4334 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4335 if ${am_cv_prog_cc_c_o+:} false; then :
4336 $as_echo_n "(cached) " >&6
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4349 # Make sure it works both with $CC and with simple cc.
4350 # Following AC_PROG_CC_C_O, we do the test twice because some
4351 # compilers refuse to overwrite an existing .o file with -o,
4352 # though they will create one.
4353 am_cv_prog_cc_c_o=yes
4355 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4356 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } \
4360 && test -f conftest2.$ac_objext; then
4363 am_cv_prog_cc_c_o=no
4367 rm -f core conftest*
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4371 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4372 if test "$am_cv_prog_cc_c_o" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC="$am_aux_dir/compile $CC"
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 DEPDIR="${am__leading_dot}deps"
4388 ac_config_commands="$ac_config_commands depfiles"
4391 am_make=${MAKE-make}
4392 cat > confinc << 'END'
4394 @echo this is the am__doit target
4397 # If we don't find an include directive, just comment out the code.
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4399 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4403 # First try GNU make style include.
4404 echo "include confinc" > confmf
4405 # Ignore all kinds of additional output from 'make'.
4406 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4407 *the\ am__doit\ target*)
4413 # Now try BSD make style include.
4414 if test "$am__include" = "#"; then
4415 echo '.include "confinc"' > confmf
4416 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4417 *the\ am__doit\ target*)
4418 am__include=.include
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4427 $as_echo "$_am_result" >&6; }
4428 rm -f confinc confmf
4430 # Check whether --enable-dependency-tracking was given.
4431 if test "${enable_dependency_tracking+set}" = set; then :
4432 enableval=$enable_dependency_tracking;
4435 if test "x$enable_dependency_tracking" != xno; then
4436 am_depcomp="$ac_aux_dir/depcomp"
4440 if test "x$enable_dependency_tracking" != xno; then
4450 depcc="$CC" am_compiler_list=
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4453 $as_echo_n "checking dependency style of $depcc... " >&6; }
4454 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4455 $as_echo_n "(cached) " >&6
4457 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4458 # We make a subdir and do the tests there. Otherwise we can end up
4459 # making bogus files that we don't know about and never remove. For
4460 # instance it was reported that on HP-UX the gcc test will end up
4461 # making a dummy file named 'D' -- because '-MD' means "put the output
4465 # Copy depcomp to subdir because otherwise we won't find it if we're
4466 # using a relative directory.
4467 cp "$am_depcomp" conftest.dir
4469 # We will build objects and dependencies in a subdirectory because
4470 # it helps to detect inapplicable dependency modes. For instance
4471 # both Tru64's cc and ICC support -MD to output dependencies as a
4472 # side effect of compilation, but ICC will put the dependencies in
4473 # the current directory while Tru64 will put them in the object
4477 am_cv_CC_dependencies_compiler_type=none
4478 if test "$am_compiler_list" = ""; then
4479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4482 case " $depcc " in #(
4483 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4486 for depmode in $am_compiler_list; do
4487 # Setup a source with many dependencies, because some compilers
4488 # like to wrap large dependency lists on column 80 (with \), and
4489 # we should not choose a depcomp mode which is confused by this.
4491 # We need to recreate these files for each test, as the compiler may
4492 # overwrite some of them when testing with obscure command lines.
4493 # This happens at least with the AIX C compiler.
4495 for i in 1 2 3 4 5 6; do
4496 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4497 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4498 # Solaris 10 /bin/sh.
4499 echo '/* dummy */' > sub/conftst$i.h
4501 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4503 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4504 # mode. It turns out that the SunPro C++ compiler does not properly
4505 # handle '-M -o', and we need to detect this. Also, some Intel
4506 # versions had trouble with output in subdirs.
4507 am__obj=sub/conftest.${OBJEXT-o}
4508 am__minus_obj="-o $am__obj"
4511 # This depmode causes a compiler race in universal mode.
4512 test "$am__universal" = false || continue
4515 # After this tag, mechanisms are not by side-effect, so they'll
4516 # only be used when explicitly requested.
4517 if test "x$enable_dependency_tracking" = xyes; then
4523 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4524 # This compiler won't grok '-c -o', but also, the minuso test has
4525 # not run yet. These depmodes are late enough in the game, and
4526 # so weak that their functioning should not be impacted.
4527 am__obj=conftest.${OBJEXT-o}
4532 if depmode=$depmode \
4533 source=sub/conftest.c object=$am__obj \
4534 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4535 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4536 >/dev/null 2>conftest.err &&
4537 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4539 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4541 # icc doesn't choke on unknown options, it will just issue warnings
4542 # or remarks (even with -Werror). So we grep stderr for any message
4543 # that says an option was ignored or not supported.
4544 # When given -MP, icc 7.0 and 7.1 complain thusly:
4545 # icc: Command line warning: ignoring option '-M'; no argument required
4546 # The diagnosis changed in icc 8.0:
4547 # icc: Command line remark: option '-MP' not supported
4548 if (grep 'ignoring option' conftest.err ||
4549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4550 am_cv_CC_dependencies_compiler_type=$depmode
4559 am_cv_CC_dependencies_compiler_type=none
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4564 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4565 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4568 test "x$enable_dependency_tracking" != xno \
4569 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4571 am__fastdepCC_FALSE='#'
4573 am__fastdepCC_TRUE='#'
4574 am__fastdepCC_FALSE=
4579 ac_cpp='$CXXCPP $CPPFLAGS'
4580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4583 if test -z "$CXX"; then
4584 if test -n "$CCC"; then
4587 if test -n "$ac_tool_prefix"; then
4588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_CXX+:} false; then :
4595 $as_echo_n "(cached) " >&6
4597 if test -n "$CXX"; then
4598 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 if test -n "$CXX"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4620 $as_echo "$CXX" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4627 test -n "$CXX" && break
4630 if test -z "$CXX"; then
4632 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4634 # Extract the first word of "$ac_prog", so it can be a program name with args.
4635 set dummy $ac_prog; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4639 $as_echo_n "(cached) " >&6
4641 if test -n "$ac_ct_CXX"; then
4642 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_CXX="$ac_prog"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4662 if test -n "$ac_ct_CXX"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4664 $as_echo "$ac_ct_CXX" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4671 test -n "$ac_ct_CXX" && break
4674 if test "x$ac_ct_CXX" = x; then
4677 case $cross_compiling:$ac_tool_warned in
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4681 ac_tool_warned=yes ;;
4689 # Provide some information about the compiler.
4690 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4693 for ac_option in --version -v -V -qversion; do
4694 { { ac_try="$ac_compiler $ac_option >&5"
4696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4697 *) ac_try_echo
=$ac_try;;
4699 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700 $as_echo "$ac_try_echo"; } >&5
4701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4703 if test -s conftest.err
; then
4705 ... rest of stderr output deleted ...
4706 10q' conftest.err
>conftest.er1
4707 cat conftest.er1
>&5
4709 rm -f conftest.er1 conftest.err
4710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4711 test $ac_status = 0; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4715 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4716 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4717 $as_echo_n "(cached) " >&6
4719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4733 if ac_fn_cxx_try_compile
"$LINENO"; then :
4738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4739 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4743 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4744 if test $ac_compiler_gnu = yes; then
4749 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4750 ac_save_CXXFLAGS
=$CXXFLAGS
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4752 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4753 if ${ac_cv_prog_cxx_g+:} false
; then :
4754 $as_echo_n "(cached) " >&6
4756 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4757 ac_cxx_werror_flag
=yes
4760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4771 if ac_fn_cxx_try_compile
"$LINENO"; then :
4772 ac_cv_prog_cxx_g
=yes
4775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4786 if ac_fn_cxx_try_compile
"$LINENO"; then :
4789 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4802 if ac_fn_cxx_try_compile
"$LINENO"; then :
4803 ac_cv_prog_cxx_g
=yes
4805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4810 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4813 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4814 if test "$ac_test_CXXFLAGS" = set; then
4815 CXXFLAGS
=$ac_save_CXXFLAGS
4816 elif test $ac_cv_prog_cxx_g = yes; then
4817 if test "$GXX" = yes; then
4823 if test "$GXX" = yes; then
4830 ac_cpp
='$CPP $CPPFLAGS'
4831 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4835 depcc
="$CXX" am_compiler_list
=
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4838 $as_echo_n "checking dependency style of $depcc... " >&6; }
4839 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4840 $as_echo_n "(cached) " >&6
4842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4843 # We make a subdir and do the tests there. Otherwise we can end up
4844 # making bogus files that we don't know about and never remove. For
4845 # instance it was reported that on HP-UX the gcc test will end up
4846 # making a dummy file named 'D' -- because '-MD' means "put the output
4850 # Copy depcomp to subdir because otherwise we won't find it if we're
4851 # using a relative directory.
4852 cp "$am_depcomp" conftest.dir
4854 # We will build objects and dependencies in a subdirectory because
4855 # it helps to detect inapplicable dependency modes. For instance
4856 # both Tru64's cc and ICC support -MD to output dependencies as a
4857 # side effect of compilation, but ICC will put the dependencies in
4858 # the current directory while Tru64 will put them in the object
4862 am_cv_CXX_dependencies_compiler_type
=none
4863 if test "$am_compiler_list" = ""; then
4864 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4867 case " $depcc " in #(
4868 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4871 for depmode
in $am_compiler_list; do
4872 # Setup a source with many dependencies, because some compilers
4873 # like to wrap large dependency lists on column 80 (with \), and
4874 # we should not choose a depcomp mode which is confused by this.
4876 # We need to recreate these files for each test, as the compiler may
4877 # overwrite some of them when testing with obscure command lines.
4878 # This happens at least with the AIX C compiler.
4880 for i
in 1 2 3 4 5 6; do
4881 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4882 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4883 # Solaris 10 /bin/sh.
4884 echo '/* dummy */' > sub
/conftst
$i.h
4886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4888 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4889 # mode. It turns out that the SunPro C++ compiler does not properly
4890 # handle '-M -o', and we need to detect this. Also, some Intel
4891 # versions had trouble with output in subdirs.
4892 am__obj
=sub
/conftest.
${OBJEXT-o}
4893 am__minus_obj
="-o $am__obj"
4896 # This depmode causes a compiler race in universal mode.
4897 test "$am__universal" = false ||
continue
4900 # After this tag, mechanisms are not by side-effect, so they'll
4901 # only be used when explicitly requested.
4902 if test "x$enable_dependency_tracking" = xyes
; then
4908 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4909 # This compiler won't grok '-c -o', but also, the minuso test has
4910 # not run yet. These depmodes are late enough in the game, and
4911 # so weak that their functioning should not be impacted.
4912 am__obj
=conftest.
${OBJEXT-o}
4917 if depmode
=$depmode \
4918 source=sub
/conftest.c object
=$am__obj \
4919 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4920 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4921 >/dev
/null
2>conftest.err
&&
4922 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4923 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4924 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4925 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4926 # icc doesn't choke on unknown options, it will just issue warnings
4927 # or remarks (even with -Werror). So we grep stderr for any message
4928 # that says an option was ignored or not supported.
4929 # When given -MP, icc 7.0 and 7.1 complain thusly:
4930 # icc: Command line warning: ignoring option '-M'; no argument required
4931 # The diagnosis changed in icc 8.0:
4932 # icc: Command line remark: option '-MP' not supported
4933 if (grep 'ignoring option' conftest.err ||
4934 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4935 am_cv_CXX_dependencies_compiler_type
=$depmode
4944 am_cv_CXX_dependencies_compiler_type
=none
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4949 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4950 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4953 test "x$enable_dependency_tracking" != xno \
4954 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4955 am__fastdepCXX_TRUE
=
4956 am__fastdepCXX_FALSE
='#'
4958 am__fastdepCXX_TRUE
='#'
4959 am__fastdepCXX_FALSE
=
4963 if test -n "$ac_tool_prefix"; then
4964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4965 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_RANLIB+:} false
; then :
4969 $as_echo_n "(cached) " >&6
4971 if test -n "$RANLIB"; then
4972 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir
=.
4979 for ac_exec_ext
in '' $ac_executable_extensions; do
4980 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 RANLIB
=$ac_cv_prog_RANLIB
4992 if test -n "$RANLIB"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4994 $as_echo "$RANLIB" >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5002 if test -z "$ac_cv_prog_RANLIB"; then
5003 ac_ct_RANLIB
=$RANLIB
5004 # Extract the first word of "ranlib", so it can be a program name with args.
5005 set dummy ranlib
; ac_word
=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5009 $as_echo_n "(cached) " >&6
5011 if test -n "$ac_ct_RANLIB"; then
5012 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir
=.
5019 for ac_exec_ext
in '' $ac_executable_extensions; do
5020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5032 if test -n "$ac_ct_RANLIB"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5034 $as_echo "$ac_ct_RANLIB" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5040 if test "x$ac_ct_RANLIB" = x
; then
5043 case $cross_compiling:$ac_tool_warned in
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned
=yes ;;
5049 RANLIB
=$ac_ct_RANLIB
5052 RANLIB
="$ac_cv_prog_RANLIB"
5058 ac_cpp
='$CPP $CPPFLAGS'
5059 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5063 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5064 # On Suns, sometimes $CPP names a directory.
5065 if test -n "$CPP" && test -d "$CPP"; then
5068 if test -z "$CPP"; then
5069 if ${ac_cv_prog_CPP+:} false
; then :
5070 $as_echo_n "(cached) " >&6
5072 # Double quotes because CPP needs to be expanded
5073 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5076 for ac_c_preproc_warn_flag
in '' yes
5078 # Use a header file that comes with gcc, so configuring glibc
5079 # with a fresh cross-compiler works.
5080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5081 # <limits.h> exists even on freestanding compilers.
5082 # On the NeXT, cc -E runs the code through the compiler's parser,
5083 # not just through cpp. "Syntax error" is here to catch this case.
5084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5087 # include <limits.h>
5089 # include <assert.h>
5093 if ac_fn_c_try_cpp
"$LINENO"; then :
5096 # Broken: fails on valid input.
5099 rm -f conftest.err conftest.i conftest.
$ac_ext
5101 # OK, works on sane cases. Now check whether nonexistent headers
5102 # can be detected and how.
5103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105 #include <ac_nonexistent.h>
5107 if ac_fn_c_try_cpp
"$LINENO"; then :
5108 # Broken: success on invalid input.
5111 # Passes both tests.
5115 rm -f conftest.err conftest.i conftest.
$ac_ext
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119 rm -f conftest.i conftest.err conftest.
$ac_ext
5120 if $ac_preproc_ok; then :
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5133 $as_echo "$CPP" >&6; }
5135 for ac_c_preproc_warn_flag
in '' yes
5137 # Use a header file that comes with gcc, so configuring glibc
5138 # with a fresh cross-compiler works.
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140 # <limits.h> exists even on freestanding compilers.
5141 # On the NeXT, cc -E runs the code through the compiler's parser,
5142 # not just through cpp. "Syntax error" is here to catch this case.
5143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5146 # include <limits.h>
5148 # include <assert.h>
5152 if ac_fn_c_try_cpp
"$LINENO"; then :
5155 # Broken: fails on valid input.
5158 rm -f conftest.err conftest.i conftest.
$ac_ext
5160 # OK, works on sane cases. Now check whether nonexistent headers
5161 # can be detected and how.
5162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164 #include <ac_nonexistent.h>
5166 if ac_fn_c_try_cpp
"$LINENO"; then :
5167 # Broken: success on invalid input.
5170 # Passes both tests.
5174 rm -f conftest.err conftest.i conftest.
$ac_ext
5177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5178 rm -f conftest.i conftest.err conftest.
$ac_ext
5179 if $ac_preproc_ok; then :
5182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5184 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5185 See \`config.log' for more details" "$LINENO" 5; }
5189 ac_cpp
='$CPP $CPPFLAGS'
5190 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5196 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5197 if ${ac_cv_path_GREP+:} false
; then :
5198 $as_echo_n "(cached) " >&6
5200 if test -z "$GREP"; then
5201 ac_path_GREP_found
=false
5202 # Loop through the user's path and test for each of PROGNAME-LIST
5203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5204 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5207 test -z "$as_dir" && as_dir
=.
5208 for ac_prog
in grep ggrep
; do
5209 for ac_exec_ext
in '' $ac_executable_extensions; do
5210 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5211 as_fn_executable_p
"$ac_path_GREP" ||
continue
5212 # Check for GNU ac_path_GREP and select it if it is found.
5213 # Check for GNU $ac_path_GREP
5214 case `"$ac_path_GREP" --version 2>&1` in
5216 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5219 $as_echo_n 0123456789 >"conftest.in"
5222 cat "conftest.in" "conftest.in" >"conftest.tmp"
5223 mv "conftest.tmp" "conftest.in"
5224 cp "conftest.in" "conftest.nl"
5225 $as_echo 'GREP' >> "conftest.nl"
5226 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5227 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5228 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5229 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5230 # Best one so far, save it but keep looking for a better one
5231 ac_cv_path_GREP
="$ac_path_GREP"
5232 ac_path_GREP_max
=$ac_count
5234 # 10*(2^10) chars as input seems more than enough
5235 test $ac_count -gt 10 && break
5237 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5240 $ac_path_GREP_found && break 3
5245 if test -z "$ac_cv_path_GREP"; then
5246 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5249 ac_cv_path_GREP
=$GREP
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5254 $as_echo "$ac_cv_path_GREP" >&6; }
5255 GREP
="$ac_cv_path_GREP"
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5259 $as_echo_n "checking for egrep... " >&6; }
5260 if ${ac_cv_path_EGREP+:} false
; then :
5261 $as_echo_n "(cached) " >&6
5263 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5264 then ac_cv_path_EGREP
="$GREP -E"
5266 if test -z "$EGREP"; then
5267 ac_path_EGREP_found
=false
5268 # Loop through the user's path and test for each of PROGNAME-LIST
5269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5270 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5273 test -z "$as_dir" && as_dir
=.
5274 for ac_prog
in egrep; do
5275 for ac_exec_ext
in '' $ac_executable_extensions; do
5276 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5277 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5278 # Check for GNU ac_path_EGREP and select it if it is found.
5279 # Check for GNU $ac_path_EGREP
5280 case `"$ac_path_EGREP" --version 2>&1` in
5282 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5285 $as_echo_n 0123456789 >"conftest.in"
5288 cat "conftest.in" "conftest.in" >"conftest.tmp"
5289 mv "conftest.tmp" "conftest.in"
5290 cp "conftest.in" "conftest.nl"
5291 $as_echo 'EGREP' >> "conftest.nl"
5292 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5293 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5294 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5295 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5296 # Best one so far, save it but keep looking for a better one
5297 ac_cv_path_EGREP
="$ac_path_EGREP"
5298 ac_path_EGREP_max
=$ac_count
5300 # 10*(2^10) chars as input seems more than enough
5301 test $ac_count -gt 10 && break
5303 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5306 $ac_path_EGREP_found && break 3
5311 if test -z "$ac_cv_path_EGREP"; then
5312 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5315 ac_cv_path_EGREP
=$EGREP
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5321 $as_echo "$ac_cv_path_EGREP" >&6; }
5322 EGREP
="$ac_cv_path_EGREP"
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5326 $as_echo_n "checking for ANSI C header files... " >&6; }
5327 if ${ac_cv_header_stdc+:} false
; then :
5328 $as_echo_n "(cached) " >&6
5330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5345 if ac_fn_c_try_compile
"$LINENO"; then :
5346 ac_cv_header_stdc
=yes
5348 ac_cv_header_stdc
=no
5350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5352 if test $ac_cv_header_stdc = yes; then
5353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 $EGREP "memchr" >/dev
/null
2>&1; then :
5363 ac_cv_header_stdc
=no
5369 if test $ac_cv_header_stdc = yes; then
5370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 $EGREP "free" >/dev
/null
2>&1; then :
5380 ac_cv_header_stdc
=no
5386 if test $ac_cv_header_stdc = yes; then
5387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5388 if test "$cross_compiling" = yes; then :
5391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5395 #if ((' ' & 0x0FF) == 0x020)
5396 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5397 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5399 # define ISLOWER(c) \
5400 (('a' <= (c) && (c) <= 'i') \
5401 || ('j' <= (c) && (c) <= 'r') \
5402 || ('s' <= (c) && (c) <= 'z'))
5403 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5411 for (i = 0; i < 256; i++)
5412 if (XOR (islower (i), ISLOWER (i))
5413 || toupper (i) != TOUPPER (i))
5418 if ac_fn_c_try_run
"$LINENO"; then :
5421 ac_cv_header_stdc
=no
5423 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5424 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5430 $as_echo "$ac_cv_header_stdc" >&6; }
5431 if test $ac_cv_header_stdc = yes; then
5433 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5437 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5438 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5439 inttypes.h stdint.h unistd.h
5441 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5442 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5444 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5445 cat >>confdefs.h
<<_ACEOF
5446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5455 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5456 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5463 if test "$MINIX" = yes; then
5465 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5468 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5471 $as_echo "#define _MINIX 1" >>confdefs.h
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5477 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5478 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5479 $as_echo_n "(cached) " >&6
5481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5484 # define __EXTENSIONS__ 1
5485 $ac_includes_default
5494 if ac_fn_c_try_compile
"$LINENO"; then :
5495 ac_cv_safe_to_define___extensions__
=yes
5497 ac_cv_safe_to_define___extensions__
=no
5499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5502 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5503 test $ac_cv_safe_to_define___extensions__ = yes &&
5504 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5506 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5508 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5510 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5512 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5516 # The tests for host and target for $enable_largefile require
5521 # As the $enable_largefile decision depends on --enable-plugins we must set it
5522 # even in directories otherwise not depending on the $plugins option.
5526 for ac_header
in dlfcn.h
5528 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5530 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5531 cat >>confdefs.h
<<_ACEOF
5532 #define HAVE_DLFCN_H 1
5539 for ac_header
in windows.h
5541 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5543 if test "x$ac_cv_header_windows_h" = xyes
; then :
5544 cat >>confdefs.h
<<_ACEOF
5545 #define HAVE_WINDOWS_H 1
5553 # Check whether --enable-plugins was given.
5554 if test "${enable_plugins+set}" = set; then :
5555 enableval
=$enable_plugins; case "${enableval}" in
5558 if test "$maybe_plugins" != "yes" ; then
5559 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5563 plugins
=$maybe_plugins
5567 if test "$plugins" = "yes"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5569 $as_echo_n "checking for library containing dlsym... " >&6; }
5570 if ${ac_cv_search_dlsym+:} false
; then :
5571 $as_echo_n "(cached) " >&6
5573 ac_func_search_save_LIBS
=$LIBS
5574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5577 /* Override any GCC internal prototype to avoid an error.
5578 Use char because int might match the return type of a GCC
5579 builtin and then its argument prototype would still apply. */
5592 for ac_lib
in '' dl
; do
5593 if test -z "$ac_lib"; then
5594 ac_res
="none required"
5597 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5599 if ac_fn_c_try_link
"$LINENO"; then :
5600 ac_cv_search_dlsym
=$ac_res
5602 rm -f core conftest.err conftest.
$ac_objext \
5604 if ${ac_cv_search_dlsym+:} false
; then :
5608 if ${ac_cv_search_dlsym+:} false
; then :
5611 ac_cv_search_dlsym
=no
5614 LIBS
=$ac_func_search_save_LIBS
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5617 $as_echo "$ac_cv_search_dlsym" >&6; }
5618 ac_res
=$ac_cv_search_dlsym
5619 if test "$ac_res" != no
; then :
5620 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5628 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
5629 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5630 # are mutually exclusive; and without procfs support, the bfd/ elf module
5631 # cannot provide certain routines such as elfcore_write_prpsinfo
5632 # or elfcore_write_prstatus. So unless the user explicitly requested
5633 # large-file support through the --enable-largefile switch, disable
5634 # large-file support in favor of procfs support.
5635 test "${target}" = "${host}" -a "x$plugins" = xno \
5636 && : ${enable_largefile="no"}
5640 # Check whether --enable-largefile was given.
5641 if test "${enable_largefile+set}" = set; then :
5642 enableval
=$enable_largefile;
5645 if test "$enable_largefile" != no
; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5648 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5649 if ${ac_cv_sys_largefile_CC+:} false
; then :
5650 $as_echo_n "(cached) " >&6
5652 ac_cv_sys_largefile_CC
=no
5653 if test "$GCC" != yes; then
5656 # IRIX 6.2 and later do not support large files by default,
5657 # so use the C compiler's -n32 option if that helps.
5658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 #include <sys/types.h>
5661 /* Check that off_t can represent 2**63 - 1 correctly.
5662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663 since some C++ compilers masquerading as C compilers
5664 incorrectly reject 9223372036854775807. */
5665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667 && LARGE_OFF_T % 2147483647 == 1)
5677 if ac_fn_c_try_compile
"$LINENO"; then :
5680 rm -f core conftest.err conftest.
$ac_objext
5682 if ac_fn_c_try_compile
"$LINENO"; then :
5683 ac_cv_sys_largefile_CC
=' -n32'; break
5685 rm -f core conftest.err conftest.
$ac_objext
5689 rm -f conftest.
$ac_ext
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5693 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5694 if test "$ac_cv_sys_largefile_CC" != no
; then
5695 CC
=$CC$ac_cv_sys_largefile_CC
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5699 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5700 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5701 $as_echo_n "(cached) " >&6
5704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 #include <sys/types.h>
5707 /* Check that off_t can represent 2**63 - 1 correctly.
5708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5709 since some C++ compilers masquerading as C compilers
5710 incorrectly reject 9223372036854775807. */
5711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5713 && LARGE_OFF_T % 2147483647 == 1)
5723 if ac_fn_c_try_compile
"$LINENO"; then :
5724 ac_cv_sys_file_offset_bits
=no
; break
5726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 #define _FILE_OFFSET_BITS 64
5730 #include <sys/types.h>
5731 /* Check that off_t can represent 2**63 - 1 correctly.
5732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5733 since some C++ compilers masquerading as C compilers
5734 incorrectly reject 9223372036854775807. */
5735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5737 && LARGE_OFF_T % 2147483647 == 1)
5747 if ac_fn_c_try_compile
"$LINENO"; then :
5748 ac_cv_sys_file_offset_bits
=64; break
5750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5751 ac_cv_sys_file_offset_bits
=unknown
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5756 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5757 case $ac_cv_sys_file_offset_bits in #(
5760 cat >>confdefs.h
<<_ACEOF
5761 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5766 if test $ac_cv_sys_file_offset_bits = unknown
; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5768 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5769 if ${ac_cv_sys_large_files+:} false
; then :
5770 $as_echo_n "(cached) " >&6
5773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 #include <sys/types.h>
5776 /* Check that off_t can represent 2**63 - 1 correctly.
5777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5778 since some C++ compilers masquerading as C compilers
5779 incorrectly reject 9223372036854775807. */
5780 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5782 && LARGE_OFF_T % 2147483647 == 1)
5792 if ac_fn_c_try_compile
"$LINENO"; then :
5793 ac_cv_sys_large_files
=no
; break
5795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 #define _LARGE_FILES 1
5799 #include <sys/types.h>
5800 /* Check that off_t can represent 2**63 - 1 correctly.
5801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5802 since some C++ compilers masquerading as C compilers
5803 incorrectly reject 9223372036854775807. */
5804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5806 && LARGE_OFF_T % 2147483647 == 1)
5816 if ac_fn_c_try_compile
"$LINENO"; then :
5817 ac_cv_sys_large_files
=1; break
5819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5820 ac_cv_sys_large_files
=unknown
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5825 $as_echo "$ac_cv_sys_large_files" >&6; }
5826 case $ac_cv_sys_large_files in #(
5829 cat >>confdefs.h
<<_ACEOF
5830 #define _LARGE_FILES $ac_cv_sys_large_files
5842 ac_cpp
='$CPP $CPPFLAGS'
5843 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5848 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if ${ac_cv_prog_CC+:} false
; then :
5852 $as_echo_n "(cached) " >&6
5854 if test -n "$CC"; then
5855 ac_cv_prog_CC
="$CC" # Let the user override the test.
5857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir
=.
5862 for ac_exec_ext
in '' $ac_executable_extensions; do
5863 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 if test -n "$CC"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5877 $as_echo "$CC" >&6; }
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5885 if test -z "$ac_cv_prog_CC"; then
5887 # Extract the first word of "gcc", so it can be a program name with args.
5888 set dummy gcc
; ac_word
=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5892 $as_echo_n "(cached) " >&6
5894 if test -n "$ac_ct_CC"; then
5895 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir
=.
5902 for ac_exec_ext
in '' $ac_executable_extensions; do
5903 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_ac_ct_CC
="gcc"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5915 if test -n "$ac_ct_CC"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5917 $as_echo "$ac_ct_CC" >&6; }
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5923 if test "x$ac_ct_CC" = x
; then
5926 case $cross_compiling:$ac_tool_warned in
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5930 ac_tool_warned
=yes ;;
5938 if test -z "$CC"; then
5939 if test -n "$ac_tool_prefix"; then
5940 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5941 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if ${ac_cv_prog_CC+:} false
; then :
5945 $as_echo_n "(cached) " >&6
5947 if test -n "$CC"; then
5948 ac_cv_prog_CC
="$CC" # Let the user override the test.
5950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5954 test -z "$as_dir" && as_dir
=.
5955 for ac_exec_ext
in '' $ac_executable_extensions; do
5956 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 if test -n "$CC"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5970 $as_echo "$CC" >&6; }
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5979 if test -z "$CC"; then
5980 # Extract the first word of "cc", so it can be a program name with args.
5981 set dummy cc
; ac_word
=$2
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if ${ac_cv_prog_CC+:} false
; then :
5985 $as_echo_n "(cached) " >&6
5987 if test -n "$CC"; then
5988 ac_cv_prog_CC
="$CC" # Let the user override the test.
5991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5995 test -z "$as_dir" && as_dir
=.
5996 for ac_exec_ext
in '' $ac_executable_extensions; do
5997 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5999 ac_prog_rejected
=yes
6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 if test $ac_prog_rejected = yes; then
6011 # We found a bogon in the path, so make sure we never use it.
6012 set dummy
$ac_cv_prog_CC
6014 if test $# != 0; then
6015 # We chose a different compiler from the bogus one.
6016 # However, it has the same basename, so the bogon will be chosen
6017 # first if we set CC to just the basename; use the full file name.
6019 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6025 if test -n "$CC"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6027 $as_echo "$CC" >&6; }
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6035 if test -z "$CC"; then
6036 if test -n "$ac_tool_prefix"; then
6037 for ac_prog
in cl.exe
6039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6040 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_prog_CC+:} false
; then :
6044 $as_echo_n "(cached) " >&6
6046 if test -n "$CC"; then
6047 ac_cv_prog_CC
="$CC" # Let the user override the test.
6049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir
=.
6054 for ac_exec_ext
in '' $ac_executable_extensions; do
6055 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6056 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 if test -n "$CC"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6069 $as_echo "$CC" >&6; }
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6076 test -n "$CC" && break
6079 if test -z "$CC"; then
6081 for ac_prog
in cl.exe
6083 # Extract the first word of "$ac_prog", so it can be a program name with args.
6084 set dummy
$ac_prog; ac_word
=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6088 $as_echo_n "(cached) " >&6
6090 if test -n "$ac_ct_CC"; then
6091 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6097 test -z "$as_dir" && as_dir
=.
6098 for ac_exec_ext
in '' $ac_executable_extensions; do
6099 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_ac_ct_CC
="$ac_prog"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6111 if test -n "$ac_ct_CC"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6113 $as_echo "$ac_ct_CC" >&6; }
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6120 test -n "$ac_ct_CC" && break
6123 if test "x$ac_ct_CC" = x
; then
6126 case $cross_compiling:$ac_tool_warned in
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130 ac_tool_warned
=yes ;;
6139 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6141 as_fn_error $?
"no acceptable C compiler found in \$PATH
6142 See \`config.log' for more details" "$LINENO" 5; }
6144 # Provide some information about the compiler.
6145 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6148 for ac_option
in --version -v -V -qversion; do
6149 { { ac_try
="$ac_compiler $ac_option >&5"
6151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6155 $as_echo "$ac_try_echo"; } >&5
6156 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6158 if test -s conftest.err; then
6160 ... rest of stderr output deleted ...
6161 10q' conftest.err >conftest.er1
6162 cat conftest.er1 >&5
6164 rm -f conftest.er1 conftest.err
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; }
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6170 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6171 if ${ac_cv_c_compiler_gnu+:} false; then :
6172 $as_echo_n "(cached) " >&6
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6188 if ac_fn_c_try_compile "$LINENO"; then :
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6198 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6199 if test $ac_compiler_gnu = yes; then
6204 ac_test_CFLAGS=${CFLAGS+set}
6205 ac_save_CFLAGS=$CFLAGS
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6207 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6208 if ${ac_cv_prog_cc_g+:} false; then :
6209 $as_echo_n "(cached) " >&6
6211 ac_save_c_werror_flag=$ac_c_werror_flag
6212 ac_c_werror_flag=yes
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6226 if ac_fn_c_try_compile "$LINENO"; then :
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6241 if ac_fn_c_try_compile "$LINENO"; then :
6244 ac_c_werror_flag=$ac_save_c_werror_flag
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6257 if ac_fn_c_try_compile "$LINENO"; then :
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 ac_c_werror_flag=$ac_save_c_werror_flag
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6268 $as_echo "$ac_cv_prog_cc_g" >&6; }
6269 if test "$ac_test_CFLAGS" = set; then
6270 CFLAGS=$ac_save_CFLAGS
6271 elif test $ac_cv_prog_cc_g = yes; then
6272 if test "$GCC" = yes; then
6278 if test "$GCC" = yes; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6285 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6286 if ${ac_cv_prog_cc_c89+:} false; then :
6287 $as_echo_n "(cached) " >&6
6289 ac_cv_prog_cc_c89=no
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6296 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6297 struct buf { int x; };
6298 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6299 static char *e (p, i)
6305 static char *f (char * (*g) (char **, int), char **p, ...)
6310 s = g (p, va_arg (v,int));
6315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6316 function prototypes and stuff, but not '\xHH' hex character constants.
6317 These don't provoke an error unfortunately, instead are silently treated
6318 as 'x'. The following induces an error, until -std is added to get
6319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6320 array size at least. It's necessary to write '\x00'==0 to get something
6321 that's true only with -std. */
6322 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6324 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6325 inside strings and character constants. */
6327 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6329 int test (int i, double x);
6330 struct s1 {int (*f) (int a);};
6331 struct s2 {int (*f) (double a);};
6332 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6338 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6343 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6344 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6346 CC="$ac_save_CC $ac_arg"
6347 if ac_fn_c_try_compile "$LINENO"; then :
6348 ac_cv_prog_cc_c89=$ac_arg
6350 rm -f core conftest.err conftest.$ac_objext
6351 test "x$ac_cv_prog_cc_c89" != "xno" && break
6353 rm -f conftest.$ac_ext
6358 case "x$ac_cv_prog_cc_c89" in
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6361 $as_echo "none needed" >&6; } ;;
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6364 $as_echo "unsupported" >&6; } ;;
6366 CC="$CC $ac_cv_prog_cc_c89"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6368 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6370 if test "x$ac_cv_prog_cc_c89" != xno; then :
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6386 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6387 if ${am_cv_prog_cc_c_o+:} false; then :
6388 $as_echo_n "(cached) " >&6
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6401 # Make sure it works both with $CC and with simple cc.
6402 # Following AC_PROG_CC_C_O, we do the test twice because some
6403 # compilers refuse to overwrite an existing .o file with -o,
6404 # though they will create one.
6405 am_cv_prog_cc_c_o=yes
6407 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6408 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } \
6412 && test -f conftest2.$ac_objext; then
6415 am_cv_prog_cc_c_o=no
6419 rm -f core conftest*
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6423 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6424 if test "$am_cv_prog_cc_c_o" != yes; then
6425 # Losing compiler, so override with the script.
6426 # FIXME: It is wrong to rewrite CC.
6427 # But if we don't then we get into trouble of one sort or another.
6428 # A longer-term fix would be to have automake use am__CC in this case,
6429 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6430 CC="$am_aux_dir/compile $CC"
6433 ac_cpp='$CPP $CPPFLAGS'
6434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439 depcc="$CC" am_compiler_list=
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6442 $as_echo_n "checking dependency style of $depcc... " >&6; }
6443 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6447 # We make a subdir and do the tests there. Otherwise we can end up
6448 # making bogus files that we don't know about and never remove. For
6449 # instance it was reported that on HP-UX the gcc test will end up
6450 # making a dummy file named 'D' -- because '-MD' means "put the output
6454 # Copy depcomp to subdir because otherwise we won't find it if we're
6455 # using a relative directory.
6456 cp "$am_depcomp" conftest.dir
6458 # We will build objects and dependencies in a subdirectory because
6459 # it helps to detect inapplicable dependency modes. For instance
6460 # both Tru64's cc and ICC support -MD to output dependencies as a
6461 # side effect of compilation, but ICC will put the dependencies in
6462 # the current directory while Tru64 will put them in the object
6466 am_cv_CC_dependencies_compiler_type=none
6467 if test "$am_compiler_list" = ""; then
6468 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6471 case " $depcc " in #(
6472 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6475 for depmode in $am_compiler_list; do
6476 # Setup a source with many dependencies, because some compilers
6477 # like to wrap large dependency lists on column 80 (with \), and
6478 # we should not choose a depcomp mode which is confused by this.
6480 # We need to recreate these files for each test, as the compiler may
6481 # overwrite some of them when testing with obscure command lines.
6482 # This happens at least with the AIX C compiler.
6484 for i in 1 2 3 4 5 6; do
6485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6486 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6487 # Solaris 10 /bin/sh.
6488 echo '/* dummy */' > sub/conftst$i.h
6490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6492 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6493 # mode. It turns out that the SunPro C++ compiler does not properly
6494 # handle '-M -o', and we need to detect this. Also, some Intel
6495 # versions had trouble with output in subdirs.
6496 am__obj=sub/conftest.${OBJEXT-o}
6497 am__minus_obj="-o $am__obj"
6500 # This depmode causes a compiler race in universal mode.
6501 test "$am__universal" = false || continue
6504 # After this tag, mechanisms are not by side-effect, so they'll
6505 # only be used when explicitly requested.
6506 if test "x$enable_dependency_tracking" = xyes; then
6512 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6513 # This compiler won't grok '-c -o', but also, the minuso test has
6514 # not run yet. These depmodes are late enough in the game, and
6515 # so weak that their functioning should not be impacted.
6516 am__obj=conftest.${OBJEXT-o}
6521 if depmode=$depmode \
6522 source=sub/conftest.c object=$am__obj \
6523 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6524 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6525 >/dev/null 2>conftest.err &&
6526 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6527 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6528 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6529 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6530 # icc doesn't choke on unknown options, it will just issue warnings
6531 # or remarks (even with -Werror). So we grep stderr for any message
6532 # that says an option was ignored or not supported.
6533 # When given -MP, icc 7.0 and 7.1 complain thusly:
6534 # icc: Command line warning: ignoring option '-M'; no argument required
6535 # The diagnosis changed in icc 8.0:
6536 # icc: Command line remark: option '-MP' not supported
6537 if (grep 'ignoring option' conftest.err ||
6538 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6539 am_cv_CC_dependencies_compiler_type=$depmode
6548 am_cv_CC_dependencies_compiler_type=none
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6553 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6554 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6557 test "x$enable_dependency_tracking" != xno \
6558 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6560 am__fastdepCC_FALSE='#'
6562 am__fastdepCC_TRUE='#'
6563 am__fastdepCC_FALSE=
6567 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6570 # We require a C++11 compiler. Check if one is available, and if
6571 # necessary, set CXX_DIALECT to some -std=xxx switch.
6573 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6575 ac_cpp='$CXXCPP $CPPFLAGS'
6576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6582 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6583 if ${ax_cv_cxx_compile_cxx11+:} false; then :
6584 $as_echo_n "(cached) " >&6
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6590 // If the compiler admits that it is not ready for C++11, why torture it?
6591 // Hopefully, this will speed up the test.
6595 #error "This is not a C++ compiler"
6597 #elif __cplusplus < 201103L
6599 #error "This is not a C++11 compiler"
6606 namespace test_static_assert
6609 template <typename T>
6612 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6617 namespace test_final_override
6625 struct Derived : public Base
6627 virtual void f() override {}
6632 namespace test_double_right_angle_brackets
6635 template < typename T >
6638 typedef check<void> single_type;
6639 typedef check<check<void>> double_type;
6640 typedef check<check<check<void>>> triple_type;
6641 typedef check<check<check<check<void>>>> quadruple_type;
6645 namespace test_decltype
6658 namespace test_type_deduction
6661 template < typename T1, typename T2 >
6664 static const bool value = false;
6667 template < typename T >
6668 struct is_same<T, T>
6670 static const bool value = true;
6673 template < typename T1, typename T2 >
6675 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6681 test(const int c, volatile int v)
6683 static_assert(is_same<int, decltype(0)>::value == true, "");
6684 static_assert(is_same<int, decltype(c)>::value == false, "");
6685 static_assert(is_same<int, decltype(v)>::value == false, "");
6688 auto sumi = ac + av + 'x';
6689 auto sumf = ac + av + 1.0;
6690 static_assert(is_same<int, decltype(ac)>::value == true, "");
6691 static_assert(is_same<int, decltype(av)>::value == true, "");
6692 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6693 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6694 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6695 return (sumf > 0.0) ? sumi : add(c, v);
6700 namespace test_noexcept
6703 int f() { return 0; }
6704 int g() noexcept { return 0; }
6706 static_assert(noexcept(f()) == false, "");
6707 static_assert(noexcept(g()) == true, "");
6711 namespace test_constexpr
6714 template < typename CharT >
6715 unsigned long constexpr
6716 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6718 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6721 template < typename CharT >
6722 unsigned long constexpr
6723 strlen_c(const CharT *const s) noexcept
6725 return strlen_c_r(s, 0UL);
6728 static_assert(strlen_c("") == 0UL, "");
6729 static_assert(strlen_c("1") == 1UL, "");
6730 static_assert(strlen_c("example") == 7UL, "");
6731 static_assert(strlen_c("another\0example") == 7UL, "");
6735 namespace test_rvalue_references
6741 static constexpr int value = N;
6744 answer<1> f(int&) { return answer<1>(); }
6745 answer<2> f(const int&) { return answer<2>(); }
6746 answer<3> f(int&&) { return answer<3>(); }
6753 static_assert(decltype(f(i))::value == 1, "");
6754 static_assert(decltype(f(c))::value == 2, "");
6755 static_assert(decltype(f(0))::value == 3, "");
6760 namespace test_uniform_initialization
6765 static const int zero {};
6766 static const int one {1};
6769 static_assert(test::zero == 0, "");
6770 static_assert(test::one == 1, "");
6774 namespace test_lambdas
6780 auto lambda1 = [](){};
6781 auto lambda2 = lambda1;
6789 auto a = [](int i, int j){ return i + j; }(1, 2);
6790 auto b = []() -> int { return '0'; }();
6791 auto c = [=](){ return a + b; }();
6792 auto d = [&](){ return c; }();
6793 auto e = [a, &b](int x) mutable {
6794 const auto identity = [](int y){ return y; };
6795 for (auto i = 0; i < a; ++i)
6797 return x + identity(a + b);
6799 return a + b + c + d + e;
6805 const auto nullary = [](){ return 0; };
6806 const auto unary = [](int x){ return x; };
6807 using nullary_t = decltype(nullary);
6808 using unary_t = decltype(unary);
6809 const auto higher1st = [](nullary_t f){ return f(); };
6810 const auto higher2nd = [unary](nullary_t f1){
6811 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6813 return higher1st(nullary) + higher2nd(nullary)(unary);
6818 namespace test_variadic_templates
6824 template <int N0, int... N1toN>
6825 struct sum<N0, N1toN...>
6827 static constexpr auto value = N0 + sum<N1toN...>::value;
6833 static constexpr auto value = 0;
6836 static_assert(sum<>::value == 0, "");
6837 static_assert(sum<1>::value == 1, "");
6838 static_assert(sum<23>::value == 23, "");
6839 static_assert(sum<1, 2>::value == 3, "");
6840 static_assert(sum<5, 5, 11>::value == 21, "");
6841 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6845 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6846 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6848 namespace test_template_alias_sfinae
6853 template<typename T>
6854 using member = typename T::member_type;
6856 template<typename T>
6859 template<typename T>
6860 void func(member<T>*) {}
6864 void test() { func<foo>(0); }
6868 } // namespace cxx11
6870 #endif // __cplusplus >= 201103L
6875 if ac_fn_cxx_try_compile "$LINENO"; then :
6876 ax_cv_cxx_compile_cxx11=yes
6878 ax_cv_cxx_compile_cxx11=no
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6883 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6884 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6888 if test x$ac_success = xno; then
6889 for alternative in ${ax_cxx_compile_alternatives}; do
6890 switch="-std=gnu++${alternative}"
6891 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6893 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6894 if eval \${$cachevar+:} false; then :
6895 $as_echo_n "(cached) " >&6
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6903 // If the compiler admits that it is not ready for C++11, why torture it?
6904 // Hopefully, this will speed up the test.
6908 #error "This is not a C++ compiler"
6910 #elif __cplusplus < 201103L
6912 #error "This is not a C++11 compiler"
6919 namespace test_static_assert
6922 template <typename T>
6925 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6930 namespace test_final_override
6938 struct Derived : public Base
6940 virtual void f() override {}
6945 namespace test_double_right_angle_brackets
6948 template < typename T >
6951 typedef check<void> single_type;
6952 typedef check<check<void>> double_type;
6953 typedef check<check<check<void>>> triple_type;
6954 typedef check<check<check<check<void>>>> quadruple_type;
6958 namespace test_decltype
6971 namespace test_type_deduction
6974 template < typename T1, typename T2 >
6977 static const bool value = false;
6980 template < typename T >
6981 struct is_same<T, T>
6983 static const bool value = true;
6986 template < typename T1, typename T2 >
6988 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6994 test(const int c, volatile int v)
6996 static_assert(is_same<int, decltype(0)>::value == true, "");
6997 static_assert(is_same<int, decltype(c)>::value == false, "");
6998 static_assert(is_same<int, decltype(v)>::value == false, "");
7001 auto sumi = ac + av + 'x';
7002 auto sumf = ac + av + 1.0;
7003 static_assert(is_same<int, decltype(ac)>::value == true, "");
7004 static_assert(is_same<int, decltype(av)>::value == true, "");
7005 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7006 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7007 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7008 return (sumf > 0.0) ? sumi : add(c, v);
7013 namespace test_noexcept
7016 int f() { return 0; }
7017 int g() noexcept { return 0; }
7019 static_assert(noexcept(f()) == false, "");
7020 static_assert(noexcept(g()) == true, "");
7024 namespace test_constexpr
7027 template < typename CharT >
7028 unsigned long constexpr
7029 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7031 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7034 template < typename CharT >
7035 unsigned long constexpr
7036 strlen_c(const CharT *const s) noexcept
7038 return strlen_c_r(s, 0UL);
7041 static_assert(strlen_c("") == 0UL, "");
7042 static_assert(strlen_c("1") == 1UL, "");
7043 static_assert(strlen_c("example") == 7UL, "");
7044 static_assert(strlen_c("another\0example") == 7UL, "");
7048 namespace test_rvalue_references
7054 static constexpr int value = N;
7057 answer<1> f(int&) { return answer<1>(); }
7058 answer<2> f(const int&) { return answer<2>(); }
7059 answer<3> f(int&&) { return answer<3>(); }
7066 static_assert(decltype(f(i))::value == 1, "");
7067 static_assert(decltype(f(c))::value == 2, "");
7068 static_assert(decltype(f(0))::value == 3, "");
7073 namespace test_uniform_initialization
7078 static const int zero {};
7079 static const int one {1};
7082 static_assert(test::zero == 0, "");
7083 static_assert(test::one == 1, "");
7087 namespace test_lambdas
7093 auto lambda1 = [](){};
7094 auto lambda2 = lambda1;
7102 auto a = [](int i, int j){ return i + j; }(1, 2);
7103 auto b = []() -> int { return '0'; }();
7104 auto c = [=](){ return a + b; }();
7105 auto d = [&](){ return c; }();
7106 auto e = [a, &b](int x) mutable {
7107 const auto identity = [](int y){ return y; };
7108 for (auto i = 0; i < a; ++i)
7110 return x + identity(a + b);
7112 return a + b + c + d + e;
7118 const auto nullary = [](){ return 0; };
7119 const auto unary = [](int x){ return x; };
7120 using nullary_t = decltype(nullary);
7121 using unary_t = decltype(unary);
7122 const auto higher1st = [](nullary_t f){ return f(); };
7123 const auto higher2nd = [unary](nullary_t f1){
7124 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7126 return higher1st(nullary) + higher2nd(nullary)(unary);
7131 namespace test_variadic_templates
7137 template <int N0, int... N1toN>
7138 struct sum<N0, N1toN...>
7140 static constexpr auto value = N0 + sum<N1toN...>::value;
7146 static constexpr auto value = 0;
7149 static_assert(sum<>::value == 0, "");
7150 static_assert(sum<1>::value == 1, "");
7151 static_assert(sum<23>::value == 23, "");
7152 static_assert(sum<1, 2>::value == 3, "");
7153 static_assert(sum<5, 5, 11>::value == 21, "");
7154 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7158 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7159 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7161 namespace test_template_alias_sfinae
7166 template<typename T>
7167 using member = typename T::member_type;
7169 template<typename T>
7172 template<typename T>
7173 void func(member<T>*) {}
7177 void test() { func<foo>(0); }
7181 } // namespace cxx11
7183 #endif // __cplusplus >= 201103L
7188 if ac_fn_cxx_try_compile "$LINENO"; then :
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 eval ac_res=\$$cachevar
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7198 $as_echo "$ac_res" >&6; }
7199 if eval test x\$$cachevar = xyes; then
7200 CXX_DIALECT="$switch"
7207 if test x$ac_success = xno; then
7208 for alternative in ${ax_cxx_compile_alternatives}; do
7209 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7210 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7212 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7213 if eval \${$cachevar+:} false; then :
7214 $as_echo_n "(cached) " >&6
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7222 // If the compiler admits that it is not ready for C++11, why torture it?
7223 // Hopefully, this will speed up the test.
7227 #error "This is not a C++ compiler"
7229 #elif __cplusplus < 201103L
7231 #error "This is not a C++11 compiler"
7238 namespace test_static_assert
7241 template <typename T>
7244 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7249 namespace test_final_override
7257 struct Derived : public Base
7259 virtual void f() override {}
7264 namespace test_double_right_angle_brackets
7267 template < typename T >
7270 typedef check<void> single_type;
7271 typedef check<check<void>> double_type;
7272 typedef check<check<check<void>>> triple_type;
7273 typedef check<check<check<check<void>>>> quadruple_type;
7277 namespace test_decltype
7290 namespace test_type_deduction
7293 template < typename T1, typename T2 >
7296 static const bool value = false;
7299 template < typename T >
7300 struct is_same<T, T>
7302 static const bool value = true;
7305 template < typename T1, typename T2 >
7307 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7313 test(const int c, volatile int v)
7315 static_assert(is_same<int, decltype(0)>::value == true, "");
7316 static_assert(is_same<int, decltype(c)>::value == false, "");
7317 static_assert(is_same<int, decltype(v)>::value == false, "");
7320 auto sumi = ac + av + 'x';
7321 auto sumf = ac + av + 1.0;
7322 static_assert(is_same<int, decltype(ac)>::value == true, "");
7323 static_assert(is_same<int, decltype(av)>::value == true, "");
7324 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7325 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7326 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7327 return (sumf > 0.0) ? sumi : add(c, v);
7332 namespace test_noexcept
7335 int f() { return 0; }
7336 int g() noexcept { return 0; }
7338 static_assert(noexcept(f()) == false, "");
7339 static_assert(noexcept(g()) == true, "");
7343 namespace test_constexpr
7346 template < typename CharT >
7347 unsigned long constexpr
7348 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7350 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7353 template < typename CharT >
7354 unsigned long constexpr
7355 strlen_c(const CharT *const s) noexcept
7357 return strlen_c_r(s, 0UL);
7360 static_assert(strlen_c("") == 0UL, "");
7361 static_assert(strlen_c("1") == 1UL, "");
7362 static_assert(strlen_c("example") == 7UL, "");
7363 static_assert(strlen_c("another\0example") == 7UL, "");
7367 namespace test_rvalue_references
7373 static constexpr int value = N;
7376 answer<1> f(int&) { return answer<1>(); }
7377 answer<2> f(const int&) { return answer<2>(); }
7378 answer<3> f(int&&) { return answer<3>(); }
7385 static_assert(decltype(f(i))::value == 1, "");
7386 static_assert(decltype(f(c))::value == 2, "");
7387 static_assert(decltype(f(0))::value == 3, "");
7392 namespace test_uniform_initialization
7397 static const int zero {};
7398 static const int one {1};
7401 static_assert(test::zero == 0, "");
7402 static_assert(test::one == 1, "");
7406 namespace test_lambdas
7412 auto lambda1 = [](){};
7413 auto lambda2 = lambda1;
7421 auto a = [](int i, int j){ return i + j; }(1, 2);
7422 auto b = []() -> int { return '0'; }();
7423 auto c = [=](){ return a + b; }();
7424 auto d = [&](){ return c; }();
7425 auto e = [a, &b](int x) mutable {
7426 const auto identity = [](int y){ return y; };
7427 for (auto i = 0; i < a; ++i)
7429 return x + identity(a + b);
7431 return a + b + c + d + e;
7437 const auto nullary = [](){ return 0; };
7438 const auto unary = [](int x){ return x; };
7439 using nullary_t = decltype(nullary);
7440 using unary_t = decltype(unary);
7441 const auto higher1st = [](nullary_t f){ return f(); };
7442 const auto higher2nd = [unary](nullary_t f1){
7443 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7445 return higher1st(nullary) + higher2nd(nullary)(unary);
7450 namespace test_variadic_templates
7456 template <int N0, int... N1toN>
7457 struct sum<N0, N1toN...>
7459 static constexpr auto value = N0 + sum<N1toN...>::value;
7465 static constexpr auto value = 0;
7468 static_assert(sum<>::value == 0, "");
7469 static_assert(sum<1>::value == 1, "");
7470 static_assert(sum<23>::value == 23, "");
7471 static_assert(sum<1, 2>::value == 3, "");
7472 static_assert(sum<5, 5, 11>::value == 21, "");
7473 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7477 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7478 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7480 namespace test_template_alias_sfinae
7485 template<typename T>
7486 using member = typename T::member_type;
7488 template<typename T>
7491 template<typename T>
7492 void func(member<T>*) {}
7496 void test() { func<foo>(0); }
7500 } // namespace cxx11
7502 #endif // __cplusplus >= 201103L
7507 if ac_fn_cxx_try_compile "$LINENO"; then :
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 eval ac_res=\$$cachevar
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7517 $as_echo "$ac_res" >&6; }
7518 if eval test x\$$cachevar = xyes; then
7519 CXX_DIALECT="$switch"
7524 if test x$ac_success = xyes; then
7530 ac_cpp='$CPP $CPPFLAGS'
7531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7535 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7536 if test x$ac_success = xno; then
7537 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7540 if test x$ac_success = xno; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7543 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7547 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
7554 # If we haven't got the data from the intl directory,
7555 # assume NLS is disabled.
7564 if test -f ../intl/config.intl; then
7565 . ../intl/config.intl
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7568 $as_echo_n "checking whether NLS is requested... " >&6; }
7569 if test x"$USE_NLS" != xyes; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7574 $as_echo "yes" >&6; }
7576 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7580 $as_echo_n "checking for catalogs to be installed... " >&6; }
7581 # Look for .po and .gmo files in the source directory.
7584 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7585 # If there aren't any .gmo files the shell will give us the
7586 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7588 case "$cat" in *\**)
7591 # The quadruple backslash is collapsed to a double backslash
7592 # by the backticks, then collapsed again by the double quotes,
7593 # leaving us with one backslash in the sed expression (right
7594 # before the dot that mustn't act as a wildcard).
7595 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7596 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
7597 # The user is allowed to set LINGUAS to a list of languages to
7598 # install catalogs for. If it's empty that means "all of them."
7599 if test "x$LINGUAS" = x; then
7600 CATALOGS="$CATALOGS $cat"
7601 XLINGUAS="$XLINGUAS $lang"
7603 case "$LINGUAS" in *$lang*)
7604 CATALOGS="$CATALOGS $cat"
7605 XLINGUAS="$XLINGUAS $lang"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7612 $as_echo "$LINGUAS" >&6; }
7626 # Check for presence and size of long long.
7627 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7628 if test "x$ac_cv_type_long_long" = xyes; then :
7630 cat >>confdefs.h <<_ACEOF
7631 #define HAVE_LONG_LONG 1
7634 # The cast to long int works around a bug in the HP C Compiler
7635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7636 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7637 # This bug is HP SR number 8606223364.
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7639 $as_echo_n "checking size of long long... " >&6; }
7640 if ${ac_cv_sizeof_long_long+:} false; then :
7641 $as_echo_n "(cached) " >&6
7643 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7646 if test "$ac_cv_type_long_long" = yes; then
7647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7648 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
7649 as_fn_error 77 "cannot compute sizeof (long long)
7650 See \`config.log
' for more details" "$LINENO" 5; }
7652 ac_cv_sizeof_long_long=0
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7658 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7662 cat >>confdefs.h <<_ACEOF
7663 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7670 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7671 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7672 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7678 cat >>confdefs.h <<_ACEOF
7679 #define HAVE_DECL_BASENAME $ac_have_decl
7681 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7682 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7688 cat >>confdefs.h <<_ACEOF
7689 #define HAVE_DECL_FFS $ac_have_decl
7691 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7692 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7698 cat >>confdefs.h <<_ACEOF
7699 #define HAVE_DECL_ASPRINTF $ac_have_decl
7701 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7702 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7708 cat >>confdefs.h <<_ACEOF
7709 #define HAVE_DECL_VASPRINTF $ac_have_decl
7711 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7712 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7718 cat >>confdefs.h <<_ACEOF
7719 #define HAVE_DECL_SNPRINTF $ac_have_decl
7721 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7722 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7728 cat >>confdefs.h <<_ACEOF
7729 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7732 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7733 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7739 cat >>confdefs.h <<_ACEOF
7740 #define HAVE_DECL_STRTOL $ac_have_decl
7742 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7743 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7749 cat >>confdefs.h <<_ACEOF
7750 #define HAVE_DECL_STRTOUL $ac_have_decl
7752 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7753 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7759 cat >>confdefs.h <<_ACEOF
7760 #define HAVE_DECL_STRTOLL $ac_have_decl
7762 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7763 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7769 cat >>confdefs.h <<_ACEOF
7770 #define HAVE_DECL_STRTOULL $ac_have_decl
7773 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7774 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7780 cat >>confdefs.h <<_ACEOF
7781 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7785 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7786 if test "x$ac_cv_type_size_t" = xyes; then :
7790 cat >>confdefs.h <<_ACEOF
7791 #define size_t unsigned int
7799 for ac_header in $ac_header_list
7801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7802 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7805 cat >>confdefs.h <<_ACEOF
7806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7819 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7820 if test "x$ac_cv_type_pid_t" = xyes; then :
7824 cat >>confdefs.h <<_ACEOF
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7831 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7832 if ${ac_cv_path_SED+:} false; then :
7833 $as_echo_n "(cached) " >&6
7835 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7836 for ac_i in 1 2 3 4 5 6 7; do
7837 ac_script="$ac_script$as_nl$ac_script"
7839 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7840 { ac_script=; unset ac_script;}
7841 if test -z "$SED"; then
7842 ac_path_SED_found=false
7843 # Loop through the user's path and
test for each of PROGNAME-LIST
7844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir
=.
7849 for ac_prog
in sed gsed
; do
7850 for ac_exec_ext
in '' $ac_executable_extensions; do
7851 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
7852 as_fn_executable_p
"$ac_path_SED" ||
continue
7853 # Check for GNU ac_path_SED and select it if it is found.
7854 # Check for GNU $ac_path_SED
7855 case `"$ac_path_SED" --version 2>&1` in
7857 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
7860 $as_echo_n 0123456789 >"conftest.in"
7863 cat "conftest.in" "conftest.in" >"conftest.tmp"
7864 mv "conftest.tmp" "conftest.in"
7865 cp "conftest.in" "conftest.nl"
7866 $as_echo '' >> "conftest.nl"
7867 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7868 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7869 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
7870 if test $ac_count -gt ${ac_path_SED_max-0}; then
7871 # Best one so far, save it but keep looking for a better one
7872 ac_cv_path_SED
="$ac_path_SED"
7873 ac_path_SED_max
=$ac_count
7875 # 10*(2^10) chars as input seems more than enough
7876 test $ac_count -gt 10 && break
7878 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7881 $ac_path_SED_found && break 3
7886 if test -z "$ac_cv_path_SED"; then
7887 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7895 $as_echo "$ac_cv_path_SED" >&6; }
7896 SED
="$ac_cv_path_SED"
7900 if test "X$prefix" = "XNONE"; then
7901 acl_final_prefix
="$ac_default_prefix"
7903 acl_final_prefix
="$prefix"
7905 if test "X$exec_prefix" = "XNONE"; then
7906 acl_final_exec_prefix
='${prefix}'
7908 acl_final_exec_prefix
="$exec_prefix"
7910 acl_save_prefix
="$prefix"
7911 prefix
="$acl_final_prefix"
7912 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7913 prefix
="$acl_save_prefix"
7916 # Check whether --with-gnu-ld was given.
7917 if test "${with_gnu_ld+set}" = set; then :
7918 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7923 # Prepare PATH_SEPARATOR.
7924 # The user is always right.
7925 if test "${PATH_SEPARATOR+set}" != set; then
7926 echo "#! /bin/sh" >conf$$.sh
7927 echo "exit 0" >>conf$$.sh
7929 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7937 if test "$GCC" = yes; then
7938 # Check if gcc -print-prog-name=ld gives a path.
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7940 $as_echo_n "checking for ld used by GCC... " >&6; }
7943 # gcc leaves a trailing carriage return which upsets mingw
7944 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7946 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7949 # Accept absolute paths.
7950 [\\/]* |
[A-Za-z
]:[\\/]*)
7951 re_direlt
='/[^/][^/]*/\.\./'
7952 # Canonicalize the path of ld
7953 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7954 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7955 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7957 test -z "$LD" && LD
="$ac_prog"
7960 # If it fails, then pretend we aren't using GCC.
7964 # If it is relative, then search for the first ld in PATH.
7968 elif test "$with_gnu_ld" = yes; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7970 $as_echo_n "checking for GNU ld... " >&6; }
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7973 $as_echo_n "checking for non-GNU ld... " >&6; }
7975 if ${acl_cv_path_LD+:} false
; then :
7976 $as_echo_n "(cached) " >&6
7978 if test -z "$LD"; then
7979 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7980 for ac_dir
in $PATH; do
7981 test -z "$ac_dir" && ac_dir
=.
7982 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7983 acl_cv_path_LD
="$ac_dir/$ac_prog"
7984 # Check to see if the program is GNU ld. I'd rather use --version,
7985 # but apparently some GNU ld's only accept -v.
7986 # Break only if it was the GNU/non-GNU ld that we prefer.
7987 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7988 test "$with_gnu_ld" != no
&& break
7990 test "$with_gnu_ld" != yes && break
7996 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8000 LD
="$acl_cv_path_LD"
8001 if test -n "$LD"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8003 $as_echo "$LD" >&6; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8008 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8010 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8011 if ${acl_cv_prog_gnu_ld+:} false
; then :
8012 $as_echo_n "(cached) " >&6
8014 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8015 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8016 acl_cv_prog_gnu_ld
=yes
8018 acl_cv_prog_gnu_ld
=no
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8022 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8023 with_gnu_ld
=$acl_cv_prog_gnu_ld
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8028 $as_echo_n "checking for shared library run path origin... " >&6; }
8029 if ${acl_cv_rpath+:} false
; then :
8030 $as_echo_n "(cached) " >&6
8033 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8034 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8041 $as_echo "$acl_cv_rpath" >&6; }
8043 libext
="$acl_cv_libext"
8044 shlibext
="$acl_cv_shlibext"
8045 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8046 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8047 hardcode_direct
="$acl_cv_hardcode_direct"
8048 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8049 # Check whether --enable-rpath was given.
8050 if test "${enable_rpath+set}" = set; then :
8051 enableval
=$enable_rpath; :
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8059 $as_echo_n "checking for ANSI C header files... " >&6; }
8060 if ${ac_cv_header_stdc+:} false
; then :
8061 $as_echo_n "(cached) " >&6
8063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8078 if ac_fn_c_try_compile
"$LINENO"; then :
8079 ac_cv_header_stdc
=yes
8081 ac_cv_header_stdc
=no
8083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8085 if test $ac_cv_header_stdc = yes; then
8086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8093 $EGREP "memchr" >/dev
/null
2>&1; then :
8096 ac_cv_header_stdc
=no
8102 if test $ac_cv_header_stdc = yes; then
8103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8110 $EGREP "free" >/dev
/null
2>&1; then :
8113 ac_cv_header_stdc
=no
8119 if test $ac_cv_header_stdc = yes; then
8120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8121 if test "$cross_compiling" = yes; then :
8124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8128 #if ((' ' & 0x0FF) == 0x020)
8129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8130 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8132 # define ISLOWER(c) \
8133 (('a' <= (c) && (c) <= 'i') \
8134 || ('j' <= (c) && (c) <= 'r') \
8135 || ('s' <= (c) && (c) <= 'z'))
8136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8144 for (i = 0; i < 256; i++)
8145 if (XOR (islower (i), ISLOWER (i))
8146 || toupper (i) != TOUPPER (i))
8151 if ac_fn_c_try_run
"$LINENO"; then :
8154 ac_cv_header_stdc
=no
8156 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8157 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8163 $as_echo "$ac_cv_header_stdc" >&6; }
8164 if test $ac_cv_header_stdc = yes; then
8166 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8170 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8171 # for constant arguments. Useless!
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8173 $as_echo_n "checking for working alloca.h... " >&6; }
8174 if ${ac_cv_working_alloca_h+:} false
; then :
8175 $as_echo_n "(cached) " >&6
8177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8183 char *p = (char *) alloca (2 * sizeof (int));
8189 if ac_fn_c_try_link
"$LINENO"; then :
8190 ac_cv_working_alloca_h
=yes
8192 ac_cv_working_alloca_h
=no
8194 rm -f core conftest.err conftest.
$ac_objext \
8195 conftest
$ac_exeext conftest.
$ac_ext
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8198 $as_echo "$ac_cv_working_alloca_h" >&6; }
8199 if test $ac_cv_working_alloca_h = yes; then
8201 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8206 $as_echo_n "checking for alloca... " >&6; }
8207 if ${ac_cv_func_alloca_works+:} false
; then :
8208 $as_echo_n "(cached) " >&6
8210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8213 # define alloca __builtin_alloca
8216 # include <malloc.h>
8217 # define alloca _alloca
8219 # ifdef HAVE_ALLOCA_H
8220 # include <alloca.h>
8225 # ifndef alloca /* predefined by HP cc +Olibcalls */
8226 void *alloca (size_t);
8236 char *p = (char *) alloca (1);
8242 if ac_fn_c_try_link
"$LINENO"; then :
8243 ac_cv_func_alloca_works
=yes
8245 ac_cv_func_alloca_works
=no
8247 rm -f core conftest.err conftest.
$ac_objext \
8248 conftest
$ac_exeext conftest.
$ac_ext
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8251 $as_echo "$ac_cv_func_alloca_works" >&6; }
8253 if test $ac_cv_func_alloca_works = yes; then
8255 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8258 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8259 # that cause trouble. Some versions do not even contain alloca or
8260 # contain a buggy version. If you still want to use their alloca,
8261 # use ar to extract alloca.o from them instead of compiling alloca.c.
8263 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8265 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8269 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8270 if ${ac_cv_os_cray+:} false
; then :
8271 $as_echo_n "(cached) " >&6
8273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 #if defined CRAY && ! defined CRAY2
8282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8283 $EGREP "webecray" >/dev
/null
2>&1; then :
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8292 $as_echo "$ac_cv_os_cray" >&6; }
8293 if test $ac_cv_os_cray = yes; then
8294 for ac_func
in _getb67 GETB67 getb67
; do
8295 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8296 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8297 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8299 cat >>confdefs.h
<<_ACEOF
8300 #define CRAY_STACKSEG_END $ac_func
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8310 $as_echo_n "checking stack direction for C alloca... " >&6; }
8311 if ${ac_cv_c_stack_direction+:} false
; then :
8312 $as_echo_n "(cached) " >&6
8314 if test "$cross_compiling" = yes; then :
8315 ac_cv_c_stack_direction
=0
8317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319 $ac_includes_default
8321 find_stack_direction (int *addr, int depth)
8326 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8327 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8332 main (int argc, char **argv)
8334 return find_stack_direction (0, argc + !argv + 20) < 0;
8337 if ac_fn_c_try_run
"$LINENO"; then :
8338 ac_cv_c_stack_direction
=1
8340 ac_cv_c_stack_direction
=-1
8342 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8343 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8348 $as_echo "$ac_cv_c_stack_direction" >&6; }
8349 cat >>confdefs.h
<<_ACEOF
8350 #define STACK_DIRECTION $ac_cv_c_stack_direction
8361 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8363 WIN32APILIBS
="-lws2_32"
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8369 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8370 if ${am_cv_langinfo_codeset+:} false
; then :
8371 $as_echo_n "(cached) " >&6
8373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 #include <langinfo.h>
8379 char* cs = nl_langinfo(CODESET);
8384 if ac_fn_c_try_link
"$LINENO"; then :
8385 am_cv_langinfo_codeset
=yes
8387 am_cv_langinfo_codeset
=no
8389 rm -f core conftest.err conftest.
$ac_objext \
8390 conftest
$ac_exeext conftest.
$ac_ext
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8394 $as_echo "$am_cv_langinfo_codeset" >&6; }
8395 if test $am_cv_langinfo_codeset = yes; then
8397 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8402 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 dlfcn.h linux
/elf.h sys
/procfs.h proc_service.h
8404 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8405 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8406 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8407 cat >>confdefs.h
<<_ACEOF
8408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8417 for ac_func
in getpagesize
8419 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8420 if test "x$ac_cv_func_getpagesize" = xyes
; then :
8421 cat >>confdefs.h
<<_ACEOF
8422 #define HAVE_GETPAGESIZE 1
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8429 $as_echo_n "checking for working mmap... " >&6; }
8430 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
8431 $as_echo_n "(cached) " >&6
8433 if test "$cross_compiling" = yes; then :
8434 ac_cv_func_mmap_fixed_mapped
=no
8436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8438 $ac_includes_default
8439 /* malloc might have been renamed as rpl_malloc. */
8442 /* Thanks to Mike Haertel and Jim Avera for this test.
8443 Here is a matrix of mmap possibilities:
8444 mmap private not fixed
8445 mmap private fixed at somewhere currently unmapped
8446 mmap private fixed at somewhere already mapped
8447 mmap shared not fixed
8448 mmap shared fixed at somewhere currently unmapped
8449 mmap shared fixed at somewhere already mapped
8450 For private mappings, we should verify that changes cannot be read()
8451 back from the file, nor mmap's back from the file at a different
8452 address. (There have been systems where private was not correctly
8453 implemented like the infamous i386 svr4.0, and systems where the
8454 VM page cache was not coherent with the file system buffer cache
8455 like early versions of FreeBSD and possibly contemporary NetBSD.)
8456 For shared mappings, we should conversely verify that changes get
8457 propagated back to all the places they're supposed to be.
8459 Grep wants private fixed already mapped.
8460 The main things grep needs to know about mmap are:
8461 * does it exist and is it safe to write into the mmap'd area
8462 * how to use it (BSD variants) */
8465 #include <sys/mman.h>
8467 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8471 /* This mess was copied from the GNU getpagesize.h. */
8472 #ifndef HAVE_GETPAGESIZE
8473 # ifdef _SC_PAGESIZE
8474 # define getpagesize() sysconf(_SC_PAGESIZE)
8475 # else /* no _SC_PAGESIZE */
8476 # ifdef HAVE_SYS_PARAM_H
8477 # include <sys/param.h>
8478 # ifdef EXEC_PAGESIZE
8479 # define getpagesize() EXEC_PAGESIZE
8480 # else /* no EXEC_PAGESIZE */
8482 # define getpagesize() NBPG * CLSIZE
8485 # endif /* no CLSIZE */
8486 # else /* no NBPG */
8488 # define getpagesize() NBPC
8489 # else /* no NBPC */
8491 # define getpagesize() PAGESIZE
8492 # endif /* PAGESIZE */
8493 # endif /* no NBPC */
8494 # endif /* no NBPG */
8495 # endif /* no EXEC_PAGESIZE */
8496 # else /* no HAVE_SYS_PARAM_H */
8497 # define getpagesize() 8192 /* punt totally */
8498 # endif /* no HAVE_SYS_PARAM_H */
8499 # endif /* no _SC_PAGESIZE */
8501 #endif /* no HAVE_GETPAGESIZE */
8506 char *data, *data2, *data3;
8511 pagesize = getpagesize ();
8513 /* First, make a file with some known garbage in it. */
8514 data = (char *) malloc (pagesize);
8517 for (i = 0; i < pagesize; ++i)
8518 *(data + i) = rand ();
8520 fd = creat ("conftest.mmap", 0600);
8523 if (write (fd, data, pagesize) != pagesize)
8527 /* Next, check that the tail of a page is zero-filled. File must have
8528 non-zero length, otherwise we risk SIGBUS for entire page. */
8529 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8533 if (write (fd2, cdata2, 1) != 1)
8535 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8536 if (data2 == MAP_FAILED)
8538 for (i = 0; i < pagesize; ++i)
8542 if (munmap (data2, pagesize))
8545 /* Next, try to mmap the file at a fixed address which already has
8546 something else allocated at it. If we can, also make sure that
8547 we see the same garbage. */
8548 fd = open ("conftest.mmap", O_RDWR);
8551 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8552 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8554 for (i = 0; i < pagesize; ++i)
8555 if (*(data + i) != *(data2 + i))
8558 /* Finally, make sure that changes to the mapped area do not
8559 percolate back to the file as seen by read(). (This is a bug on
8560 some variants of i386 svr4.0.) */
8561 for (i = 0; i < pagesize; ++i)
8562 *(data2 + i) = *(data2 + i) + 1;
8563 data3 = (char *) malloc (pagesize);
8566 if (read (fd, data3, pagesize) != pagesize)
8568 for (i = 0; i < pagesize; ++i)
8569 if (*(data + i) != *(data3 + i))
8575 if ac_fn_c_try_run
"$LINENO"; then :
8576 ac_cv_func_mmap_fixed_mapped
=yes
8578 ac_cv_func_mmap_fixed_mapped
=no
8580 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8581 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8586 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8587 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8589 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8592 rm -f conftest.mmap conftest.txt
8594 for ac_header
in vfork.h
8596 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8597 if test "x$ac_cv_header_vfork_h" = xyes
; then :
8598 cat >>confdefs.h
<<_ACEOF
8599 #define HAVE_VFORK_H 1
8606 for ac_func
in fork vfork
8608 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8609 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8610 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8611 cat >>confdefs.h
<<_ACEOF
8612 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8618 if test "x$ac_cv_func_fork" = xyes
; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8620 $as_echo_n "checking for working fork... " >&6; }
8621 if ${ac_cv_func_fork_works+:} false
; then :
8622 $as_echo_n "(cached) " >&6
8624 if test "$cross_compiling" = yes; then :
8625 ac_cv_func_fork_works
=cross
8627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8628 /* end confdefs.h. */
8629 $ac_includes_default
8634 /* By Ruediger Kuhlmann. */
8641 if ac_fn_c_try_run
"$LINENO"; then :
8642 ac_cv_func_fork_works
=yes
8644 ac_cv_func_fork_works
=no
8646 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8647 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8652 $as_echo "$ac_cv_func_fork_works" >&6; }
8655 ac_cv_func_fork_works
=$ac_cv_func_fork
8657 if test "x$ac_cv_func_fork_works" = xcross
; then
8659 *-*-amigaos* |
*-*-msdosdjgpp*)
8660 # Override, as these systems have only a dummy fork() stub
8661 ac_cv_func_fork_works
=no
8664 ac_cv_func_fork_works
=yes
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8668 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8670 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8671 if test "x$ac_cv_func_vfork" = xyes
; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8673 $as_echo_n "checking for working vfork... " >&6; }
8674 if ${ac_cv_func_vfork_works+:} false
; then :
8675 $as_echo_n "(cached) " >&6
8677 if test "$cross_compiling" = yes; then :
8678 ac_cv_func_vfork_works
=cross
8680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 /* Thanks to Paul Eggert for this test. */
8683 $ac_includes_default
8684 #include <sys/wait.h>
8688 /* On some sparc systems, changes by the child to local and incoming
8689 argument registers are propagated back to the parent. The compiler
8690 is told about this with #include <vfork.h>, but some compilers
8691 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8692 static variable whose address is put into a register that is
8693 clobbered by the vfork. */
8696 sparc_address_test (int arg)
8698 sparc_address_test (arg) int arg;
8719 pid_t parent = getpid ();
8722 sparc_address_test (0);
8727 /* Here is another test for sparc vfork register problems. This
8728 test uses lots of local variables, at least as many local
8729 variables as main has allocated so far including compiler
8730 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8731 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8732 reuse the register of parent for one of the local variables,
8733 since it will think that parent can't possibly be used any more
8734 in this routine. Assigning to the local variable will thus
8735 munge parent in the parent process. */
8737 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8738 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8739 /* Convince the compiler that p..p7 are live; otherwise, it might
8740 use the same hardware register for all 8 local variables. */
8741 if (p != p1 || p != p2 || p != p3 || p != p4
8742 || p != p5 || p != p6 || p != p7)
8745 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8746 from child file descriptors. If the child closes a descriptor
8747 before it execs or exits, this munges the parent's descriptor
8748 as well. Test for this by closing stdout in the child. */
8749 _exit(close(fileno(stdout)) != 0);
8754 while (wait(&status) != child)
8757 /* Was there some problem with vforking? */
8760 /* Did the child fail? (This shouldn't happen.) */
8763 /* Did the vfork/compiler bug occur? */
8764 || parent != getpid()
8766 /* Did the file descriptor bug occur? */
8767 || fstat(fileno(stdout), &st) != 0
8772 if ac_fn_c_try_run
"$LINENO"; then :
8773 ac_cv_func_vfork_works
=yes
8775 ac_cv_func_vfork_works
=no
8777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8783 $as_echo "$ac_cv_func_vfork_works" >&6; }
8786 if test "x$ac_cv_func_fork_works" = xcross
; then
8787 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8789 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8792 if test "x$ac_cv_func_vfork_works" = xyes
; then
8794 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8798 $as_echo "#define vfork fork" >>confdefs.h
8801 if test "x$ac_cv_func_fork_works" = xyes
; then
8803 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8807 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
8808 ptrace64 sbrk setns sigaltstack sigprocmask \
8809 setpgid setpgrp getrusage getauxval
8811 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8812 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8813 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8814 cat >>confdefs.h
<<_ACEOF
8815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8822 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8824 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
8830 cat >>confdefs.h
<<_ACEOF
8831 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8835 if test "$cross_compiling" = yes; then :
8836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #include <sys/personality.h>
8843 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8844 # define ADDR_NO_RANDOMIZE 0x0040000
8846 /* Test the flag could be set and stays set. */
8847 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8848 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8854 if ac_fn_c_try_link
"$LINENO"; then :
8855 have_personality
=true
8857 have_personality
=false
8859 rm -f core conftest.err conftest.
$ac_objext \
8860 conftest
$ac_exeext conftest.
$ac_ext
8862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8864 #include <sys/personality.h>
8869 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8870 # define ADDR_NO_RANDOMIZE 0x0040000
8872 /* Test the flag could be set and stays set. */
8873 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8874 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8880 if ac_fn_c_try_run
"$LINENO"; then :
8881 have_personality
=true
8883 have_personality
=false
8885 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8886 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8889 if $have_personality
8892 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8896 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8897 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
8903 cat >>confdefs.h
<<_ACEOF
8904 #define HAVE_DECL_STRSTR $ac_have_decl
8908 # ----------------------- #
8909 # Checks for structures. #
8910 # ----------------------- #
8912 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8913 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
8915 cat >>confdefs.h
<<_ACEOF
8916 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8921 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8922 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
8924 cat >>confdefs.h
<<_ACEOF
8925 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8933 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8934 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8935 $as_echo_n "(cached) " >&6
8937 ac_func_search_save_LIBS
=$LIBS
8938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8941 /* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8947 char kinfo_getfile ();
8951 return kinfo_getfile ();
8956 for ac_lib
in '' util util-freebsd
; do
8957 if test -z "$ac_lib"; then
8958 ac_res
="none required"
8961 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8963 if ac_fn_c_try_link
"$LINENO"; then :
8964 ac_cv_search_kinfo_getfile
=$ac_res
8966 rm -f core conftest.err conftest.
$ac_objext \
8968 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8972 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8975 ac_cv_search_kinfo_getfile
=no
8978 LIBS
=$ac_func_search_save_LIBS
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8981 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8982 ac_res
=$ac_cv_search_kinfo_getfile
8983 if test "$ac_res" != no
; then :
8984 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8986 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8991 # Check for std::thread. This does not work on some platforms, like
8994 ac_cpp
='$CXXCPP $CPPFLAGS'
8995 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9004 ac_cpp
='$CPP $CPPFLAGS'
9005 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9011 # We used to check for pthread.h first, but this fails if pthread.h
9012 # requires special compiler flags (e.g. on Tru64 or Sequent).
9013 # It gets checked for in the link test anyway.
9015 # First of all, check if the user has set any of the PTHREAD_LIBS,
9016 # etcetera environment variables, and if threads linking works using
9018 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9019 ax_pthread_save_CC
="$CC"
9020 ax_pthread_save_CFLAGS
="$CFLAGS"
9021 ax_pthread_save_LIBS
="$LIBS"
9022 if test "x$PTHREAD_CC" != "x"; then :
9025 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9026 LIBS
="$PTHREAD_LIBS $LIBS"
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9028 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9032 /* Override any GCC internal prototype to avoid an error.
9033 Use char because int might match the return type of a GCC
9034 builtin and then its argument prototype would still apply. */
9038 char pthread_join ();
9042 return pthread_join ();
9047 if ac_fn_c_try_link
"$LINENO"; then :
9050 rm -f core conftest.err conftest.
$ac_objext \
9051 conftest
$ac_exeext conftest.
$ac_ext
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9053 $as_echo "$ax_pthread_ok" >&6; }
9054 if test "x$ax_pthread_ok" = "xno"; then
9058 CC
="$ax_pthread_save_CC"
9059 CFLAGS
="$ax_pthread_save_CFLAGS"
9060 LIBS
="$ax_pthread_save_LIBS"
9063 # We must check for the threads library under a number of different
9064 # names; the ordering is very important because some systems
9065 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9066 # libraries is broken (non-POSIX).
9068 # Create a list of thread flags to try. Items starting with a "-" are
9069 # C compiler flags, and other items are library names, except for "none"
9070 # which indicates that we try without any flags at all, and "pthread-config"
9071 # which is a program returning the flags for the Pth emulation library.
9073 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9075 # The ordering *is* (sometimes) important. Some notes on the
9076 # individual items follow:
9078 # pthreads: AIX (must check this before -lpthread)
9079 # none: in case threads are in libc; should be tried before -Kthread and
9080 # other compiler flags to prevent continual compiler warnings
9081 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9082 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9083 # (Note: HP C rejects this with "bad form for `-t' option")
9084 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9085 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9086 # doesn't hurt to check since this sometimes defines pthreads and
9087 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9088 # is present but should not be used directly; and before -mthreads,
9089 # because the compiler interprets this as "-mt" + "-hreads")
9090 # -mthreads: Mingw32/gcc, Lynx/gcc
9091 # pthread: Linux, etcetera
9092 # --thread-safe: KAI C++
9093 # pthread-config: use pthread-config program (for GNU Pth library)
9099 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9100 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9102 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
9107 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9108 # multi-threading and also sets -lpthread."
9110 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
9115 # IBM z/OS requires a feature-test macro to be defined in order to
9116 # enable POSIX threads at all, so give the user a hint if this is
9117 # not set. (We don't define these ourselves, as they can affect
9118 # other portions of the system API in unpredictable ways.)
9120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9123 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9124 AX_PTHREAD_ZOS_MISSING
9128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9129 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9131 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9139 # On Solaris (at least, for some versions), libc contains stubbed
9140 # (non-functional) versions of the pthreads routines, so link-based
9141 # tests will erroneously succeed. (N.B.: The stubs are missing
9142 # pthread_cleanup_push, or rather a function called by this macro,
9143 # so we could check for that, but who knows whether they'll stub
9144 # that too in a future libc.) So we'll check first for the
9145 # standard Solaris way of linking pthreads (-mt -lpthread).
9147 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
9151 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9153 if test "x$GCC" = "xyes"; then :
9154 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
9157 # The presence of a feature test macro requesting re-entrant function
9158 # definitions is, on some systems, a strong hint that pthreads support is
9162 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
9163 ax_pthread_check_macro
="_REENTRANT"
9167 ax_pthread_check_macro
="_THREAD_SAFE"
9171 ax_pthread_check_macro
="--"
9174 if test "x$ax_pthread_check_macro" = "x--"; then :
9175 ax_pthread_check_cond
=0
9177 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
9180 # Are we compiling with Clang?
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9183 $as_echo_n "checking whether $CC is Clang... " >&6; }
9184 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
9185 $as_echo_n "(cached) " >&6
9187 ax_cv_PTHREAD_CLANG
=no
9188 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9189 if test "x$GCC" = "xyes"; then
9190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9192 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9193 # if defined(__clang__) && defined(__llvm__)
9194 AX_PTHREAD_CC_IS_CLANG
9198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9199 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
9200 ax_cv_PTHREAD_CLANG
=yes
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9208 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9209 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
9211 ax_pthread_clang_warning
=no
9213 # Clang needs special handling, because older versions handle the -pthread
9214 # option in a rather... idiosyncratic way
9216 if test "x$ax_pthread_clang" = "xyes"; then
9218 # Clang takes -pthread; it has never supported any other flag
9220 # (Note 1: This will need to be revisited if a system that Clang
9221 # supports has POSIX threads in a separate library. This tends not
9222 # to be the way of modern systems, but it's conceivable.)
9224 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9225 # to get POSIX threads support; the API is always present and
9226 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9227 # -pthread does define _REENTRANT, and while the Darwin headers
9228 # ignore this macro, third-party headers might not.)
9230 PTHREAD_CFLAGS
="-pthread"
9235 # However, older versions of Clang make a point of warning the user
9236 # that, in an invocation where only linking and no compilation is
9237 # taking place, the -pthread option has no effect ("argument unused
9238 # during compilation"). They expect -pthread to be passed in only
9239 # when source code is being compiled.
9241 # Problem is, this is at odds with the way Automake and most other
9242 # C build frameworks function, which is that the same flags used in
9243 # compilation (CFLAGS) are also used in linking. Many systems
9244 # supported by AX_PTHREAD require exactly this for POSIX threads
9245 # support, and in fact it is often not straightforward to specify a
9246 # flag that is used only in the compilation phase and not in
9247 # linking. Such a scenario is extremely rare in practice.
9249 # Even though use of the -pthread flag in linking would only print
9250 # a warning, this can be a nuisance for well-run software projects
9251 # that build with -Werror. So if the active version of Clang has
9252 # this misfeature, we search for an option to squash it.
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9255 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9256 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
9257 $as_echo_n "(cached) " >&6
9259 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
9260 # Create an alternate version of $ac_link that compiles and
9261 # links in two steps (.c -> .o, .o -> exe) instead of one
9262 # (.c -> exe), because the warning occurs only in the second
9264 ax_pthread_save_ac_link
="$ac_link"
9265 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9266 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9267 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9268 ax_pthread_save_CFLAGS
="$CFLAGS"
9269 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
9270 if test "x$ax_pthread_try" = "xunknown"; then :
9273 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9274 ac_link
="$ax_pthread_save_ac_link"
9275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9277 int main(void){return 0;}
9279 if ac_fn_c_try_link
"$LINENO"; then :
9280 ac_link
="$ax_pthread_2step_ac_link"
9281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 int main(void){return 0;}
9285 if ac_fn_c_try_link
"$LINENO"; then :
9288 rm -f core conftest.err conftest.
$ac_objext \
9289 conftest
$ac_exeext conftest.
$ac_ext
9292 rm -f core conftest.err conftest.
$ac_objext \
9293 conftest
$ac_exeext conftest.
$ac_ext
9295 ac_link
="$ax_pthread_save_ac_link"
9296 CFLAGS
="$ax_pthread_save_CFLAGS"
9297 if test "x$ax_pthread_try" = "x"; then :
9300 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9304 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9306 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9308 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9311 fi # $ax_pthread_clang = yes
9313 if test "x$ax_pthread_ok" = "xno"; then
9314 for ax_pthread_try_flag
in $ax_pthread_flags; do
9316 case $ax_pthread_try_flag in
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9319 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9324 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9325 PTHREAD_CFLAGS
="-mt"
9326 PTHREAD_LIBS
="-lpthread"
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9331 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9332 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
9336 # Extract the first word of "pthread-config", so it can be a program name with args.
9337 set dummy pthread-config
; ac_word
=$2
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339 $as_echo_n "checking for $ac_word... " >&6; }
9340 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
9341 $as_echo_n "(cached) " >&6
9343 if test -n "$ax_pthread_config"; then
9344 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
9346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9350 test -z "$as_dir" && as_dir
=.
9351 for ac_exec_ext
in '' $ac_executable_extensions; do
9352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9353 ac_cv_prog_ax_pthread_config
="yes"
9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
9364 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
9365 if test -n "$ax_pthread_config"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9367 $as_echo "$ax_pthread_config" >&6; }
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 $as_echo "no" >&6; }
9374 if test "x$ax_pthread_config" = "xno"; then :
9377 PTHREAD_CFLAGS
="`pthread-config --cflags`"
9378 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9383 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9384 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
9388 ax_pthread_save_CFLAGS
="$CFLAGS"
9389 ax_pthread_save_LIBS
="$LIBS"
9390 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9391 LIBS
="$PTHREAD_LIBS $LIBS"
9393 # Check for various functions. We must include pthread.h,
9394 # since some functions may be macros. (On the Sequent, we
9395 # need a special flag -Kthread to make this header compile.)
9396 # We check for pthread_join because it is in -lpthread on IRIX
9397 # while pthread_create is in libc. We check for pthread_attr_init
9398 # due to DEC craziness with -lpthreads. We check for
9399 # pthread_cleanup_push because it is one of the few pthread
9400 # functions on Solaris that doesn't have a non-functional libc stub.
9401 # We try pthread_create on general principles.
9403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405 #include <pthread.h>
9406 # if $ax_pthread_check_cond
9407 # error "$ax_pthread_check_macro must be defined"
9409 static void routine(void *a) { a = 0; }
9410 static void *start_routine(void *a) { return a; }
9414 pthread_t th; pthread_attr_t attr;
9415 pthread_create(&th, 0, start_routine, 0);
9416 pthread_join(th, 0);
9417 pthread_attr_init(&attr);
9418 pthread_cleanup_push(routine, 0);
9419 pthread_cleanup_pop(0) /* ; */
9424 if ac_fn_c_try_link
"$LINENO"; then :
9427 rm -f core conftest.err conftest.
$ac_objext \
9428 conftest
$ac_exeext conftest.
$ac_ext
9430 CFLAGS
="$ax_pthread_save_CFLAGS"
9431 LIBS
="$ax_pthread_save_LIBS"
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9434 $as_echo "$ax_pthread_ok" >&6; }
9435 if test "x$ax_pthread_ok" = "xyes"; then :
9444 # Various other checks:
9445 if test "x$ax_pthread_ok" = "xyes"; then
9446 ax_pthread_save_CFLAGS
="$CFLAGS"
9447 ax_pthread_save_LIBS
="$LIBS"
9448 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9449 LIBS
="$PTHREAD_LIBS $LIBS"
9451 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9453 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9454 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
9455 $as_echo_n "(cached) " >&6
9457 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
9458 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
9459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 #include <pthread.h>
9465 int attr = $ax_pthread_attr; return attr /* ; */
9470 if ac_fn_c_try_link
"$LINENO"; then :
9471 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
9473 rm -f core conftest.err conftest.
$ac_objext \
9474 conftest
$ac_exeext conftest.
$ac_ext
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9479 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9480 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9481 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9482 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9484 cat >>confdefs.h
<<_ACEOF
9485 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9488 ax_pthread_joinable_attr_defined
=yes
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9493 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9494 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
9495 $as_echo_n "(cached) " >&6
9497 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
9500 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9506 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9507 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9508 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9509 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9510 ax_pthread_special_flags_added
=yes
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9514 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9515 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
9516 $as_echo_n "(cached) " >&6
9518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 #include <pthread.h>
9524 int i = PTHREAD_PRIO_INHERIT;
9529 if ac_fn_c_try_link
"$LINENO"; then :
9530 ax_cv_PTHREAD_PRIO_INHERIT
=yes
9532 ax_cv_PTHREAD_PRIO_INHERIT
=no
9534 rm -f core conftest.err conftest.
$ac_objext \
9535 conftest
$ac_exeext conftest.
$ac_ext
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9539 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9540 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9541 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9543 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9545 ax_pthread_prio_inherit_defined
=yes
9549 CFLAGS
="$ax_pthread_save_CFLAGS"
9550 LIBS
="$ax_pthread_save_LIBS"
9552 # More AIX lossage: compile with *_r variant
9553 if test "x$GCC" != "xyes"; then
9557 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
9558 #handle absolute path differently from PATH based program lookup
9561 if as_fn_executable_p
${CC}_r
; then :
9562 PTHREAD_CC
="${CC}_r"
9565 for ac_prog
in ${CC}_r
9567 # Extract the first word of "$ac_prog", so it can be a program name with args.
9568 set dummy
$ac_prog; ac_word
=$2
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570 $as_echo_n "checking for $ac_word... " >&6; }
9571 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
9572 $as_echo_n "(cached) " >&6
9574 if test -n "$PTHREAD_CC"; then
9575 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
9577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9581 test -z "$as_dir" && as_dir
=.
9582 for ac_exec_ext
in '' $ac_executable_extensions; do
9583 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9584 ac_cv_prog_PTHREAD_CC
="$ac_prog"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9594 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
9595 if test -n "$PTHREAD_CC"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9597 $as_echo "$PTHREAD_CC" >&6; }
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9604 test -n "$PTHREAD_CC" && break
9606 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9617 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9623 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9624 if test "x$ax_pthread_ok" = "xyes"; then
9632 ac_cpp
='$CXXCPP $CPPFLAGS'
9633 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9638 if test "$threads" = "yes"; then
9640 LIBS
="$PTHREAD_LIBS $LIBS"
9641 save_CXXFLAGS
="$CXXFLAGS"
9642 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9644 $as_echo_n "checking for std::thread... " >&6; }
9645 if ${gdb_cv_cxx_std_thread+:} false
; then :
9646 $as_echo_n "(cached) " >&6
9648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9655 std::thread t(callback);
9660 if ac_fn_cxx_try_compile
"$LINENO"; then :
9661 gdb_cv_cxx_std_thread
=yes
9663 gdb_cv_cxx_std_thread
=no
9665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9668 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
9670 # This check must be here, while LIBS includes any necessary
9671 # threading library.
9672 for ac_func
in pthread_sigmask pthread_setname_np
9674 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9675 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9676 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9677 cat >>confdefs.h
<<_ACEOF
9678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9686 CXXFLAGS
="$save_CXXFLAGS"
9688 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9690 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9694 ac_cpp
='$CPP $CPPFLAGS'
9695 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9696 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9697 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9701 $as_echo_n "checking for sigsetjmp... " >&6; }
9702 if ${gdb_cv_func_sigsetjmp+:} false
; then :
9703 $as_echo_n "(cached) " >&6
9705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9713 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9718 if ac_fn_c_try_compile
"$LINENO"; then :
9719 gdb_cv_func_sigsetjmp
=yes
9721 gdb_cv_func_sigsetjmp
=no
9723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9726 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9727 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9729 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9734 # Check whether --with-intel_pt was given.
9735 if test "${with_intel_pt+set}" = set; then :
9736 withval
=$with_intel_pt;
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9742 $as_echo_n "checking whether to use intel pt... " >&6; }
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9744 $as_echo "$with_intel_pt" >&6; }
9746 if test "${with_intel_pt}" = no
; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9748 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9754 #include <linux/perf_event.h>
9755 #ifndef PERF_ATTR_SIZE_VER5
9760 if ac_fn_c_try_cpp
"$LINENO"; then :
9765 rm -f conftest.err conftest.i conftest.
$ac_ext
9766 if test "$perf_event" != yes; then
9767 if test "$with_intel_pt" = yes; then
9768 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9771 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9785 acl_save_prefix
="$prefix"
9786 prefix
="$acl_final_prefix"
9787 acl_save_exec_prefix
="$exec_prefix"
9788 exec_prefix
="$acl_final_exec_prefix"
9790 eval additional_includedir
=\"$includedir\"
9791 eval additional_libdir
=\"$libdir\"
9793 exec_prefix
="$acl_save_exec_prefix"
9794 prefix
="$acl_save_prefix"
9797 # Check whether --with-libipt-prefix was given.
9798 if test "${with_libipt_prefix+set}" = set; then :
9799 withval
=$with_libipt_prefix;
9800 if test "X$withval" = "Xno"; then
9803 if test "X$withval" = "X"; then
9805 acl_save_prefix
="$prefix"
9806 prefix
="$acl_final_prefix"
9807 acl_save_exec_prefix
="$exec_prefix"
9808 exec_prefix
="$acl_final_exec_prefix"
9810 eval additional_includedir
=\"$includedir\"
9811 eval additional_libdir
=\"$libdir\"
9813 exec_prefix
="$acl_save_exec_prefix"
9814 prefix
="$acl_save_prefix"
9817 additional_includedir
="$withval/include"
9818 additional_libdir
="$withval/lib"
9829 names_already_handled
=
9830 names_next_round
='ipt '
9831 while test -n "$names_next_round"; do
9832 names_this_round
="$names_next_round"
9834 for name
in $names_this_round; do
9836 for n
in $names_already_handled; do
9837 if test "$n" = "$name"; then
9842 if test -z "$already_handled"; then
9843 names_already_handled
="$names_already_handled $name"
9844 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9845 eval value
=\"\
$HAVE_LIB$uppername\"
9846 if test -n "$value"; then
9847 if test "$value" = yes; then
9848 eval value
=\"\
$LIB$uppername\"
9849 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
9850 eval value
=\"\
$LTLIB$uppername\"
9851 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
9860 if test $use_additional = yes; then
9861 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9862 found_dir
="$additional_libdir"
9863 found_so
="$additional_libdir/lib$name.$shlibext"
9864 if test -f "$additional_libdir/lib$name.la"; then
9865 found_la
="$additional_libdir/lib$name.la"
9868 if test -f "$additional_libdir/lib$name.$libext"; then
9869 found_dir
="$additional_libdir"
9870 found_a
="$additional_libdir/lib$name.$libext"
9871 if test -f "$additional_libdir/lib$name.la"; then
9872 found_la
="$additional_libdir/lib$name.la"
9877 if test "X$found_dir" = "X"; then
9878 for x
in $LDFLAGS $LTLIBIPT; do
9880 acl_save_prefix
="$prefix"
9881 prefix
="$acl_final_prefix"
9882 acl_save_exec_prefix
="$exec_prefix"
9883 exec_prefix
="$acl_final_exec_prefix"
9885 exec_prefix
="$acl_save_exec_prefix"
9886 prefix
="$acl_save_prefix"
9890 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9891 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9893 found_so
="$dir/lib$name.$shlibext"
9894 if test -f "$dir/lib$name.la"; then
9895 found_la
="$dir/lib$name.la"
9898 if test -f "$dir/lib$name.$libext"; then
9900 found_a
="$dir/lib$name.$libext"
9901 if test -f "$dir/lib$name.la"; then
9902 found_la
="$dir/lib$name.la"
9908 if test "X$found_dir" != "X"; then
9913 if test "X$found_dir" != "X"; then
9914 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9915 if test "X$found_so" != "X"; then
9916 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9917 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9920 for x
in $ltrpathdirs; do
9921 if test "X$x" = "X$found_dir"; then
9926 if test -z "$haveit"; then
9927 ltrpathdirs
="$ltrpathdirs $found_dir"
9929 if test "$hardcode_direct" = yes; then
9930 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9932 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9933 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9935 for x
in $rpathdirs; do
9936 if test "X$x" = "X$found_dir"; then
9941 if test -z "$haveit"; then
9942 rpathdirs
="$rpathdirs $found_dir"
9946 for x
in $LDFLAGS $LIBIPT; do
9948 acl_save_prefix
="$prefix"
9949 prefix
="$acl_final_prefix"
9950 acl_save_exec_prefix
="$exec_prefix"
9951 exec_prefix
="$acl_final_exec_prefix"
9953 exec_prefix
="$acl_save_exec_prefix"
9954 prefix
="$acl_save_prefix"
9956 if test "X$x" = "X-L$found_dir"; then
9961 if test -z "$haveit"; then
9962 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9964 if test "$hardcode_minus_L" != no
; then
9965 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9967 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
9973 if test "X$found_a" != "X"; then
9974 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
9976 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9979 additional_includedir
=
9980 case "$found_dir" in
9982 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9983 additional_includedir
="$basedir/include"
9986 if test "X$additional_includedir" != "X"; then
9987 if test "X$additional_includedir" != "X/usr/include"; then
9989 if test "X$additional_includedir" = "X/usr/local/include"; then
9990 if test -n "$GCC"; then
9992 linux
*) haveit
=yes;;
9996 if test -z "$haveit"; then
9997 for x
in $CPPFLAGS $INCIPT; do
9999 acl_save_prefix
="$prefix"
10000 prefix
="$acl_final_prefix"
10001 acl_save_exec_prefix
="$exec_prefix"
10002 exec_prefix
="$acl_final_exec_prefix"
10004 exec_prefix
="$acl_save_exec_prefix"
10005 prefix
="$acl_save_prefix"
10007 if test "X$x" = "X-I$additional_includedir"; then
10012 if test -z "$haveit"; then
10013 if test -d "$additional_includedir"; then
10014 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10020 if test -n "$found_la"; then
10021 save_libdir
="$libdir"
10022 case "$found_la" in
10023 */* |
*\\*) .
"$found_la" ;;
10024 *) .
"./$found_la" ;;
10026 libdir
="$save_libdir"
10027 for dep
in $dependency_libs; do
10030 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10031 if test "X$additional_libdir" != "X/usr/lib"; then
10033 if test "X$additional_libdir" = "X/usr/local/lib"; then
10034 if test -n "$GCC"; then
10036 linux
*) haveit
=yes;;
10040 if test -z "$haveit"; then
10042 for x
in $LDFLAGS $LIBIPT; do
10044 acl_save_prefix
="$prefix"
10045 prefix
="$acl_final_prefix"
10046 acl_save_exec_prefix
="$exec_prefix"
10047 exec_prefix
="$acl_final_exec_prefix"
10049 exec_prefix
="$acl_save_exec_prefix"
10050 prefix
="$acl_save_prefix"
10052 if test "X$x" = "X-L$additional_libdir"; then
10057 if test -z "$haveit"; then
10058 if test -d "$additional_libdir"; then
10059 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10063 for x
in $LDFLAGS $LTLIBIPT; do
10065 acl_save_prefix
="$prefix"
10066 prefix
="$acl_final_prefix"
10067 acl_save_exec_prefix
="$exec_prefix"
10068 exec_prefix
="$acl_final_exec_prefix"
10070 exec_prefix
="$acl_save_exec_prefix"
10071 prefix
="$acl_save_prefix"
10073 if test "X$x" = "X-L$additional_libdir"; then
10078 if test -z "$haveit"; then
10079 if test -d "$additional_libdir"; then
10080 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10087 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10088 if test "$enable_rpath" != no
; then
10090 for x
in $rpathdirs; do
10091 if test "X$x" = "X$dir"; then
10096 if test -z "$haveit"; then
10097 rpathdirs
="$rpathdirs $dir"
10100 for x
in $ltrpathdirs; do
10101 if test "X$x" = "X$dir"; then
10106 if test -z "$haveit"; then
10107 ltrpathdirs
="$ltrpathdirs $dir"
10112 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10115 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10118 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
10119 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10125 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10126 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10132 if test "X$rpathdirs" != "X"; then
10133 if test -n "$hardcode_libdir_separator"; then
10135 for found_dir
in $rpathdirs; do
10136 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10138 acl_save_libdir
="$libdir"
10140 eval flag
=\"$hardcode_libdir_flag_spec\"
10141 libdir
="$acl_save_libdir"
10142 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10144 for found_dir
in $rpathdirs; do
10145 acl_save_libdir
="$libdir"
10146 libdir
="$found_dir"
10147 eval flag
=\"$hardcode_libdir_flag_spec\"
10148 libdir
="$acl_save_libdir"
10149 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10153 if test "X$ltrpathdirs" != "X"; then
10154 for found_dir
in $ltrpathdirs; do
10155 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10160 ac_save_CPPFLAGS
="$CPPFLAGS"
10162 for element
in $INCIPT; do
10164 for x
in $CPPFLAGS; do
10166 acl_save_prefix
="$prefix"
10167 prefix
="$acl_final_prefix"
10168 acl_save_exec_prefix
="$exec_prefix"
10169 exec_prefix
="$acl_final_exec_prefix"
10171 exec_prefix
="$acl_save_exec_prefix"
10172 prefix
="$acl_save_prefix"
10174 if test "X$x" = "X$element"; then
10179 if test -z "$haveit"; then
10180 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10186 $as_echo_n "checking for libipt... " >&6; }
10187 if ${ac_cv_libipt+:} false
; then :
10188 $as_echo_n "(cached) " >&6
10191 ac_save_LIBS
="$LIBS"
10192 LIBS
="$LIBS $LIBIPT"
10193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 #include "intel-pt.h"
10199 pt_insn_alloc_decoder (0);
10204 if ac_fn_c_try_link
"$LINENO"; then :
10209 rm -f core conftest.err conftest.
$ac_objext \
10210 conftest
$ac_exeext conftest.
$ac_ext
10211 LIBS
="$ac_save_LIBS"
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10215 $as_echo "$ac_cv_libipt" >&6; }
10216 if test "$ac_cv_libipt" = yes; then
10219 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10222 $as_echo_n "checking how to link with libipt... " >&6; }
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10224 $as_echo "$LIBIPT" >&6; }
10227 CPPFLAGS
="$ac_save_CPPFLAGS"
10237 if test "$HAVE_LIBIPT" != yes; then
10238 if test "$with_intel_pt" = yes; then
10239 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10242 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10246 LIBS
="$LIBS $LIBIPT"
10247 for ac_func
in pt_insn_event
10249 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10250 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
10251 cat >>confdefs.h
<<_ACEOF
10252 #define HAVE_PT_INSN_EVENT 1
10258 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
10260 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
10262 cat >>confdefs.h
<<_ACEOF
10263 #define HAVE_STRUCT_PT_INSN_ENABLED 1
10268 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10270 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
10272 cat >>confdefs.h
<<_ACEOF
10273 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
10283 if test "$ac_cv_header_sys_procfs_h" = yes; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10285 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10286 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
10287 $as_echo_n "(cached) " >&6
10289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10293 /* Needed for new procfs interface on sparc-solaris. */
10294 #define _STRUCTURED_PROC 1
10295 #include <sys/procfs.h>
10304 if ac_fn_c_try_compile
"$LINENO"; then :
10305 bfd_cv_have_sys_procfs_type_gregset_t
=yes
10307 bfd_cv_have_sys_procfs_type_gregset_t
=no
10310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10313 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10315 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10319 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10322 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10323 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
10324 $as_echo_n "(cached) " >&6
10326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10330 /* Needed for new procfs interface on sparc-solaris. */
10331 #define _STRUCTURED_PROC 1
10332 #include <sys/procfs.h>
10341 if ac_fn_c_try_compile
"$LINENO"; then :
10342 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
10344 bfd_cv_have_sys_procfs_type_fpregset_t
=no
10347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10350 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10352 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10356 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10359 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10360 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
10361 $as_echo_n "(cached) " >&6
10363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10367 /* Needed for new procfs interface on sparc-solaris. */
10368 #define _STRUCTURED_PROC 1
10369 #include <sys/procfs.h>
10378 if ac_fn_c_try_compile
"$LINENO"; then :
10379 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
10381 bfd_cv_have_sys_procfs_type_prgregset_t
=no
10384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10387 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10389 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10393 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10396 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10397 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
10398 $as_echo_n "(cached) " >&6
10400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10404 /* Needed for new procfs interface on sparc-solaris. */
10405 #define _STRUCTURED_PROC 1
10406 #include <sys/procfs.h>
10415 if ac_fn_c_try_compile
"$LINENO"; then :
10416 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
10418 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
10421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10424 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10426 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10430 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10433 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10434 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
10435 $as_echo_n "(cached) " >&6
10437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10441 /* Needed for new procfs interface on sparc-solaris. */
10442 #define _STRUCTURED_PROC 1
10443 #include <sys/procfs.h>
10452 if ac_fn_c_try_compile
"$LINENO"; then :
10453 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
10455 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
10458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10461 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10463 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10467 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10470 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10471 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
10472 $as_echo_n "(cached) " >&6
10474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10478 /* Needed for new procfs interface on sparc-solaris. */
10479 #define _STRUCTURED_PROC 1
10480 #include <sys/procfs.h>
10489 if ac_fn_c_try_compile
"$LINENO"; then :
10490 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
10492 bfd_cv_have_sys_procfs_type_lwpid_t
=no
10495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10498 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
10500 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10504 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
10507 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10508 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
10509 $as_echo_n "(cached) " >&6
10511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10512 /* end confdefs.h. */
10515 /* Needed for new procfs interface on sparc-solaris. */
10516 #define _STRUCTURED_PROC 1
10517 #include <sys/procfs.h>
10526 if ac_fn_c_try_compile
"$LINENO"; then :
10527 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
10529 bfd_cv_have_sys_procfs_type_psaddr_t
=no
10532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10535 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
10537 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10541 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
10544 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10545 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
10546 $as_echo_n "(cached) " >&6
10548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10552 /* Needed for new procfs interface on sparc-solaris. */
10553 #define _STRUCTURED_PROC 1
10554 #include <sys/procfs.h>
10558 elf_fpregset_t avar
10563 if ac_fn_c_try_compile
"$LINENO"; then :
10564 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
10566 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
10569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10572 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10574 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10578 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
10583 # Check whether we will enable the inclusion of unit tests when
10586 # The default value of this option changes depending whether we're on
10587 # development mode (in which case it's "true") or not (in which case
10589 # Check whether --enable-unit-tests was given.
10590 if test "${enable_unit_tests+set}" = set; then :
10591 enableval
=$enable_unit_tests; case "${enableval}" in
10592 yes) enable_unittests
=true
;;
10593 no
) enable_unittests
=false
;;
10594 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10597 enable_unittests
=$development
10601 if $enable_unittests; then
10603 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10608 if $enable_unittests; then
10617 # Check the return and argument types of ptrace.
10620 for ac_header
in sys
/ptrace.h ptrace.h
10622 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10623 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10624 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10625 cat >>confdefs.h
<<_ACEOF
10626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10634 gdb_ptrace_headers
='
10635 #include <sys/types.h>
10636 #if HAVE_SYS_PTRACE_H
10637 # include <sys/ptrace.h>
10640 # include <unistd.h>
10643 # There is no point in checking if we don't have a prototype.
10644 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10646 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
10652 cat >>confdefs.h
<<_ACEOF
10653 #define HAVE_DECL_PTRACE $ac_have_decl
10655 if test $ac_have_decl = 1; then :
10659 : ${gdb_cv_func_ptrace_ret='int'}
10660 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10664 # Check return type. Varargs (used on GNU/Linux) conflict with the
10665 # empty argument list, so check for that explicitly.
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10667 $as_echo_n "checking return type of ptrace... " >&6; }
10668 if ${gdb_cv_func_ptrace_ret+:} false
; then :
10669 $as_echo_n "(cached) " >&6
10671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 $gdb_ptrace_headers
10677 extern long ptrace (enum __ptrace_request, ...);
10682 if ac_fn_c_try_compile
"$LINENO"; then :
10683 gdb_cv_func_ptrace_ret
='long'
10685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 $gdb_ptrace_headers
10691 extern int ptrace ();
10696 if ac_fn_c_try_compile
"$LINENO"; then :
10697 gdb_cv_func_ptrace_ret
='int'
10699 gdb_cv_func_ptrace_ret
='long'
10701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10706 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10708 cat >>confdefs.h
<<_ACEOF
10709 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10712 # Check argument types.
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10714 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10715 if ${gdb_cv_func_ptrace_args+:} false
; then :
10716 $as_echo_n "(cached) " >&6
10719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721 $gdb_ptrace_headers
10725 extern long ptrace (enum __ptrace_request, ...);
10730 if ac_fn_c_try_compile
"$LINENO"; then :
10731 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
10734 for gdb_arg1
in 'int' 'long'; do
10735 for gdb_arg2
in 'pid_t' 'int' 'long'; do
10736 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10737 for gdb_arg4
in 'int' 'long' 'void *'; do
10738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 $gdb_ptrace_headers
10745 extern $gdb_cv_func_ptrace_ret
10746 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10752 if ac_fn_c_try_compile
"$LINENO"; then :
10753 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10757 for gdb_arg5
in 'int *' 'int' 'long'; do
10758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760 $gdb_ptrace_headers
10765 extern $gdb_cv_func_ptrace_ret
10766 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10772 if ac_fn_c_try_compile
"$LINENO"; then :
10774 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10783 # Provide a safe default value.
10784 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10790 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10791 ac_save_IFS
=$IFS; IFS
=','
10792 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10796 cat >>confdefs.h
<<_ACEOF
10797 #define PTRACE_TYPE_ARG1 $1
10801 cat >>confdefs.h
<<_ACEOF
10802 #define PTRACE_TYPE_ARG3 $3
10806 cat >>confdefs.h
<<_ACEOF
10807 #define PTRACE_TYPE_ARG4 $4
10810 if test -n "$5"; then
10812 cat >>confdefs.h
<<_ACEOF
10813 #define PTRACE_TYPE_ARG5 $5
10819 # Detect support warning flags.
10821 # Check whether --enable-werror was given.
10822 if test "${enable_werror+set}" = set; then :
10823 enableval
=$enable_werror; case "${enableval}" in
10824 yes | y
) ERROR_ON_WARNING
="yes" ;;
10825 no | n
) ERROR_ON_WARNING
="no" ;;
10826 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10831 # Enable -Werror by default when using gcc. Turn it off for releases.
10832 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10833 ERROR_ON_WARNING
=yes
10837 if test "${ERROR_ON_WARNING}" = yes ; then
10838 WERROR_CFLAGS
="-Werror"
10841 # The options we'll try to enable.
10842 build_warnings
="-Wall -Wpointer-arith \
10843 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10844 -Wno-switch -Wno-char-subscripts \
10845 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10846 -Wno-sign-compare -Wno-error=maybe-uninitialized \
10847 -Wno-mismatched-tags \
10848 -Wno-error=deprecated-register \
10849 -Wsuggest-override \
10850 -Wimplicit-fallthrough=3 \
10851 -Wduplicated-cond \
10853 -Wdeprecated-copy \
10854 -Wdeprecated-copy-dtor \
10856 -Wmissing-declarations \
10857 -Wstrict-null-sentinel"
10861 # Enable -Wno-format by default when using gcc on mingw since many
10862 # GCC versions complain about %I64.
10863 build_warnings
="$build_warnings -Wno-format" ;;
10865 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10866 # doesn't understand.
10867 build_warnings
="$build_warnings -Wno-unknown-pragmas"
10868 # Solaris 11 <unistd.h> marks vfork deprecated.
10869 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
10871 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10872 # but there's a special case for this below.
10873 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
10876 # Check whether --enable-build-warnings was given.
10877 if test "${enable_build_warnings+set}" = set; then :
10878 enableval
=$enable_build_warnings; case "${enableval}" in
10880 no
) build_warnings
="-w";;
10881 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10882 build_warnings
="${build_warnings} ${t}";;
10883 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10884 build_warnings
="${t} ${build_warnings}";;
10885 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10887 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10888 echo "Setting compiler warning flags = $build_warnings" 6>&1
10891 # Check whether --enable-gdb-build-warnings was given.
10892 if test "${enable_gdb_build_warnings+set}" = set; then :
10893 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
10895 no
) build_warnings
="-w";;
10896 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10897 build_warnings
="${build_warnings} ${t}";;
10898 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
10899 build_warnings
="${t} ${build_warnings}";;
10900 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10902 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
10903 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10907 # The set of warnings supported by a C++ compiler is not the same as
10908 # of the C compiler.
10910 ac_cpp
='$CXXCPP $CPPFLAGS'
10911 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10912 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10913 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10917 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10920 $as_echo_n "checking compiler warning flags... " >&6; }
10921 # Separate out the -Werror flag as some files just cannot be
10922 # compiled with it enabled.
10923 for w
in ${build_warnings}; do
10924 # GCC does not complain about -Wno-unknown-warning. Invert
10925 # and test -Wunknown-warning instead.
10928 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
10929 -Wformat-nonliteral)
10930 # gcc requires -Wformat before -Wformat-nonliteral
10931 # will work, so stick them together.
10940 -Werr*) WERROR_CFLAGS
=-Werror ;;
10942 # Check whether GCC accepts it.
10943 saved_CFLAGS
="$CFLAGS"
10944 CFLAGS
="$CFLAGS -Werror $wtest"
10945 saved_CXXFLAGS
="$CXXFLAGS"
10946 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
10947 if test "x$w" = "x-Wunused-variable"; then
10948 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
10949 # fixed in GCC 4.9. This test is derived from the gdb
10950 # source code that triggered this bug in GCC.
10951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953 struct scoped_restore_base {};
10954 struct scoped_restore_tmpl : public scoped_restore_base {
10955 ~scoped_restore_tmpl() {}
10960 const scoped_restore_base &b = scoped_restore_tmpl();
10965 if ac_fn_cxx_try_compile
"$LINENO"; then :
10966 WARN_CFLAGS
="${WARN_CFLAGS} $w"
10968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10981 if ac_fn_cxx_try_compile
"$LINENO"; then :
10982 WARN_CFLAGS
="${WARN_CFLAGS} $w"
10984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10986 CFLAGS
="$saved_CFLAGS"
10987 CXXFLAGS
="$saved_CXXFLAGS"
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
10991 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
10997 ac_cpp='$CPP $CPPFLAGS'
10998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11004 TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
11006 cat >>confdefs.h <<_ACEOF
11007 #define TARGET_WORD_SIZE $TARGET_WORD_SIZE
11014 $as_echo "#define USE_WIN32API 1" >>confdefs.h
11019 ac_config_files
="$ac_config_files Makefile"
11021 cat >confcache
<<\_ACEOF
11022 # This file is a shell script that caches the results of configure
11023 # tests run on this system so they can be shared between configure
11024 # scripts and configure runs, see configure's option --config-cache.
11025 # It is not useful on other systems. If it contains results you don't
11026 # want to keep, you may remove or edit it.
11028 # config.status only pays attention to the cache file if you give it
11029 # the --recheck option to rerun configure.
11031 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11033 # following values.
11037 # The following way of writing the cache mishandles newlines in values,
11038 # but we know of no workaround that is simple, portable, and efficient.
11039 # So, we kill variables containing newlines.
11040 # Ultrix sh set writes to stderr and can't be redirected directly,
11041 # and sets the high bit in the cache file unless we assign to the vars.
11043 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11044 eval ac_val
=\$
$ac_var
11048 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11052 _ | IFS | as_nl
) ;; #(
11053 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11054 *) { eval $ac_var=; unset $ac_var;} ;;
11060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11061 *${as_nl}ac_space
=\
*)
11062 # `set' does not quote correctly, so add quotes: double-quote
11063 # substitution turns \\\\ into \\, and sed turns \\ into \.
11066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11069 # `set' quotes correctly as required by POSIX, so do not add quotes.
11070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11083 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11084 if test -w "$cache_file"; then
11085 if test "x$cache_file" != "x/dev/null"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11087 $as_echo "$as_me: updating cache $cache_file" >&6;}
11088 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
11089 cat confcache
>"$cache_file"
11091 case $cache_file in #(
11093 mv -f confcache
"$cache_file"$$
&&
11094 mv -f "$cache_file"$$
"$cache_file" ;; #(
11096 mv -f confcache
"$cache_file" ;;
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11102 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11107 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11108 # Let make expand exec_prefix.
11109 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11111 DEFS
=-DHAVE_CONFIG_H
11115 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11116 # 1. Remove the extension, and $U if already installed.
11117 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11118 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11119 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11120 # will be set to the directory where LIBOBJS objects are built.
11121 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11122 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11124 LIBOBJS
=$ac_libobjs
11126 LTLIBOBJS
=$ac_ltlibobjs
11129 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11130 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
11131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11134 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11135 if test -n "$am_sleep_pid"; then
11136 # Hide warnings about reused PIDs.
11137 wait $am_sleep_pid 2>/dev
/null
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11140 $as_echo "done" >&6; }
11141 if test -n "$EXEEXT"; then
11143 am__EXEEXT_FALSE
='#'
11145 am__EXEEXT_TRUE
='#'
11149 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11150 as_fn_error $?
"conditional \"AMDEP\" was never defined.
11151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11153 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11154 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
11155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11157 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11158 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
11159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11161 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11162 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
11163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11165 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
11166 as_fn_error $?
"conditional \"SELFTEST\" was never defined.
11167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11170 : "${CONFIG_STATUS=./config.status}"
11172 ac_clean_files_save
=$ac_clean_files
11173 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11175 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11177 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11179 # Generated by $as_me.
11180 # Run this file to recreate the current configuration.
11181 # Compiler output produced by configure, useful for debugging
11182 # configure, is in config.log if it exists.
11185 ac_cs_recheck=false
11188 SHELL=\${CONFIG_SHELL-$SHELL}
11191 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11192 ## -------------------- ##
11193 ## M4sh Initialization. ##
11194 ## -------------------- ##
11196 # Be more Bourne compatible
11197 DUALCASE
=1; export DUALCASE
# for MKS sh
11198 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11201 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11202 # is contrary to our usage. Disable this feature.
11203 alias -g '${1+"$@"}'='"$@"'
11204 setopt NO_GLOB_SUBST
11206 case `(set -o) 2>/dev/null` in #(
11218 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11219 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11220 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11221 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11222 # Prefer a ksh shell builtin over an external printf program on Solaris,
11223 # but without wasting forks for bash or zsh.
11224 if test -z "$BASH_VERSION$ZSH_VERSION" \
11225 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11226 as_echo='print
-r --'
11227 as_echo_n='print
-rn --'
11228 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11229 as_echo='printf %s
\n'
11230 as_echo_n='printf %s
'
11232 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11233 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11234 as_echo_n='/usr
/ucb
/echo -n'
11236 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11237 as_echo_n_body='eval
11241 expr "X$arg" : "X\\(.*\\)$as_nl";
11242 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11244 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11246 export as_echo_n_body
11247 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11249 export as_echo_body
11250 as_echo='sh
-c $as_echo_body as_echo
'
11253 # The user is always right.
11254 if test "${PATH_SEPARATOR+set}" != set; then
11256 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11257 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11264 # We need space, tab and new line, in precisely that order. Quoting is
11265 # there to prevent editors from complaining about space-tab.
11266 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11267 # splitting by setting IFS to empty value.)
11270 # Find who we are. Look in the path if we contain no directory separator.
11273 *[\\/]* ) as_myself=$0 ;;
11274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11278 test -z "$as_dir" && as_dir=.
11279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11285 # We did not find ourselves, most probably we were run as `sh COMMAND'
11286 # in which case we are not to be found in the path.
11287 if test "x$as_myself" = x
; then
11290 if test ! -f "$as_myself"; then
11291 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11295 # Unset variables that we do not need and which cause bugs (e.g. in
11296 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11297 # suppresses any "Segmentation fault" message there. '((' could
11298 # trigger a bug in pdksh 5.2.14.
11299 for as_var
in BASH_ENV ENV MAIL MAILPATH
11300 do eval test x\
${$as_var+set} = xset \
11301 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11314 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11317 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11318 # ----------------------------------------
11319 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11320 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11321 # script with STATUS, using 1 if that was 0.
11324 as_status
=$1; test $as_status -eq 0 && as_status
=1
11326 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11327 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11329 $as_echo "$as_me: error: $2" >&2
11330 as_fn_exit
$as_status
11334 # as_fn_set_status STATUS
11335 # -----------------------
11336 # Set $? to STATUS, without forking.
11337 as_fn_set_status
()
11340 } # as_fn_set_status
11342 # as_fn_exit STATUS
11343 # -----------------
11344 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11348 as_fn_set_status
$1
11354 # Portably unset VAR.
11357 { eval $1=; unset $1;}
11359 as_unset
=as_fn_unset
11360 # as_fn_append VAR VALUE
11361 # ----------------------
11362 # Append the text in VALUE to the end of the definition contained in VAR. Take
11363 # advantage of any shell optimizations that allow amortized linear growth over
11364 # repeated appends, instead of the typical quadratic growth present in naive
11366 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11367 eval 'as_fn_append ()
11378 # as_fn_arith ARG...
11379 # ------------------
11380 # Perform arithmetic evaluation on the ARGs, and store the result in the
11381 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11382 # must be portable across $(()) and expr.
11383 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11384 eval 'as_fn_arith ()
11391 as_val
=`expr "$@" || test $? -eq 1`
11396 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11397 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11403 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11404 as_basename
=basename
11409 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11415 as_me
=`$as_basename -- "$0" ||
11416 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11417 X"$0" : 'X\(//\)$' \| \
11418 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11420 sed '/^.*\/\([^/][^/]*\)\/*$/{
11434 # Avoid depending upon Character Ranges.
11435 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11436 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11437 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11438 as_cr_digits
='0123456789'
11439 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11441 ECHO_C
= ECHO_N
= ECHO_T
=
11442 case `echo -n x` in #(((((
11444 case `echo 'xy\c'` in
11445 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11447 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11454 rm -f conf$$ conf$$.exe conf$$.
file
11455 if test -d conf$$.dir
; then
11456 rm -f conf$$.dir
/conf$$.
file
11459 mkdir conf$$.dir
2>/dev
/null
11461 if (echo >conf$$.
file) 2>/dev
/null
; then
11462 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11464 # ... but there are two gotchas:
11465 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11466 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11467 # In both cases, we have to default to `cp -pR'.
11468 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11470 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11478 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11479 rmdir conf$$.dir
2>/dev
/null
11484 # Create "$as_dir" as a directory, including parents if necessary.
11489 -*) as_dir
=.
/$as_dir;;
11491 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11495 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11496 *) as_qdir
=$as_dir;;
11498 as_dirs
="'$as_qdir' $as_dirs"
11499 as_dir
=`$as_dirname -- "$as_dir" ||
11500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11501 X"$as_dir" : 'X\(//\)[^/]' \| \
11502 X"$as_dir" : 'X\(//\)$' \| \
11503 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11504 $as_echo X"$as_dir" |
11505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11509 /^X\(\/\/\)[^/].*/{
11522 test -d "$as_dir" && break
11524 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11525 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11529 if mkdir
-p .
2>/dev
/null
; then
11530 as_mkdir_p
='mkdir -p "$as_dir"'
11532 test -d .
/-p && rmdir .
/-p
11537 # as_fn_executable_p FILE
11538 # -----------------------
11539 # Test if FILE is an executable regular file.
11540 as_fn_executable_p
()
11542 test -f "$1" && test -x "$1"
11543 } # as_fn_executable_p
11544 as_test_x
='test -x'
11545 as_executable_p
=as_fn_executable_p
11547 # Sed expression to map a string onto a valid CPP name.
11548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11550 # Sed expression to map a string onto a valid variable name.
11551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11555 ## ----------------------------------- ##
11556 ## Main body of $CONFIG_STATUS script. ##
11557 ## ----------------------------------- ##
11559 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11562 # Save the log message, to keep $0 and so on meaningful, and to
11563 # report actual input values of CONFIG_FILES etc. instead of their
11564 # values after options handling.
11566 This file was extended by gdbsupport $as_me 1.0, which was
11567 generated by GNU Autoconf 2.69. Invocation command line was
11569 CONFIG_FILES = $CONFIG_FILES
11570 CONFIG_HEADERS = $CONFIG_HEADERS
11571 CONFIG_LINKS = $CONFIG_LINKS
11572 CONFIG_COMMANDS = $CONFIG_COMMANDS
11575 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11580 case $ac_config_files in *"
11581 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11584 case $ac_config_headers in *"
11585 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11590 # Files that config.status was made for.
11591 config_files="$ac_config_files"
11592 config_headers="$ac_config_headers"
11593 config_commands="$ac_config_commands"
11597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11599 \`$as_me' instantiates files and other configuration actions
11600 from templates according to the current configuration. Unless the files
11601 and actions are specified as TAGs, all are instantiated by default.
11603 Usage: $0 [OPTION]... [TAG]...
11605 -h, --help print this help, then exit
11606 -V, --version print version number and configuration settings, then exit
11607 --config print configuration, then exit
11608 -q, --quiet, --silent
11609 do not print progress messages
11610 -d, --debug don't remove temporary files
11611 --recheck update $as_me by reconfiguring in the same conditions
11612 --file=FILE[:TEMPLATE]
11613 instantiate the configuration file FILE
11614 --header=FILE[:TEMPLATE]
11615 instantiate the configuration header FILE
11617 Configuration files:
11620 Configuration headers:
11623 Configuration commands:
11626 Report bugs to the package provider."
11629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11630 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11632 gdbsupport config.status 1.0
11633 configured by $0, generated by GNU Autoconf 2.69,
11634 with options \\"\$ac_cs_config\\"
11636 Copyright (C) 2012 Free Software Foundation, Inc.
11637 This config.status script is free software; the Free Software Foundation
11638 gives unlimited permission to copy, distribute and modify it."
11645 test -n "\$AWK" || AWK=awk
11648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11649 # The default lists apply if the user does not specify any file.
11655 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11656 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11660 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11672 # Handling of the options.
11673 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11675 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11676 $as_echo "$ac_cs_version"; exit ;;
11677 --config |
--confi |
--conf |
--con |
--co |
--c )
11678 $as_echo "$ac_cs_config"; exit ;;
11679 --debug |
--debu |
--deb |
--de |
--d |
-d )
11681 --file |
--fil |
--fi |
--f )
11684 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11685 '') as_fn_error $?
"missing file argument" ;;
11687 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11688 ac_need_defaults
=false
;;
11689 --header |
--heade |
--head |
--hea )
11692 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11694 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11695 ac_need_defaults
=false
;;
11697 # Conflict between --help and --header
11698 as_fn_error $?
"ambiguous option: \`$1'
11699 Try \`$0 --help' for more information.";;
11700 --help |
--hel |
-h )
11701 $as_echo "$ac_cs_usage"; exit ;;
11702 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11703 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11706 # This is an error.
11707 -*) as_fn_error $?
"unrecognized option: \`$1'
11708 Try \`$0 --help' for more information." ;;
11710 *) as_fn_append ac_config_targets
" $1"
11711 ac_need_defaults
=false
;;
11717 ac_configure_extra_args
=
11719 if $ac_cs_silent; then
11721 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11726 if \$ac_cs_recheck; then
11727 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11729 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11730 CONFIG_SHELL='$SHELL'
11731 export CONFIG_SHELL
11736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11741 ## Running $as_me. ##
11747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11751 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11757 # Handling of arguments.
11758 for ac_config_target
in $ac_config_targets
11760 case $ac_config_target in
11761 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11762 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
11763 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11765 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11770 # If the user did not use the arguments to specify the items to instantiate,
11771 # then the envvar interface is used. Set only those that are not.
11772 # We use the long form for the default assignment because of an extremely
11773 # bizarre bug on SunOS 4.1.3.
11774 if $ac_need_defaults; then
11775 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11776 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11777 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11780 # Have a temporary directory for convenience. Make it in the build tree
11781 # simply because there is no reason against having it here, and in addition,
11782 # creating and moving files from /tmp can sometimes cause problems.
11783 # Hook for its removal unless debugging.
11784 # Note that there is a small window in which the directory will not be cleaned:
11785 # after its creation but before its name has been assigned to `$tmp'.
11789 trap 'exit_status=$?
11790 : "${ac_tmp:=$tmp}"
11791 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11793 trap 'as_fn_exit 1' 1 2 13 15
11795 # Create a (secure) tmp directory for tmp files.
11798 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11802 tmp
=.
/conf$$
-$RANDOM
11803 (umask 077 && mkdir
"$tmp")
11804 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11807 # Set up the scripts for CONFIG_FILES section.
11808 # No need to generate them if there are no CONFIG_FILES.
11809 # This happens for instance with `./config.status config.h'.
11810 if test -n "$CONFIG_FILES"; then
11813 ac_cr
=`echo X | tr X '\015'`
11814 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11815 # But we know of no other shell where ac_cr would be empty at this
11816 # point, so we can use a bashism as a fallback.
11817 if test "x$ac_cr" = x
; then
11818 eval ac_cr
=\$
\'\\r
\'
11820 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11821 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11824 ac_cs_awk_cr
=$ac_cr
11827 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11832 echo "cat >conf$$subs.awk <<_ACEOF" &&
11833 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11835 } >conf$$subs.sh ||
11836 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11839 for ac_last_try in false false false false false :; do
11840 . ./conf$$subs.sh ||
11841 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11843 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11844 if test $ac_delim_n = $ac_delim_num; then
11846 elif $ac_last_try; then
11847 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11849 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11852 rm -f conf$$subs.sh
11854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11855 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11859 s/^/S["/; s
/!.
*/"]=/
11869 s/\(.\{148\}\)..*/\1/
11871 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11876 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11883 s/\(.\{148\}\)..*/\1/
11885 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11889 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11894 ' <conf$$subs.awk | sed '
11899 ' >>$CONFIG_STATUS || ac_write_fail=1
11900 rm -f conf$$subs.awk
11901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11903 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11904 for (key in S) S_is_set[key] = 1
11910 nfields = split(line, field, "@
")
11912 len = length(field[1])
11913 for (i = 2; i < nfields; i++) {
11915 keylen = length(key)
11916 if (S_is_set[key]) {
11918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11919 len += length(value) + length(field[++i])
11930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11931 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11932 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11935 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11936 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11939 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11940 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11941 # trailing colons and then remove the whole line if VPATH becomes empty
11942 # (actually we leave an empty line to preserve line numbers).
11943 if test "x
$srcdir" = x.; then
11944 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11963 fi # test -n "$CONFIG_FILES"
11965 # Set up the scripts for CONFIG_HEADERS section.
11966 # No need to generate them if there are no CONFIG_HEADERS.
11967 # This happens for instance with `./config.status Makefile'.
11968 if test -n "$CONFIG_HEADERS"; then
11969 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11973 # Transform confdefs.h into an awk script `defines.awk', embedded as
11974 # here-document in config.status, that substitutes the proper values into
11975 # config.h.in to produce config.h.
11977 # Create a delimiter string that does not exist in confdefs.h, to ease
11978 # handling of long lines.
11980 for ac_last_try in false false :; do
11981 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11982 if test -z "$ac_tt"; then
11984 elif $ac_last_try; then
11985 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11987 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11991 # For the awk script, D is an array of macro values keyed by name,
11992 # likewise P contains macro parameters if any. Preserve backslash
11993 # newline sequences.
11995 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11997 s/.\{148\}/&'"$ac_delim"'/g
12000 s/^[ ]*#[ ]*define[ ][ ]*/ /
12007 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12009 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12014 D["\
1"]=" \
3\\\\\\n
"\\/p
12016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12021 s/.\{148\}/&'"$ac_delim"'/g
12026 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12029 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12031 ' <confdefs.h | sed '
12032 s/'"$ac_delim"'/"\\\
12033 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12036 for (key in D) D_is_set[key] = 1
12039 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12041 split(line, arg, " ")
12042 if (arg[1] == "#") {
12046 defundef
= substr
(arg
[1], 2)
12049 split(mac1
, mac2
, "(") #)
12051 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12052 if (D_is_set
[macro
]) {
12053 # Preserve the white space surrounding the "#".
12054 print prefix
"define", macro P
[macro
] D
[macro
]
12057 # Replace #undef with comments. This is necessary, for example,
12058 # in the case of _POSIX_SOURCE, which is predefined and required
12059 # on some systems where configure will not decide to define it.
12060 if (defundef
== "undef") {
12061 print
"/*", prefix defundef
, macro
, "*/"
12069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12070 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12071 fi # test -n "$CONFIG_HEADERS"
12074 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12079 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12081 case $ac_mode$ac_tag in
12083 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
12084 :[FH
]-) ac_tag
=-:-;;
12085 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12102 -) ac_f
="$ac_tmp/stdin";;
12103 *) # Look for the file first in the build tree, then in the source tree
12104 # (if the path is not absolute). The absolute path cannot be DOS-style,
12105 # because $ac_f cannot contain `:'.
12109 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12111 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12113 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12114 as_fn_append ac_file_inputs
" '$ac_f'"
12117 # Let's still pretend it is `configure' which instantiates (i.e., don't
12118 # use $as_me), people would be surprised to read:
12119 # /* config.h. Generated by config.status. */
12120 configure_input
='Generated from '`
12121 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12123 if test x
"$ac_file" != x-
; then
12124 configure_input
="$ac_file. $configure_input"
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12126 $as_echo "$as_me: creating $ac_file" >&6;}
12128 # Neutralize special characters interpreted by sed in replacement strings.
12129 case $configure_input in #(
12130 *\
&* |
*\|
* |
*\\* )
12131 ac_sed_conf_input
=`$as_echo "$configure_input" |
12132 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12133 *) ac_sed_conf_input
=$configure_input;;
12137 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
12138 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12143 ac_dir
=`$as_dirname -- "$ac_file" ||
12144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12145 X"$ac_file" : 'X\(//\)[^/]' \| \
12146 X"$ac_file" : 'X\(//\)$' \| \
12147 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12148 $as_echo X"$ac_file" |
12149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12153 /^X\(\/\/\)[^/].*/{
12166 as_dir
="$ac_dir"; as_fn_mkdir_p
12170 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12172 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12173 # A ".." for each directory in $ac_dir_suffix.
12174 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12175 case $ac_top_builddir_sub in
12176 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12177 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12180 ac_abs_top_builddir
=$ac_pwd
12181 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12182 # for backward compatibility:
12183 ac_top_builddir
=$ac_top_build_prefix
12186 .
) # We are building in place.
12188 ac_top_srcdir
=$ac_top_builddir_sub
12189 ac_abs_top_srcdir
=$ac_pwd ;;
12190 [\\/]* | ?
:[\\/]* ) # Absolute name.
12191 ac_srcdir
=$srcdir$ac_dir_suffix;
12192 ac_top_srcdir
=$srcdir
12193 ac_abs_top_srcdir
=$srcdir ;;
12194 *) # Relative name.
12195 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12196 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12197 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12199 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12209 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12210 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12212 ac_MKDIR_P
=$MKDIR_P
12214 [\\/$
]* | ?
:[\\/]* ) ;;
12215 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
12219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12220 # If the template does not know about datarootdir, expand it.
12221 # FIXME: This hack should be removed a few years after 2.60.
12222 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12233 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12234 *datarootdir
*) ac_datarootdir_seen
=yes;;
12235 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12237 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12240 ac_datarootdir_hack='
12241 s&@datadir@&$datadir&g
12242 s&@docdir@&$docdir&g
12243 s&@infodir@&$infodir&g
12244 s&@localedir@&$localedir&g
12245 s&@mandir@&$mandir&g
12246 s&\\\${datarootdir}&$datarootdir&g' ;;
12250 # Neutralize VPATH when `$srcdir' = `.'.
12251 # Shell code in configure.ac might set extrasub.
12252 # FIXME: do we really want to maintain this feature?
12253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12254 ac_sed_extra="$ac_vpsub
12257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12259 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12260 s|@configure_input@|
$ac_sed_conf_input|
;t t
12261 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12262 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12263 s
&@srcdir@
&$ac_srcdir&;t t
12264 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12265 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12266 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12267 s
&@builddir@
&$ac_builddir&;t t
12268 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12269 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12270 s
&@INSTALL@
&$ac_INSTALL&;t t
12271 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
12272 $ac_datarootdir_hack
12274 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
12275 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12277 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12278 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12279 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12280 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12282 which seems to be undefined. Please make sure it is defined" >&5
12283 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12284 which seems to be undefined. Please make sure it is defined" >&2;}
12286 rm -f "$ac_tmp/stdin"
12288 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12289 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12297 if test x"$ac_file" != x-; then
12299 $as_echo "/* $configure_input */" \
12300 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12301 } >"$ac_tmp/config.h" \
12302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12303 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12305 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12308 mv "$ac_tmp/config.h" "$ac_file" \
12309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12312 $as_echo "/* $configure_input */" \
12313 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12314 || as_fn_error $? "could not create -" "$LINENO" 5
12316 # Compute "$ac_file"'s index
in $config_headers.
12319 for _am_header
in $config_headers :; do
12320 case $_am_header in
12321 $_am_arg |
$_am_arg:* )
12324 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
12327 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12328 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12329 X"$_am_arg" : 'X\(//\)[^/]' \| \
12330 X"$_am_arg" : 'X\(//\)$' \| \
12331 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12332 $as_echo X"$_am_arg" |
12333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12337 /^X\(\/\/\)[^/].*/{
12349 s/.*/./; q'`/stamp-h
$_am_stamp_count
12352 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12353 $as_echo "$as_me: executing $ac_file commands" >&6;}
12358 case $ac_file$ac_mode in
12359 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
12360 # Older Autoconf quotes --file arguments for eval, but not when files
12361 # are listed without --file. Let's play safe and only enable the eval
12362 # if we detect the quoting.
12363 case $CONFIG_FILES in
12364 *\'*) eval set x
"$CONFIG_FILES" ;;
12365 *) set x
$CONFIG_FILES ;;
12370 # Strip MF so we end up with the name of the file.
12371 mf
=`echo "$mf" | sed -e 's/:.*$//'`
12372 # Check whether this is an Automake generated Makefile or not.
12373 # We used to match only the files named 'Makefile.in', but
12374 # some people rename them; so instead we look at the file content.
12375 # Grep'ing the first line is not enough: some people post-process
12376 # each Makefile.in and add a new line on top of each file to say so.
12377 # Grep'ing the whole file is not good either: AIX grep has a line
12378 # limit of 2048, but all sed's we know have understand at least 4000.
12379 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
12380 dirpart
=`$as_dirname -- "$mf" ||
12381 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12382 X"$mf" : 'X\(//\)[^/]' \| \
12383 X"$mf" : 'X\(//\)$' \| \
12384 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12390 /^X\(\/\/\)[^/].*/{
12406 # Extract the definition of DEPDIR, am__include, and am__quote
12407 # from the Makefile without running 'make'.
12408 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
12409 test -z "$DEPDIR" && continue
12410 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
12411 test -z "$am__include" && continue
12412 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
12413 # Find all dependency output files, they are included files with
12414 # $(DEPDIR) in their names. We invoke sed twice because it is the
12415 # simplest approach to changing $(DEPDIR) to its actual value in the
12417 for file in `sed -n "
12418 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12419 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12420 # Make sure the directory exists.
12421 test -f "$dirpart/$file" && continue
12422 fdir
=`$as_dirname -- "$file" ||
12423 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12424 X"$file" : 'X\(//\)[^/]' \| \
12425 X"$file" : 'X\(//\)$' \| \
12426 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12427 $as_echo X"$file" |
12428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12432 /^X\(\/\/\)[^/].*/{
12445 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
12446 # echo "creating $dirpart/$file"
12447 echo '# dummy' > "$dirpart/$file"
12459 ac_clean_files
=$ac_clean_files_save
12461 test $ac_write_fail = 0 ||
12462 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
12465 # configure is writing to config.log, and then calls config.status.
12466 # config.status does its own redirection, appending to config.log.
12467 # Unfortunately, on DOS this fails, as config.log is still kept open
12468 # by configure, so config.status won't be able to write to it; its
12469 # output is simply discarded. So we exec the FD to /dev/null,
12470 # effectively closing config.log, so it can be properly (re)opened and
12471 # appended to by config.status. When coming back to configure, we
12472 # need to make the FD available again.
12473 if test "$no_create" != yes; then
12475 ac_config_status_args
=
12476 test "$silent" = yes &&
12477 ac_config_status_args
="$ac_config_status_args --quiet"
12479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12482 # would make configure fail if this is the last instruction.
12483 $ac_cs_success || as_fn_exit
1
12485 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12487 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}