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
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6964 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6965 if ${am_cv_langinfo_codeset+:} false
; then :
6966 $as_echo_n "(cached) " >&6
6968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970 #include <langinfo.h>
6974 char* cs = nl_langinfo(CODESET);
6979 if ac_fn_c_try_link
"$LINENO"; then :
6980 am_cv_langinfo_codeset
=yes
6982 am_cv_langinfo_codeset
=no
6984 rm -f core conftest.err conftest.
$ac_objext \
6985 conftest
$ac_exeext conftest.
$ac_ext
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6989 $as_echo "$am_cv_langinfo_codeset" >&6; }
6990 if test $am_cv_langinfo_codeset = yes; then
6992 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6997 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
6999 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7000 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7001 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7002 cat >>confdefs.h
<<_ACEOF
7003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7011 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
7014 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7015 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7016 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7017 cat >>confdefs.h
<<_ACEOF
7018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7025 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
7026 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
7032 cat >>confdefs.h
<<_ACEOF
7033 #define HAVE_DECL_STRSTR $ac_have_decl
7037 # Check for std::thread. This does not work on some platforms, like
7040 ac_cpp
='$CXXCPP $CPPFLAGS'
7041 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7050 ac_cpp
='$CPP $CPPFLAGS'
7051 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7057 # We used to check for pthread.h first, but this fails if pthread.h
7058 # requires special compiler flags (e.g. on Tru64 or Sequent).
7059 # It gets checked for in the link test anyway.
7061 # First of all, check if the user has set any of the PTHREAD_LIBS,
7062 # etcetera environment variables, and if threads linking works using
7064 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7065 ax_pthread_save_CC
="$CC"
7066 ax_pthread_save_CFLAGS
="$CFLAGS"
7067 ax_pthread_save_LIBS
="$LIBS"
7068 if test "x$PTHREAD_CC" != "x"; then :
7071 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7072 LIBS
="$PTHREAD_LIBS $LIBS"
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7074 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7078 /* Override any GCC internal prototype to avoid an error.
7079 Use char because int might match the return type of a GCC
7080 builtin and then its argument prototype would still apply. */
7084 char pthread_join ();
7088 return pthread_join ();
7093 if ac_fn_c_try_link
"$LINENO"; then :
7096 rm -f core conftest.err conftest.
$ac_objext \
7097 conftest
$ac_exeext conftest.
$ac_ext
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7099 $as_echo "$ax_pthread_ok" >&6; }
7100 if test "x$ax_pthread_ok" = "xno"; then
7104 CC
="$ax_pthread_save_CC"
7105 CFLAGS
="$ax_pthread_save_CFLAGS"
7106 LIBS
="$ax_pthread_save_LIBS"
7109 # We must check for the threads library under a number of different
7110 # names; the ordering is very important because some systems
7111 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7112 # libraries is broken (non-POSIX).
7114 # Create a list of thread flags to try. Items starting with a "-" are
7115 # C compiler flags, and other items are library names, except for "none"
7116 # which indicates that we try without any flags at all, and "pthread-config"
7117 # which is a program returning the flags for the Pth emulation library.
7119 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7121 # The ordering *is* (sometimes) important. Some notes on the
7122 # individual items follow:
7124 # pthreads: AIX (must check this before -lpthread)
7125 # none: in case threads are in libc; should be tried before -Kthread and
7126 # other compiler flags to prevent continual compiler warnings
7127 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7128 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7129 # (Note: HP C rejects this with "bad form for `-t' option")
7130 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7131 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7132 # doesn't hurt to check since this sometimes defines pthreads and
7133 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7134 # is present but should not be used directly; and before -mthreads,
7135 # because the compiler interprets this as "-mt" + "-hreads")
7136 # -mthreads: Mingw32/gcc, Lynx/gcc
7137 # pthread: Linux, etcetera
7138 # --thread-safe: KAI C++
7139 # pthread-config: use pthread-config program (for GNU Pth library)
7145 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7146 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7148 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
7153 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7154 # multi-threading and also sets -lpthread."
7156 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
7161 # IBM z/OS requires a feature-test macro to be defined in order to
7162 # enable POSIX threads at all, so give the user a hint if this is
7163 # not set. (We don't define these ourselves, as they can affect
7164 # other portions of the system API in unpredictable ways.)
7166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7169 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7170 AX_PTHREAD_ZOS_MISSING
7174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7175 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7177 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7185 # On Solaris (at least, for some versions), libc contains stubbed
7186 # (non-functional) versions of the pthreads routines, so link-based
7187 # tests will erroneously succeed. (N.B.: The stubs are missing
7188 # pthread_cleanup_push, or rather a function called by this macro,
7189 # so we could check for that, but who knows whether they'll stub
7190 # that too in a future libc.) So we'll check first for the
7191 # standard Solaris way of linking pthreads (-mt -lpthread).
7193 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
7197 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7199 if test "x$GCC" = "xyes"; then :
7200 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
7203 # The presence of a feature test macro requesting re-entrant function
7204 # definitions is, on some systems, a strong hint that pthreads support is
7208 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
7209 ax_pthread_check_macro
="_REENTRANT"
7213 ax_pthread_check_macro
="_THREAD_SAFE"
7217 ax_pthread_check_macro
="--"
7220 if test "x$ax_pthread_check_macro" = "x--"; then :
7221 ax_pthread_check_cond
=0
7223 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
7226 # Are we compiling with Clang?
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7229 $as_echo_n "checking whether $CC is Clang... " >&6; }
7230 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
7231 $as_echo_n "(cached) " >&6
7233 ax_cv_PTHREAD_CLANG
=no
7234 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7235 if test "x$GCC" = "xyes"; then
7236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7239 # if defined(__clang__) && defined(__llvm__)
7240 AX_PTHREAD_CC_IS_CLANG
7244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7245 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
7246 ax_cv_PTHREAD_CLANG
=yes
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7254 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
7255 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
7257 ax_pthread_clang_warning
=no
7259 # Clang needs special handling, because older versions handle the -pthread
7260 # option in a rather... idiosyncratic way
7262 if test "x$ax_pthread_clang" = "xyes"; then
7264 # Clang takes -pthread; it has never supported any other flag
7266 # (Note 1: This will need to be revisited if a system that Clang
7267 # supports has POSIX threads in a separate library. This tends not
7268 # to be the way of modern systems, but it's conceivable.)
7270 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7271 # to get POSIX threads support; the API is always present and
7272 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7273 # -pthread does define _REENTRANT, and while the Darwin headers
7274 # ignore this macro, third-party headers might not.)
7276 PTHREAD_CFLAGS
="-pthread"
7281 # However, older versions of Clang make a point of warning the user
7282 # that, in an invocation where only linking and no compilation is
7283 # taking place, the -pthread option has no effect ("argument unused
7284 # during compilation"). They expect -pthread to be passed in only
7285 # when source code is being compiled.
7287 # Problem is, this is at odds with the way Automake and most other
7288 # C build frameworks function, which is that the same flags used in
7289 # compilation (CFLAGS) are also used in linking. Many systems
7290 # supported by AX_PTHREAD require exactly this for POSIX threads
7291 # support, and in fact it is often not straightforward to specify a
7292 # flag that is used only in the compilation phase and not in
7293 # linking. Such a scenario is extremely rare in practice.
7295 # Even though use of the -pthread flag in linking would only print
7296 # a warning, this can be a nuisance for well-run software projects
7297 # that build with -Werror. So if the active version of Clang has
7298 # this misfeature, we search for an option to squash it.
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7301 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7302 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
7303 $as_echo_n "(cached) " >&6
7305 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
7306 # Create an alternate version of $ac_link that compiles and
7307 # links in two steps (.c -> .o, .o -> exe) instead of one
7308 # (.c -> exe), because the warning occurs only in the second
7310 ax_pthread_save_ac_link
="$ac_link"
7311 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7312 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
7313 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7314 ax_pthread_save_CFLAGS
="$CFLAGS"
7315 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
7316 if test "x$ax_pthread_try" = "xunknown"; then :
7319 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7320 ac_link
="$ax_pthread_save_ac_link"
7321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323 int main(void){return 0;}
7325 if ac_fn_c_try_link
"$LINENO"; then :
7326 ac_link
="$ax_pthread_2step_ac_link"
7327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 int main(void){return 0;}
7331 if ac_fn_c_try_link
"$LINENO"; then :
7334 rm -f core conftest.err conftest.
$ac_objext \
7335 conftest
$ac_exeext conftest.
$ac_ext
7338 rm -f core conftest.err conftest.
$ac_objext \
7339 conftest
$ac_exeext conftest.
$ac_ext
7341 ac_link
="$ax_pthread_save_ac_link"
7342 CFLAGS
="$ax_pthread_save_CFLAGS"
7343 if test "x$ax_pthread_try" = "x"; then :
7346 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7350 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7352 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7354 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7357 fi # $ax_pthread_clang = yes
7359 if test "x$ax_pthread_ok" = "xno"; then
7360 for ax_pthread_try_flag
in $ax_pthread_flags; do
7362 case $ax_pthread_try_flag in
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7365 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
7370 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
7371 PTHREAD_CFLAGS
="-mt"
7372 PTHREAD_LIBS
="-lpthread"
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7377 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7378 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
7382 # Extract the first word of "pthread-config", so it can be a program name with args.
7383 set dummy pthread-config
; ac_word
=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
7387 $as_echo_n "(cached) " >&6
7389 if test -n "$ax_pthread_config"; then
7390 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
7392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir
=.
7397 for ac_exec_ext
in '' $ac_executable_extensions; do
7398 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_ax_pthread_config
="yes"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
7410 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
7411 if test -n "$ax_pthread_config"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7413 $as_echo "$ax_pthread_config" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7420 if test "x$ax_pthread_config" = "xno"; then :
7423 PTHREAD_CFLAGS
="`pthread-config --cflags`"
7424 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7429 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7430 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
7434 ax_pthread_save_CFLAGS
="$CFLAGS"
7435 ax_pthread_save_LIBS
="$LIBS"
7436 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7437 LIBS
="$PTHREAD_LIBS $LIBS"
7439 # Check for various functions. We must include pthread.h,
7440 # since some functions may be macros. (On the Sequent, we
7441 # need a special flag -Kthread to make this header compile.)
7442 # We check for pthread_join because it is in -lpthread on IRIX
7443 # while pthread_create is in libc. We check for pthread_attr_init
7444 # due to DEC craziness with -lpthreads. We check for
7445 # pthread_cleanup_push because it is one of the few pthread
7446 # functions on Solaris that doesn't have a non-functional libc stub.
7447 # We try pthread_create on general principles.
7449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 #include <pthread.h>
7452 # if $ax_pthread_check_cond
7453 # error "$ax_pthread_check_macro must be defined"
7455 static void routine(void *a) { a = 0; }
7456 static void *start_routine(void *a) { return a; }
7460 pthread_t th; pthread_attr_t attr;
7461 pthread_create(&th, 0, start_routine, 0);
7462 pthread_join(th, 0);
7463 pthread_attr_init(&attr);
7464 pthread_cleanup_push(routine, 0);
7465 pthread_cleanup_pop(0) /* ; */
7470 if ac_fn_c_try_link
"$LINENO"; then :
7473 rm -f core conftest.err conftest.
$ac_objext \
7474 conftest
$ac_exeext conftest.
$ac_ext
7476 CFLAGS
="$ax_pthread_save_CFLAGS"
7477 LIBS
="$ax_pthread_save_LIBS"
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7480 $as_echo "$ax_pthread_ok" >&6; }
7481 if test "x$ax_pthread_ok" = "xyes"; then :
7490 # Various other checks:
7491 if test "x$ax_pthread_ok" = "xyes"; then
7492 ax_pthread_save_CFLAGS
="$CFLAGS"
7493 ax_pthread_save_LIBS
="$LIBS"
7494 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7495 LIBS
="$PTHREAD_LIBS $LIBS"
7497 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7499 $as_echo_n "checking for joinable pthread attribute... " >&6; }
7500 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
7501 $as_echo_n "(cached) " >&6
7503 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
7504 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <pthread.h>
7511 int attr = $ax_pthread_attr; return attr /* ; */
7516 if ac_fn_c_try_link
"$LINENO"; then :
7517 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
7519 rm -f core conftest.err conftest.
$ac_objext \
7520 conftest
$ac_exeext conftest.
$ac_ext
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7525 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7526 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7527 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7528 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
7530 cat >>confdefs.h
<<_ACEOF
7531 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
7534 ax_pthread_joinable_attr_defined
=yes
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7539 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
7540 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
7541 $as_echo_n "(cached) " >&6
7543 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
7546 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7552 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7553 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7554 test "x$ax_pthread_special_flags_added" != "xyes"; then :
7555 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7556 ax_pthread_special_flags_added
=yes
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7560 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7561 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
7562 $as_echo_n "(cached) " >&6
7564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 #include <pthread.h>
7570 int i = PTHREAD_PRIO_INHERIT;
7575 if ac_fn_c_try_link
"$LINENO"; then :
7576 ax_cv_PTHREAD_PRIO_INHERIT
=yes
7578 ax_cv_PTHREAD_PRIO_INHERIT
=no
7580 rm -f core conftest.err conftest.
$ac_objext \
7581 conftest
$ac_exeext conftest.
$ac_ext
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7585 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7586 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7587 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
7589 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7591 ax_pthread_prio_inherit_defined
=yes
7595 CFLAGS
="$ax_pthread_save_CFLAGS"
7596 LIBS
="$ax_pthread_save_LIBS"
7598 # More AIX lossage: compile with *_r variant
7599 if test "x$GCC" != "xyes"; then
7603 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
7604 #handle absolute path differently from PATH based program lookup
7607 if as_fn_executable_p
${CC}_r
; then :
7608 PTHREAD_CC
="${CC}_r"
7611 for ac_prog
in ${CC}_r
7613 # Extract the first word of "$ac_prog", so it can be a program name with args.
7614 set dummy
$ac_prog; ac_word
=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
7618 $as_echo_n "(cached) " >&6
7620 if test -n "$PTHREAD_CC"; then
7621 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
7623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7627 test -z "$as_dir" && as_dir
=.
7628 for ac_exec_ext
in '' $ac_executable_extensions; do
7629 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_PTHREAD_CC
="$ac_prog"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
7641 if test -n "$PTHREAD_CC"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7643 $as_echo "$PTHREAD_CC" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7650 test -n "$PTHREAD_CC" && break
7652 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7663 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7669 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7670 if test "x$ax_pthread_ok" = "xyes"; then
7678 ac_cpp
='$CXXCPP $CPPFLAGS'
7679 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7680 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7681 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7684 if test "$threads" = "yes"; then
7686 LIBS
="$PTHREAD_LIBS $LIBS"
7687 save_CXXFLAGS
="$CXXFLAGS"
7688 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
7690 $as_echo_n "checking for std::thread... " >&6; }
7691 if ${gdb_cv_cxx_std_thread+:} false
; then :
7692 $as_echo_n "(cached) " >&6
7694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7701 std::thread t(callback);
7706 if ac_fn_cxx_try_compile
"$LINENO"; then :
7707 gdb_cv_cxx_std_thread
=yes
7709 gdb_cv_cxx_std_thread
=no
7711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
7714 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
7716 # This check must be here, while LIBS includes any necessary
7717 # threading library.
7718 for ac_func
in pthread_sigmask pthread_setname_np
7720 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7721 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7722 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7723 cat >>confdefs.h
<<_ACEOF
7724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7732 CXXFLAGS
="$save_CXXFLAGS"
7734 if test "$gdb_cv_cxx_std_thread" = "yes"; then
7736 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
7740 ac_cpp
='$CPP $CPPFLAGS'
7741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
7747 $as_echo_n "checking for sigsetjmp... " >&6; }
7748 if ${gdb_cv_func_sigsetjmp+:} false
; then :
7749 $as_echo_n "(cached) " >&6
7751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7759 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7764 if ac_fn_c_try_compile
"$LINENO"; then :
7765 gdb_cv_func_sigsetjmp
=yes
7767 gdb_cv_func_sigsetjmp
=no
7769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
7772 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
7773 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
7775 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
7780 # Check the return and argument types of ptrace.
7783 for ac_header
in sys
/ptrace.h ptrace.h
7785 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7786 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7787 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7788 cat >>confdefs.h
<<_ACEOF
7789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7797 gdb_ptrace_headers
='
7798 #include <sys/types.h>
7799 #if HAVE_SYS_PTRACE_H
7800 # include <sys/ptrace.h>
7803 # include <unistd.h>
7806 # There is no point in checking if we don't have a prototype.
7807 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
7809 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
7815 cat >>confdefs.h
<<_ACEOF
7816 #define HAVE_DECL_PTRACE $ac_have_decl
7818 if test $ac_have_decl = 1; then :
7822 : ${gdb_cv_func_ptrace_ret='int'}
7823 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7827 # Check return type. Varargs (used on GNU/Linux) conflict with the
7828 # empty argument list, so check for that explicitly.
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
7830 $as_echo_n "checking return type of ptrace... " >&6; }
7831 if ${gdb_cv_func_ptrace_ret+:} false
; then :
7832 $as_echo_n "(cached) " >&6
7834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7840 extern long ptrace (enum __ptrace_request, ...);
7845 if ac_fn_c_try_compile
"$LINENO"; then :
7846 gdb_cv_func_ptrace_ret
='long'
7848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7854 extern int ptrace ();
7859 if ac_fn_c_try_compile
"$LINENO"; then :
7860 gdb_cv_func_ptrace_ret
='int'
7862 gdb_cv_func_ptrace_ret
='long'
7864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
7869 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
7871 cat >>confdefs.h
<<_ACEOF
7872 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
7875 # Check argument types.
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
7877 $as_echo_n "checking types of arguments for ptrace... " >&6; }
7878 if ${gdb_cv_func_ptrace_args+:} false
; then :
7879 $as_echo_n "(cached) " >&6
7882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7888 extern long ptrace (enum __ptrace_request, ...);
7893 if ac_fn_c_try_compile
"$LINENO"; then :
7894 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
7897 for gdb_arg1
in 'int' 'long'; do
7898 for gdb_arg2
in 'pid_t' 'int' 'long'; do
7899 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
7900 for gdb_arg4
in 'int' 'long' 'void *'; do
7901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7908 extern $gdb_cv_func_ptrace_ret
7909 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
7915 if ac_fn_c_try_compile
"$LINENO"; then :
7916 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
7919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7920 for gdb_arg5
in 'int *' 'int' 'long'; do
7921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7928 extern $gdb_cv_func_ptrace_ret
7929 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7935 if ac_fn_c_try_compile
"$LINENO"; then :
7937 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7946 # Provide a safe default value.
7947 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
7953 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
7954 ac_save_IFS
=$IFS; IFS
=','
7955 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7959 cat >>confdefs.h
<<_ACEOF
7960 #define PTRACE_TYPE_ARG1 $1
7964 cat >>confdefs.h
<<_ACEOF
7965 #define PTRACE_TYPE_ARG3 $3
7969 cat >>confdefs.h
<<_ACEOF
7970 #define PTRACE_TYPE_ARG4 $4
7973 if test -n "$5"; then
7975 cat >>confdefs.h
<<_ACEOF
7976 #define PTRACE_TYPE_ARG5 $5
7987 # Check whether --with-ust was given.
7988 if test "${with_ust+set}" = set; then :
7993 # Check whether --with-ust_include was given.
7994 if test "${with_ust_include+set}" = set; then :
7995 withval
=$with_ust_include;
7999 # Check whether --with-ust_lib was given.
8000 if test "${with_ust_lib+set}" = set; then :
8001 withval
=$with_ust_lib;
8015 ustlibs
="-L$with_ust/lib -lust"
8016 ustinc
="-I$with_ust/include "
8019 if test "x$with_ust_include" != x
; then
8020 ustinc
="-I$with_ust_include "
8022 if test "x$with_ust_lib" != x
; then
8023 ustlibs
="-L$with_ust_lib -lust"
8026 if test "x$with_ust" != "xno"; then
8027 saved_CFLAGS
="$CFLAGS"
8028 CFLAGS
="$CFLAGS $ustinc"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
8030 $as_echo_n "checking for ust... " >&6; }
8031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8034 #define CONFIG_UST_GDB_INTEGRATION
8035 #include <ust/ust.h>
8045 if ac_fn_c_try_compile
"$LINENO"; then :
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8047 $as_echo "yes" >&6; };
8048 $as_echo "#define HAVE_UST 1" >>confdefs.h
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
8054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8055 CFLAGS
="$saved_CFLAGS"
8058 # Flags needed for UST
8063 # Check whether --enable-werror was given.
8064 if test "${enable_werror+set}" = set; then :
8065 enableval
=$enable_werror; case "${enableval}" in
8066 yes | y
) ERROR_ON_WARNING
="yes" ;;
8067 no | n
) ERROR_ON_WARNING
="no" ;;
8068 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
8073 # Enable -Werror by default when using gcc. Turn it off for releases.
8074 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
8075 ERROR_ON_WARNING
=yes
8079 if test "${ERROR_ON_WARNING}" = yes ; then
8080 WERROR_CFLAGS
="-Werror"
8083 # The options we'll try to enable.
8084 build_warnings
="-Wall -Wpointer-arith \
8085 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
8086 -Wno-switch -Wno-char-subscripts \
8087 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
8088 -Wno-sign-compare -Wno-error=maybe-uninitialized \
8089 -Wno-mismatched-tags \
8090 -Wno-error=deprecated-register \
8091 -Wsuggest-override \
8092 -Wimplicit-fallthrough=3 \
8096 -Wdeprecated-copy-dtor \
8101 # Enable -Wno-format by default when using gcc on mingw since many
8102 # GCC versions complain about %I64.
8103 build_warnings
="$build_warnings -Wno-format" ;;
8105 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
8106 # doesn't understand.
8107 build_warnings
="$build_warnings -Wno-unknown-pragmas"
8108 # Solaris 11 <unistd.h> marks vfork deprecated.
8109 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
8111 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
8112 # but there's a special case for this below.
8113 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
8116 # Check whether --enable-build-warnings was given.
8117 if test "${enable_build_warnings+set}" = set; then :
8118 enableval
=$enable_build_warnings; case "${enableval}" in
8120 no
) build_warnings
="-w";;
8121 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8122 build_warnings
="${build_warnings} ${t}";;
8123 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8124 build_warnings
="${t} ${build_warnings}";;
8125 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8127 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8128 echo "Setting compiler warning flags = $build_warnings" 6>&1
8131 # Check whether --enable-gdb-build-warnings was given.
8132 if test "${enable_gdb_build_warnings+set}" = set; then :
8133 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
8135 no
) build_warnings
="-w";;
8136 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8137 build_warnings
="${build_warnings} ${t}";;
8138 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8139 build_warnings
="${t} ${build_warnings}";;
8140 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8142 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8143 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8147 # The set of warnings supported by a C++ compiler is not the same as
8148 # of the C compiler.
8150 ac_cpp
='$CXXCPP $CPPFLAGS'
8151 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8152 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8153 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8157 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
8160 $as_echo_n "checking compiler warning flags... " >&6; }
8161 # Separate out the -Werror flag as some files just cannot be
8162 # compiled with it enabled.
8163 for w
in ${build_warnings}; do
8164 # GCC does not complain about -Wno-unknown-warning. Invert
8165 # and test -Wunknown-warning instead.
8168 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
8169 -Wformat-nonliteral)
8170 # gcc requires -Wformat before -Wformat-nonliteral
8171 # will work, so stick them together.
8180 -Werr*) WERROR_CFLAGS
=-Werror ;;
8182 # Check whether GCC accepts it.
8183 saved_CFLAGS
="$CFLAGS"
8184 CFLAGS
="$CFLAGS -Werror $wtest"
8185 saved_CXXFLAGS
="$CXXFLAGS"
8186 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
8187 if test "x$w" = "x-Wunused-variable"; then
8188 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
8189 # fixed in GCC 4.9. This test is derived from the gdb
8190 # source code that triggered this bug in GCC.
8191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193 struct scoped_restore_base {};
8194 struct scoped_restore_tmpl : public scoped_restore_base {
8195 ~scoped_restore_tmpl() {}
8200 const scoped_restore_base &b = scoped_restore_tmpl();
8205 if ac_fn_cxx_try_compile
"$LINENO"; then :
8206 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8221 if ac_fn_cxx_try_compile
"$LINENO"; then :
8222 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8226 CFLAGS
="$saved_CFLAGS"
8227 CXXFLAGS
="$saved_CXXFLAGS"
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
8231 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
8237 ac_cpp='$CPP $CPPFLAGS'
8238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8246 for ac_func in dladdr
8248 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
8249 if test "x
$ac_cv_func_dladdr" = xyes; then :
8250 cat >>confdefs.h <<_ACEOF
8251 #define HAVE_DLADDR 1
8260 # Check for presence and size of long long.
8261 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
8262 if test "x
$ac_cv_type_long_long" = xyes; then :
8264 cat >>confdefs.h <<_ACEOF
8265 #define HAVE_LONG_LONG 1
8268 # The cast to long int works around a bug in the HP C Compiler
8269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8271 # This bug is HP SR number 8606223364.
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
8273 $as_echo_n "checking size of long long...
" >&6; }
8274 if ${ac_cv_sizeof_long_long+:} false; then :
8275 $as_echo_n "(cached
) " >&6
8277 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
8280 if test "$ac_cv_type_long_long" = yes; then
8281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
8282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8283 as_fn_error 77 "cannot compute sizeof (long long)
8284 See \`config.log' for more details
" "$LINENO" 5; }
8286 ac_cv_sizeof_long_long=0
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
8292 $as_echo "$ac_cv_sizeof_long_long" >&6; }
8296 cat >>confdefs.h <<_ACEOF
8297 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8304 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
8305 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
8306 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
8312 cat >>confdefs.h <<_ACEOF
8313 #define HAVE_DECL_BASENAME $ac_have_decl
8315 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
8316 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
8322 cat >>confdefs.h <<_ACEOF
8323 #define HAVE_DECL_FFS $ac_have_decl
8325 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
8326 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_DECL_ASPRINTF $ac_have_decl
8335 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
8336 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
8342 cat >>confdefs.h <<_ACEOF
8343 #define HAVE_DECL_VASPRINTF $ac_have_decl
8345 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
8346 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
8352 cat >>confdefs.h <<_ACEOF
8353 #define HAVE_DECL_SNPRINTF $ac_have_decl
8355 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
8356 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
8362 cat >>confdefs.h <<_ACEOF
8363 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8366 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
8367 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
8373 cat >>confdefs.h <<_ACEOF
8374 #define HAVE_DECL_STRTOL $ac_have_decl
8376 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
8377 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
8383 cat >>confdefs.h <<_ACEOF
8384 #define HAVE_DECL_STRTOUL $ac_have_decl
8386 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
8387 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
8393 cat >>confdefs.h <<_ACEOF
8394 #define HAVE_DECL_STRTOLL $ac_have_decl
8396 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
8397 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
8403 cat >>confdefs.h <<_ACEOF
8404 #define HAVE_DECL_STRTOULL $ac_have_decl
8407 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
8408 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
8414 cat >>confdefs.h <<_ACEOF
8415 #define HAVE_DECL_STRVERSCMP $ac_have_decl
8420 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
8421 if test "x
$ac_cv_have_decl_perror" = xyes; then :
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_DECL_PERROR $ac_have_decl
8430 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
8431 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
8437 cat >>confdefs.h <<_ACEOF
8438 #define HAVE_DECL_VASPRINTF $ac_have_decl
8440 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
8441 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
8447 cat >>confdefs.h <<_ACEOF
8448 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8452 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blocks
" "ac_cv_member_struct_stat_st_blocks
" "$ac_includes_default"
8453 if test "x
$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8455 cat >>confdefs.h <<_ACEOF
8456 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8461 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
8462 if test "x
$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8464 cat >>confdefs.h <<_ACEOF
8465 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8472 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
8473 # Older amd64 Linux's don't have the fs_base and gs_base members of
8474 # `struct user_regs_struct'.
8475 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>
8476 #include <sys/user.h>
8478 if test "x
$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
8480 cat >>confdefs.h <<_ACEOF
8481 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
8486 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>
8487 #include <sys/user.h>
8489 if test "x
$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
8491 cat >>confdefs.h <<_ACEOF
8492 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
8500 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
8501 #include <sys/socket.h>
8504 if test "x
$ac_cv_type_socklen_t" = xyes; then :
8506 cat >>confdefs.h <<_ACEOF
8507 #define HAVE_SOCKLEN_T 1
8516 # Starting with NDK version 9, <elf.h> actually includes definitions
8517 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
8518 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
8519 # leading to conflicts with the defintions from <linux/elf.h>.
8520 # This makes it impossible for us to include both <elf.h> and
8521 # <linux/elf.h>, which means that, in practice, we do not have
8522 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
8523 # Therefore, do not try to auto-detect availability, as it would
8524 # get it wrong on this platform.
8527 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
8530 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
8532 cat >>confdefs.h <<_ACEOF
8533 #define HAVE_ELF32_AUXV_T 1
8538 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
8541 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
8543 cat >>confdefs.h <<_ACEOF
8544 #define HAVE_ELF64_AUXV_T 1
8554 # Check whether --with-pkgversion was given.
8555 if test "${with_pkgversion+set}" = set; then :
8556 withval=$with_pkgversion; case "$withval" in
8557 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
8559 *) PKGVERSION="($withval) " ;;
8570 # Check whether --with-bugurl was given.
8571 if test "${with_bugurl+set}" = set; then :
8572 withval=$with_bugurl; case "$withval" in
8573 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
8576 *) BUGURL="$withval"
8580 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
8590 REPORT_BUGS_TO="<$BUGURL>"
8591 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8598 cat >>confdefs.h <<_ACEOF
8599 #define PKGVERSION "$PKGVERSION"
8603 cat >>confdefs.h <<_ACEOF
8604 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8608 # Check for various supplementary target information (beyond the
8609 # triplet) which might affect the choices in configure.srv.
8611 i[34567]86-*-linux*)
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
8613 $as_echo_n "checking
if building
for x86-64...
" >&6; }
8614 if ${gdb_cv_i386_is_x86_64+:} false; then :
8615 $as_echo_n "(cached
) " >&6
8617 save_CPPFLAGS="$CPPFLAGS"
8618 CPPFLAGS="$CPPFLAGS $CFLAGS"
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8627 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8628 $EGREP "got it
" >/dev/null 2>&1; then :
8629 gdb_cv_i386_is_x86_64=yes
8631 gdb_cv_i386_is_x86_64=no
8635 CPPFLAGS="$save_CPPFLAGS"
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
8638 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
8643 $as_echo_n "checking
if building
for x32...
" >&6; }
8644 if ${gdb_cv_x86_is_x32+:} false; then :
8645 $as_echo_n "(cached
) " >&6
8647 save_CPPFLAGS="$CPPFLAGS"
8648 CPPFLAGS="$CPPFLAGS $CFLAGS"
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8652 #if __x86_64__ && __ILP32__
8657 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8658 $EGREP "got it
" >/dev/null 2>&1; then :
8659 gdb_cv_x86_is_x32=yes
8661 gdb_cv_x86_is_x32=no
8665 CPPFLAGS="$save_CPPFLAGS"
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
8668 $as_echo "$gdb_cv_x86_is_x32" >&6; }
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
8673 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
8674 if ${gdb_cv_m68k_is_coldfire+:} false; then :
8675 $as_echo_n "(cached
) " >&6
8677 save_CPPFLAGS="$CPPFLAGS"
8678 CPPFLAGS="$CPPFLAGS $CFLAGS"
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8682 #ifdef __mcoldfire__
8687 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8688 $EGREP "got it
" >/dev/null 2>&1; then :
8689 gdb_cv_m68k_is_coldfire=yes
8691 gdb_cv_m68k_is_coldfire=no
8695 CPPFLAGS="$save_CPPFLAGS"
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
8698 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
8702 . ${srcdir}/configure.srv
8704 if test "${srv_mingwce}" = "yes"; then
8706 elif test "${srv_mingw}" = "yes"; then
8707 LIBS="$LIBS -lws2_32"
8708 elif test "${srv_qnx}" = "yes"; then
8709 LIBS="$LIBS -lsocket"
8710 elif test "${srv_lynxos}" = "yes"; then
8711 LIBS="$LIBS -lnetinet"
8714 if test "${srv_mingw}" = "yes"; then
8716 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8720 if test "${srv_linux_usrregs}" = "yes"; then
8722 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
8726 if test "${srv_linux_regsets}" = "yes"; then
8728 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
8732 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
8733 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
8734 $as_echo_n "(cached) " >&6
8736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8738 #include <sys/ptrace.h>
8747 if ac_fn_c_try_compile
"$LINENO"; then :
8748 gdbsrv_cv_have_ptrace_getregs
=yes
8750 gdbsrv_cv_have_ptrace_getregs
=no
8752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
8756 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
8757 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
8759 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
8764 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
8765 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
8766 $as_echo_n "(cached) " >&6
8768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8770 #include <sys/ptrace.h>
8779 if ac_fn_c_try_compile
"$LINENO"; then :
8780 gdbsrv_cv_have_ptrace_getfpxregs
=yes
8782 gdbsrv_cv_have_ptrace_getfpxregs
=no
8784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
8788 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
8789 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
8791 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
8796 if test "${srv_linux_btrace}" = "yes"; then
8798 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
8802 if test "$ac_cv_header_sys_procfs_h" = yes; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
8804 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
8805 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
8806 $as_echo_n "(cached) " >&6
8808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8812 /* Needed for new procfs interface on sparc-solaris. */
8813 #define _STRUCTURED_PROC 1
8814 #include <sys/procfs.h>
8823 if ac_fn_c_try_compile
"$LINENO"; then :
8824 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8826 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8832 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8834 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
8838 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
8841 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
8842 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
8843 $as_echo_n "(cached) " >&6
8845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8849 /* Needed for new procfs interface on sparc-solaris. */
8850 #define _STRUCTURED_PROC 1
8851 #include <sys/procfs.h>
8860 if ac_fn_c_try_compile
"$LINENO"; then :
8861 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8863 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8869 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8871 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8875 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8878 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8879 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
8880 $as_echo_n "(cached) " >&6
8882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8886 /* Needed for new procfs interface on sparc-solaris. */
8887 #define _STRUCTURED_PROC 1
8888 #include <sys/procfs.h>
8897 if ac_fn_c_try_compile
"$LINENO"; then :
8898 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8900 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8906 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8908 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8912 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8915 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8916 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
8917 $as_echo_n "(cached) " >&6
8919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8923 /* Needed for new procfs interface on sparc-solaris. */
8924 #define _STRUCTURED_PROC 1
8925 #include <sys/procfs.h>
8934 if ac_fn_c_try_compile
"$LINENO"; then :
8935 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8937 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8943 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8945 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8949 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8952 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8953 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
8954 $as_echo_n "(cached) " >&6
8956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8960 /* Needed for new procfs interface on sparc-solaris. */
8961 #define _STRUCTURED_PROC 1
8962 #include <sys/procfs.h>
8971 if ac_fn_c_try_compile
"$LINENO"; then :
8972 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8974 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8980 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8982 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8986 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8990 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
8992 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
8993 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
8994 $as_echo_n "(cached) " >&6
8996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8999 #include <thread_db.h>
9008 if ac_fn_c_try_compile
"$LINENO"; then :
9009 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
9011 gdbserver_cv_have_thread_db_type_lwpid_t
=no
9014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9017 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
9019 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
9023 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
9027 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
9029 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
9030 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
9031 $as_echo_n "(cached) " >&6
9033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9036 #include <thread_db.h>
9045 if ac_fn_c_try_compile
"$LINENO"; then :
9046 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
9048 gdbserver_cv_have_thread_db_type_psaddr_t
=no
9051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9054 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
9056 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
9060 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9067 if ${ac_cv_lib_dl_dlopen+:} false
; then :
9068 $as_echo_n "(cached) " >&6
9070 ac_check_lib_save_LIBS
=$LIBS
9072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9075 /* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9090 if ac_fn_c_try_link
"$LINENO"; then :
9091 ac_cv_lib_dl_dlopen
=yes
9093 ac_cv_lib_dl_dlopen
=no
9095 rm -f core conftest.err conftest.
$ac_objext \
9096 conftest
$ac_exeext conftest.
$ac_ext
9097 LIBS
=$ac_check_lib_save_LIBS
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9101 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
9102 cat >>confdefs.h
<<_ACEOF
9103 #define HAVE_LIBDL 1
9112 srv_thread_depfiles
=
9115 if test "$srv_linux_thread_db" = "yes"; then
9116 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
9119 $as_echo_n "checking for the dynamic export flag... " >&6; }
9120 old_LDFLAGS
="$LDFLAGS"
9121 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
9123 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
9124 LDFLAGS
="$LDFLAGS $RDYNAMIC"
9125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9136 if ac_fn_c_try_link
"$LINENO"; then :
9137 found
="-Wl,--dynamic-list"
9138 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
9140 RDYNAMIC
="-rdynamic"
9141 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
9142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9153 if ac_fn_c_try_link
"$LINENO"; then :
9159 rm -f core conftest.err conftest.
$ac_objext \
9160 conftest
$ac_exeext conftest.
$ac_ext
9162 rm -f core conftest.err conftest.
$ac_objext \
9163 conftest
$ac_exeext conftest.
$ac_ext
9165 LDFLAGS
="$old_LDFLAGS"
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
9167 $as_echo "$found" >&6; }
9169 srv_libs
="-lthread_db"
9172 srv_thread_depfiles
="thread-db.o proc-service.o"
9174 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
9177 $as_echo_n "checking for TD_VERSION... " >&6; }
9178 if ${gdbsrv_cv_have_td_version+:} false
; then :
9179 $as_echo_n "(cached) " >&6
9181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9183 #include <thread_db.h>
9192 if ac_fn_c_try_compile
"$LINENO"; then :
9193 gdbsrv_cv_have_td_version
=yes
9195 gdbsrv_cv_have_td_version
=no
9197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
9200 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
9201 if test "$gdbsrv_cv_have_td_version" = yes; then
9203 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
9209 # Check whether --with-libthread-db was given.
9210 if test "${with_libthread_db+set}" = set; then :
9211 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
9212 srv_libs
="$srv_libthread_db_path"
9217 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
9219 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
9223 if test "$srv_xmlfiles" != ""; then
9224 srv_xmlbuiltin
="xml-builtin.o"
9226 $as_echo "#define USE_XML 1" >>confdefs.h
9229 tmp_xmlfiles
=$srv_xmlfiles
9231 for f
in $tmp_xmlfiles; do
9232 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
9236 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_selftest_objs"
9237 GDBSERVER_LIBS
="$srv_libs"
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
9240 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
9241 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
9242 $as_echo_n "(cached) " >&6
9245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9251 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9256 if ac_fn_c_try_link
"$LINENO"; then :
9257 gdbsrv_cv_have_sync_builtins
=yes
9259 gdbsrv_cv_have_sync_builtins
=no
9261 rm -f core conftest.err conftest.
$ac_objext \
9262 conftest
$ac_exeext conftest.
$ac_ext
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
9265 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
9266 if test "$gdbsrv_cv_have_sync_builtins" = yes; then
9268 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
9272 saved_cflags
="$CFLAGS"
9273 CFLAGS
="$CFLAGS -fvisibility=hidden"
9274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9285 if ac_fn_c_try_compile
"$LINENO"; then :
9286 gdbsrv_cv_have_visibility_hidden
=yes
9288 gdbsrv_cv_have_visibility_hidden
=no
9290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9291 CFLAGS
="$saved_cflags"
9293 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
9295 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
9301 cat >>confdefs.h
<<_ACEOF
9302 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
9306 if test "$cross_compiling" = yes; then :
9307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 #include <sys/personality.h>
9314 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
9315 # define ADDR_NO_RANDOMIZE 0x0040000
9317 /* Test the flag could be set and stays set. */
9318 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
9319 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
9325 if ac_fn_c_try_link
"$LINENO"; then :
9326 gdbsrv_cv_have_personality
=true
9328 gdbsrv_cv_have_personality
=false
9330 rm -f core conftest.err conftest.
$ac_objext \
9331 conftest
$ac_exeext conftest.
$ac_ext
9333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335 #include <sys/personality.h>
9340 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
9341 # define ADDR_NO_RANDOMIZE 0x0040000
9343 /* Test the flag could be set and stays set. */
9344 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
9345 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
9351 if ac_fn_c_try_run
"$LINENO"; then :
9352 gdbsrv_cv_have_personality
=true
9354 gdbsrv_cv_have_personality
=false
9356 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9357 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9360 if $gdbsrv_cv_have_personality
9363 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
9371 # check whether to enable the inprocess agent
9372 if test "$ipa_obj" != "" \
9373 -a "$gdbsrv_cv_have_sync_builtins" = yes \
9374 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
9380 # Check whether --enable-inprocess-agent was given.
9381 if test "${enable_inprocess_agent+set}" = set; then :
9382 enableval
=$enable_inprocess_agent; case "$enableval" in
9383 yes) want_ipa
=true
;;
9384 no
) want_ipa
=false
;;
9385 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
9394 IPA_DEPFILES
="$ipa_obj"
9395 extra_libraries
="$extra_libraries libinproctrace.so"
9397 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
9408 GNULIB
=build-gnulib-gdbserver
/import
9411 if test x
"$STDINT_H" != x
; then
9412 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
9416 ac_config_files
="$ac_config_files Makefile"
9419 cat >confcache
<<\_ACEOF
9420 # This file is a shell script that caches the results of configure
9421 # tests run on this system so they can be shared between configure
9422 # scripts and configure runs, see configure's option --config-cache.
9423 # It is not useful on other systems. If it contains results you don't
9424 # want to keep, you may remove or edit it.
9426 # config.status only pays attention to the cache file if you give it
9427 # the --recheck option to rerun configure.
9429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9435 # The following way of writing the cache mishandles newlines in values,
9436 # but we know of no workaround that is simple, portable, and efficient.
9437 # So, we kill variables containing newlines.
9438 # Ultrix sh set writes to stderr and can't be redirected directly,
9439 # and sets the high bit in the cache file unless we assign to the vars.
9441 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9442 eval ac_val
=\$
$ac_var
9446 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9450 _ | IFS | as_nl
) ;; #(
9451 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9452 *) { eval $ac_var=; unset $ac_var;} ;;
9458 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9459 *${as_nl}ac_space
=\
*)
9460 # `set' does not quote correctly, so add quotes: double-quote
9461 # substitution turns \\\\ into \\, and sed turns \\ into \.
9464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9467 # `set' quotes correctly as required by POSIX, so do not add quotes.
9468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9477 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9479 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9481 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9482 if test -w "$cache_file"; then
9483 if test "x$cache_file" != "x/dev/null"; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9485 $as_echo "$as_me: updating cache $cache_file" >&6;}
9486 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9487 cat confcache
>"$cache_file"
9489 case $cache_file in #(
9491 mv -f confcache
"$cache_file"$$
&&
9492 mv -f "$cache_file"$$
"$cache_file" ;; #(
9494 mv -f confcache
"$cache_file" ;;
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9500 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9505 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9506 # Let make expand exec_prefix.
9507 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9509 DEFS
=-DHAVE_CONFIG_H
9514 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9515 # 1. Remove the extension, and $U if already installed.
9516 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9517 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9518 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9519 # will be set to the directory where LIBOBJS objects are built.
9520 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9521 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9525 LTLIBOBJS
=$ac_ltlibobjs
9528 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9529 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
9530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9533 : "${CONFIG_STATUS=./config.status}"
9535 ac_clean_files_save
=$ac_clean_files
9536 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9538 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9540 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9542 # Generated by $as_me.
9543 # Run this file to recreate the current configuration.
9544 # Compiler output produced by configure, useful for debugging
9545 # configure, is in config.log if it exists.
9551 SHELL=\${CONFIG_SHELL-$SHELL}
9554 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9555 ## -------------------- ##
9556 ## M4sh Initialization. ##
9557 ## -------------------- ##
9559 # Be more Bourne compatible
9560 DUALCASE
=1; export DUALCASE
# for MKS sh
9561 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9564 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9565 # is contrary to our usage. Disable this feature.
9566 alias -g '${1+"$@"}'='"$@"'
9567 setopt NO_GLOB_SUBST
9569 case `(set -o) 2>/dev/null` in #(
9581 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9582 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9583 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9585 # Prefer a ksh shell builtin over an external printf program on Solaris,
9586 # but without wasting forks for bash or zsh.
9587 if test -z "$BASH_VERSION$ZSH_VERSION" \
9588 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9589 as_echo='print
-r --'
9590 as_echo_n='print
-rn --'
9591 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9592 as_echo='printf %s
\n'
9593 as_echo_n='printf %s
'
9595 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9596 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9597 as_echo_n='/usr
/ucb
/echo -n'
9599 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9600 as_echo_n_body='eval
9604 expr "X$arg" : "X\\(.*\\)$as_nl";
9605 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9607 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
9609 export as_echo_n_body
9610 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9613 as_echo='sh
-c $as_echo_body as_echo
'
9616 # The user is always right.
9617 if test "${PATH_SEPARATOR+set}" != set; then
9619 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9620 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9627 # We need space, tab and new line, in precisely that order. Quoting is
9628 # there to prevent editors from complaining about space-tab.
9629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9630 # splitting by setting IFS to empty value.)
9633 # Find who we are. Look in the path if we contain no directory separator.
9636 *[\\/]* ) as_myself=$0 ;;
9637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 test -z "$as_dir" && as_dir=.
9642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9648 # We did not find ourselves, most probably we were run as `sh COMMAND'
9649 # in which case we are not to be found in the path.
9650 if test "x$as_myself" = x
; then
9653 if test ! -f "$as_myself"; then
9654 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9658 # Unset variables that we do not need and which cause bugs (e.g. in
9659 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9660 # suppresses any "Segmentation fault" message there. '((' could
9661 # trigger a bug in pdksh 5.2.14.
9662 for as_var
in BASH_ENV ENV MAIL MAILPATH
9663 do eval test x\
${$as_var+set} = xset \
9664 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9677 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9680 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9681 # ----------------------------------------
9682 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9683 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9684 # script with STATUS, using 1 if that was 0.
9687 as_status
=$1; test $as_status -eq 0 && as_status
=1
9689 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9690 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9692 $as_echo "$as_me: error: $2" >&2
9693 as_fn_exit
$as_status
9697 # as_fn_set_status STATUS
9698 # -----------------------
9699 # Set $? to STATUS, without forking.
9703 } # as_fn_set_status
9707 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9717 # Portably unset VAR.
9720 { eval $1=; unset $1;}
9722 as_unset
=as_fn_unset
9723 # as_fn_append VAR VALUE
9724 # ----------------------
9725 # Append the text in VALUE to the end of the definition contained in VAR. Take
9726 # advantage of any shell optimizations that allow amortized linear growth over
9727 # repeated appends, instead of the typical quadratic growth present in naive
9729 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9730 eval 'as_fn_append ()
9741 # as_fn_arith ARG...
9742 # ------------------
9743 # Perform arithmetic evaluation on the ARGs, and store the result in the
9744 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9745 # must be portable across $(()) and expr.
9746 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9747 eval 'as_fn_arith ()
9754 as_val
=`expr "$@" || test $? -eq 1`
9759 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9760 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9766 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9767 as_basename
=basename
9772 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9778 as_me
=`$as_basename -- "$0" ||
9779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9780 X"$0" : 'X\(//\)$' \| \
9781 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9783 sed '/^.*\/\([^/][^/]*\)\/*$/{
9797 # Avoid depending upon Character Ranges.
9798 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9799 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9800 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9801 as_cr_digits
='0123456789'
9802 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9804 ECHO_C
= ECHO_N
= ECHO_T
=
9805 case `echo -n x` in #(((((
9807 case `echo 'xy\c'` in
9808 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9810 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9817 rm -f conf$$ conf$$.exe conf$$.
file
9818 if test -d conf$$.dir
; then
9819 rm -f conf$$.dir
/conf$$.
file
9822 mkdir conf$$.dir
2>/dev
/null
9824 if (echo >conf$$.
file) 2>/dev
/null
; then
9825 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9827 # ... but there are two gotchas:
9828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9830 # In both cases, we have to default to `cp -pR'.
9831 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9833 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9841 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9842 rmdir conf$$.dir
2>/dev
/null
9847 # Create "$as_dir" as a directory, including parents if necessary.
9852 -*) as_dir
=.
/$as_dir;;
9854 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9858 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9859 *) as_qdir
=$as_dir;;
9861 as_dirs
="'$as_qdir' $as_dirs"
9862 as_dir
=`$as_dirname -- "$as_dir" ||
9863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9864 X"$as_dir" : 'X\(//\)[^/]' \| \
9865 X"$as_dir" : 'X\(//\)$' \| \
9866 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9867 $as_echo X"$as_dir" |
9868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9885 test -d "$as_dir" && break
9887 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9888 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9892 if mkdir
-p .
2>/dev
/null
; then
9893 as_mkdir_p
='mkdir -p "$as_dir"'
9895 test -d .
/-p && rmdir .
/-p
9900 # as_fn_executable_p FILE
9901 # -----------------------
9902 # Test if FILE is an executable regular file.
9903 as_fn_executable_p
()
9905 test -f "$1" && test -x "$1"
9906 } # as_fn_executable_p
9908 as_executable_p
=as_fn_executable_p
9910 # Sed expression to map a string onto a valid CPP name.
9911 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9913 # Sed expression to map a string onto a valid variable name.
9914 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9918 ## ----------------------------------- ##
9919 ## Main body of $CONFIG_STATUS script. ##
9920 ## ----------------------------------- ##
9922 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9925 # Save the log message, to keep $0 and so on meaningful, and to
9926 # report actual input values of CONFIG_FILES etc. instead of their
9927 # values after options handling.
9929 This file was extended by $as_me, which was
9930 generated by GNU Autoconf 2.69. Invocation command line was
9932 CONFIG_FILES = $CONFIG_FILES
9933 CONFIG_HEADERS = $CONFIG_HEADERS
9934 CONFIG_LINKS = $CONFIG_LINKS
9935 CONFIG_COMMANDS = $CONFIG_COMMANDS
9938 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9943 case $ac_config_files in *"
9944 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9947 case $ac_config_headers in *"
9948 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9953 # Files that config.status was made for.
9954 config_files="$ac_config_files"
9955 config_headers="$ac_config_headers"
9956 config_commands="$ac_config_commands"
9960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9962 \`$as_me' instantiates files and other configuration actions
9963 from templates according to the current configuration. Unless the files
9964 and actions are specified as TAGs, all are instantiated by default.
9966 Usage: $0 [OPTION]... [TAG]...
9968 -h, --help print this help, then exit
9969 -V, --version print version number and configuration settings, then exit
9970 --config print configuration, then exit
9971 -q, --quiet, --silent
9972 do not print progress messages
9973 -d, --debug don't remove temporary files
9974 --recheck update $as_me by reconfiguring in the same conditions
9975 --file=FILE[:TEMPLATE]
9976 instantiate the configuration file FILE
9977 --header=FILE[:TEMPLATE]
9978 instantiate the configuration header FILE
9980 Configuration files:
9983 Configuration headers:
9986 Configuration commands:
9989 Report bugs to the package provider."
9992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9993 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9996 configured by $0, generated by GNU Autoconf 2.69,
9997 with options \\"\$ac_cs_config\\"
9999 Copyright (C) 2012 Free Software Foundation, Inc.
10000 This config.status script is free software; the Free Software Foundation
10001 gives unlimited permission to copy, distribute and modify it."
10006 test -n "\$AWK" || AWK=awk
10009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10010 # The default lists apply if the user does not specify any file.
10016 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10017 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10021 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10033 # Handling of the options.
10034 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10036 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10037 $as_echo "$ac_cs_version"; exit ;;
10038 --config |
--confi |
--conf |
--con |
--co |
--c )
10039 $as_echo "$ac_cs_config"; exit ;;
10040 --debug |
--debu |
--deb |
--de |
--d |
-d )
10042 --file |
--fil |
--fi |
--f )
10045 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10046 '') as_fn_error $?
"missing file argument" ;;
10048 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10049 ac_need_defaults
=false
;;
10050 --header |
--heade |
--head |
--hea )
10053 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10055 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10056 ac_need_defaults
=false
;;
10058 # Conflict between --help and --header
10059 as_fn_error $?
"ambiguous option: \`$1'
10060 Try \`$0 --help' for more information.";;
10061 --help |
--hel |
-h )
10062 $as_echo "$ac_cs_usage"; exit ;;
10063 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10064 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10067 # This is an error.
10068 -*) as_fn_error $?
"unrecognized option: \`$1'
10069 Try \`$0 --help' for more information." ;;
10071 *) as_fn_append ac_config_targets
" $1"
10072 ac_need_defaults
=false
;;
10078 ac_configure_extra_args
=
10080 if $ac_cs_silent; then
10082 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10087 if \$ac_cs_recheck; then
10088 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10090 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10091 CONFIG_SHELL='$SHELL'
10092 export CONFIG_SHELL
10097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10102 ## Running $as_me. ##
10108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10112 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
10113 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
10117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10119 # Handling of arguments.
10120 for ac_config_target
in $ac_config_targets
10122 case $ac_config_target in
10123 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
10124 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
10125 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
10126 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10128 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10133 # If the user did not use the arguments to specify the items to instantiate,
10134 # then the envvar interface is used. Set only those that are not.
10135 # We use the long form for the default assignment because of an extremely
10136 # bizarre bug on SunOS 4.1.3.
10137 if $ac_need_defaults; then
10138 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10139 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10140 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
10143 # Have a temporary directory for convenience. Make it in the build tree
10144 # simply because there is no reason against having it here, and in addition,
10145 # creating and moving files from /tmp can sometimes cause problems.
10146 # Hook for its removal unless debugging.
10147 # Note that there is a small window in which the directory will not be cleaned:
10148 # after its creation but before its name has been assigned to `$tmp'.
10152 trap 'exit_status=$?
10153 : "${ac_tmp:=$tmp}"
10154 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10156 trap 'as_fn_exit 1' 1 2 13 15
10158 # Create a (secure) tmp directory for tmp files.
10161 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10165 tmp
=.
/conf$$
-$RANDOM
10166 (umask 077 && mkdir
"$tmp")
10167 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10170 # Set up the scripts for CONFIG_FILES section.
10171 # No need to generate them if there are no CONFIG_FILES.
10172 # This happens for instance with `./config.status config.h'.
10173 if test -n "$CONFIG_FILES"; then
10176 ac_cr
=`echo X | tr X '\015'`
10177 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10178 # But we know of no other shell where ac_cr would be empty at this
10179 # point, so we can use a bashism as a fallback.
10180 if test "x$ac_cr" = x
; then
10181 eval ac_cr
=\$
\'\\r
\'
10183 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10184 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10187 ac_cs_awk_cr
=$ac_cr
10190 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10195 echo "cat >conf$$subs.awk <<_ACEOF" &&
10196 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10198 } >conf$$subs.sh ||
10199 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10200 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10202 for ac_last_try in false false false false false :; do
10203 . ./conf$$subs.sh ||
10204 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10206 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10207 if test $ac_delim_n = $ac_delim_num; then
10209 elif $ac_last_try; then
10210 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10212 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10215 rm -f conf$$subs.sh
10217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10218 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10222 s/^/S["/; s
/!.
*/"]=/
10232 s/\(.\{148\}\)..*/\1/
10234 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10239 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10246 s/\(.\{148\}\)..*/\1/
10248 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10252 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10257 ' <conf$$subs.awk | sed '
10262 ' >>$CONFIG_STATUS || ac_write_fail=1
10263 rm -f conf$$subs.awk
10264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10266 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10267 for (key in S) S_is_set[key] = 1
10273 nfields = split(line, field, "@
")
10275 len = length(field[1])
10276 for (i = 2; i < nfields; i++) {
10278 keylen = length(key)
10279 if (S_is_set[key]) {
10281 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10282 len += length(value) + length(field[++i])
10293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10294 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10295 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10298 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10299 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10302 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10303 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10304 # trailing colons and then remove the whole line if VPATH becomes empty
10305 # (actually we leave an empty line to preserve line numbers).
10306 if test "x
$srcdir" = x.; then
10307 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10326 fi # test -n "$CONFIG_FILES"
10328 # Set up the scripts for CONFIG_HEADERS section.
10329 # No need to generate them if there are no CONFIG_HEADERS.
10330 # This happens for instance with `./config.status Makefile'.
10331 if test -n "$CONFIG_HEADERS"; then
10332 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10336 # Transform confdefs.h into an awk script `defines.awk', embedded as
10337 # here-document in config.status, that substitutes the proper values into
10338 # config.h.in to produce config.h.
10340 # Create a delimiter string that does not exist in confdefs.h, to ease
10341 # handling of long lines.
10343 for ac_last_try in false false :; do
10344 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10345 if test -z "$ac_tt"; then
10347 elif $ac_last_try; then
10348 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10350 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10354 # For the awk script, D is an array of macro values keyed by name,
10355 # likewise P contains macro parameters if any. Preserve backslash
10356 # newline sequences.
10358 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10360 s/.\{148\}/&'"$ac_delim"'/g
10363 s/^[ ]*#[ ]*define[ ][ ]*/ /
10370 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10372 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10376 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10377 D["\
1"]=" \
3\\\\\\n
"\\/p
10379 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10384 s/.\{148\}/&'"$ac_delim"'/g
10389 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10392 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10394 ' <confdefs.h | sed '
10395 s/'"$ac_delim"'/"\\\
10396 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10399 for (key in D) D_is_set[key] = 1
10402 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10404 split(line, arg, " ")
10405 if (arg[1] == "#") {
10409 defundef
= substr
(arg
[1], 2)
10412 split(mac1
, mac2
, "(") #)
10414 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10415 if (D_is_set
[macro
]) {
10416 # Preserve the white space surrounding the "#".
10417 print prefix
"define", macro P
[macro
] D
[macro
]
10420 # Replace #undef with comments. This is necessary, for example,
10421 # in the case of _POSIX_SOURCE, which is predefined and required
10422 # on some systems where configure will not decide to define it.
10423 if (defundef
== "undef") {
10424 print
"/*", prefix defundef
, macro
, "*/"
10432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10433 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10434 fi # test -n "$CONFIG_HEADERS"
10437 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10442 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10444 case $ac_mode$ac_tag in
10446 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10447 :[FH
]-) ac_tag
=-:-;;
10448 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10465 -) ac_f
="$ac_tmp/stdin";;
10466 *) # Look for the file first in the build tree, then in the source tree
10467 # (if the path is not absolute). The absolute path cannot be DOS-style,
10468 # because $ac_f cannot contain `:'.
10472 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10474 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10476 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10477 as_fn_append ac_file_inputs
" '$ac_f'"
10480 # Let's still pretend it is `configure' which instantiates (i.e., don't
10481 # use $as_me), people would be surprised to read:
10482 # /* config.h. Generated by config.status. */
10483 configure_input
='Generated from '`
10484 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10486 if test x
"$ac_file" != x-
; then
10487 configure_input
="$ac_file. $configure_input"
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10489 $as_echo "$as_me: creating $ac_file" >&6;}
10491 # Neutralize special characters interpreted by sed in replacement strings.
10492 case $configure_input in #(
10493 *\
&* |
*\|
* |
*\\* )
10494 ac_sed_conf_input
=`$as_echo "$configure_input" |
10495 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10496 *) ac_sed_conf_input
=$configure_input;;
10500 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10501 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10506 ac_dir
=`$as_dirname -- "$ac_file" ||
10507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10508 X"$ac_file" : 'X\(//\)[^/]' \| \
10509 X"$ac_file" : 'X\(//\)$' \| \
10510 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10511 $as_echo X"$ac_file" |
10512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10516 /^X\(\/\/\)[^/].*/{
10529 as_dir
="$ac_dir"; as_fn_mkdir_p
10533 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10535 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10536 # A ".." for each directory in $ac_dir_suffix.
10537 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10538 case $ac_top_builddir_sub in
10539 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10540 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10543 ac_abs_top_builddir
=$ac_pwd
10544 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10545 # for backward compatibility:
10546 ac_top_builddir
=$ac_top_build_prefix
10549 .
) # We are building in place.
10551 ac_top_srcdir
=$ac_top_builddir_sub
10552 ac_abs_top_srcdir
=$ac_pwd ;;
10553 [\\/]* | ?
:[\\/]* ) # Absolute name.
10554 ac_srcdir
=$srcdir$ac_dir_suffix;
10555 ac_top_srcdir
=$srcdir
10556 ac_abs_top_srcdir
=$srcdir ;;
10557 *) # Relative name.
10558 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10559 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10560 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10562 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10572 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10573 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10578 # If the template does not know about datarootdir, expand it.
10579 # FIXME: This hack should be removed a few years after 2.60.
10580 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10591 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10592 *datarootdir
*) ac_datarootdir_seen
=yes;;
10593 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10595 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10598 ac_datarootdir_hack='
10599 s&@datadir@&$datadir&g
10600 s&@docdir@&$docdir&g
10601 s&@infodir@&$infodir&g
10602 s&@localedir@&$localedir&g
10603 s&@mandir@&$mandir&g
10604 s&\\\${datarootdir}&$datarootdir&g' ;;
10608 # Neutralize VPATH when `$srcdir' = `.'.
10609 # Shell code in configure.ac might set extrasub.
10610 # FIXME: do we really want to maintain this feature?
10611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10612 ac_sed_extra="$ac_vpsub
10615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10617 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10618 s|@configure_input@|
$ac_sed_conf_input|
;t t
10619 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10620 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10621 s
&@srcdir@
&$ac_srcdir&;t t
10622 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10623 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10624 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10625 s
&@builddir@
&$ac_builddir&;t t
10626 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10627 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10628 s
&@INSTALL@
&$ac_INSTALL&;t t
10629 $ac_datarootdir_hack
10631 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10632 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10635 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10637 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10639 which seems to be undefined. Please make sure it is defined" >&5
10640 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10641 which seems to be undefined. Please make sure it is defined" >&2;}
10643 rm -f "$ac_tmp/stdin"
10645 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10646 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10654 if test x"$ac_file" != x-; then
10656 $as_echo "/* $configure_input */" \
10657 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10658 } >"$ac_tmp/config.h" \
10659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10660 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10662 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10665 mv "$ac_tmp/config.h" "$ac_file" \
10666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10669 $as_echo "/* $configure_input */" \
10670 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10671 || as_fn_error $? "could not create -" "$LINENO" 5
10675 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10676 $as_echo "$as_me: executing $ac_file commands" >&6;}
10681 case $ac_file$ac_mode in
10682 "config.h":H) echo > stamp-h ;;
10683 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
10685 for subdir in ${CONFIG_SRC_SUBDIR}
10687 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
10696 ac_clean_files=$ac_clean_files_save
10698 test $ac_write_fail = 0 ||
10699 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10702 # configure is writing to config.log, and then calls config.status.
10703 # config.status does its own redirection, appending to config.log.
10704 # Unfortunately, on DOS this fails, as config.log is still kept open
10705 # by configure, so config.status won't be able to
write to it
; its
10706 # output is simply discarded. So we exec the FD to /dev/null,
10707 # effectively closing config.log, so it can be properly (re)opened and
10708 # appended to by config.status. When coming back to configure, we
10709 # need to make the FD available again.
10710 if test "$no_create" != yes; then
10712 ac_config_status_args
=
10713 test "$silent" = yes &&
10714 ac_config_status_args
="$ac_config_status_args --quiet"
10716 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10718 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10719 # would make configure fail if this is the last instruction.
10720 $ac_cs_success || as_fn_exit
1
10722 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10724 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}