2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="server.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
684 MAINTAINER_MODE_FALSE
713 program_transform_name
726 enable_option_checking
727 enable_maintainer_mode
734 enable_build_warnings
735 enable_gdb_build_warnings
739 enable_inprocess_agent
741 ac_precious_vars
='build_alias
755 # Initialize some variables set by options.
757 ac_init_version
=false
758 ac_unrecognized_opts
=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name
=s
,x
,x
,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir
='${exec_prefix}/bin'
784 sbindir
='${exec_prefix}/sbin'
785 libexecdir
='${exec_prefix}/libexec'
786 datarootdir
='${prefix}/share'
787 datadir
='${datarootdir}'
788 sysconfdir
='${prefix}/etc'
789 sharedstatedir
='${prefix}/com'
790 localstatedir
='${prefix}/var'
791 includedir
='${prefix}/include'
792 oldincludedir
='/usr/include'
793 docdir
='${datarootdir}/doc/${PACKAGE}'
794 infodir
='${datarootdir}/info'
799 libdir
='${exec_prefix}/lib'
800 localedir
='${datarootdir}/locale'
801 mandir
='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\
$ac_option
815 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 # Accept the important Cygnus configure options, so we can diagnose typos.
822 case $ac_dashdash$ac_option in
826 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
828 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
831 -build |
--build |
--buil |
--bui |
--bu)
832 ac_prev
=build_alias
;;
833 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
834 build_alias
=$ac_optarg ;;
836 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
837 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
838 ac_prev
=cache_file
;;
839 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
840 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
841 cache_file
=$ac_optarg ;;
844 cache_file
=config.cache
;;
846 -datadir |
--datadir |
--datadi |
--datad)
848 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
849 datadir
=$ac_optarg ;;
851 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
852 |
--dataroo |
--dataro |
--datar)
853 ac_prev
=datarootdir
;;
854 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
855 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
856 datarootdir
=$ac_optarg ;;
858 -disable-* |
--disable-*)
859 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
862 as_fn_error $?
"invalid feature name: $ac_useropt"
863 ac_useropt_orig
=$ac_useropt
864 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
869 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep
=', ';;
872 eval enable_
$ac_useropt=no
;;
874 -docdir |
--docdir |
--docdi |
--doc |
--do)
876 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
879 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
881 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
884 -enable-* |
--enable-*)
885 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
888 as_fn_error $?
"invalid feature name: $ac_useropt"
889 ac_useropt_orig
=$ac_useropt
890 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896 ac_unrecognized_sep
=', ';;
898 eval enable_
$ac_useropt=\
$ac_optarg ;;
900 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
901 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
902 |
--exec |
--exe |
--ex)
903 ac_prev
=exec_prefix
;;
904 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
905 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
906 |
--exec=* |
--exe=* |
--ex=*)
907 exec_prefix
=$ac_optarg ;;
909 -gas |
--gas |
--ga |
--g)
910 # Obsolete; use --with-gas.
913 -help |
--help |
--hel |
--he |
-h)
915 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
916 ac_init_help
=recursive
;;
917 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
918 ac_init_help
=short
;;
920 -host |
--host |
--hos |
--ho)
921 ac_prev
=host_alias
;;
922 -host=* |
--host=* |
--hos=* |
--ho=*)
923 host_alias
=$ac_optarg ;;
925 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
927 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
929 htmldir
=$ac_optarg ;;
931 -includedir |
--includedir |
--includedi |
--included |
--include \
932 |
--includ |
--inclu |
--incl |
--inc)
933 ac_prev
=includedir
;;
934 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
935 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
936 includedir
=$ac_optarg ;;
938 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
940 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
941 infodir
=$ac_optarg ;;
943 -libdir |
--libdir |
--libdi |
--libd)
945 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
948 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
949 |
--libexe |
--libex |
--libe)
950 ac_prev
=libexecdir
;;
951 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
952 |
--libexe=* |
--libex=* |
--libe=*)
953 libexecdir
=$ac_optarg ;;
955 -localedir |
--localedir |
--localedi |
--localed |
--locale)
957 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
958 localedir
=$ac_optarg ;;
960 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
961 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
962 ac_prev
=localstatedir
;;
963 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
964 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
965 localstatedir
=$ac_optarg ;;
967 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
969 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
973 # Obsolete; use --without-fp.
976 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
977 |
--no-cr |
--no-c |
-n)
980 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
981 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
984 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
985 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
986 |
--oldin |
--oldi |
--old |
--ol |
--o)
987 ac_prev
=oldincludedir
;;
988 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
989 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
990 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
991 oldincludedir
=$ac_optarg ;;
993 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
995 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
998 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
999 |
--program-pre |
--program-pr |
--program-p)
1000 ac_prev
=program_prefix
;;
1001 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1002 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1003 program_prefix
=$ac_optarg ;;
1005 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1006 |
--program-suf |
--program-su |
--program-s)
1007 ac_prev
=program_suffix
;;
1008 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1009 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1010 program_suffix
=$ac_optarg ;;
1012 -program-transform-name |
--program-transform-name \
1013 |
--program-transform-nam |
--program-transform-na \
1014 |
--program-transform-n |
--program-transform- \
1015 |
--program-transform |
--program-transfor \
1016 |
--program-transfo |
--program-transf \
1017 |
--program-trans |
--program-tran \
1018 |
--progr-tra |
--program-tr |
--program-t)
1019 ac_prev
=program_transform_name
;;
1020 -program-transform-name=* |
--program-transform-name=* \
1021 |
--program-transform-nam=* |
--program-transform-na=* \
1022 |
--program-transform-n=* |
--program-transform-=* \
1023 |
--program-transform=* |
--program-transfor=* \
1024 |
--program-transfo=* |
--program-transf=* \
1025 |
--program-trans=* |
--program-tran=* \
1026 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1027 program_transform_name
=$ac_optarg ;;
1029 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1031 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1032 pdfdir
=$ac_optarg ;;
1034 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1036 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1039 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1040 |
-silent |
--silent |
--silen |
--sile |
--sil)
1043 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1045 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1047 sbindir
=$ac_optarg ;;
1049 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1050 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1051 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1053 ac_prev
=sharedstatedir
;;
1054 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1055 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1056 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1058 sharedstatedir
=$ac_optarg ;;
1060 -site |
--site |
--sit)
1062 -site=* |
--site=* |
--sit=*)
1065 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1067 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1068 srcdir
=$ac_optarg ;;
1070 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1071 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1072 ac_prev
=sysconfdir
;;
1073 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1074 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1075 sysconfdir
=$ac_optarg ;;
1077 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1078 ac_prev
=target_alias
;;
1079 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1080 target_alias
=$ac_optarg ;;
1082 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1085 -version |
--version |
--versio |
--versi |
--vers |
-V)
1086 ac_init_version
=: ;;
1089 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1092 as_fn_error $?
"invalid package name: $ac_useropt"
1093 ac_useropt_orig
=$ac_useropt
1094 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep
=', ';;
1102 eval with_
$ac_useropt=\
$ac_optarg ;;
1104 -without-* |
--without-*)
1105 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1108 as_fn_error $?
"invalid package name: $ac_useropt"
1109 ac_useropt_orig
=$ac_useropt
1110 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep
=', ';;
1118 eval with_
$ac_useropt=no
;;
1121 # Obsolete; use --with-x.
1124 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1125 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1126 ac_prev
=x_includes
;;
1127 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1128 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1129 x_includes
=$ac_optarg ;;
1131 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1132 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1133 ac_prev
=x_libraries
;;
1134 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1135 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1136 x_libraries
=$ac_optarg ;;
1138 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
1143 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1147 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1149 eval $ac_envvar=\
$ac_optarg
1150 export $ac_envvar ;;
1153 # FIXME: should be removed in autoconf 3.0.
1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163 if test -n "$ac_prev"; then
1164 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error $?
"missing argument to $ac_option"
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1171 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 # Check all directory arguments for consistency.
1177 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1182 eval ac_val
=\$
$ac_var
1183 # Remove trailing slashes.
1186 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\
$ac_val;;
1189 # Be sure to have absolute directory names.
1191 [\\/$
]* | ?
:[\\/]* ) continue;;
1192 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1194 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1202 target
=$target_alias
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x
; then
1206 if test "x$build_alias" = x
; then
1207 cross_compiling
=maybe
1208 elif test "x$build_alias" != "x$host_alias"; then
1214 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1216 test "$silent" = yes && exec 6>/dev
/null
1219 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di
=`ls -di .` &&
1221 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1222 as_fn_error $?
"working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 as_fn_error $?
"pwd does not report name of working directory"
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted
=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir
=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 $as_echo X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted
=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1263 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1265 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1277 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 for ac_var
in $ac_precious_vars; do
1280 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1282 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1293 \`configure' configures this package to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking ...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1351 --program-prefix=PREFIX prepend PREFIX to installed program names
1352 --program-suffix=SUFFIX append SUFFIX to installed program names
1353 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1356 --build=BUILD configure
for building on BUILD
[guessed
]
1357 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1358 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1362 if test -n "$ac_init_help"; then
1367 --disable-option-checking ignore unrecognized
--enable/--with options
1368 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1369 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1370 --enable-maintainer-mode
1371 enable make rules and dependencies not useful
(and
1372 sometimes confusing
) to the casual installer
1373 --disable-largefile omit support
for large files
1374 --enable-unit-tests Enable the inclusion of unit tests when compiling
1376 --enable-werror treat compile warnings as errors
1377 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1378 --enable-gdb-build-warnings
1379 enable GDB specific build-time compiler warnings
if
1381 --enable-inprocess-agent
1385 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1386 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1387 --with-ust=PATH Specify prefix directory
for the installed UST package
1388 Equivalent to
--with-ust-include=PATH
/include
1389 plus
--with-ust-lib=PATH
/lib
1390 --with-ust-include=PATH Specify directory
for installed UST include files
1391 --with-ust-lib=PATH Specify the directory
for the installed UST library
1392 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1393 --with-bugurl=URL Direct users to URL to report a bug
1394 --with-libthread-db=PATH
1395 use given libthread_db directly
1397 Some influential environment variables
:
1398 CC C compiler
command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1401 nonstandard directory
<lib dir
>
1402 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1403 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1404 you have headers
in a nonstandard directory
<include dir
>
1405 CXX C
++ compiler
command
1406 CXXFLAGS C
++ compiler flags
1409 Use these variables to override the choices made by
`configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1412 Report bugs to the package provider.
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1442 .) # We are building in place.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1476 generated by GNU Autoconf 2.69
1478 Copyright (C) 2012 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 rm -f conftest.$ac_objext
1496 if { { ac_try="$ac_compile"
1498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1499 *) ac_try_echo
=$ac_try;;
1501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1505 if test -s conftest.err
; then
1506 grep -v '^ *+' conftest.err
>conftest.er1
1507 cat conftest.er1
>&5
1508 mv -f conftest.er1 conftest.err
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.
$ac_objext; then :
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.
$ac_ext >&5
1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523 as_fn_set_status
$ac_retval
1525 } # ac_fn_c_try_compile
1527 # ac_fn_cxx_try_compile LINENO
1528 # ----------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_cxx_try_compile
()
1532 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1533 rm -f conftest.
$ac_objext
1534 if { { ac_try
="$ac_compile"
1536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_cxx_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1563 } # ac_fn_cxx_try_compile
1565 # ac_fn_c_try_cpp LINENO
1566 # ----------------------
1567 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
1573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1574 *) ac_try_echo
=$ac_try;;
1576 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1580 if test -s conftest.err
; then
1581 grep -v '^ *+' conftest.err
>conftest.er1
1582 cat conftest.er1
>&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } > conftest.i
&& {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.
$ac_ext >&5
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status
$ac_retval
1602 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605 # the include files in INCLUDES and setting the cache variable VAR
1607 ac_fn_c_check_header_mongrel
()
1609 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1610 if eval \
${$3+:} false
; then :
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if eval \
${$3+:} false
; then :
1614 $as_echo_n "(cached) " >&6
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1620 # Is the header compilable?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622 $as_echo_n "checking $2 usability... " >&6; }
1623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1628 if ac_fn_c_try_compile
"$LINENO"; then :
1629 ac_header_compiler
=yes
1631 ac_header_compiler
=no
1633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635 $as_echo "$ac_header_compiler" >&6; }
1637 # Is the header present?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639 $as_echo_n "checking $2 presence... " >&6; }
1640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1644 if ac_fn_c_try_cpp
"$LINENO"; then :
1645 ac_header_preproc
=yes
1647 ac_header_preproc
=no
1649 rm -f conftest.err conftest.i conftest.
$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651 $as_echo "$ac_header_preproc" >&6; }
1653 # So? What about this header?
1654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \
${$3+:} false
; then :
1677 $as_echo_n "(cached) " >&6
1679 eval "$3=\$ac_header_compiler"
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } # ac_fn_c_check_header_mongrel
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1695 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1696 if { { ac_try
="$ac_link"
1698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1709 *) ac_try_echo
=$ac_try;;
1711 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.
$ac_ext >&5
1723 ac_retval
=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status
$ac_retval
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile
()
1737 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \
${$3+:} false
; then :
1741 $as_echo_n "(cached) " >&6
1743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1748 if ac_fn_c_try_compile
"$LINENO"; then :
1753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_compile
1762 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1763 # -------------------------------------------
1764 # Tests whether TYPE exists after having included INCLUDES, setting cache
1765 # variable VAR accordingly.
1766 ac_fn_c_check_type
()
1768 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \
${$3+:} false
; then :
1772 $as_echo_n "(cached) " >&6
1775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1787 if ac_fn_c_try_compile
"$LINENO"; then :
1788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1800 if ac_fn_c_try_compile
"$LINENO"; then :
1805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_type
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1822 rm -f conftest.
$ac_objext conftest
$ac_exeext
1823 if { { ac_try
="$ac_link"
1825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1860 } # ac_fn_c_try_link
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877 #define $2 innocuous_$2
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (); below.
1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 <limits.h> exists even on freestanding compilers. */
1885 # include <limits.h>
1887 # include <assert.h>
1892 /* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1899 /* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902 #if defined __stub_$2 || defined __stub___$2
1914 if ac_fn_c_try_link "$LINENO"; then :
1919 rm -f core conftest.err conftest.$ac_objext \
1920 conftest$ac_exeext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_func
1929 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1930 # ---------------------------------------------
1931 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1933 ac_fn_c_check_decl ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1937 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1939 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1949 #ifndef $as_decl_name
1951 (void) $as_decl_use;
1953 (void) $as_decl_name;
1961 if ac_fn_c_try_compile "$LINENO"; then :
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 } # ac_fn_c_check_decl
1975 # ac_fn_cxx_try_link LINENO
1976 # -------------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_link ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext conftest$ac_exeext
1982 if { { ac_try="$ac_link"
1984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1985 *) ac_try_echo
=$ac_try;;
1987 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>conftest.err
1991 if test -s conftest.err
; then
1992 grep -v '^ *+' conftest.err
>conftest.er1
1993 cat conftest.er1
>&5
1994 mv -f conftest.er1 conftest.err
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest
$ac_exeext && {
2001 test "$cross_compiling" = yes ||
2002 test -x conftest
$ac_exeext
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.
$ac_ext >&5
2011 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2012 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2013 # interfere with the next link command; also delete a directory that is
2014 # left behind by Apple's compiler. We do this before executing the actions.
2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 as_fn_set_status
$ac_retval
2019 } # ac_fn_cxx_try_link
2021 # ac_fn_cxx_check_func LINENO FUNC VAR
2022 # ------------------------------------
2023 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2024 ac_fn_cxx_check_func
()
2026 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \
${$3+:} false
; then :
2030 $as_echo_n "(cached) " >&6
2032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2036 #define $2 innocuous_$2
2038 /* System header to define __stub macros and hopefully few prototypes,
2039 which can conflict with char $2 (); below.
2040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2041 <limits.h> exists even on freestanding compilers. */
2044 # include <limits.h>
2046 # include <assert.h>
2051 /* Override any GCC internal prototype to avoid an error.
2052 Use char because int might match the return type of a GCC
2053 builtin and then its argument prototype would still apply. */
2058 /* The GNU C library defines this for functions which it implements
2059 to always fail with ENOSYS. Some functions are actually named
2060 something starting with __ and the normal name is an alias. */
2061 #if defined __stub_$2 || defined __stub___$2
2073 if ac_fn_cxx_try_link
"$LINENO"; then :
2078 rm -f core conftest.err conftest.
$ac_objext \
2079 conftest
$ac_exeext conftest.
$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 } # ac_fn_cxx_check_func
2088 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2089 # --------------------------------------------
2090 # Tries to find the compile-time value of EXPR in a program that includes
2091 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2093 ac_fn_c_compute_int
()
2095 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2096 if test "$cross_compiling" = yes; then
2097 # Depending upon the size, compute the lo and hi bounds.
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) >= 0)];
2106 return test_array [0];
2112 if ac_fn_c_try_compile
"$LINENO"; then :
2115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123 return test_array [0];
2129 if ac_fn_c_try_compile
"$LINENO"; then :
2130 ac_hi
=$ac_mid; break
2132 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2133 if test $ac_lo -le $ac_mid; then
2137 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) < 0)];
2150 return test_array [0];
2156 if ac_fn_c_try_compile
"$LINENO"; then :
2159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2165 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2167 return test_array [0];
2173 if ac_fn_c_try_compile
"$LINENO"; then :
2174 ac_lo
=$ac_mid; break
2176 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2177 if test $ac_mid -le $ac_hi; then
2181 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2191 # Binary search between lo and hi bounds.
2192 while test "x$ac_lo" != "x$ac_hi"; do
2193 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2202 return test_array [0];
2208 if ac_fn_c_try_compile
"$LINENO"; then :
2211 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2216 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2223 static long int longval () { return $2; }
2224 static unsigned long int ulongval () { return $2; }
2231 FILE *f = fopen ("conftest.val", "w");
2236 long int i = longval ();
2239 fprintf (f, "%ld", i);
2243 unsigned long int i = ulongval ();
2246 fprintf (f, "%lu", i);
2248 /* Do not output a trailing newline, as this causes \r\n confusion
2249 on some platforms. */
2250 return ferror (f) || fclose (f) != 0;
2256 if ac_fn_c_try_run
"$LINENO"; then :
2257 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2261 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2262 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267 as_fn_set_status
$ac_retval
2269 } # ac_fn_c_compute_int
2271 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2272 # ----------------------------------------------------
2273 # Tries to find if the field MEMBER exists in type AGGR, after including
2274 # INCLUDES, setting cache variable VAR accordingly.
2275 ac_fn_c_check_member
()
2277 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2279 $as_echo_n "checking for $2.$3... " >&6; }
2280 if eval \
${$4+:} false
; then :
2281 $as_echo_n "(cached) " >&6
2283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2296 if ac_fn_c_try_compile
"$LINENO"; then :
2299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2306 if (sizeof ac_aggr.$3)
2312 if ac_fn_c_try_compile
"$LINENO"; then :
2317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323 $as_echo "$ac_res" >&6; }
2324 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2326 } # ac_fn_c_check_member
2327 cat >config.log
<<_ACEOF
2328 This file contains any messages produced by compilers while
2329 running configure, to aid debugging if configure makes a mistake.
2331 It was created by $as_me, which was
2332 generated by GNU Autoconf 2.69. Invocation command line was
2344 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2345 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2346 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2347 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2348 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2350 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2351 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2353 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2354 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2355 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2356 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2357 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2358 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2359 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir
=.
2368 $as_echo "PATH: $as_dir"
2384 # Keep a trace of the command line.
2385 # Strip out --no-create and --no-recursion so they do not pile up.
2386 # Strip out --silent because we don't want to record it for future runs.
2387 # Also quote any args containing shell meta-characters.
2388 # Make two passes to allow for proper duplicate-argument suppression.
2392 ac_must_keep_next
=false
2398 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2399 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2400 |
-silent |
--silent |
--silen |
--sile |
--sil)
2403 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2406 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2408 as_fn_append ac_configure_args1
" '$ac_arg'"
2409 if test $ac_must_keep_next = true
; then
2410 ac_must_keep_next
=false
# Got value, back to normal.
2413 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2414 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2415 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2416 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2417 case "$ac_configure_args0 " in
2418 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2421 -* ) ac_must_keep_next
=true
;;
2424 as_fn_append ac_configure_args
" '$ac_arg'"
2429 { ac_configure_args0
=; unset ac_configure_args0
;}
2430 { ac_configure_args1
=; unset ac_configure_args1
;}
2432 # When interrupted or exit'd, cleanup temporary files, and complete
2433 # config.log. We remove comments because anyway the quotes in there
2434 # would cause problems or look ugly.
2435 # WARNING: Use '\'' to represent an apostrophe within the trap.
2436 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2437 trap 'exit_status=$?
2438 # Save into config.log some information that might help in debugging.
2442 $as_echo "## ---------------- ##
2443 ## Cache variables. ##
2444 ## ---------------- ##"
2446 # The following way of writing the cache mishandles newlines in values,
2448 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2449 eval ac_val=\$$ac_var
2453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2454 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2457 _ | IFS | as_nl) ;; #(
2458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2459 *) { eval $ac_var=; unset $ac_var;} ;;
2464 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2465 *${as_nl}ac_space=\ *)
2467 "s/'\''/'\''\\\\'\'''\''/g;
2468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2478 $as_echo "## ----------------- ##
2479 ## Output variables. ##
2480 ## ----------------- ##"
2482 for ac_var in $ac_subst_vars
2484 eval ac_val=\$$ac_var
2486 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488 $as_echo "$ac_var='\''$ac_val'\''"
2492 if test -n "$ac_subst_files"; then
2493 $as_echo "## ------------------- ##
2494 ## File substitutions. ##
2495 ## ------------------- ##"
2497 for ac_var
in $ac_subst_files
2499 eval ac_val
=\$
$ac_var
2501 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2503 $as_echo "$ac_var='\''$ac_val'\''"
2508 if test -s confdefs.h; then
2509 $as_echo "## ----------- ##
2516 test "$ac_signal" != 0 &&
2517 $as_echo "$as_me: caught signal $ac_signal"
2518 $as_echo "$as_me: exit $exit_status"
2520 rm -f core *.core core.conftest.* &&
2521 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2524 for ac_signal
in 1 2 13 15; do
2525 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2529 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2530 rm -f -r conftest
* confdefs.h
2532 $as_echo "/* confdefs.h */" > confdefs.h
2534 # Predefined preprocessor variables.
2536 cat >>confdefs.h
<<_ACEOF
2537 #define PACKAGE_NAME "$PACKAGE_NAME"
2540 cat >>confdefs.h
<<_ACEOF
2541 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2544 cat >>confdefs.h
<<_ACEOF
2545 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2548 cat >>confdefs.h
<<_ACEOF
2549 #define PACKAGE_STRING "$PACKAGE_STRING"
2552 cat >>confdefs.h
<<_ACEOF
2553 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2556 cat >>confdefs.h
<<_ACEOF
2557 #define PACKAGE_URL "$PACKAGE_URL"
2561 # Let the site file select an alternate cache file if it wants to.
2562 # Prefer an explicitly selected file to automatically selected ones.
2565 if test -n "$CONFIG_SITE"; then
2566 # We do not want a PATH search for config.site.
2567 case $CONFIG_SITE in #((
2568 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2569 */*) ac_site_file1
=$CONFIG_SITE;;
2570 *) ac_site_file1
=.
/$CONFIG_SITE;;
2572 elif test "x$prefix" != xNONE
; then
2573 ac_site_file1
=$prefix/share
/config.site
2574 ac_site_file2
=$prefix/etc
/config.site
2576 ac_site_file1
=$ac_default_prefix/share
/config.site
2577 ac_site_file2
=$ac_default_prefix/etc
/config.site
2579 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2581 test "x$ac_site_file" = xNONE
&& continue
2582 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2584 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2585 sed 's/^/| /' "$ac_site_file" >&5
2587 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2589 as_fn_error $?
"failed to load site script $ac_site_file
2590 See \`config.log' for more details" "$LINENO" 5; }
2594 if test -r "$cache_file"; then
2595 # Some versions of bash will fail to source /dev/null (special files
2596 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2597 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2599 $as_echo "$as_me: loading cache $cache_file" >&6;}
2601 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2602 *) .
"./$cache_file";;
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2607 $as_echo "$as_me: creating cache $cache_file" >&6;}
2611 # Check that the precious variables saved in the cache have kept the same
2613 ac_cache_corrupted
=false
2614 for ac_var
in $ac_precious_vars; do
2615 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2616 eval ac_new_set
=\
$ac_env_${ac_var}_set
2617 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2618 eval ac_new_val
=\
$ac_env_${ac_var}_value
2619 case $ac_old_set,$ac_new_set in
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2623 ac_cache_corrupted
=: ;;
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2626 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2627 ac_cache_corrupted
=: ;;
2630 if test "x$ac_old_val" != "x$ac_new_val"; then
2631 # differences in whitespace do not lead to failure.
2632 ac_old_val_w
=`echo x $ac_old_val`
2633 ac_new_val_w
=`echo x $ac_new_val`
2634 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2636 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2637 ac_cache_corrupted
=:
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2640 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2641 eval $ac_var=\
$ac_old_val
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2644 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2646 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2649 # Pass precious variables to config.status.
2650 if test "$ac_new_set" = set; then
2652 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2653 *) ac_arg
=$ac_var=$ac_new_val ;;
2655 case " $ac_configure_args " in
2656 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2657 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2661 if $ac_cache_corrupted; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2665 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2666 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2668 ## -------------------- ##
2669 ## Main body of script. ##
2670 ## -------------------- ##
2673 ac_cpp
='$CPP $CPPFLAGS'
2674 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2682 ac_config_headers
="$ac_config_headers config.h:config.in"
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2687 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2688 # Check whether --enable-maintainer-mode was given.
2689 if test "${enable_maintainer_mode+set}" = set; then :
2690 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2692 USE_MAINTAINER_MODE
=no
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2696 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2697 if test $USE_MAINTAINER_MODE = yes; then
2698 MAINTAINER_MODE_TRUE
=
2699 MAINTAINER_MODE_FALSE
='#'
2701 MAINTAINER_MODE_TRUE
='#'
2702 MAINTAINER_MODE_FALSE
=
2705 MAINT
=$MAINTAINER_MODE_TRUE
2710 ac_cpp
='$CPP $CPPFLAGS'
2711 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2716 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_CC+:} false
; then :
2720 $as_echo_n "(cached) " >&6
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC
="$CC" # Let the user override the test.
2725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir
=.
2730 for ac_exec_ext
in '' $ac_executable_extensions; do
2731 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 if test -n "$CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2745 $as_echo "$CC" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2753 if test -z "$ac_cv_prog_CC"; then
2755 # Extract the first word of "gcc", so it can be a program name with args.
2756 set dummy gcc
; ac_word
=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir
=.
2770 for ac_exec_ext
in '' $ac_executable_extensions; do
2771 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_ac_ct_CC
="gcc"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2783 if test -n "$ac_ct_CC"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2785 $as_echo "$ac_ct_CC" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2791 if test "x$ac_ct_CC" = x
; then
2794 case $cross_compiling:$ac_tool_warned in
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798 ac_tool_warned
=yes ;;
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_CC+:} false
; then :
2813 $as_echo_n "(cached) " >&6
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC
="$CC" # Let the user override the test.
2818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir
=.
2823 for ac_exec_ext
in '' $ac_executable_extensions; do
2824 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838 $as_echo "$CC" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2847 if test -z "$CC"; then
2848 # Extract the first word of "cc", so it can be a program name with args.
2849 set dummy cc
; ac_word
=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_CC+:} false
; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC
="$CC" # Let the user override the test.
2859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir
=.
2864 for ac_exec_ext
in '' $ac_executable_extensions; do
2865 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2867 ac_prog_rejected
=yes
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 if test $ac_prog_rejected = yes; then
2879 # We found a bogon in the path, so make sure we never use it.
2880 set dummy
$ac_cv_prog_CC
2882 if test $# != 0; then
2883 # We chose a different compiler from the bogus one.
2884 # However, it has the same basename, so the bogon will be chosen
2885 # first if we set CC to just the basename; use the full file name.
2887 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2893 if test -n "$CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895 $as_echo "$CC" >&6; }
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2903 if test -z "$CC"; then
2904 if test -n "$ac_tool_prefix"; then
2905 for ac_prog
in cl.exe
2907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2908 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_CC+:} false
; then :
2912 $as_echo_n "(cached) " >&6
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC
="$CC" # Let the user override the test.
2917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2921 test -z "$as_dir" && as_dir
=.
2922 for ac_exec_ext
in '' $ac_executable_extensions; do
2923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2924 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test -n "$CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937 $as_echo "$CC" >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2944 test -n "$CC" && break
2947 if test -z "$CC"; then
2949 for ac_prog
in cl.exe
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy
$ac_prog; ac_word
=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2956 $as_echo_n "(cached) " >&6
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir
=.
2966 for ac_exec_ext
in '' $ac_executable_extensions; do
2967 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_ac_ct_CC
="$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2981 $as_echo "$ac_ct_CC" >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2988 test -n "$ac_ct_CC" && break
2991 if test "x$ac_ct_CC" = x
; then
2994 case $cross_compiling:$ac_tool_warned in
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2998 ac_tool_warned
=yes ;;
3007 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 as_fn_error $?
"no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details" "$LINENO" 5; }
3012 # Provide some information about the compiler.
3013 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3016 for ac_option
in --version -v -V -qversion; do
3017 { { ac_try
="$ac_compiler $ac_option >&5"
3019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3026 if test -s conftest.err; then
3028 ... rest of stderr output deleted ...
3029 10q' conftest.err >conftest.er1
3030 cat conftest.er1 >&5
3032 rm -f conftest.er1 conftest.err
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3048 ac_clean_files_save=$ac_clean_files
3049 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3050 # Try to create an executable without -o first, disregard a.out.
3051 # It will help us diagnose broken compilers, and finding out an intuition
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3054 $as_echo_n "checking whether the C compiler works... " >&6; }
3055 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3057 # The possible output files:
3058 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3061 for ac_file in $ac_files
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3065 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3070 if { { ac_try="$ac_link_default"
3072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3073 *) ac_try_echo
=$ac_try;;
3075 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link_default") 2>&5
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3082 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3083 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3084 # so that the user can short-circuit this test for compilers unknown to
3086 for ac_file
in $ac_files ''
3088 test -f "$ac_file" ||
continue
3090 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3093 # We found the default executable, but exeext='' is most
3097 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3099 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3101 # We set ac_cv_exeext here because the later test for it is not
3102 # safe: cross compilers may not add the suffix if given an `-o'
3103 # argument, so we may need to know it at that point already.
3104 # Even if this section looks crufty: it has the advantage of
3111 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3116 if test -z "$ac_file"; then :
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 $as_echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.
$ac_ext >&5
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error
77 "C compiler cannot create executables
3125 See \`config.log' for more details" "$LINENO" 5; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3128 $as_echo "yes" >&6; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3131 $as_echo_n "checking for C compiler default output file name... " >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3133 $as_echo "$ac_file" >&6; }
3134 ac_exeext
=$ac_cv_exeext
3136 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3137 ac_clean_files
=$ac_clean_files_save
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3139 $as_echo_n "checking for suffix of executables... " >&6; }
3140 if { { ac_try
="$ac_link"
3142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_link") 2>&5
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }; then :
3151 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3152 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3153 # work properly (i.e., refer to `conftest.exe'), while it won't with
3155 for ac_file
in conftest.exe conftest conftest.
*; do
3156 test -f "$ac_file" ||
continue
3158 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3159 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3168 See \`config.log' for more details" "$LINENO" 5; }
3170 rm -f conftest conftest
$ac_cv_exeext
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3172 $as_echo "$ac_cv_exeext" >&6; }
3174 rm -f conftest.
$ac_ext
3175 EXEEXT
=$ac_cv_exeext
3177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3183 FILE *f = fopen ("conftest.out", "w");
3184 return ferror (f) || fclose (f) != 0;
3190 ac_clean_files
="$ac_clean_files conftest.out"
3191 # Check that the compiler produces executables we can run. If not, either
3192 # the compiler is broken, or we cross compile.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3194 $as_echo_n "checking whether we are cross compiling... " >&6; }
3195 if test "$cross_compiling" != yes; then
3196 { { ac_try
="$ac_link"
3198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_link") 2>&5
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }
3207 if { ac_try='./conftest$ac_cv_exeext'
3208 { { case "(($ac_try" in
3209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3210 *) ac_try_echo
=$ac_try;;
3212 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_try") 2>&5
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; }; then
3220 if test "$cross_compiling" = maybe
; then
3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error $?
"cannot run C compiled programs.
3226 If you meant to cross compile, use \`--host'.
3227 See \`config.log' for more details" "$LINENO" 5; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3232 $as_echo "$cross_compiling" >&6; }
3234 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3235 ac_clean_files
=$ac_clean_files_save
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3237 $as_echo_n "checking for suffix of object files... " >&6; }
3238 if ${ac_cv_objext+:} false
; then :
3239 $as_echo_n "(cached) " >&6
3241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3252 rm -f conftest.o conftest.obj
3253 if { { ac_try
="$ac_compile"
3255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_compile") 2>&5
3262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263 test $ac_status = 0; }; then :
3264 for ac_file in conftest.o conftest.obj conftest.*; do
3265 test -f "$ac_file" || continue;
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3279 See \
`config.log' for more details" "$LINENO" 5; }
3281 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3284 $as_echo "$ac_cv_objext" >&6; }
3285 OBJEXT=$ac_cv_objext
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3288 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3289 if ${ac_cv_c_compiler_gnu+:} false; then :
3290 $as_echo_n "(cached) " >&6
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3306 if ac_fn_c_try_compile "$LINENO"; then :
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3316 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3317 if test $ac_compiler_gnu = yes; then
3322 ac_test_CFLAGS=${CFLAGS+set}
3323 ac_save_CFLAGS=$CFLAGS
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3325 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3326 if ${ac_cv_prog_cc_g+:} false; then :
3327 $as_echo_n "(cached) " >&6
3329 ac_save_c_werror_flag=$ac_c_werror_flag
3330 ac_c_werror_flag=yes
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3344 if ac_fn_c_try_compile "$LINENO"; then :
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3359 if ac_fn_c_try_compile "$LINENO"; then :
3362 ac_c_werror_flag=$ac_save_c_werror_flag
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3375 if ac_fn_c_try_compile "$LINENO"; then :
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 ac_c_werror_flag=$ac_save_c_werror_flag
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3386 $as_echo "$ac_cv_prog_cc_g" >&6; }
3387 if test "$ac_test_CFLAGS" = set; then
3388 CFLAGS=$ac_save_CFLAGS
3389 elif test $ac_cv_prog_cc_g = yes; then
3390 if test "$GCC" = yes; then
3396 if test "$GCC" = yes; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3403 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3404 if ${ac_cv_prog_cc_c89+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 ac_cv_prog_cc_c89=no
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3414 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3415 struct buf { int x; };
3416 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3417 static char *e (p, i)
3423 static char *f (char * (*g) (char **, int), char **p, ...)
3428 s = g (p, va_arg (v,int));
3433 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3434 function prototypes and stuff, but not '\xHH' hex character constants.
3435 These don't provoke an error unfortunately, instead are silently treated
3436 as 'x'. The following induces an error, until -std is added to get
3437 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3438 array size at least. It's necessary to write '\x00'==0 to get something
3439 that's true only with -std. */
3440 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3442 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3443 inside strings and character constants. */
3445 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3447 int test (int i, double x);
3448 struct s1 {int (*f) (int a);};
3449 struct s2 {int (*f) (double a);};
3450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3456 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3461 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3462 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3464 CC="$ac_save_CC $ac_arg"
3465 if ac_fn_c_try_compile "$LINENO"; then :
3466 ac_cv_prog_cc_c89=$ac_arg
3468 rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
3471 rm -f conftest.$ac_ext
3476 case "x$ac_cv_prog_cc_c89" in
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3479 $as_echo "none needed" >&6; } ;;
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3482 $as_echo "unsupported" >&6; } ;;
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3486 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3488 if test "x$ac_cv_prog_cc_c89" != xno; then :
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 ac_cpp='$CXXCPP $CPPFLAGS'
3500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3503 if test -z "$CXX"; then
3504 if test -n "$CCC"; then
3507 if test -n "$ac_tool_prefix"; then
3508 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if ${ac_cv_prog_CXX+:} false; then :
3515 $as_echo_n "(cached) " >&6
3517 if test -n "$CXX"; then
3518 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 if test -n "$CXX"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3540 $as_echo "$CXX" >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3547 test -n "$CXX" && break
3550 if test -z "$CXX"; then
3552 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3554 # Extract the first word of "$ac_prog", so it can be a program name with args.
3555 set dummy $ac_prog; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 if test -n "$ac_ct_CXX"; then
3562 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_ac_ct_CXX="$ac_prog"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3582 if test -n "$ac_ct_CXX"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3584 $as_echo "$ac_ct_CXX" >&6; }
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3591 test -n "$ac_ct_CXX" && break
3594 if test "x$ac_ct_CXX" = x; then
3597 case $cross_compiling:$ac_tool_warned in
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3609 # Provide some information about the compiler.
3610 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3613 for ac_option in --version -v -V -qversion; do
3614 { { ac_try="$ac_compiler $ac_option >&5"
3616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3617 *) ac_try_echo
=$ac_try;;
3619 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3623 if test -s conftest.err
; then
3625 ... rest of stderr output deleted ...
3626 10q' conftest.err
>conftest.er1
3627 cat conftest.er1
>&5
3629 rm -f conftest.er1 conftest.err
3630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631 test $ac_status = 0; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3635 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3636 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3637 $as_echo_n "(cached) " >&6
3639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3653 if ac_fn_cxx_try_compile
"$LINENO"; then :
3658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3659 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3663 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3664 if test $ac_compiler_gnu = yes; then
3669 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3670 ac_save_CXXFLAGS
=$CXXFLAGS
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3672 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3673 if ${ac_cv_prog_cxx_g+:} false
; then :
3674 $as_echo_n "(cached) " >&6
3676 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3677 ac_cxx_werror_flag
=yes
3680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3691 if ac_fn_cxx_try_compile
"$LINENO"; then :
3692 ac_cv_prog_cxx_g
=yes
3695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3706 if ac_fn_cxx_try_compile
"$LINENO"; then :
3709 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3722 if ac_fn_cxx_try_compile
"$LINENO"; then :
3723 ac_cv_prog_cxx_g
=yes
3725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3730 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3733 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3734 if test "$ac_test_CXXFLAGS" = set; then
3735 CXXFLAGS
=$ac_save_CXXFLAGS
3736 elif test $ac_cv_prog_cxx_g = yes; then
3737 if test "$GXX" = yes; then
3743 if test "$GXX" = yes; then
3750 ac_cpp
='$CPP $CPPFLAGS'
3751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3757 ac_cpp
='$CPP $CPPFLAGS'
3758 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3762 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3763 # On Suns, sometimes $CPP names a directory.
3764 if test -n "$CPP" && test -d "$CPP"; then
3767 if test -z "$CPP"; then
3768 if ${ac_cv_prog_CPP+:} false
; then :
3769 $as_echo_n "(cached) " >&6
3771 # Double quotes because CPP needs to be expanded
3772 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3775 for ac_c_preproc_warn_flag
in '' yes
3777 # Use a header file that comes with gcc, so configuring glibc
3778 # with a fresh cross-compiler works.
3779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3780 # <limits.h> exists even on freestanding compilers.
3781 # On the NeXT, cc -E runs the code through the compiler's parser,
3782 # not just through cpp. "Syntax error" is here to catch this case.
3783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3786 # include <limits.h>
3788 # include <assert.h>
3792 if ac_fn_c_try_cpp
"$LINENO"; then :
3795 # Broken: fails on valid input.
3798 rm -f conftest.err conftest.i conftest.
$ac_ext
3800 # OK, works on sane cases. Now check whether nonexistent headers
3801 # can be detected and how.
3802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804 #include <ac_nonexistent.h>
3806 if ac_fn_c_try_cpp
"$LINENO"; then :
3807 # Broken: success on invalid input.
3810 # Passes both tests.
3814 rm -f conftest.err conftest.i conftest.
$ac_ext
3817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3818 rm -f conftest.i conftest.err conftest.
$ac_ext
3819 if $ac_preproc_ok; then :
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3832 $as_echo "$CPP" >&6; }
3834 for ac_c_preproc_warn_flag
in '' yes
3836 # Use a header file that comes with gcc, so configuring glibc
3837 # with a fresh cross-compiler works.
3838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3839 # <limits.h> exists even on freestanding compilers.
3840 # On the NeXT, cc -E runs the code through the compiler's parser,
3841 # not just through cpp. "Syntax error" is here to catch this case.
3842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3845 # include <limits.h>
3847 # include <assert.h>
3851 if ac_fn_c_try_cpp
"$LINENO"; then :
3854 # Broken: fails on valid input.
3857 rm -f conftest.err conftest.i conftest.
$ac_ext
3859 # OK, works on sane cases. Now check whether nonexistent headers
3860 # can be detected and how.
3861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863 #include <ac_nonexistent.h>
3865 if ac_fn_c_try_cpp
"$LINENO"; then :
3866 # Broken: success on invalid input.
3869 # Passes both tests.
3873 rm -f conftest.err conftest.i conftest.
$ac_ext
3876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3877 rm -f conftest.i conftest.err conftest.
$ac_ext
3878 if $ac_preproc_ok; then :
3881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3884 See \`config.log' for more details" "$LINENO" 5; }
3888 ac_cpp
='$CPP $CPPFLAGS'
3889 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3895 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3896 if ${ac_cv_path_GREP+:} false
; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -z "$GREP"; then
3900 ac_path_GREP_found
=false
3901 # Loop through the user's path and test for each of PROGNAME-LIST
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3903 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_prog
in grep ggrep
; do
3908 for ac_exec_ext
in '' $ac_executable_extensions; do
3909 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3910 as_fn_executable_p
"$ac_path_GREP" ||
continue
3911 # Check for GNU ac_path_GREP and select it if it is found.
3912 # Check for GNU $ac_path_GREP
3913 case `"$ac_path_GREP" --version 2>&1` in
3915 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3918 $as_echo_n 0123456789 >"conftest.in"
3921 cat "conftest.in" "conftest.in" >"conftest.tmp"
3922 mv "conftest.tmp" "conftest.in"
3923 cp "conftest.in" "conftest.nl"
3924 $as_echo 'GREP' >> "conftest.nl"
3925 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3926 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3927 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3928 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3929 # Best one so far, save it but keep looking for a better one
3930 ac_cv_path_GREP
="$ac_path_GREP"
3931 ac_path_GREP_max
=$ac_count
3933 # 10*(2^10) chars as input seems more than enough
3934 test $ac_count -gt 10 && break
3936 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3939 $ac_path_GREP_found && break 3
3944 if test -z "$ac_cv_path_GREP"; then
3945 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3948 ac_cv_path_GREP
=$GREP
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3953 $as_echo "$ac_cv_path_GREP" >&6; }
3954 GREP
="$ac_cv_path_GREP"
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3958 $as_echo_n "checking for egrep... " >&6; }
3959 if ${ac_cv_path_EGREP+:} false
; then :
3960 $as_echo_n "(cached) " >&6
3962 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3963 then ac_cv_path_EGREP
="$GREP -E"
3965 if test -z "$EGREP"; then
3966 ac_path_EGREP_found
=false
3967 # Loop through the user's path and test for each of PROGNAME-LIST
3968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3969 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3972 test -z "$as_dir" && as_dir
=.
3973 for ac_prog
in egrep; do
3974 for ac_exec_ext
in '' $ac_executable_extensions; do
3975 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3976 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3977 # Check for GNU ac_path_EGREP and select it if it is found.
3978 # Check for GNU $ac_path_EGREP
3979 case `"$ac_path_EGREP" --version 2>&1` in
3981 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3984 $as_echo_n 0123456789 >"conftest.in"
3987 cat "conftest.in" "conftest.in" >"conftest.tmp"
3988 mv "conftest.tmp" "conftest.in"
3989 cp "conftest.in" "conftest.nl"
3990 $as_echo 'EGREP' >> "conftest.nl"
3991 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3992 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3993 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3994 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3995 # Best one so far, save it but keep looking for a better one
3996 ac_cv_path_EGREP
="$ac_path_EGREP"
3997 ac_path_EGREP_max
=$ac_count
3999 # 10*(2^10) chars as input seems more than enough
4000 test $ac_count -gt 10 && break
4002 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4005 $ac_path_EGREP_found && break 3
4010 if test -z "$ac_cv_path_EGREP"; then
4011 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4014 ac_cv_path_EGREP
=$EGREP
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4020 $as_echo "$ac_cv_path_EGREP" >&6; }
4021 EGREP
="$ac_cv_path_EGREP"
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4025 $as_echo_n "checking for ANSI C header files... " >&6; }
4026 if ${ac_cv_header_stdc+:} false
; then :
4027 $as_echo_n "(cached) " >&6
4029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4044 if ac_fn_c_try_compile
"$LINENO"; then :
4045 ac_cv_header_stdc
=yes
4047 ac_cv_header_stdc
=no
4049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4051 if test $ac_cv_header_stdc = yes; then
4052 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4059 $EGREP "memchr" >/dev
/null
2>&1; then :
4062 ac_cv_header_stdc
=no
4068 if test $ac_cv_header_stdc = yes; then
4069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4076 $EGREP "free" >/dev
/null
2>&1; then :
4079 ac_cv_header_stdc
=no
4085 if test $ac_cv_header_stdc = yes; then
4086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4087 if test "$cross_compiling" = yes; then :
4090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4094 #if ((' ' & 0x0FF) == 0x020)
4095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4098 # define ISLOWER(c) \
4099 (('a' <= (c) && (c) <= 'i') \
4100 || ('j' <= (c) && (c) <= 'r') \
4101 || ('s' <= (c) && (c) <= 'z'))
4102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4110 for (i = 0; i < 256; i++)
4111 if (XOR (islower (i), ISLOWER (i))
4112 || toupper (i) != TOUPPER (i))
4117 if ac_fn_c_try_run
"$LINENO"; then :
4120 ac_cv_header_stdc
=no
4122 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4123 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4129 $as_echo "$ac_cv_header_stdc" >&6; }
4130 if test $ac_cv_header_stdc = yes; then
4132 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4136 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4137 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4138 inttypes.h stdint.h unistd.h
4140 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4141 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4143 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4144 cat >>confdefs.h
<<_ACEOF
4145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4154 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4155 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4162 if test "$MINIX" = yes; then
4164 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4167 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4170 $as_echo "#define _MINIX 1" >>confdefs.h
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4176 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4177 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4178 $as_echo_n "(cached) " >&6
4180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4183 # define __EXTENSIONS__ 1
4184 $ac_includes_default
4193 if ac_fn_c_try_compile
"$LINENO"; then :
4194 ac_cv_safe_to_define___extensions__
=yes
4196 ac_cv_safe_to_define___extensions__
=no
4198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4201 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4202 test $ac_cv_safe_to_define___extensions__ = yes &&
4203 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4205 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4207 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4209 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4211 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4215 # Check whether --enable-largefile was given.
4216 if test "${enable_largefile+set}" = set; then :
4217 enableval
=$enable_largefile;
4220 if test "$enable_largefile" != no
; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4223 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4224 if ${ac_cv_sys_largefile_CC+:} false
; then :
4225 $as_echo_n "(cached) " >&6
4227 ac_cv_sys_largefile_CC
=no
4228 if test "$GCC" != yes; then
4231 # IRIX 6.2 and later do not support large files by default,
4232 # so use the C compiler's -n32 option if that helps.
4233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 #include <sys/types.h>
4236 /* Check that off_t can represent 2**63 - 1 correctly.
4237 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4238 since some C++ compilers masquerading as C compilers
4239 incorrectly reject 9223372036854775807. */
4240 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4242 && LARGE_OFF_T % 2147483647 == 1)
4252 if ac_fn_c_try_compile
"$LINENO"; then :
4255 rm -f core conftest.err conftest.
$ac_objext
4257 if ac_fn_c_try_compile
"$LINENO"; then :
4258 ac_cv_sys_largefile_CC
=' -n32'; break
4260 rm -f core conftest.err conftest.
$ac_objext
4264 rm -f conftest.
$ac_ext
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4268 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4269 if test "$ac_cv_sys_largefile_CC" != no
; then
4270 CC
=$CC$ac_cv_sys_largefile_CC
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4274 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4275 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4276 $as_echo_n "(cached) " >&6
4279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 #include <sys/types.h>
4282 /* Check that off_t can represent 2**63 - 1 correctly.
4283 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4284 since some C++ compilers masquerading as C compilers
4285 incorrectly reject 9223372036854775807. */
4286 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4287 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4288 && LARGE_OFF_T % 2147483647 == 1)
4298 if ac_fn_c_try_compile
"$LINENO"; then :
4299 ac_cv_sys_file_offset_bits
=no
; break
4301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #define _FILE_OFFSET_BITS 64
4305 #include <sys/types.h>
4306 /* Check that off_t can represent 2**63 - 1 correctly.
4307 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4308 since some C++ compilers masquerading as C compilers
4309 incorrectly reject 9223372036854775807. */
4310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4312 && LARGE_OFF_T % 2147483647 == 1)
4322 if ac_fn_c_try_compile
"$LINENO"; then :
4323 ac_cv_sys_file_offset_bits
=64; break
4325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4326 ac_cv_sys_file_offset_bits
=unknown
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4331 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4332 case $ac_cv_sys_file_offset_bits in #(
4335 cat >>confdefs.h
<<_ACEOF
4336 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4341 if test $ac_cv_sys_file_offset_bits = unknown
; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4343 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4344 if ${ac_cv_sys_large_files+:} false
; then :
4345 $as_echo_n "(cached) " >&6
4348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #include <sys/types.h>
4351 /* Check that off_t can represent 2**63 - 1 correctly.
4352 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4353 since some C++ compilers masquerading as C compilers
4354 incorrectly reject 9223372036854775807. */
4355 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4357 && LARGE_OFF_T % 2147483647 == 1)
4367 if ac_fn_c_try_compile
"$LINENO"; then :
4368 ac_cv_sys_large_files
=no
; break
4370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #define _LARGE_FILES 1
4374 #include <sys/types.h>
4375 /* Check that off_t can represent 2**63 - 1 correctly.
4376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4377 since some C++ compilers masquerading as C compilers
4378 incorrectly reject 9223372036854775807. */
4379 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4381 && LARGE_OFF_T % 2147483647 == 1)
4391 if ac_fn_c_try_compile
"$LINENO"; then :
4392 ac_cv_sys_large_files
=1; break
4394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4395 ac_cv_sys_large_files
=unknown
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4400 $as_echo "$ac_cv_sys_large_files" >&6; }
4401 case $ac_cv_sys_large_files in #(
4404 cat >>confdefs.h
<<_ACEOF
4405 #define _LARGE_FILES $ac_cv_sys_large_files
4417 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4418 if test -f "$ac_dir/install-sh"; then
4420 ac_install_sh
="$ac_aux_dir/install-sh -c"
4422 elif test -f "$ac_dir/install.sh"; then
4424 ac_install_sh
="$ac_aux_dir/install.sh -c"
4426 elif test -f "$ac_dir/shtool"; then
4428 ac_install_sh
="$ac_aux_dir/shtool install -c"
4432 if test -z "$ac_aux_dir"; then
4433 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4436 # These three variables are undocumented and unsupported,
4437 # and are intended to be withdrawn in a future Autoconf release.
4438 # They can cause serious problems if a builder's source tree is in a directory
4439 # whose full name contains unusual characters.
4440 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4441 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4442 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4445 # Make sure we can run config.sub.
4446 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4447 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4450 $as_echo_n "checking build system type... " >&6; }
4451 if ${ac_cv_build+:} false
; then :
4452 $as_echo_n "(cached) " >&6
4454 ac_build_alias
=$build_alias
4455 test "x$ac_build_alias" = x
&&
4456 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4457 test "x$ac_build_alias" = x
&&
4458 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4459 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4460 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4464 $as_echo "$ac_cv_build" >&6; }
4465 case $ac_cv_build in
4467 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4470 ac_save_IFS
=$IFS; IFS
='-'
4476 # Remember, the first character of IFS is used to create $*,
4477 # except with old shells:
4480 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4484 $as_echo_n "checking host system type... " >&6; }
4485 if ${ac_cv_host+:} false
; then :
4486 $as_echo_n "(cached) " >&6
4488 if test "x$host_alias" = x
; then
4489 ac_cv_host
=$ac_cv_build
4491 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4492 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4497 $as_echo "$ac_cv_host" >&6; }
4500 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4503 ac_save_IFS
=$IFS; IFS
='-'
4509 # Remember, the first character of IFS is used to create $*,
4510 # except with old shells:
4513 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4517 $as_echo_n "checking target system type... " >&6; }
4518 if ${ac_cv_target+:} false
; then :
4519 $as_echo_n "(cached) " >&6
4521 if test "x$target_alias" = x
; then
4522 ac_cv_target
=$ac_cv_host
4524 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4525 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4530 $as_echo "$ac_cv_target" >&6; }
4531 case $ac_cv_target in
4533 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4535 target
=$ac_cv_target
4536 ac_save_IFS
=$IFS; IFS
='-'
4542 # Remember, the first character of IFS is used to create $*,
4543 # except with old shells:
4546 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4549 # The aliases save the names the user supplied, while $host etc.
4550 # will get canonicalized.
4551 test -n "$target_alias" &&
4552 test "$program_prefix$program_suffix$program_transform_name" = \
4554 program_prefix
=${target_alias}-
4557 # Find a good install program. We prefer a C program (faster),
4558 # so one script is as good as another. But avoid the broken or
4559 # incompatible versions:
4560 # SysV /etc/install, /usr/sbin/install
4561 # SunOS /usr/etc/install
4562 # IRIX /sbin/install
4564 # AmigaOS /C/install, which installs bootblocks on floppy discs
4565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4568 # OS/2's system install, which has a completely different semantic
4569 # ./install, which can be erroneously created by make from ./install.sh.
4570 # Reject install programs that cannot install multiple files.
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4572 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4573 if test -z "$INSTALL"; then
4574 if ${ac_cv_path_install+:} false
; then :
4575 $as_echo_n "(cached) " >&6
4577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir
=.
4582 # Account for people who put trailing slashes in PATH elements.
4583 case $as_dir/ in #((
4584 .
/ | .
// |
/[cC
]/* | \
4585 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4586 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4589 # OSF1 and SCO ODT 3.0 have their own names for install.
4590 # Don't use installbsd from OSF since it installs stuff as root
4592 for ac_prog
in ginstall scoinst
install; do
4593 for ac_exec_ext
in '' $ac_executable_extensions; do
4594 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4595 if test $ac_prog = install &&
4596 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4597 # AIX install. It has an incompatible calling convention.
4599 elif test $ac_prog = install &&
4600 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4601 # program-specific install script used by HP pwplus--don't use.
4604 rm -rf conftest.one conftest.two conftest.dir
4605 echo one
> conftest.one
4606 echo two
> conftest.two
4608 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4609 test -s conftest.one
&& test -s conftest.two
&&
4610 test -s conftest.dir
/conftest.one
&&
4611 test -s conftest.dir
/conftest.two
4613 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4626 rm -rf conftest.one conftest.two conftest.dir
4629 if test "${ac_cv_path_install+set}" = set; then
4630 INSTALL
=$ac_cv_path_install
4632 # As a last resort, use the slow shell script. Don't cache a
4633 # value for INSTALL within a source directory, because that will
4634 # break other packages using the cache if that directory is
4635 # removed, or if the value is a relative name.
4636 INSTALL
=$ac_install_sh
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4640 $as_echo "$INSTALL" >&6; }
4642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4643 # It thinks the first close brace ends the variable substitution.
4644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4648 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4650 if test -n "$ac_tool_prefix"; then
4651 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4652 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_prog_AR+:} false
; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$AR"; then
4659 ac_cv_prog_AR
="$AR" # Let the user override the test.
4661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir
=.
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 if test -n "$AR"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4681 $as_echo "$AR" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4689 if test -z "$ac_cv_prog_AR"; then
4691 # Extract the first word of "ar", so it can be a program name with args.
4692 set dummy
ar; ac_word
=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -n "$ac_ct_AR"; then
4699 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir
=.
4706 for ac_exec_ext
in '' $ac_executable_extensions; do
4707 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_ac_ct_AR
="ar"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4719 if test -n "$ac_ct_AR"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4721 $as_echo "$ac_ct_AR" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4727 if test "x$ac_ct_AR" = x
; then
4730 case $cross_compiling:$ac_tool_warned in
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734 ac_tool_warned
=yes ;;
4742 if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4744 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if ${ac_cv_prog_RANLIB+:} false
; then :
4748 $as_echo_n "(cached) " >&6
4750 if test -n "$RANLIB"; then
4751 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir
=.
4758 for ac_exec_ext
in '' $ac_executable_extensions; do
4759 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4760 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 RANLIB
=$ac_cv_prog_RANLIB
4771 if test -n "$RANLIB"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4773 $as_echo "$RANLIB" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4781 if test -z "$ac_cv_prog_RANLIB"; then
4782 ac_ct_RANLIB
=$RANLIB
4783 # Extract the first word of "ranlib", so it can be a program name with args.
4784 set dummy ranlib
; ac_word
=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4788 $as_echo_n "(cached) " >&6
4790 if test -n "$ac_ct_RANLIB"; then
4791 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir
=.
4798 for ac_exec_ext
in '' $ac_executable_extensions; do
4799 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4800 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4811 if test -n "$ac_ct_RANLIB"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4813 $as_echo "$ac_ct_RANLIB" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4819 if test "x$ac_ct_RANLIB" = x
; then
4822 case $cross_compiling:$ac_tool_warned in
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned
=yes ;;
4828 RANLIB
=$ac_ct_RANLIB
4831 RANLIB
="$ac_cv_prog_RANLIB"
4835 test "$program_prefix" != NONE
&&
4836 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4837 # Use a double $ so make ignores it.
4838 test "$program_suffix" != NONE
&&
4839 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4840 # Double any \ or $.
4841 # By default was `s,x,x', remove it if useless.
4842 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4843 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4846 # We require a C++11 compiler. Check if one is available, and if
4847 # necessary, set CXX_DIALECT to some -std=xxx switch.
4849 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
4851 ac_cpp
='$CXXCPP $CPPFLAGS'
4852 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4858 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4859 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
4860 $as_echo_n "(cached) " >&6
4862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4866 // If the compiler admits that it is not ready for C++11, why torture it?
4867 // Hopefully, this will speed up the test.
4871 #error "This is not a C++ compiler"
4873 #elif __cplusplus < 201103L
4875 #error "This is not a C++11 compiler"
4882 namespace test_static_assert
4885 template <typename T>
4888 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4893 namespace test_final_override
4901 struct Derived : public Base
4903 virtual void f() override {}
4908 namespace test_double_right_angle_brackets
4911 template < typename T >
4914 typedef check<void> single_type;
4915 typedef check<check<void>> double_type;
4916 typedef check<check<check<void>>> triple_type;
4917 typedef check<check<check<check<void>>>> quadruple_type;
4921 namespace test_decltype
4934 namespace test_type_deduction
4937 template < typename T1, typename T2 >
4940 static const bool value = false;
4943 template < typename T >
4944 struct is_same<T, T>
4946 static const bool value = true;
4949 template < typename T1, typename T2 >
4951 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4957 test(const int c, volatile int v)
4959 static_assert(is_same<int, decltype(0)>::value == true, "");
4960 static_assert(is_same<int, decltype(c)>::value == false, "");
4961 static_assert(is_same<int, decltype(v)>::value == false, "");
4964 auto sumi = ac + av + 'x';
4965 auto sumf = ac + av + 1.0;
4966 static_assert(is_same<int, decltype(ac)>::value == true, "");
4967 static_assert(is_same<int, decltype(av)>::value == true, "");
4968 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4969 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4970 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4971 return (sumf > 0.0) ? sumi : add(c, v);
4976 namespace test_noexcept
4979 int f() { return 0; }
4980 int g() noexcept { return 0; }
4982 static_assert(noexcept(f()) == false, "");
4983 static_assert(noexcept(g()) == true, "");
4987 namespace test_constexpr
4990 template < typename CharT >
4991 unsigned long constexpr
4992 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4994 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4997 template < typename CharT >
4998 unsigned long constexpr
4999 strlen_c(const CharT *const s) noexcept
5001 return strlen_c_r(s, 0UL);
5004 static_assert(strlen_c("") == 0UL, "");
5005 static_assert(strlen_c("1") == 1UL, "");
5006 static_assert(strlen_c("example") == 7UL, "");
5007 static_assert(strlen_c("another\0example") == 7UL, "");
5011 namespace test_rvalue_references
5017 static constexpr int value = N;
5020 answer<1> f(int&) { return answer<1>(); }
5021 answer<2> f(const int&) { return answer<2>(); }
5022 answer<3> f(int&&) { return answer<3>(); }
5029 static_assert(decltype(f(i))::value == 1, "");
5030 static_assert(decltype(f(c))::value == 2, "");
5031 static_assert(decltype(f(0))::value == 3, "");
5036 namespace test_uniform_initialization
5041 static const int zero {};
5042 static const int one {1};
5045 static_assert(test::zero == 0, "");
5046 static_assert(test::one == 1, "");
5050 namespace test_lambdas
5056 auto lambda1 = [](){};
5057 auto lambda2 = lambda1;
5065 auto a = [](int i, int j){ return i + j; }(1, 2);
5066 auto b = []() -> int { return '0'; }();
5067 auto c = [=](){ return a + b; }();
5068 auto d = [&](){ return c; }();
5069 auto e = [a, &b](int x) mutable {
5070 const auto identity = [](int y){ return y; };
5071 for (auto i = 0; i < a; ++i)
5073 return x + identity(a + b);
5075 return a + b + c + d + e;
5081 const auto nullary = [](){ return 0; };
5082 const auto unary = [](int x){ return x; };
5083 using nullary_t = decltype(nullary);
5084 using unary_t = decltype(unary);
5085 const auto higher1st = [](nullary_t f){ return f(); };
5086 const auto higher2nd = [unary](nullary_t f1){
5087 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5089 return higher1st(nullary) + higher2nd(nullary)(unary);
5094 namespace test_variadic_templates
5100 template <int N0, int... N1toN>
5101 struct sum<N0, N1toN...>
5103 static constexpr auto value = N0 + sum<N1toN...>::value;
5109 static constexpr auto value = 0;
5112 static_assert(sum<>::value == 0, "");
5113 static_assert(sum<1>::value == 1, "");
5114 static_assert(sum<23>::value == 23, "");
5115 static_assert(sum<1, 2>::value == 3, "");
5116 static_assert(sum<5, 5, 11>::value == 21, "");
5117 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5121 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5122 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5124 namespace test_template_alias_sfinae
5129 template<typename T>
5130 using member = typename T::member_type;
5132 template<typename T>
5135 template<typename T>
5136 void func(member<T>*) {}
5140 void test() { func<foo>(0); }
5144 } // namespace cxx11
5146 #endif // __cplusplus >= 201103L
5151 if ac_fn_cxx_try_compile
"$LINENO"; then :
5152 ax_cv_cxx_compile_cxx11
=yes
5154 ax_cv_cxx_compile_cxx11
=no
5156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5159 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5160 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5164 if test x
$ac_success = xno
; then
5165 for alternative
in ${ax_cxx_compile_alternatives}; do
5166 switch
="-std=gnu++${alternative}"
5167 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5169 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5170 if eval \
${$cachevar+:} false
; then :
5171 $as_echo_n "(cached) " >&6
5175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5179 // If the compiler admits that it is not ready for C++11, why torture it?
5180 // Hopefully, this will speed up the test.
5184 #error "This is not a C++ compiler"
5186 #elif __cplusplus < 201103L
5188 #error "This is not a C++11 compiler"
5195 namespace test_static_assert
5198 template <typename T>
5201 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5206 namespace test_final_override
5214 struct Derived : public Base
5216 virtual void f() override {}
5221 namespace test_double_right_angle_brackets
5224 template < typename T >
5227 typedef check<void> single_type;
5228 typedef check<check<void>> double_type;
5229 typedef check<check<check<void>>> triple_type;
5230 typedef check<check<check<check<void>>>> quadruple_type;
5234 namespace test_decltype
5247 namespace test_type_deduction
5250 template < typename T1, typename T2 >
5253 static const bool value = false;
5256 template < typename T >
5257 struct is_same<T, T>
5259 static const bool value = true;
5262 template < typename T1, typename T2 >
5264 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5270 test(const int c, volatile int v)
5272 static_assert(is_same<int, decltype(0)>::value == true, "");
5273 static_assert(is_same<int, decltype(c)>::value == false, "");
5274 static_assert(is_same<int, decltype(v)>::value == false, "");
5277 auto sumi = ac + av + 'x';
5278 auto sumf = ac + av + 1.0;
5279 static_assert(is_same<int, decltype(ac)>::value == true, "");
5280 static_assert(is_same<int, decltype(av)>::value == true, "");
5281 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5282 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5283 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5284 return (sumf > 0.0) ? sumi : add(c, v);
5289 namespace test_noexcept
5292 int f() { return 0; }
5293 int g() noexcept { return 0; }
5295 static_assert(noexcept(f()) == false, "");
5296 static_assert(noexcept(g()) == true, "");
5300 namespace test_constexpr
5303 template < typename CharT >
5304 unsigned long constexpr
5305 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5307 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5310 template < typename CharT >
5311 unsigned long constexpr
5312 strlen_c(const CharT *const s) noexcept
5314 return strlen_c_r(s, 0UL);
5317 static_assert(strlen_c("") == 0UL, "");
5318 static_assert(strlen_c("1") == 1UL, "");
5319 static_assert(strlen_c("example") == 7UL, "");
5320 static_assert(strlen_c("another\0example") == 7UL, "");
5324 namespace test_rvalue_references
5330 static constexpr int value = N;
5333 answer<1> f(int&) { return answer<1>(); }
5334 answer<2> f(const int&) { return answer<2>(); }
5335 answer<3> f(int&&) { return answer<3>(); }
5342 static_assert(decltype(f(i))::value == 1, "");
5343 static_assert(decltype(f(c))::value == 2, "");
5344 static_assert(decltype(f(0))::value == 3, "");
5349 namespace test_uniform_initialization
5354 static const int zero {};
5355 static const int one {1};
5358 static_assert(test::zero == 0, "");
5359 static_assert(test::one == 1, "");
5363 namespace test_lambdas
5369 auto lambda1 = [](){};
5370 auto lambda2 = lambda1;
5378 auto a = [](int i, int j){ return i + j; }(1, 2);
5379 auto b = []() -> int { return '0'; }();
5380 auto c = [=](){ return a + b; }();
5381 auto d = [&](){ return c; }();
5382 auto e = [a, &b](int x) mutable {
5383 const auto identity = [](int y){ return y; };
5384 for (auto i = 0; i < a; ++i)
5386 return x + identity(a + b);
5388 return a + b + c + d + e;
5394 const auto nullary = [](){ return 0; };
5395 const auto unary = [](int x){ return x; };
5396 using nullary_t = decltype(nullary);
5397 using unary_t = decltype(unary);
5398 const auto higher1st = [](nullary_t f){ return f(); };
5399 const auto higher2nd = [unary](nullary_t f1){
5400 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5402 return higher1st(nullary) + higher2nd(nullary)(unary);
5407 namespace test_variadic_templates
5413 template <int N0, int... N1toN>
5414 struct sum<N0, N1toN...>
5416 static constexpr auto value = N0 + sum<N1toN...>::value;
5422 static constexpr auto value = 0;
5425 static_assert(sum<>::value == 0, "");
5426 static_assert(sum<1>::value == 1, "");
5427 static_assert(sum<23>::value == 23, "");
5428 static_assert(sum<1, 2>::value == 3, "");
5429 static_assert(sum<5, 5, 11>::value == 21, "");
5430 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5434 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5435 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5437 namespace test_template_alias_sfinae
5442 template<typename T>
5443 using member = typename T::member_type;
5445 template<typename T>
5448 template<typename T>
5449 void func(member<T>*) {}
5453 void test() { func<foo>(0); }
5457 } // namespace cxx11
5459 #endif // __cplusplus >= 201103L
5464 if ac_fn_cxx_try_compile
"$LINENO"; then :
5469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5472 eval ac_res
=\$
$cachevar
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5474 $as_echo "$ac_res" >&6; }
5475 if eval test x\$
$cachevar = xyes
; then
5476 CXX_DIALECT
="$switch"
5483 if test x
$ac_success = xno
; then
5484 for alternative
in ${ax_cxx_compile_alternatives}; do
5485 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5486 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5488 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5489 if eval \${$cachevar+:} false; then :
5490 $as_echo_n "(cached
) " >&6
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5498 // If the compiler admits that it is not ready for C++11, why torture it?
5499 // Hopefully, this will speed up the test.
5503 #error "This is not a C
++ compiler
"
5505 #elif __cplusplus < 201103L
5507 #error "This is not a C
++11 compiler
"
5514 namespace test_static_assert
5517 template <typename T>
5520 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5525 namespace test_final_override
5533 struct Derived : public Base
5535 virtual void f() override {}
5540 namespace test_double_right_angle_brackets
5543 template < typename T >
5546 typedef check<void> single_type;
5547 typedef check<check<void>> double_type;
5548 typedef check<check<check<void>>> triple_type;
5549 typedef check<check<check<check<void>>>> quadruple_type;
5553 namespace test_decltype
5566 namespace test_type_deduction
5569 template < typename T1, typename T2 >
5572 static const bool value = false;
5575 template < typename T >
5576 struct is_same<T, T>
5578 static const bool value = true;
5581 template < typename T1, typename T2 >
5583 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5589 test(const int c, volatile int v)
5591 static_assert(is_same<int, decltype(0)>::value == true, "");
5592 static_assert(is_same<int, decltype(c)>::value == false, "");
5593 static_assert(is_same<int, decltype(v)>::value == false, "");
5596 auto sumi = ac + av + 'x';
5597 auto sumf = ac + av + 1.0;
5598 static_assert(is_same<int, decltype(ac)>::value == true, "");
5599 static_assert(is_same<int, decltype(av)>::value == true, "");
5600 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5601 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5602 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5603 return (sumf > 0.0) ? sumi : add(c, v);
5608 namespace test_noexcept
5611 int f() { return 0; }
5612 int g() noexcept { return 0; }
5614 static_assert(noexcept(f()) == false, "");
5615 static_assert(noexcept(g()) == true, "");
5619 namespace test_constexpr
5622 template < typename CharT >
5623 unsigned long constexpr
5624 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5626 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5629 template < typename CharT >
5630 unsigned long constexpr
5631 strlen_c(const CharT *const s) noexcept
5633 return strlen_c_r(s, 0UL);
5636 static_assert(strlen_c("") == 0UL, "");
5637 static_assert(strlen_c("1") == 1UL, "");
5638 static_assert(strlen_c("example
") == 7UL, "");
5639 static_assert(strlen_c("another\
0example
") == 7UL, "");
5643 namespace test_rvalue_references
5649 static constexpr int value = N;
5652 answer<1> f(int&) { return answer<1>(); }
5653 answer<2> f(const int&) { return answer<2>(); }
5654 answer<3> f(int&&) { return answer<3>(); }
5661 static_assert(decltype(f(i))::value == 1, "");
5662 static_assert(decltype(f(c))::value == 2, "");
5663 static_assert(decltype(f(0))::value == 3, "");
5668 namespace test_uniform_initialization
5673 static const int zero {};
5674 static const int one {1};
5677 static_assert(test::zero == 0, "");
5678 static_assert(test::one == 1, "");
5682 namespace test_lambdas
5688 auto lambda1 = [](){};
5689 auto lambda2 = lambda1;
5697 auto a = [](int i, int j){ return i + j; }(1, 2);
5698 auto b = []() -> int { return '0'; }();
5699 auto c = [=](){ return a + b; }();
5700 auto d = [&](){ return c; }();
5701 auto e = [a, &b](int x) mutable {
5702 const auto identity = [](int y){ return y; };
5703 for (auto i = 0; i < a; ++i)
5705 return x + identity(a + b);
5707 return a + b + c + d + e;
5713 const auto nullary = [](){ return 0; };
5714 const auto unary = [](int x){ return x; };
5715 using nullary_t = decltype(nullary);
5716 using unary_t = decltype(unary);
5717 const auto higher1st = [](nullary_t f){ return f(); };
5718 const auto higher2nd = [unary](nullary_t f1){
5719 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5721 return higher1st(nullary) + higher2nd(nullary)(unary);
5726 namespace test_variadic_templates
5732 template <int N0, int... N1toN>
5733 struct sum<N0, N1toN...>
5735 static constexpr auto value = N0 + sum<N1toN...>::value;
5741 static constexpr auto value = 0;
5744 static_assert(sum<>::value == 0, "");
5745 static_assert(sum<1>::value == 1, "");
5746 static_assert(sum<23>::value == 23, "");
5747 static_assert(sum<1, 2>::value == 3, "");
5748 static_assert(sum<5, 5, 11>::value == 21, "");
5749 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5753 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5754 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5756 namespace test_template_alias_sfinae
5761 template<typename T>
5762 using member = typename T::member_type;
5764 template<typename T>
5767 template<typename T>
5768 void func(member<T>*) {}
5772 void test() { func<foo>(0); }
5776 } // namespace cxx11
5778 #endif // __cplusplus >= 201103L
5783 if ac_fn_cxx_try_compile "$LINENO"; then :
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 eval ac_res=\$$cachevar
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5793 $as_echo "$ac_res" >&6; }
5794 if eval test x\$$cachevar = xyes; then
5795 CXX_DIALECT="$switch"
5800 if test x$ac_success = xyes; then
5806 ac_cpp='$CPP $CPPFLAGS'
5807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5812 if test x$ac_success = xno; then
5813 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5816 if test x$ac_success = xno; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5819 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5823 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5831 $as_echo_n "checking for ANSI C header files... " >&6; }
5832 if ${ac_cv_header_stdc+:} false
; then :
5833 $as_echo_n "(cached) " >&6
5835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5850 if ac_fn_c_try_compile
"$LINENO"; then :
5851 ac_cv_header_stdc
=yes
5853 ac_cv_header_stdc
=no
5855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5857 if test $ac_cv_header_stdc = yes; then
5858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5865 $EGREP "memchr" >/dev
/null
2>&1; then :
5868 ac_cv_header_stdc
=no
5874 if test $ac_cv_header_stdc = yes; then
5875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5882 $EGREP "free" >/dev
/null
2>&1; then :
5885 ac_cv_header_stdc
=no
5891 if test $ac_cv_header_stdc = yes; then
5892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5893 if test "$cross_compiling" = yes; then :
5896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5900 #if ((' ' & 0x0FF) == 0x020)
5901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5904 # define ISLOWER(c) \
5905 (('a' <= (c) && (c) <= 'i') \
5906 || ('j' <= (c) && (c) <= 'r') \
5907 || ('s' <= (c) && (c) <= 'z'))
5908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5916 for (i = 0; i < 256; i++)
5917 if (XOR (islower (i), ISLOWER (i))
5918 || toupper (i) != TOUPPER (i))
5923 if ac_fn_c_try_run
"$LINENO"; then :
5926 ac_cv_header_stdc
=no
5928 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5929 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5935 $as_echo "$ac_cv_header_stdc" >&6; }
5936 if test $ac_cv_header_stdc = yes; then
5938 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5943 # Set the 'development' global.
5944 .
$srcdir/..
/..
/bfd
/development.sh
5947 # Check whether we will enable the inclusion of unit tests when
5950 # The default value of this option changes depending whether we're on
5951 # development mode (in which case it's "true") or not (in which case
5953 # Check whether --enable-unit-tests was given.
5954 if test "${enable_unit_tests+set}" = set; then :
5955 enableval
=$enable_unit_tests; case "${enableval}" in
5956 yes) enable_unittests
=true
;;
5957 no
) enable_unittests
=false
;;
5958 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
5961 enable_unittests
=$development
5965 if $enable_unittests; then
5967 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
5970 srv_selftest_objs
="gdbsupport/selftest.o"
5975 case ${build_alias} in
5976 "") build_noncanonical
=${build} ;;
5977 *) build_noncanonical
=${build_alias} ;;
5980 case ${host_alias} in
5981 "") host_noncanonical
=${build_noncanonical} ;;
5982 *) host_noncanonical
=${host_alias} ;;
5985 case ${target_alias} in
5986 "") target_noncanonical
=${host_noncanonical} ;;
5987 *) target_noncanonical
=${target_alias} ;;
5995 # Dependency checking.
5996 rm -rf .tst
2>/dev
/null
5997 mkdir .tst
2>/dev
/null
5998 if test -d .tst
; then
6003 rmdir .tst
2>/dev
/null
6005 DEPDIR
="${am__leading_dot}deps"
6007 ac_config_commands
="$ac_config_commands depdir"
6011 # Create sub-directories for objects and dependencies.
6012 CONFIG_SRC_SUBDIR
="arch gdbsupport"
6015 ac_config_commands
="$ac_config_commands gdbdepdir"
6018 depcc
="$CC" am_compiler_list
=
6020 am_depcomp
=$ac_aux_dir/depcomp
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6022 $as_echo_n "checking dependency style of $depcc... " >&6; }
6023 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6024 $as_echo_n "(cached) " >&6
6026 if test -f "$am_depcomp"; then
6027 # We make a subdir and do the tests there. Otherwise we can end up
6028 # making bogus files that we don't know about and never remove. For
6029 # instance it was reported that on HP-UX the gcc test will end up
6030 # making a dummy file named `D' -- because `-MD' means `put the output
6033 # Copy depcomp to subdir because otherwise we won't find it if we're
6034 # using a relative directory.
6035 cp "$am_depcomp" conftest.dir
6037 # We will build objects and dependencies in a subdirectory because
6038 # it helps to detect inapplicable dependency modes. For instance
6039 # both Tru64's cc and ICC support -MD to output dependencies as a
6040 # side effect of compilation, but ICC will put the dependencies in
6041 # the current directory while Tru64 will put them in the object
6045 am_cv_CC_dependencies_compiler_type
=none
6046 if test "$am_compiler_list" = ""; then
6047 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6049 for depmode
in $am_compiler_list; do
6050 if test $depmode = none
; then break; fi
6052 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6053 # Setup a source with many dependencies, because some compilers
6054 # like to wrap large dependency lists on column 80 (with \), and
6055 # we should not choose a depcomp mode which is confused by this.
6057 # We need to recreate these files for each test, as the compiler may
6058 # overwrite some of them when testing with obscure command lines.
6059 # This happens at least with the AIX C compiler.
6061 for i
in 1 2 3 4 5 6; do
6062 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6063 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6064 # Solaris 8's {/usr,}/bin/sh.
6065 touch sub
/conftst
$i.h
6067 echo "include sub/conftest.Po" > confmf
6069 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6070 # mode. It turns out that the SunPro C++ compiler does not properly
6071 # handle `-M -o', and we need to detect this.
6072 depcmd
="depmode=$depmode \
6073 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6074 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6075 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6076 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6077 if env
$depcmd > conftest.err
2>&1 &&
6078 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6079 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6080 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6081 # icc doesn't choke on unknown options, it will just issue warnings
6082 # or remarks (even with -Werror). So we grep stderr for any message
6083 # that says an option was ignored or not supported.
6084 # When given -MP, icc 7.0 and 7.1 complain thusly:
6085 # icc: Command line warning: ignoring option '-M'; no argument required
6086 # The diagnosis changed in icc 8.0:
6087 # icc: Command line remark: option '-MP' not supported
6088 if (grep 'ignoring option' conftest.err ||
6089 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6090 am_cv_CC_dependencies_compiler_type
=$depmode
6091 $as_echo "$as_me:$LINENO: success" >&5
6095 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6096 sed -e 's/^/| /' < conftest.err
>&5
6102 am_cv_CC_dependencies_compiler_type
=none
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6107 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6108 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6109 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6110 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6115 gnulib_extra_configure_args
=
6116 # If large-file support is disabled, make sure gnulib does the same.
6117 if test "$enable_largefile" = no
; then
6118 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6121 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
6122 # to find the the source subdir to be configured directly under
6123 # gdbserver/. We need to build gnulib under some other directory not
6124 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
6125 # build it in the same directory, when building in the source dir.
6127 in_src
="../../gnulib"
6128 in_build
="build-gnulib-gdbserver"
6129 in_extra_args
="$gnulib_extra_configure_args"
6131 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6132 # so they do not pile up.
6133 ac_sub_configure_args
=
6135 eval "set x $ac_configure_args"
6139 if test -n "$ac_prev"; then
6144 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6145 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6146 ac_prev
=cache_file
;;
6147 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6148 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6151 --config-cache |
-C)
6153 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6155 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6157 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6159 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6161 --disable-option-checking)
6165 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6167 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6171 # Always prepend --prefix to ensure using the same prefix
6172 # in subdir configurations.
6173 ac_arg
="--prefix=$prefix"
6175 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6177 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6180 if test "$silent" = yes; then
6181 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6184 # Always prepend --disable-option-checking to silence warnings, since
6185 # different subdirs can have different --enable and --with options.
6186 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6191 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6193 $as_echo "$ac_msg" >&6
6194 as_dir
="$ac_dir"; as_fn_mkdir_p
6198 ac_srcdir
=$srcdir/$in_src ;;
6200 ac_srcdir
=..
/$srcdir/$in_src ;;
6205 ac_sub_configure
=$ac_srcdir/configure
6207 # Make the cache file name correct relative to the subdirectory.
6209 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6211 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6214 if test -n "$in_extra_args"; then
6215 # Add the extra args at the end.
6216 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6220 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6221 # The eval makes quoting arguments work.
6222 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6223 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6224 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6230 in_src
="../../libiberty"
6231 in_build
="build-libiberty-gdbserver"
6234 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6235 # so they do not pile up.
6236 ac_sub_configure_args
=
6238 eval "set x $ac_configure_args"
6242 if test -n "$ac_prev"; then
6247 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6248 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6249 ac_prev
=cache_file
;;
6250 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6251 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6254 --config-cache |
-C)
6256 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6258 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6260 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6262 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6264 --disable-option-checking)
6268 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6270 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6274 # Always prepend --prefix to ensure using the same prefix
6275 # in subdir configurations.
6276 ac_arg
="--prefix=$prefix"
6278 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6280 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6283 if test "$silent" = yes; then
6284 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6287 # Always prepend --disable-option-checking to silence warnings, since
6288 # different subdirs can have different --enable and --with options.
6289 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6294 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6296 $as_echo "$ac_msg" >&6
6297 as_dir
="$ac_dir"; as_fn_mkdir_p
6301 ac_srcdir
=$srcdir/$in_src ;;
6303 ac_srcdir
=..
/$srcdir/$in_src ;;
6308 ac_sub_configure
=$ac_srcdir/configure
6310 # Make the cache file name correct relative to the subdirectory.
6312 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6314 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6317 if test -n "$in_extra_args"; then
6318 # Add the extra args at the end.
6319 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6323 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6324 # The eval makes quoting arguments work.
6325 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6326 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6327 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6332 for ac_header
in termios.h sys
/reg.h string.h proc_service.h sys
/procfs.h linux
/elf.h fcntl.h signal.h sys
/file.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h
6334 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6335 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6336 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6337 cat >>confdefs.h
<<_ACEOF
6338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6345 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6346 if test "x$ac_cv_type_pid_t" = xyes
; then :
6350 cat >>confdefs.h
<<_ACEOF
6356 for ac_header
in vfork.h
6358 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6359 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6360 cat >>confdefs.h
<<_ACEOF
6361 #define HAVE_VFORK_H 1
6368 for ac_func
in fork vfork
6370 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6371 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6372 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6373 cat >>confdefs.h
<<_ACEOF
6374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6380 if test "x$ac_cv_func_fork" = xyes
; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6382 $as_echo_n "checking for working fork... " >&6; }
6383 if ${ac_cv_func_fork_works+:} false
; then :
6384 $as_echo_n "(cached) " >&6
6386 if test "$cross_compiling" = yes; then :
6387 ac_cv_func_fork_works
=cross
6389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6391 $ac_includes_default
6396 /* By Ruediger Kuhlmann. */
6403 if ac_fn_c_try_run
"$LINENO"; then :
6404 ac_cv_func_fork_works
=yes
6406 ac_cv_func_fork_works
=no
6408 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6409 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6414 $as_echo "$ac_cv_func_fork_works" >&6; }
6417 ac_cv_func_fork_works
=$ac_cv_func_fork
6419 if test "x$ac_cv_func_fork_works" = xcross
; then
6421 *-*-amigaos* |
*-*-msdosdjgpp*)
6422 # Override, as these systems have only a dummy fork() stub
6423 ac_cv_func_fork_works
=no
6426 ac_cv_func_fork_works
=yes
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6430 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6432 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6433 if test "x$ac_cv_func_vfork" = xyes
; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6435 $as_echo_n "checking for working vfork... " >&6; }
6436 if ${ac_cv_func_vfork_works+:} false
; then :
6437 $as_echo_n "(cached) " >&6
6439 if test "$cross_compiling" = yes; then :
6440 ac_cv_func_vfork_works
=cross
6442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 /* Thanks to Paul Eggert for this test. */
6445 $ac_includes_default
6446 #include <sys/wait.h>
6450 /* On some sparc systems, changes by the child to local and incoming
6451 argument registers are propagated back to the parent. The compiler
6452 is told about this with #include <vfork.h>, but some compilers
6453 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6454 static variable whose address is put into a register that is
6455 clobbered by the vfork. */
6458 sparc_address_test (int arg)
6460 sparc_address_test (arg) int arg;
6481 pid_t parent = getpid ();
6484 sparc_address_test (0);
6489 /* Here is another test for sparc vfork register problems. This
6490 test uses lots of local variables, at least as many local
6491 variables as main has allocated so far including compiler
6492 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6493 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6494 reuse the register of parent for one of the local variables,
6495 since it will think that parent can't possibly be used any more
6496 in this routine. Assigning to the local variable will thus
6497 munge parent in the parent process. */
6499 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6500 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6501 /* Convince the compiler that p..p7 are live; otherwise, it might
6502 use the same hardware register for all 8 local variables. */
6503 if (p != p1 || p != p2 || p != p3 || p != p4
6504 || p != p5 || p != p6 || p != p7)
6507 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6508 from child file descriptors. If the child closes a descriptor
6509 before it execs or exits, this munges the parent's descriptor
6510 as well. Test for this by closing stdout in the child. */
6511 _exit(close(fileno(stdout)) != 0);
6516 while (wait(&status) != child)
6519 /* Was there some problem with vforking? */
6522 /* Did the child fail? (This shouldn't happen.) */
6525 /* Did the vfork/compiler bug occur? */
6526 || parent != getpid()
6528 /* Did the file descriptor bug occur? */
6529 || fstat(fileno(stdout), &st) != 0
6534 if ac_fn_c_try_run
"$LINENO"; then :
6535 ac_cv_func_vfork_works
=yes
6537 ac_cv_func_vfork_works
=no
6539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6540 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6545 $as_echo "$ac_cv_func_vfork_works" >&6; }
6548 if test "x$ac_cv_func_fork_works" = xcross
; then
6549 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6551 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6554 if test "x$ac_cv_func_vfork_works" = xyes
; then
6556 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6560 $as_echo "#define vfork fork" >>confdefs.h
6563 if test "x$ac_cv_func_fork_works" = xyes
; then
6565 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6569 for ac_func
in getauxval pread pwrite pread64 setns
6571 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6572 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6573 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6574 cat >>confdefs.h
<<_ACEOF
6575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6582 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6583 if test "x$ac_cv_type_size_t" = xyes
; then :
6587 cat >>confdefs.h
<<_ACEOF
6588 #define size_t unsigned int
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6594 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6595 if ${ac_cv_path_SED+:} false
; then :
6596 $as_echo_n "(cached) " >&6
6598 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6599 for ac_i
in 1 2 3 4 5 6 7; do
6600 ac_script
="$ac_script$as_nl$ac_script"
6602 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6603 { ac_script
=; unset ac_script
;}
6604 if test -z "$SED"; then
6605 ac_path_SED_found
=false
6606 # Loop through the user's path and test for each of PROGNAME-LIST
6607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir
=.
6612 for ac_prog
in sed gsed
; do
6613 for ac_exec_ext
in '' $ac_executable_extensions; do
6614 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6615 as_fn_executable_p
"$ac_path_SED" ||
continue
6616 # Check for GNU ac_path_SED and select it if it is found.
6617 # Check for GNU $ac_path_SED
6618 case `"$ac_path_SED" --version 2>&1` in
6620 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6623 $as_echo_n 0123456789 >"conftest.in"
6626 cat "conftest.in" "conftest.in" >"conftest.tmp"
6627 mv "conftest.tmp" "conftest.in"
6628 cp "conftest.in" "conftest.nl"
6629 $as_echo '' >> "conftest.nl"
6630 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6631 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6632 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6633 if test $ac_count -gt ${ac_path_SED_max-0}; then
6634 # Best one so far, save it but keep looking for a better one
6635 ac_cv_path_SED
="$ac_path_SED"
6636 ac_path_SED_max
=$ac_count
6638 # 10*(2^10) chars as input seems more than enough
6639 test $ac_count -gt 10 && break
6641 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6644 $ac_path_SED_found && break 3
6649 if test -z "$ac_cv_path_SED"; then
6650 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6658 $as_echo "$ac_cv_path_SED" >&6; }
6659 SED
="$ac_cv_path_SED"
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6664 $as_echo_n "checking for ANSI C header files... " >&6; }
6665 if ${ac_cv_header_stdc+:} false
; then :
6666 $as_echo_n "(cached) " >&6
6668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6683 if ac_fn_c_try_compile
"$LINENO"; then :
6684 ac_cv_header_stdc
=yes
6686 ac_cv_header_stdc
=no
6688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6690 if test $ac_cv_header_stdc = yes; then
6691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6698 $EGREP "memchr" >/dev
/null
2>&1; then :
6701 ac_cv_header_stdc
=no
6707 if test $ac_cv_header_stdc = yes; then
6708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6715 $EGREP "free" >/dev
/null
2>&1; then :
6718 ac_cv_header_stdc
=no
6724 if test $ac_cv_header_stdc = yes; then
6725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6726 if test "$cross_compiling" = yes; then :
6729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6733 #if ((' ' & 0x0FF) == 0x020)
6734 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6735 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6737 # define ISLOWER(c) \
6738 (('a' <= (c) && (c) <= 'i') \
6739 || ('j' <= (c) && (c) <= 'r') \
6740 || ('s' <= (c) && (c) <= 'z'))
6741 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6744 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6749 for (i = 0; i < 256; i++)
6750 if (XOR (islower (i), ISLOWER (i))
6751 || toupper (i) != TOUPPER (i))
6756 if ac_fn_c_try_run
"$LINENO"; then :
6759 ac_cv_header_stdc
=no
6761 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6762 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6768 $as_echo "$ac_cv_header_stdc" >&6; }
6769 if test $ac_cv_header_stdc = yes; then
6771 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6775 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6776 # for constant arguments. Useless!
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6778 $as_echo_n "checking for working alloca.h... " >&6; }
6779 if ${ac_cv_working_alloca_h+:} false
; then :
6780 $as_echo_n "(cached) " >&6
6782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6788 char *p = (char *) alloca (2 * sizeof (int));
6794 if ac_fn_c_try_link
"$LINENO"; then :
6795 ac_cv_working_alloca_h
=yes
6797 ac_cv_working_alloca_h
=no
6799 rm -f core conftest.err conftest.
$ac_objext \
6800 conftest
$ac_exeext conftest.
$ac_ext
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6803 $as_echo "$ac_cv_working_alloca_h" >&6; }
6804 if test $ac_cv_working_alloca_h = yes; then
6806 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6811 $as_echo_n "checking for alloca... " >&6; }
6812 if ${ac_cv_func_alloca_works+:} false
; then :
6813 $as_echo_n "(cached) " >&6
6815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6818 # define alloca __builtin_alloca
6821 # include <malloc.h>
6822 # define alloca _alloca
6824 # ifdef HAVE_ALLOCA_H
6825 # include <alloca.h>
6830 # ifndef alloca /* predefined by HP cc +Olibcalls */
6831 void *alloca (size_t);
6841 char *p = (char *) alloca (1);
6847 if ac_fn_c_try_link
"$LINENO"; then :
6848 ac_cv_func_alloca_works
=yes
6850 ac_cv_func_alloca_works
=no
6852 rm -f core conftest.err conftest.
$ac_objext \
6853 conftest
$ac_exeext conftest.
$ac_ext
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6856 $as_echo "$ac_cv_func_alloca_works" >&6; }
6858 if test $ac_cv_func_alloca_works = yes; then
6860 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6863 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6864 # that cause trouble. Some versions do not even contain alloca or
6865 # contain a buggy version. If you still want to use their alloca,
6866 # use ar to extract alloca.o from them instead of compiling alloca.c.
6868 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6870 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6874 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6875 if ${ac_cv_os_cray+:} false
; then :
6876 $as_echo_n "(cached) " >&6
6878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 #if defined CRAY && ! defined CRAY2
6887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6888 $EGREP "webecray" >/dev
/null
2>&1; then :
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6897 $as_echo "$ac_cv_os_cray" >&6; }
6898 if test $ac_cv_os_cray = yes; then
6899 for ac_func
in _getb67 GETB67 getb67
; do
6900 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6901 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6902 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6904 cat >>confdefs.h
<<_ACEOF
6905 #define CRAY_STACKSEG_END $ac_func
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6915 $as_echo_n "checking stack direction for C alloca... " >&6; }
6916 if ${ac_cv_c_stack_direction+:} false
; then :
6917 $as_echo_n "(cached) " >&6
6919 if test "$cross_compiling" = yes; then :
6920 ac_cv_c_stack_direction
=0
6922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 $ac_includes_default
6926 find_stack_direction (int *addr, int depth)
6931 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6932 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6937 main (int argc, char **argv)
6939 return find_stack_direction (0, argc + !argv + 20) < 0;
6942 if ac_fn_c_try_run
"$LINENO"; then :
6943 ac_cv_c_stack_direction
=1
6945 ac_cv_c_stack_direction
=-1
6947 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6948 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6953 $as_echo "$ac_cv_c_stack_direction" >&6; }
6954 cat >>confdefs.h
<<_ACEOF
6955 #define STACK_DIRECTION $ac_cv_c_stack_direction
6966 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6968 WIN32APILIBS
="-lws2_32"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6974 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6975 if ${am_cv_langinfo_codeset+:} false
; then :
6976 $as_echo_n "(cached) " >&6
6978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980 #include <langinfo.h>
6984 char* cs = nl_langinfo(CODESET);
6989 if ac_fn_c_try_link
"$LINENO"; then :
6990 am_cv_langinfo_codeset
=yes
6992 am_cv_langinfo_codeset
=no
6994 rm -f core conftest.err conftest.
$ac_objext \
6995 conftest
$ac_exeext conftest.
$ac_ext
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6999 $as_echo "$am_cv_langinfo_codeset" >&6; }
7000 if test $am_cv_langinfo_codeset = yes; then
7002 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7007 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
7009 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7010 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7011 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7012 cat >>confdefs.h
<<_ACEOF
7013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7021 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
7024 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7025 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7026 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7027 cat >>confdefs.h
<<_ACEOF
7028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7035 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
7036 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
7042 cat >>confdefs.h
<<_ACEOF
7043 #define HAVE_DECL_STRSTR $ac_have_decl
7047 # Check for std::thread. This does not work on some platforms, like
7050 ac_cpp
='$CXXCPP $CPPFLAGS'
7051 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7060 ac_cpp
='$CPP $CPPFLAGS'
7061 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7067 # We used to check for pthread.h first, but this fails if pthread.h
7068 # requires special compiler flags (e.g. on Tru64 or Sequent).
7069 # It gets checked for in the link test anyway.
7071 # First of all, check if the user has set any of the PTHREAD_LIBS,
7072 # etcetera environment variables, and if threads linking works using
7074 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7075 ax_pthread_save_CC
="$CC"
7076 ax_pthread_save_CFLAGS
="$CFLAGS"
7077 ax_pthread_save_LIBS
="$LIBS"
7078 if test "x$PTHREAD_CC" != "x"; then :
7081 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7082 LIBS
="$PTHREAD_LIBS $LIBS"
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7084 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7088 /* Override any GCC internal prototype to avoid an error.
7089 Use char because int might match the return type of a GCC
7090 builtin and then its argument prototype would still apply. */
7094 char pthread_join ();
7098 return pthread_join ();
7103 if ac_fn_c_try_link
"$LINENO"; then :
7106 rm -f core conftest.err conftest.
$ac_objext \
7107 conftest
$ac_exeext conftest.
$ac_ext
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7109 $as_echo "$ax_pthread_ok" >&6; }
7110 if test "x$ax_pthread_ok" = "xno"; then
7114 CC
="$ax_pthread_save_CC"
7115 CFLAGS
="$ax_pthread_save_CFLAGS"
7116 LIBS
="$ax_pthread_save_LIBS"
7119 # We must check for the threads library under a number of different
7120 # names; the ordering is very important because some systems
7121 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7122 # libraries is broken (non-POSIX).
7124 # Create a list of thread flags to try. Items starting with a "-" are
7125 # C compiler flags, and other items are library names, except for "none"
7126 # which indicates that we try without any flags at all, and "pthread-config"
7127 # which is a program returning the flags for the Pth emulation library.
7129 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7131 # The ordering *is* (sometimes) important. Some notes on the
7132 # individual items follow:
7134 # pthreads: AIX (must check this before -lpthread)
7135 # none: in case threads are in libc; should be tried before -Kthread and
7136 # other compiler flags to prevent continual compiler warnings
7137 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7138 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7139 # (Note: HP C rejects this with "bad form for `-t' option")
7140 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7141 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7142 # doesn't hurt to check since this sometimes defines pthreads and
7143 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7144 # is present but should not be used directly; and before -mthreads,
7145 # because the compiler interprets this as "-mt" + "-hreads")
7146 # -mthreads: Mingw32/gcc, Lynx/gcc
7147 # pthread: Linux, etcetera
7148 # --thread-safe: KAI C++
7149 # pthread-config: use pthread-config program (for GNU Pth library)
7155 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7156 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7158 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
7163 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7164 # multi-threading and also sets -lpthread."
7166 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
7171 # IBM z/OS requires a feature-test macro to be defined in order to
7172 # enable POSIX threads at all, so give the user a hint if this is
7173 # not set. (We don't define these ourselves, as they can affect
7174 # other portions of the system API in unpredictable ways.)
7176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7179 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7180 AX_PTHREAD_ZOS_MISSING
7184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7187 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7195 # On Solaris (at least, for some versions), libc contains stubbed
7196 # (non-functional) versions of the pthreads routines, so link-based
7197 # tests will erroneously succeed. (N.B.: The stubs are missing
7198 # pthread_cleanup_push, or rather a function called by this macro,
7199 # so we could check for that, but who knows whether they'll stub
7200 # that too in a future libc.) So we'll check first for the
7201 # standard Solaris way of linking pthreads (-mt -lpthread).
7203 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
7207 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7209 if test "x$GCC" = "xyes"; then :
7210 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
7213 # The presence of a feature test macro requesting re-entrant function
7214 # definitions is, on some systems, a strong hint that pthreads support is
7218 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
7219 ax_pthread_check_macro
="_REENTRANT"
7223 ax_pthread_check_macro
="_THREAD_SAFE"
7227 ax_pthread_check_macro
="--"
7230 if test "x$ax_pthread_check_macro" = "x--"; then :
7231 ax_pthread_check_cond
=0
7233 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
7236 # Are we compiling with Clang?
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7239 $as_echo_n "checking whether $CC is Clang... " >&6; }
7240 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
7241 $as_echo_n "(cached) " >&6
7243 ax_cv_PTHREAD_CLANG
=no
7244 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7245 if test "x$GCC" = "xyes"; then
7246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7249 # if defined(__clang__) && defined(__llvm__)
7250 AX_PTHREAD_CC_IS_CLANG
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
7256 ax_cv_PTHREAD_CLANG
=yes
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7264 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
7265 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
7267 ax_pthread_clang_warning
=no
7269 # Clang needs special handling, because older versions handle the -pthread
7270 # option in a rather... idiosyncratic way
7272 if test "x$ax_pthread_clang" = "xyes"; then
7274 # Clang takes -pthread; it has never supported any other flag
7276 # (Note 1: This will need to be revisited if a system that Clang
7277 # supports has POSIX threads in a separate library. This tends not
7278 # to be the way of modern systems, but it's conceivable.)
7280 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7281 # to get POSIX threads support; the API is always present and
7282 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7283 # -pthread does define _REENTRANT, and while the Darwin headers
7284 # ignore this macro, third-party headers might not.)
7286 PTHREAD_CFLAGS
="-pthread"
7291 # However, older versions of Clang make a point of warning the user
7292 # that, in an invocation where only linking and no compilation is
7293 # taking place, the -pthread option has no effect ("argument unused
7294 # during compilation"). They expect -pthread to be passed in only
7295 # when source code is being compiled.
7297 # Problem is, this is at odds with the way Automake and most other
7298 # C build frameworks function, which is that the same flags used in
7299 # compilation (CFLAGS) are also used in linking. Many systems
7300 # supported by AX_PTHREAD require exactly this for POSIX threads
7301 # support, and in fact it is often not straightforward to specify a
7302 # flag that is used only in the compilation phase and not in
7303 # linking. Such a scenario is extremely rare in practice.
7305 # Even though use of the -pthread flag in linking would only print
7306 # a warning, this can be a nuisance for well-run software projects
7307 # that build with -Werror. So if the active version of Clang has
7308 # this misfeature, we search for an option to squash it.
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7311 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7312 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
7313 $as_echo_n "(cached) " >&6
7315 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
7316 # Create an alternate version of $ac_link that compiles and
7317 # links in two steps (.c -> .o, .o -> exe) instead of one
7318 # (.c -> exe), because the warning occurs only in the second
7320 ax_pthread_save_ac_link
="$ac_link"
7321 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7322 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
7323 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7324 ax_pthread_save_CFLAGS
="$CFLAGS"
7325 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
7326 if test "x$ax_pthread_try" = "xunknown"; then :
7329 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7330 ac_link
="$ax_pthread_save_ac_link"
7331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 int main(void){return 0;}
7335 if ac_fn_c_try_link
"$LINENO"; then :
7336 ac_link
="$ax_pthread_2step_ac_link"
7337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 int main(void){return 0;}
7341 if ac_fn_c_try_link
"$LINENO"; then :
7344 rm -f core conftest.err conftest.
$ac_objext \
7345 conftest
$ac_exeext conftest.
$ac_ext
7348 rm -f core conftest.err conftest.
$ac_objext \
7349 conftest
$ac_exeext conftest.
$ac_ext
7351 ac_link
="$ax_pthread_save_ac_link"
7352 CFLAGS
="$ax_pthread_save_CFLAGS"
7353 if test "x$ax_pthread_try" = "x"; then :
7356 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7360 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7362 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7364 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7367 fi # $ax_pthread_clang = yes
7369 if test "x$ax_pthread_ok" = "xno"; then
7370 for ax_pthread_try_flag
in $ax_pthread_flags; do
7372 case $ax_pthread_try_flag in
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7375 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
7380 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
7381 PTHREAD_CFLAGS
="-mt"
7382 PTHREAD_LIBS
="-lpthread"
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7387 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7388 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
7392 # Extract the first word of "pthread-config", so it can be a program name with args.
7393 set dummy pthread-config
; ac_word
=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
7397 $as_echo_n "(cached) " >&6
7399 if test -n "$ax_pthread_config"; then
7400 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
7402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir
=.
7407 for ac_exec_ext
in '' $ac_executable_extensions; do
7408 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_ax_pthread_config
="yes"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
7420 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
7421 if test -n "$ax_pthread_config"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7423 $as_echo "$ax_pthread_config" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7430 if test "x$ax_pthread_config" = "xno"; then :
7433 PTHREAD_CFLAGS
="`pthread-config --cflags`"
7434 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7439 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7440 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
7444 ax_pthread_save_CFLAGS
="$CFLAGS"
7445 ax_pthread_save_LIBS
="$LIBS"
7446 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7447 LIBS
="$PTHREAD_LIBS $LIBS"
7449 # Check for various functions. We must include pthread.h,
7450 # since some functions may be macros. (On the Sequent, we
7451 # need a special flag -Kthread to make this header compile.)
7452 # We check for pthread_join because it is in -lpthread on IRIX
7453 # while pthread_create is in libc. We check for pthread_attr_init
7454 # due to DEC craziness with -lpthreads. We check for
7455 # pthread_cleanup_push because it is one of the few pthread
7456 # functions on Solaris that doesn't have a non-functional libc stub.
7457 # We try pthread_create on general principles.
7459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 #include <pthread.h>
7462 # if $ax_pthread_check_cond
7463 # error "$ax_pthread_check_macro must be defined"
7465 static void routine(void *a) { a = 0; }
7466 static void *start_routine(void *a) { return a; }
7470 pthread_t th; pthread_attr_t attr;
7471 pthread_create(&th, 0, start_routine, 0);
7472 pthread_join(th, 0);
7473 pthread_attr_init(&attr);
7474 pthread_cleanup_push(routine, 0);
7475 pthread_cleanup_pop(0) /* ; */
7480 if ac_fn_c_try_link
"$LINENO"; then :
7483 rm -f core conftest.err conftest.
$ac_objext \
7484 conftest
$ac_exeext conftest.
$ac_ext
7486 CFLAGS
="$ax_pthread_save_CFLAGS"
7487 LIBS
="$ax_pthread_save_LIBS"
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7490 $as_echo "$ax_pthread_ok" >&6; }
7491 if test "x$ax_pthread_ok" = "xyes"; then :
7500 # Various other checks:
7501 if test "x$ax_pthread_ok" = "xyes"; then
7502 ax_pthread_save_CFLAGS
="$CFLAGS"
7503 ax_pthread_save_LIBS
="$LIBS"
7504 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7505 LIBS
="$PTHREAD_LIBS $LIBS"
7507 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7509 $as_echo_n "checking for joinable pthread attribute... " >&6; }
7510 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
7511 $as_echo_n "(cached) " >&6
7513 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
7514 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517 #include <pthread.h>
7521 int attr = $ax_pthread_attr; return attr /* ; */
7526 if ac_fn_c_try_link
"$LINENO"; then :
7527 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
7529 rm -f core conftest.err conftest.
$ac_objext \
7530 conftest
$ac_exeext conftest.
$ac_ext
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7535 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7536 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7537 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7538 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
7540 cat >>confdefs.h
<<_ACEOF
7541 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
7544 ax_pthread_joinable_attr_defined
=yes
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7549 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
7550 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
7551 $as_echo_n "(cached) " >&6
7553 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
7556 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7562 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7563 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7564 test "x$ax_pthread_special_flags_added" != "xyes"; then :
7565 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7566 ax_pthread_special_flags_added
=yes
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7570 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7571 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
7572 $as_echo_n "(cached) " >&6
7574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7576 #include <pthread.h>
7580 int i = PTHREAD_PRIO_INHERIT;
7585 if ac_fn_c_try_link
"$LINENO"; then :
7586 ax_cv_PTHREAD_PRIO_INHERIT
=yes
7588 ax_cv_PTHREAD_PRIO_INHERIT
=no
7590 rm -f core conftest.err conftest.
$ac_objext \
7591 conftest
$ac_exeext conftest.
$ac_ext
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7595 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7596 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7597 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
7599 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7601 ax_pthread_prio_inherit_defined
=yes
7605 CFLAGS
="$ax_pthread_save_CFLAGS"
7606 LIBS
="$ax_pthread_save_LIBS"
7608 # More AIX lossage: compile with *_r variant
7609 if test "x$GCC" != "xyes"; then
7613 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
7614 #handle absolute path differently from PATH based program lookup
7617 if as_fn_executable_p
${CC}_r
; then :
7618 PTHREAD_CC
="${CC}_r"
7621 for ac_prog
in ${CC}_r
7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
7624 set dummy
$ac_prog; ac_word
=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
7628 $as_echo_n "(cached) " >&6
7630 if test -n "$PTHREAD_CC"; then
7631 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
7633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7637 test -z "$as_dir" && as_dir
=.
7638 for ac_exec_ext
in '' $ac_executable_extensions; do
7639 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_PTHREAD_CC
="$ac_prog"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
7651 if test -n "$PTHREAD_CC"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7653 $as_echo "$PTHREAD_CC" >&6; }
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7660 test -n "$PTHREAD_CC" && break
7662 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7673 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7679 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7680 if test "x$ax_pthread_ok" = "xyes"; then
7688 ac_cpp
='$CXXCPP $CPPFLAGS'
7689 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7694 if test "$threads" = "yes"; then
7696 LIBS
="$PTHREAD_LIBS $LIBS"
7697 save_CXXFLAGS
="$CXXFLAGS"
7698 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
7700 $as_echo_n "checking for std::thread... " >&6; }
7701 if ${gdb_cv_cxx_std_thread+:} false
; then :
7702 $as_echo_n "(cached) " >&6
7704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7711 std::thread t(callback);
7716 if ac_fn_cxx_try_compile
"$LINENO"; then :
7717 gdb_cv_cxx_std_thread
=yes
7719 gdb_cv_cxx_std_thread
=no
7721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
7724 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
7726 # This check must be here, while LIBS includes any necessary
7727 # threading library.
7728 for ac_func
in pthread_sigmask pthread_setname_np
7730 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7731 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7732 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7733 cat >>confdefs.h
<<_ACEOF
7734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7742 CXXFLAGS
="$save_CXXFLAGS"
7744 if test "$gdb_cv_cxx_std_thread" = "yes"; then
7746 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
7750 ac_cpp
='$CPP $CPPFLAGS'
7751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
7757 $as_echo_n "checking for sigsetjmp... " >&6; }
7758 if ${gdb_cv_func_sigsetjmp+:} false
; then :
7759 $as_echo_n "(cached) " >&6
7761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7769 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7774 if ac_fn_c_try_compile
"$LINENO"; then :
7775 gdb_cv_func_sigsetjmp
=yes
7777 gdb_cv_func_sigsetjmp
=no
7779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
7782 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
7783 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
7785 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
7790 # Check the return and argument types of ptrace.
7793 for ac_header
in sys
/ptrace.h ptrace.h
7795 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7796 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7797 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7798 cat >>confdefs.h
<<_ACEOF
7799 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7807 gdb_ptrace_headers
='
7808 #include <sys/types.h>
7809 #if HAVE_SYS_PTRACE_H
7810 # include <sys/ptrace.h>
7813 # include <unistd.h>
7816 # There is no point in checking if we don't have a prototype.
7817 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
7819 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
7825 cat >>confdefs.h
<<_ACEOF
7826 #define HAVE_DECL_PTRACE $ac_have_decl
7828 if test $ac_have_decl = 1; then :
7832 : ${gdb_cv_func_ptrace_ret='int'}
7833 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7837 # Check return type. Varargs (used on GNU/Linux) conflict with the
7838 # empty argument list, so check for that explicitly.
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
7840 $as_echo_n "checking return type of ptrace... " >&6; }
7841 if ${gdb_cv_func_ptrace_ret+:} false
; then :
7842 $as_echo_n "(cached) " >&6
7844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7850 extern long ptrace (enum __ptrace_request, ...);
7855 if ac_fn_c_try_compile
"$LINENO"; then :
7856 gdb_cv_func_ptrace_ret
='long'
7858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7864 extern int ptrace ();
7869 if ac_fn_c_try_compile
"$LINENO"; then :
7870 gdb_cv_func_ptrace_ret
='int'
7872 gdb_cv_func_ptrace_ret
='long'
7874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
7879 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
7881 cat >>confdefs.h
<<_ACEOF
7882 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
7885 # Check argument types.
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
7887 $as_echo_n "checking types of arguments for ptrace... " >&6; }
7888 if ${gdb_cv_func_ptrace_args+:} false
; then :
7889 $as_echo_n "(cached) " >&6
7892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7898 extern long ptrace (enum __ptrace_request, ...);
7903 if ac_fn_c_try_compile
"$LINENO"; then :
7904 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
7907 for gdb_arg1
in 'int' 'long'; do
7908 for gdb_arg2
in 'pid_t' 'int' 'long'; do
7909 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
7910 for gdb_arg4
in 'int' 'long' 'void *'; do
7911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7918 extern $gdb_cv_func_ptrace_ret
7919 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
7925 if ac_fn_c_try_compile
"$LINENO"; then :
7926 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
7929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7930 for gdb_arg5
in 'int *' 'int' 'long'; do
7931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7938 extern $gdb_cv_func_ptrace_ret
7939 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7945 if ac_fn_c_try_compile
"$LINENO"; then :
7947 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7956 # Provide a safe default value.
7957 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
7963 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
7964 ac_save_IFS
=$IFS; IFS
=','
7965 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7969 cat >>confdefs.h
<<_ACEOF
7970 #define PTRACE_TYPE_ARG1 $1
7974 cat >>confdefs.h
<<_ACEOF
7975 #define PTRACE_TYPE_ARG3 $3
7979 cat >>confdefs.h
<<_ACEOF
7980 #define PTRACE_TYPE_ARG4 $4
7983 if test -n "$5"; then
7985 cat >>confdefs.h
<<_ACEOF
7986 #define PTRACE_TYPE_ARG5 $5
7997 # Check whether --with-ust was given.
7998 if test "${with_ust+set}" = set; then :
8003 # Check whether --with-ust_include was given.
8004 if test "${with_ust_include+set}" = set; then :
8005 withval
=$with_ust_include;
8009 # Check whether --with-ust_lib was given.
8010 if test "${with_ust_lib+set}" = set; then :
8011 withval
=$with_ust_lib;
8025 ustlibs
="-L$with_ust/lib -lust"
8026 ustinc
="-I$with_ust/include "
8029 if test "x$with_ust_include" != x
; then
8030 ustinc
="-I$with_ust_include "
8032 if test "x$with_ust_lib" != x
; then
8033 ustlibs
="-L$with_ust_lib -lust"
8036 if test "x$with_ust" != "xno"; then
8037 saved_CFLAGS
="$CFLAGS"
8038 CFLAGS
="$CFLAGS $ustinc"
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
8040 $as_echo_n "checking for ust... " >&6; }
8041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8044 #define CONFIG_UST_GDB_INTEGRATION
8045 #include <ust/ust.h>
8055 if ac_fn_c_try_compile
"$LINENO"; then :
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8057 $as_echo "yes" >&6; };
8058 $as_echo "#define HAVE_UST 1" >>confdefs.h
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
8064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8065 CFLAGS
="$saved_CFLAGS"
8068 # Flags needed for UST
8073 # Check whether --enable-werror was given.
8074 if test "${enable_werror+set}" = set; then :
8075 enableval
=$enable_werror; case "${enableval}" in
8076 yes | y
) ERROR_ON_WARNING
="yes" ;;
8077 no | n
) ERROR_ON_WARNING
="no" ;;
8078 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
8083 # Enable -Werror by default when using gcc. Turn it off for releases.
8084 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
8085 ERROR_ON_WARNING
=yes
8089 if test "${ERROR_ON_WARNING}" = yes ; then
8090 WERROR_CFLAGS
="-Werror"
8093 # The options we'll try to enable.
8094 build_warnings
="-Wall -Wpointer-arith \
8095 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
8096 -Wno-switch -Wno-char-subscripts \
8097 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
8098 -Wno-sign-compare -Wno-error=maybe-uninitialized \
8099 -Wno-mismatched-tags \
8100 -Wno-error=deprecated-register \
8101 -Wsuggest-override \
8102 -Wimplicit-fallthrough=3 \
8106 -Wdeprecated-copy-dtor \
8108 -Wmissing-declarations"
8112 # Enable -Wno-format by default when using gcc on mingw since many
8113 # GCC versions complain about %I64.
8114 build_warnings
="$build_warnings -Wno-format" ;;
8116 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
8117 # doesn't understand.
8118 build_warnings
="$build_warnings -Wno-unknown-pragmas"
8119 # Solaris 11 <unistd.h> marks vfork deprecated.
8120 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
8122 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
8123 # but there's a special case for this below.
8124 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
8127 # Check whether --enable-build-warnings was given.
8128 if test "${enable_build_warnings+set}" = set; then :
8129 enableval
=$enable_build_warnings; case "${enableval}" in
8131 no
) build_warnings
="-w";;
8132 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8133 build_warnings
="${build_warnings} ${t}";;
8134 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8135 build_warnings
="${t} ${build_warnings}";;
8136 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8138 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8139 echo "Setting compiler warning flags = $build_warnings" 6>&1
8142 # Check whether --enable-gdb-build-warnings was given.
8143 if test "${enable_gdb_build_warnings+set}" = set; then :
8144 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
8146 no
) build_warnings
="-w";;
8147 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8148 build_warnings
="${build_warnings} ${t}";;
8149 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8150 build_warnings
="${t} ${build_warnings}";;
8151 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8153 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8154 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8158 # The set of warnings supported by a C++ compiler is not the same as
8159 # of the C compiler.
8161 ac_cpp
='$CXXCPP $CPPFLAGS'
8162 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8163 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8164 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8168 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
8171 $as_echo_n "checking compiler warning flags... " >&6; }
8172 # Separate out the -Werror flag as some files just cannot be
8173 # compiled with it enabled.
8174 for w
in ${build_warnings}; do
8175 # GCC does not complain about -Wno-unknown-warning. Invert
8176 # and test -Wunknown-warning instead.
8179 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
8180 -Wformat-nonliteral)
8181 # gcc requires -Wformat before -Wformat-nonliteral
8182 # will work, so stick them together.
8191 -Werr*) WERROR_CFLAGS
=-Werror ;;
8193 # Check whether GCC accepts it.
8194 saved_CFLAGS
="$CFLAGS"
8195 CFLAGS
="$CFLAGS -Werror $wtest"
8196 saved_CXXFLAGS
="$CXXFLAGS"
8197 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
8198 if test "x$w" = "x-Wunused-variable"; then
8199 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
8200 # fixed in GCC 4.9. This test is derived from the gdb
8201 # source code that triggered this bug in GCC.
8202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204 struct scoped_restore_base {};
8205 struct scoped_restore_tmpl : public scoped_restore_base {
8206 ~scoped_restore_tmpl() {}
8211 const scoped_restore_base &b = scoped_restore_tmpl();
8216 if ac_fn_cxx_try_compile
"$LINENO"; then :
8217 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8232 if ac_fn_cxx_try_compile
"$LINENO"; then :
8233 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8237 CFLAGS
="$saved_CFLAGS"
8238 CXXFLAGS
="$saved_CXXFLAGS"
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
8242 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
8248 ac_cpp='$CPP $CPPFLAGS'
8249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8257 for ac_func in dladdr
8259 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
8260 if test "x
$ac_cv_func_dladdr" = xyes; then :
8261 cat >>confdefs.h <<_ACEOF
8262 #define HAVE_DLADDR 1
8271 # Check for presence and size of long long.
8272 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
8273 if test "x
$ac_cv_type_long_long" = xyes; then :
8275 cat >>confdefs.h <<_ACEOF
8276 #define HAVE_LONG_LONG 1
8279 # The cast to long int works around a bug in the HP C Compiler
8280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8282 # This bug is HP SR number 8606223364.
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
8284 $as_echo_n "checking size of long long...
" >&6; }
8285 if ${ac_cv_sizeof_long_long+:} false; then :
8286 $as_echo_n "(cached
) " >&6
8288 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
8291 if test "$ac_cv_type_long_long" = yes; then
8292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
8293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8294 as_fn_error 77 "cannot compute sizeof (long long)
8295 See \`config.log' for more details
" "$LINENO" 5; }
8297 ac_cv_sizeof_long_long=0
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
8303 $as_echo "$ac_cv_sizeof_long_long" >&6; }
8307 cat >>confdefs.h <<_ACEOF
8308 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8315 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
8316 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
8317 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
8323 cat >>confdefs.h <<_ACEOF
8324 #define HAVE_DECL_BASENAME $ac_have_decl
8326 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
8327 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
8333 cat >>confdefs.h <<_ACEOF
8334 #define HAVE_DECL_FFS $ac_have_decl
8336 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
8337 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
8343 cat >>confdefs.h <<_ACEOF
8344 #define HAVE_DECL_ASPRINTF $ac_have_decl
8346 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
8347 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
8353 cat >>confdefs.h <<_ACEOF
8354 #define HAVE_DECL_VASPRINTF $ac_have_decl
8356 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
8357 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
8363 cat >>confdefs.h <<_ACEOF
8364 #define HAVE_DECL_SNPRINTF $ac_have_decl
8366 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
8367 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
8373 cat >>confdefs.h <<_ACEOF
8374 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8377 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
8378 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
8384 cat >>confdefs.h <<_ACEOF
8385 #define HAVE_DECL_STRTOL $ac_have_decl
8387 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
8388 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
8394 cat >>confdefs.h <<_ACEOF
8395 #define HAVE_DECL_STRTOUL $ac_have_decl
8397 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
8398 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
8404 cat >>confdefs.h <<_ACEOF
8405 #define HAVE_DECL_STRTOLL $ac_have_decl
8407 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
8408 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
8414 cat >>confdefs.h <<_ACEOF
8415 #define HAVE_DECL_STRTOULL $ac_have_decl
8418 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
8419 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
8425 cat >>confdefs.h <<_ACEOF
8426 #define HAVE_DECL_STRVERSCMP $ac_have_decl
8431 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
8432 if test "x
$ac_cv_have_decl_perror" = xyes; then :
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_DECL_PERROR $ac_have_decl
8441 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
8442 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
8448 cat >>confdefs.h <<_ACEOF
8449 #define HAVE_DECL_VASPRINTF $ac_have_decl
8451 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
8452 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
8458 cat >>confdefs.h <<_ACEOF
8459 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8463 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
8464 if test "x
$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8466 cat >>confdefs.h <<_ACEOF
8467 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8472 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
8473 if test "x
$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8475 cat >>confdefs.h <<_ACEOF
8476 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8483 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
8484 # Older amd64 Linux's don't have the fs_base and gs_base members of
8485 # `struct user_regs_struct'.
8486 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "fs_base
" "ac_cv_member_struct_user_regs_struct_fs_base
" "#include <sys/types.h>
8487 #include <sys/user.h>
8489 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
8491 cat >>confdefs.h <<_ACEOF
8492 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
8497 ac_fn_c_check_member "$LINENO" "struct user_regs_struct
" "gs_base
" "ac_cv_member_struct_user_regs_struct_gs_base
" "#include <sys/types.h>
8498 #include <sys/user.h>
8500 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
8502 cat >>confdefs.h <<_ACEOF
8503 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
8511 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
8512 #include <sys/socket.h>
8515 if test "x
$ac_cv_type_socklen_t" = xyes; then :
8517 cat >>confdefs.h <<_ACEOF
8518 #define HAVE_SOCKLEN_T 1
8527 # Starting with NDK version 9, <elf.h> actually includes definitions
8528 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
8529 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
8530 # leading to conflicts with the defintions from <linux/elf.h>.
8531 # This makes it impossible for us to include both <elf.h> and
8532 # <linux/elf.h>, which means that, in practice, we do not have
8533 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
8534 # Therefore, do not try to auto-detect availability, as it would
8535 # get it wrong on this platform.
8538 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
8541 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
8543 cat >>confdefs.h <<_ACEOF
8544 #define HAVE_ELF32_AUXV_T 1
8549 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
8552 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
8554 cat >>confdefs.h <<_ACEOF
8555 #define HAVE_ELF64_AUXV_T 1
8565 # Check whether --with-pkgversion was given.
8566 if test "${with_pkgversion+set}" = set; then :
8567 withval=$with_pkgversion; case "$withval" in
8568 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
8570 *) PKGVERSION="($withval) " ;;
8581 # Check whether --with-bugurl was given.
8582 if test "${with_bugurl+set}" = set; then :
8583 withval=$with_bugurl; case "$withval" in
8584 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
8587 *) BUGURL="$withval"
8591 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
8601 REPORT_BUGS_TO="<$BUGURL>"
8602 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8609 cat >>confdefs.h <<_ACEOF
8610 #define PKGVERSION "$PKGVERSION"
8614 cat >>confdefs.h <<_ACEOF
8615 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8619 # Check for various supplementary target information (beyond the
8620 # triplet) which might affect the choices in configure.srv.
8622 i[34567]86-*-linux*)
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
8624 $as_echo_n "checking
if building
for x86-64...
" >&6; }
8625 if ${gdb_cv_i386_is_x86_64+:} false; then :
8626 $as_echo_n "(cached
) " >&6
8628 save_CPPFLAGS="$CPPFLAGS"
8629 CPPFLAGS="$CPPFLAGS $CFLAGS"
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8638 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8639 $EGREP "got it
" >/dev/null 2>&1; then :
8640 gdb_cv_i386_is_x86_64=yes
8642 gdb_cv_i386_is_x86_64=no
8646 CPPFLAGS="$save_CPPFLAGS"
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
8649 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
8654 $as_echo_n "checking
if building
for x32...
" >&6; }
8655 if ${gdb_cv_x86_is_x32+:} false; then :
8656 $as_echo_n "(cached
) " >&6
8658 save_CPPFLAGS="$CPPFLAGS"
8659 CPPFLAGS="$CPPFLAGS $CFLAGS"
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8663 #if __x86_64__ && __ILP32__
8668 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8669 $EGREP "got it
" >/dev/null 2>&1; then :
8670 gdb_cv_x86_is_x32=yes
8672 gdb_cv_x86_is_x32=no
8676 CPPFLAGS="$save_CPPFLAGS"
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
8679 $as_echo "$gdb_cv_x86_is_x32" >&6; }
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
8684 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
8685 if ${gdb_cv_m68k_is_coldfire+:} false; then :
8686 $as_echo_n "(cached
) " >&6
8688 save_CPPFLAGS="$CPPFLAGS"
8689 CPPFLAGS="$CPPFLAGS $CFLAGS"
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8693 #ifdef __mcoldfire__
8698 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8699 $EGREP "got it
" >/dev/null 2>&1; then :
8700 gdb_cv_m68k_is_coldfire=yes
8702 gdb_cv_m68k_is_coldfire=no
8706 CPPFLAGS="$save_CPPFLAGS"
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
8709 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
8713 . ${srcdir}/configure.srv
8715 if test "${srv_mingwce}" = "yes"; then
8717 elif test "${srv_mingw}" = "yes"; then
8718 # WIN32APILIBS is set by GDB_AC_COMMON.
8719 LIBS="$LIBS $WIN32APILIBS"
8720 elif test "${srv_qnx}" = "yes"; then
8721 LIBS="$LIBS -lsocket"
8722 elif test "${srv_lynxos}" = "yes"; then
8723 LIBS="$LIBS -lnetinet"
8726 if test "${srv_linux_usrregs}" = "yes"; then
8728 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
8732 if test "${srv_linux_regsets}" = "yes"; then
8734 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
8738 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
8739 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
8740 $as_echo_n "(cached) " >&6
8742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 #include <sys/ptrace.h>
8753 if ac_fn_c_try_compile
"$LINENO"; then :
8754 gdbsrv_cv_have_ptrace_getregs
=yes
8756 gdbsrv_cv_have_ptrace_getregs
=no
8758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
8762 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
8763 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
8765 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
8770 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
8771 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
8772 $as_echo_n "(cached) " >&6
8774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776 #include <sys/ptrace.h>
8785 if ac_fn_c_try_compile
"$LINENO"; then :
8786 gdbsrv_cv_have_ptrace_getfpxregs
=yes
8788 gdbsrv_cv_have_ptrace_getfpxregs
=no
8790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
8794 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
8795 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
8797 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
8802 if test "${srv_linux_btrace}" = "yes"; then
8804 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
8808 if test "$ac_cv_header_sys_procfs_h" = yes; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
8810 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
8811 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
8812 $as_echo_n "(cached) " >&6
8814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8818 /* Needed for new procfs interface on sparc-solaris. */
8819 #define _STRUCTURED_PROC 1
8820 #include <sys/procfs.h>
8829 if ac_fn_c_try_compile
"$LINENO"; then :
8830 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8832 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8838 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8840 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
8844 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
8847 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
8848 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
8849 $as_echo_n "(cached) " >&6
8851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8855 /* Needed for new procfs interface on sparc-solaris. */
8856 #define _STRUCTURED_PROC 1
8857 #include <sys/procfs.h>
8866 if ac_fn_c_try_compile
"$LINENO"; then :
8867 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8869 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8875 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8877 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8881 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8884 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8885 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
8886 $as_echo_n "(cached) " >&6
8888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8892 /* Needed for new procfs interface on sparc-solaris. */
8893 #define _STRUCTURED_PROC 1
8894 #include <sys/procfs.h>
8903 if ac_fn_c_try_compile
"$LINENO"; then :
8904 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8906 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8912 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8914 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8918 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8921 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8922 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
8923 $as_echo_n "(cached) " >&6
8925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8929 /* Needed for new procfs interface on sparc-solaris. */
8930 #define _STRUCTURED_PROC 1
8931 #include <sys/procfs.h>
8940 if ac_fn_c_try_compile
"$LINENO"; then :
8941 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8943 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8949 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8951 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8955 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8958 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8959 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
8960 $as_echo_n "(cached) " >&6
8962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8966 /* Needed for new procfs interface on sparc-solaris. */
8967 #define _STRUCTURED_PROC 1
8968 #include <sys/procfs.h>
8977 if ac_fn_c_try_compile
"$LINENO"; then :
8978 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8980 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8986 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8988 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8992 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8996 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
8998 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
8999 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
9000 $as_echo_n "(cached) " >&6
9002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9005 #include <thread_db.h>
9014 if ac_fn_c_try_compile
"$LINENO"; then :
9015 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
9017 gdbserver_cv_have_thread_db_type_lwpid_t
=no
9020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9023 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
9025 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
9029 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
9033 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
9035 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
9036 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
9037 $as_echo_n "(cached) " >&6
9039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9042 #include <thread_db.h>
9051 if ac_fn_c_try_compile
"$LINENO"; then :
9052 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
9054 gdbserver_cv_have_thread_db_type_psaddr_t
=no
9057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9060 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
9062 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
9066 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9073 if ${ac_cv_lib_dl_dlopen+:} false
; then :
9074 $as_echo_n "(cached) " >&6
9076 ac_check_lib_save_LIBS
=$LIBS
9078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9096 if ac_fn_c_try_link
"$LINENO"; then :
9097 ac_cv_lib_dl_dlopen
=yes
9099 ac_cv_lib_dl_dlopen
=no
9101 rm -f core conftest.err conftest.
$ac_objext \
9102 conftest
$ac_exeext conftest.
$ac_ext
9103 LIBS
=$ac_check_lib_save_LIBS
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9107 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
9108 cat >>confdefs.h
<<_ACEOF
9109 #define HAVE_LIBDL 1
9118 srv_thread_depfiles
=
9121 if test "$srv_linux_thread_db" = "yes"; then
9122 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
9125 $as_echo_n "checking for the dynamic export flag... " >&6; }
9126 old_LDFLAGS
="$LDFLAGS"
9127 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
9129 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
9130 LDFLAGS
="$LDFLAGS $RDYNAMIC"
9131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9142 if ac_fn_c_try_link
"$LINENO"; then :
9143 found
="-Wl,--dynamic-list"
9144 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
9146 RDYNAMIC
="-rdynamic"
9147 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
9148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9159 if ac_fn_c_try_link
"$LINENO"; then :
9165 rm -f core conftest.err conftest.
$ac_objext \
9166 conftest
$ac_exeext conftest.
$ac_ext
9168 rm -f core conftest.err conftest.
$ac_objext \
9169 conftest
$ac_exeext conftest.
$ac_ext
9171 LDFLAGS
="$old_LDFLAGS"
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
9173 $as_echo "$found" >&6; }
9175 srv_libs
="-lthread_db"
9178 srv_thread_depfiles
="thread-db.o proc-service.o"
9180 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
9183 $as_echo_n "checking for TD_VERSION... " >&6; }
9184 if ${gdbsrv_cv_have_td_version+:} false
; then :
9185 $as_echo_n "(cached) " >&6
9187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9189 #include <thread_db.h>
9198 if ac_fn_c_try_compile
"$LINENO"; then :
9199 gdbsrv_cv_have_td_version
=yes
9201 gdbsrv_cv_have_td_version
=no
9203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
9206 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
9207 if test "$gdbsrv_cv_have_td_version" = yes; then
9209 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
9215 # Check whether --with-libthread-db was given.
9216 if test "${with_libthread_db+set}" = set; then :
9217 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
9218 srv_libs
="$srv_libthread_db_path"
9223 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
9225 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
9229 if test "$srv_xmlfiles" != ""; then
9230 srv_xmlbuiltin
="xml-builtin.o"
9232 $as_echo "#define USE_XML 1" >>confdefs.h
9235 tmp_xmlfiles
=$srv_xmlfiles
9237 for f
in $tmp_xmlfiles; do
9238 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
9242 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_selftest_objs"
9243 GDBSERVER_LIBS
="$srv_libs"
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
9246 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
9247 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
9248 $as_echo_n "(cached) " >&6
9251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9257 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9262 if ac_fn_c_try_link
"$LINENO"; then :
9263 gdbsrv_cv_have_sync_builtins
=yes
9265 gdbsrv_cv_have_sync_builtins
=no
9267 rm -f core conftest.err conftest.
$ac_objext \
9268 conftest
$ac_exeext conftest.
$ac_ext
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
9271 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
9272 if test "$gdbsrv_cv_have_sync_builtins" = yes; then
9274 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
9278 saved_cflags
="$CFLAGS"
9279 CFLAGS
="$CFLAGS -fvisibility=hidden"
9280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9291 if ac_fn_c_try_compile
"$LINENO"; then :
9292 gdbsrv_cv_have_visibility_hidden
=yes
9294 gdbsrv_cv_have_visibility_hidden
=no
9296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9297 CFLAGS
="$saved_cflags"
9299 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
9301 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
9307 cat >>confdefs.h
<<_ACEOF
9308 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
9312 if test "$cross_compiling" = yes; then :
9313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 #include <sys/personality.h>
9320 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
9321 # define ADDR_NO_RANDOMIZE 0x0040000
9323 /* Test the flag could be set and stays set. */
9324 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
9325 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
9331 if ac_fn_c_try_link
"$LINENO"; then :
9332 gdbsrv_cv_have_personality
=true
9334 gdbsrv_cv_have_personality
=false
9336 rm -f core conftest.err conftest.
$ac_objext \
9337 conftest
$ac_exeext conftest.
$ac_ext
9339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9341 #include <sys/personality.h>
9346 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
9347 # define ADDR_NO_RANDOMIZE 0x0040000
9349 /* Test the flag could be set and stays set. */
9350 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
9351 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
9357 if ac_fn_c_try_run
"$LINENO"; then :
9358 gdbsrv_cv_have_personality
=true
9360 gdbsrv_cv_have_personality
=false
9362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9363 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9366 if $gdbsrv_cv_have_personality
9369 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
9377 # check whether to enable the inprocess agent
9378 if test "$ipa_obj" != "" \
9379 -a "$gdbsrv_cv_have_sync_builtins" = yes \
9380 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
9386 # Check whether --enable-inprocess-agent was given.
9387 if test "${enable_inprocess_agent+set}" = set; then :
9388 enableval
=$enable_inprocess_agent; case "$enableval" in
9389 yes) want_ipa
=true
;;
9390 no
) want_ipa
=false
;;
9391 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
9400 IPA_DEPFILES
="$ipa_obj"
9401 extra_libraries
="$extra_libraries libinproctrace.so"
9403 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
9414 GNULIB
=build-gnulib-gdbserver
/import
9417 if test x
"$STDINT_H" != x
; then
9418 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
9422 ac_config_files
="$ac_config_files Makefile"
9425 cat >confcache
<<\_ACEOF
9426 # This file is a shell script that caches the results of configure
9427 # tests run on this system so they can be shared between configure
9428 # scripts and configure runs, see configure's option --config-cache.
9429 # It is not useful on other systems. If it contains results you don't
9430 # want to keep, you may remove or edit it.
9432 # config.status only pays attention to the cache file if you give it
9433 # the --recheck option to rerun configure.
9435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9441 # The following way of writing the cache mishandles newlines in values,
9442 # but we know of no workaround that is simple, portable, and efficient.
9443 # So, we kill variables containing newlines.
9444 # Ultrix sh set writes to stderr and can't be redirected directly,
9445 # and sets the high bit in the cache file unless we assign to the vars.
9447 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9448 eval ac_val
=\$
$ac_var
9452 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9456 _ | IFS | as_nl
) ;; #(
9457 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9458 *) { eval $ac_var=; unset $ac_var;} ;;
9464 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9465 *${as_nl}ac_space
=\
*)
9466 # `set' does not quote correctly, so add quotes: double-quote
9467 # substitution turns \\\\ into \\, and sed turns \\ into \.
9470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9473 # `set' quotes correctly as required by POSIX, so do not add quotes.
9474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9487 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9488 if test -w "$cache_file"; then
9489 if test "x$cache_file" != "x/dev/null"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9491 $as_echo "$as_me: updating cache $cache_file" >&6;}
9492 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9493 cat confcache
>"$cache_file"
9495 case $cache_file in #(
9497 mv -f confcache
"$cache_file"$$
&&
9498 mv -f "$cache_file"$$
"$cache_file" ;; #(
9500 mv -f confcache
"$cache_file" ;;
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9506 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9511 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9512 # Let make expand exec_prefix.
9513 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9515 DEFS
=-DHAVE_CONFIG_H
9520 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9521 # 1. Remove the extension, and $U if already installed.
9522 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9523 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9524 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9525 # will be set to the directory where LIBOBJS objects are built.
9526 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9527 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9531 LTLIBOBJS
=$ac_ltlibobjs
9534 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9535 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
9536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9539 : "${CONFIG_STATUS=./config.status}"
9541 ac_clean_files_save
=$ac_clean_files
9542 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9544 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9546 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9548 # Generated by $as_me.
9549 # Run this file to recreate the current configuration.
9550 # Compiler output produced by configure, useful for debugging
9551 # configure, is in config.log if it exists.
9557 SHELL=\${CONFIG_SHELL-$SHELL}
9560 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9561 ## -------------------- ##
9562 ## M4sh Initialization. ##
9563 ## -------------------- ##
9565 # Be more Bourne compatible
9566 DUALCASE
=1; export DUALCASE
# for MKS sh
9567 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9570 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9571 # is contrary to our usage. Disable this feature.
9572 alias -g '${1+"$@"}'='"$@"'
9573 setopt NO_GLOB_SUBST
9575 case `(set -o) 2>/dev/null` in #(
9587 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9588 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9590 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9591 # Prefer a ksh shell builtin over an external printf program on Solaris,
9592 # but without wasting forks for bash or zsh.
9593 if test -z "$BASH_VERSION$ZSH_VERSION" \
9594 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9595 as_echo='print
-r --'
9596 as_echo_n='print
-rn --'
9597 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9598 as_echo='printf %s
\n'
9599 as_echo_n='printf %s
'
9601 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9602 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9603 as_echo_n='/usr
/ucb
/echo -n'
9605 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9606 as_echo_n_body='eval
9610 expr "X$arg" : "X\\(.*\\)$as_nl";
9611 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9613 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
9615 export as_echo_n_body
9616 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9619 as_echo='sh
-c $as_echo_body as_echo
'
9622 # The user is always right.
9623 if test "${PATH_SEPARATOR+set}" != set; then
9625 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9626 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9633 # We need space, tab and new line, in precisely that order. Quoting is
9634 # there to prevent editors from complaining about space-tab.
9635 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9636 # splitting by setting IFS to empty value.)
9639 # Find who we are. Look in the path if we contain no directory separator.
9642 *[\\/]* ) as_myself=$0 ;;
9643 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647 test -z "$as_dir" && as_dir=.
9648 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9654 # We did not find ourselves, most probably we were run as `sh COMMAND'
9655 # in which case we are not to be found in the path.
9656 if test "x$as_myself" = x
; then
9659 if test ! -f "$as_myself"; then
9660 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9664 # Unset variables that we do not need and which cause bugs (e.g. in
9665 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9666 # suppresses any "Segmentation fault" message there. '((' could
9667 # trigger a bug in pdksh 5.2.14.
9668 for as_var
in BASH_ENV ENV MAIL MAILPATH
9669 do eval test x\
${$as_var+set} = xset \
9670 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9683 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9686 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9687 # ----------------------------------------
9688 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9689 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9690 # script with STATUS, using 1 if that was 0.
9693 as_status
=$1; test $as_status -eq 0 && as_status
=1
9695 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9696 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9698 $as_echo "$as_me: error: $2" >&2
9699 as_fn_exit
$as_status
9703 # as_fn_set_status STATUS
9704 # -----------------------
9705 # Set $? to STATUS, without forking.
9709 } # as_fn_set_status
9713 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9723 # Portably unset VAR.
9726 { eval $1=; unset $1;}
9728 as_unset
=as_fn_unset
9729 # as_fn_append VAR VALUE
9730 # ----------------------
9731 # Append the text in VALUE to the end of the definition contained in VAR. Take
9732 # advantage of any shell optimizations that allow amortized linear growth over
9733 # repeated appends, instead of the typical quadratic growth present in naive
9735 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9736 eval 'as_fn_append ()
9747 # as_fn_arith ARG...
9748 # ------------------
9749 # Perform arithmetic evaluation on the ARGs, and store the result in the
9750 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9751 # must be portable across $(()) and expr.
9752 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9753 eval 'as_fn_arith ()
9760 as_val
=`expr "$@" || test $? -eq 1`
9765 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9766 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9772 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9773 as_basename
=basename
9778 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9784 as_me
=`$as_basename -- "$0" ||
9785 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9786 X"$0" : 'X\(//\)$' \| \
9787 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9789 sed '/^.*\/\([^/][^/]*\)\/*$/{
9803 # Avoid depending upon Character Ranges.
9804 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9805 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9806 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9807 as_cr_digits
='0123456789'
9808 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9810 ECHO_C
= ECHO_N
= ECHO_T
=
9811 case `echo -n x` in #(((((
9813 case `echo 'xy\c'` in
9814 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9816 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9823 rm -f conf$$ conf$$.exe conf$$.
file
9824 if test -d conf$$.dir
; then
9825 rm -f conf$$.dir
/conf$$.
file
9828 mkdir conf$$.dir
2>/dev
/null
9830 if (echo >conf$$.
file) 2>/dev
/null
; then
9831 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9833 # ... but there are two gotchas:
9834 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9835 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9836 # In both cases, we have to default to `cp -pR'.
9837 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9839 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9847 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9848 rmdir conf$$.dir
2>/dev
/null
9853 # Create "$as_dir" as a directory, including parents if necessary.
9858 -*) as_dir
=.
/$as_dir;;
9860 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9864 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9865 *) as_qdir
=$as_dir;;
9867 as_dirs
="'$as_qdir' $as_dirs"
9868 as_dir
=`$as_dirname -- "$as_dir" ||
9869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9870 X"$as_dir" : 'X\(//\)[^/]' \| \
9871 X"$as_dir" : 'X\(//\)$' \| \
9872 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9873 $as_echo X"$as_dir" |
9874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9891 test -d "$as_dir" && break
9893 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9894 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9898 if mkdir
-p .
2>/dev
/null
; then
9899 as_mkdir_p
='mkdir -p "$as_dir"'
9901 test -d .
/-p && rmdir .
/-p
9906 # as_fn_executable_p FILE
9907 # -----------------------
9908 # Test if FILE is an executable regular file.
9909 as_fn_executable_p
()
9911 test -f "$1" && test -x "$1"
9912 } # as_fn_executable_p
9914 as_executable_p
=as_fn_executable_p
9916 # Sed expression to map a string onto a valid CPP name.
9917 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9919 # Sed expression to map a string onto a valid variable name.
9920 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9924 ## ----------------------------------- ##
9925 ## Main body of $CONFIG_STATUS script. ##
9926 ## ----------------------------------- ##
9928 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9931 # Save the log message, to keep $0 and so on meaningful, and to
9932 # report actual input values of CONFIG_FILES etc. instead of their
9933 # values after options handling.
9935 This file was extended by $as_me, which was
9936 generated by GNU Autoconf 2.69. Invocation command line was
9938 CONFIG_FILES = $CONFIG_FILES
9939 CONFIG_HEADERS = $CONFIG_HEADERS
9940 CONFIG_LINKS = $CONFIG_LINKS
9941 CONFIG_COMMANDS = $CONFIG_COMMANDS
9944 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9949 case $ac_config_files in *"
9950 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9953 case $ac_config_headers in *"
9954 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9959 # Files that config.status was made for.
9960 config_files="$ac_config_files"
9961 config_headers="$ac_config_headers"
9962 config_commands="$ac_config_commands"
9966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9968 \`$as_me' instantiates files and other configuration actions
9969 from templates according to the current configuration. Unless the files
9970 and actions are specified as TAGs, all are instantiated by default.
9972 Usage: $0 [OPTION]... [TAG]...
9974 -h, --help print this help, then exit
9975 -V, --version print version number and configuration settings, then exit
9976 --config print configuration, then exit
9977 -q, --quiet, --silent
9978 do not print progress messages
9979 -d, --debug don't remove temporary files
9980 --recheck update $as_me by reconfiguring in the same conditions
9981 --file=FILE[:TEMPLATE]
9982 instantiate the configuration file FILE
9983 --header=FILE[:TEMPLATE]
9984 instantiate the configuration header FILE
9986 Configuration files:
9989 Configuration headers:
9992 Configuration commands:
9995 Report bugs to the package provider."
9998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9999 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10002 configured by $0, generated by GNU Autoconf 2.69,
10003 with options \\"\$ac_cs_config\\"
10005 Copyright (C) 2012 Free Software Foundation, Inc.
10006 This config.status script is free software; the Free Software Foundation
10007 gives unlimited permission to copy, distribute and modify it."
10012 test -n "\$AWK" || AWK=awk
10015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10016 # The default lists apply if the user does not specify any file.
10022 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10023 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10027 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10039 # Handling of the options.
10040 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10042 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10043 $as_echo "$ac_cs_version"; exit ;;
10044 --config |
--confi |
--conf |
--con |
--co |
--c )
10045 $as_echo "$ac_cs_config"; exit ;;
10046 --debug |
--debu |
--deb |
--de |
--d |
-d )
10048 --file |
--fil |
--fi |
--f )
10051 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10052 '') as_fn_error $?
"missing file argument" ;;
10054 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10055 ac_need_defaults
=false
;;
10056 --header |
--heade |
--head |
--hea )
10059 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10061 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10062 ac_need_defaults
=false
;;
10064 # Conflict between --help and --header
10065 as_fn_error $?
"ambiguous option: \`$1'
10066 Try \`$0 --help' for more information.";;
10067 --help |
--hel |
-h )
10068 $as_echo "$ac_cs_usage"; exit ;;
10069 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10070 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10073 # This is an error.
10074 -*) as_fn_error $?
"unrecognized option: \`$1'
10075 Try \`$0 --help' for more information." ;;
10077 *) as_fn_append ac_config_targets
" $1"
10078 ac_need_defaults
=false
;;
10084 ac_configure_extra_args
=
10086 if $ac_cs_silent; then
10088 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10093 if \$ac_cs_recheck; then
10094 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10096 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10097 CONFIG_SHELL='$SHELL'
10098 export CONFIG_SHELL
10103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10107 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10108 ## Running $as_me. ##
10114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10118 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
10119 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
10123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10125 # Handling of arguments.
10126 for ac_config_target
in $ac_config_targets
10128 case $ac_config_target in
10129 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
10130 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
10131 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
10132 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10134 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10139 # If the user did not use the arguments to specify the items to instantiate,
10140 # then the envvar interface is used. Set only those that are not.
10141 # We use the long form for the default assignment because of an extremely
10142 # bizarre bug on SunOS 4.1.3.
10143 if $ac_need_defaults; then
10144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10146 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
10149 # Have a temporary directory for convenience. Make it in the build tree
10150 # simply because there is no reason against having it here, and in addition,
10151 # creating and moving files from /tmp can sometimes cause problems.
10152 # Hook for its removal unless debugging.
10153 # Note that there is a small window in which the directory will not be cleaned:
10154 # after its creation but before its name has been assigned to `$tmp'.
10158 trap 'exit_status=$?
10159 : "${ac_tmp:=$tmp}"
10160 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10162 trap 'as_fn_exit 1' 1 2 13 15
10164 # Create a (secure) tmp directory for tmp files.
10167 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10171 tmp
=.
/conf$$
-$RANDOM
10172 (umask 077 && mkdir
"$tmp")
10173 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10176 # Set up the scripts for CONFIG_FILES section.
10177 # No need to generate them if there are no CONFIG_FILES.
10178 # This happens for instance with `./config.status config.h'.
10179 if test -n "$CONFIG_FILES"; then
10182 ac_cr
=`echo X | tr X '\015'`
10183 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10184 # But we know of no other shell where ac_cr would be empty at this
10185 # point, so we can use a bashism as a fallback.
10186 if test "x$ac_cr" = x
; then
10187 eval ac_cr
=\$
\'\\r
\'
10189 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10190 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10193 ac_cs_awk_cr
=$ac_cr
10196 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10201 echo "cat >conf$$subs.awk <<_ACEOF" &&
10202 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10204 } >conf$$subs.sh ||
10205 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10206 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10208 for ac_last_try in false false false false false :; do
10209 . ./conf$$subs.sh ||
10210 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10212 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10213 if test $ac_delim_n = $ac_delim_num; then
10215 elif $ac_last_try; then
10216 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10218 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10221 rm -f conf$$subs.sh
10223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10224 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10228 s/^/S["/; s
/!.
*/"]=/
10238 s/\(.\{148\}\)..*/\1/
10240 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10245 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10252 s/\(.\{148\}\)..*/\1/
10254 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10258 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10263 ' <conf$$subs.awk | sed '
10268 ' >>$CONFIG_STATUS || ac_write_fail=1
10269 rm -f conf$$subs.awk
10270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10272 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10273 for (key in S) S_is_set[key] = 1
10279 nfields = split(line, field, "@
")
10281 len = length(field[1])
10282 for (i = 2; i < nfields; i++) {
10284 keylen = length(key)
10285 if (S_is_set[key]) {
10287 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10288 len += length(value) + length(field[++i])
10299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10300 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10301 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10304 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10305 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10308 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10309 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10310 # trailing colons and then remove the whole line if VPATH becomes empty
10311 # (actually we leave an empty line to preserve line numbers).
10312 if test "x
$srcdir" = x.; then
10313 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10332 fi # test -n "$CONFIG_FILES"
10334 # Set up the scripts for CONFIG_HEADERS section.
10335 # No need to generate them if there are no CONFIG_HEADERS.
10336 # This happens for instance with `./config.status Makefile'.
10337 if test -n "$CONFIG_HEADERS"; then
10338 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10342 # Transform confdefs.h into an awk script `defines.awk', embedded as
10343 # here-document in config.status, that substitutes the proper values into
10344 # config.h.in to produce config.h.
10346 # Create a delimiter string that does not exist in confdefs.h, to ease
10347 # handling of long lines.
10349 for ac_last_try in false false :; do
10350 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10351 if test -z "$ac_tt"; then
10353 elif $ac_last_try; then
10354 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10356 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10360 # For the awk script, D is an array of macro values keyed by name,
10361 # likewise P contains macro parameters if any. Preserve backslash
10362 # newline sequences.
10364 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10366 s/.\{148\}/&'"$ac_delim"'/g
10369 s/^[ ]*#[ ]*define[ ][ ]*/ /
10376 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10378 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10382 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10383 D["\
1"]=" \
3\\\\\\n
"\\/p
10385 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10390 s/.\{148\}/&'"$ac_delim"'/g
10395 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10398 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10400 ' <confdefs.h | sed '
10401 s/'"$ac_delim"'/"\\\
10402 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10405 for (key in D) D_is_set[key] = 1
10408 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10410 split(line, arg, " ")
10411 if (arg[1] == "#") {
10415 defundef
= substr
(arg
[1], 2)
10418 split(mac1
, mac2
, "(") #)
10420 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10421 if (D_is_set
[macro
]) {
10422 # Preserve the white space surrounding the "#".
10423 print prefix
"define", macro P
[macro
] D
[macro
]
10426 # Replace #undef with comments. This is necessary, for example,
10427 # in the case of _POSIX_SOURCE, which is predefined and required
10428 # on some systems where configure will not decide to define it.
10429 if (defundef
== "undef") {
10430 print
"/*", prefix defundef
, macro
, "*/"
10438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10439 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10440 fi # test -n "$CONFIG_HEADERS"
10443 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10448 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10450 case $ac_mode$ac_tag in
10452 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10453 :[FH
]-) ac_tag
=-:-;;
10454 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10471 -) ac_f
="$ac_tmp/stdin";;
10472 *) # Look for the file first in the build tree, then in the source tree
10473 # (if the path is not absolute). The absolute path cannot be DOS-style,
10474 # because $ac_f cannot contain `:'.
10478 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10480 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10482 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10483 as_fn_append ac_file_inputs
" '$ac_f'"
10486 # Let's still pretend it is `configure' which instantiates (i.e., don't
10487 # use $as_me), people would be surprised to read:
10488 # /* config.h. Generated by config.status. */
10489 configure_input
='Generated from '`
10490 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10492 if test x
"$ac_file" != x-
; then
10493 configure_input
="$ac_file. $configure_input"
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10495 $as_echo "$as_me: creating $ac_file" >&6;}
10497 # Neutralize special characters interpreted by sed in replacement strings.
10498 case $configure_input in #(
10499 *\
&* |
*\|
* |
*\\* )
10500 ac_sed_conf_input
=`$as_echo "$configure_input" |
10501 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10502 *) ac_sed_conf_input
=$configure_input;;
10506 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10507 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10512 ac_dir
=`$as_dirname -- "$ac_file" ||
10513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10514 X"$ac_file" : 'X\(//\)[^/]' \| \
10515 X"$ac_file" : 'X\(//\)$' \| \
10516 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10517 $as_echo X"$ac_file" |
10518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10522 /^X\(\/\/\)[^/].*/{
10535 as_dir
="$ac_dir"; as_fn_mkdir_p
10539 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10541 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10542 # A ".." for each directory in $ac_dir_suffix.
10543 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10544 case $ac_top_builddir_sub in
10545 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10546 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10549 ac_abs_top_builddir
=$ac_pwd
10550 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10551 # for backward compatibility:
10552 ac_top_builddir
=$ac_top_build_prefix
10555 .
) # We are building in place.
10557 ac_top_srcdir
=$ac_top_builddir_sub
10558 ac_abs_top_srcdir
=$ac_pwd ;;
10559 [\\/]* | ?
:[\\/]* ) # Absolute name.
10560 ac_srcdir
=$srcdir$ac_dir_suffix;
10561 ac_top_srcdir
=$srcdir
10562 ac_abs_top_srcdir
=$srcdir ;;
10563 *) # Relative name.
10564 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10565 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10566 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10568 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10578 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10579 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10584 # If the template does not know about datarootdir, expand it.
10585 # FIXME: This hack should be removed a few years after 2.60.
10586 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10597 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10598 *datarootdir
*) ac_datarootdir_seen
=yes;;
10599 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10601 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10604 ac_datarootdir_hack='
10605 s&@datadir@&$datadir&g
10606 s&@docdir@&$docdir&g
10607 s&@infodir@&$infodir&g
10608 s&@localedir@&$localedir&g
10609 s&@mandir@&$mandir&g
10610 s&\\\${datarootdir}&$datarootdir&g' ;;
10614 # Neutralize VPATH when `$srcdir' = `.'.
10615 # Shell code in configure.ac might set extrasub.
10616 # FIXME: do we really want to maintain this feature?
10617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10618 ac_sed_extra="$ac_vpsub
10621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10623 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10624 s|@configure_input@|
$ac_sed_conf_input|
;t t
10625 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10626 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10627 s
&@srcdir@
&$ac_srcdir&;t t
10628 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10629 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10630 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10631 s
&@builddir@
&$ac_builddir&;t t
10632 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10633 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10634 s
&@INSTALL@
&$ac_INSTALL&;t t
10635 $ac_datarootdir_hack
10637 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10638 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10641 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10643 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10645 which seems to be undefined. Please make sure it is defined" >&5
10646 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10647 which seems to be undefined. Please make sure it is defined" >&2;}
10649 rm -f "$ac_tmp/stdin"
10651 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10652 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10660 if test x"$ac_file" != x-; then
10662 $as_echo "/* $configure_input */" \
10663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10664 } >"$ac_tmp/config.h" \
10665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10666 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10668 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10671 mv "$ac_tmp/config.h" "$ac_file" \
10672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10675 $as_echo "/* $configure_input */" \
10676 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10677 || as_fn_error $? "could not create -" "$LINENO" 5
10681 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10682 $as_echo "$as_me: executing $ac_file commands" >&6;}
10687 case $ac_file$ac_mode in
10688 "config.h":H) echo > stamp-h ;;
10689 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
10691 for subdir in ${CONFIG_SRC_SUBDIR}
10693 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
10702 ac_clean_files=$ac_clean_files_save
10704 test $ac_write_fail = 0 ||
10705 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10708 # configure is writing to config.log, and then calls config.status.
10709 # config.status does its own redirection, appending to config.log.
10710 # Unfortunately, on DOS this fails, as config.log is still kept open
10711 # by configure, so config.status won't be able to
write to it
; its
10712 # output is simply discarded. So we exec the FD to /dev/null,
10713 # effectively closing config.log, so it can be properly (re)opened and
10714 # appended to by config.status. When coming back to configure, we
10715 # need to make the FD available again.
10716 if test "$no_create" != yes; then
10718 ac_config_status_args
=
10719 test "$silent" = yes &&
10720 ac_config_status_args
="$ac_config_status_args --quiet"
10722 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10724 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10725 # would make configure fail if this is the last instruction.
10726 $ac_cs_success || as_fn_exit
1
10728 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10730 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}