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>
622 ac_subst_vars
='am__EXEEXT_FALSE
687 INSTALL_STRIP_PROGRAM
703 MAINTAINER_MODE_FALSE
744 program_transform_name
757 enable_option_checking
758 enable_maintainer_mode
760 enable_dependency_tracking
765 ac_precious_vars
='build_alias
779 # Initialize some variables set by options.
781 ac_init_version
=false
782 ac_unrecognized_opts
=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
793 program_transform_name
=s
,x
,x
,
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir
='${exec_prefix}/bin'
808 sbindir
='${exec_prefix}/sbin'
809 libexecdir
='${exec_prefix}/libexec'
810 datarootdir
='${prefix}/share'
811 datadir
='${datarootdir}'
812 sysconfdir
='${prefix}/etc'
813 sharedstatedir
='${prefix}/com'
814 localstatedir
='${prefix}/var'
815 includedir
='${prefix}/include'
816 oldincludedir
='/usr/include'
817 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir
='${datarootdir}/info'
823 libdir
='${exec_prefix}/lib'
824 localedir
='${datarootdir}/locale'
825 mandir
='${datarootdir}/man'
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\
$ac_option
839 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 # Accept the important Cygnus configure options, so we can diagnose typos.
846 case $ac_dashdash$ac_option in
850 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
852 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
855 -build |
--build |
--buil |
--bui |
--bu)
856 ac_prev
=build_alias
;;
857 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
858 build_alias
=$ac_optarg ;;
860 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
861 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
862 ac_prev
=cache_file
;;
863 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
864 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
865 cache_file
=$ac_optarg ;;
868 cache_file
=config.cache
;;
870 -datadir |
--datadir |
--datadi |
--datad)
872 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
873 datadir
=$ac_optarg ;;
875 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
876 |
--dataroo |
--dataro |
--datar)
877 ac_prev
=datarootdir
;;
878 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
879 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
880 datarootdir
=$ac_optarg ;;
882 -disable-* |
--disable-*)
883 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
886 as_fn_error $?
"invalid feature name: $ac_useropt"
887 ac_useropt_orig
=$ac_useropt
888 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep
=', ';;
896 eval enable_
$ac_useropt=no
;;
898 -docdir |
--docdir |
--docdi |
--doc |
--do)
900 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
903 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
905 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
908 -enable-* |
--enable-*)
909 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
912 as_fn_error $?
"invalid feature name: $ac_useropt"
913 ac_useropt_orig
=$ac_useropt
914 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep
=', ';;
922 eval enable_
$ac_useropt=\
$ac_optarg ;;
924 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
925 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
926 |
--exec |
--exe |
--ex)
927 ac_prev
=exec_prefix
;;
928 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
929 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
930 |
--exec=* |
--exe=* |
--ex=*)
931 exec_prefix
=$ac_optarg ;;
933 -gas |
--gas |
--ga |
--g)
934 # Obsolete; use --with-gas.
937 -help |
--help |
--hel |
--he |
-h)
939 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
940 ac_init_help
=recursive
;;
941 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
942 ac_init_help
=short
;;
944 -host |
--host |
--hos |
--ho)
945 ac_prev
=host_alias
;;
946 -host=* |
--host=* |
--hos=* |
--ho=*)
947 host_alias
=$ac_optarg ;;
949 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
951 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
953 htmldir
=$ac_optarg ;;
955 -includedir |
--includedir |
--includedi |
--included |
--include \
956 |
--includ |
--inclu |
--incl |
--inc)
957 ac_prev
=includedir
;;
958 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
959 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
960 includedir
=$ac_optarg ;;
962 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
964 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
965 infodir
=$ac_optarg ;;
967 -libdir |
--libdir |
--libdi |
--libd)
969 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
972 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
973 |
--libexe |
--libex |
--libe)
974 ac_prev
=libexecdir
;;
975 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
976 |
--libexe=* |
--libex=* |
--libe=*)
977 libexecdir
=$ac_optarg ;;
979 -localedir |
--localedir |
--localedi |
--localed |
--locale)
981 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
982 localedir
=$ac_optarg ;;
984 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
985 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
986 ac_prev
=localstatedir
;;
987 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
988 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
989 localstatedir
=$ac_optarg ;;
991 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
993 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
997 # Obsolete; use --without-fp.
1000 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1001 |
--no-cr |
--no-c |
-n)
1004 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1005 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1008 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1009 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1010 |
--oldin |
--oldi |
--old |
--ol |
--o)
1011 ac_prev
=oldincludedir
;;
1012 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1013 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1014 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1015 oldincludedir
=$ac_optarg ;;
1017 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1019 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1020 prefix
=$ac_optarg ;;
1022 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1023 |
--program-pre |
--program-pr |
--program-p)
1024 ac_prev
=program_prefix
;;
1025 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1026 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1027 program_prefix
=$ac_optarg ;;
1029 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1030 |
--program-suf |
--program-su |
--program-s)
1031 ac_prev
=program_suffix
;;
1032 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1033 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1034 program_suffix
=$ac_optarg ;;
1036 -program-transform-name |
--program-transform-name \
1037 |
--program-transform-nam |
--program-transform-na \
1038 |
--program-transform-n |
--program-transform- \
1039 |
--program-transform |
--program-transfor \
1040 |
--program-transfo |
--program-transf \
1041 |
--program-trans |
--program-tran \
1042 |
--progr-tra |
--program-tr |
--program-t)
1043 ac_prev
=program_transform_name
;;
1044 -program-transform-name=* |
--program-transform-name=* \
1045 |
--program-transform-nam=* |
--program-transform-na=* \
1046 |
--program-transform-n=* |
--program-transform-=* \
1047 |
--program-transform=* |
--program-transfor=* \
1048 |
--program-transfo=* |
--program-transf=* \
1049 |
--program-trans=* |
--program-tran=* \
1050 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1051 program_transform_name
=$ac_optarg ;;
1053 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1055 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1056 pdfdir
=$ac_optarg ;;
1058 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1060 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1063 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1064 |
-silent |
--silent |
--silen |
--sile |
--sil)
1067 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1069 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1071 sbindir
=$ac_optarg ;;
1073 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1074 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1075 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1077 ac_prev
=sharedstatedir
;;
1078 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1079 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1080 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1082 sharedstatedir
=$ac_optarg ;;
1084 -site |
--site |
--sit)
1086 -site=* |
--site=* |
--sit=*)
1089 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1091 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1092 srcdir
=$ac_optarg ;;
1094 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1095 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1096 ac_prev
=sysconfdir
;;
1097 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1098 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1099 sysconfdir
=$ac_optarg ;;
1101 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1102 ac_prev
=target_alias
;;
1103 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1104 target_alias
=$ac_optarg ;;
1106 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1109 -version |
--version |
--versio |
--versi |
--vers |
-V)
1110 ac_init_version
=: ;;
1113 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1116 as_fn_error $?
"invalid package name: $ac_useropt"
1117 ac_useropt_orig
=$ac_useropt
1118 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1123 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep
=', ';;
1126 eval with_
$ac_useropt=\
$ac_optarg ;;
1128 -without-* |
--without-*)
1129 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1132 as_fn_error $?
"invalid package name: $ac_useropt"
1133 ac_useropt_orig
=$ac_useropt
1134 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep
=', ';;
1142 eval with_
$ac_useropt=no
;;
1145 # Obsolete; use --with-x.
1148 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1149 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1150 ac_prev
=x_includes
;;
1151 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1152 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1153 x_includes
=$ac_optarg ;;
1155 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1156 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1157 ac_prev
=x_libraries
;;
1158 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1159 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1160 x_libraries
=$ac_optarg ;;
1162 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1167 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1171 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1173 eval $ac_envvar=\
$ac_optarg
1174 export $ac_envvar ;;
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 if test -n "$ac_prev"; then
1188 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error $?
"missing argument to $ac_option"
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1195 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 # Check all directory arguments for consistency.
1201 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val
=\$
$ac_var
1207 # Remove trailing slashes.
1210 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\
$ac_val;;
1213 # Be sure to have absolute directory names.
1215 [\\/$
]* | ?
:[\\/]* ) continue;;
1216 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1218 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target
=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x
; then
1230 if test "x$build_alias" = x
; then
1231 cross_compiling
=maybe
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1240 test "$silent" = yes && exec 6>/dev
/null
1243 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di
=`ls -di .` &&
1245 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $?
"working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $?
"pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted
=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir
=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted
=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1287 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var
in $ac_precious_vars; do
1304 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1306 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1380 --build=BUILD configure
for building on BUILD
[guessed
]
1381 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1382 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive
) echo "Configuration of gdbsupport 1.0:";;
1393 --disable-option-checking ignore unrecognized
--enable/--with options
1394 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1395 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1396 --enable-maintainer-mode
1397 enable make rules and dependencies not useful
(and
1398 sometimes confusing
) to the casual installer
1399 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1400 --disable-silent-rules verbose build output
(undo
: "make V=0")
1401 --enable-dependency-tracking
1402 do not reject slow dependency extractors
1403 --disable-dependency-tracking
1404 speeds up one-time build
1405 --enable-plugins Enable support
for plugins
1406 --disable-largefile omit support
for large files
1407 --enable-unit-tests Enable the inclusion of unit tests when compiling
1410 Some influential environment variables
:
1411 CC C compiler
command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1414 nonstandard directory
<lib dir
>
1415 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1416 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1417 you have headers
in a nonstandard directory
<include dir
>
1418 CXX C
++ compiler
command
1419 CXXFLAGS C
++ compiler flags
1422 Use these variables to override the choices made by
`configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1425 Report bugs to the package provider.
1430 if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1455 .) # We are building in place.
1457 ac_top_srcdir=$ac_top_builddir_sub
1458 ac_abs_top_srcdir=$ac_pwd ;;
1459 [\\/]* | ?:[\\/]* ) # Absolute name.
1460 ac_srcdir=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir=$srcdir
1462 ac_abs_top_srcdir=$srcdir ;;
1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470 cd "$ac_dir" || { ac_status=$?; continue; }
1471 # Check for guested configure.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1488 gdbsupport configure 1.0
1489 generated by GNU Autoconf 2.69
1491 Copyright (C) 2012 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1512 *) ac_try_echo
=$ac_try;;
1514 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1518 if test -s conftest.err
; then
1519 grep -v '^ *+' conftest.err
>conftest.er1
1520 cat conftest.er1
>&5
1521 mv -f conftest.er1 conftest.err
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.
$ac_objext; then :
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.
$ac_ext >&5
1535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536 as_fn_set_status
$ac_retval
1538 } # ac_fn_c_try_compile
1540 # ac_fn_cxx_try_compile LINENO
1541 # ----------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_cxx_try_compile
()
1545 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1546 rm -f conftest.
$ac_objext
1547 if { { ac_try
="$ac_compile"
1549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_cxx_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1576 } # ac_fn_cxx_try_compile
1578 # ac_fn_c_try_cpp LINENO
1579 # ----------------------
1580 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_cpp conftest.$ac_ext"
1586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1587 *) ac_try_echo
=$ac_try;;
1589 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593 if test -s conftest.err
; then
1594 grep -v '^ *+' conftest.err
>conftest.er1
1595 cat conftest.er1
>&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } > conftest.i
&& {
1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.
$ac_ext >&5
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status
$ac_retval
1615 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1618 # the include files in INCLUDES and setting the cache variable VAR
1620 ac_fn_c_check_header_mongrel
()
1622 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1623 if eval \
${$3+:} false
; then :
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 $as_echo_n "checking for $2... " >&6; }
1626 if eval \
${$3+:} false
; then :
1627 $as_echo_n "(cached) " >&6
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1633 # Is the header compilable?
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1635 $as_echo_n "checking $2 usability... " >&6; }
1636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1641 if ac_fn_c_try_compile
"$LINENO"; then :
1642 ac_header_compiler
=yes
1644 ac_header_compiler
=no
1646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1648 $as_echo "$ac_header_compiler" >&6; }
1650 # Is the header present?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1652 $as_echo_n "checking $2 presence... " >&6; }
1653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1657 if ac_fn_c_try_cpp
"$LINENO"; then :
1658 ac_header_preproc
=yes
1660 ac_header_preproc
=no
1662 rm -f conftest.err conftest.i conftest.
$ac_ext
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1664 $as_echo "$ac_header_preproc" >&6; }
1666 # So? What about this header?
1667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1670 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1672 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1676 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1678 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1680 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1682 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1684 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \
${$3+:} false
; then :
1690 $as_echo_n "(cached) " >&6
1692 eval "$3=\$ac_header_compiler"
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 } # ac_fn_c_check_header_mongrel
1702 # ac_fn_c_try_run LINENO
1703 # ----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705 # that executables *can* be run.
1708 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1709 if { { ac_try
="$ac_link"
1711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1722 *) ac_try_echo
=$ac_try;;
1724 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }; then :
1732 $as_echo "$as_me: program exited with status $ac_status" >&5
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.
$ac_ext >&5
1736 ac_retval
=$ac_status
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status
$ac_retval
1744 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745 # -------------------------------------------------------
1746 # Tests whether HEADER exists and can be compiled using the include files in
1747 # INCLUDES, setting the cache variable VAR accordingly.
1748 ac_fn_c_check_header_compile
()
1750 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if eval \
${$3+:} false
; then :
1754 $as_echo_n "(cached) " >&6
1756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1761 if ac_fn_c_try_compile
"$LINENO"; then :
1766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 } # ac_fn_c_check_header_compile
1775 # ac_fn_c_try_link LINENO
1776 # -----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded.
1780 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1781 rm -f conftest.
$ac_objext conftest
$ac_exeext
1782 if { { ac_try
="$ac_link"
1784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 test -x conftest$ac_exeext
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_c_try_link
1821 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1822 # -------------------------------------------
1823 # Tests whether TYPE exists after having included INCLUDES, setting cache
1824 # variable VAR accordingly.
1825 ac_fn_c_check_type ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831 $as_echo_n "(cached) " >&6
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1859 if ac_fn_c_try_compile "$LINENO"; then :
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_type
1875 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1876 # --------------------------------------------
1877 # Tries to find the compile-time value of EXPR in a program that includes
1878 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1880 ac_fn_c_compute_int ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if test "$cross_compiling" = yes; then
1884 # Depending upon the size, compute the lo and hi bounds.
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1891 static int test_array [1 - 2 * !(($2) >= 0)];
1893 return test_array [0];
1899 if ac_fn_c_try_compile "$LINENO"; then :
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1908 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1910 return test_array [0];
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 ac_hi=$ac_mid; break
1919 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1920 if test $ac_lo -le $ac_mid; then
1924 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1935 static int test_array [1 - 2 * !(($2) < 0)];
1937 return test_array [0];
1943 if ac_fn_c_try_compile "$LINENO"; then :
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1952 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1954 return test_array [0];
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961 ac_lo=$ac_mid; break
1963 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1964 if test $ac_mid -le $ac_hi; then
1968 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 # Binary search between lo and hi bounds.
1979 while test "x$ac_lo" != "x$ac_hi"; do
1980 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1987 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989 return test_array [0];
1995 if ac_fn_c_try_compile "$LINENO"; then :
1998 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2010 static long int longval () { return $2; }
2011 static unsigned long int ulongval () { return $2; }
2018 FILE *f = fopen ("conftest.val", "w");
2023 long int i = longval ();
2026 fprintf (f, "%ld", i);
2030 unsigned long int i = ulongval ();
2033 fprintf (f, "%lu", i);
2035 /* Do not output a trailing newline, as this causes \r\n confusion
2036 on some platforms. */
2037 return ferror (f) || fclose (f) != 0;
2043 if ac_fn_c_try_run "$LINENO"; then :
2044 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2049 conftest.$ac_objext conftest.beam conftest.$ac_ext
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 as_fn_set_status $ac_retval
2056 } # ac_fn_c_compute_int
2058 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2059 # ---------------------------------------------
2060 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2062 ac_fn_c_check_decl ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2066 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2068 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2069 if eval \${$3+:} false; then :
2070 $as_echo_n "(cached) " >&6
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 #ifndef $as_decl_name
2080 (void) $as_decl_use;
2082 (void) $as_decl_name;
2090 if ac_fn_c_try_compile "$LINENO"; then :
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 } # ac_fn_c_check_decl
2104 # ac_fn_c_check_func LINENO FUNC VAR
2105 # ----------------------------------
2106 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2107 ac_fn_c_check_func ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113 $as_echo_n "(cached) " >&6
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2119 #define $2 innocuous_$2
2121 /* System header to define __stub macros and hopefully few prototypes,
2122 which can conflict with char $2 (); below.
2123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2124 <limits.h> exists even on freestanding compilers. */
2127 # include <limits.h>
2129 # include <assert.h>
2134 /* Override any GCC internal prototype to avoid an error.
2135 Use char because int might match the return type of a GCC
2136 builtin and then its argument prototype would still apply. */
2141 /* The GNU C library defines this for functions which it implements
2142 to always fail with ENOSYS. Some functions are actually named
2143 something starting with __ and the normal name is an alias. */
2144 #if defined __stub_$2 || defined __stub___$2
2156 if ac_fn_c_try_link "$LINENO"; then :
2161 rm -f core conftest.err conftest.$ac_objext \
2162 conftest$ac_exeext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_check_func
2171 # ac_fn_cxx_try_link LINENO
2172 # -------------------------
2173 # Try to link conftest.$ac_ext, and return whether this succeeded.
2174 ac_fn_cxx_try_link ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 rm -f conftest.$ac_objext conftest$ac_exeext
2178 if { { ac_try="$ac_link"
2180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2181 *) ac_try_echo
=$ac_try;;
2183 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184 $as_echo "$ac_try_echo"; } >&5
2185 (eval "$ac_link") 2>conftest.err
2187 if test -s conftest.err
; then
2188 grep -v '^ *+' conftest.err
>conftest.er1
2189 cat conftest.er1
>&5
2190 mv -f conftest.er1 conftest.err
2192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 test $ac_status = 0; } && {
2194 test -z "$ac_cxx_werror_flag" ||
2195 test ! -s conftest.err
2196 } && test -s conftest
$ac_exeext && {
2197 test "$cross_compiling" = yes ||
2198 test -x conftest
$ac_exeext
2202 $as_echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.
$ac_ext >&5
2207 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2208 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2209 # interfere with the next link command; also delete a directory that is
2210 # left behind by Apple's compiler. We do this before executing the actions.
2211 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213 as_fn_set_status
$ac_retval
2215 } # ac_fn_cxx_try_link
2217 # ac_fn_cxx_check_func LINENO FUNC VAR
2218 # ------------------------------------
2219 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2220 ac_fn_cxx_check_func
()
2222 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \
${$3+:} false
; then :
2226 $as_echo_n "(cached) " >&6
2228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2230 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2232 #define $2 innocuous_$2
2234 /* System header to define __stub macros and hopefully few prototypes,
2235 which can conflict with char $2 (); below.
2236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2237 <limits.h> exists even on freestanding compilers. */
2240 # include <limits.h>
2242 # include <assert.h>
2247 /* Override any GCC internal prototype to avoid an error.
2248 Use char because int might match the return type of a GCC
2249 builtin and then its argument prototype would still apply. */
2254 /* The GNU C library defines this for functions which it implements
2255 to always fail with ENOSYS. Some functions are actually named
2256 something starting with __ and the normal name is an alias. */
2257 #if defined __stub_$2 || defined __stub___$2
2269 if ac_fn_cxx_try_link
"$LINENO"; then :
2274 rm -f core conftest.err conftest.
$ac_objext \
2275 conftest
$ac_exeext conftest.
$ac_ext
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282 } # ac_fn_cxx_check_func
2283 cat >config.log
<<_ACEOF
2284 This file contains any messages produced by compilers while
2285 running configure, to aid debugging if configure makes a mistake.
2287 It was created by gdbsupport $as_me 1.0, which was
2288 generated by GNU Autoconf 2.69. Invocation command line was
2300 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2306 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2309 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2310 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2311 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2313 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2314 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2315 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir
=.
2324 $as_echo "PATH: $as_dir"
2340 # Keep a trace of the command line.
2341 # Strip out --no-create and --no-recursion so they do not pile up.
2342 # Strip out --silent because we don't want to record it for future runs.
2343 # Also quote any args containing shell meta-characters.
2344 # Make two passes to allow for proper duplicate-argument suppression.
2348 ac_must_keep_next
=false
2354 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2355 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2356 |
-silent |
--silent |
--silen |
--sile |
--sil)
2359 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2362 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2364 as_fn_append ac_configure_args1
" '$ac_arg'"
2365 if test $ac_must_keep_next = true
; then
2366 ac_must_keep_next
=false
# Got value, back to normal.
2369 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2370 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2371 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2372 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2373 case "$ac_configure_args0 " in
2374 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2377 -* ) ac_must_keep_next
=true
;;
2380 as_fn_append ac_configure_args
" '$ac_arg'"
2385 { ac_configure_args0
=; unset ac_configure_args0
;}
2386 { ac_configure_args1
=; unset ac_configure_args1
;}
2388 # When interrupted or exit'd, cleanup temporary files, and complete
2389 # config.log. We remove comments because anyway the quotes in there
2390 # would cause problems or look ugly.
2391 # WARNING: Use '\'' to represent an apostrophe within the trap.
2392 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2393 trap 'exit_status=$?
2394 # Save into config.log some information that might help in debugging.
2398 $as_echo "## ---------------- ##
2399 ## Cache variables. ##
2400 ## ---------------- ##"
2402 # The following way of writing the cache mishandles newlines in values,
2404 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2405 eval ac_val=\$$ac_var
2409 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2410 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2413 _ | IFS | as_nl) ;; #(
2414 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2415 *) { eval $ac_var=; unset $ac_var;} ;;
2420 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2421 *${as_nl}ac_space=\ *)
2423 "s/'\''/'\''\\\\'\'''\''/g;
2424 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2427 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2434 $as_echo "## ----------------- ##
2435 ## Output variables. ##
2436 ## ----------------- ##"
2438 for ac_var in $ac_subst_vars
2440 eval ac_val=\$$ac_var
2442 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444 $as_echo "$ac_var='\''$ac_val'\''"
2448 if test -n "$ac_subst_files"; then
2449 $as_echo "## ------------------- ##
2450 ## File substitutions. ##
2451 ## ------------------- ##"
2453 for ac_var
in $ac_subst_files
2455 eval ac_val
=\$
$ac_var
2457 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459 $as_echo "$ac_var='\''$ac_val'\''"
2464 if test -s confdefs.h; then
2465 $as_echo "## ----------- ##
2472 test "$ac_signal" != 0 &&
2473 $as_echo "$as_me: caught signal $ac_signal"
2474 $as_echo "$as_me: exit $exit_status"
2476 rm -f core *.core core.conftest.* &&
2477 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2480 for ac_signal
in 1 2 13 15; do
2481 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2486 rm -f -r conftest
* confdefs.h
2488 $as_echo "/* confdefs.h */" > confdefs.h
2490 # Predefined preprocessor variables.
2492 cat >>confdefs.h
<<_ACEOF
2493 #define PACKAGE_NAME "$PACKAGE_NAME"
2496 cat >>confdefs.h
<<_ACEOF
2497 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2500 cat >>confdefs.h
<<_ACEOF
2501 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2504 cat >>confdefs.h
<<_ACEOF
2505 #define PACKAGE_STRING "$PACKAGE_STRING"
2508 cat >>confdefs.h
<<_ACEOF
2509 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2512 cat >>confdefs.h
<<_ACEOF
2513 #define PACKAGE_URL "$PACKAGE_URL"
2517 # Let the site file select an alternate cache file if it wants to.
2518 # Prefer an explicitly selected file to automatically selected ones.
2521 if test -n "$CONFIG_SITE"; then
2522 # We do not want a PATH search for config.site.
2523 case $CONFIG_SITE in #((
2524 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2525 */*) ac_site_file1
=$CONFIG_SITE;;
2526 *) ac_site_file1
=.
/$CONFIG_SITE;;
2528 elif test "x$prefix" != xNONE
; then
2529 ac_site_file1
=$prefix/share
/config.site
2530 ac_site_file2
=$prefix/etc
/config.site
2532 ac_site_file1
=$ac_default_prefix/share
/config.site
2533 ac_site_file2
=$ac_default_prefix/etc
/config.site
2535 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2537 test "x$ac_site_file" = xNONE
&& continue
2538 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2540 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2541 sed 's/^/| /' "$ac_site_file" >&5
2543 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 as_fn_error $?
"failed to load site script $ac_site_file
2546 See \`config.log' for more details" "$LINENO" 5; }
2550 if test -r "$cache_file"; then
2551 # Some versions of bash will fail to source /dev/null (special files
2552 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2553 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2555 $as_echo "$as_me: loading cache $cache_file" >&6;}
2557 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2558 *) .
"./$cache_file";;
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2563 $as_echo "$as_me: creating cache $cache_file" >&6;}
2567 # Check that the precious variables saved in the cache have kept the same
2569 ac_cache_corrupted
=false
2570 for ac_var
in $ac_precious_vars; do
2571 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2572 eval ac_new_set
=\
$ac_env_${ac_var}_set
2573 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2574 eval ac_new_val
=\
$ac_env_${ac_var}_value
2575 case $ac_old_set,$ac_new_set in
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2578 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2579 ac_cache_corrupted
=: ;;
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2582 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2583 ac_cache_corrupted
=: ;;
2586 if test "x$ac_old_val" != "x$ac_new_val"; then
2587 # differences in whitespace do not lead to failure.
2588 ac_old_val_w
=`echo x $ac_old_val`
2589 ac_new_val_w
=`echo x $ac_new_val`
2590 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2592 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2593 ac_cache_corrupted
=:
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2596 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2597 eval $ac_var=\
$ac_old_val
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2600 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2602 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2605 # Pass precious variables to config.status.
2606 if test "$ac_new_set" = set; then
2608 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2609 *) ac_arg
=$ac_var=$ac_new_val ;;
2611 case " $ac_configure_args " in
2612 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2613 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2617 if $ac_cache_corrupted; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2622 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2624 ## -------------------- ##
2625 ## Main body of script. ##
2626 ## -------------------- ##
2629 ac_cpp
='$CPP $CPPFLAGS'
2630 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2639 ac_config_headers
="$ac_config_headers support-config.h:config.in"
2642 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2643 if test -f "$ac_dir/install-sh"; then
2645 ac_install_sh
="$ac_aux_dir/install-sh -c"
2647 elif test -f "$ac_dir/install.sh"; then
2649 ac_install_sh
="$ac_aux_dir/install.sh -c"
2651 elif test -f "$ac_dir/shtool"; then
2653 ac_install_sh
="$ac_aux_dir/shtool install -c"
2657 if test -z "$ac_aux_dir"; then
2658 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2661 # These three variables are undocumented and unsupported,
2662 # and are intended to be withdrawn in a future Autoconf release.
2663 # They can cause serious problems if a builder's source tree is in a directory
2664 # whose full name contains unusual characters.
2665 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2666 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2667 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2670 # Make sure we can run config.sub.
2671 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2672 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2675 $as_echo_n "checking build system type... " >&6; }
2676 if ${ac_cv_build+:} false
; then :
2677 $as_echo_n "(cached) " >&6
2679 ac_build_alias
=$build_alias
2680 test "x$ac_build_alias" = x
&&
2681 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2682 test "x$ac_build_alias" = x
&&
2683 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2684 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2685 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2689 $as_echo "$ac_cv_build" >&6; }
2690 case $ac_cv_build in
2692 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2695 ac_save_IFS
=$IFS; IFS
='-'
2701 # Remember, the first character of IFS is used to create $*,
2702 # except with old shells:
2705 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2709 $as_echo_n "checking host system type... " >&6; }
2710 if ${ac_cv_host+:} false
; then :
2711 $as_echo_n "(cached) " >&6
2713 if test "x$host_alias" = x
; then
2714 ac_cv_host
=$ac_cv_build
2716 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2717 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2722 $as_echo "$ac_cv_host" >&6; }
2725 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2728 ac_save_IFS
=$IFS; IFS
='-'
2734 # Remember, the first character of IFS is used to create $*,
2735 # except with old shells:
2738 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2742 $as_echo_n "checking target system type... " >&6; }
2743 if ${ac_cv_target+:} false
; then :
2744 $as_echo_n "(cached) " >&6
2746 if test "x$target_alias" = x
; then
2747 ac_cv_target
=$ac_cv_host
2749 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2750 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2755 $as_echo "$ac_cv_target" >&6; }
2756 case $ac_cv_target in
2758 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2760 target
=$ac_cv_target
2761 ac_save_IFS
=$IFS; IFS
='-'
2767 # Remember, the first character of IFS is used to create $*,
2768 # except with old shells:
2771 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2774 # The aliases save the names the user supplied, while $host etc.
2775 # will get canonicalized.
2776 test -n "$target_alias" &&
2777 test "$program_prefix$program_suffix$program_transform_name" = \
2779 program_prefix
=${target_alias}-
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2783 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2784 # Check whether --enable-maintainer-mode was given.
2785 if test "${enable_maintainer_mode+set}" = set; then :
2786 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2788 USE_MAINTAINER_MODE
=no
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2792 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2793 if test $USE_MAINTAINER_MODE = yes; then
2794 MAINTAINER_MODE_TRUE
=
2795 MAINTAINER_MODE_FALSE
='#'
2797 MAINTAINER_MODE_TRUE
='#'
2798 MAINTAINER_MODE_FALSE
=
2801 MAINT
=$MAINTAINER_MODE_TRUE
2805 for ac_dir
in ..
"$srcdir"/..
; do
2806 if test -f "$ac_dir/install-sh"; then
2808 ac_install_sh
="$ac_aux_dir/install-sh -c"
2810 elif test -f "$ac_dir/install.sh"; then
2812 ac_install_sh
="$ac_aux_dir/install.sh -c"
2814 elif test -f "$ac_dir/shtool"; then
2816 ac_install_sh
="$ac_aux_dir/shtool install -c"
2820 if test -z "$ac_aux_dir"; then
2821 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2824 # These three variables are undocumented and unsupported,
2825 # and are intended to be withdrawn in a future Autoconf release.
2826 # They can cause serious problems if a builder's source tree is in a directory
2827 # whose full name contains unusual characters.
2828 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2829 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2830 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2833 am__api_version
='1.15'
2835 # Find a good install program. We prefer a C program (faster),
2836 # so one script is as good as another. But avoid the broken or
2837 # incompatible versions:
2838 # SysV /etc/install, /usr/sbin/install
2839 # SunOS /usr/etc/install
2840 # IRIX /sbin/install
2842 # AmigaOS /C/install, which installs bootblocks on floppy discs
2843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2846 # OS/2's system install, which has a completely different semantic
2847 # ./install, which can be erroneously created by make from ./install.sh.
2848 # Reject install programs that cannot install multiple files.
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2850 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2851 if test -z "$INSTALL"; then
2852 if ${ac_cv_path_install+:} false
; then :
2853 $as_echo_n "(cached) " >&6
2855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir
=.
2860 # Account for people who put trailing slashes in PATH elements.
2861 case $as_dir/ in #((
2862 .
/ | .
// |
/[cC
]/* | \
2863 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2864 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2867 # OSF1 and SCO ODT 3.0 have their own names for install.
2868 # Don't use installbsd from OSF since it installs stuff as root
2870 for ac_prog
in ginstall scoinst
install; do
2871 for ac_exec_ext
in '' $ac_executable_extensions; do
2872 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2873 if test $ac_prog = install &&
2874 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2875 # AIX install. It has an incompatible calling convention.
2877 elif test $ac_prog = install &&
2878 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2879 # program-specific install script used by HP pwplus--don't use.
2882 rm -rf conftest.one conftest.two conftest.dir
2883 echo one
> conftest.one
2884 echo two
> conftest.two
2886 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2887 test -s conftest.one
&& test -s conftest.two
&&
2888 test -s conftest.dir
/conftest.one
&&
2889 test -s conftest.dir
/conftest.two
2891 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2904 rm -rf conftest.one conftest.two conftest.dir
2907 if test "${ac_cv_path_install+set}" = set; then
2908 INSTALL
=$ac_cv_path_install
2910 # As a last resort, use the slow shell script. Don't cache a
2911 # value for INSTALL within a source directory, because that will
2912 # break other packages using the cache if that directory is
2913 # removed, or if the value is a relative name.
2914 INSTALL
=$ac_install_sh
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2918 $as_echo "$INSTALL" >&6; }
2920 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2921 # It thinks the first close brace ends the variable substitution.
2922 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2924 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2926 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2929 $as_echo_n "checking whether build environment is sane... " >&6; }
2930 # Reject unsafe characters in $srcdir or the absolute working directory
2931 # name. Accept space and tab only in the latter.
2935 *[\\\"\
#\$\&\'\`$am_lf]*)
2936 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2939 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2940 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2943 # Do 'set' in a subshell so we don't clobber the current shell's
2944 # arguments. Must try -L first in case configure is actually a
2945 # symlink; some systems play weird games with the mod time of symlinks
2946 # (eg FreeBSD returns the mod time of the symlink's containing
2950 for am_try
in 1 2; do
2951 echo "timestamp, slept: $am_has_slept" > conftest.
file
2952 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2953 if test "$*" = "X"; then
2955 set X
`ls -t "$srcdir/configure" conftest.file`
2957 if test "$*" != "X $srcdir/configure conftest.file" \
2958 && test "$*" != "X conftest.file $srcdir/configure"; then
2960 # If neither matched, then we have a broken ls. This can happen
2961 # if, for instance, CONFIG_SHELL is bash and it inherits a
2962 # broken ls alias from the environment. This has actually
2963 # happened. Such a system could not be considered "sane".
2964 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2965 alias in your environment" "$LINENO" 5
2967 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2974 test "$2" = conftest.
file
2980 as_fn_error $?
"newly created file is older than distributed files!
2981 Check your system clock" "$LINENO" 5
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2984 $as_echo "yes" >&6; }
2985 # If we didn't sleep, we still need to ensure time stamps of config.status and
2986 # generated files are strictly newer.
2988 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2995 test "$program_prefix" != NONE
&&
2996 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2997 # Use a double $ so make ignores it.
2998 test "$program_suffix" != NONE
&&
2999 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3000 # Double any \ or $.
3001 # By default was `s,x,x', remove it if useless.
3002 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3003 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3005 # Expand $ac_aux_dir to an absolute path.
3006 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3008 if test x
"${MISSING+set}" != xset
; then
3011 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3013 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3016 # Use eval to expand $SHELL
3017 if eval "$MISSING --is-lightweight"; then
3018 am_missing_run
="$MISSING "
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3022 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3025 if test x
"${install_sh+set}" != xset
; then
3028 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3030 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3034 # Installed binaries are usually stripped using 'strip' when the user
3035 # run "make install-strip". However 'strip' might not be the right
3036 # tool to use in cross-compilation environments, therefore Automake
3037 # will honor the 'STRIP' environment variable to overrule this program.
3038 if test "$cross_compiling" != no
; then
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3041 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_STRIP+:} false
; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$STRIP"; then
3048 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir
=.
3055 for ac_exec_ext
in '' $ac_executable_extensions; do
3056 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 STRIP
=$ac_cv_prog_STRIP
3068 if test -n "$STRIP"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3070 $as_echo "$STRIP" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3078 if test -z "$ac_cv_prog_STRIP"; then
3080 # Extract the first word of "strip", so it can be a program name with args.
3081 set dummy strip
; ac_word
=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3085 $as_echo_n "(cached) " >&6
3087 if test -n "$ac_ct_STRIP"; then
3088 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir
=.
3095 for ac_exec_ext
in '' $ac_executable_extensions; do
3096 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_ac_ct_STRIP
="strip"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3108 if test -n "$ac_ct_STRIP"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3110 $as_echo "$ac_ct_STRIP" >&6; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3116 if test "x$ac_ct_STRIP" = x
; then
3119 case $cross_compiling:$ac_tool_warned in
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123 ac_tool_warned
=yes ;;
3128 STRIP
="$ac_cv_prog_STRIP"
3132 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3135 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3136 if test -z "$MKDIR_P"; then
3137 if ${ac_cv_path_mkdir+:} false
; then :
3138 $as_echo_n "(cached) " >&6
3140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3141 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3144 test -z "$as_dir" && as_dir
=.
3145 for ac_prog
in mkdir gmkdir
; do
3146 for ac_exec_ext
in '' $ac_executable_extensions; do
3147 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3148 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3149 'mkdir (GNU coreutils) '* | \
3150 'mkdir (coreutils) '* | \
3151 'mkdir (fileutils) '4.1*)
3152 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3162 test -d .
/--version && rmdir .
/--version
3163 if test "${ac_cv_path_mkdir+set}" = set; then
3164 MKDIR_P
="$ac_cv_path_mkdir -p"
3166 # As a last resort, use the slow shell script. Don't cache a
3167 # value for MKDIR_P within a source directory, because that will
3168 # break other packages using the cache if that directory is
3169 # removed, or if the value is a relative name.
3170 MKDIR_P
="$ac_install_sh -d"
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3174 $as_echo "$MKDIR_P" >&6; }
3176 for ac_prog
in gawk mawk nawk
awk
3178 # Extract the first word of "$ac_prog", so it can be a program name with args.
3179 set dummy
$ac_prog; ac_word
=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_AWK+:} false
; then :
3183 $as_echo_n "(cached) " >&6
3185 if test -n "$AWK"; then
3186 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir
=.
3193 for ac_exec_ext
in '' $ac_executable_extensions; do
3194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_AWK
="$ac_prog"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 if test -n "$AWK"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3208 $as_echo "$AWK" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3215 test -n "$AWK" && break
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3219 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3221 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3222 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3223 $as_echo_n "(cached) " >&6
3225 cat >conftest.
make <<\_ACEOF
3228 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3230 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3231 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3233 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3235 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3239 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 SET_MAKE
="MAKE=${MAKE-make}"
3249 rm -rf .tst
2>/dev
/null
3250 mkdir .tst
2>/dev
/null
3251 if test -d .tst
; then
3256 rmdir .tst
2>/dev
/null
3258 # Check whether --enable-silent-rules was given.
3259 if test "${enable_silent_rules+set}" = set; then :
3260 enableval
=$enable_silent_rules;
3263 case $enable_silent_rules in # (((
3264 yes) AM_DEFAULT_VERBOSITY
=0;;
3265 no
) AM_DEFAULT_VERBOSITY
=1;;
3266 *) AM_DEFAULT_VERBOSITY
=1;;
3268 am_make
=${MAKE-make}
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3270 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3271 if ${am_cv_make_support_nested_variables+:} false
; then :
3272 $as_echo_n "(cached) " >&6
3274 if $as_echo 'TRUE=$(BAR$(V))
3280 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3281 am_cv_make_support_nested_variables
=yes
3283 am_cv_make_support_nested_variables
=no
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3287 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3288 if test $am_cv_make_support_nested_variables = yes; then
3290 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3292 AM_V
=$AM_DEFAULT_VERBOSITY
3293 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3297 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3298 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3299 # is not polluted with repeated "-I."
3300 am__isrc
=' -I$(srcdir)'
3301 # test to see if srcdir already configured
3302 if test -f $srcdir/config.status
; then
3303 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3307 # test whether we have cygpath
3308 if test -z "$CYGPATH_W"; then
3309 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3310 CYGPATH_W
='cygpath -w'
3317 # Define the identity of the package.
3318 PACKAGE
='gdbsupport'
3322 cat >>confdefs.h
<<_ACEOF
3323 #define PACKAGE "$PACKAGE"
3327 cat >>confdefs.h
<<_ACEOF
3328 #define VERSION "$VERSION"
3331 # Some tools Automake needs.
3333 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3336 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3339 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3342 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3345 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3347 # For better backward compatibility. To be removed once Automake 1.9.x
3348 # dies out for good. For more background, see:
3349 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3350 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3351 mkdir_p
='$(MKDIR_P)'
3353 # We need awk for the "check" target (and possibly the TAP driver). The
3354 # system "awk" is bad on some platforms.
3355 # Always define AMTAR for backward compatibility. Yes, it's still used
3356 # in the wild :-( We should find a proper way to deprecate it ...
3360 # We'll loop over all known methods to create a tar archive until one works.
3361 _am_tools
='gnutar pax cpio none'
3363 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3370 # POSIX will say in a future version that running "rm -f" with no argument
3371 # is OK; and we want to be able to make that assumption in our Makefile
3372 # recipes. So use an aggressive probe to check that the usage we want is
3373 # actually supported "in the wild" to an acceptable degree.
3374 # See automake bug#10828.
3375 # To make any issue more visible, cause the running configure to be aborted
3376 # by default if the 'rm' program in use doesn't match our expectations; the
3377 # user can still override this though.
3378 if rm -f && rm -fr && rm -rf; then : OK
; else
3382 Your 'rm' program seems unable to run without file operands specified
3383 on the command line, even when the '-f' option is present. This is contrary
3384 to the behaviour of most rm programs out there, and not conforming with
3385 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3387 Please tell bug-automake@gnu.org about your system, including the value
3388 of your $PATH and any error possibly output before this message. This
3389 can help us improve future automake versions.
3392 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3393 echo 'Configuration will proceed anyway, since you have set the' >&2
3394 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3398 Aborting the configuration process, to ensure you take notice of the issue.
3400 You can download and install GNU coreutils to get an 'rm' implementation
3401 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3403 If you want to complete the configuration process using your problematic
3404 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3405 to "yes", and re-run configure.
3408 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3412 # Check whether --enable-silent-rules was given.
3413 if test "${enable_silent_rules+set}" = set; then :
3414 enableval
=$enable_silent_rules;
3417 case $enable_silent_rules in # (((
3418 yes) AM_DEFAULT_VERBOSITY
=0;;
3419 no
) AM_DEFAULT_VERBOSITY
=1;;
3420 *) AM_DEFAULT_VERBOSITY
=0;;
3422 am_make
=${MAKE-make}
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3424 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3425 if ${am_cv_make_support_nested_variables+:} false
; then :
3426 $as_echo_n "(cached) " >&6
3428 if $as_echo 'TRUE=$(BAR$(V))
3434 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3435 am_cv_make_support_nested_variables
=yes
3437 am_cv_make_support_nested_variables
=no
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3441 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3442 if test $am_cv_make_support_nested_variables = yes; then
3444 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3446 AM_V
=$AM_DEFAULT_VERBOSITY
3447 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3455 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_CC+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3496 if test -z "$ac_cv_prog_CC"; then
3498 # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$ac_ct_CC"; then
3506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_ac_ct_CC="gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3534 if test "x$ac_ct_CC" = x; then
3537 case $cross_compiling:$ac_tool_warned in
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3549 if test -z "$CC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}cc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_prog_CC+:} false; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_CC="${ac_tool_prefix}cc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3590 if test -z "$CC"; then
3591 # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_prog_CC+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610 ac_prog_rejected=yes
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy $ac_cv_prog_CC
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog in cl.exe
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if ${ac_cv_prog_CC+:} false; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$CC" && break
3690 if test -z "$CC"; then
3692 for ac_prog in cl.exe
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_ac_ct_CC="$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$ac_ct_CC" && break
3734 if test "x$ac_ct_CC" = x; then
3737 case $cross_compiling:$ac_tool_warned in
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3752 as_fn_error $? "no acceptable C compiler found in \$PATH
3753 See \`config.log
' for more details" "$LINENO" 5; }
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3759 for ac_option in --version -v -V -qversion; do
3760 { { ac_try="$ac_compiler $ac_option >&5"
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 if test -s conftest.err; then
3771 ... rest of stderr output deleted ...
3772 10q
' conftest.err >conftest.er1
3773 cat conftest.er1 >&5
3775 rm -f conftest.er1 conftest.err
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3797 $as_echo_n "checking whether the C compiler works... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804 for ac_file in $ac_files
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3813 if { { ac_try="$ac_link_default"
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link_default") 2>&5
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3829 for ac_file
in $ac_files ''
3831 test -f "$ac_file" ||
continue
3833 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3836 # We found the default executable, but exeext='' is most
3840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3842 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an `-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3854 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3859 if test -z "$ac_file"; then :
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.
$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error
77 "C compiler cannot create executables
3868 See \`config.log' for more details" "$LINENO" 5; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871 $as_echo "yes" >&6; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3874 $as_echo_n "checking for C compiler default output file name... " >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3876 $as_echo "$ac_file" >&6; }
3877 ac_exeext
=$ac_cv_exeext
3879 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3880 ac_clean_files
=$ac_clean_files_save
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3882 $as_echo_n "checking for suffix of executables... " >&6; }
3883 if { { ac_try
="$ac_link"
3885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_link") 2>&5
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; then :
3894 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3895 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3896 # work properly (i.e., refer to `conftest.exe'), while it won't with
3898 for ac_file
in conftest.exe conftest conftest.
*; do
3899 test -f "$ac_file" ||
continue
3901 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3902 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3911 See \`config.log' for more details" "$LINENO" 5; }
3913 rm -f conftest conftest
$ac_cv_exeext
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3915 $as_echo "$ac_cv_exeext" >&6; }
3917 rm -f conftest.
$ac_ext
3918 EXEEXT
=$ac_cv_exeext
3920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3926 FILE *f = fopen ("conftest.out", "w");
3927 return ferror (f) || fclose (f) != 0;
3933 ac_clean_files
="$ac_clean_files conftest.out"
3934 # Check that the compiler produces executables we can run. If not, either
3935 # the compiler is broken, or we cross compile.
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3937 $as_echo_n "checking whether we are cross compiling... " >&6; }
3938 if test "$cross_compiling" != yes; then
3939 { { ac_try
="$ac_link"
3941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_link") 2>&5
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }
3950 if { ac_try='./conftest$ac_cv_exeext'
3951 { { case "(($ac_try" in
3952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3953 *) ac_try_echo
=$ac_try;;
3955 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_try") 2>&5
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }; }; then
3963 if test "$cross_compiling" = maybe
; then
3966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3968 as_fn_error $?
"cannot run C compiled programs.
3969 If you meant to cross compile, use \`--host'.
3970 See \`config.log' for more details" "$LINENO" 5; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3975 $as_echo "$cross_compiling" >&6; }
3977 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3978 ac_clean_files
=$ac_clean_files_save
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3980 $as_echo_n "checking for suffix of object files... " >&6; }
3981 if ${ac_cv_objext+:} false
; then :
3982 $as_echo_n "(cached) " >&6
3984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3995 rm -f conftest.o conftest.obj
3996 if { { ac_try
="$ac_compile"
3998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 $as_echo "$ac_try_echo"; } >&5
4003 (eval "$ac_compile") 2>&5
4005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4006 test $ac_status = 0; }; then :
4007 for ac_file in conftest.o conftest.obj conftest.*; do
4008 test -f "$ac_file" || continue;
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4011 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4016 $as_echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4022 See \
`config.log' for more details" "$LINENO" 5; }
4024 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4027 $as_echo "$ac_cv_objext" >&6; }
4028 OBJEXT=$ac_cv_objext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4031 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4032 if ${ac_cv_c_compiler_gnu+:} false; then :
4033 $as_echo_n "(cached) " >&6
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4049 if ac_fn_c_try_compile "$LINENO"; then :
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4059 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4060 if test $ac_compiler_gnu = yes; then
4065 ac_test_CFLAGS=${CFLAGS+set}
4066 ac_save_CFLAGS=$CFLAGS
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4068 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4069 if ${ac_cv_prog_cc_g+:} false; then :
4070 $as_echo_n "(cached) " >&6
4072 ac_save_c_werror_flag=$ac_c_werror_flag
4073 ac_c_werror_flag=yes
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4087 if ac_fn_c_try_compile "$LINENO"; then :
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_c_werror_flag=$ac_save_c_werror_flag
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4118 if ac_fn_c_try_compile "$LINENO"; then :
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_c_werror_flag=$ac_save_c_werror_flag
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4129 $as_echo "$ac_cv_prog_cc_g" >&6; }
4130 if test "$ac_test_CFLAGS" = set; then
4131 CFLAGS=$ac_save_CFLAGS
4132 elif test $ac_cv_prog_cc_g = yes; then
4133 if test "$GCC" = yes; then
4139 if test "$GCC" = yes; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4146 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4147 if ${ac_cv_prog_cc_c89+:} false; then :
4148 $as_echo_n "(cached) " >&6
4150 ac_cv_prog_cc_c89=no
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4157 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4158 struct buf { int x; };
4159 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4160 static char *e (p, i)
4166 static char *f (char * (*g) (char **, int), char **p, ...)
4171 s = g (p, va_arg (v,int));
4176 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4177 function prototypes and stuff, but not '\xHH' hex character constants.
4178 These don't provoke an error unfortunately, instead are silently treated
4179 as 'x'. The following induces an error, until -std is added to get
4180 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4181 array size at least. It's necessary to write '\x00'==0 to get something
4182 that's true only with -std. */
4183 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4185 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4186 inside strings and character constants. */
4188 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4190 int test (int i, double x);
4191 struct s1 {int (*f) (int a);};
4192 struct s2 {int (*f) (double a);};
4193 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4199 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4204 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4205 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4207 CC="$ac_save_CC $ac_arg"
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209 ac_cv_prog_cc_c89=$ac_arg
4211 rm -f core conftest.err conftest.$ac_objext
4212 test "x$ac_cv_prog_cc_c89" != "xno" && break
4214 rm -f conftest.$ac_ext
4219 case "x$ac_cv_prog_cc_c89" in
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4222 $as_echo "none needed" >&6; } ;;
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4225 $as_echo "unsupported" >&6; } ;;
4227 CC="$CC $ac_cv_prog_cc_c89"
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4229 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4231 if test "x$ac_cv_prog_cc_c89" != xno; then :
4236 ac_cpp='$CPP $CPPFLAGS'
4237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4247 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4248 if ${am_cv_prog_cc_c_o+:} false; then :
4249 $as_echo_n "(cached) " >&6
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4262 # Make sure it works both with $CC and with simple cc.
4263 # Following AC_PROG_CC_C_O, we do the test twice because some
4264 # compilers refuse to overwrite an existing .o file with -o,
4265 # though they will create one.
4266 am_cv_prog_cc_c_o=yes
4268 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4269 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } \
4273 && test -f conftest2.$ac_objext; then
4276 am_cv_prog_cc_c_o=no
4280 rm -f core conftest*
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4284 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4285 if test "$am_cv_prog_cc_c_o" != yes; then
4286 # Losing compiler, so override with the script.
4287 # FIXME: It is wrong to rewrite CC.
4288 # But if we don't then we get into trouble of one sort or another.
4289 # A longer-term fix would be to have automake use am__CC in this case,
4290 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4291 CC="$am_aux_dir/compile $CC"
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 DEPDIR="${am__leading_dot}deps"
4301 ac_config_commands="$ac_config_commands depfiles"
4304 am_make=${MAKE-make}
4305 cat > confinc << 'END'
4307 @echo this is the am__doit target
4310 # If we don't find an include directive, just comment out the code.
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4312 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4316 # First try GNU make style include.
4317 echo "include confinc" > confmf
4318 # Ignore all kinds of additional output from 'make'.
4319 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4320 *the\ am__doit\ target*)
4326 # Now try BSD make style include.
4327 if test "$am__include" = "#"; then
4328 echo '.include "confinc"' > confmf
4329 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4330 *the\ am__doit\ target*)
4331 am__include=.include
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4340 $as_echo "$_am_result" >&6; }
4341 rm -f confinc confmf
4343 # Check whether --enable-dependency-tracking was given.
4344 if test "${enable_dependency_tracking+set}" = set; then :
4345 enableval=$enable_dependency_tracking;
4348 if test "x$enable_dependency_tracking" != xno; then
4349 am_depcomp="$ac_aux_dir/depcomp"
4353 if test "x$enable_dependency_tracking" != xno; then
4363 depcc="$CC" am_compiler_list=
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4366 $as_echo_n "checking dependency style of $depcc... " >&6; }
4367 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4368 $as_echo_n "(cached) " >&6
4370 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4371 # We make a subdir and do the tests there. Otherwise we can end up
4372 # making bogus files that we don't know about and never remove. For
4373 # instance it was reported that on HP-UX the gcc test will end up
4374 # making a dummy file named 'D' -- because '-MD' means "put the output
4378 # Copy depcomp to subdir because otherwise we won't find it if we're
4379 # using a relative directory.
4380 cp "$am_depcomp" conftest.dir
4382 # We will build objects and dependencies in a subdirectory because
4383 # it helps to detect inapplicable dependency modes. For instance
4384 # both Tru64's cc and ICC support -MD to output dependencies as a
4385 # side effect of compilation, but ICC will put the dependencies in
4386 # the current directory while Tru64 will put them in the object
4390 am_cv_CC_dependencies_compiler_type=none
4391 if test "$am_compiler_list" = ""; then
4392 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4395 case " $depcc " in #(
4396 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4399 for depmode in $am_compiler_list; do
4400 # Setup a source with many dependencies, because some compilers
4401 # like to wrap large dependency lists on column 80 (with \), and
4402 # we should not choose a depcomp mode which is confused by this.
4404 # We need to recreate these files for each test, as the compiler may
4405 # overwrite some of them when testing with obscure command lines.
4406 # This happens at least with the AIX C compiler.
4408 for i in 1 2 3 4 5 6; do
4409 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4410 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4411 # Solaris 10 /bin/sh.
4412 echo '/* dummy */' > sub/conftst$i.h
4414 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4416 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4417 # mode. It turns out that the SunPro C++ compiler does not properly
4418 # handle '-M -o', and we need to detect this. Also, some Intel
4419 # versions had trouble with output in subdirs.
4420 am__obj=sub/conftest.${OBJEXT-o}
4421 am__minus_obj="-o $am__obj"
4424 # This depmode causes a compiler race in universal mode.
4425 test "$am__universal" = false || continue
4428 # After this tag, mechanisms are not by side-effect, so they'll
4429 # only be used when explicitly requested.
4430 if test "x$enable_dependency_tracking" = xyes; then
4436 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4437 # This compiler won't grok '-c -o', but also, the minuso test has
4438 # not run yet. These depmodes are late enough in the game, and
4439 # so weak that their functioning should not be impacted.
4440 am__obj=conftest.${OBJEXT-o}
4445 if depmode=$depmode \
4446 source=sub/conftest.c object=$am__obj \
4447 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4448 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4449 >/dev/null 2>conftest.err &&
4450 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4451 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4452 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4453 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4454 # icc doesn't choke on unknown options, it will just issue warnings
4455 # or remarks (even with -Werror). So we grep stderr for any message
4456 # that says an option was ignored or not supported.
4457 # When given -MP, icc 7.0 and 7.1 complain thusly:
4458 # icc: Command line warning: ignoring option '-M'; no argument required
4459 # The diagnosis changed in icc 8.0:
4460 # icc: Command line remark: option '-MP' not supported
4461 if (grep 'ignoring option' conftest.err ||
4462 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4463 am_cv_CC_dependencies_compiler_type=$depmode
4472 am_cv_CC_dependencies_compiler_type=none
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4477 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4478 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4481 test "x$enable_dependency_tracking" != xno \
4482 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4484 am__fastdepCC_FALSE='#'
4486 am__fastdepCC_TRUE='#'
4487 am__fastdepCC_FALSE=
4492 ac_cpp='$CXXCPP $CPPFLAGS'
4493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4496 if test -z "$CXX"; then
4497 if test -n "$CCC"; then
4500 if test -n "$ac_tool_prefix"; then
4501 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if ${ac_cv_prog_CXX+:} false; then :
4508 $as_echo_n "(cached) " >&6
4510 if test -n "$CXX"; then
4511 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 if test -n "$CXX"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4533 $as_echo "$CXX" >&6; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4540 test -n "$CXX" && break
4543 if test -z "$CXX"; then
4545 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4547 # Extract the first word of "$ac_prog", so it can be a program name with args.
4548 set dummy $ac_prog; ac_word=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4552 $as_echo_n "(cached) " >&6
4554 if test -n "$ac_ct_CXX"; then
4555 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_ac_ct_CXX="$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4575 if test -n "$ac_ct_CXX"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4577 $as_echo "$ac_ct_CXX" >&6; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4584 test -n "$ac_ct_CXX" && break
4587 if test "x$ac_ct_CXX" = x; then
4590 case $cross_compiling:$ac_tool_warned in
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4594 ac_tool_warned=yes ;;
4602 # Provide some information about the compiler.
4603 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4606 for ac_option in --version -v -V -qversion; do
4607 { { ac_try="$ac_compiler $ac_option >&5"
4609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4610 *) ac_try_echo
=$ac_try;;
4612 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4616 if test -s conftest.err
; then
4618 ... rest of stderr output deleted ...
4619 10q' conftest.err
>conftest.er1
4620 cat conftest.er1
>&5
4622 rm -f conftest.er1 conftest.err
4623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4628 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4629 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4630 $as_echo_n "(cached) " >&6
4632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4646 if ac_fn_cxx_try_compile
"$LINENO"; then :
4651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4652 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4656 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4657 if test $ac_compiler_gnu = yes; then
4662 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4663 ac_save_CXXFLAGS
=$CXXFLAGS
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4665 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4666 if ${ac_cv_prog_cxx_g+:} false
; then :
4667 $as_echo_n "(cached) " >&6
4669 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4670 ac_cxx_werror_flag
=yes
4673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4684 if ac_fn_cxx_try_compile
"$LINENO"; then :
4685 ac_cv_prog_cxx_g
=yes
4688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4699 if ac_fn_cxx_try_compile
"$LINENO"; then :
4702 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4715 if ac_fn_cxx_try_compile
"$LINENO"; then :
4716 ac_cv_prog_cxx_g
=yes
4718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4723 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4726 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4727 if test "$ac_test_CXXFLAGS" = set; then
4728 CXXFLAGS
=$ac_save_CXXFLAGS
4729 elif test $ac_cv_prog_cxx_g = yes; then
4730 if test "$GXX" = yes; then
4736 if test "$GXX" = yes; then
4743 ac_cpp
='$CPP $CPPFLAGS'
4744 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4748 depcc
="$CXX" am_compiler_list
=
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4751 $as_echo_n "checking dependency style of $depcc... " >&6; }
4752 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4753 $as_echo_n "(cached) " >&6
4755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4756 # We make a subdir and do the tests there. Otherwise we can end up
4757 # making bogus files that we don't know about and never remove. For
4758 # instance it was reported that on HP-UX the gcc test will end up
4759 # making a dummy file named 'D' -- because '-MD' means "put the output
4763 # Copy depcomp to subdir because otherwise we won't find it if we're
4764 # using a relative directory.
4765 cp "$am_depcomp" conftest.dir
4767 # We will build objects and dependencies in a subdirectory because
4768 # it helps to detect inapplicable dependency modes. For instance
4769 # both Tru64's cc and ICC support -MD to output dependencies as a
4770 # side effect of compilation, but ICC will put the dependencies in
4771 # the current directory while Tru64 will put them in the object
4775 am_cv_CXX_dependencies_compiler_type
=none
4776 if test "$am_compiler_list" = ""; then
4777 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4780 case " $depcc " in #(
4781 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4784 for depmode
in $am_compiler_list; do
4785 # Setup a source with many dependencies, because some compilers
4786 # like to wrap large dependency lists on column 80 (with \), and
4787 # we should not choose a depcomp mode which is confused by this.
4789 # We need to recreate these files for each test, as the compiler may
4790 # overwrite some of them when testing with obscure command lines.
4791 # This happens at least with the AIX C compiler.
4793 for i
in 1 2 3 4 5 6; do
4794 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4795 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4796 # Solaris 10 /bin/sh.
4797 echo '/* dummy */' > sub
/conftst
$i.h
4799 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4801 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4802 # mode. It turns out that the SunPro C++ compiler does not properly
4803 # handle '-M -o', and we need to detect this. Also, some Intel
4804 # versions had trouble with output in subdirs.
4805 am__obj
=sub
/conftest.
${OBJEXT-o}
4806 am__minus_obj
="-o $am__obj"
4809 # This depmode causes a compiler race in universal mode.
4810 test "$am__universal" = false ||
continue
4813 # After this tag, mechanisms are not by side-effect, so they'll
4814 # only be used when explicitly requested.
4815 if test "x$enable_dependency_tracking" = xyes
; then
4821 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4822 # This compiler won't grok '-c -o', but also, the minuso test has
4823 # not run yet. These depmodes are late enough in the game, and
4824 # so weak that their functioning should not be impacted.
4825 am__obj
=conftest.
${OBJEXT-o}
4830 if depmode
=$depmode \
4831 source=sub
/conftest.c object
=$am__obj \
4832 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4833 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4834 >/dev
/null
2>conftest.err
&&
4835 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4836 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4837 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4838 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4839 # icc doesn't choke on unknown options, it will just issue warnings
4840 # or remarks (even with -Werror). So we grep stderr for any message
4841 # that says an option was ignored or not supported.
4842 # When given -MP, icc 7.0 and 7.1 complain thusly:
4843 # icc: Command line warning: ignoring option '-M'; no argument required
4844 # The diagnosis changed in icc 8.0:
4845 # icc: Command line remark: option '-MP' not supported
4846 if (grep 'ignoring option' conftest.err ||
4847 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4848 am_cv_CXX_dependencies_compiler_type
=$depmode
4857 am_cv_CXX_dependencies_compiler_type
=none
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4862 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4863 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4866 test "x$enable_dependency_tracking" != xno \
4867 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4868 am__fastdepCXX_TRUE
=
4869 am__fastdepCXX_FALSE
='#'
4871 am__fastdepCXX_TRUE
='#'
4872 am__fastdepCXX_FALSE
=
4876 if test -n "$ac_tool_prefix"; then
4877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4878 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if ${ac_cv_prog_RANLIB+:} false
; then :
4882 $as_echo_n "(cached) " >&6
4884 if test -n "$RANLIB"; then
4885 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir
=.
4892 for ac_exec_ext
in '' $ac_executable_extensions; do
4893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 RANLIB
=$ac_cv_prog_RANLIB
4905 if test -n "$RANLIB"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4907 $as_echo "$RANLIB" >&6; }
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4915 if test -z "$ac_cv_prog_RANLIB"; then
4916 ac_ct_RANLIB
=$RANLIB
4917 # Extract the first word of "ranlib", so it can be a program name with args.
4918 set dummy ranlib
; ac_word
=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4922 $as_echo_n "(cached) " >&6
4924 if test -n "$ac_ct_RANLIB"; then
4925 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir
=.
4932 for ac_exec_ext
in '' $ac_executable_extensions; do
4933 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4945 if test -n "$ac_ct_RANLIB"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4947 $as_echo "$ac_ct_RANLIB" >&6; }
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4953 if test "x$ac_ct_RANLIB" = x
; then
4956 case $cross_compiling:$ac_tool_warned in
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4960 ac_tool_warned
=yes ;;
4962 RANLIB
=$ac_ct_RANLIB
4965 RANLIB
="$ac_cv_prog_RANLIB"
4971 ac_cpp
='$CPP $CPPFLAGS'
4972 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4977 # On Suns, sometimes $CPP names a directory.
4978 if test -n "$CPP" && test -d "$CPP"; then
4981 if test -z "$CPP"; then
4982 if ${ac_cv_prog_CPP+:} false
; then :
4983 $as_echo_n "(cached) " >&6
4985 # Double quotes because CPP needs to be expanded
4986 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4989 for ac_c_preproc_warn_flag
in '' yes
4991 # Use a header file that comes with gcc, so configuring glibc
4992 # with a fresh cross-compiler works.
4993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4994 # <limits.h> exists even on freestanding compilers.
4995 # On the NeXT, cc -E runs the code through the compiler's parser,
4996 # not just through cpp. "Syntax error" is here to catch this case.
4997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5000 # include <limits.h>
5002 # include <assert.h>
5006 if ac_fn_c_try_cpp
"$LINENO"; then :
5009 # Broken: fails on valid input.
5012 rm -f conftest.err conftest.i conftest.
$ac_ext
5014 # OK, works on sane cases. Now check whether nonexistent headers
5015 # can be detected and how.
5016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 #include <ac_nonexistent.h>
5020 if ac_fn_c_try_cpp
"$LINENO"; then :
5021 # Broken: success on invalid input.
5024 # Passes both tests.
5028 rm -f conftest.err conftest.i conftest.
$ac_ext
5031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032 rm -f conftest.i conftest.err conftest.
$ac_ext
5033 if $ac_preproc_ok; then :
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5046 $as_echo "$CPP" >&6; }
5048 for ac_c_preproc_warn_flag
in '' yes
5050 # Use a header file that comes with gcc, so configuring glibc
5051 # with a fresh cross-compiler works.
5052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053 # <limits.h> exists even on freestanding compilers.
5054 # On the NeXT, cc -E runs the code through the compiler's parser,
5055 # not just through cpp. "Syntax error" is here to catch this case.
5056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5059 # include <limits.h>
5061 # include <assert.h>
5065 if ac_fn_c_try_cpp
"$LINENO"; then :
5068 # Broken: fails on valid input.
5071 rm -f conftest.err conftest.i conftest.
$ac_ext
5073 # OK, works on sane cases. Now check whether nonexistent headers
5074 # can be detected and how.
5075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <ac_nonexistent.h>
5079 if ac_fn_c_try_cpp
"$LINENO"; then :
5080 # Broken: success on invalid input.
5083 # Passes both tests.
5087 rm -f conftest.err conftest.i conftest.
$ac_ext
5090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5091 rm -f conftest.i conftest.err conftest.
$ac_ext
5092 if $ac_preproc_ok; then :
5095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5097 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5098 See \`config.log' for more details" "$LINENO" 5; }
5102 ac_cpp
='$CPP $CPPFLAGS'
5103 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5109 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5110 if ${ac_cv_path_GREP+:} false
; then :
5111 $as_echo_n "(cached) " >&6
5113 if test -z "$GREP"; then
5114 ac_path_GREP_found
=false
5115 # Loop through the user's path and test for each of PROGNAME-LIST
5116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5117 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5120 test -z "$as_dir" && as_dir
=.
5121 for ac_prog
in grep ggrep
; do
5122 for ac_exec_ext
in '' $ac_executable_extensions; do
5123 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5124 as_fn_executable_p
"$ac_path_GREP" ||
continue
5125 # Check for GNU ac_path_GREP and select it if it is found.
5126 # Check for GNU $ac_path_GREP
5127 case `"$ac_path_GREP" --version 2>&1` in
5129 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5132 $as_echo_n 0123456789 >"conftest.in"
5135 cat "conftest.in" "conftest.in" >"conftest.tmp"
5136 mv "conftest.tmp" "conftest.in"
5137 cp "conftest.in" "conftest.nl"
5138 $as_echo 'GREP' >> "conftest.nl"
5139 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5140 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5141 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5142 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5143 # Best one so far, save it but keep looking for a better one
5144 ac_cv_path_GREP
="$ac_path_GREP"
5145 ac_path_GREP_max
=$ac_count
5147 # 10*(2^10) chars as input seems more than enough
5148 test $ac_count -gt 10 && break
5150 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5153 $ac_path_GREP_found && break 3
5158 if test -z "$ac_cv_path_GREP"; then
5159 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162 ac_cv_path_GREP
=$GREP
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5167 $as_echo "$ac_cv_path_GREP" >&6; }
5168 GREP
="$ac_cv_path_GREP"
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5172 $as_echo_n "checking for egrep... " >&6; }
5173 if ${ac_cv_path_EGREP+:} false
; then :
5174 $as_echo_n "(cached) " >&6
5176 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5177 then ac_cv_path_EGREP
="$GREP -E"
5179 if test -z "$EGREP"; then
5180 ac_path_EGREP_found
=false
5181 # Loop through the user's path and test for each of PROGNAME-LIST
5182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5183 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5186 test -z "$as_dir" && as_dir
=.
5187 for ac_prog
in egrep; do
5188 for ac_exec_ext
in '' $ac_executable_extensions; do
5189 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5190 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5191 # Check for GNU ac_path_EGREP and select it if it is found.
5192 # Check for GNU $ac_path_EGREP
5193 case `"$ac_path_EGREP" --version 2>&1` in
5195 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5198 $as_echo_n 0123456789 >"conftest.in"
5201 cat "conftest.in" "conftest.in" >"conftest.tmp"
5202 mv "conftest.tmp" "conftest.in"
5203 cp "conftest.in" "conftest.nl"
5204 $as_echo 'EGREP' >> "conftest.nl"
5205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5206 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5207 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5209 # Best one so far, save it but keep looking for a better one
5210 ac_cv_path_EGREP
="$ac_path_EGREP"
5211 ac_path_EGREP_max
=$ac_count
5213 # 10*(2^10) chars as input seems more than enough
5214 test $ac_count -gt 10 && break
5216 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5219 $ac_path_EGREP_found && break 3
5224 if test -z "$ac_cv_path_EGREP"; then
5225 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5228 ac_cv_path_EGREP
=$EGREP
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5234 $as_echo "$ac_cv_path_EGREP" >&6; }
5235 EGREP
="$ac_cv_path_EGREP"
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5239 $as_echo_n "checking for ANSI C header files... " >&6; }
5240 if ${ac_cv_header_stdc+:} false
; then :
5241 $as_echo_n "(cached) " >&6
5243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5258 if ac_fn_c_try_compile
"$LINENO"; then :
5259 ac_cv_header_stdc
=yes
5261 ac_cv_header_stdc
=no
5263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5265 if test $ac_cv_header_stdc = yes; then
5266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5273 $EGREP "memchr" >/dev
/null
2>&1; then :
5276 ac_cv_header_stdc
=no
5282 if test $ac_cv_header_stdc = yes; then
5283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290 $EGREP "free" >/dev
/null
2>&1; then :
5293 ac_cv_header_stdc
=no
5299 if test $ac_cv_header_stdc = yes; then
5300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5301 if test "$cross_compiling" = yes; then :
5304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5308 #if ((' ' & 0x0FF) == 0x020)
5309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5312 # define ISLOWER(c) \
5313 (('a' <= (c) && (c) <= 'i') \
5314 || ('j' <= (c) && (c) <= 'r') \
5315 || ('s' <= (c) && (c) <= 'z'))
5316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5324 for (i = 0; i < 256; i++)
5325 if (XOR (islower (i), ISLOWER (i))
5326 || toupper (i) != TOUPPER (i))
5331 if ac_fn_c_try_run
"$LINENO"; then :
5334 ac_cv_header_stdc
=no
5336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5337 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5343 $as_echo "$ac_cv_header_stdc" >&6; }
5344 if test $ac_cv_header_stdc = yes; then
5346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5351 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5352 inttypes.h stdint.h unistd.h
5354 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5355 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5357 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5358 cat >>confdefs.h
<<_ACEOF
5359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5369 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5376 if test "$MINIX" = yes; then
5378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5384 $as_echo "#define _MINIX 1" >>confdefs.h
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5391 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5392 $as_echo_n "(cached) " >&6
5394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5397 # define __EXTENSIONS__ 1
5398 $ac_includes_default
5407 if ac_fn_c_try_compile
"$LINENO"; then :
5408 ac_cv_safe_to_define___extensions__
=yes
5410 ac_cv_safe_to_define___extensions__
=no
5412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5416 test $ac_cv_safe_to_define___extensions__ = yes &&
5417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5421 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5423 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5425 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5429 # The tests for host and target for $enable_largefile require
5434 # As the $enable_largefile decision depends on --enable-plugins we must set it
5435 # even in directories otherwise not depending on the $plugins option.
5439 for ac_header
in dlfcn.h
5441 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5443 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5444 cat >>confdefs.h
<<_ACEOF
5445 #define HAVE_DLFCN_H 1
5452 for ac_header
in windows.h
5454 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5456 if test "x$ac_cv_header_windows_h" = xyes
; then :
5457 cat >>confdefs.h
<<_ACEOF
5458 #define HAVE_WINDOWS_H 1
5466 # Check whether --enable-plugins was given.
5467 if test "${enable_plugins+set}" = set; then :
5468 enableval
=$enable_plugins; case "${enableval}" in
5471 if test "$maybe_plugins" != "yes" ; then
5472 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5476 plugins
=$maybe_plugins
5480 if test "$plugins" = "yes"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5482 $as_echo_n "checking for library containing dlsym... " >&6; }
5483 if ${ac_cv_search_dlsym+:} false
; then :
5484 $as_echo_n "(cached) " >&6
5486 ac_func_search_save_LIBS
=$LIBS
5487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5490 /* Override any GCC internal prototype to avoid an error.
5491 Use char because int might match the return type of a GCC
5492 builtin and then its argument prototype would still apply. */
5505 for ac_lib
in '' dl
; do
5506 if test -z "$ac_lib"; then
5507 ac_res
="none required"
5510 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5512 if ac_fn_c_try_link
"$LINENO"; then :
5513 ac_cv_search_dlsym
=$ac_res
5515 rm -f core conftest.err conftest.
$ac_objext \
5517 if ${ac_cv_search_dlsym+:} false
; then :
5521 if ${ac_cv_search_dlsym+:} false
; then :
5524 ac_cv_search_dlsym
=no
5527 LIBS
=$ac_func_search_save_LIBS
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5530 $as_echo "$ac_cv_search_dlsym" >&6; }
5531 ac_res
=$ac_cv_search_dlsym
5532 if test "$ac_res" != no
; then :
5533 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5541 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
5542 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5543 # are mutually exclusive; and without procfs support, the bfd/ elf module
5544 # cannot provide certain routines such as elfcore_write_prpsinfo
5545 # or elfcore_write_prstatus. So unless the user explicitly requested
5546 # large-file support through the --enable-largefile switch, disable
5547 # large-file support in favor of procfs support.
5548 test "${target}" = "${host}" -a "x$plugins" = xno \
5549 && : ${enable_largefile="no"}
5553 # Check whether --enable-largefile was given.
5554 if test "${enable_largefile+set}" = set; then :
5555 enableval
=$enable_largefile;
5558 if test "$enable_largefile" != no
; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5561 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5562 if ${ac_cv_sys_largefile_CC+:} false
; then :
5563 $as_echo_n "(cached) " >&6
5565 ac_cv_sys_largefile_CC
=no
5566 if test "$GCC" != yes; then
5569 # IRIX 6.2 and later do not support large files by default,
5570 # so use the C compiler's -n32 option if that helps.
5571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #include <sys/types.h>
5574 /* Check that off_t can represent 2**63 - 1 correctly.
5575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5576 since some C++ compilers masquerading as C compilers
5577 incorrectly reject 9223372036854775807. */
5578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5580 && LARGE_OFF_T % 2147483647 == 1)
5590 if ac_fn_c_try_compile
"$LINENO"; then :
5593 rm -f core conftest.err conftest.
$ac_objext
5595 if ac_fn_c_try_compile
"$LINENO"; then :
5596 ac_cv_sys_largefile_CC
=' -n32'; break
5598 rm -f core conftest.err conftest.
$ac_objext
5602 rm -f conftest.
$ac_ext
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5606 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5607 if test "$ac_cv_sys_largefile_CC" != no
; then
5608 CC
=$CC$ac_cv_sys_largefile_CC
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5612 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5613 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5614 $as_echo_n "(cached) " >&6
5617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <sys/types.h>
5620 /* Check that off_t can represent 2**63 - 1 correctly.
5621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5622 since some C++ compilers masquerading as C compilers
5623 incorrectly reject 9223372036854775807. */
5624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5626 && LARGE_OFF_T % 2147483647 == 1)
5636 if ac_fn_c_try_compile
"$LINENO"; then :
5637 ac_cv_sys_file_offset_bits
=no
; break
5639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 #define _FILE_OFFSET_BITS 64
5643 #include <sys/types.h>
5644 /* Check that off_t can represent 2**63 - 1 correctly.
5645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5646 since some C++ compilers masquerading as C compilers
5647 incorrectly reject 9223372036854775807. */
5648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5650 && LARGE_OFF_T % 2147483647 == 1)
5660 if ac_fn_c_try_compile
"$LINENO"; then :
5661 ac_cv_sys_file_offset_bits
=64; break
5663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5664 ac_cv_sys_file_offset_bits
=unknown
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5669 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5670 case $ac_cv_sys_file_offset_bits in #(
5673 cat >>confdefs.h
<<_ACEOF
5674 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5679 if test $ac_cv_sys_file_offset_bits = unknown
; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5681 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5682 if ${ac_cv_sys_large_files+:} false
; then :
5683 $as_echo_n "(cached) " >&6
5686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 #include <sys/types.h>
5689 /* Check that off_t can represent 2**63 - 1 correctly.
5690 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5691 since some C++ compilers masquerading as C compilers
5692 incorrectly reject 9223372036854775807. */
5693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5695 && LARGE_OFF_T % 2147483647 == 1)
5705 if ac_fn_c_try_compile
"$LINENO"; then :
5706 ac_cv_sys_large_files
=no
; break
5708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 #define _LARGE_FILES 1
5712 #include <sys/types.h>
5713 /* Check that off_t can represent 2**63 - 1 correctly.
5714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5715 since some C++ compilers masquerading as C compilers
5716 incorrectly reject 9223372036854775807. */
5717 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5719 && LARGE_OFF_T % 2147483647 == 1)
5729 if ac_fn_c_try_compile
"$LINENO"; then :
5730 ac_cv_sys_large_files
=1; break
5732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5733 ac_cv_sys_large_files
=unknown
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5738 $as_echo "$ac_cv_sys_large_files" >&6; }
5739 case $ac_cv_sys_large_files in #(
5742 cat >>confdefs.h
<<_ACEOF
5743 #define _LARGE_FILES $ac_cv_sys_large_files
5755 ac_cpp
='$CPP $CPPFLAGS'
5756 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5759 if test -n "$ac_tool_prefix"; then
5760 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5761 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_CC+:} false
; then :
5765 $as_echo_n "(cached) " >&6
5767 if test -n "$CC"; then
5768 ac_cv_prog_CC
="$CC" # Let the user override the test.
5770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir
=.
5775 for ac_exec_ext
in '' $ac_executable_extensions; do
5776 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 if test -n "$CC"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5790 $as_echo "$CC" >&6; }
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5798 if test -z "$ac_cv_prog_CC"; then
5800 # Extract the first word of "gcc", so it can be a program name with args.
5801 set dummy gcc
; ac_word
=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5805 $as_echo_n "(cached) " >&6
5807 if test -n "$ac_ct_CC"; then
5808 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5814 test -z "$as_dir" && as_dir
=.
5815 for ac_exec_ext
in '' $ac_executable_extensions; do
5816 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_ac_ct_CC
="gcc"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5828 if test -n "$ac_ct_CC"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5830 $as_echo "$ac_ct_CC" >&6; }
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5836 if test "x$ac_ct_CC" = x
; then
5839 case $cross_compiling:$ac_tool_warned in
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843 ac_tool_warned
=yes ;;
5851 if test -z "$CC"; then
5852 if test -n "$ac_tool_prefix"; then
5853 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5854 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_prog_CC+:} false
; then :
5858 $as_echo_n "(cached) " >&6
5860 if test -n "$CC"; then
5861 ac_cv_prog_CC
="$CC" # Let the user override the test.
5863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5867 test -z "$as_dir" && as_dir
=.
5868 for ac_exec_ext
in '' $ac_executable_extensions; do
5869 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 if test -n "$CC"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5883 $as_echo "$CC" >&6; }
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5892 if test -z "$CC"; then
5893 # Extract the first word of "cc", so it can be a program name with args.
5894 set dummy cc
; ac_word
=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_prog_CC+:} false
; then :
5898 $as_echo_n "(cached) " >&6
5900 if test -n "$CC"; then
5901 ac_cv_prog_CC
="$CC" # Let the user override the test.
5904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5908 test -z "$as_dir" && as_dir
=.
5909 for ac_exec_ext
in '' $ac_executable_extensions; do
5910 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5911 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5912 ac_prog_rejected
=yes
5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 if test $ac_prog_rejected = yes; then
5924 # We found a bogon in the path, so make sure we never use it.
5925 set dummy
$ac_cv_prog_CC
5927 if test $# != 0; then
5928 # We chose a different compiler from the bogus one.
5929 # However, it has the same basename, so the bogon will be chosen
5930 # first if we set CC to just the basename; use the full file name.
5932 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5938 if test -n "$CC"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5940 $as_echo "$CC" >&6; }
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5948 if test -z "$CC"; then
5949 if test -n "$ac_tool_prefix"; then
5950 for ac_prog
in cl.exe
5952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5953 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_CC+:} false
; then :
5957 $as_echo_n "(cached) " >&6
5959 if test -n "$CC"; then
5960 ac_cv_prog_CC
="$CC" # Let the user override the test.
5962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir
=.
5967 for ac_exec_ext
in '' $ac_executable_extensions; do
5968 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 if test -n "$CC"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5982 $as_echo "$CC" >&6; }
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5989 test -n "$CC" && break
5992 if test -z "$CC"; then
5994 for ac_prog
in cl.exe
5996 # Extract the first word of "$ac_prog", so it can be a program name with args.
5997 set dummy
$ac_prog; ac_word
=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6001 $as_echo_n "(cached) " >&6
6003 if test -n "$ac_ct_CC"; then
6004 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6010 test -z "$as_dir" && as_dir
=.
6011 for ac_exec_ext
in '' $ac_executable_extensions; do
6012 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6013 ac_cv_prog_ac_ct_CC
="$ac_prog"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6024 if test -n "$ac_ct_CC"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6026 $as_echo "$ac_ct_CC" >&6; }
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6033 test -n "$ac_ct_CC" && break
6036 if test "x$ac_ct_CC" = x
; then
6039 case $cross_compiling:$ac_tool_warned in
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned
=yes ;;
6052 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6054 as_fn_error $?
"no acceptable C compiler found in \$PATH
6055 See \`config.log' for more details" "$LINENO" 5; }
6057 # Provide some information about the compiler.
6058 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6061 for ac_option
in --version -v -V -qversion; do
6062 { { ac_try
="$ac_compiler $ac_option >&5"
6064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6068 $as_echo "$ac_try_echo"; } >&5
6069 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6071 if test -s conftest.err; then
6073 ... rest of stderr output deleted ...
6074 10q' conftest.err >conftest.er1
6075 cat conftest.er1 >&5
6077 rm -f conftest.er1 conftest.err
6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079 test $ac_status = 0; }
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6083 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6084 if ${ac_cv_c_compiler_gnu+:} false; then :
6085 $as_echo_n "(cached) " >&6
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6101 if ac_fn_c_try_compile "$LINENO"; then :
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6112 if test $ac_compiler_gnu = yes; then
6117 ac_test_CFLAGS=${CFLAGS+set}
6118 ac_save_CFLAGS=$CFLAGS
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6121 if ${ac_cv_prog_cc_g+:} false; then :
6122 $as_echo_n "(cached) " >&6
6124 ac_save_c_werror_flag=$ac_c_werror_flag
6125 ac_c_werror_flag=yes
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6139 if ac_fn_c_try_compile "$LINENO"; then :
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6154 if ac_fn_c_try_compile "$LINENO"; then :
6157 ac_c_werror_flag=$ac_save_c_werror_flag
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6170 if ac_fn_c_try_compile "$LINENO"; then :
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 ac_c_werror_flag=$ac_save_c_werror_flag
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6181 $as_echo "$ac_cv_prog_cc_g" >&6; }
6182 if test "$ac_test_CFLAGS" = set; then
6183 CFLAGS=$ac_save_CFLAGS
6184 elif test $ac_cv_prog_cc_g = yes; then
6185 if test "$GCC" = yes; then
6191 if test "$GCC" = yes; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6199 if ${ac_cv_prog_cc_c89+:} false; then :
6200 $as_echo_n "(cached) " >&6
6202 ac_cv_prog_cc_c89=no
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6209 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6210 struct buf { int x; };
6211 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6212 static char *e (p, i)
6218 static char *f (char * (*g) (char **, int), char **p, ...)
6223 s = g (p, va_arg (v,int));
6228 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6229 function prototypes and stuff, but not '\xHH' hex character constants.
6230 These don't provoke an error unfortunately, instead are silently treated
6231 as 'x'. The following induces an error, until -std is added to get
6232 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6233 array size at least. It's necessary to write '\x00'==0 to get something
6234 that's true only with -std. */
6235 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6237 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6238 inside strings and character constants. */
6240 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6242 int test (int i, double x);
6243 struct s1 {int (*f) (int a);};
6244 struct s2 {int (*f) (double a);};
6245 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6251 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6256 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6257 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6259 CC="$ac_save_CC $ac_arg"
6260 if ac_fn_c_try_compile "$LINENO"; then :
6261 ac_cv_prog_cc_c89=$ac_arg
6263 rm -f core conftest.err conftest.$ac_objext
6264 test "x$ac_cv_prog_cc_c89" != "xno" && break
6266 rm -f conftest.$ac_ext
6271 case "x$ac_cv_prog_cc_c89" in
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6274 $as_echo "none needed" >&6; } ;;
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6277 $as_echo "unsupported" >&6; } ;;
6279 CC="$CC $ac_cv_prog_cc_c89"
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6281 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6283 if test "x$ac_cv_prog_cc_c89" != xno; then :
6288 ac_cpp='$CPP $CPPFLAGS'
6289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6294 ac_cpp='$CPP $CPPFLAGS'
6295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6299 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6300 if ${am_cv_prog_cc_c_o+:} false; then :
6301 $as_echo_n "(cached) " >&6
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6314 # Make sure it works both with $CC and with simple cc.
6315 # Following AC_PROG_CC_C_O, we do the test twice because some
6316 # compilers refuse to overwrite an existing .o file with -o,
6317 # though they will create one.
6318 am_cv_prog_cc_c_o=yes
6320 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6321 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } \
6325 && test -f conftest2.$ac_objext; then
6328 am_cv_prog_cc_c_o=no
6332 rm -f core conftest*
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6336 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6337 if test "$am_cv_prog_cc_c_o" != yes; then
6338 # Losing compiler, so override with the script.
6339 # FIXME: It is wrong to rewrite CC.
6340 # But if we don't then we get into trouble of one sort or another.
6341 # A longer-term fix would be to have automake use am__CC in this case,
6342 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6343 CC="$am_aux_dir/compile $CC"
6346 ac_cpp='$CPP $CPPFLAGS'
6347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6352 depcc="$CC" am_compiler_list=
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6355 $as_echo_n "checking dependency style of $depcc... " >&6; }
6356 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6357 $as_echo_n "(cached) " >&6
6359 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6360 # We make a subdir and do the tests there. Otherwise we can end up
6361 # making bogus files that we don't know about and never remove. For
6362 # instance it was reported that on HP-UX the gcc test will end up
6363 # making a dummy file named 'D' -- because '-MD' means "put the output
6367 # Copy depcomp to subdir because otherwise we won't find it if we're
6368 # using a relative directory.
6369 cp "$am_depcomp" conftest.dir
6371 # We will build objects and dependencies in a subdirectory because
6372 # it helps to detect inapplicable dependency modes. For instance
6373 # both Tru64's cc and ICC support -MD to output dependencies as a
6374 # side effect of compilation, but ICC will put the dependencies in
6375 # the current directory while Tru64 will put them in the object
6379 am_cv_CC_dependencies_compiler_type=none
6380 if test "$am_compiler_list" = ""; then
6381 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6384 case " $depcc " in #(
6385 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6388 for depmode in $am_compiler_list; do
6389 # Setup a source with many dependencies, because some compilers
6390 # like to wrap large dependency lists on column 80 (with \), and
6391 # we should not choose a depcomp mode which is confused by this.
6393 # We need to recreate these files for each test, as the compiler may
6394 # overwrite some of them when testing with obscure command lines.
6395 # This happens at least with the AIX C compiler.
6397 for i in 1 2 3 4 5 6; do
6398 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6399 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6400 # Solaris 10 /bin/sh.
6401 echo '/* dummy */' > sub/conftst$i.h
6403 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6405 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6406 # mode. It turns out that the SunPro C++ compiler does not properly
6407 # handle '-M -o', and we need to detect this. Also, some Intel
6408 # versions had trouble with output in subdirs.
6409 am__obj=sub/conftest.${OBJEXT-o}
6410 am__minus_obj="-o $am__obj"
6413 # This depmode causes a compiler race in universal mode.
6414 test "$am__universal" = false || continue
6417 # After this tag, mechanisms are not by side-effect, so they'll
6418 # only be used when explicitly requested.
6419 if test "x$enable_dependency_tracking" = xyes; then
6425 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6426 # This compiler won't grok '-c -o', but also, the minuso test has
6427 # not run yet. These depmodes are late enough in the game, and
6428 # so weak that their functioning should not be impacted.
6429 am__obj=conftest.${OBJEXT-o}
6434 if depmode=$depmode \
6435 source=sub/conftest.c object=$am__obj \
6436 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6437 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6438 >/dev/null 2>conftest.err &&
6439 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6440 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6441 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6442 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6443 # icc doesn't choke on unknown options, it will just issue warnings
6444 # or remarks (even with -Werror). So we grep stderr for any message
6445 # that says an option was ignored or not supported.
6446 # When given -MP, icc 7.0 and 7.1 complain thusly:
6447 # icc: Command line warning: ignoring option '-M'; no argument required
6448 # The diagnosis changed in icc 8.0:
6449 # icc: Command line remark: option '-MP' not supported
6450 if (grep 'ignoring option' conftest.err ||
6451 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6452 am_cv_CC_dependencies_compiler_type=$depmode
6461 am_cv_CC_dependencies_compiler_type=none
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6466 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6467 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6470 test "x$enable_dependency_tracking" != xno \
6471 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6473 am__fastdepCC_FALSE='#'
6475 am__fastdepCC_TRUE='#'
6476 am__fastdepCC_FALSE=
6480 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6483 # We require a C++11 compiler. Check if one is available, and if
6484 # necessary, set CXX_DIALECT to some -std=xxx switch.
6486 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6488 ac_cpp='$CXXCPP $CPPFLAGS'
6489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6495 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6496 if ${ax_cv_cxx_compile_cxx11+:} false; then :
6497 $as_echo_n "(cached) " >&6
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6503 // If the compiler admits that it is not ready for C++11, why torture it?
6504 // Hopefully, this will speed up the test.
6508 #error "This is not a C++ compiler"
6510 #elif __cplusplus < 201103L
6512 #error "This is not a C++11 compiler"
6519 namespace test_static_assert
6522 template <typename T>
6525 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6530 namespace test_final_override
6538 struct Derived : public Base
6540 virtual void f() override {}
6545 namespace test_double_right_angle_brackets
6548 template < typename T >
6551 typedef check<void> single_type;
6552 typedef check<check<void>> double_type;
6553 typedef check<check<check<void>>> triple_type;
6554 typedef check<check<check<check<void>>>> quadruple_type;
6558 namespace test_decltype
6571 namespace test_type_deduction
6574 template < typename T1, typename T2 >
6577 static const bool value = false;
6580 template < typename T >
6581 struct is_same<T, T>
6583 static const bool value = true;
6586 template < typename T1, typename T2 >
6588 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6594 test(const int c, volatile int v)
6596 static_assert(is_same<int, decltype(0)>::value == true, "");
6597 static_assert(is_same<int, decltype(c)>::value == false, "");
6598 static_assert(is_same<int, decltype(v)>::value == false, "");
6601 auto sumi = ac + av + 'x';
6602 auto sumf = ac + av + 1.0;
6603 static_assert(is_same<int, decltype(ac)>::value == true, "");
6604 static_assert(is_same<int, decltype(av)>::value == true, "");
6605 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6606 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6607 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6608 return (sumf > 0.0) ? sumi : add(c, v);
6613 namespace test_noexcept
6616 int f() { return 0; }
6617 int g() noexcept { return 0; }
6619 static_assert(noexcept(f()) == false, "");
6620 static_assert(noexcept(g()) == true, "");
6624 namespace test_constexpr
6627 template < typename CharT >
6628 unsigned long constexpr
6629 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6631 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6634 template < typename CharT >
6635 unsigned long constexpr
6636 strlen_c(const CharT *const s) noexcept
6638 return strlen_c_r(s, 0UL);
6641 static_assert(strlen_c("") == 0UL, "");
6642 static_assert(strlen_c("1") == 1UL, "");
6643 static_assert(strlen_c("example") == 7UL, "");
6644 static_assert(strlen_c("another\0example") == 7UL, "");
6648 namespace test_rvalue_references
6654 static constexpr int value = N;
6657 answer<1> f(int&) { return answer<1>(); }
6658 answer<2> f(const int&) { return answer<2>(); }
6659 answer<3> f(int&&) { return answer<3>(); }
6666 static_assert(decltype(f(i))::value == 1, "");
6667 static_assert(decltype(f(c))::value == 2, "");
6668 static_assert(decltype(f(0))::value == 3, "");
6673 namespace test_uniform_initialization
6678 static const int zero {};
6679 static const int one {1};
6682 static_assert(test::zero == 0, "");
6683 static_assert(test::one == 1, "");
6687 namespace test_lambdas
6693 auto lambda1 = [](){};
6694 auto lambda2 = lambda1;
6702 auto a = [](int i, int j){ return i + j; }(1, 2);
6703 auto b = []() -> int { return '0'; }();
6704 auto c = [=](){ return a + b; }();
6705 auto d = [&](){ return c; }();
6706 auto e = [a, &b](int x) mutable {
6707 const auto identity = [](int y){ return y; };
6708 for (auto i = 0; i < a; ++i)
6710 return x + identity(a + b);
6712 return a + b + c + d + e;
6718 const auto nullary = [](){ return 0; };
6719 const auto unary = [](int x){ return x; };
6720 using nullary_t = decltype(nullary);
6721 using unary_t = decltype(unary);
6722 const auto higher1st = [](nullary_t f){ return f(); };
6723 const auto higher2nd = [unary](nullary_t f1){
6724 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6726 return higher1st(nullary) + higher2nd(nullary)(unary);
6731 namespace test_variadic_templates
6737 template <int N0, int... N1toN>
6738 struct sum<N0, N1toN...>
6740 static constexpr auto value = N0 + sum<N1toN...>::value;
6746 static constexpr auto value = 0;
6749 static_assert(sum<>::value == 0, "");
6750 static_assert(sum<1>::value == 1, "");
6751 static_assert(sum<23>::value == 23, "");
6752 static_assert(sum<1, 2>::value == 3, "");
6753 static_assert(sum<5, 5, 11>::value == 21, "");
6754 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6758 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6759 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6761 namespace test_template_alias_sfinae
6766 template<typename T>
6767 using member = typename T::member_type;
6769 template<typename T>
6772 template<typename T>
6773 void func(member<T>*) {}
6777 void test() { func<foo>(0); }
6781 } // namespace cxx11
6783 #endif // __cplusplus >= 201103L
6788 if ac_fn_cxx_try_compile "$LINENO"; then :
6789 ax_cv_cxx_compile_cxx11=yes
6791 ax_cv_cxx_compile_cxx11=no
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6796 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6797 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6801 if test x$ac_success = xno; then
6802 for alternative in ${ax_cxx_compile_alternatives}; do
6803 switch="-std=gnu++${alternative}"
6804 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6806 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6807 if eval \${$cachevar+:} false; then :
6808 $as_echo_n "(cached) " >&6
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6816 // If the compiler admits that it is not ready for C++11, why torture it?
6817 // Hopefully, this will speed up the test.
6821 #error "This is not a C++ compiler"
6823 #elif __cplusplus < 201103L
6825 #error "This is not a C++11 compiler"
6832 namespace test_static_assert
6835 template <typename T>
6838 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6843 namespace test_final_override
6851 struct Derived : public Base
6853 virtual void f() override {}
6858 namespace test_double_right_angle_brackets
6861 template < typename T >
6864 typedef check<void> single_type;
6865 typedef check<check<void>> double_type;
6866 typedef check<check<check<void>>> triple_type;
6867 typedef check<check<check<check<void>>>> quadruple_type;
6871 namespace test_decltype
6884 namespace test_type_deduction
6887 template < typename T1, typename T2 >
6890 static const bool value = false;
6893 template < typename T >
6894 struct is_same<T, T>
6896 static const bool value = true;
6899 template < typename T1, typename T2 >
6901 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6907 test(const int c, volatile int v)
6909 static_assert(is_same<int, decltype(0)>::value == true, "");
6910 static_assert(is_same<int, decltype(c)>::value == false, "");
6911 static_assert(is_same<int, decltype(v)>::value == false, "");
6914 auto sumi = ac + av + 'x';
6915 auto sumf = ac + av + 1.0;
6916 static_assert(is_same<int, decltype(ac)>::value == true, "");
6917 static_assert(is_same<int, decltype(av)>::value == true, "");
6918 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6919 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6920 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6921 return (sumf > 0.0) ? sumi : add(c, v);
6926 namespace test_noexcept
6929 int f() { return 0; }
6930 int g() noexcept { return 0; }
6932 static_assert(noexcept(f()) == false, "");
6933 static_assert(noexcept(g()) == true, "");
6937 namespace test_constexpr
6940 template < typename CharT >
6941 unsigned long constexpr
6942 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6944 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6947 template < typename CharT >
6948 unsigned long constexpr
6949 strlen_c(const CharT *const s) noexcept
6951 return strlen_c_r(s, 0UL);
6954 static_assert(strlen_c("") == 0UL, "");
6955 static_assert(strlen_c("1") == 1UL, "");
6956 static_assert(strlen_c("example") == 7UL, "");
6957 static_assert(strlen_c("another\0example") == 7UL, "");
6961 namespace test_rvalue_references
6967 static constexpr int value = N;
6970 answer<1> f(int&) { return answer<1>(); }
6971 answer<2> f(const int&) { return answer<2>(); }
6972 answer<3> f(int&&) { return answer<3>(); }
6979 static_assert(decltype(f(i))::value == 1, "");
6980 static_assert(decltype(f(c))::value == 2, "");
6981 static_assert(decltype(f(0))::value == 3, "");
6986 namespace test_uniform_initialization
6991 static const int zero {};
6992 static const int one {1};
6995 static_assert(test::zero == 0, "");
6996 static_assert(test::one == 1, "");
7000 namespace test_lambdas
7006 auto lambda1 = [](){};
7007 auto lambda2 = lambda1;
7015 auto a = [](int i, int j){ return i + j; }(1, 2);
7016 auto b = []() -> int { return '0'; }();
7017 auto c = [=](){ return a + b; }();
7018 auto d = [&](){ return c; }();
7019 auto e = [a, &b](int x) mutable {
7020 const auto identity = [](int y){ return y; };
7021 for (auto i = 0; i < a; ++i)
7023 return x + identity(a + b);
7025 return a + b + c + d + e;
7031 const auto nullary = [](){ return 0; };
7032 const auto unary = [](int x){ return x; };
7033 using nullary_t = decltype(nullary);
7034 using unary_t = decltype(unary);
7035 const auto higher1st = [](nullary_t f){ return f(); };
7036 const auto higher2nd = [unary](nullary_t f1){
7037 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7039 return higher1st(nullary) + higher2nd(nullary)(unary);
7044 namespace test_variadic_templates
7050 template <int N0, int... N1toN>
7051 struct sum<N0, N1toN...>
7053 static constexpr auto value = N0 + sum<N1toN...>::value;
7059 static constexpr auto value = 0;
7062 static_assert(sum<>::value == 0, "");
7063 static_assert(sum<1>::value == 1, "");
7064 static_assert(sum<23>::value == 23, "");
7065 static_assert(sum<1, 2>::value == 3, "");
7066 static_assert(sum<5, 5, 11>::value == 21, "");
7067 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7071 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7072 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7074 namespace test_template_alias_sfinae
7079 template<typename T>
7080 using member = typename T::member_type;
7082 template<typename T>
7085 template<typename T>
7086 void func(member<T>*) {}
7090 void test() { func<foo>(0); }
7094 } // namespace cxx11
7096 #endif // __cplusplus >= 201103L
7101 if ac_fn_cxx_try_compile "$LINENO"; then :
7106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7109 eval ac_res=\$$cachevar
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7111 $as_echo "$ac_res" >&6; }
7112 if eval test x\$$cachevar = xyes; then
7113 CXX_DIALECT="$switch"
7120 if test x$ac_success = xno; then
7121 for alternative in ${ax_cxx_compile_alternatives}; do
7122 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7123 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7125 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7126 if eval \${$cachevar+:} false; then :
7127 $as_echo_n "(cached) " >&6
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7135 // If the compiler admits that it is not ready for C++11, why torture it?
7136 // Hopefully, this will speed up the test.
7140 #error "This is not a C++ compiler"
7142 #elif __cplusplus < 201103L
7144 #error "This is not a C++11 compiler"
7151 namespace test_static_assert
7154 template <typename T>
7157 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7162 namespace test_final_override
7170 struct Derived : public Base
7172 virtual void f() override {}
7177 namespace test_double_right_angle_brackets
7180 template < typename T >
7183 typedef check<void> single_type;
7184 typedef check<check<void>> double_type;
7185 typedef check<check<check<void>>> triple_type;
7186 typedef check<check<check<check<void>>>> quadruple_type;
7190 namespace test_decltype
7203 namespace test_type_deduction
7206 template < typename T1, typename T2 >
7209 static const bool value = false;
7212 template < typename T >
7213 struct is_same<T, T>
7215 static const bool value = true;
7218 template < typename T1, typename T2 >
7220 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7226 test(const int c, volatile int v)
7228 static_assert(is_same<int, decltype(0)>::value == true, "");
7229 static_assert(is_same<int, decltype(c)>::value == false, "");
7230 static_assert(is_same<int, decltype(v)>::value == false, "");
7233 auto sumi = ac + av + 'x';
7234 auto sumf = ac + av + 1.0;
7235 static_assert(is_same<int, decltype(ac)>::value == true, "");
7236 static_assert(is_same<int, decltype(av)>::value == true, "");
7237 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7238 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7239 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7240 return (sumf > 0.0) ? sumi : add(c, v);
7245 namespace test_noexcept
7248 int f() { return 0; }
7249 int g() noexcept { return 0; }
7251 static_assert(noexcept(f()) == false, "");
7252 static_assert(noexcept(g()) == true, "");
7256 namespace test_constexpr
7259 template < typename CharT >
7260 unsigned long constexpr
7261 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7263 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7266 template < typename CharT >
7267 unsigned long constexpr
7268 strlen_c(const CharT *const s) noexcept
7270 return strlen_c_r(s, 0UL);
7273 static_assert(strlen_c("") == 0UL, "");
7274 static_assert(strlen_c("1") == 1UL, "");
7275 static_assert(strlen_c("example") == 7UL, "");
7276 static_assert(strlen_c("another\0example") == 7UL, "");
7280 namespace test_rvalue_references
7286 static constexpr int value = N;
7289 answer<1> f(int&) { return answer<1>(); }
7290 answer<2> f(const int&) { return answer<2>(); }
7291 answer<3> f(int&&) { return answer<3>(); }
7298 static_assert(decltype(f(i))::value == 1, "");
7299 static_assert(decltype(f(c))::value == 2, "");
7300 static_assert(decltype(f(0))::value == 3, "");
7305 namespace test_uniform_initialization
7310 static const int zero {};
7311 static const int one {1};
7314 static_assert(test::zero == 0, "");
7315 static_assert(test::one == 1, "");
7319 namespace test_lambdas
7325 auto lambda1 = [](){};
7326 auto lambda2 = lambda1;
7334 auto a = [](int i, int j){ return i + j; }(1, 2);
7335 auto b = []() -> int { return '0'; }();
7336 auto c = [=](){ return a + b; }();
7337 auto d = [&](){ return c; }();
7338 auto e = [a, &b](int x) mutable {
7339 const auto identity = [](int y){ return y; };
7340 for (auto i = 0; i < a; ++i)
7342 return x + identity(a + b);
7344 return a + b + c + d + e;
7350 const auto nullary = [](){ return 0; };
7351 const auto unary = [](int x){ return x; };
7352 using nullary_t = decltype(nullary);
7353 using unary_t = decltype(unary);
7354 const auto higher1st = [](nullary_t f){ return f(); };
7355 const auto higher2nd = [unary](nullary_t f1){
7356 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7358 return higher1st(nullary) + higher2nd(nullary)(unary);
7363 namespace test_variadic_templates
7369 template <int N0, int... N1toN>
7370 struct sum<N0, N1toN...>
7372 static constexpr auto value = N0 + sum<N1toN...>::value;
7378 static constexpr auto value = 0;
7381 static_assert(sum<>::value == 0, "");
7382 static_assert(sum<1>::value == 1, "");
7383 static_assert(sum<23>::value == 23, "");
7384 static_assert(sum<1, 2>::value == 3, "");
7385 static_assert(sum<5, 5, 11>::value == 21, "");
7386 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7390 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7391 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7393 namespace test_template_alias_sfinae
7398 template<typename T>
7399 using member = typename T::member_type;
7401 template<typename T>
7404 template<typename T>
7405 void func(member<T>*) {}
7409 void test() { func<foo>(0); }
7413 } // namespace cxx11
7415 #endif // __cplusplus >= 201103L
7420 if ac_fn_cxx_try_compile "$LINENO"; then :
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428 eval ac_res=\$$cachevar
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7430 $as_echo "$ac_res" >&6; }
7431 if eval test x\$$cachevar = xyes; then
7432 CXX_DIALECT="$switch"
7437 if test x$ac_success = xyes; then
7443 ac_cpp='$CPP $CPPFLAGS'
7444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7448 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7449 if test x$ac_success = xno; then
7450 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7453 if test x$ac_success = xno; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7456 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7460 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
7467 # If we haven't got the data from the intl directory,
7468 # assume NLS is disabled.
7477 if test -f ../intl/config.intl; then
7478 . ../intl/config.intl
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7481 $as_echo_n "checking whether NLS is requested... " >&6; }
7482 if test x"$USE_NLS" != xyes; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7487 $as_echo "yes" >&6; }
7489 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7493 $as_echo_n "checking for catalogs to be installed... " >&6; }
7494 # Look for .po and .gmo files in the source directory.
7497 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7498 # If there aren't any .gmo files the shell will give us the
7499 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7501 case "$cat" in *\**)
7504 # The quadruple backslash is collapsed to a double backslash
7505 # by the backticks, then collapsed again by the double quotes,
7506 # leaving us with one backslash in the sed expression (right
7507 # before the dot that mustn't act as a wildcard).
7508 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7509 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
7510 # The user is allowed to set LINGUAS to a list of languages to
7511 # install catalogs for. If it's empty that means "all of them."
7512 if test "x$LINGUAS" = x; then
7513 CATALOGS="$CATALOGS $cat"
7514 XLINGUAS="$XLINGUAS $lang"
7516 case "$LINGUAS" in *$lang*)
7517 CATALOGS="$CATALOGS $cat"
7518 XLINGUAS="$XLINGUAS $lang"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7525 $as_echo "$LINGUAS" >&6; }
7539 # Check for presence and size of long long.
7540 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7541 if test "x$ac_cv_type_long_long" = xyes; then :
7543 cat >>confdefs.h <<_ACEOF
7544 #define HAVE_LONG_LONG 1
7547 # The cast to long int works around a bug in the HP C Compiler
7548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7549 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7550 # This bug is HP SR number 8606223364.
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7552 $as_echo_n "checking size of long long... " >&6; }
7553 if ${ac_cv_sizeof_long_long+:} false; then :
7554 $as_echo_n "(cached) " >&6
7556 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7559 if test "$ac_cv_type_long_long" = yes; then
7560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7561 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
7562 as_fn_error 77 "cannot compute sizeof (long long)
7563 See \`config.log
' for more details" "$LINENO" 5; }
7565 ac_cv_sizeof_long_long=0
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7571 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7575 cat >>confdefs.h <<_ACEOF
7576 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7583 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7584 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7585 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7591 cat >>confdefs.h <<_ACEOF
7592 #define HAVE_DECL_BASENAME $ac_have_decl
7594 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7595 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7601 cat >>confdefs.h <<_ACEOF
7602 #define HAVE_DECL_FFS $ac_have_decl
7604 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7605 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7611 cat >>confdefs.h <<_ACEOF
7612 #define HAVE_DECL_ASPRINTF $ac_have_decl
7614 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7615 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7621 cat >>confdefs.h <<_ACEOF
7622 #define HAVE_DECL_VASPRINTF $ac_have_decl
7624 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7625 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7631 cat >>confdefs.h <<_ACEOF
7632 #define HAVE_DECL_SNPRINTF $ac_have_decl
7634 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7635 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7641 cat >>confdefs.h <<_ACEOF
7642 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7645 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7646 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7652 cat >>confdefs.h <<_ACEOF
7653 #define HAVE_DECL_STRTOL $ac_have_decl
7655 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7656 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7662 cat >>confdefs.h <<_ACEOF
7663 #define HAVE_DECL_STRTOUL $ac_have_decl
7665 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7666 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_DECL_STRTOLL $ac_have_decl
7675 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7676 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7682 cat >>confdefs.h <<_ACEOF
7683 #define HAVE_DECL_STRTOULL $ac_have_decl
7686 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7687 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7693 cat >>confdefs.h <<_ACEOF
7694 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7698 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7699 if test "x$ac_cv_type_size_t" = xyes; then :
7703 cat >>confdefs.h <<_ACEOF
7704 #define size_t unsigned int
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7710 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7711 if ${ac_cv_path_SED+:} false; then :
7712 $as_echo_n "(cached) " >&6
7714 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7715 for ac_i in 1 2 3 4 5 6 7; do
7716 ac_script="$ac_script$as_nl$ac_script"
7718 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7719 { ac_script=; unset ac_script;}
7720 if test -z "$SED"; then
7721 ac_path_SED_found=false
7722 # Loop through the user's path and
test for each of PROGNAME-LIST
7723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir
=.
7728 for ac_prog
in sed gsed
; do
7729 for ac_exec_ext
in '' $ac_executable_extensions; do
7730 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
7731 as_fn_executable_p
"$ac_path_SED" ||
continue
7732 # Check for GNU ac_path_SED and select it if it is found.
7733 # Check for GNU $ac_path_SED
7734 case `"$ac_path_SED" --version 2>&1` in
7736 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
7739 $as_echo_n 0123456789 >"conftest.in"
7742 cat "conftest.in" "conftest.in" >"conftest.tmp"
7743 mv "conftest.tmp" "conftest.in"
7744 cp "conftest.in" "conftest.nl"
7745 $as_echo '' >> "conftest.nl"
7746 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7747 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7748 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
7749 if test $ac_count -gt ${ac_path_SED_max-0}; then
7750 # Best one so far, save it but keep looking for a better one
7751 ac_cv_path_SED
="$ac_path_SED"
7752 ac_path_SED_max
=$ac_count
7754 # 10*(2^10) chars as input seems more than enough
7755 test $ac_count -gt 10 && break
7757 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7760 $ac_path_SED_found && break 3
7765 if test -z "$ac_cv_path_SED"; then
7766 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7774 $as_echo "$ac_cv_path_SED" >&6; }
7775 SED
="$ac_cv_path_SED"
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7780 $as_echo_n "checking for ANSI C header files... " >&6; }
7781 if ${ac_cv_header_stdc+:} false
; then :
7782 $as_echo_n "(cached) " >&6
7784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7799 if ac_fn_c_try_compile
"$LINENO"; then :
7800 ac_cv_header_stdc
=yes
7802 ac_cv_header_stdc
=no
7804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7806 if test $ac_cv_header_stdc = yes; then
7807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7814 $EGREP "memchr" >/dev
/null
2>&1; then :
7817 ac_cv_header_stdc
=no
7823 if test $ac_cv_header_stdc = yes; then
7824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7831 $EGREP "free" >/dev
/null
2>&1; then :
7834 ac_cv_header_stdc
=no
7840 if test $ac_cv_header_stdc = yes; then
7841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7842 if test "$cross_compiling" = yes; then :
7845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7849 #if ((' ' & 0x0FF) == 0x020)
7850 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7851 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7853 # define ISLOWER(c) \
7854 (('a' <= (c) && (c) <= 'i') \
7855 || ('j' <= (c) && (c) <= 'r') \
7856 || ('s' <= (c) && (c) <= 'z'))
7857 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7865 for (i = 0; i < 256; i++)
7866 if (XOR (islower (i), ISLOWER (i))
7867 || toupper (i) != TOUPPER (i))
7872 if ac_fn_c_try_run
"$LINENO"; then :
7875 ac_cv_header_stdc
=no
7877 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7878 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7884 $as_echo "$ac_cv_header_stdc" >&6; }
7885 if test $ac_cv_header_stdc = yes; then
7887 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7891 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7892 # for constant arguments. Useless!
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7894 $as_echo_n "checking for working alloca.h... " >&6; }
7895 if ${ac_cv_working_alloca_h+:} false
; then :
7896 $as_echo_n "(cached) " >&6
7898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7904 char *p = (char *) alloca (2 * sizeof (int));
7910 if ac_fn_c_try_link
"$LINENO"; then :
7911 ac_cv_working_alloca_h
=yes
7913 ac_cv_working_alloca_h
=no
7915 rm -f core conftest.err conftest.
$ac_objext \
7916 conftest
$ac_exeext conftest.
$ac_ext
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7919 $as_echo "$ac_cv_working_alloca_h" >&6; }
7920 if test $ac_cv_working_alloca_h = yes; then
7922 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7927 $as_echo_n "checking for alloca... " >&6; }
7928 if ${ac_cv_func_alloca_works+:} false
; then :
7929 $as_echo_n "(cached) " >&6
7931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7934 # define alloca __builtin_alloca
7937 # include <malloc.h>
7938 # define alloca _alloca
7940 # ifdef HAVE_ALLOCA_H
7941 # include <alloca.h>
7946 # ifndef alloca /* predefined by HP cc +Olibcalls */
7947 void *alloca (size_t);
7957 char *p = (char *) alloca (1);
7963 if ac_fn_c_try_link
"$LINENO"; then :
7964 ac_cv_func_alloca_works
=yes
7966 ac_cv_func_alloca_works
=no
7968 rm -f core conftest.err conftest.
$ac_objext \
7969 conftest
$ac_exeext conftest.
$ac_ext
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7972 $as_echo "$ac_cv_func_alloca_works" >&6; }
7974 if test $ac_cv_func_alloca_works = yes; then
7976 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7979 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7980 # that cause trouble. Some versions do not even contain alloca or
7981 # contain a buggy version. If you still want to use their alloca,
7982 # use ar to extract alloca.o from them instead of compiling alloca.c.
7984 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7986 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7990 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7991 if ${ac_cv_os_cray+:} false
; then :
7992 $as_echo_n "(cached) " >&6
7994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 #if defined CRAY && ! defined CRAY2
8003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8004 $EGREP "webecray" >/dev
/null
2>&1; then :
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8013 $as_echo "$ac_cv_os_cray" >&6; }
8014 if test $ac_cv_os_cray = yes; then
8015 for ac_func
in _getb67 GETB67 getb67
; do
8016 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8017 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8018 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8020 cat >>confdefs.h
<<_ACEOF
8021 #define CRAY_STACKSEG_END $ac_func
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8031 $as_echo_n "checking stack direction for C alloca... " >&6; }
8032 if ${ac_cv_c_stack_direction+:} false
; then :
8033 $as_echo_n "(cached) " >&6
8035 if test "$cross_compiling" = yes; then :
8036 ac_cv_c_stack_direction
=0
8038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 $ac_includes_default
8042 find_stack_direction (int *addr, int depth)
8047 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8048 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8053 main (int argc, char **argv)
8055 return find_stack_direction (0, argc + !argv + 20) < 0;
8058 if ac_fn_c_try_run
"$LINENO"; then :
8059 ac_cv_c_stack_direction
=1
8061 ac_cv_c_stack_direction
=-1
8063 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8064 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8069 $as_echo "$ac_cv_c_stack_direction" >&6; }
8070 cat >>confdefs.h
<<_ACEOF
8071 #define STACK_DIRECTION $ac_cv_c_stack_direction
8082 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8084 WIN32APILIBS
="-lws2_32"
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8090 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8091 if ${am_cv_langinfo_codeset+:} false
; then :
8092 $as_echo_n "(cached) " >&6
8094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 #include <langinfo.h>
8100 char* cs = nl_langinfo(CODESET);
8105 if ac_fn_c_try_link
"$LINENO"; then :
8106 am_cv_langinfo_codeset
=yes
8108 am_cv_langinfo_codeset
=no
8110 rm -f core conftest.err conftest.
$ac_objext \
8111 conftest
$ac_exeext conftest.
$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8115 $as_echo "$am_cv_langinfo_codeset" >&6; }
8116 if test $am_cv_langinfo_codeset = yes; then
8118 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8123 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
8125 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8126 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8127 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8128 cat >>confdefs.h
<<_ACEOF
8129 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8137 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
8140 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8141 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8142 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8143 cat >>confdefs.h
<<_ACEOF
8144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8151 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8152 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
8158 cat >>confdefs.h
<<_ACEOF
8159 #define HAVE_DECL_STRSTR $ac_have_decl
8163 # Check for std::thread. This does not work on some platforms, like
8166 ac_cpp
='$CXXCPP $CPPFLAGS'
8167 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8168 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8169 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8176 ac_cpp
='$CPP $CPPFLAGS'
8177 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8183 # We used to check for pthread.h first, but this fails if pthread.h
8184 # requires special compiler flags (e.g. on Tru64 or Sequent).
8185 # It gets checked for in the link test anyway.
8187 # First of all, check if the user has set any of the PTHREAD_LIBS,
8188 # etcetera environment variables, and if threads linking works using
8190 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8191 ax_pthread_save_CC
="$CC"
8192 ax_pthread_save_CFLAGS
="$CFLAGS"
8193 ax_pthread_save_LIBS
="$LIBS"
8194 if test "x$PTHREAD_CC" != "x"; then :
8197 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8198 LIBS
="$PTHREAD_LIBS $LIBS"
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8200 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8204 /* Override any GCC internal prototype to avoid an error.
8205 Use char because int might match the return type of a GCC
8206 builtin and then its argument prototype would still apply. */
8210 char pthread_join ();
8214 return pthread_join ();
8219 if ac_fn_c_try_link
"$LINENO"; then :
8222 rm -f core conftest.err conftest.
$ac_objext \
8223 conftest
$ac_exeext conftest.
$ac_ext
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8225 $as_echo "$ax_pthread_ok" >&6; }
8226 if test "x$ax_pthread_ok" = "xno"; then
8230 CC
="$ax_pthread_save_CC"
8231 CFLAGS
="$ax_pthread_save_CFLAGS"
8232 LIBS
="$ax_pthread_save_LIBS"
8235 # We must check for the threads library under a number of different
8236 # names; the ordering is very important because some systems
8237 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8238 # libraries is broken (non-POSIX).
8240 # Create a list of thread flags to try. Items starting with a "-" are
8241 # C compiler flags, and other items are library names, except for "none"
8242 # which indicates that we try without any flags at all, and "pthread-config"
8243 # which is a program returning the flags for the Pth emulation library.
8245 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8247 # The ordering *is* (sometimes) important. Some notes on the
8248 # individual items follow:
8250 # pthreads: AIX (must check this before -lpthread)
8251 # none: in case threads are in libc; should be tried before -Kthread and
8252 # other compiler flags to prevent continual compiler warnings
8253 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8254 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8255 # (Note: HP C rejects this with "bad form for `-t' option")
8256 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8257 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8258 # doesn't hurt to check since this sometimes defines pthreads and
8259 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8260 # is present but should not be used directly; and before -mthreads,
8261 # because the compiler interprets this as "-mt" + "-hreads")
8262 # -mthreads: Mingw32/gcc, Lynx/gcc
8263 # pthread: Linux, etcetera
8264 # --thread-safe: KAI C++
8265 # pthread-config: use pthread-config program (for GNU Pth library)
8271 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8272 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8274 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
8279 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8280 # multi-threading and also sets -lpthread."
8282 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
8287 # IBM z/OS requires a feature-test macro to be defined in order to
8288 # enable POSIX threads at all, so give the user a hint if this is
8289 # not set. (We don't define these ourselves, as they can affect
8290 # other portions of the system API in unpredictable ways.)
8292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8295 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8296 AX_PTHREAD_ZOS_MISSING
8300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8301 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8303 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8311 # On Solaris (at least, for some versions), libc contains stubbed
8312 # (non-functional) versions of the pthreads routines, so link-based
8313 # tests will erroneously succeed. (N.B.: The stubs are missing
8314 # pthread_cleanup_push, or rather a function called by this macro,
8315 # so we could check for that, but who knows whether they'll stub
8316 # that too in a future libc.) So we'll check first for the
8317 # standard Solaris way of linking pthreads (-mt -lpthread).
8319 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
8323 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8325 if test "x$GCC" = "xyes"; then :
8326 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
8329 # The presence of a feature test macro requesting re-entrant function
8330 # definitions is, on some systems, a strong hint that pthreads support is
8334 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
8335 ax_pthread_check_macro
="_REENTRANT"
8339 ax_pthread_check_macro
="_THREAD_SAFE"
8343 ax_pthread_check_macro
="--"
8346 if test "x$ax_pthread_check_macro" = "x--"; then :
8347 ax_pthread_check_cond
=0
8349 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
8352 # Are we compiling with Clang?
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8355 $as_echo_n "checking whether $CC is Clang... " >&6; }
8356 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
8357 $as_echo_n "(cached) " >&6
8359 ax_cv_PTHREAD_CLANG
=no
8360 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8361 if test "x$GCC" = "xyes"; then
8362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8365 # if defined(__clang__) && defined(__llvm__)
8366 AX_PTHREAD_CC_IS_CLANG
8370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8371 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
8372 ax_cv_PTHREAD_CLANG
=yes
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8380 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8381 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
8383 ax_pthread_clang_warning
=no
8385 # Clang needs special handling, because older versions handle the -pthread
8386 # option in a rather... idiosyncratic way
8388 if test "x$ax_pthread_clang" = "xyes"; then
8390 # Clang takes -pthread; it has never supported any other flag
8392 # (Note 1: This will need to be revisited if a system that Clang
8393 # supports has POSIX threads in a separate library. This tends not
8394 # to be the way of modern systems, but it's conceivable.)
8396 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8397 # to get POSIX threads support; the API is always present and
8398 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8399 # -pthread does define _REENTRANT, and while the Darwin headers
8400 # ignore this macro, third-party headers might not.)
8402 PTHREAD_CFLAGS
="-pthread"
8407 # However, older versions of Clang make a point of warning the user
8408 # that, in an invocation where only linking and no compilation is
8409 # taking place, the -pthread option has no effect ("argument unused
8410 # during compilation"). They expect -pthread to be passed in only
8411 # when source code is being compiled.
8413 # Problem is, this is at odds with the way Automake and most other
8414 # C build frameworks function, which is that the same flags used in
8415 # compilation (CFLAGS) are also used in linking. Many systems
8416 # supported by AX_PTHREAD require exactly this for POSIX threads
8417 # support, and in fact it is often not straightforward to specify a
8418 # flag that is used only in the compilation phase and not in
8419 # linking. Such a scenario is extremely rare in practice.
8421 # Even though use of the -pthread flag in linking would only print
8422 # a warning, this can be a nuisance for well-run software projects
8423 # that build with -Werror. So if the active version of Clang has
8424 # this misfeature, we search for an option to squash it.
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8427 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8428 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
8429 $as_echo_n "(cached) " >&6
8431 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
8432 # Create an alternate version of $ac_link that compiles and
8433 # links in two steps (.c -> .o, .o -> exe) instead of one
8434 # (.c -> exe), because the warning occurs only in the second
8436 ax_pthread_save_ac_link
="$ac_link"
8437 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8438 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8439 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8440 ax_pthread_save_CFLAGS
="$CFLAGS"
8441 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
8442 if test "x$ax_pthread_try" = "xunknown"; then :
8445 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8446 ac_link
="$ax_pthread_save_ac_link"
8447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h. */
8449 int main(void){return 0;}
8451 if ac_fn_c_try_link
"$LINENO"; then :
8452 ac_link
="$ax_pthread_2step_ac_link"
8453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 int main(void){return 0;}
8457 if ac_fn_c_try_link
"$LINENO"; then :
8460 rm -f core conftest.err conftest.
$ac_objext \
8461 conftest
$ac_exeext conftest.
$ac_ext
8464 rm -f core conftest.err conftest.
$ac_objext \
8465 conftest
$ac_exeext conftest.
$ac_ext
8467 ac_link
="$ax_pthread_save_ac_link"
8468 CFLAGS
="$ax_pthread_save_CFLAGS"
8469 if test "x$ax_pthread_try" = "x"; then :
8472 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8476 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8478 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8480 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8483 fi # $ax_pthread_clang = yes
8485 if test "x$ax_pthread_ok" = "xno"; then
8486 for ax_pthread_try_flag
in $ax_pthread_flags; do
8488 case $ax_pthread_try_flag in
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8491 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8496 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8497 PTHREAD_CFLAGS
="-mt"
8498 PTHREAD_LIBS
="-lpthread"
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8503 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8504 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
8508 # Extract the first word of "pthread-config", so it can be a program name with args.
8509 set dummy pthread-config
; ac_word
=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
8513 $as_echo_n "(cached) " >&6
8515 if test -n "$ax_pthread_config"; then
8516 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
8518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8522 test -z "$as_dir" && as_dir
=.
8523 for ac_exec_ext
in '' $ac_executable_extensions; do
8524 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8525 ac_cv_prog_ax_pthread_config
="yes"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
8536 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
8537 if test -n "$ax_pthread_config"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8539 $as_echo "$ax_pthread_config" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8546 if test "x$ax_pthread_config" = "xno"; then :
8549 PTHREAD_CFLAGS
="`pthread-config --cflags`"
8550 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8555 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8556 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
8560 ax_pthread_save_CFLAGS
="$CFLAGS"
8561 ax_pthread_save_LIBS
="$LIBS"
8562 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8563 LIBS
="$PTHREAD_LIBS $LIBS"
8565 # Check for various functions. We must include pthread.h,
8566 # since some functions may be macros. (On the Sequent, we
8567 # need a special flag -Kthread to make this header compile.)
8568 # We check for pthread_join because it is in -lpthread on IRIX
8569 # while pthread_create is in libc. We check for pthread_attr_init
8570 # due to DEC craziness with -lpthreads. We check for
8571 # pthread_cleanup_push because it is one of the few pthread
8572 # functions on Solaris that doesn't have a non-functional libc stub.
8573 # We try pthread_create on general principles.
8575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 #include <pthread.h>
8578 # if $ax_pthread_check_cond
8579 # error "$ax_pthread_check_macro must be defined"
8581 static void routine(void *a) { a = 0; }
8582 static void *start_routine(void *a) { return a; }
8586 pthread_t th; pthread_attr_t attr;
8587 pthread_create(&th, 0, start_routine, 0);
8588 pthread_join(th, 0);
8589 pthread_attr_init(&attr);
8590 pthread_cleanup_push(routine, 0);
8591 pthread_cleanup_pop(0) /* ; */
8596 if ac_fn_c_try_link
"$LINENO"; then :
8599 rm -f core conftest.err conftest.
$ac_objext \
8600 conftest
$ac_exeext conftest.
$ac_ext
8602 CFLAGS
="$ax_pthread_save_CFLAGS"
8603 LIBS
="$ax_pthread_save_LIBS"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8606 $as_echo "$ax_pthread_ok" >&6; }
8607 if test "x$ax_pthread_ok" = "xyes"; then :
8616 # Various other checks:
8617 if test "x$ax_pthread_ok" = "xyes"; then
8618 ax_pthread_save_CFLAGS
="$CFLAGS"
8619 ax_pthread_save_LIBS
="$LIBS"
8620 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8621 LIBS
="$PTHREAD_LIBS $LIBS"
8623 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8625 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8626 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
8627 $as_echo_n "(cached) " >&6
8629 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
8630 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
8631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 #include <pthread.h>
8637 int attr = $ax_pthread_attr; return attr /* ; */
8642 if ac_fn_c_try_link
"$LINENO"; then :
8643 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
8645 rm -f core conftest.err conftest.
$ac_objext \
8646 conftest
$ac_exeext conftest.
$ac_ext
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8651 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8652 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8653 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8654 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8656 cat >>confdefs.h
<<_ACEOF
8657 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8660 ax_pthread_joinable_attr_defined
=yes
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8665 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8666 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
8667 $as_echo_n "(cached) " >&6
8669 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
8672 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8678 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8679 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8680 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8681 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8682 ax_pthread_special_flags_added
=yes
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8686 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8687 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
8688 $as_echo_n "(cached) " >&6
8690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 #include <pthread.h>
8696 int i = PTHREAD_PRIO_INHERIT;
8701 if ac_fn_c_try_link
"$LINENO"; then :
8702 ax_cv_PTHREAD_PRIO_INHERIT
=yes
8704 ax_cv_PTHREAD_PRIO_INHERIT
=no
8706 rm -f core conftest.err conftest.
$ac_objext \
8707 conftest
$ac_exeext conftest.
$ac_ext
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8711 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8712 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8713 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8715 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8717 ax_pthread_prio_inherit_defined
=yes
8721 CFLAGS
="$ax_pthread_save_CFLAGS"
8722 LIBS
="$ax_pthread_save_LIBS"
8724 # More AIX lossage: compile with *_r variant
8725 if test "x$GCC" != "xyes"; then
8729 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
8730 #handle absolute path differently from PATH based program lookup
8733 if as_fn_executable_p
${CC}_r
; then :
8734 PTHREAD_CC
="${CC}_r"
8737 for ac_prog
in ${CC}_r
8739 # Extract the first word of "$ac_prog", so it can be a program name with args.
8740 set dummy
$ac_prog; ac_word
=$2
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742 $as_echo_n "checking for $ac_word... " >&6; }
8743 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
8744 $as_echo_n "(cached) " >&6
8746 if test -n "$PTHREAD_CC"; then
8747 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
8749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8753 test -z "$as_dir" && as_dir
=.
8754 for ac_exec_ext
in '' $ac_executable_extensions; do
8755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8756 ac_cv_prog_PTHREAD_CC
="$ac_prog"
8757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
8767 if test -n "$PTHREAD_CC"; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8769 $as_echo "$PTHREAD_CC" >&6; }
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8776 test -n "$PTHREAD_CC" && break
8778 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8789 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8795 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8796 if test "x$ax_pthread_ok" = "xyes"; then
8804 ac_cpp
='$CXXCPP $CPPFLAGS'
8805 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8806 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8807 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8810 if test "$threads" = "yes"; then
8812 LIBS
="$PTHREAD_LIBS $LIBS"
8813 save_CXXFLAGS
="$CXXFLAGS"
8814 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
8816 $as_echo_n "checking for std::thread... " >&6; }
8817 if ${gdb_cv_cxx_std_thread+:} false
; then :
8818 $as_echo_n "(cached) " >&6
8820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8827 std::thread t(callback);
8832 if ac_fn_cxx_try_compile
"$LINENO"; then :
8833 gdb_cv_cxx_std_thread
=yes
8835 gdb_cv_cxx_std_thread
=no
8837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
8840 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
8842 # This check must be here, while LIBS includes any necessary
8843 # threading library.
8844 for ac_func
in pthread_sigmask pthread_setname_np
8846 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8847 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8848 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8849 cat >>confdefs.h
<<_ACEOF
8850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8858 CXXFLAGS
="$save_CXXFLAGS"
8860 if test "$gdb_cv_cxx_std_thread" = "yes"; then
8862 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
8866 ac_cpp
='$CPP $CPPFLAGS'
8867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
8873 $as_echo_n "checking for sigsetjmp... " >&6; }
8874 if ${gdb_cv_func_sigsetjmp+:} false
; then :
8875 $as_echo_n "(cached) " >&6
8877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8885 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
8890 if ac_fn_c_try_compile
"$LINENO"; then :
8891 gdb_cv_func_sigsetjmp
=yes
8893 gdb_cv_func_sigsetjmp
=no
8895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
8898 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
8899 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
8901 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
8906 # Check whether we will enable the inclusion of unit tests when
8909 # The default value of this option changes depending whether we're on
8910 # development mode (in which case it's "true") or not (in which case
8912 # Check whether --enable-unit-tests was given.
8913 if test "${enable_unit_tests+set}" = set; then :
8914 enableval
=$enable_unit_tests; case "${enableval}" in
8915 yes) enable_unittests
=true
;;
8916 no
) enable_unittests
=false
;;
8917 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
8920 enable_unittests
=$development
8924 if $enable_unittests; then
8926 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
8931 if $enable_unittests; then
8940 TARGET_WORD_SIZE
=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
8942 cat >>confdefs.h
<<_ACEOF
8943 #define TARGET_WORD_SIZE $TARGET_WORD_SIZE
8950 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8955 ac_config_files
="$ac_config_files Makefile"
8957 cat >confcache
<<\_ACEOF
8958 # This file is a shell script that caches the results of configure
8959 # tests run on this system so they can be shared between configure
8960 # scripts and configure runs, see configure's option --config-cache.
8961 # It is not useful on other systems. If it contains results you don't
8962 # want to keep, you may remove or edit it.
8964 # config.status only pays attention to the cache file if you give it
8965 # the --recheck option to rerun configure.
8967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8973 # The following way of writing the cache mishandles newlines in values,
8974 # but we know of no workaround that is simple, portable, and efficient.
8975 # So, we kill variables containing newlines.
8976 # Ultrix sh set writes to stderr and can't be redirected directly,
8977 # and sets the high bit in the cache file unless we assign to the vars.
8979 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8980 eval ac_val
=\$
$ac_var
8984 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8988 _ | IFS | as_nl
) ;; #(
8989 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8990 *) { eval $ac_var=; unset $ac_var;} ;;
8996 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8997 *${as_nl}ac_space
=\
*)
8998 # `set' does not quote correctly, so add quotes: double-quote
8999 # substitution turns \\\\ into \\, and sed turns \\ into \.
9002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9005 # `set' quotes correctly as required by POSIX, so do not add quotes.
9006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9017 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9019 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9020 if test -w "$cache_file"; then
9021 if test "x$cache_file" != "x/dev/null"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9023 $as_echo "$as_me: updating cache $cache_file" >&6;}
9024 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9025 cat confcache
>"$cache_file"
9027 case $cache_file in #(
9029 mv -f confcache
"$cache_file"$$
&&
9030 mv -f "$cache_file"$$
"$cache_file" ;; #(
9032 mv -f confcache
"$cache_file" ;;
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9038 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9043 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9044 # Let make expand exec_prefix.
9045 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9047 DEFS
=-DHAVE_CONFIG_H
9051 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9052 # 1. Remove the extension, and $U if already installed.
9053 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9054 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9055 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9056 # will be set to the directory where LIBOBJS objects are built.
9057 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9058 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9062 LTLIBOBJS
=$ac_ltlibobjs
9065 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9066 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
9067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9070 $as_echo_n "checking that generated files are newer than configure... " >&6; }
9071 if test -n "$am_sleep_pid"; then
9072 # Hide warnings about reused PIDs.
9073 wait $am_sleep_pid 2>/dev
/null
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9076 $as_echo "done" >&6; }
9077 if test -n "$EXEEXT"; then
9079 am__EXEEXT_FALSE
='#'
9085 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9086 as_fn_error $?
"conditional \"AMDEP\" was never defined.
9087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9089 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9090 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
9091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9093 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9094 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
9095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9097 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9098 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
9099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9101 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
9102 as_fn_error $?
"conditional \"SELFTEST\" was never defined.
9103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9106 : "${CONFIG_STATUS=./config.status}"
9108 ac_clean_files_save
=$ac_clean_files
9109 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9111 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9113 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9115 # Generated by $as_me.
9116 # Run this file to recreate the current configuration.
9117 # Compiler output produced by configure, useful for debugging
9118 # configure, is in config.log if it exists.
9124 SHELL=\${CONFIG_SHELL-$SHELL}
9127 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9128 ## -------------------- ##
9129 ## M4sh Initialization. ##
9130 ## -------------------- ##
9132 # Be more Bourne compatible
9133 DUALCASE
=1; export DUALCASE
# for MKS sh
9134 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9137 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9138 # is contrary to our usage. Disable this feature.
9139 alias -g '${1+"$@"}'='"$@"'
9140 setopt NO_GLOB_SUBST
9142 case `(set -o) 2>/dev/null` in #(
9154 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9155 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9156 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9157 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9158 # Prefer a ksh shell builtin over an external printf program on Solaris,
9159 # but without wasting forks for bash or zsh.
9160 if test -z "$BASH_VERSION$ZSH_VERSION" \
9161 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9162 as_echo='print
-r --'
9163 as_echo_n='print
-rn --'
9164 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9165 as_echo='printf %s
\n'
9166 as_echo_n='printf %s
'
9168 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9169 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9170 as_echo_n='/usr
/ucb
/echo -n'
9172 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9173 as_echo_n_body='eval
9177 expr "X$arg" : "X\\(.*\\)$as_nl";
9178 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9180 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
9182 export as_echo_n_body
9183 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9186 as_echo='sh
-c $as_echo_body as_echo
'
9189 # The user is always right.
9190 if test "${PATH_SEPARATOR+set}" != set; then
9192 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9193 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9200 # We need space, tab and new line, in precisely that order. Quoting is
9201 # there to prevent editors from complaining about space-tab.
9202 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9203 # splitting by setting IFS to empty value.)
9206 # Find who we are. Look in the path if we contain no directory separator.
9209 *[\\/]* ) as_myself=$0 ;;
9210 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214 test -z "$as_dir" && as_dir=.
9215 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9221 # We did not find ourselves, most probably we were run as `sh COMMAND'
9222 # in which case we are not to be found in the path.
9223 if test "x$as_myself" = x
; then
9226 if test ! -f "$as_myself"; then
9227 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9231 # Unset variables that we do not need and which cause bugs (e.g. in
9232 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9233 # suppresses any "Segmentation fault" message there. '((' could
9234 # trigger a bug in pdksh 5.2.14.
9235 for as_var
in BASH_ENV ENV MAIL MAILPATH
9236 do eval test x\
${$as_var+set} = xset \
9237 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9250 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9253 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9254 # ----------------------------------------
9255 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9256 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9257 # script with STATUS, using 1 if that was 0.
9260 as_status
=$1; test $as_status -eq 0 && as_status
=1
9262 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9263 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9265 $as_echo "$as_me: error: $2" >&2
9266 as_fn_exit
$as_status
9270 # as_fn_set_status STATUS
9271 # -----------------------
9272 # Set $? to STATUS, without forking.
9276 } # as_fn_set_status
9280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9290 # Portably unset VAR.
9293 { eval $1=; unset $1;}
9295 as_unset
=as_fn_unset
9296 # as_fn_append VAR VALUE
9297 # ----------------------
9298 # Append the text in VALUE to the end of the definition contained in VAR. Take
9299 # advantage of any shell optimizations that allow amortized linear growth over
9300 # repeated appends, instead of the typical quadratic growth present in naive
9302 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9303 eval 'as_fn_append ()
9314 # as_fn_arith ARG...
9315 # ------------------
9316 # Perform arithmetic evaluation on the ARGs, and store the result in the
9317 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9318 # must be portable across $(()) and expr.
9319 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9320 eval 'as_fn_arith ()
9327 as_val
=`expr "$@" || test $? -eq 1`
9332 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9333 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9339 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9340 as_basename
=basename
9345 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9351 as_me
=`$as_basename -- "$0" ||
9352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9353 X"$0" : 'X\(//\)$' \| \
9354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9356 sed '/^.*\/\([^/][^/]*\)\/*$/{
9370 # Avoid depending upon Character Ranges.
9371 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9372 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9373 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9374 as_cr_digits
='0123456789'
9375 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9377 ECHO_C
= ECHO_N
= ECHO_T
=
9378 case `echo -n x` in #(((((
9380 case `echo 'xy\c'` in
9381 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9383 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9390 rm -f conf$$ conf$$.exe conf$$.
file
9391 if test -d conf$$.dir
; then
9392 rm -f conf$$.dir
/conf$$.
file
9395 mkdir conf$$.dir
2>/dev
/null
9397 if (echo >conf$$.
file) 2>/dev
/null
; then
9398 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9400 # ... but there are two gotchas:
9401 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9402 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9403 # In both cases, we have to default to `cp -pR'.
9404 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9406 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9414 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9415 rmdir conf$$.dir
2>/dev
/null
9420 # Create "$as_dir" as a directory, including parents if necessary.
9425 -*) as_dir
=.
/$as_dir;;
9427 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9431 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9432 *) as_qdir
=$as_dir;;
9434 as_dirs
="'$as_qdir' $as_dirs"
9435 as_dir
=`$as_dirname -- "$as_dir" ||
9436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9437 X"$as_dir" : 'X\(//\)[^/]' \| \
9438 X"$as_dir" : 'X\(//\)$' \| \
9439 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9440 $as_echo X"$as_dir" |
9441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9458 test -d "$as_dir" && break
9460 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9461 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9465 if mkdir
-p .
2>/dev
/null
; then
9466 as_mkdir_p
='mkdir -p "$as_dir"'
9468 test -d .
/-p && rmdir .
/-p
9473 # as_fn_executable_p FILE
9474 # -----------------------
9475 # Test if FILE is an executable regular file.
9476 as_fn_executable_p
()
9478 test -f "$1" && test -x "$1"
9479 } # as_fn_executable_p
9481 as_executable_p
=as_fn_executable_p
9483 # Sed expression to map a string onto a valid CPP name.
9484 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9486 # Sed expression to map a string onto a valid variable name.
9487 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9491 ## ----------------------------------- ##
9492 ## Main body of $CONFIG_STATUS script. ##
9493 ## ----------------------------------- ##
9495 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9498 # Save the log message, to keep $0 and so on meaningful, and to
9499 # report actual input values of CONFIG_FILES etc. instead of their
9500 # values after options handling.
9502 This file was extended by gdbsupport $as_me 1.0, which was
9503 generated by GNU Autoconf 2.69. Invocation command line was
9505 CONFIG_FILES = $CONFIG_FILES
9506 CONFIG_HEADERS = $CONFIG_HEADERS
9507 CONFIG_LINKS = $CONFIG_LINKS
9508 CONFIG_COMMANDS = $CONFIG_COMMANDS
9511 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9516 case $ac_config_files in *"
9517 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9520 case $ac_config_headers in *"
9521 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9526 # Files that config.status was made for.
9527 config_files="$ac_config_files"
9528 config_headers="$ac_config_headers"
9529 config_commands="$ac_config_commands"
9533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9535 \`$as_me' instantiates files and other configuration actions
9536 from templates according to the current configuration. Unless the files
9537 and actions are specified as TAGs, all are instantiated by default.
9539 Usage: $0 [OPTION]... [TAG]...
9541 -h, --help print this help, then exit
9542 -V, --version print version number and configuration settings, then exit
9543 --config print configuration, then exit
9544 -q, --quiet, --silent
9545 do not print progress messages
9546 -d, --debug don't remove temporary files
9547 --recheck update $as_me by reconfiguring in the same conditions
9548 --file=FILE[:TEMPLATE]
9549 instantiate the configuration file FILE
9550 --header=FILE[:TEMPLATE]
9551 instantiate the configuration header FILE
9553 Configuration files:
9556 Configuration headers:
9559 Configuration commands:
9562 Report bugs to the package provider."
9565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9566 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9568 gdbsupport config.status 1.0
9569 configured by $0, generated by GNU Autoconf 2.69,
9570 with options \\"\$ac_cs_config\\"
9572 Copyright (C) 2012 Free Software Foundation, Inc.
9573 This config.status script is free software; the Free Software Foundation
9574 gives unlimited permission to copy, distribute and modify it."
9581 test -n "\$AWK" || AWK=awk
9584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9585 # The default lists apply if the user does not specify any file.
9591 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9592 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9596 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9608 # Handling of the options.
9609 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9611 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9612 $as_echo "$ac_cs_version"; exit ;;
9613 --config |
--confi |
--conf |
--con |
--co |
--c )
9614 $as_echo "$ac_cs_config"; exit ;;
9615 --debug |
--debu |
--deb |
--de |
--d |
-d )
9617 --file |
--fil |
--fi |
--f )
9620 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9621 '') as_fn_error $?
"missing file argument" ;;
9623 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9624 ac_need_defaults
=false
;;
9625 --header |
--heade |
--head |
--hea )
9628 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9630 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9631 ac_need_defaults
=false
;;
9633 # Conflict between --help and --header
9634 as_fn_error $?
"ambiguous option: \`$1'
9635 Try \`$0 --help' for more information.";;
9636 --help |
--hel |
-h )
9637 $as_echo "$ac_cs_usage"; exit ;;
9638 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9639 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9643 -*) as_fn_error $?
"unrecognized option: \`$1'
9644 Try \`$0 --help' for more information." ;;
9646 *) as_fn_append ac_config_targets
" $1"
9647 ac_need_defaults
=false
;;
9653 ac_configure_extra_args
=
9655 if $ac_cs_silent; then
9657 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9662 if \$ac_cs_recheck; then
9663 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9665 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9666 CONFIG_SHELL='$SHELL'
9672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9676 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9677 ## Running $as_me. ##
9683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9687 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9693 # Handling of arguments.
9694 for ac_config_target
in $ac_config_targets
9696 case $ac_config_target in
9697 "support-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS support-config.h:config.in" ;;
9698 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
9699 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9701 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9706 # If the user did not use the arguments to specify the items to instantiate,
9707 # then the envvar interface is used. Set only those that are not.
9708 # We use the long form for the default assignment because of an extremely
9709 # bizarre bug on SunOS 4.1.3.
9710 if $ac_need_defaults; then
9711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9712 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9713 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9716 # Have a temporary directory for convenience. Make it in the build tree
9717 # simply because there is no reason against having it here, and in addition,
9718 # creating and moving files from /tmp can sometimes cause problems.
9719 # Hook for its removal unless debugging.
9720 # Note that there is a small window in which the directory will not be cleaned:
9721 # after its creation but before its name has been assigned to `$tmp'.
9725 trap 'exit_status=$?
9727 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9729 trap 'as_fn_exit 1' 1 2 13 15
9731 # Create a (secure) tmp directory for tmp files.
9734 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9738 tmp
=.
/conf$$
-$RANDOM
9739 (umask 077 && mkdir
"$tmp")
9740 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9743 # Set up the scripts for CONFIG_FILES section.
9744 # No need to generate them if there are no CONFIG_FILES.
9745 # This happens for instance with `./config.status config.h'.
9746 if test -n "$CONFIG_FILES"; then
9749 ac_cr
=`echo X | tr X '\015'`
9750 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9751 # But we know of no other shell where ac_cr would be empty at this
9752 # point, so we can use a bashism as a fallback.
9753 if test "x$ac_cr" = x
; then
9754 eval ac_cr
=\$
\'\\r
\'
9756 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9757 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9763 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9768 echo "cat >conf$$subs.awk <<_ACEOF" &&
9769 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9772 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9773 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9775 for ac_last_try in false false false false false :; do
9776 . ./conf$$subs.sh ||
9777 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9779 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9780 if test $ac_delim_n = $ac_delim_num; then
9782 elif $ac_last_try; then
9783 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9785 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9791 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9795 s/^/S["/; s
/!.
*/"]=/
9805 s/\(.\{148\}\)..*/\1/
9807 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9812 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9819 s/\(.\{148\}\)..*/\1/
9821 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9825 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9830 ' <conf$$subs.awk | sed '
9835 ' >>$CONFIG_STATUS || ac_write_fail=1
9836 rm -f conf$$subs.awk
9837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9839 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9840 for (key in S) S_is_set[key] = 1
9846 nfields = split(line, field, "@
")
9848 len = length(field[1])
9849 for (i = 2; i < nfields; i++) {
9851 keylen = length(key)
9852 if (S_is_set[key]) {
9854 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9855 len += length(value) + length(field[++i])
9866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9867 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9868 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9871 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9872 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9875 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9876 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9877 # trailing colons and then remove the whole line if VPATH becomes empty
9878 # (actually we leave an empty line to preserve line numbers).
9879 if test "x
$srcdir" = x.; then
9880 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9899 fi # test -n "$CONFIG_FILES"
9901 # Set up the scripts for CONFIG_HEADERS section.
9902 # No need to generate them if there are no CONFIG_HEADERS.
9903 # This happens for instance with `./config.status Makefile'.
9904 if test -n "$CONFIG_HEADERS"; then
9905 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9909 # Transform confdefs.h into an awk script `defines.awk', embedded as
9910 # here-document in config.status, that substitutes the proper values into
9911 # config.h.in to produce config.h.
9913 # Create a delimiter string that does not exist in confdefs.h, to ease
9914 # handling of long lines.
9916 for ac_last_try in false false :; do
9917 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9918 if test -z "$ac_tt"; then
9920 elif $ac_last_try; then
9921 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9923 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9927 # For the awk script, D is an array of macro values keyed by name,
9928 # likewise P contains macro parameters if any. Preserve backslash
9929 # newline sequences.
9931 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9933 s/.\{148\}/&'"$ac_delim"'/g
9936 s/^[ ]*#[ ]*define[ ][ ]*/ /
9943 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9945 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9950 D["\
1"]=" \
3\\\\\\n
"\\/p
9952 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9957 s/.\{148\}/&'"$ac_delim"'/g
9962 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9965 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9967 ' <confdefs.h | sed '
9968 s/'"$ac_delim"'/"\\\
9969 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9972 for (key in D) D_is_set[key] = 1
9975 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9977 split(line, arg, " ")
9978 if (arg[1] == "#") {
9982 defundef
= substr
(arg
[1], 2)
9985 split(mac1
, mac2
, "(") #)
9987 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9988 if (D_is_set
[macro
]) {
9989 # Preserve the white space surrounding the "#".
9990 print prefix
"define", macro P
[macro
] D
[macro
]
9993 # Replace #undef with comments. This is necessary, for example,
9994 # in the case of _POSIX_SOURCE, which is predefined and required
9995 # on some systems where configure will not decide to define it.
9996 if (defundef
== "undef") {
9997 print
"/*", prefix defundef
, macro
, "*/"
10005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10006 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10007 fi # test -n "$CONFIG_HEADERS"
10010 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10015 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10017 case $ac_mode$ac_tag in
10019 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10020 :[FH
]-) ac_tag
=-:-;;
10021 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10038 -) ac_f
="$ac_tmp/stdin";;
10039 *) # Look for the file first in the build tree, then in the source tree
10040 # (if the path is not absolute). The absolute path cannot be DOS-style,
10041 # because $ac_f cannot contain `:'.
10045 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10047 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10049 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10050 as_fn_append ac_file_inputs
" '$ac_f'"
10053 # Let's still pretend it is `configure' which instantiates (i.e., don't
10054 # use $as_me), people would be surprised to read:
10055 # /* config.h. Generated by config.status. */
10056 configure_input
='Generated from '`
10057 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10059 if test x
"$ac_file" != x-
; then
10060 configure_input
="$ac_file. $configure_input"
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10062 $as_echo "$as_me: creating $ac_file" >&6;}
10064 # Neutralize special characters interpreted by sed in replacement strings.
10065 case $configure_input in #(
10066 *\
&* |
*\|
* |
*\\* )
10067 ac_sed_conf_input
=`$as_echo "$configure_input" |
10068 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10069 *) ac_sed_conf_input
=$configure_input;;
10073 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10074 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10079 ac_dir
=`$as_dirname -- "$ac_file" ||
10080 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10081 X"$ac_file" : 'X\(//\)[^/]' \| \
10082 X"$ac_file" : 'X\(//\)$' \| \
10083 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10084 $as_echo X"$ac_file" |
10085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10089 /^X\(\/\/\)[^/].*/{
10102 as_dir
="$ac_dir"; as_fn_mkdir_p
10106 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10108 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10109 # A ".." for each directory in $ac_dir_suffix.
10110 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10111 case $ac_top_builddir_sub in
10112 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10113 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10116 ac_abs_top_builddir
=$ac_pwd
10117 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10118 # for backward compatibility:
10119 ac_top_builddir
=$ac_top_build_prefix
10122 .
) # We are building in place.
10124 ac_top_srcdir
=$ac_top_builddir_sub
10125 ac_abs_top_srcdir
=$ac_pwd ;;
10126 [\\/]* | ?
:[\\/]* ) # Absolute name.
10127 ac_srcdir
=$srcdir$ac_dir_suffix;
10128 ac_top_srcdir
=$srcdir
10129 ac_abs_top_srcdir
=$srcdir ;;
10130 *) # Relative name.
10131 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10132 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10133 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10135 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10145 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10146 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10148 ac_MKDIR_P
=$MKDIR_P
10150 [\\/$
]* | ?
:[\\/]* ) ;;
10151 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
10155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10156 # If the template does not know about datarootdir, expand it.
10157 # FIXME: This hack should be removed a few years after 2.60.
10158 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10169 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10170 *datarootdir
*) ac_datarootdir_seen
=yes;;
10171 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10173 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10176 ac_datarootdir_hack='
10177 s&@datadir@&$datadir&g
10178 s&@docdir@&$docdir&g
10179 s&@infodir@&$infodir&g
10180 s&@localedir@&$localedir&g
10181 s&@mandir@&$mandir&g
10182 s&\\\${datarootdir}&$datarootdir&g' ;;
10186 # Neutralize VPATH when `$srcdir' = `.'.
10187 # Shell code in configure.ac might set extrasub.
10188 # FIXME: do we really want to maintain this feature?
10189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10190 ac_sed_extra="$ac_vpsub
10193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10195 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10196 s|@configure_input@|
$ac_sed_conf_input|
;t t
10197 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10198 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10199 s
&@srcdir@
&$ac_srcdir&;t t
10200 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10201 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10202 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10203 s
&@builddir@
&$ac_builddir&;t t
10204 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10205 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10206 s
&@INSTALL@
&$ac_INSTALL&;t t
10207 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
10208 $ac_datarootdir_hack
10210 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10211 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10213 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10214 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10215 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10216 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10218 which seems to be undefined. Please make sure it is defined" >&5
10219 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10220 which seems to be undefined. Please make sure it is defined" >&2;}
10222 rm -f "$ac_tmp/stdin"
10224 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10225 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10233 if test x"$ac_file" != x-; then
10235 $as_echo "/* $configure_input */" \
10236 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10237 } >"$ac_tmp/config.h" \
10238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10239 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10241 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10244 mv "$ac_tmp/config.h" "$ac_file" \
10245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10248 $as_echo "/* $configure_input */" \
10249 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10250 || as_fn_error $? "could not create -" "$LINENO" 5
10252 # Compute "$ac_file"'s index
in $config_headers.
10255 for _am_header
in $config_headers :; do
10256 case $_am_header in
10257 $_am_arg |
$_am_arg:* )
10260 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
10263 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10264 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10265 X"$_am_arg" : 'X\(//\)[^/]' \| \
10266 X"$_am_arg" : 'X\(//\)$' \| \
10267 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10268 $as_echo X"$_am_arg" |
10269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10273 /^X\(\/\/\)[^/].*/{
10285 s/.*/./; q'`/stamp-h
$_am_stamp_count
10288 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10289 $as_echo "$as_me: executing $ac_file commands" >&6;}
10294 case $ac_file$ac_mode in
10295 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
10296 # Older Autoconf quotes --file arguments for eval, but not when files
10297 # are listed without --file. Let's play safe and only enable the eval
10298 # if we detect the quoting.
10299 case $CONFIG_FILES in
10300 *\'*) eval set x
"$CONFIG_FILES" ;;
10301 *) set x
$CONFIG_FILES ;;
10306 # Strip MF so we end up with the name of the file.
10307 mf
=`echo "$mf" | sed -e 's/:.*$//'`
10308 # Check whether this is an Automake generated Makefile or not.
10309 # We used to match only the files named 'Makefile.in', but
10310 # some people rename them; so instead we look at the file content.
10311 # Grep'ing the first line is not enough: some people post-process
10312 # each Makefile.in and add a new line on top of each file to say so.
10313 # Grep'ing the whole file is not good either: AIX grep has a line
10314 # limit of 2048, but all sed's we know have understand at least 4000.
10315 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
10316 dirpart
=`$as_dirname -- "$mf" ||
10317 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10318 X"$mf" : 'X\(//\)[^/]' \| \
10319 X"$mf" : 'X\(//\)$' \| \
10320 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10326 /^X\(\/\/\)[^/].*/{
10342 # Extract the definition of DEPDIR, am__include, and am__quote
10343 # from the Makefile without running 'make'.
10344 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
10345 test -z "$DEPDIR" && continue
10346 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
10347 test -z "$am__include" && continue
10348 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
10349 # Find all dependency output files, they are included files with
10350 # $(DEPDIR) in their names. We invoke sed twice because it is the
10351 # simplest approach to changing $(DEPDIR) to its actual value in the
10353 for file in `sed -n "
10354 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10355 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10356 # Make sure the directory exists.
10357 test -f "$dirpart/$file" && continue
10358 fdir
=`$as_dirname -- "$file" ||
10359 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10360 X"$file" : 'X\(//\)[^/]' \| \
10361 X"$file" : 'X\(//\)$' \| \
10362 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10363 $as_echo X"$file" |
10364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10368 /^X\(\/\/\)[^/].*/{
10381 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
10382 # echo "creating $dirpart/$file"
10383 echo '# dummy' > "$dirpart/$file"
10395 ac_clean_files
=$ac_clean_files_save
10397 test $ac_write_fail = 0 ||
10398 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
10401 # configure is writing to config.log, and then calls config.status.
10402 # config.status does its own redirection, appending to config.log.
10403 # Unfortunately, on DOS this fails, as config.log is still kept open
10404 # by configure, so config.status won't be able to write to it; its
10405 # output is simply discarded. So we exec the FD to /dev/null,
10406 # effectively closing config.log, so it can be properly (re)opened and
10407 # appended to by config.status. When coming back to configure, we
10408 # need to make the FD available again.
10409 if test "$no_create" != yes; then
10411 ac_config_status_args
=
10412 test "$silent" = yes &&
10413 ac_config_status_args
="$ac_config_status_args --quiet"
10415 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10417 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10418 # would make configure fail if this is the last instruction.
10419 $ac_cs_success || as_fn_exit
1
10421 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10423 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}