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.cc"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='LTLIBOBJS
687 INSTALL_STRIP_PROGRAM
704 MAINTAINER_MODE_FALSE
733 program_transform_name
746 enable_option_checking
747 enable_maintainer_mode
759 enable_build_warnings
760 enable_gdb_build_warnings
764 enable_inprocess_agent
766 ac_precious_vars
='build_alias
780 # Initialize some variables set by options.
782 ac_init_version
=false
783 ac_unrecognized_opts
=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
794 program_transform_name
=s
,x
,x
,
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir
='${exec_prefix}/bin'
809 sbindir
='${exec_prefix}/sbin'
810 libexecdir
='${exec_prefix}/libexec'
811 datarootdir
='${prefix}/share'
812 datadir
='${datarootdir}'
813 sysconfdir
='${prefix}/etc'
814 sharedstatedir
='${prefix}/com'
815 localstatedir
='${prefix}/var'
816 includedir
='${prefix}/include'
817 oldincludedir
='/usr/include'
818 docdir
='${datarootdir}/doc/${PACKAGE}'
819 infodir
='${datarootdir}/info'
824 libdir
='${exec_prefix}/lib'
825 localedir
='${datarootdir}/locale'
826 mandir
='${datarootdir}/man'
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\
$ac_option
840 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
851 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
853 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
856 -build |
--build |
--buil |
--bui |
--bu)
857 ac_prev
=build_alias
;;
858 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
859 build_alias
=$ac_optarg ;;
861 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
862 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
863 ac_prev
=cache_file
;;
864 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
865 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
866 cache_file
=$ac_optarg ;;
869 cache_file
=config.cache
;;
871 -datadir |
--datadir |
--datadi |
--datad)
873 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
874 datadir
=$ac_optarg ;;
876 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
877 |
--dataroo |
--dataro |
--datar)
878 ac_prev
=datarootdir
;;
879 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
880 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
881 datarootdir
=$ac_optarg ;;
883 -disable-* |
--disable-*)
884 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
887 as_fn_error $?
"invalid feature name: $ac_useropt"
888 ac_useropt_orig
=$ac_useropt
889 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep
=', ';;
897 eval enable_
$ac_useropt=no
;;
899 -docdir |
--docdir |
--docdi |
--doc |
--do)
901 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
904 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
906 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
909 -enable-* |
--enable-*)
910 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
913 as_fn_error $?
"invalid feature name: $ac_useropt"
914 ac_useropt_orig
=$ac_useropt
915 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep
=', ';;
923 eval enable_
$ac_useropt=\
$ac_optarg ;;
925 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
926 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
927 |
--exec |
--exe |
--ex)
928 ac_prev
=exec_prefix
;;
929 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
930 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
931 |
--exec=* |
--exe=* |
--ex=*)
932 exec_prefix
=$ac_optarg ;;
934 -gas |
--gas |
--ga |
--g)
935 # Obsolete; use --with-gas.
938 -help |
--help |
--hel |
--he |
-h)
940 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
941 ac_init_help
=recursive
;;
942 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
943 ac_init_help
=short
;;
945 -host |
--host |
--hos |
--ho)
946 ac_prev
=host_alias
;;
947 -host=* |
--host=* |
--hos=* |
--ho=*)
948 host_alias
=$ac_optarg ;;
950 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
952 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
954 htmldir
=$ac_optarg ;;
956 -includedir |
--includedir |
--includedi |
--included |
--include \
957 |
--includ |
--inclu |
--incl |
--inc)
958 ac_prev
=includedir
;;
959 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
960 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
961 includedir
=$ac_optarg ;;
963 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
965 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
966 infodir
=$ac_optarg ;;
968 -libdir |
--libdir |
--libdi |
--libd)
970 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
973 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
974 |
--libexe |
--libex |
--libe)
975 ac_prev
=libexecdir
;;
976 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
977 |
--libexe=* |
--libex=* |
--libe=*)
978 libexecdir
=$ac_optarg ;;
980 -localedir |
--localedir |
--localedi |
--localed |
--locale)
982 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
983 localedir
=$ac_optarg ;;
985 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
986 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
987 ac_prev
=localstatedir
;;
988 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
989 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
990 localstatedir
=$ac_optarg ;;
992 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
994 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
998 # Obsolete; use --without-fp.
1001 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1002 |
--no-cr |
--no-c |
-n)
1005 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1006 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1009 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1010 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1011 |
--oldin |
--oldi |
--old |
--ol |
--o)
1012 ac_prev
=oldincludedir
;;
1013 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1014 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1015 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1016 oldincludedir
=$ac_optarg ;;
1018 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1020 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1021 prefix
=$ac_optarg ;;
1023 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1024 |
--program-pre |
--program-pr |
--program-p)
1025 ac_prev
=program_prefix
;;
1026 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1027 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1028 program_prefix
=$ac_optarg ;;
1030 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1031 |
--program-suf |
--program-su |
--program-s)
1032 ac_prev
=program_suffix
;;
1033 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1034 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1035 program_suffix
=$ac_optarg ;;
1037 -program-transform-name |
--program-transform-name \
1038 |
--program-transform-nam |
--program-transform-na \
1039 |
--program-transform-n |
--program-transform- \
1040 |
--program-transform |
--program-transfor \
1041 |
--program-transfo |
--program-transf \
1042 |
--program-trans |
--program-tran \
1043 |
--progr-tra |
--program-tr |
--program-t)
1044 ac_prev
=program_transform_name
;;
1045 -program-transform-name=* |
--program-transform-name=* \
1046 |
--program-transform-nam=* |
--program-transform-na=* \
1047 |
--program-transform-n=* |
--program-transform-=* \
1048 |
--program-transform=* |
--program-transfor=* \
1049 |
--program-transfo=* |
--program-transf=* \
1050 |
--program-trans=* |
--program-tran=* \
1051 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1052 program_transform_name
=$ac_optarg ;;
1054 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1056 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1057 pdfdir
=$ac_optarg ;;
1059 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1061 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1064 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1065 |
-silent |
--silent |
--silen |
--sile |
--sil)
1068 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1070 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1072 sbindir
=$ac_optarg ;;
1074 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1075 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1076 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1078 ac_prev
=sharedstatedir
;;
1079 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1080 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1081 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1083 sharedstatedir
=$ac_optarg ;;
1085 -site |
--site |
--sit)
1087 -site=* |
--site=* |
--sit=*)
1090 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1092 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1093 srcdir
=$ac_optarg ;;
1095 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1096 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1097 ac_prev
=sysconfdir
;;
1098 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1099 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1100 sysconfdir
=$ac_optarg ;;
1102 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1103 ac_prev
=target_alias
;;
1104 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1105 target_alias
=$ac_optarg ;;
1107 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1110 -version |
--version |
--versio |
--versi |
--vers |
-V)
1111 ac_init_version
=: ;;
1114 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1117 as_fn_error $?
"invalid package name: $ac_useropt"
1118 ac_useropt_orig
=$ac_useropt
1119 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep
=', ';;
1127 eval with_
$ac_useropt=\
$ac_optarg ;;
1129 -without-* |
--without-*)
1130 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1133 as_fn_error $?
"invalid package name: $ac_useropt"
1134 ac_useropt_orig
=$ac_useropt
1135 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep
=', ';;
1143 eval with_
$ac_useropt=no
;;
1146 # Obsolete; use --with-x.
1149 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1150 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1151 ac_prev
=x_includes
;;
1152 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1153 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1154 x_includes
=$ac_optarg ;;
1156 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1157 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1158 ac_prev
=x_libraries
;;
1159 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1160 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1161 x_libraries
=$ac_optarg ;;
1163 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1168 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1172 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1174 eval $ac_envvar=\
$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 if test -n "$ac_prev"; then
1189 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $?
"missing argument to $ac_option"
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1196 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 # Check all directory arguments for consistency.
1202 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val
=\$
$ac_var
1208 # Remove trailing slashes.
1211 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\
$ac_val;;
1214 # Be sure to have absolute directory names.
1216 [\\/$
]* | ?
:[\\/]* ) continue;;
1217 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1219 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target
=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x
; then
1231 if test "x$build_alias" = x
; then
1232 cross_compiling
=maybe
1233 elif test "x$build_alias" != "x$host_alias"; then
1239 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1241 test "$silent" = yes && exec 6>/dev
/null
1244 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di
=`ls -di .` &&
1246 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $?
"working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $?
"pwd does not report name of working directory"
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted
=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir
=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted
=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1288 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1290 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var
in $ac_precious_vars; do
1305 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1307 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures this package to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1381 --build=BUILD configure
for building on BUILD
[guessed
]
1382 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1383 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1387 if test -n "$ac_init_help"; then
1392 --disable-option-checking ignore unrecognized
--enable/--with options
1393 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1394 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1395 --enable-maintainer-mode
1396 enable make rules and dependencies not useful
(and
1397 sometimes confusing
) to the casual installer
1398 --disable-largefile omit support
for large files
1399 --disable-rpath do not hardcode runtime library paths
1400 --enable-unit-tests Enable the inclusion of unit tests when compiling
1402 --enable-werror treat compile warnings as errors
1403 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1404 --enable-gdb-build-warnings
1405 enable GDB specific build-time compiler warnings
if
1407 --enable-inprocess-agent
1411 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1412 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1413 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1414 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1415 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1416 --without-libipt-prefix don
't search for libipt in includedir and libdir
1417 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1418 --with-ust=PATH Specify prefix directory for the installed UST package
1419 Equivalent to --with-ust-include=PATH/include
1420 plus --with-ust-lib=PATH/lib
1421 --with-ust-include=PATH Specify directory for installed UST include files
1422 --with-ust-lib=PATH Specify the directory for the installed UST library
1423 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1424 --with-bugurl=URL Direct users to URL to report a bug
1425 --with-libthread-db=PATH
1426 use given libthread_db directly
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 CXX C++ compiler command
1437 CXXFLAGS C++ compiler flags
1440 Use these variables to override the choices made by `configure' or to
help
1441 it to
find libraries and programs with nonstandard names
/locations.
1443 Report bugs to the package provider.
1448 if test "$ac_init_help" = "recursive"; then
1449 # If there are subdirs, report their specific --help.
1450 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1451 test -d "$ac_dir" ||
1452 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1457 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1459 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1460 # A ".." for each directory in $ac_dir_suffix.
1461 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1462 case $ac_top_builddir_sub in
1463 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1464 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1467 ac_abs_top_builddir
=$ac_pwd
1468 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1469 # for backward compatibility:
1470 ac_top_builddir
=$ac_top_build_prefix
1473 .
) # We are building in place.
1475 ac_top_srcdir
=$ac_top_builddir_sub
1476 ac_abs_top_srcdir
=$ac_pwd ;;
1477 [\\/]* | ?
:[\\/]* ) # Absolute name.
1478 ac_srcdir
=$srcdir$ac_dir_suffix;
1479 ac_top_srcdir
=$srcdir
1480 ac_abs_top_srcdir
=$srcdir ;;
1482 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1483 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1484 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1486 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1488 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1489 # Check for guested configure.
1490 if test -f "$ac_srcdir/configure.gnu"; then
1492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1493 elif test -f "$ac_srcdir/configure"; then
1495 $SHELL "$ac_srcdir/configure" --help=recursive
1497 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1503 test -n "$ac_init_help" && exit $ac_status
1504 if $ac_init_version; then
1507 generated by GNU Autoconf
2.69
1509 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1510 This configure
script is free software
; the Free Software Foundation
1511 gives unlimited permission to copy
, distribute and modify it.
1516 ## ------------------------ ##
1517 ## Autoconf initialization. ##
1518 ## ------------------------ ##
1520 # ac_fn_c_try_compile LINENO
1521 # --------------------------
1522 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1523 ac_fn_c_try_compile
()
1525 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1526 rm -f conftest.
$ac_objext
1527 if { { ac_try
="$ac_compile"
1529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_compile") 2>conftest.err
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } && {
1543 test -z "$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 } && test -s conftest.$ac_objext; then :
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554 as_fn_set_status $ac_retval
1556 } # ac_fn_c_try_compile
1558 # ac_fn_cxx_try_compile LINENO
1559 # ----------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_cxx_try_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1568 *) ac_try_echo
=$ac_try;;
1570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1574 if test -s conftest.err
; then
1575 grep -v '^ *+' conftest.err
>conftest.er1
1576 cat conftest.er1
>&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_cxx_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.
$ac_objext; then :
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.
$ac_ext >&5
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status
$ac_retval
1594 } # ac_fn_cxx_try_compile
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1601 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1602 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } > conftest.i && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1633 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1636 # the include files in INCLUDES and setting the cache variable VAR
1638 ac_fn_c_check_header_mongrel ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if eval \${$3+:} false; then :
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1651 # Is the header compilable?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1653 $as_echo_n "checking $2 usability... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 ac_header_compiler=yes
1662 ac_header_compiler=no
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1666 $as_echo "$ac_header_compiler" >&6; }
1668 # Is the header present?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1670 $as_echo_n "checking $2 presence... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1675 if ac_fn_c_try_cpp "$LINENO"; then :
1676 ac_header_preproc=yes
1678 ac_header_preproc=no
1680 rm -f conftest.err conftest.i conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1682 $as_echo "$ac_header_preproc" >&6; }
1684 # So? What about this header?
1685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1688 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1694 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1696 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1698 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1700 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1710 eval "$3=\$ac_header_compiler"
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 } # ac_fn_c_check_header_mongrel
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1730 *) ac_try_echo
=$ac_try;;
1732 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=$ac_status
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
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
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1779 if ac_fn_c_try_compile "$LINENO"; then :
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 } # ac_fn_c_check_header_compile
1793 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1794 # -------------------------------------------
1795 # Tests whether TYPE exists after having included INCLUDES, setting cache
1796 # variable VAR accordingly.
1797 ac_fn_c_check_type ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1831 if ac_fn_c_try_compile "$LINENO"; then :
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_type
1847 # ac_fn_c_try_link LINENO
1848 # -----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1857 *) ac_try_echo
=$ac_try;;
1859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1863 if test -s conftest.err
; then
1864 grep -v '^ *+' conftest.err
>conftest.er1
1865 cat conftest.er1
>&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest
$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 test -x conftest
$ac_exeext
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.
$ac_ext >&5
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status
$ac_retval
1891 } # ac_fn_c_try_link
1893 # ac_fn_c_check_func LINENO FUNC VAR
1894 # ----------------------------------
1895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1896 ac_fn_c_check_func
()
1898 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \
${$3+:} false
; then :
1902 $as_echo_n "(cached) " >&6
1904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1908 #define $2 innocuous_$2
1910 /* System header to define __stub macros and hopefully few prototypes,
1911 which can conflict with char $2 (); below.
1912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913 <limits.h> exists even on freestanding compilers. */
1916 # include <limits.h>
1918 # include <assert.h>
1923 /* Override any GCC internal prototype to avoid an error.
1924 Use char because int might match the return type of a GCC
1925 builtin and then its argument prototype would still apply. */
1930 /* The GNU C library defines this for functions which it implements
1931 to always fail with ENOSYS. Some functions are actually named
1932 something starting with __ and the normal name is an alias. */
1933 #if defined __stub_$2 || defined __stub___$2
1945 if ac_fn_c_try_link
"$LINENO"; then :
1950 rm -f core conftest.err conftest.
$ac_objext \
1951 conftest
$ac_exeext conftest.
$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 } # ac_fn_c_check_func
1960 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1961 # ---------------------------------------------
1962 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1964 ac_fn_c_check_decl
()
1966 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1967 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1968 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1970 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1971 if eval \
${$3+:} false
; then :
1972 $as_echo_n "(cached) " >&6
1974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1980 #ifndef $as_decl_name
1982 (void) $as_decl_use;
1984 (void) $as_decl_name;
1992 if ac_fn_c_try_compile
"$LINENO"; then :
1997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_decl
2006 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2007 # ----------------------------------------------------
2008 # Tries to find if the field MEMBER exists in type AGGR, after including
2009 # INCLUDES, setting cache variable VAR accordingly.
2010 ac_fn_c_check_member
()
2012 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2014 $as_echo_n "checking for $2.$3... " >&6; }
2015 if eval \
${$4+:} false
; then :
2016 $as_echo_n "(cached) " >&6
2018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2031 if ac_fn_c_try_compile
"$LINENO"; then :
2034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2041 if (sizeof ac_aggr.$3)
2047 if ac_fn_c_try_compile
"$LINENO"; then :
2052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_member
2063 # ac_fn_cxx_try_link LINENO
2064 # -------------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded.
2066 ac_fn_cxx_try_link
()
2068 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2069 rm -f conftest.
$ac_objext conftest
$ac_exeext
2070 if { { ac_try
="$ac_link"
2072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>conftest.err
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } && {
2086 test -z "$ac_cxx_werror_flag" ||
2087 test ! -s conftest.err
2088 } && test -s conftest$ac_exeext && {
2089 test "$cross_compiling" = yes ||
2090 test -x conftest$ac_exeext
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2099 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2100 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2101 # interfere with the next link command; also delete a directory that is
2102 # left behind by Apple's compiler. We do this before executing the actions.
2103 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 as_fn_set_status $ac_retval
2107 } # ac_fn_cxx_try_link
2109 # ac_fn_cxx_check_func LINENO FUNC VAR
2110 # ------------------------------------
2111 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2112 ac_fn_cxx_check_func ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if eval \${$3+:} false; then :
2118 $as_echo_n "(cached) " >&6
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2124 #define $2 innocuous_$2
2126 /* System header to define __stub macros and hopefully few prototypes,
2127 which can conflict with char $2 (); below.
2128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2129 <limits.h> exists even on freestanding compilers. */
2132 # include <limits.h>
2134 # include <assert.h>
2139 /* Override any GCC internal prototype to avoid an error.
2140 Use char because int might match the return type of a GCC
2141 builtin and then its argument prototype would still apply. */
2146 /* The GNU C library defines this for functions which it implements
2147 to always fail with ENOSYS. Some functions are actually named
2148 something starting with __ and the normal name is an alias. */
2149 #if defined __stub_$2 || defined __stub___$2
2161 if ac_fn_cxx_try_link "$LINENO"; then :
2166 rm -f core conftest.err conftest.$ac_objext \
2167 conftest$ac_exeext conftest.$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 } # ac_fn_cxx_check_func
2176 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2177 # --------------------------------------------
2178 # Tries to find the compile-time value of EXPR in a program that includes
2179 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2181 ac_fn_c_compute_int ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if test "$cross_compiling" = yes; then
2185 # Depending upon the size, compute the lo and hi bounds.
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2192 static int test_array [1 - 2 * !(($2) >= 0)];
2194 return test_array [0];
2200 if ac_fn_c_try_compile "$LINENO"; then :
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2209 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2211 return test_array [0];
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218 ac_hi=$ac_mid; break
2220 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2221 if test $ac_lo -le $ac_mid; then
2225 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2236 static int test_array [1 - 2 * !(($2) < 0)];
2238 return test_array [0];
2244 if ac_fn_c_try_compile "$LINENO"; then :
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2253 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2255 return test_array [0];
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262 ac_lo=$ac_mid; break
2264 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2265 if test $ac_mid -le $ac_hi; then
2269 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 # Binary search between lo and hi bounds.
2280 while test "x$ac_lo" != "x$ac_hi"; do
2281 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2288 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2290 return test_array [0];
2296 if ac_fn_c_try_compile "$LINENO"; then :
2299 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2311 static long int longval () { return $2; }
2312 static unsigned long int ulongval () { return $2; }
2319 FILE *f = fopen ("conftest.val", "w");
2324 long int i = longval ();
2327 fprintf (f, "%ld", i);
2331 unsigned long int i = ulongval ();
2334 fprintf (f, "%lu", i);
2336 /* Do not output a trailing newline, as this causes \r\n confusion
2337 on some platforms. */
2338 return ferror (f) || fclose (f) != 0;
2344 if ac_fn_c_try_run "$LINENO"; then :
2345 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2350 conftest.$ac_objext conftest.beam conftest.$ac_ext
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355 as_fn_set_status $ac_retval
2357 } # ac_fn_c_compute_int
2358 cat >config.log <<_ACEOF
2359 This file contains any messages produced by compilers while
2360 running configure, to aid debugging if configure makes a mistake.
2362 It was created by $as_me, which was
2363 generated by GNU Autoconf 2.69. Invocation command line was
2375 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2376 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2377 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2378 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2379 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2381 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2382 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2384 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2385 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2386 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2387 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2388 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2389 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2390 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 $as_echo "PATH: $as_dir"
2415 # Keep a trace of the command line.
2416 # Strip out --no-create and --no-recursion so they do not pile up.
2417 # Strip out --silent because we don't want to record it for future runs.
2418 # Also quote any args containing shell meta-characters.
2419 # Make two passes to allow for proper duplicate-argument suppression.
2423 ac_must_keep_next=false
2429 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2431 | -silent | --silent | --silen | --sile | --sil)
2434 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2437 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2439 as_fn_append ac_configure_args1 " '$ac_arg'"
2440 if test $ac_must_keep_next = true; then
2441 ac_must_keep_next=false # Got value, back to normal.
2444 *=* | --config-cache | -C | -disable-* | --disable-* \
2445 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2446 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2447 | -with-* | --with-* | -without-* | --without-* | --x)
2448 case "$ac_configure_args0 " in
2449 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2452 -* ) ac_must_keep_next=true ;;
2455 as_fn_append ac_configure_args " '$ac_arg'"
2460 { ac_configure_args0=; unset ac_configure_args0;}
2461 { ac_configure_args1=; unset ac_configure_args1;}
2463 # When interrupted or exit'd, cleanup temporary files, and complete
2464 # config.log. We remove comments because anyway the quotes in there
2465 # would cause problems or look ugly.
2466 # WARNING: Use '\'' to represent an apostrophe within the trap.
2467 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2468 trap 'exit_status=$?
2469 # Save into config.log some information that might help in debugging.
2473 $as_echo "## ---------------- ##
2474 ## Cache variables. ##
2475 ## ---------------- ##"
2477 # The following way of writing the cache mishandles newlines in values,
2479 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2480 eval ac_val=\$$ac_var
2484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2485 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2488 _ | IFS | as_nl) ;; #(
2489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2490 *) { eval $ac_var=; unset $ac_var;} ;;
2495 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2496 *${as_nl}ac_space=\ *)
2498 "s/'\''/'\''\\\\'\'''\''/g;
2499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2509 $as_echo "## ----------------- ##
2510 ## Output variables. ##
2511 ## ----------------- ##"
2513 for ac_var in $ac_subst_vars
2515 eval ac_val=\$$ac_var
2517 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 $as_echo "$ac_var='\''$ac_val'\''"
2523 if test -n "$ac_subst_files"; then
2524 $as_echo "## ------------------- ##
2525 ## File substitutions. ##
2526 ## ------------------- ##"
2528 for ac_var in $ac_subst_files
2530 eval ac_val=\$$ac_var
2532 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534 $as_echo "$ac_var='\''$ac_val'\''"
2539 if test -s confdefs.h; then
2540 $as_echo "## ----------- ##
2547 test "$ac_signal" != 0 &&
2548 $as_echo "$as_me: caught signal $ac_signal"
2549 $as_echo "$as_me: exit $exit_status"
2551 rm -f core *.core core.conftest.* &&
2552 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2555 for ac_signal in 1 2 13 15; do
2556 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2560 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2561 rm -f -r conftest* confdefs.h
2563 $as_echo "/* confdefs.h */" > confdefs.h
2565 # Predefined preprocessor variables.
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_NAME "$PACKAGE_NAME"
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_STRING "$PACKAGE_STRING"
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_URL "$PACKAGE_URL"
2592 # Let the site file select an alternate cache file if it wants to.
2593 # Prefer an explicitly selected file to automatically selected ones.
2596 if test -n "$CONFIG_SITE"; then
2597 # We do not want a PATH search for config.site.
2598 case $CONFIG_SITE in #((
2599 -*) ac_site_file1=./$CONFIG_SITE;;
2600 */*) ac_site_file1=$CONFIG_SITE;;
2601 *) ac_site_file1=./$CONFIG_SITE;;
2603 elif test "x$prefix" != xNONE; then
2604 ac_site_file1=$prefix/share/config.site
2605 ac_site_file2=$prefix/etc/config.site
2607 ac_site_file1=$ac_default_prefix/share/config.site
2608 ac_site_file2=$ac_default_prefix/etc/config.site
2610 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2612 test "x$ac_site_file" = xNONE && continue
2613 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2615 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2616 sed 's/^/| /' "$ac_site_file" >&5
2618 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 as_fn_error $? "failed to load site
script $ac_site_file
2621 See \
`config.log' for more details" "$LINENO" 5; }
2625 if test -r "$cache_file"; then
2626 # Some versions of bash will fail to source /dev/null (special files
2627 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2628 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2630 $as_echo "$as_me: loading cache $cache_file" >&6;}
2632 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2633 *) . "./$cache_file";;
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2638 $as_echo "$as_me: creating cache $cache_file" >&6;}
2642 as_fn_append ac_header_list " stdlib.h"
2643 as_fn_append ac_header_list " unistd.h"
2644 as_fn_append ac_header_list " sys/param.h"
2645 # Check that the precious variables saved in the cache have kept the same
2647 ac_cache_corrupted=false
2648 for ac_var in $ac_precious_vars; do
2649 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2650 eval ac_new_set=\$ac_env_${ac_var}_set
2651 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2652 eval ac_new_val=\$ac_env_${ac_var}_value
2653 case $ac_old_set,$ac_new_set in
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2656 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2657 ac_cache_corrupted=: ;;
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2660 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2661 ac_cache_corrupted=: ;;
2664 if test "x$ac_old_val" != "x$ac_new_val"; then
2665 # differences in whitespace do not lead to failure.
2666 ac_old_val_w=`echo x
$ac_old_val`
2667 ac_new_val_w=`echo x
$ac_new_val`
2668 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2670 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2671 ac_cache_corrupted=:
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2674 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2675 eval $ac_var=\$ac_old_val
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2678 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2680 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2683 # Pass precious variables to config.status.
2684 if test "$ac_new_set" = set; then
2686 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2687 *) ac_arg=$ac_var=$ac_new_val ;;
2689 case " $ac_configure_args " in
2690 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2691 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2695 if $ac_cache_corrupted; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2699 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2700 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2702 ## -------------------- ##
2703 ## Main body of script. ##
2704 ## -------------------- ##
2707 ac_cpp='$CPP $CPPFLAGS'
2708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 ac_config_headers="$ac_config_headers config.h:config.in"
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2723 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2724 # Check whether --enable-maintainer-mode was given.
2725 if test "${enable_maintainer_mode+set}" = set; then :
2726 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2728 USE_MAINTAINER_MODE=no
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2732 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2733 if test $USE_MAINTAINER_MODE = yes; then
2734 MAINTAINER_MODE_TRUE=
2735 MAINTAINER_MODE_FALSE='#'
2737 MAINTAINER_MODE_TRUE='#'
2738 MAINTAINER_MODE_FALSE=
2741 MAINT=$MAINTAINER_MODE_TRUE
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2752 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_CC+:} false; then :
2756 $as_echo_n "(cached) " >&6
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 if test -n "$CC"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781 $as_echo "$CC" >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2789 if test -z "$ac_cv_prog_CC"; then
2791 # Extract the first word of "gcc", so it can be a program name with args.
2792 set dummy gcc; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2796 $as_echo_n "(cached) " >&6
2798 if test -n "$ac_ct_CC"; then
2799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_ac_ct_CC="gcc"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819 if test -n "$ac_ct_CC"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2821 $as_echo "$ac_ct_CC" >&6; }
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2827 if test "x$ac_ct_CC" = x; then
2830 case $cross_compiling:$ac_tool_warned in
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2842 if test -z "$CC"; then
2843 if test -n "$ac_tool_prefix"; then
2844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2845 set dummy ${ac_tool_prefix}cc; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if ${ac_cv_prog_CC+:} false; then :
2849 $as_echo_n "(cached) " >&6
2851 if test -n "$CC"; then
2852 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_CC="${ac_tool_prefix}cc"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 if test -n "$CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2874 $as_echo "$CC" >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2883 if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_CC+:} false; then :
2889 $as_echo_n "(cached) " >&6
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected=yes
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 if test $ac_prog_rejected = yes; then
2915 # We found a bogon in the path, so make sure we never use it.
2916 set dummy $ac_cv_prog_CC
2918 if test $# != 0; then
2919 # We chose a different compiler from the bogus one.
2920 # However, it has the same basename, so the bogon will be chosen
2921 # first if we set CC to just the basename; use the full file name.
2923 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2929 if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2939 if test -z "$CC"; then
2940 if test -n "$ac_tool_prefix"; then
2941 for ac_prog in cl.exe
2943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_CC+:} false; then :
2948 $as_echo_n "(cached) " >&6
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 if test -n "$CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2980 test -n "$CC" && break
2983 if test -z "$CC"; then
2985 for ac_prog in cl.exe
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2992 $as_echo_n "(cached) " >&6
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_CC="$ac_prog"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3017 $as_echo "$ac_ct_CC" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3024 test -n "$ac_ct_CC" && break
3027 if test "x$ac_ct_CC" = x; then
3030 case $cross_compiling:$ac_tool_warned in
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034 ac_tool_warned=yes ;;
3043 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3046 See \
`config.log' for more details" "$LINENO" 5; }
3048 # Provide some information about the compiler.
3049 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3052 for ac_option in --version -v -V -qversion; do
3053 { { ac_try="$ac_compiler $ac_option >&5"
3055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3056 *) ac_try_echo
=$ac_try;;
3058 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059 $as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3062 if test -s conftest.err
; then
3064 ... rest of stderr output deleted ...
3065 10q' conftest.err
>conftest.er1
3066 cat conftest.er1
>&5
3068 rm -f conftest.er1 conftest.err
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }
3073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h. */
3084 ac_clean_files_save
=$ac_clean_files
3085 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3086 # Try to create an executable without -o first, disregard a.out.
3087 # It will help us diagnose broken compilers, and finding out an intuition
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3090 $as_echo_n "checking whether the C compiler works... " >&6; }
3091 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3093 # The possible output files:
3094 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3097 for ac_file
in $ac_files
3100 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3101 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3106 if { { ac_try
="$ac_link_default"
3108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_link_default") 2>&5
3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }; then :
3117 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3118 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3119 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3120 # so that the user can short-circuit this test for compilers unknown to
3122 for ac_file in $ac_files ''
3124 test -f "$ac_file" || continue
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3129 # We found the default executable, but exeext='' is most
3133 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3135 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3137 # We set ac_cv_exeext here because the later test for it is not
3138 # safe: cross compilers may not add the suffix if given an `-o'
3139 # argument, so we may need to know it at that point already.
3140 # Even if this section looks crufty: it has the advantage of
3147 test "$ac_cv_exeext" = no && ac_cv_exeext=
3152 if test -z "$ac_file"; then :
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 $as_echo "$as_me: failed program was:" >&5
3156 sed 's
/^
/|
/' conftest.$ac_ext >&5
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3160 as_fn_error 77 "C compiler cannot create executables
3161 See \`config.log
' for more details" "$LINENO" 5; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 $as_echo "yes" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3167 $as_echo_n "checking for C compiler default output file name... " >&6; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3169 $as_echo "$ac_file" >&6; }
3170 ac_exeext=$ac_cv_exeext
3172 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3173 ac_clean_files=$ac_clean_files_save
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3175 $as_echo_n "checking for suffix of executables... " >&6; }
3176 if { { ac_try="$ac_link"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_link") 2>&5
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }; then :
3187 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3188 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3189 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3191 for ac_file
in conftest.exe conftest conftest.
*; do
3192 test -f "$ac_file" ||
continue
3194 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3195 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3204 See \`config.log' for more details" "$LINENO" 5; }
3206 rm -f conftest conftest
$ac_cv_exeext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3208 $as_echo "$ac_cv_exeext" >&6; }
3210 rm -f conftest.
$ac_ext
3211 EXEEXT
=$ac_cv_exeext
3213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3219 FILE *f = fopen ("conftest.out", "w");
3220 return ferror (f) || fclose (f) != 0;
3226 ac_clean_files
="$ac_clean_files conftest.out"
3227 # Check that the compiler produces executables we can run. If not, either
3228 # the compiler is broken, or we cross compile.
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3230 $as_echo_n "checking whether we are cross compiling... " >&6; }
3231 if test "$cross_compiling" != yes; then
3232 { { ac_try
="$ac_link"
3234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_link") 2>&5
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }
3243 if { ac_try='./conftest$ac_cv_exeext'
3244 { { case "(($ac_try" in
3245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3246 *) ac_try_echo
=$ac_try;;
3248 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_try") 2>&5
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }; }; then
3256 if test "$cross_compiling" = maybe
; then
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error $?
"cannot run C compiled programs.
3262 If you meant to cross compile, use \`--host'.
3263 See \`config.log' for more details" "$LINENO" 5; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3268 $as_echo "$cross_compiling" >&6; }
3270 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3271 ac_clean_files
=$ac_clean_files_save
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3273 $as_echo_n "checking for suffix of object files... " >&6; }
3274 if ${ac_cv_objext+:} false
; then :
3275 $as_echo_n "(cached) " >&6
3277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3288 rm -f conftest.o conftest.obj
3289 if { { ac_try
="$ac_compile"
3291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_compile") 2>&5
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }; then :
3300 for ac_file in conftest.o conftest.obj conftest.*; do
3301 test -f "$ac_file" || continue;
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3304 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3309 $as_echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3315 See \
`config.log' for more details" "$LINENO" 5; }
3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3320 $as_echo "$ac_cv_objext" >&6; }
3321 OBJEXT=$ac_cv_objext
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3324 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3325 if ${ac_cv_c_compiler_gnu+:} false; then :
3326 $as_echo_n "(cached) " >&6
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3342 if ac_fn_c_try_compile "$LINENO"; then :
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3352 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3353 if test $ac_compiler_gnu = yes; then
3358 ac_test_CFLAGS=${CFLAGS+set}
3359 ac_save_CFLAGS=$CFLAGS
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3361 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3362 if ${ac_cv_prog_cc_g+:} false; then :
3363 $as_echo_n "(cached) " >&6
3365 ac_save_c_werror_flag=$ac_c_werror_flag
3366 ac_c_werror_flag=yes
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3380 if ac_fn_c_try_compile "$LINENO"; then :
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3395 if ac_fn_c_try_compile "$LINENO"; then :
3398 ac_c_werror_flag=$ac_save_c_werror_flag
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3411 if ac_fn_c_try_compile "$LINENO"; then :
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 ac_c_werror_flag=$ac_save_c_werror_flag
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3422 $as_echo "$ac_cv_prog_cc_g" >&6; }
3423 if test "$ac_test_CFLAGS" = set; then
3424 CFLAGS=$ac_save_CFLAGS
3425 elif test $ac_cv_prog_cc_g = yes; then
3426 if test "$GCC" = yes; then
3432 if test "$GCC" = yes; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3439 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3440 if ${ac_cv_prog_cc_c89+:} false; then :
3441 $as_echo_n "(cached) " >&6
3443 ac_cv_prog_cc_c89=no
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3451 struct buf { int x; };
3452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3453 static char *e (p, i)
3459 static char *f (char * (*g) (char **, int), char **p, ...)
3464 s = g (p, va_arg (v,int));
3469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3470 function prototypes and stuff, but not '\xHH' hex character constants.
3471 These don't provoke an error unfortunately, instead are silently treated
3472 as 'x'. The following induces an error, until -std is added to get
3473 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3474 array size at least. It's necessary to write '\x00'==0 to get something
3475 that's true only with -std. */
3476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3479 inside strings and character constants. */
3481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3500 CC="$ac_save_CC $ac_arg"
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_cv_prog_cc_c89=$ac_arg
3504 rm -f core conftest.err conftest.$ac_objext
3505 test "x$ac_cv_prog_cc_c89" != "xno" && break
3507 rm -f conftest.$ac_ext
3512 case "x$ac_cv_prog_cc_c89" in
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3515 $as_echo "none needed" >&6; } ;;
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3518 $as_echo "unsupported" >&6; } ;;
3520 CC="$CC $ac_cv_prog_cc_c89"
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3522 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3524 if test "x$ac_cv_prog_cc_c89" != xno; then :
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 ac_cpp='$CXXCPP $CPPFLAGS'
3536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3539 if test -z "$CXX"; then
3540 if test -n "$CCC"; then
3543 if test -n "$ac_tool_prefix"; then
3544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if ${ac_cv_prog_CXX+:} false; then :
3551 $as_echo_n "(cached) " >&6
3553 if test -n "$CXX"; then
3554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 if test -n "$CXX"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3576 $as_echo "$CXX" >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3583 test -n "$CXX" && break
3586 if test -z "$CXX"; then
3588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3590 # Extract the first word of "$ac_prog", so it can be a program name with args.
3591 set dummy $ac_prog; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 if test -n "$ac_ct_CXX"; then
3598 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_ac_ct_CXX="$ac_prog"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3618 if test -n "$ac_ct_CXX"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3620 $as_echo "$ac_ct_CXX" >&6; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3627 test -n "$ac_ct_CXX" && break
3630 if test "x$ac_ct_CXX" = x; then
3633 case $cross_compiling:$ac_tool_warned in
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637 ac_tool_warned=yes ;;
3645 # Provide some information about the compiler.
3646 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3649 for ac_option in --version -v -V -qversion; do
3650 { { ac_try="$ac_compiler $ac_option >&5"
3652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3653 *) ac_try_echo
=$ac_try;;
3655 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3659 if test -s conftest.err
; then
3661 ... rest of stderr output deleted ...
3662 10q' conftest.err
>conftest.er1
3663 cat conftest.er1
>&5
3665 rm -f conftest.er1 conftest.err
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3671 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3672 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3673 $as_echo_n "(cached) " >&6
3675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3689 if ac_fn_cxx_try_compile
"$LINENO"; then :
3694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3695 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3699 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3700 if test $ac_compiler_gnu = yes; then
3705 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3706 ac_save_CXXFLAGS
=$CXXFLAGS
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3708 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3709 if ${ac_cv_prog_cxx_g+:} false
; then :
3710 $as_echo_n "(cached) " >&6
3712 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3713 ac_cxx_werror_flag
=yes
3716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3727 if ac_fn_cxx_try_compile
"$LINENO"; then :
3728 ac_cv_prog_cxx_g
=yes
3731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3742 if ac_fn_cxx_try_compile
"$LINENO"; then :
3745 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3758 if ac_fn_cxx_try_compile
"$LINENO"; then :
3759 ac_cv_prog_cxx_g
=yes
3761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3766 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3769 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3770 if test "$ac_test_CXXFLAGS" = set; then
3771 CXXFLAGS
=$ac_save_CXXFLAGS
3772 elif test $ac_cv_prog_cxx_g = yes; then
3773 if test "$GXX" = yes; then
3779 if test "$GXX" = yes; then
3786 ac_cpp
='$CPP $CPPFLAGS'
3787 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3793 ac_cpp
='$CPP $CPPFLAGS'
3794 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3798 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3799 # On Suns, sometimes $CPP names a directory.
3800 if test -n "$CPP" && test -d "$CPP"; then
3803 if test -z "$CPP"; then
3804 if ${ac_cv_prog_CPP+:} false
; then :
3805 $as_echo_n "(cached) " >&6
3807 # Double quotes because CPP needs to be expanded
3808 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3811 for ac_c_preproc_warn_flag
in '' yes
3813 # Use a header file that comes with gcc, so configuring glibc
3814 # with a fresh cross-compiler works.
3815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3816 # <limits.h> exists even on freestanding compilers.
3817 # On the NeXT, cc -E runs the code through the compiler's parser,
3818 # not just through cpp. "Syntax error" is here to catch this case.
3819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3822 # include <limits.h>
3824 # include <assert.h>
3828 if ac_fn_c_try_cpp
"$LINENO"; then :
3831 # Broken: fails on valid input.
3834 rm -f conftest.err conftest.i conftest.
$ac_ext
3836 # OK, works on sane cases. Now check whether nonexistent headers
3837 # can be detected and how.
3838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840 #include <ac_nonexistent.h>
3842 if ac_fn_c_try_cpp
"$LINENO"; then :
3843 # Broken: success on invalid input.
3846 # Passes both tests.
3850 rm -f conftest.err conftest.i conftest.
$ac_ext
3853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3854 rm -f conftest.i conftest.err conftest.
$ac_ext
3855 if $ac_preproc_ok; then :
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3868 $as_echo "$CPP" >&6; }
3870 for ac_c_preproc_warn_flag
in '' yes
3872 # Use a header file that comes with gcc, so configuring glibc
3873 # with a fresh cross-compiler works.
3874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875 # <limits.h> exists even on freestanding compilers.
3876 # On the NeXT, cc -E runs the code through the compiler's parser,
3877 # not just through cpp. "Syntax error" is here to catch this case.
3878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3881 # include <limits.h>
3883 # include <assert.h>
3887 if ac_fn_c_try_cpp
"$LINENO"; then :
3890 # Broken: fails on valid input.
3893 rm -f conftest.err conftest.i conftest.
$ac_ext
3895 # OK, works on sane cases. Now check whether nonexistent headers
3896 # can be detected and how.
3897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899 #include <ac_nonexistent.h>
3901 if ac_fn_c_try_cpp
"$LINENO"; then :
3902 # Broken: success on invalid input.
3905 # Passes both tests.
3909 rm -f conftest.err conftest.i conftest.
$ac_ext
3912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3913 rm -f conftest.i conftest.err conftest.
$ac_ext
3914 if $ac_preproc_ok; then :
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3920 See \`config.log' for more details" "$LINENO" 5; }
3924 ac_cpp
='$CPP $CPPFLAGS'
3925 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3931 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3932 if ${ac_cv_path_GREP+:} false
; then :
3933 $as_echo_n "(cached) " >&6
3935 if test -z "$GREP"; then
3936 ac_path_GREP_found
=false
3937 # Loop through the user's path and test for each of PROGNAME-LIST
3938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3939 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3942 test -z "$as_dir" && as_dir
=.
3943 for ac_prog
in grep ggrep
; do
3944 for ac_exec_ext
in '' $ac_executable_extensions; do
3945 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3946 as_fn_executable_p
"$ac_path_GREP" ||
continue
3947 # Check for GNU ac_path_GREP and select it if it is found.
3948 # Check for GNU $ac_path_GREP
3949 case `"$ac_path_GREP" --version 2>&1` in
3951 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3954 $as_echo_n 0123456789 >"conftest.in"
3957 cat "conftest.in" "conftest.in" >"conftest.tmp"
3958 mv "conftest.tmp" "conftest.in"
3959 cp "conftest.in" "conftest.nl"
3960 $as_echo 'GREP' >> "conftest.nl"
3961 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3962 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3963 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3964 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3965 # Best one so far, save it but keep looking for a better one
3966 ac_cv_path_GREP
="$ac_path_GREP"
3967 ac_path_GREP_max
=$ac_count
3969 # 10*(2^10) chars as input seems more than enough
3970 test $ac_count -gt 10 && break
3972 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3975 $ac_path_GREP_found && break 3
3980 if test -z "$ac_cv_path_GREP"; then
3981 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3984 ac_cv_path_GREP
=$GREP
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3989 $as_echo "$ac_cv_path_GREP" >&6; }
3990 GREP
="$ac_cv_path_GREP"
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3994 $as_echo_n "checking for egrep... " >&6; }
3995 if ${ac_cv_path_EGREP+:} false
; then :
3996 $as_echo_n "(cached) " >&6
3998 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3999 then ac_cv_path_EGREP
="$GREP -E"
4001 if test -z "$EGREP"; then
4002 ac_path_EGREP_found
=false
4003 # Loop through the user's path and test for each of PROGNAME-LIST
4004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4005 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4008 test -z "$as_dir" && as_dir
=.
4009 for ac_prog
in egrep; do
4010 for ac_exec_ext
in '' $ac_executable_extensions; do
4011 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4012 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4013 # Check for GNU ac_path_EGREP and select it if it is found.
4014 # Check for GNU $ac_path_EGREP
4015 case `"$ac_path_EGREP" --version 2>&1` in
4017 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4020 $as_echo_n 0123456789 >"conftest.in"
4023 cat "conftest.in" "conftest.in" >"conftest.tmp"
4024 mv "conftest.tmp" "conftest.in"
4025 cp "conftest.in" "conftest.nl"
4026 $as_echo 'EGREP' >> "conftest.nl"
4027 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4028 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4029 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4030 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4031 # Best one so far, save it but keep looking for a better one
4032 ac_cv_path_EGREP
="$ac_path_EGREP"
4033 ac_path_EGREP_max
=$ac_count
4035 # 10*(2^10) chars as input seems more than enough
4036 test $ac_count -gt 10 && break
4038 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4041 $ac_path_EGREP_found && break 3
4046 if test -z "$ac_cv_path_EGREP"; then
4047 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4050 ac_cv_path_EGREP
=$EGREP
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4056 $as_echo "$ac_cv_path_EGREP" >&6; }
4057 EGREP
="$ac_cv_path_EGREP"
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4061 $as_echo_n "checking for ANSI C header files... " >&6; }
4062 if ${ac_cv_header_stdc+:} false
; then :
4063 $as_echo_n "(cached) " >&6
4065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4080 if ac_fn_c_try_compile
"$LINENO"; then :
4081 ac_cv_header_stdc
=yes
4083 ac_cv_header_stdc
=no
4085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4087 if test $ac_cv_header_stdc = yes; then
4088 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 $EGREP "memchr" >/dev
/null
2>&1; then :
4098 ac_cv_header_stdc
=no
4104 if test $ac_cv_header_stdc = yes; then
4105 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4112 $EGREP "free" >/dev
/null
2>&1; then :
4115 ac_cv_header_stdc
=no
4121 if test $ac_cv_header_stdc = yes; then
4122 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4123 if test "$cross_compiling" = yes; then :
4126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4130 #if ((' ' & 0x0FF) == 0x020)
4131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4134 # define ISLOWER(c) \
4135 (('a' <= (c) && (c) <= 'i') \
4136 || ('j' <= (c) && (c) <= 'r') \
4137 || ('s' <= (c) && (c) <= 'z'))
4138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4146 for (i = 0; i < 256; i++)
4147 if (XOR (islower (i), ISLOWER (i))
4148 || toupper (i) != TOUPPER (i))
4153 if ac_fn_c_try_run
"$LINENO"; then :
4156 ac_cv_header_stdc
=no
4158 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4159 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4165 $as_echo "$ac_cv_header_stdc" >&6; }
4166 if test $ac_cv_header_stdc = yes; then
4168 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4172 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4173 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4174 inttypes.h stdint.h unistd.h
4176 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4177 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4179 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4180 cat >>confdefs.h
<<_ACEOF
4181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4190 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4191 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4198 if test "$MINIX" = yes; then
4200 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4203 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4206 $as_echo "#define _MINIX 1" >>confdefs.h
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4212 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4213 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4214 $as_echo_n "(cached) " >&6
4216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4219 # define __EXTENSIONS__ 1
4220 $ac_includes_default
4229 if ac_fn_c_try_compile
"$LINENO"; then :
4230 ac_cv_safe_to_define___extensions__
=yes
4232 ac_cv_safe_to_define___extensions__
=no
4234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4237 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4238 test $ac_cv_safe_to_define___extensions__ = yes &&
4239 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4241 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4243 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4245 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4247 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4250 # Check whether --enable-largefile was given.
4251 if test "${enable_largefile+set}" = set; then :
4252 enableval
=$enable_largefile;
4255 if test "$enable_largefile" != no
; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4258 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4259 if ${ac_cv_sys_largefile_CC+:} false
; then :
4260 $as_echo_n "(cached) " >&6
4262 ac_cv_sys_largefile_CC
=no
4263 if test "$GCC" != yes; then
4266 # IRIX 6.2 and later do not support large files by default,
4267 # so use the C compiler's -n32 option if that helps.
4268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <sys/types.h>
4271 /* Check that off_t can represent 2**63 - 1 correctly.
4272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4273 since some C++ compilers masquerading as C compilers
4274 incorrectly reject 9223372036854775807. */
4275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4277 && LARGE_OFF_T % 2147483647 == 1)
4287 if ac_fn_c_try_compile
"$LINENO"; then :
4290 rm -f core conftest.err conftest.
$ac_objext
4292 if ac_fn_c_try_compile
"$LINENO"; then :
4293 ac_cv_sys_largefile_CC
=' -n32'; break
4295 rm -f core conftest.err conftest.
$ac_objext
4299 rm -f conftest.
$ac_ext
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4303 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4304 if test "$ac_cv_sys_largefile_CC" != no
; then
4305 CC
=$CC$ac_cv_sys_largefile_CC
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4309 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4310 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4311 $as_echo_n "(cached) " >&6
4314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <sys/types.h>
4317 /* Check that off_t can represent 2**63 - 1 correctly.
4318 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4319 since some C++ compilers masquerading as C compilers
4320 incorrectly reject 9223372036854775807. */
4321 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4323 && LARGE_OFF_T % 2147483647 == 1)
4333 if ac_fn_c_try_compile
"$LINENO"; then :
4334 ac_cv_sys_file_offset_bits
=no
; break
4336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339 #define _FILE_OFFSET_BITS 64
4340 #include <sys/types.h>
4341 /* Check that off_t can represent 2**63 - 1 correctly.
4342 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4343 since some C++ compilers masquerading as C compilers
4344 incorrectly reject 9223372036854775807. */
4345 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4346 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4347 && LARGE_OFF_T % 2147483647 == 1)
4357 if ac_fn_c_try_compile
"$LINENO"; then :
4358 ac_cv_sys_file_offset_bits
=64; break
4360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4361 ac_cv_sys_file_offset_bits
=unknown
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4366 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4367 case $ac_cv_sys_file_offset_bits in #(
4370 cat >>confdefs.h
<<_ACEOF
4371 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4376 if test $ac_cv_sys_file_offset_bits = unknown
; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4378 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4379 if ${ac_cv_sys_large_files+:} false
; then :
4380 $as_echo_n "(cached) " >&6
4383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 #include <sys/types.h>
4386 /* Check that off_t can represent 2**63 - 1 correctly.
4387 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4388 since some C++ compilers masquerading as C compilers
4389 incorrectly reject 9223372036854775807. */
4390 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4391 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4392 && LARGE_OFF_T % 2147483647 == 1)
4402 if ac_fn_c_try_compile
"$LINENO"; then :
4403 ac_cv_sys_large_files
=no
; break
4405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #define _LARGE_FILES 1
4409 #include <sys/types.h>
4410 /* Check that off_t can represent 2**63 - 1 correctly.
4411 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4412 since some C++ compilers masquerading as C compilers
4413 incorrectly reject 9223372036854775807. */
4414 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4415 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4416 && LARGE_OFF_T % 2147483647 == 1)
4426 if ac_fn_c_try_compile
"$LINENO"; then :
4427 ac_cv_sys_large_files
=1; break
4429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4430 ac_cv_sys_large_files
=unknown
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4435 $as_echo "$ac_cv_sys_large_files" >&6; }
4436 case $ac_cv_sys_large_files in #(
4439 cat >>confdefs.h
<<_ACEOF
4440 #define _LARGE_FILES $ac_cv_sys_large_files
4451 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4452 if test -f "$ac_dir/install-sh"; then
4454 ac_install_sh
="$ac_aux_dir/install-sh -c"
4456 elif test -f "$ac_dir/install.sh"; then
4458 ac_install_sh
="$ac_aux_dir/install.sh -c"
4460 elif test -f "$ac_dir/shtool"; then
4462 ac_install_sh
="$ac_aux_dir/shtool install -c"
4466 if test -z "$ac_aux_dir"; then
4467 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4470 # These three variables are undocumented and unsupported,
4471 # and are intended to be withdrawn in a future Autoconf release.
4472 # They can cause serious problems if a builder's source tree is in a directory
4473 # whose full name contains unusual characters.
4474 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4475 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4476 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4479 # Expand $ac_aux_dir to an absolute path.
4480 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4482 if test x
"${install_sh+set}" != xset
; then
4485 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4487 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4491 # Installed binaries are usually stripped using 'strip' when the user
4492 # run "make install-strip". However 'strip' might not be the right
4493 # tool to use in cross-compilation environments, therefore Automake
4494 # will honor the 'STRIP' environment variable to overrule this program.
4495 if test "$cross_compiling" != no
; then
4496 if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4498 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if ${ac_cv_prog_STRIP+:} false
; then :
4502 $as_echo_n "(cached) " >&6
4504 if test -n "$STRIP"; then
4505 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir
=.
4512 for ac_exec_ext
in '' $ac_executable_extensions; do
4513 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 STRIP
=$ac_cv_prog_STRIP
4525 if test -n "$STRIP"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4527 $as_echo "$STRIP" >&6; }
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4535 if test -z "$ac_cv_prog_STRIP"; then
4537 # Extract the first word of "strip", so it can be a program name with args.
4538 set dummy strip
; ac_word
=$2
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4542 $as_echo_n "(cached) " >&6
4544 if test -n "$ac_ct_STRIP"; then
4545 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir
=.
4552 for ac_exec_ext
in '' $ac_executable_extensions; do
4553 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_prog_ac_ct_STRIP
="strip"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4565 if test -n "$ac_ct_STRIP"; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4567 $as_echo "$ac_ct_STRIP" >&6; }
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570 $as_echo "no" >&6; }
4573 if test "x$ac_ct_STRIP" = x
; then
4576 case $cross_compiling:$ac_tool_warned in
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4580 ac_tool_warned
=yes ;;
4585 STRIP
="$ac_cv_prog_STRIP"
4589 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4592 # Set build, build_cpu, build_vendor and build_os.
4593 # Make sure we can run config.sub.
4594 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4595 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4598 $as_echo_n "checking build system type... " >&6; }
4599 if ${ac_cv_build+:} false
; then :
4600 $as_echo_n "(cached) " >&6
4602 ac_build_alias
=$build_alias
4603 test "x$ac_build_alias" = x
&&
4604 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4605 test "x$ac_build_alias" = x
&&
4606 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4607 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4608 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4612 $as_echo "$ac_cv_build" >&6; }
4613 case $ac_cv_build in
4615 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4618 ac_save_IFS
=$IFS; IFS
='-'
4624 # Remember, the first character of IFS is used to create $*,
4625 # except with old shells:
4628 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4632 # Set host, host_cpu, host_vendor, and host_os.
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4634 $as_echo_n "checking host system type... " >&6; }
4635 if ${ac_cv_host+:} false
; then :
4636 $as_echo_n "(cached) " >&6
4638 if test "x$host_alias" = x
; then
4639 ac_cv_host
=$ac_cv_build
4641 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4642 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4647 $as_echo "$ac_cv_host" >&6; }
4650 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4653 ac_save_IFS
=$IFS; IFS
='-'
4659 # Remember, the first character of IFS is used to create $*,
4660 # except with old shells:
4663 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4667 # Set target, target_cpu, target_vendor, and target_os.
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4669 $as_echo_n "checking target system type... " >&6; }
4670 if ${ac_cv_target+:} false
; then :
4671 $as_echo_n "(cached) " >&6
4673 if test "x$target_alias" = x
; then
4674 ac_cv_target
=$ac_cv_host
4676 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4677 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4682 $as_echo "$ac_cv_target" >&6; }
4683 case $ac_cv_target in
4685 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4687 target
=$ac_cv_target
4688 ac_save_IFS
=$IFS; IFS
='-'
4694 # Remember, the first character of IFS is used to create $*,
4695 # except with old shells:
4698 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4701 # The aliases save the names the user supplied, while $host etc.
4702 # will get canonicalized.
4703 test -n "$target_alias" &&
4704 test "$program_prefix$program_suffix$program_transform_name" = \
4706 program_prefix
=${target_alias}-
4708 # Find a good install program. We prefer a C program (faster),
4709 # so one script is as good as another. But avoid the broken or
4710 # incompatible versions:
4711 # SysV /etc/install, /usr/sbin/install
4712 # SunOS /usr/etc/install
4713 # IRIX /sbin/install
4715 # AmigaOS /C/install, which installs bootblocks on floppy discs
4716 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4717 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4718 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4719 # OS/2's system install, which has a completely different semantic
4720 # ./install, which can be erroneously created by make from ./install.sh.
4721 # Reject install programs that cannot install multiple files.
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4723 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4724 if test -z "$INSTALL"; then
4725 if ${ac_cv_path_install+:} false
; then :
4726 $as_echo_n "(cached) " >&6
4728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4732 test -z "$as_dir" && as_dir
=.
4733 # Account for people who put trailing slashes in PATH elements.
4734 case $as_dir/ in #((
4735 .
/ | .
// |
/[cC
]/* | \
4736 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4737 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4740 # OSF1 and SCO ODT 3.0 have their own names for install.
4741 # Don't use installbsd from OSF since it installs stuff as root
4743 for ac_prog
in ginstall scoinst
install; do
4744 for ac_exec_ext
in '' $ac_executable_extensions; do
4745 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4746 if test $ac_prog = install &&
4747 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4748 # AIX install. It has an incompatible calling convention.
4750 elif test $ac_prog = install &&
4751 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4752 # program-specific install script used by HP pwplus--don't use.
4755 rm -rf conftest.one conftest.two conftest.dir
4756 echo one
> conftest.one
4757 echo two
> conftest.two
4759 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4760 test -s conftest.one
&& test -s conftest.two
&&
4761 test -s conftest.dir
/conftest.one
&&
4762 test -s conftest.dir
/conftest.two
4764 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4777 rm -rf conftest.one conftest.two conftest.dir
4780 if test "${ac_cv_path_install+set}" = set; then
4781 INSTALL
=$ac_cv_path_install
4783 # As a last resort, use the slow shell script. Don't cache a
4784 # value for INSTALL within a source directory, because that will
4785 # break other packages using the cache if that directory is
4786 # removed, or if the value is a relative name.
4787 INSTALL
=$ac_install_sh
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4791 $as_echo "$INSTALL" >&6; }
4793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4794 # It thinks the first close brace ends the variable substitution.
4795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4799 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4801 if test -n "$ac_tool_prefix"; then
4802 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4803 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_AR+:} false
; then :
4807 $as_echo_n "(cached) " >&6
4809 if test -n "$AR"; then
4810 ac_cv_prog_AR
="$AR" # Let the user override the test.
4812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir
=.
4817 for ac_exec_ext
in '' $ac_executable_extensions; do
4818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 if test -n "$AR"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4832 $as_echo "$AR" >&6; }
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4840 if test -z "$ac_cv_prog_AR"; then
4842 # Extract the first word of "ar", so it can be a program name with args.
4843 set dummy
ar; ac_word
=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4847 $as_echo_n "(cached) " >&6
4849 if test -n "$ac_ct_AR"; then
4850 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir
=.
4857 for ac_exec_ext
in '' $ac_executable_extensions; do
4858 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_ac_ct_AR
="ar"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4870 if test -n "$ac_ct_AR"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4872 $as_echo "$ac_ct_AR" >&6; }
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4878 if test "x$ac_ct_AR" = x
; then
4881 case $cross_compiling:$ac_tool_warned in
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4885 ac_tool_warned
=yes ;;
4893 if test -n "$ac_tool_prefix"; then
4894 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4895 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_RANLIB+:} false
; then :
4899 $as_echo_n "(cached) " >&6
4901 if test -n "$RANLIB"; then
4902 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4908 test -z "$as_dir" && as_dir
=.
4909 for ac_exec_ext
in '' $ac_executable_extensions; do
4910 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4911 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 RANLIB
=$ac_cv_prog_RANLIB
4922 if test -n "$RANLIB"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4924 $as_echo "$RANLIB" >&6; }
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4932 if test -z "$ac_cv_prog_RANLIB"; then
4933 ac_ct_RANLIB
=$RANLIB
4934 # Extract the first word of "ranlib", so it can be a program name with args.
4935 set dummy ranlib
; ac_word
=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4939 $as_echo_n "(cached) " >&6
4941 if test -n "$ac_ct_RANLIB"; then
4942 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4948 test -z "$as_dir" && as_dir
=.
4949 for ac_exec_ext
in '' $ac_executable_extensions; do
4950 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4951 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4962 if test -n "$ac_ct_RANLIB"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4964 $as_echo "$ac_ct_RANLIB" >&6; }
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4970 if test "x$ac_ct_RANLIB" = x
; then
4973 case $cross_compiling:$ac_tool_warned in
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4977 ac_tool_warned
=yes ;;
4979 RANLIB
=$ac_ct_RANLIB
4982 RANLIB
="$ac_cv_prog_RANLIB"
4986 test "$program_prefix" != NONE
&&
4987 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4988 # Use a double $ so make ignores it.
4989 test "$program_suffix" != NONE
&&
4990 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4991 # Double any \ or $.
4992 # By default was `s,x,x', remove it if useless.
4993 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4994 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4997 # We require a C++11 compiler. Check if one is available, and if
4998 # necessary, set CXX_DIALECT to some -std=xxx switch.
5000 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5002 ac_cpp
='$CXXCPP $CPPFLAGS'
5003 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5009 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5010 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5011 $as_echo_n "(cached) " >&6
5013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5017 // If the compiler admits that it is not ready for C++11, why torture it?
5018 // Hopefully, this will speed up the test.
5022 #error "This is not a C++ compiler"
5024 #elif __cplusplus < 201103L
5026 #error "This is not a C++11 compiler"
5033 namespace test_static_assert
5036 template <typename T>
5039 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5044 namespace test_final_override
5052 struct Derived : public Base
5054 virtual void f() override {}
5059 namespace test_double_right_angle_brackets
5062 template < typename T >
5065 typedef check<void> single_type;
5066 typedef check<check<void>> double_type;
5067 typedef check<check<check<void>>> triple_type;
5068 typedef check<check<check<check<void>>>> quadruple_type;
5072 namespace test_decltype
5085 namespace test_type_deduction
5088 template < typename T1, typename T2 >
5091 static const bool value = false;
5094 template < typename T >
5095 struct is_same<T, T>
5097 static const bool value = true;
5100 template < typename T1, typename T2 >
5102 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5108 test(const int c, volatile int v)
5110 static_assert(is_same<int, decltype(0)>::value == true, "");
5111 static_assert(is_same<int, decltype(c)>::value == false, "");
5112 static_assert(is_same<int, decltype(v)>::value == false, "");
5115 auto sumi = ac + av + 'x';
5116 auto sumf = ac + av + 1.0;
5117 static_assert(is_same<int, decltype(ac)>::value == true, "");
5118 static_assert(is_same<int, decltype(av)>::value == true, "");
5119 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5120 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5121 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5122 return (sumf > 0.0) ? sumi : add(c, v);
5127 namespace test_noexcept
5130 int f() { return 0; }
5131 int g() noexcept { return 0; }
5133 static_assert(noexcept(f()) == false, "");
5134 static_assert(noexcept(g()) == true, "");
5138 namespace test_constexpr
5141 template < typename CharT >
5142 unsigned long constexpr
5143 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5145 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5148 template < typename CharT >
5149 unsigned long constexpr
5150 strlen_c(const CharT *const s) noexcept
5152 return strlen_c_r(s, 0UL);
5155 static_assert(strlen_c("") == 0UL, "");
5156 static_assert(strlen_c("1") == 1UL, "");
5157 static_assert(strlen_c("example") == 7UL, "");
5158 static_assert(strlen_c("another\0example") == 7UL, "");
5162 namespace test_rvalue_references
5168 static constexpr int value = N;
5171 answer<1> f(int&) { return answer<1>(); }
5172 answer<2> f(const int&) { return answer<2>(); }
5173 answer<3> f(int&&) { return answer<3>(); }
5180 static_assert(decltype(f(i))::value == 1, "");
5181 static_assert(decltype(f(c))::value == 2, "");
5182 static_assert(decltype(f(0))::value == 3, "");
5187 namespace test_uniform_initialization
5192 static const int zero {};
5193 static const int one {1};
5196 static_assert(test::zero == 0, "");
5197 static_assert(test::one == 1, "");
5201 namespace test_lambdas
5207 auto lambda1 = [](){};
5208 auto lambda2 = lambda1;
5216 auto a = [](int i, int j){ return i + j; }(1, 2);
5217 auto b = []() -> int { return '0'; }();
5218 auto c = [=](){ return a + b; }();
5219 auto d = [&](){ return c; }();
5220 auto e = [a, &b](int x) mutable {
5221 const auto identity = [](int y){ return y; };
5222 for (auto i = 0; i < a; ++i)
5224 return x + identity(a + b);
5226 return a + b + c + d + e;
5232 const auto nullary = [](){ return 0; };
5233 const auto unary = [](int x){ return x; };
5234 using nullary_t = decltype(nullary);
5235 using unary_t = decltype(unary);
5236 const auto higher1st = [](nullary_t f){ return f(); };
5237 const auto higher2nd = [unary](nullary_t f1){
5238 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5240 return higher1st(nullary) + higher2nd(nullary)(unary);
5245 namespace test_variadic_templates
5251 template <int N0, int... N1toN>
5252 struct sum<N0, N1toN...>
5254 static constexpr auto value = N0 + sum<N1toN...>::value;
5260 static constexpr auto value = 0;
5263 static_assert(sum<>::value == 0, "");
5264 static_assert(sum<1>::value == 1, "");
5265 static_assert(sum<23>::value == 23, "");
5266 static_assert(sum<1, 2>::value == 3, "");
5267 static_assert(sum<5, 5, 11>::value == 21, "");
5268 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5272 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5273 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5275 namespace test_template_alias_sfinae
5280 template<typename T>
5281 using member = typename T::member_type;
5283 template<typename T>
5286 template<typename T>
5287 void func(member<T>*) {}
5291 void test() { func<foo>(0); }
5295 } // namespace cxx11
5297 #endif // __cplusplus >= 201103L
5302 if ac_fn_cxx_try_compile
"$LINENO"; then :
5303 ax_cv_cxx_compile_cxx11
=yes
5305 ax_cv_cxx_compile_cxx11
=no
5307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5310 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5311 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5315 if test x
$ac_success = xno
; then
5316 for alternative
in ${ax_cxx_compile_alternatives}; do
5317 switch
="-std=gnu++${alternative}"
5318 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5320 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5321 if eval \
${$cachevar+:} false
; then :
5322 $as_echo_n "(cached) " >&6
5326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5330 // If the compiler admits that it is not ready for C++11, why torture it?
5331 // Hopefully, this will speed up the test.
5335 #error "This is not a C++ compiler"
5337 #elif __cplusplus < 201103L
5339 #error "This is not a C++11 compiler"
5346 namespace test_static_assert
5349 template <typename T>
5352 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5357 namespace test_final_override
5365 struct Derived : public Base
5367 virtual void f() override {}
5372 namespace test_double_right_angle_brackets
5375 template < typename T >
5378 typedef check<void> single_type;
5379 typedef check<check<void>> double_type;
5380 typedef check<check<check<void>>> triple_type;
5381 typedef check<check<check<check<void>>>> quadruple_type;
5385 namespace test_decltype
5398 namespace test_type_deduction
5401 template < typename T1, typename T2 >
5404 static const bool value = false;
5407 template < typename T >
5408 struct is_same<T, T>
5410 static const bool value = true;
5413 template < typename T1, typename T2 >
5415 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5421 test(const int c, volatile int v)
5423 static_assert(is_same<int, decltype(0)>::value == true, "");
5424 static_assert(is_same<int, decltype(c)>::value == false, "");
5425 static_assert(is_same<int, decltype(v)>::value == false, "");
5428 auto sumi = ac + av + 'x';
5429 auto sumf = ac + av + 1.0;
5430 static_assert(is_same<int, decltype(ac)>::value == true, "");
5431 static_assert(is_same<int, decltype(av)>::value == true, "");
5432 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5433 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5434 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5435 return (sumf > 0.0) ? sumi : add(c, v);
5440 namespace test_noexcept
5443 int f() { return 0; }
5444 int g() noexcept { return 0; }
5446 static_assert(noexcept(f()) == false, "");
5447 static_assert(noexcept(g()) == true, "");
5451 namespace test_constexpr
5454 template < typename CharT >
5455 unsigned long constexpr
5456 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5458 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5461 template < typename CharT >
5462 unsigned long constexpr
5463 strlen_c(const CharT *const s) noexcept
5465 return strlen_c_r(s, 0UL);
5468 static_assert(strlen_c("") == 0UL, "");
5469 static_assert(strlen_c("1") == 1UL, "");
5470 static_assert(strlen_c("example") == 7UL, "");
5471 static_assert(strlen_c("another\0example") == 7UL, "");
5475 namespace test_rvalue_references
5481 static constexpr int value = N;
5484 answer<1> f(int&) { return answer<1>(); }
5485 answer<2> f(const int&) { return answer<2>(); }
5486 answer<3> f(int&&) { return answer<3>(); }
5493 static_assert(decltype(f(i))::value == 1, "");
5494 static_assert(decltype(f(c))::value == 2, "");
5495 static_assert(decltype(f(0))::value == 3, "");
5500 namespace test_uniform_initialization
5505 static const int zero {};
5506 static const int one {1};
5509 static_assert(test::zero == 0, "");
5510 static_assert(test::one == 1, "");
5514 namespace test_lambdas
5520 auto lambda1 = [](){};
5521 auto lambda2 = lambda1;
5529 auto a = [](int i, int j){ return i + j; }(1, 2);
5530 auto b = []() -> int { return '0'; }();
5531 auto c = [=](){ return a + b; }();
5532 auto d = [&](){ return c; }();
5533 auto e = [a, &b](int x) mutable {
5534 const auto identity = [](int y){ return y; };
5535 for (auto i = 0; i < a; ++i)
5537 return x + identity(a + b);
5539 return a + b + c + d + e;
5545 const auto nullary = [](){ return 0; };
5546 const auto unary = [](int x){ return x; };
5547 using nullary_t = decltype(nullary);
5548 using unary_t = decltype(unary);
5549 const auto higher1st = [](nullary_t f){ return f(); };
5550 const auto higher2nd = [unary](nullary_t f1){
5551 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5553 return higher1st(nullary) + higher2nd(nullary)(unary);
5558 namespace test_variadic_templates
5564 template <int N0, int... N1toN>
5565 struct sum<N0, N1toN...>
5567 static constexpr auto value = N0 + sum<N1toN...>::value;
5573 static constexpr auto value = 0;
5576 static_assert(sum<>::value == 0, "");
5577 static_assert(sum<1>::value == 1, "");
5578 static_assert(sum<23>::value == 23, "");
5579 static_assert(sum<1, 2>::value == 3, "");
5580 static_assert(sum<5, 5, 11>::value == 21, "");
5581 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5585 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5586 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5588 namespace test_template_alias_sfinae
5593 template<typename T>
5594 using member = typename T::member_type;
5596 template<typename T>
5599 template<typename T>
5600 void func(member<T>*) {}
5604 void test() { func<foo>(0); }
5608 } // namespace cxx11
5610 #endif // __cplusplus >= 201103L
5615 if ac_fn_cxx_try_compile
"$LINENO"; then :
5620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5623 eval ac_res
=\$
$cachevar
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5625 $as_echo "$ac_res" >&6; }
5626 if eval test x\$
$cachevar = xyes
; then
5627 CXX_DIALECT
="$switch"
5629 if test -n "$CXXCPP" ; then
5630 CXXCPP
="$CXXCPP $switch"
5638 if test x
$ac_success = xno
; then
5639 for alternative
in ${ax_cxx_compile_alternatives}; do
5640 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5641 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5643 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5644 if eval \${$cachevar+:} false; then :
5645 $as_echo_n "(cached
) " >&6
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5653 // If the compiler admits that it is not ready for C++11, why torture it?
5654 // Hopefully, this will speed up the test.
5658 #error "This is not a C
++ compiler
"
5660 #elif __cplusplus < 201103L
5662 #error "This is not a C
++11 compiler
"
5669 namespace test_static_assert
5672 template <typename T>
5675 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5680 namespace test_final_override
5688 struct Derived : public Base
5690 virtual void f() override {}
5695 namespace test_double_right_angle_brackets
5698 template < typename T >
5701 typedef check<void> single_type;
5702 typedef check<check<void>> double_type;
5703 typedef check<check<check<void>>> triple_type;
5704 typedef check<check<check<check<void>>>> quadruple_type;
5708 namespace test_decltype
5721 namespace test_type_deduction
5724 template < typename T1, typename T2 >
5727 static const bool value = false;
5730 template < typename T >
5731 struct is_same<T, T>
5733 static const bool value = true;
5736 template < typename T1, typename T2 >
5738 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5744 test(const int c, volatile int v)
5746 static_assert(is_same<int, decltype(0)>::value == true, "");
5747 static_assert(is_same<int, decltype(c)>::value == false, "");
5748 static_assert(is_same<int, decltype(v)>::value == false, "");
5751 auto sumi = ac + av + 'x';
5752 auto sumf = ac + av + 1.0;
5753 static_assert(is_same<int, decltype(ac)>::value == true, "");
5754 static_assert(is_same<int, decltype(av)>::value == true, "");
5755 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5756 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5757 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5758 return (sumf > 0.0) ? sumi : add(c, v);
5763 namespace test_noexcept
5766 int f() { return 0; }
5767 int g() noexcept { return 0; }
5769 static_assert(noexcept(f()) == false, "");
5770 static_assert(noexcept(g()) == true, "");
5774 namespace test_constexpr
5777 template < typename CharT >
5778 unsigned long constexpr
5779 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5781 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5784 template < typename CharT >
5785 unsigned long constexpr
5786 strlen_c(const CharT *const s) noexcept
5788 return strlen_c_r(s, 0UL);
5791 static_assert(strlen_c("") == 0UL, "");
5792 static_assert(strlen_c("1") == 1UL, "");
5793 static_assert(strlen_c("example
") == 7UL, "");
5794 static_assert(strlen_c("another\
0example
") == 7UL, "");
5798 namespace test_rvalue_references
5804 static constexpr int value = N;
5807 answer<1> f(int&) { return answer<1>(); }
5808 answer<2> f(const int&) { return answer<2>(); }
5809 answer<3> f(int&&) { return answer<3>(); }
5816 static_assert(decltype(f(i))::value == 1, "");
5817 static_assert(decltype(f(c))::value == 2, "");
5818 static_assert(decltype(f(0))::value == 3, "");
5823 namespace test_uniform_initialization
5828 static const int zero {};
5829 static const int one {1};
5832 static_assert(test::zero == 0, "");
5833 static_assert(test::one == 1, "");
5837 namespace test_lambdas
5843 auto lambda1 = [](){};
5844 auto lambda2 = lambda1;
5852 auto a = [](int i, int j){ return i + j; }(1, 2);
5853 auto b = []() -> int { return '0'; }();
5854 auto c = [=](){ return a + b; }();
5855 auto d = [&](){ return c; }();
5856 auto e = [a, &b](int x) mutable {
5857 const auto identity = [](int y){ return y; };
5858 for (auto i = 0; i < a; ++i)
5860 return x + identity(a + b);
5862 return a + b + c + d + e;
5868 const auto nullary = [](){ return 0; };
5869 const auto unary = [](int x){ return x; };
5870 using nullary_t = decltype(nullary);
5871 using unary_t = decltype(unary);
5872 const auto higher1st = [](nullary_t f){ return f(); };
5873 const auto higher2nd = [unary](nullary_t f1){
5874 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5876 return higher1st(nullary) + higher2nd(nullary)(unary);
5881 namespace test_variadic_templates
5887 template <int N0, int... N1toN>
5888 struct sum<N0, N1toN...>
5890 static constexpr auto value = N0 + sum<N1toN...>::value;
5896 static constexpr auto value = 0;
5899 static_assert(sum<>::value == 0, "");
5900 static_assert(sum<1>::value == 1, "");
5901 static_assert(sum<23>::value == 23, "");
5902 static_assert(sum<1, 2>::value == 3, "");
5903 static_assert(sum<5, 5, 11>::value == 21, "");
5904 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5908 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5909 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5911 namespace test_template_alias_sfinae
5916 template<typename T>
5917 using member = typename T::member_type;
5919 template<typename T>
5922 template<typename T>
5923 void func(member<T>*) {}
5927 void test() { func<foo>(0); }
5931 } // namespace cxx11
5933 #endif // __cplusplus >= 201103L
5938 if ac_fn_cxx_try_compile "$LINENO"; then :
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 eval ac_res=\$$cachevar
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5948 $as_echo "$ac_res" >&6; }
5949 if eval test x\$$cachevar = xyes; then
5950 CXX_DIALECT="$switch"
5952 if test -n "$CXXCPP" ; then
5953 CXXCPP="$CXXCPP $switch"
5959 if test x$ac_success = xyes; then
5965 ac_cpp='$CPP $CPPFLAGS'
5966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5970 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5971 if test x$ac_success = xno; then
5972 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
5975 if test x$ac_success = xno; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
5978 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
5982 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5990 $as_echo_n "checking for ANSI C header files... " >&6; }
5991 if ${ac_cv_header_stdc+:} false
; then :
5992 $as_echo_n "(cached) " >&6
5994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
6009 if ac_fn_c_try_compile
"$LINENO"; then :
6010 ac_cv_header_stdc
=yes
6012 ac_cv_header_stdc
=no
6014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6016 if test $ac_cv_header_stdc = yes; then
6017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024 $EGREP "memchr" >/dev
/null
2>&1; then :
6027 ac_cv_header_stdc
=no
6033 if test $ac_cv_header_stdc = yes; then
6034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6041 $EGREP "free" >/dev
/null
2>&1; then :
6044 ac_cv_header_stdc
=no
6050 if test $ac_cv_header_stdc = yes; then
6051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6052 if test "$cross_compiling" = yes; then :
6055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6059 #if ((' ' & 0x0FF) == 0x020)
6060 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6061 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6063 # define ISLOWER(c) \
6064 (('a' <= (c) && (c) <= 'i') \
6065 || ('j' <= (c) && (c) <= 'r') \
6066 || ('s' <= (c) && (c) <= 'z'))
6067 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6075 for (i = 0; i < 256; i++)
6076 if (XOR (islower (i), ISLOWER (i))
6077 || toupper (i) != TOUPPER (i))
6082 if ac_fn_c_try_run
"$LINENO"; then :
6085 ac_cv_header_stdc
=no
6087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6088 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6094 $as_echo "$ac_cv_header_stdc" >&6; }
6095 if test $ac_cv_header_stdc = yes; then
6097 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6102 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6103 if test "x$ac_cv_type_size_t" = xyes
; then :
6107 cat >>confdefs.h
<<_ACEOF
6108 #define size_t unsigned int
6116 for ac_header
in $ac_header_list
6118 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6119 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6121 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6122 cat >>confdefs.h
<<_ACEOF
6123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6136 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6137 if test "x$ac_cv_type_pid_t" = xyes
; then :
6141 cat >>confdefs.h
<<_ACEOF
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6148 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6149 if ${ac_cv_path_SED+:} false
; then :
6150 $as_echo_n "(cached) " >&6
6152 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6153 for ac_i
in 1 2 3 4 5 6 7; do
6154 ac_script
="$ac_script$as_nl$ac_script"
6156 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6157 { ac_script
=; unset ac_script
;}
6158 if test -z "$SED"; then
6159 ac_path_SED_found
=false
6160 # Loop through the user's path and test for each of PROGNAME-LIST
6161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir
=.
6166 for ac_prog
in sed gsed
; do
6167 for ac_exec_ext
in '' $ac_executable_extensions; do
6168 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6169 as_fn_executable_p
"$ac_path_SED" ||
continue
6170 # Check for GNU ac_path_SED and select it if it is found.
6171 # Check for GNU $ac_path_SED
6172 case `"$ac_path_SED" --version 2>&1` in
6174 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6177 $as_echo_n 0123456789 >"conftest.in"
6180 cat "conftest.in" "conftest.in" >"conftest.tmp"
6181 mv "conftest.tmp" "conftest.in"
6182 cp "conftest.in" "conftest.nl"
6183 $as_echo '' >> "conftest.nl"
6184 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6185 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6186 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6187 if test $ac_count -gt ${ac_path_SED_max-0}; then
6188 # Best one so far, save it but keep looking for a better one
6189 ac_cv_path_SED
="$ac_path_SED"
6190 ac_path_SED_max
=$ac_count
6192 # 10*(2^10) chars as input seems more than enough
6193 test $ac_count -gt 10 && break
6195 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6198 $ac_path_SED_found && break 3
6203 if test -z "$ac_cv_path_SED"; then
6204 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6212 $as_echo "$ac_cv_path_SED" >&6; }
6213 SED
="$ac_cv_path_SED"
6217 if test "X$prefix" = "XNONE"; then
6218 acl_final_prefix
="$ac_default_prefix"
6220 acl_final_prefix
="$prefix"
6222 if test "X$exec_prefix" = "XNONE"; then
6223 acl_final_exec_prefix
='${prefix}'
6225 acl_final_exec_prefix
="$exec_prefix"
6227 acl_save_prefix
="$prefix"
6228 prefix
="$acl_final_prefix"
6229 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6230 prefix
="$acl_save_prefix"
6233 # Check whether --with-gnu-ld was given.
6234 if test "${with_gnu_ld+set}" = set; then :
6235 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6240 # Prepare PATH_SEPARATOR.
6241 # The user is always right.
6242 if test "${PATH_SEPARATOR+set}" != set; then
6243 echo "#! /bin/sh" >conf$$.sh
6244 echo "exit 0" >>conf$$.sh
6246 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6254 if test "$GCC" = yes; then
6255 # Check if gcc -print-prog-name=ld gives a path.
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6257 $as_echo_n "checking for ld used by GCC... " >&6; }
6260 # gcc leaves a trailing carriage return which upsets mingw
6261 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6263 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6266 # Accept absolute paths.
6267 [\\/]* |
[A-Za-z
]:[\\/]*)
6268 re_direlt
='/[^/][^/]*/\.\./'
6269 # Canonicalize the path of ld
6270 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6271 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6272 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6274 test -z "$LD" && LD
="$ac_prog"
6277 # If it fails, then pretend we aren't using GCC.
6281 # If it is relative, then search for the first ld in PATH.
6285 elif test "$with_gnu_ld" = yes; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6287 $as_echo_n "checking for GNU ld... " >&6; }
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6290 $as_echo_n "checking for non-GNU ld... " >&6; }
6292 if ${acl_cv_path_LD+:} false
; then :
6293 $as_echo_n "(cached) " >&6
6295 if test -z "$LD"; then
6296 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6297 for ac_dir
in $PATH; do
6298 test -z "$ac_dir" && ac_dir
=.
6299 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6300 acl_cv_path_LD
="$ac_dir/$ac_prog"
6301 # Check to see if the program is GNU ld. I'd rather use --version,
6302 # but apparently some GNU ld's only accept -v.
6303 # Break only if it was the GNU/non-GNU ld that we prefer.
6304 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6305 test "$with_gnu_ld" != no
&& break
6307 test "$with_gnu_ld" != yes && break
6313 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6317 LD
="$acl_cv_path_LD"
6318 if test -n "$LD"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6320 $as_echo "$LD" >&6; }
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6325 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6327 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6328 if ${acl_cv_prog_gnu_ld+:} false
; then :
6329 $as_echo_n "(cached) " >&6
6331 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6332 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6333 acl_cv_prog_gnu_ld
=yes
6335 acl_cv_prog_gnu_ld
=no
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6339 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6340 with_gnu_ld
=$acl_cv_prog_gnu_ld
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6345 $as_echo_n "checking for shared library run path origin... " >&6; }
6346 if ${acl_cv_rpath+:} false
; then :
6347 $as_echo_n "(cached) " >&6
6350 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6351 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6358 $as_echo "$acl_cv_rpath" >&6; }
6360 libext
="$acl_cv_libext"
6361 shlibext
="$acl_cv_shlibext"
6362 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6363 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6364 hardcode_direct
="$acl_cv_hardcode_direct"
6365 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6366 # Check whether --enable-rpath was given.
6367 if test "${enable_rpath+set}" = set; then :
6368 enableval
=$enable_rpath; :
6375 # Set the 'development' global.
6376 .
$srcdir/..
/bfd
/development.sh
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6379 $as_echo_n "checking for ANSI C header files... " >&6; }
6380 if ${ac_cv_header_stdc+:} false
; then :
6381 $as_echo_n "(cached) " >&6
6383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6398 if ac_fn_c_try_compile
"$LINENO"; then :
6399 ac_cv_header_stdc
=yes
6401 ac_cv_header_stdc
=no
6403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6405 if test $ac_cv_header_stdc = yes; then
6406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 $EGREP "memchr" >/dev
/null
2>&1; then :
6416 ac_cv_header_stdc
=no
6422 if test $ac_cv_header_stdc = yes; then
6423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6430 $EGREP "free" >/dev
/null
2>&1; then :
6433 ac_cv_header_stdc
=no
6439 if test $ac_cv_header_stdc = yes; then
6440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6441 if test "$cross_compiling" = yes; then :
6444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6448 #if ((' ' & 0x0FF) == 0x020)
6449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6452 # define ISLOWER(c) \
6453 (('a' <= (c) && (c) <= 'i') \
6454 || ('j' <= (c) && (c) <= 'r') \
6455 || ('s' <= (c) && (c) <= 'z'))
6456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6464 for (i = 0; i < 256; i++)
6465 if (XOR (islower (i), ISLOWER (i))
6466 || toupper (i) != TOUPPER (i))
6471 if ac_fn_c_try_run
"$LINENO"; then :
6474 ac_cv_header_stdc
=no
6476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6477 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6483 $as_echo "$ac_cv_header_stdc" >&6; }
6484 if test $ac_cv_header_stdc = yes; then
6486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6490 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6491 # for constant arguments. Useless!
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6493 $as_echo_n "checking for working alloca.h... " >&6; }
6494 if ${ac_cv_working_alloca_h+:} false
; then :
6495 $as_echo_n "(cached) " >&6
6497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6503 char *p = (char *) alloca (2 * sizeof (int));
6509 if ac_fn_c_try_link
"$LINENO"; then :
6510 ac_cv_working_alloca_h
=yes
6512 ac_cv_working_alloca_h
=no
6514 rm -f core conftest.err conftest.
$ac_objext \
6515 conftest
$ac_exeext conftest.
$ac_ext
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6518 $as_echo "$ac_cv_working_alloca_h" >&6; }
6519 if test $ac_cv_working_alloca_h = yes; then
6521 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6526 $as_echo_n "checking for alloca... " >&6; }
6527 if ${ac_cv_func_alloca_works+:} false
; then :
6528 $as_echo_n "(cached) " >&6
6530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6533 # define alloca __builtin_alloca
6536 # include <malloc.h>
6537 # define alloca _alloca
6539 # ifdef HAVE_ALLOCA_H
6540 # include <alloca.h>
6545 # ifndef alloca /* predefined by HP cc +Olibcalls */
6546 void *alloca (size_t);
6556 char *p = (char *) alloca (1);
6562 if ac_fn_c_try_link
"$LINENO"; then :
6563 ac_cv_func_alloca_works
=yes
6565 ac_cv_func_alloca_works
=no
6567 rm -f core conftest.err conftest.
$ac_objext \
6568 conftest
$ac_exeext conftest.
$ac_ext
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6571 $as_echo "$ac_cv_func_alloca_works" >&6; }
6573 if test $ac_cv_func_alloca_works = yes; then
6575 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6578 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6579 # that cause trouble. Some versions do not even contain alloca or
6580 # contain a buggy version. If you still want to use their alloca,
6581 # use ar to extract alloca.o from them instead of compiling alloca.c.
6583 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6585 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6589 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6590 if ${ac_cv_os_cray+:} false
; then :
6591 $as_echo_n "(cached) " >&6
6593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 #if defined CRAY && ! defined CRAY2
6602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6603 $EGREP "webecray" >/dev
/null
2>&1; then :
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6612 $as_echo "$ac_cv_os_cray" >&6; }
6613 if test $ac_cv_os_cray = yes; then
6614 for ac_func
in _getb67 GETB67 getb67
; do
6615 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6616 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6617 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6619 cat >>confdefs.h
<<_ACEOF
6620 #define CRAY_STACKSEG_END $ac_func
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6630 $as_echo_n "checking stack direction for C alloca... " >&6; }
6631 if ${ac_cv_c_stack_direction+:} false
; then :
6632 $as_echo_n "(cached) " >&6
6634 if test "$cross_compiling" = yes; then :
6635 ac_cv_c_stack_direction
=0
6637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 $ac_includes_default
6641 find_stack_direction (int *addr, int depth)
6646 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6647 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6652 main (int argc, char **argv)
6654 return find_stack_direction (0, argc + !argv + 20) < 0;
6657 if ac_fn_c_try_run
"$LINENO"; then :
6658 ac_cv_c_stack_direction
=1
6660 ac_cv_c_stack_direction
=-1
6662 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6663 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6668 $as_echo "$ac_cv_c_stack_direction" >&6; }
6669 cat >>confdefs.h
<<_ACEOF
6670 #define STACK_DIRECTION $ac_cv_c_stack_direction
6681 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6683 WIN32APILIBS
="-lws2_32"
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6689 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6690 if ${am_cv_langinfo_codeset+:} false
; then :
6691 $as_echo_n "(cached) " >&6
6693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6695 #include <langinfo.h>
6699 char* cs = nl_langinfo(CODESET);
6704 if ac_fn_c_try_link
"$LINENO"; then :
6705 am_cv_langinfo_codeset
=yes
6707 am_cv_langinfo_codeset
=no
6709 rm -f core conftest.err conftest.
$ac_objext \
6710 conftest
$ac_exeext conftest.
$ac_ext
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6714 $as_echo "$am_cv_langinfo_codeset" >&6; }
6715 if test $am_cv_langinfo_codeset = yes; then
6717 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6722 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
6724 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6726 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6727 cat >>confdefs.h
<<_ACEOF
6728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6737 for ac_func
in getpagesize
6739 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6740 if test "x$ac_cv_func_getpagesize" = xyes
; then :
6741 cat >>confdefs.h
<<_ACEOF
6742 #define HAVE_GETPAGESIZE 1
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6749 $as_echo_n "checking for working mmap... " >&6; }
6750 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
6751 $as_echo_n "(cached) " >&6
6753 if test "$cross_compiling" = yes; then :
6754 ac_cv_func_mmap_fixed_mapped
=no
6756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 $ac_includes_default
6759 /* malloc might have been renamed as rpl_malloc. */
6762 /* Thanks to Mike Haertel and Jim Avera for this test.
6763 Here is a matrix of mmap possibilities:
6764 mmap private not fixed
6765 mmap private fixed at somewhere currently unmapped
6766 mmap private fixed at somewhere already mapped
6767 mmap shared not fixed
6768 mmap shared fixed at somewhere currently unmapped
6769 mmap shared fixed at somewhere already mapped
6770 For private mappings, we should verify that changes cannot be read()
6771 back from the file, nor mmap's back from the file at a different
6772 address. (There have been systems where private was not correctly
6773 implemented like the infamous i386 svr4.0, and systems where the
6774 VM page cache was not coherent with the file system buffer cache
6775 like early versions of FreeBSD and possibly contemporary NetBSD.)
6776 For shared mappings, we should conversely verify that changes get
6777 propagated back to all the places they're supposed to be.
6779 Grep wants private fixed already mapped.
6780 The main things grep needs to know about mmap are:
6781 * does it exist and is it safe to write into the mmap'd area
6782 * how to use it (BSD variants) */
6785 #include <sys/mman.h>
6787 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6791 /* This mess was copied from the GNU getpagesize.h. */
6792 #ifndef HAVE_GETPAGESIZE
6793 # ifdef _SC_PAGESIZE
6794 # define getpagesize() sysconf(_SC_PAGESIZE)
6795 # else /* no _SC_PAGESIZE */
6796 # ifdef HAVE_SYS_PARAM_H
6797 # include <sys/param.h>
6798 # ifdef EXEC_PAGESIZE
6799 # define getpagesize() EXEC_PAGESIZE
6800 # else /* no EXEC_PAGESIZE */
6802 # define getpagesize() NBPG * CLSIZE
6805 # endif /* no CLSIZE */
6806 # else /* no NBPG */
6808 # define getpagesize() NBPC
6809 # else /* no NBPC */
6811 # define getpagesize() PAGESIZE
6812 # endif /* PAGESIZE */
6813 # endif /* no NBPC */
6814 # endif /* no NBPG */
6815 # endif /* no EXEC_PAGESIZE */
6816 # else /* no HAVE_SYS_PARAM_H */
6817 # define getpagesize() 8192 /* punt totally */
6818 # endif /* no HAVE_SYS_PARAM_H */
6819 # endif /* no _SC_PAGESIZE */
6821 #endif /* no HAVE_GETPAGESIZE */
6826 char *data, *data2, *data3;
6831 pagesize = getpagesize ();
6833 /* First, make a file with some known garbage in it. */
6834 data = (char *) malloc (pagesize);
6837 for (i = 0; i < pagesize; ++i)
6838 *(data + i) = rand ();
6840 fd = creat ("conftest.mmap", 0600);
6843 if (write (fd, data, pagesize) != pagesize)
6847 /* Next, check that the tail of a page is zero-filled. File must have
6848 non-zero length, otherwise we risk SIGBUS for entire page. */
6849 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6853 if (write (fd2, cdata2, 1) != 1)
6855 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6856 if (data2 == MAP_FAILED)
6858 for (i = 0; i < pagesize; ++i)
6862 if (munmap (data2, pagesize))
6865 /* Next, try to mmap the file at a fixed address which already has
6866 something else allocated at it. If we can, also make sure that
6867 we see the same garbage. */
6868 fd = open ("conftest.mmap", O_RDWR);
6871 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6872 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6874 for (i = 0; i < pagesize; ++i)
6875 if (*(data + i) != *(data2 + i))
6878 /* Finally, make sure that changes to the mapped area do not
6879 percolate back to the file as seen by read(). (This is a bug on
6880 some variants of i386 svr4.0.) */
6881 for (i = 0; i < pagesize; ++i)
6882 *(data2 + i) = *(data2 + i) + 1;
6883 data3 = (char *) malloc (pagesize);
6886 if (read (fd, data3, pagesize) != pagesize)
6888 for (i = 0; i < pagesize; ++i)
6889 if (*(data + i) != *(data3 + i))
6895 if ac_fn_c_try_run
"$LINENO"; then :
6896 ac_cv_func_mmap_fixed_mapped
=yes
6898 ac_cv_func_mmap_fixed_mapped
=no
6900 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6901 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6906 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6907 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6909 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6912 rm -f conftest.mmap conftest.txt
6914 for ac_header
in vfork.h
6916 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6917 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6918 cat >>confdefs.h
<<_ACEOF
6919 #define HAVE_VFORK_H 1
6926 for ac_func
in fork vfork
6928 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6929 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6930 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6931 cat >>confdefs.h
<<_ACEOF
6932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6938 if test "x$ac_cv_func_fork" = xyes
; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6940 $as_echo_n "checking for working fork... " >&6; }
6941 if ${ac_cv_func_fork_works+:} false
; then :
6942 $as_echo_n "(cached) " >&6
6944 if test "$cross_compiling" = yes; then :
6945 ac_cv_func_fork_works
=cross
6947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 $ac_includes_default
6954 /* By Ruediger Kuhlmann. */
6961 if ac_fn_c_try_run
"$LINENO"; then :
6962 ac_cv_func_fork_works
=yes
6964 ac_cv_func_fork_works
=no
6966 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6967 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6972 $as_echo "$ac_cv_func_fork_works" >&6; }
6975 ac_cv_func_fork_works
=$ac_cv_func_fork
6977 if test "x$ac_cv_func_fork_works" = xcross
; then
6979 *-*-amigaos* |
*-*-msdosdjgpp*)
6980 # Override, as these systems have only a dummy fork() stub
6981 ac_cv_func_fork_works
=no
6984 ac_cv_func_fork_works
=yes
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6988 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6990 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6991 if test "x$ac_cv_func_vfork" = xyes
; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6993 $as_echo_n "checking for working vfork... " >&6; }
6994 if ${ac_cv_func_vfork_works+:} false
; then :
6995 $as_echo_n "(cached) " >&6
6997 if test "$cross_compiling" = yes; then :
6998 ac_cv_func_vfork_works
=cross
7000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002 /* Thanks to Paul Eggert for this test. */
7003 $ac_includes_default
7004 #include <sys/wait.h>
7008 /* On some sparc systems, changes by the child to local and incoming
7009 argument registers are propagated back to the parent. The compiler
7010 is told about this with #include <vfork.h>, but some compilers
7011 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7012 static variable whose address is put into a register that is
7013 clobbered by the vfork. */
7016 sparc_address_test (int arg)
7018 sparc_address_test (arg) int arg;
7039 pid_t parent = getpid ();
7042 sparc_address_test (0);
7047 /* Here is another test for sparc vfork register problems. This
7048 test uses lots of local variables, at least as many local
7049 variables as main has allocated so far including compiler
7050 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7051 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7052 reuse the register of parent for one of the local variables,
7053 since it will think that parent can't possibly be used any more
7054 in this routine. Assigning to the local variable will thus
7055 munge parent in the parent process. */
7057 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7058 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7059 /* Convince the compiler that p..p7 are live; otherwise, it might
7060 use the same hardware register for all 8 local variables. */
7061 if (p != p1 || p != p2 || p != p3 || p != p4
7062 || p != p5 || p != p6 || p != p7)
7065 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7066 from child file descriptors. If the child closes a descriptor
7067 before it execs or exits, this munges the parent's descriptor
7068 as well. Test for this by closing stdout in the child. */
7069 _exit(close(fileno(stdout)) != 0);
7074 while (wait(&status) != child)
7077 /* Was there some problem with vforking? */
7080 /* Did the child fail? (This shouldn't happen.) */
7083 /* Did the vfork/compiler bug occur? */
7084 || parent != getpid()
7086 /* Did the file descriptor bug occur? */
7087 || fstat(fileno(stdout), &st) != 0
7092 if ac_fn_c_try_run
"$LINENO"; then :
7093 ac_cv_func_vfork_works
=yes
7095 ac_cv_func_vfork_works
=no
7097 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7098 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7103 $as_echo "$ac_cv_func_vfork_works" >&6; }
7106 if test "x$ac_cv_func_fork_works" = xcross
; then
7107 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7109 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7112 if test "x$ac_cv_func_vfork_works" = xyes
; then
7114 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7118 $as_echo "#define vfork fork" >>confdefs.h
7121 if test "x$ac_cv_func_fork_works" = xyes
; then
7123 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7127 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
7128 ptrace64 sbrk setns sigaltstack sigprocmask \
7129 setpgid setpgrp getrusage getauxval sigtimedwait
7131 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7132 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7133 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7134 cat >>confdefs.h
<<_ACEOF
7135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7142 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
7143 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
7144 # only in linux/personality.h.
7145 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7147 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
7153 cat >>confdefs.h
<<_ACEOF
7154 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7158 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
7159 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
7165 cat >>confdefs.h
<<_ACEOF
7166 #define HAVE_DECL_STRSTR $ac_have_decl
7170 # ----------------------- #
7171 # Checks for structures. #
7172 # ----------------------- #
7174 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7175 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
7177 cat >>confdefs.h
<<_ACEOF
7178 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7183 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7184 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
7186 cat >>confdefs.h
<<_ACEOF
7187 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7194 # On FreeBSD we need libutil for the kinfo_get* functions. On
7195 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7196 # Figure out which one to use.
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7198 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7199 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7200 $as_echo_n "(cached) " >&6
7202 ac_func_search_save_LIBS
=$LIBS
7203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7206 /* Override any GCC internal prototype to avoid an error.
7207 Use char because int might match the return type of a GCC
7208 builtin and then its argument prototype would still apply. */
7212 char kinfo_getfile ();
7216 return kinfo_getfile ();
7221 for ac_lib
in '' util util-freebsd
; do
7222 if test -z "$ac_lib"; then
7223 ac_res
="none required"
7226 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7228 if ac_fn_c_try_link
"$LINENO"; then :
7229 ac_cv_search_kinfo_getfile
=$ac_res
7231 rm -f core conftest.err conftest.
$ac_objext \
7233 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7237 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7240 ac_cv_search_kinfo_getfile
=no
7243 LIBS
=$ac_func_search_save_LIBS
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7246 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7247 ac_res
=$ac_cv_search_kinfo_getfile
7248 if test "$ac_res" != no
; then :
7249 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7254 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
7255 for ac_func
in kinfo_getfile
7257 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
7258 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
7259 cat >>confdefs.h
<<_ACEOF
7260 #define HAVE_KINFO_GETFILE 1
7267 # Check for std::thread. This does not work on some platforms, like
7270 ac_cpp
='$CXXCPP $CPPFLAGS'
7271 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7280 ac_cpp
='$CPP $CPPFLAGS'
7281 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7287 # We used to check for pthread.h first, but this fails if pthread.h
7288 # requires special compiler flags (e.g. on Tru64 or Sequent).
7289 # It gets checked for in the link test anyway.
7291 # First of all, check if the user has set any of the PTHREAD_LIBS,
7292 # etcetera environment variables, and if threads linking works using
7294 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7295 ax_pthread_save_CC
="$CC"
7296 ax_pthread_save_CFLAGS
="$CFLAGS"
7297 ax_pthread_save_LIBS
="$LIBS"
7298 if test "x$PTHREAD_CC" != "x"; then :
7301 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7302 LIBS
="$PTHREAD_LIBS $LIBS"
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7304 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7308 /* Override any GCC internal prototype to avoid an error.
7309 Use char because int might match the return type of a GCC
7310 builtin and then its argument prototype would still apply. */
7314 char pthread_join ();
7318 return pthread_join ();
7323 if ac_fn_c_try_link
"$LINENO"; then :
7326 rm -f core conftest.err conftest.
$ac_objext \
7327 conftest
$ac_exeext conftest.
$ac_ext
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7329 $as_echo "$ax_pthread_ok" >&6; }
7330 if test "x$ax_pthread_ok" = "xno"; then
7334 CC
="$ax_pthread_save_CC"
7335 CFLAGS
="$ax_pthread_save_CFLAGS"
7336 LIBS
="$ax_pthread_save_LIBS"
7339 # We must check for the threads library under a number of different
7340 # names; the ordering is very important because some systems
7341 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7342 # libraries is broken (non-POSIX).
7344 # Create a list of thread flags to try. Items starting with a "-" are
7345 # C compiler flags, and other items are library names, except for "none"
7346 # which indicates that we try without any flags at all, and "pthread-config"
7347 # which is a program returning the flags for the Pth emulation library.
7349 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7351 # The ordering *is* (sometimes) important. Some notes on the
7352 # individual items follow:
7354 # pthreads: AIX (must check this before -lpthread)
7355 # none: in case threads are in libc; should be tried before -Kthread and
7356 # other compiler flags to prevent continual compiler warnings
7357 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7358 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7359 # (Note: HP C rejects this with "bad form for `-t' option")
7360 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7361 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7362 # doesn't hurt to check since this sometimes defines pthreads and
7363 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7364 # is present but should not be used directly; and before -mthreads,
7365 # because the compiler interprets this as "-mt" + "-hreads")
7366 # -mthreads: Mingw32/gcc, Lynx/gcc
7367 # pthread: Linux, etcetera
7368 # --thread-safe: KAI C++
7369 # pthread-config: use pthread-config program (for GNU Pth library)
7375 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7376 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7378 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
7383 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7384 # multi-threading and also sets -lpthread."
7386 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
7391 # IBM z/OS requires a feature-test macro to be defined in order to
7392 # enable POSIX threads at all, so give the user a hint if this is
7393 # not set. (We don't define these ourselves, as they can affect
7394 # other portions of the system API in unpredictable ways.)
7396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7399 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7400 AX_PTHREAD_ZOS_MISSING
7404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7405 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7407 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7415 # On Solaris (at least, for some versions), libc contains stubbed
7416 # (non-functional) versions of the pthreads routines, so link-based
7417 # tests will erroneously succeed. (N.B.: The stubs are missing
7418 # pthread_cleanup_push, or rather a function called by this macro,
7419 # so we could check for that, but who knows whether they'll stub
7420 # that too in a future libc.) So we'll check first for the
7421 # standard Solaris way of linking pthreads (-mt -lpthread).
7423 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
7427 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7429 if test "x$GCC" = "xyes"; then :
7430 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
7433 # The presence of a feature test macro requesting re-entrant function
7434 # definitions is, on some systems, a strong hint that pthreads support is
7438 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
7439 ax_pthread_check_macro
="_REENTRANT"
7443 ax_pthread_check_macro
="_THREAD_SAFE"
7447 ax_pthread_check_macro
="--"
7450 if test "x$ax_pthread_check_macro" = "x--"; then :
7451 ax_pthread_check_cond
=0
7453 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
7456 # Are we compiling with Clang?
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7459 $as_echo_n "checking whether $CC is Clang... " >&6; }
7460 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
7461 $as_echo_n "(cached) " >&6
7463 ax_cv_PTHREAD_CLANG
=no
7464 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7465 if test "x$GCC" = "xyes"; then
7466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7469 # if defined(__clang__) && defined(__llvm__)
7470 AX_PTHREAD_CC_IS_CLANG
7474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7475 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
7476 ax_cv_PTHREAD_CLANG
=yes
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7484 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
7485 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
7487 ax_pthread_clang_warning
=no
7489 # Clang needs special handling, because older versions handle the -pthread
7490 # option in a rather... idiosyncratic way
7492 if test "x$ax_pthread_clang" = "xyes"; then
7494 # Clang takes -pthread; it has never supported any other flag
7496 # (Note 1: This will need to be revisited if a system that Clang
7497 # supports has POSIX threads in a separate library. This tends not
7498 # to be the way of modern systems, but it's conceivable.)
7500 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7501 # to get POSIX threads support; the API is always present and
7502 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7503 # -pthread does define _REENTRANT, and while the Darwin headers
7504 # ignore this macro, third-party headers might not.)
7506 PTHREAD_CFLAGS
="-pthread"
7511 # However, older versions of Clang make a point of warning the user
7512 # that, in an invocation where only linking and no compilation is
7513 # taking place, the -pthread option has no effect ("argument unused
7514 # during compilation"). They expect -pthread to be passed in only
7515 # when source code is being compiled.
7517 # Problem is, this is at odds with the way Automake and most other
7518 # C build frameworks function, which is that the same flags used in
7519 # compilation (CFLAGS) are also used in linking. Many systems
7520 # supported by AX_PTHREAD require exactly this for POSIX threads
7521 # support, and in fact it is often not straightforward to specify a
7522 # flag that is used only in the compilation phase and not in
7523 # linking. Such a scenario is extremely rare in practice.
7525 # Even though use of the -pthread flag in linking would only print
7526 # a warning, this can be a nuisance for well-run software projects
7527 # that build with -Werror. So if the active version of Clang has
7528 # this misfeature, we search for an option to squash it.
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7531 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7532 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
7533 $as_echo_n "(cached) " >&6
7535 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
7536 # Create an alternate version of $ac_link that compiles and
7537 # links in two steps (.c -> .o, .o -> exe) instead of one
7538 # (.c -> exe), because the warning occurs only in the second
7540 ax_pthread_save_ac_link
="$ac_link"
7541 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7542 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
7543 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7544 ax_pthread_save_CFLAGS
="$CFLAGS"
7545 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
7546 if test "x$ax_pthread_try" = "xunknown"; then :
7549 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7550 ac_link
="$ax_pthread_save_ac_link"
7551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553 int main(void){return 0;}
7555 if ac_fn_c_try_link
"$LINENO"; then :
7556 ac_link
="$ax_pthread_2step_ac_link"
7557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559 int main(void){return 0;}
7561 if ac_fn_c_try_link
"$LINENO"; then :
7564 rm -f core conftest.err conftest.
$ac_objext \
7565 conftest
$ac_exeext conftest.
$ac_ext
7568 rm -f core conftest.err conftest.
$ac_objext \
7569 conftest
$ac_exeext conftest.
$ac_ext
7571 ac_link
="$ax_pthread_save_ac_link"
7572 CFLAGS
="$ax_pthread_save_CFLAGS"
7573 if test "x$ax_pthread_try" = "x"; then :
7576 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7580 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7582 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7584 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7587 fi # $ax_pthread_clang = yes
7589 if test "x$ax_pthread_ok" = "xno"; then
7590 for ax_pthread_try_flag
in $ax_pthread_flags; do
7592 case $ax_pthread_try_flag in
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7595 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
7600 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
7601 PTHREAD_CFLAGS
="-mt"
7602 PTHREAD_LIBS
="-lpthread"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7607 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7608 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
7612 # Extract the first word of "pthread-config", so it can be a program name with args.
7613 set dummy pthread-config
; ac_word
=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
7617 $as_echo_n "(cached) " >&6
7619 if test -n "$ax_pthread_config"; then
7620 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
7622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir
=.
7627 for ac_exec_ext
in '' $ac_executable_extensions; do
7628 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ax_pthread_config
="yes"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
7640 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
7641 if test -n "$ax_pthread_config"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7643 $as_echo "$ax_pthread_config" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7650 if test "x$ax_pthread_config" = "xno"; then :
7653 PTHREAD_CFLAGS
="`pthread-config --cflags`"
7654 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7659 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7660 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
7664 ax_pthread_save_CFLAGS
="$CFLAGS"
7665 ax_pthread_save_LIBS
="$LIBS"
7666 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7667 LIBS
="$PTHREAD_LIBS $LIBS"
7669 # Check for various functions. We must include pthread.h,
7670 # since some functions may be macros. (On the Sequent, we
7671 # need a special flag -Kthread to make this header compile.)
7672 # We check for pthread_join because it is in -lpthread on IRIX
7673 # while pthread_create is in libc. We check for pthread_attr_init
7674 # due to DEC craziness with -lpthreads. We check for
7675 # pthread_cleanup_push because it is one of the few pthread
7676 # functions on Solaris that doesn't have a non-functional libc stub.
7677 # We try pthread_create on general principles.
7679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 #include <pthread.h>
7682 # if $ax_pthread_check_cond
7683 # error "$ax_pthread_check_macro must be defined"
7685 static void routine(void *a) { a = 0; }
7686 static void *start_routine(void *a) { return a; }
7690 pthread_t th; pthread_attr_t attr;
7691 pthread_create(&th, 0, start_routine, 0);
7692 pthread_join(th, 0);
7693 pthread_attr_init(&attr);
7694 pthread_cleanup_push(routine, 0);
7695 pthread_cleanup_pop(0) /* ; */
7700 if ac_fn_c_try_link
"$LINENO"; then :
7703 rm -f core conftest.err conftest.
$ac_objext \
7704 conftest
$ac_exeext conftest.
$ac_ext
7706 CFLAGS
="$ax_pthread_save_CFLAGS"
7707 LIBS
="$ax_pthread_save_LIBS"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7710 $as_echo "$ax_pthread_ok" >&6; }
7711 if test "x$ax_pthread_ok" = "xyes"; then :
7720 # Various other checks:
7721 if test "x$ax_pthread_ok" = "xyes"; then
7722 ax_pthread_save_CFLAGS
="$CFLAGS"
7723 ax_pthread_save_LIBS
="$LIBS"
7724 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
7725 LIBS
="$PTHREAD_LIBS $LIBS"
7727 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7729 $as_echo_n "checking for joinable pthread attribute... " >&6; }
7730 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
7731 $as_echo_n "(cached) " >&6
7733 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
7734 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
7735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #include <pthread.h>
7741 int attr = $ax_pthread_attr; return attr /* ; */
7746 if ac_fn_c_try_link
"$LINENO"; then :
7747 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
7749 rm -f core conftest.err conftest.
$ac_objext \
7750 conftest
$ac_exeext conftest.
$ac_ext
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7755 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7756 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7757 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7758 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
7760 cat >>confdefs.h
<<_ACEOF
7761 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
7764 ax_pthread_joinable_attr_defined
=yes
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7769 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
7770 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
7771 $as_echo_n "(cached) " >&6
7773 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
7776 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7782 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7783 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7784 test "x$ax_pthread_special_flags_added" != "xyes"; then :
7785 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7786 ax_pthread_special_flags_added
=yes
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7790 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7791 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
7792 $as_echo_n "(cached) " >&6
7794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #include <pthread.h>
7800 int i = PTHREAD_PRIO_INHERIT;
7805 if ac_fn_c_try_link
"$LINENO"; then :
7806 ax_cv_PTHREAD_PRIO_INHERIT
=yes
7808 ax_cv_PTHREAD_PRIO_INHERIT
=no
7810 rm -f core conftest.err conftest.
$ac_objext \
7811 conftest
$ac_exeext conftest.
$ac_ext
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7815 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7816 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7817 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
7819 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7821 ax_pthread_prio_inherit_defined
=yes
7825 CFLAGS
="$ax_pthread_save_CFLAGS"
7826 LIBS
="$ax_pthread_save_LIBS"
7828 # More AIX lossage: compile with *_r variant
7829 if test "x$GCC" != "xyes"; then
7833 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
7834 #handle absolute path differently from PATH based program lookup
7837 if as_fn_executable_p
${CC}_r
; then :
7838 PTHREAD_CC
="${CC}_r"
7841 for ac_prog
in ${CC}_r
7843 # Extract the first word of "$ac_prog", so it can be a program name with args.
7844 set dummy
$ac_prog; ac_word
=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
7848 $as_echo_n "(cached) " >&6
7850 if test -n "$PTHREAD_CC"; then
7851 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
7853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7857 test -z "$as_dir" && as_dir
=.
7858 for ac_exec_ext
in '' $ac_executable_extensions; do
7859 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7860 ac_cv_prog_PTHREAD_CC
="$ac_prog"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
7871 if test -n "$PTHREAD_CC"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7873 $as_echo "$PTHREAD_CC" >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7880 test -n "$PTHREAD_CC" && break
7882 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7893 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
7899 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7900 if test "x$ax_pthread_ok" = "xyes"; then
7908 ac_cpp
='$CXXCPP $CPPFLAGS'
7909 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7914 if test "$threads" = "yes"; then
7916 LIBS
="$PTHREAD_LIBS $LIBS"
7917 save_CXXFLAGS
="$CXXFLAGS"
7918 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
7920 $as_echo_n "checking for std::thread... " >&6; }
7921 if ${gdb_cv_cxx_std_thread+:} false
; then :
7922 $as_echo_n "(cached) " >&6
7924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7931 std::thread t(callback);
7936 if ac_fn_cxx_try_compile
"$LINENO"; then :
7937 gdb_cv_cxx_std_thread
=yes
7939 gdb_cv_cxx_std_thread
=no
7941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
7944 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
7946 # This check must be here, while LIBS includes any necessary
7947 # threading library.
7948 for ac_func
in pthread_sigmask pthread_setname_np
7950 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7951 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7952 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7953 cat >>confdefs.h
<<_ACEOF
7954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7962 CXXFLAGS
="$save_CXXFLAGS"
7964 if test "$gdb_cv_cxx_std_thread" = "yes"; then
7966 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
7970 ac_cpp
='$CPP $CPPFLAGS'
7971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
7977 $as_echo_n "checking for sigsetjmp... " >&6; }
7978 if ${gdb_cv_func_sigsetjmp+:} false
; then :
7979 $as_echo_n "(cached) " >&6
7981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7988 while (! sigsetjmp (env, 1))
7989 siglongjmp (env, 1);
7995 if ac_fn_c_try_compile
"$LINENO"; then :
7996 gdb_cv_func_sigsetjmp
=yes
7998 gdb_cv_func_sigsetjmp
=no
8001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
8005 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
8006 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
8008 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
8013 # Check whether --with-intel_pt was given.
8014 if test "${with_intel_pt+set}" = set; then :
8015 withval
=$with_intel_pt;
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
8021 $as_echo_n "checking whether to use intel pt... " >&6; }
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
8023 $as_echo "$with_intel_pt" >&6; }
8025 if test "${with_intel_pt}" = no
; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
8027 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
8030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8033 #include <linux/perf_event.h>
8034 #ifndef PERF_ATTR_SIZE_VER5
8039 if ac_fn_c_try_cpp
"$LINENO"; then :
8044 rm -f conftest.err conftest.i conftest.
$ac_ext
8045 if test "$perf_event" != yes; then
8046 if test "$with_intel_pt" = yes; then
8047 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
8050 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
8064 acl_save_prefix
="$prefix"
8065 prefix
="$acl_final_prefix"
8066 acl_save_exec_prefix
="$exec_prefix"
8067 exec_prefix
="$acl_final_exec_prefix"
8069 eval additional_includedir
=\"$includedir\"
8070 eval additional_libdir
=\"$libdir\"
8072 exec_prefix
="$acl_save_exec_prefix"
8073 prefix
="$acl_save_prefix"
8076 # Check whether --with-libipt-prefix was given.
8077 if test "${with_libipt_prefix+set}" = set; then :
8078 withval
=$with_libipt_prefix;
8079 if test "X$withval" = "Xno"; then
8082 if test "X$withval" = "X"; then
8084 acl_save_prefix
="$prefix"
8085 prefix
="$acl_final_prefix"
8086 acl_save_exec_prefix
="$exec_prefix"
8087 exec_prefix
="$acl_final_exec_prefix"
8089 eval additional_includedir
=\"$includedir\"
8090 eval additional_libdir
=\"$libdir\"
8092 exec_prefix
="$acl_save_exec_prefix"
8093 prefix
="$acl_save_prefix"
8096 additional_includedir
="$withval/include"
8097 additional_libdir
="$withval/lib"
8104 # Check whether --with-libipt-type was given.
8105 if test "${with_libipt_type+set}" = set; then :
8106 withval
=$with_libipt_type; with_libipt_type
=$withval
8108 with_libipt_type
=auto
8111 lib_type
=`eval echo \$with_libipt_type`
8118 names_already_handled
=
8119 names_next_round
='ipt '
8120 while test -n "$names_next_round"; do
8121 names_this_round
="$names_next_round"
8123 for name
in $names_this_round; do
8125 for n
in $names_already_handled; do
8126 if test "$n" = "$name"; then
8131 if test -z "$already_handled"; then
8132 names_already_handled
="$names_already_handled $name"
8133 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8134 eval value
=\"\
$HAVE_LIB$uppername\"
8135 if test -n "$value"; then
8136 if test "$value" = yes; then
8137 eval value
=\"\
$LIB$uppername\"
8138 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
8139 eval value
=\"\
$LTLIB$uppername\"
8140 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
8149 if test $use_additional = yes; then
8150 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8151 found_dir
="$additional_libdir"
8152 found_so
="$additional_libdir/lib$name.$shlibext"
8153 if test -f "$additional_libdir/lib$name.la"; then
8154 found_la
="$additional_libdir/lib$name.la"
8156 elif test x
$lib_type != xshared
; then
8157 if test -f "$additional_libdir/lib$name.$libext"; then
8158 found_dir
="$additional_libdir"
8159 found_a
="$additional_libdir/lib$name.$libext"
8160 if test -f "$additional_libdir/lib$name.la"; then
8161 found_la
="$additional_libdir/lib$name.la"
8166 if test "X$found_dir" = "X"; then
8167 for x
in $LDFLAGS $LTLIBIPT; do
8169 acl_save_prefix
="$prefix"
8170 prefix
="$acl_final_prefix"
8171 acl_save_exec_prefix
="$exec_prefix"
8172 exec_prefix
="$acl_final_exec_prefix"
8174 exec_prefix
="$acl_save_exec_prefix"
8175 prefix
="$acl_save_prefix"
8179 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8180 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8182 found_so
="$dir/lib$name.$shlibext"
8183 if test -f "$dir/lib$name.la"; then
8184 found_la
="$dir/lib$name.la"
8186 elif test x
$lib_type != xshared
; then
8187 if test -f "$dir/lib$name.$libext"; then
8189 found_a
="$dir/lib$name.$libext"
8190 if test -f "$dir/lib$name.la"; then
8191 found_la
="$dir/lib$name.la"
8197 if test "X$found_dir" != "X"; then
8202 if test "X$found_dir" != "X"; then
8203 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
8204 if test "X$found_so" != "X"; then
8205 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8206 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8209 for x
in $ltrpathdirs; do
8210 if test "X$x" = "X$found_dir"; then
8215 if test -z "$haveit"; then
8216 ltrpathdirs
="$ltrpathdirs $found_dir"
8218 if test "$hardcode_direct" = yes; then
8219 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8221 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8222 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8224 for x
in $rpathdirs; do
8225 if test "X$x" = "X$found_dir"; then
8230 if test -z "$haveit"; then
8231 rpathdirs
="$rpathdirs $found_dir"
8235 for x
in $LDFLAGS $LIBIPT; do
8237 acl_save_prefix
="$prefix"
8238 prefix
="$acl_final_prefix"
8239 acl_save_exec_prefix
="$exec_prefix"
8240 exec_prefix
="$acl_final_exec_prefix"
8242 exec_prefix
="$acl_save_exec_prefix"
8243 prefix
="$acl_save_prefix"
8245 if test "X$x" = "X-L$found_dir"; then
8250 if test -z "$haveit"; then
8251 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
8253 if test "$hardcode_minus_L" != no
; then
8254 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
8256 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8262 if test "X$found_a" != "X"; then
8263 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
8265 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
8268 additional_includedir
=
8269 case "$found_dir" in
8271 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8272 additional_includedir
="$basedir/include"
8275 if test "X$additional_includedir" != "X"; then
8276 if test "X$additional_includedir" != "X/usr/include"; then
8278 if test "X$additional_includedir" = "X/usr/local/include"; then
8279 if test -n "$GCC"; then
8281 linux
*) haveit
=yes;;
8285 if test -z "$haveit"; then
8286 for x
in $CPPFLAGS $INCIPT; do
8288 acl_save_prefix
="$prefix"
8289 prefix
="$acl_final_prefix"
8290 acl_save_exec_prefix
="$exec_prefix"
8291 exec_prefix
="$acl_final_exec_prefix"
8293 exec_prefix
="$acl_save_exec_prefix"
8294 prefix
="$acl_save_prefix"
8296 if test "X$x" = "X-I$additional_includedir"; then
8301 if test -z "$haveit"; then
8302 if test -d "$additional_includedir"; then
8303 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
8309 if test -n "$found_la"; then
8310 save_libdir
="$libdir"
8312 */* |
*\\*) .
"$found_la" ;;
8313 *) .
"./$found_la" ;;
8315 libdir
="$save_libdir"
8316 for dep
in $dependency_libs; do
8319 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8320 if test "X$additional_libdir" != "X/usr/lib"; then
8322 if test "X$additional_libdir" = "X/usr/local/lib"; then
8323 if test -n "$GCC"; then
8325 linux
*) haveit
=yes;;
8329 if test -z "$haveit"; then
8331 for x
in $LDFLAGS $LIBIPT; do
8333 acl_save_prefix
="$prefix"
8334 prefix
="$acl_final_prefix"
8335 acl_save_exec_prefix
="$exec_prefix"
8336 exec_prefix
="$acl_final_exec_prefix"
8338 exec_prefix
="$acl_save_exec_prefix"
8339 prefix
="$acl_save_prefix"
8341 if test "X$x" = "X-L$additional_libdir"; then
8346 if test -z "$haveit"; then
8347 if test -d "$additional_libdir"; then
8348 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
8352 for x
in $LDFLAGS $LTLIBIPT; do
8354 acl_save_prefix
="$prefix"
8355 prefix
="$acl_final_prefix"
8356 acl_save_exec_prefix
="$exec_prefix"
8357 exec_prefix
="$acl_final_exec_prefix"
8359 exec_prefix
="$acl_save_exec_prefix"
8360 prefix
="$acl_save_prefix"
8362 if test "X$x" = "X-L$additional_libdir"; then
8367 if test -z "$haveit"; then
8368 if test -d "$additional_libdir"; then
8369 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
8376 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8377 if test "$enable_rpath" != no
; then
8379 for x
in $rpathdirs; do
8380 if test "X$x" = "X$dir"; then
8385 if test -z "$haveit"; then
8386 rpathdirs
="$rpathdirs $dir"
8389 for x
in $ltrpathdirs; do
8390 if test "X$x" = "X$dir"; then
8395 if test -z "$haveit"; then
8396 ltrpathdirs
="$ltrpathdirs $dir"
8401 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8404 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8407 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
8408 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
8414 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8415 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
8416 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
8418 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
8419 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
8426 if test "X$rpathdirs" != "X"; then
8427 if test -n "$hardcode_libdir_separator"; then
8429 for found_dir
in $rpathdirs; do
8430 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8432 acl_save_libdir
="$libdir"
8434 eval flag
=\"$hardcode_libdir_flag_spec\"
8435 libdir
="$acl_save_libdir"
8436 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8438 for found_dir
in $rpathdirs; do
8439 acl_save_libdir
="$libdir"
8441 eval flag
=\"$hardcode_libdir_flag_spec\"
8442 libdir
="$acl_save_libdir"
8443 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
8447 if test "X$ltrpathdirs" != "X"; then
8448 for found_dir
in $ltrpathdirs; do
8449 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
8454 ac_save_CPPFLAGS
="$CPPFLAGS"
8456 for element
in $INCIPT; do
8458 for x
in $CPPFLAGS; do
8460 acl_save_prefix
="$prefix"
8461 prefix
="$acl_final_prefix"
8462 acl_save_exec_prefix
="$exec_prefix"
8463 exec_prefix
="$acl_final_exec_prefix"
8465 exec_prefix
="$acl_save_exec_prefix"
8466 prefix
="$acl_save_prefix"
8468 if test "X$x" = "X$element"; then
8473 if test -z "$haveit"; then
8474 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
8480 $as_echo_n "checking for libipt... " >&6; }
8481 if ${ac_cv_libipt+:} false
; then :
8482 $as_echo_n "(cached) " >&6
8485 ac_save_LIBS
="$LIBS"
8486 LIBS
="$LIBS $LIBIPT"
8487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489 #include "intel-pt.h"
8493 pt_insn_alloc_decoder (0);
8498 if ac_fn_c_try_link
"$LINENO"; then :
8503 rm -f core conftest.err conftest.
$ac_objext \
8504 conftest
$ac_exeext conftest.
$ac_ext
8505 LIBS
="$ac_save_LIBS"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
8509 $as_echo "$ac_cv_libipt" >&6; }
8510 if test "$ac_cv_libipt" = yes; then
8513 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
8516 $as_echo_n "checking how to link with libipt... " >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
8518 $as_echo "$LIBIPT" >&6; }
8521 CPPFLAGS
="$ac_save_CPPFLAGS"
8531 if test "$HAVE_LIBIPT" != yes; then
8532 if test "$with_intel_pt" = yes; then
8533 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
8536 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
8540 LIBS
="$LIBS $LIBIPT"
8541 for ac_func
in pt_insn_event
8543 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
8544 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
8545 cat >>confdefs.h
<<_ACEOF
8546 #define HAVE_PT_INSN_EVENT 1
8552 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
8554 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
8556 cat >>confdefs.h
<<_ACEOF
8557 #define HAVE_STRUCT_PT_INSN_ENABLED 1
8562 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
8564 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
8566 cat >>confdefs.h
<<_ACEOF
8567 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
8577 # Check if the compiler and runtime support printing long longs.
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
8580 $as_echo_n "checking for long long support in printf... " >&6; }
8581 if ${gdb_cv_printf_has_long_long+:} false
; then :
8582 $as_echo_n "(cached) " >&6
8584 if test "$cross_compiling" = yes; then :
8585 gdb_cv_printf_has_long_long
=no
8587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h. */
8589 $ac_includes_default
8595 l = (l << 16) + 0x0123;
8596 l = (l << 16) + 0x4567;
8597 l = (l << 16) + 0x89ab;
8598 l = (l << 16) + 0xcdef;
8599 sprintf (buf, "0x%016llx", l);
8600 return (strcmp ("0x0123456789abcdef", buf));
8605 if ac_fn_c_try_run
"$LINENO"; then :
8606 gdb_cv_printf_has_long_long
=yes
8608 gdb_cv_printf_has_long_long
=no
8610 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8611 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
8616 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
8617 if test "$gdb_cv_printf_has_long_long" = yes; then
8619 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
8624 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
8626 for ac_header
in sys
/procfs.h
8628 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
8629 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
8630 cat >>confdefs.h
<<_ACEOF
8631 #define HAVE_SYS_PROCFS_H 1
8638 if test "$ac_cv_header_sys_procfs_h" = yes; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
8641 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
8642 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
8643 $as_echo_n "(cached) " >&6
8645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8649 #include <sys/procfs.h>
8658 if ac_fn_c_try_compile
"$LINENO"; then :
8659 bfd_cv_have_sys_procfs_type_gregset_t
=yes
8661 bfd_cv_have_sys_procfs_type_gregset_t
=no
8664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8667 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8669 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
8673 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
8677 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
8678 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
8679 $as_echo_n "(cached) " >&6
8681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8685 #include <sys/procfs.h>
8694 if ac_fn_c_try_compile
"$LINENO"; then :
8695 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
8697 bfd_cv_have_sys_procfs_type_fpregset_t
=no
8700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8703 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8705 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
8709 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8713 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8714 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
8715 $as_echo_n "(cached) " >&6
8717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8721 #include <sys/procfs.h>
8730 if ac_fn_c_try_compile
"$LINENO"; then :
8731 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8733 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8739 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8741 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8745 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8749 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8750 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
8751 $as_echo_n "(cached) " >&6
8753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8757 #include <sys/procfs.h>
8766 if ac_fn_c_try_compile
"$LINENO"; then :
8767 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8769 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8775 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8777 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8781 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
8785 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
8786 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
8787 $as_echo_n "(cached) " >&6
8789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8793 #include <sys/procfs.h>
8802 if ac_fn_c_try_compile
"$LINENO"; then :
8803 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
8805 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
8808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8811 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8813 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
8817 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
8821 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
8822 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
8823 $as_echo_n "(cached) " >&6
8825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8829 #include <sys/procfs.h>
8838 if ac_fn_c_try_compile
"$LINENO"; then :
8839 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8841 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8847 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8849 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
8853 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
8857 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
8858 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
8859 $as_echo_n "(cached) " >&6
8861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8865 #include <sys/procfs.h>
8874 if ac_fn_c_try_compile
"$LINENO"; then :
8875 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8877 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8883 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8885 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8889 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8893 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8894 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
8895 $as_echo_n "(cached) " >&6
8897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8901 #include <sys/procfs.h>
8910 if ac_fn_c_try_compile
"$LINENO"; then :
8911 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
8913 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
8916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8919 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8921 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8925 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8929 # This is set by GDB_AC_COMMON.
8933 # Check whether we will enable the inclusion of unit tests when
8936 # The default value of this option changes depending whether we're on
8937 # development mode (in which case it's "true") or not (in which case
8938 # it's "false"). The $development variable is set by the GDB_AC_COMMON
8939 # macro, which must therefore be used before GDB_AC_SELFTEST.
8941 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
8942 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
8945 # Check whether --enable-unit-tests was given.
8946 if test "${enable_unit_tests+set}" = set; then :
8947 enableval
=$enable_unit_tests; case "${enableval}" in
8948 yes) enable_unittests
=true
;;
8949 no
) enable_unittests
=false
;;
8950 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
8953 enable_unittests
=$development
8957 if $enable_unittests; then
8959 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
8965 case ${build_alias} in
8966 "") build_noncanonical
=${build} ;;
8967 *) build_noncanonical
=${build_alias} ;;
8970 case ${host_alias} in
8971 "") host_noncanonical
=${build_noncanonical} ;;
8972 *) host_noncanonical
=${host_alias} ;;
8975 case ${target_alias} in
8976 "") target_noncanonical
=${host_noncanonical} ;;
8977 *) target_noncanonical
=${target_alias} ;;
8985 # Dependency checking.
8986 rm -rf .tst
2>/dev
/null
8987 mkdir .tst
2>/dev
/null
8988 if test -d .tst
; then
8993 rmdir .tst
2>/dev
/null
8995 DEPDIR
="${am__leading_dot}deps"
8997 ac_config_commands
="$ac_config_commands depdir"
9001 # If we haven't got the data from the intl directory,
9002 # assume NLS is disabled.
9011 if test -f ..
/intl
/config.intl
; then
9012 . ..
/intl
/config.intl
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9015 $as_echo_n "checking whether NLS is requested... " >&6; }
9016 if test x
"$USE_NLS" != xyes
; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 $as_echo "no" >&6; }
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9021 $as_echo "yes" >&6; }
9023 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
9027 $as_echo_n "checking for catalogs to be installed... " >&6; }
9028 # Look for .po and .gmo files in the source directory.
9031 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
9032 # If there aren't any .gmo files the shell will give us the
9033 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9035 case "$cat" in *\
**)
9038 # The quadruple backslash is collapsed to a double backslash
9039 # by the backticks, then collapsed again by the double quotes,
9040 # leaving us with one backslash in the sed expression (right
9041 # before the dot that mustn't act as a wildcard).
9042 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
9043 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
9044 # The user is allowed to set LINGUAS to a list of languages to
9045 # install catalogs for. If it's empty that means "all of them."
9046 if test "x$LINGUAS" = x
; then
9047 CATALOGS
="$CATALOGS $cat"
9048 XLINGUAS
="$XLINGUAS $lang"
9050 case "$LINGUAS" in *$lang*)
9051 CATALOGS
="$CATALOGS $cat"
9052 XLINGUAS
="$XLINGUAS $lang"
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
9059 $as_echo "$LINGUAS" >&6; }
9072 # Create sub-directories for objects and dependencies.
9073 CONFIG_SRC_SUBDIR
="arch gdbsupport nat target"
9076 ac_config_commands
="$ac_config_commands gdbdepdir"
9079 depcc
="$CC" am_compiler_list
=
9081 am_depcomp
=$ac_aux_dir/depcomp
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9083 $as_echo_n "checking dependency style of $depcc... " >&6; }
9084 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
9085 $as_echo_n "(cached) " >&6
9087 if test -f "$am_depcomp"; then
9088 # We make a subdir and do the tests there. Otherwise we can end up
9089 # making bogus files that we don't know about and never remove. For
9090 # instance it was reported that on HP-UX the gcc test will end up
9091 # making a dummy file named `D' -- because `-MD' means `put the output
9094 # Copy depcomp to subdir because otherwise we won't find it if we're
9095 # using a relative directory.
9096 cp "$am_depcomp" conftest.dir
9098 # We will build objects and dependencies in a subdirectory because
9099 # it helps to detect inapplicable dependency modes. For instance
9100 # both Tru64's cc and ICC support -MD to output dependencies as a
9101 # side effect of compilation, but ICC will put the dependencies in
9102 # the current directory while Tru64 will put them in the object
9106 am_cv_CC_dependencies_compiler_type
=none
9107 if test "$am_compiler_list" = ""; then
9108 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9110 for depmode
in $am_compiler_list; do
9111 if test $depmode = none
; then break; fi
9113 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9114 # Setup a source with many dependencies, because some compilers
9115 # like to wrap large dependency lists on column 80 (with \), and
9116 # we should not choose a depcomp mode which is confused by this.
9118 # We need to recreate these files for each test, as the compiler may
9119 # overwrite some of them when testing with obscure command lines.
9120 # This happens at least with the AIX C compiler.
9122 for i
in 1 2 3 4 5 6; do
9123 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9124 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9125 # Solaris 8's {/usr,}/bin/sh.
9126 touch sub
/conftst
$i.h
9128 echo "include sub/conftest.Po" > confmf
9130 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9131 # mode. It turns out that the SunPro C++ compiler does not properly
9132 # handle `-M -o', and we need to detect this.
9133 depcmd
="depmode=$depmode \
9134 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9135 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9136 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9137 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9138 if env
$depcmd > conftest.err
2>&1 &&
9139 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9140 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9141 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9142 # icc doesn't choke on unknown options, it will just issue warnings
9143 # or remarks (even with -Werror). So we grep stderr for any message
9144 # that says an option was ignored or not supported.
9145 # When given -MP, icc 7.0 and 7.1 complain thusly:
9146 # icc: Command line warning: ignoring option '-M'; no argument required
9147 # The diagnosis changed in icc 8.0:
9148 # icc: Command line remark: option '-MP' not supported
9149 if (grep 'ignoring option' conftest.err ||
9150 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9151 am_cv_CC_dependencies_compiler_type
=$depmode
9152 $as_echo "$as_me:$LINENO: success" >&5
9156 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9157 sed -e 's/^/| /' < conftest.err
>&5
9163 am_cv_CC_dependencies_compiler_type
=none
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9168 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9169 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
9170 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9171 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
9176 for ac_header
in termios.h sys
/reg.h string.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 ws2tcpip.h
9178 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9179 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9180 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9181 cat >>confdefs.h
<<_ACEOF
9182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9189 for ac_header
in vfork.h
9191 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9192 if test "x$ac_cv_header_vfork_h" = xyes
; then :
9193 cat >>confdefs.h
<<_ACEOF
9194 #define HAVE_VFORK_H 1
9201 for ac_func
in fork vfork
9203 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9204 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9205 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9206 cat >>confdefs.h
<<_ACEOF
9207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9213 if test "x$ac_cv_func_fork" = xyes
; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9215 $as_echo_n "checking for working fork... " >&6; }
9216 if ${ac_cv_func_fork_works+:} false
; then :
9217 $as_echo_n "(cached) " >&6
9219 if test "$cross_compiling" = yes; then :
9220 ac_cv_func_fork_works
=cross
9222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224 $ac_includes_default
9229 /* By Ruediger Kuhlmann. */
9236 if ac_fn_c_try_run
"$LINENO"; then :
9237 ac_cv_func_fork_works
=yes
9239 ac_cv_func_fork_works
=no
9241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9247 $as_echo "$ac_cv_func_fork_works" >&6; }
9250 ac_cv_func_fork_works
=$ac_cv_func_fork
9252 if test "x$ac_cv_func_fork_works" = xcross
; then
9254 *-*-amigaos* |
*-*-msdosdjgpp*)
9255 # Override, as these systems have only a dummy fork() stub
9256 ac_cv_func_fork_works
=no
9259 ac_cv_func_fork_works
=yes
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9263 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9265 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9266 if test "x$ac_cv_func_vfork" = xyes
; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9268 $as_echo_n "checking for working vfork... " >&6; }
9269 if ${ac_cv_func_vfork_works+:} false
; then :
9270 $as_echo_n "(cached) " >&6
9272 if test "$cross_compiling" = yes; then :
9273 ac_cv_func_vfork_works
=cross
9275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9277 /* Thanks to Paul Eggert for this test. */
9278 $ac_includes_default
9279 #include <sys/wait.h>
9283 /* On some sparc systems, changes by the child to local and incoming
9284 argument registers are propagated back to the parent. The compiler
9285 is told about this with #include <vfork.h>, but some compilers
9286 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9287 static variable whose address is put into a register that is
9288 clobbered by the vfork. */
9291 sparc_address_test (int arg)
9293 sparc_address_test (arg) int arg;
9314 pid_t parent = getpid ();
9317 sparc_address_test (0);
9322 /* Here is another test for sparc vfork register problems. This
9323 test uses lots of local variables, at least as many local
9324 variables as main has allocated so far including compiler
9325 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9326 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9327 reuse the register of parent for one of the local variables,
9328 since it will think that parent can't possibly be used any more
9329 in this routine. Assigning to the local variable will thus
9330 munge parent in the parent process. */
9332 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9333 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9334 /* Convince the compiler that p..p7 are live; otherwise, it might
9335 use the same hardware register for all 8 local variables. */
9336 if (p != p1 || p != p2 || p != p3 || p != p4
9337 || p != p5 || p != p6 || p != p7)
9340 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9341 from child file descriptors. If the child closes a descriptor
9342 before it execs or exits, this munges the parent's descriptor
9343 as well. Test for this by closing stdout in the child. */
9344 _exit(close(fileno(stdout)) != 0);
9349 while (wait(&status) != child)
9352 /* Was there some problem with vforking? */
9355 /* Did the child fail? (This shouldn't happen.) */
9358 /* Did the vfork/compiler bug occur? */
9359 || parent != getpid()
9361 /* Did the file descriptor bug occur? */
9362 || fstat(fileno(stdout), &st) != 0
9367 if ac_fn_c_try_run
"$LINENO"; then :
9368 ac_cv_func_vfork_works
=yes
9370 ac_cv_func_vfork_works
=no
9372 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9373 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9378 $as_echo "$ac_cv_func_vfork_works" >&6; }
9381 if test "x$ac_cv_func_fork_works" = xcross
; then
9382 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9384 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9387 if test "x$ac_cv_func_vfork_works" = xyes
; then
9389 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9393 $as_echo "#define vfork fork" >>confdefs.h
9396 if test "x$ac_cv_func_fork_works" = xyes
; then
9398 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9402 for ac_func
in pread pwrite pread64
9404 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9405 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9406 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9407 cat >>confdefs.h
<<_ACEOF
9408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9415 # Check the return and argument types of ptrace.
9418 for ac_header
in sys
/ptrace.h ptrace.h
9420 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9421 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9422 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9423 cat >>confdefs.h
<<_ACEOF
9424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9432 gdb_ptrace_headers
='
9433 #include <sys/types.h>
9434 #if HAVE_SYS_PTRACE_H
9435 # include <sys/ptrace.h>
9438 # include <unistd.h>
9442 # Check return type. Varargs (used on GNU/Linux) conflict with the
9443 # empty argument list, so check for that explicitly.
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
9445 $as_echo_n "checking return type of ptrace... " >&6; }
9446 if ${gdb_cv_func_ptrace_ret+:} false
; then :
9447 $as_echo_n "(cached) " >&6
9449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451 Â $gdb_ptrace_headers
9455 extern long ptrace (enum __ptrace_request, ...);
9461 if ac_fn_c_try_compile
"$LINENO"; then :
9462 gdb_cv_func_ptrace_ret
='long'
9464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9470 extern int ptrace ();
9476 if ac_fn_c_try_compile
"$LINENO"; then :
9477 gdb_cv_func_ptrace_ret
='int'
9479 gdb_cv_func_ptrace_ret
='long'
9482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
9489 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
9492 cat >>confdefs.h
<<_ACEOF
9493 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
9497 # Check argument types.
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
9499 $as_echo_n "checking types of arguments for ptrace... " >&6; }
9500 if ${gdb_cv_func_ptrace_args+:} false
; then :
9501 $as_echo_n "(cached) " >&6
9503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9509 extern long ptrace (enum __ptrace_request, ...);
9515 if ac_fn_c_try_compile
"$LINENO"; then :
9516 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
9518 for gdb_arg1
in 'int' 'long'; do
9519 for gdb_arg2
in 'pid_t' 'int' 'long'; do
9520 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
9521 for gdb_arg4
in 'int' 'long' 'void *'; do
9522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9528 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
9534 if ac_fn_c_try_compile
"$LINENO"; then :
9535 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
9539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9541 for gdb_arg5
in 'int *' 'int' 'long'; do
9542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9548 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
9554 if ac_fn_c_try_compile
"$LINENO"; then :
9555 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
9559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9565 # Provide a safe default value.
9566 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
9569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
9573 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
9575 ac_save_IFS
=$IFS; IFS
=','
9576 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
9580 cat >>confdefs.h
<<_ACEOF
9581 #define PTRACE_TYPE_ARG1 $1
9585 cat >>confdefs.h
<<_ACEOF
9586 #define PTRACE_TYPE_ARG3 $3
9590 cat >>confdefs.h
<<_ACEOF
9591 #define PTRACE_TYPE_ARG4 $4
9594 if test -n "$5"; then
9596 cat >>confdefs.h
<<_ACEOF
9597 #define PTRACE_TYPE_ARG5 $5
9608 # Check whether --with-ust was given.
9609 if test "${with_ust+set}" = set; then :
9614 # Check whether --with-ust_include was given.
9615 if test "${with_ust_include+set}" = set; then :
9616 withval
=$with_ust_include;
9620 # Check whether --with-ust_lib was given.
9621 if test "${with_ust_lib+set}" = set; then :
9622 withval
=$with_ust_lib;
9636 ustlibs
="-L$with_ust/lib -lust"
9637 ustinc
="-I$with_ust/include "
9640 if test "x$with_ust_include" != x
; then
9641 ustinc
="-I$with_ust_include "
9643 if test "x$with_ust_lib" != x
; then
9644 ustlibs
="-L$with_ust_lib -lust"
9647 if test "x$with_ust" != "xno"; then
9648 saved_CFLAGS
="$CFLAGS"
9649 CFLAGS
="$CFLAGS $ustinc"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
9651 $as_echo_n "checking for ust... " >&6; }
9652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9655 #define CONFIG_UST_GDB_INTEGRATION
9656 #include <ust/ust.h>
9667 if ac_fn_c_try_compile
"$LINENO"; then :
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9669 $as_echo "yes" >&6; };
9671 $as_echo "#define HAVE_UST 1" >>confdefs.h
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9680 CFLAGS
="$saved_CFLAGS"
9683 # Flags needed for UST
9688 # Check whether --enable-werror was given.
9689 if test "${enable_werror+set}" = set; then :
9690 enableval
=$enable_werror; case "${enableval}" in
9691 yes | y
) ERROR_ON_WARNING
="yes" ;;
9692 no | n
) ERROR_ON_WARNING
="no" ;;
9693 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9698 # Enable -Werror by default when using gcc. Turn it off for releases.
9699 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
9700 ERROR_ON_WARNING
=yes
9704 if test "${ERROR_ON_WARNING}" = yes ; then
9705 WERROR_CFLAGS
="-Werror"
9708 # The options we'll try to enable.
9709 build_warnings
="-Wall -Wpointer-arith \
9710 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
9711 -Wno-switch -Wno-char-subscripts \
9712 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
9713 -Wno-sign-compare -Wno-error=maybe-uninitialized \
9714 -Wno-mismatched-tags \
9715 -Wno-error=deprecated-register \
9716 -Wsuggest-override \
9717 -Wimplicit-fallthrough=3 \
9721 -Wdeprecated-copy-dtor \
9723 -Wmissing-declarations \
9724 -Wmissing-prototypes \
9725 -Wstrict-null-sentinel \
9730 # Enable -Wno-format by default when using gcc on mingw since many
9731 # GCC versions complain about %I64.
9732 build_warnings
="$build_warnings -Wno-format" ;;
9734 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
9735 # doesn't understand.
9736 build_warnings
="$build_warnings -Wno-unknown-pragmas"
9737 # Solaris 11 <unistd.h> marks vfork deprecated.
9738 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
9740 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
9741 # but there's a special case for this below.
9742 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
9745 # Check whether --enable-build-warnings was given.
9746 if test "${enable_build_warnings+set}" = set; then :
9747 enableval
=$enable_build_warnings; case "${enableval}" in
9749 no
) build_warnings
="-w";;
9750 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9751 build_warnings
="${build_warnings} ${t}";;
9752 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9753 build_warnings
="${t} ${build_warnings}";;
9754 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9756 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9757 echo "Setting compiler warning flags = $build_warnings" 6>&1
9760 # Check whether --enable-gdb-build-warnings was given.
9761 if test "${enable_gdb_build_warnings+set}" = set; then :
9762 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
9764 no
) build_warnings
="-w";;
9765 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9766 build_warnings
="${build_warnings} ${t}";;
9767 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9768 build_warnings
="${t} ${build_warnings}";;
9769 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9771 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9772 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9776 # The set of warnings supported by a C++ compiler is not the same as
9777 # of the C compiler.
9779 ac_cpp
='$CXXCPP $CPPFLAGS'
9780 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9781 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9782 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9786 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
9789 $as_echo_n "checking compiler warning flags... " >&6; }
9790 # Separate out the -Werror flag as some files just cannot be
9791 # compiled with it enabled.
9792 for w
in ${build_warnings}; do
9793 # GCC does not complain about -Wno-unknown-warning. Invert
9794 # and test -Wunknown-warning instead.
9797 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
9798 -Wformat-nonliteral)
9799 # gcc requires -Wformat before -Wformat-nonliteral
9800 # will work, so stick them together.
9809 -Werr*) WERROR_CFLAGS
=-Werror ;;
9811 # Check whether GCC accepts it.
9812 saved_CFLAGS
="$CFLAGS"
9813 CFLAGS
="$CFLAGS -Werror $wtest"
9814 saved_CXXFLAGS
="$CXXFLAGS"
9815 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
9816 if test "x$w" = "x-Wunused-variable"; then
9817 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
9818 # fixed in GCC 4.9. This test is derived from the gdb
9819 # source code that triggered this bug in GCC.
9820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822 struct scoped_restore_base {};
9823 struct scoped_restore_tmpl : public scoped_restore_base {
9824 ~scoped_restore_tmpl() {}
9829 const scoped_restore_base &b = scoped_restore_tmpl();
9835 if ac_fn_cxx_try_compile
"$LINENO"; then :
9836 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9851 if ac_fn_cxx_try_compile
"$LINENO"; then :
9852 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9856 CFLAGS
="$saved_CFLAGS"
9857 CXXFLAGS
="$saved_CXXFLAGS"
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
9861 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
9867 ac_cpp='$CPP $CPPFLAGS'
9868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9876 for ac_func in dladdr
9878 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
9879 if test "x
$ac_cv_func_dladdr" = xyes; then :
9880 cat >>confdefs.h <<_ACEOF
9881 #define HAVE_DLADDR 1
9890 # Check for presence and size of long long.
9891 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
9892 if test "x
$ac_cv_type_long_long" = xyes; then :
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_LONG_LONG 1
9898 # The cast to long int works around a bug in the HP C Compiler
9899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9901 # This bug is HP SR number 8606223364.
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
9903 $as_echo_n "checking size of long long...
" >&6; }
9904 if ${ac_cv_sizeof_long_long+:} false; then :
9905 $as_echo_n "(cached
) " >&6
9907 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
9910 if test "$ac_cv_type_long_long" = yes; then
9911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
9912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9913 as_fn_error 77 "cannot compute sizeof (long long)
9914 See \`config.log' for more details
" "$LINENO" 5; }
9916 ac_cv_sizeof_long_long=0
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
9922 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9926 cat >>confdefs.h <<_ACEOF
9927 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9934 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename
(char
*)" | $as_tr_sh`
9935 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "$as_ac_Symbol" "$ac_includes_default"
9936 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
9942 cat >>confdefs.h <<_ACEOF
9943 #define HAVE_DECL_BASENAME $ac_have_decl
9945 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
9946 if test "x
$ac_cv_have_decl_ffs" = xyes; then :
9952 cat >>confdefs.h <<_ACEOF
9953 #define HAVE_DECL_FFS $ac_have_decl
9955 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
9956 if test "x
$ac_cv_have_decl_asprintf" = xyes; then :
9962 cat >>confdefs.h <<_ACEOF
9963 #define HAVE_DECL_ASPRINTF $ac_have_decl
9965 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
9966 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
9972 cat >>confdefs.h <<_ACEOF
9973 #define HAVE_DECL_VASPRINTF $ac_have_decl
9975 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
9976 if test "x
$ac_cv_have_decl_snprintf" = xyes; then :
9982 cat >>confdefs.h <<_ACEOF
9983 #define HAVE_DECL_SNPRINTF $ac_have_decl
9985 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
9986 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
9992 cat >>confdefs.h <<_ACEOF
9993 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9996 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
9997 if test "x
$ac_cv_have_decl_strtol" = xyes; then :
10003 cat >>confdefs.h <<_ACEOF
10004 #define HAVE_DECL_STRTOL $ac_have_decl
10006 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
10007 if test "x
$ac_cv_have_decl_strtoul" = xyes; then :
10013 cat >>confdefs.h <<_ACEOF
10014 #define HAVE_DECL_STRTOUL $ac_have_decl
10016 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
10017 if test "x
$ac_cv_have_decl_strtoll" = xyes; then :
10023 cat >>confdefs.h <<_ACEOF
10024 #define HAVE_DECL_STRTOLL $ac_have_decl
10026 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
10027 if test "x
$ac_cv_have_decl_strtoull" = xyes; then :
10033 cat >>confdefs.h <<_ACEOF
10034 #define HAVE_DECL_STRTOULL $ac_have_decl
10037 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
10038 if test "x
$ac_cv_have_decl_strverscmp" = xyes; then :
10044 cat >>confdefs.h <<_ACEOF
10045 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10050 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
10051 if test "x
$ac_cv_have_decl_perror" = xyes; then :
10057 cat >>confdefs.h <<_ACEOF
10058 #define HAVE_DECL_PERROR $ac_have_decl
10060 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
10061 if test "x
$ac_cv_have_decl_vasprintf" = xyes; then :
10067 cat >>confdefs.h <<_ACEOF
10068 #define HAVE_DECL_VASPRINTF $ac_have_decl
10070 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
10071 if test "x
$ac_cv_have_decl_vsnprintf" = xyes; then :
10077 cat >>confdefs.h <<_ACEOF
10078 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10082 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
10083 #if HAVE_SYS_SOCKET_H
10084 # include <sys/socket.h>
10085 #elif HAVE_WS2TCPIP_H
10086 # include <ws2tcpip.h>
10090 if test "x
$ac_cv_type_socklen_t" = xyes; then :
10092 cat >>confdefs.h <<_ACEOF
10093 #define HAVE_SOCKLEN_T 1
10100 case "${target}" in
10102 # Starting with NDK version 9, <elf.h> actually includes definitions
10103 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
10104 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
10105 # leading to conflicts with the defintions from <linux/elf.h>.
10106 # This makes it impossible for us to include both <elf.h> and
10107 # <linux/elf.h>, which means that, in practice, we do not have
10108 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
10109 # Therefore, do not try to auto-detect availability, as it would
10110 # get it wrong on this platform.
10113 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
10116 if test "x
$ac_cv_type_Elf32_auxv_t" = xyes; then :
10118 cat >>confdefs.h <<_ACEOF
10119 #define HAVE_ELF32_AUXV_T 1
10124 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
10127 if test "x
$ac_cv_type_Elf64_auxv_t" = xyes; then :
10129 cat >>confdefs.h <<_ACEOF
10130 #define HAVE_ELF64_AUXV_T 1
10140 # Check whether --with-pkgversion was given.
10141 if test "${with_pkgversion+set}" = set; then :
10142 withval=$with_pkgversion; case "$withval" in
10143 yes) as_fn_error $? "package version not specified
" "$LINENO" 5 ;;
10145 *) PKGVERSION="($withval) " ;;
10148 PKGVERSION="(GDB
) "
10156 # Check whether --with-bugurl was given.
10157 if test "${with_bugurl+set}" = set; then :
10158 withval=$with_bugurl; case "$withval" in
10159 yes) as_fn_error $? "bug URL not specified
" "$LINENO" 5 ;;
10162 *) BUGURL="$withval"
10166 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
10176 REPORT_BUGS_TO="<$BUGURL>"
10177 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10184 cat >>confdefs.h <<_ACEOF
10185 #define PKGVERSION "$PKGVERSION"
10189 cat >>confdefs.h <<_ACEOF
10190 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
10194 # Check for various supplementary target information (beyond the
10195 # triplet) which might affect the choices in configure.srv.
10196 case "${target}" in
10197 i[34567]86-*-linux*)
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
10199 $as_echo_n "checking
if building
for x86-64...
" >&6; }
10200 if ${gdb_cv_i386_is_x86_64+:} false; then :
10201 $as_echo_n "(cached
) " >&6
10203 save_CPPFLAGS="$CPPFLAGS"
10204 CPPFLAGS="$CPPFLAGS $CFLAGS"
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10213 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10214 $EGREP "got it
" >/dev/null 2>&1; then :
10215 gdb_cv_i386_is_x86_64=yes
10217 gdb_cv_i386_is_x86_64=no
10221 CPPFLAGS="$save_CPPFLAGS"
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
10224 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x32
" >&5
10229 $as_echo_n "checking
if building
for x32...
" >&6; }
10230 if ${gdb_cv_x86_is_x32+:} false; then :
10231 $as_echo_n "(cached
) " >&6
10233 save_CPPFLAGS="$CPPFLAGS"
10234 CPPFLAGS="$CPPFLAGS $CFLAGS"
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10238 #if __x86_64__ && __ILP32__
10243 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10244 $EGREP "got it
" >/dev/null 2>&1; then :
10245 gdb_cv_x86_is_x32=yes
10247 gdb_cv_x86_is_x32=no
10251 CPPFLAGS="$save_CPPFLAGS"
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_x86_is_x32" >&5
10254 $as_echo "$gdb_cv_x86_is_x32" >&6; }
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
10259 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
10260 if ${gdb_cv_m68k_is_coldfire+:} false; then :
10261 $as_echo_n "(cached
) " >&6
10263 save_CPPFLAGS="$CPPFLAGS"
10264 CPPFLAGS="$CPPFLAGS $CFLAGS"
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10268 #ifdef __mcoldfire__
10273 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10274 $EGREP "got it
" >/dev/null 2>&1; then :
10275 gdb_cv_m68k_is_coldfire=yes
10277 gdb_cv_m68k_is_coldfire=no
10281 CPPFLAGS="$save_CPPFLAGS"
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
10284 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
10288 . ${srcdir}/configure.srv
10290 if test "${srv_mingwce}" = "yes"; then
10292 elif test "${srv_mingw}" = "yes"; then
10293 # WIN32APILIBS is set by GDB_AC_COMMON.
10294 LIBS="$LIBS $WIN32APILIBS"
10297 if test "${srv_linux_usrregs}" = "yes"; then
10299 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
10303 if test "${srv_linux_regsets}" = "yes"; then
10305 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10309 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10310 if ${gdbsrv_cv_have_ptrace_getregs+:} false
; then :
10311 $as_echo_n "(cached) " >&6
10313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10315 #include <sys/ptrace.h>
10324 if ac_fn_c_try_compile
"$LINENO"; then :
10325 gdbsrv_cv_have_ptrace_getregs
=yes
10327 gdbsrv_cv_have_ptrace_getregs
=no
10330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
10335 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
10336 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
10338 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10343 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10344 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false
; then :
10345 $as_echo_n "(cached) " >&6
10347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 #include <sys/ptrace.h>
10358 if ac_fn_c_try_compile
"$LINENO"; then :
10359 gdbsrv_cv_have_ptrace_getfpxregs
=yes
10361 gdbsrv_cv_have_ptrace_getfpxregs
=no
10364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
10369 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
10370 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
10372 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10377 if test "${srv_linux_btrace}" = "yes"; then
10379 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
10383 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
10385 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
10386 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false
; then :
10387 $as_echo_n "(cached) " >&6
10389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10391 #include <thread_db.h>
10400 if ac_fn_c_try_compile
"$LINENO"; then :
10401 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
10403 gdbserver_cv_have_thread_db_type_lwpid_t
=no
10406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10410 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
10412 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
10416 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
10420 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
10422 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
10423 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false
; then :
10424 $as_echo_n "(cached) " >&6
10426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 #include <thread_db.h>
10437 if ac_fn_c_try_compile
"$LINENO"; then :
10438 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
10440 gdbserver_cv_have_thread_db_type_psaddr_t
=no
10443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10447 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
10449 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
10453 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10459 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10460 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10461 $as_echo_n "(cached) " >&6
10463 ac_check_lib_save_LIBS
=$LIBS
10465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10468 /* Override any GCC internal prototype to avoid an error.
10469 Use char because int might match the return type of a GCC
10470 builtin and then its argument prototype would still apply. */
10483 if ac_fn_c_try_link
"$LINENO"; then :
10484 ac_cv_lib_dl_dlopen
=yes
10486 ac_cv_lib_dl_dlopen
=no
10488 rm -f core conftest.err conftest.
$ac_objext \
10489 conftest
$ac_exeext conftest.
$ac_ext
10490 LIBS
=$ac_check_lib_save_LIBS
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10494 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10495 cat >>confdefs.h
<<_ACEOF
10496 #define HAVE_LIBDL 1
10505 srv_thread_depfiles
=
10508 if test "$srv_linux_thread_db" = "yes"; then
10509 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
10512 $as_echo_n "checking for the dynamic export flag... " >&6; }
10513 old_LDFLAGS
="$LDFLAGS"
10514 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
10516 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
10517 LDFLAGS
="$LDFLAGS $RDYNAMIC"
10518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h. */
10529 if ac_fn_c_try_link
"$LINENO"; then :
10530 found
="-Wl,--dynamic-list"
10531 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
10533 RDYNAMIC
="-rdynamic"
10534 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
10535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10546 if ac_fn_c_try_link
"$LINENO"; then :
10553 rm -f core conftest.err conftest.
$ac_objext \
10554 conftest
$ac_exeext conftest.
$ac_ext
10557 rm -f core conftest.err conftest.
$ac_objext \
10558 conftest
$ac_exeext conftest.
$ac_ext
10560 LDFLAGS
="$old_LDFLAGS"
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
10562 $as_echo "$found" >&6; }
10564 srv_libs
="-lthread_db"
10567 srv_thread_depfiles
="thread-db.o proc-service.o"
10569 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
10572 $as_echo_n "checking for TD_VERSION... " >&6; }
10573 if ${gdbsrv_cv_have_td_version+:} false
; then :
10574 $as_echo_n "(cached) " >&6
10576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10578 #include <thread_db.h>
10587 if ac_fn_c_try_compile
"$LINENO"; then :
10588 gdbsrv_cv_have_td_version
=yes
10590 gdbsrv_cv_have_td_version
=no
10593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
10597 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
10598 if test "$gdbsrv_cv_have_td_version" = yes; then
10600 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
10606 # Check whether --with-libthread-db was given.
10607 if test "${with_libthread_db+set}" = set; then :
10608 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
10609 srv_libs
="$srv_libthread_db_path"
10614 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
10616 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
10620 if test "$srv_xmlfiles" != ""; then
10621 srv_xmlbuiltin
="xml-builtin.o"
10623 $as_echo "#define USE_XML 1" >>confdefs.h
10626 tmp_xmlfiles
=$srv_xmlfiles
10628 for f
in $tmp_xmlfiles; do
10629 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
10633 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
10634 GDBSERVER_LIBS
="$srv_libs"
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
10637 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
10638 if ${gdbsrv_cv_have_sync_builtins+:} false
; then :
10639 $as_echo_n "(cached) " >&6
10641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10648 bar = __sync_val_compare_and_swap(&foo, 0, 1);
10654 if ac_fn_c_try_link
"$LINENO"; then :
10655 gdbsrv_cv_have_sync_builtins
=yes
10657 gdbsrv_cv_have_sync_builtins
=no
10660 rm -f core conftest.err conftest.
$ac_objext \
10661 conftest
$ac_exeext conftest.
$ac_ext
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
10665 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
10666 if test "$gdbsrv_cv_have_sync_builtins" = yes; then
10668 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
10672 saved_cflags
="$CFLAGS"
10673 CFLAGS
="$CFLAGS -fvisibility=hidden"
10674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10685 if ac_fn_c_try_compile
"$LINENO"; then :
10686 gdbsrv_cv_have_visibility_hidden
=yes
10688 gdbsrv_cv_have_visibility_hidden
=no
10690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10691 CFLAGS
="$saved_cflags"
10696 # check whether to enable the inprocess agent
10697 if test "$ipa_obj" != "" \
10698 -a "$gdbsrv_cv_have_sync_builtins" = yes \
10699 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
10705 # Check whether --enable-inprocess-agent was given.
10706 if test "${enable_inprocess_agent+set}" = set; then :
10707 enableval
=$enable_inprocess_agent; case "$enableval" in
10708 yes) want_ipa
=true
;;
10709 no
) want_ipa
=false
;;
10710 *) as_fn_error $?
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
10717 if $want_ipa ; then
10718 if $have_ipa ; then
10719 IPA_DEPFILES
="$ipa_obj"
10720 extra_libraries
="$extra_libraries libinproctrace.so"
10722 as_fn_error $?
"inprocess agent not supported for this target" "$LINENO" 5
10733 GNULIB
=..
/gnulib
/import
10736 if test x
"$STDINT_H" != x
; then
10737 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
10741 ac_config_files
="$ac_config_files Makefile"
10744 cat >confcache
<<\_ACEOF
10745 # This file is a shell script that caches the results of configure
10746 # tests run on this system so they can be shared between configure
10747 # scripts and configure runs, see configure's option --config-cache.
10748 # It is not useful on other systems. If it contains results you don't
10749 # want to keep, you may remove or edit it.
10751 # config.status only pays attention to the cache file if you give it
10752 # the --recheck option to rerun configure.
10754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10756 # following values.
10760 # The following way of writing the cache mishandles newlines in values,
10761 # but we know of no workaround that is simple, portable, and efficient.
10762 # So, we kill variables containing newlines.
10763 # Ultrix sh set writes to stderr and can't be redirected directly,
10764 # and sets the high bit in the cache file unless we assign to the vars.
10766 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10767 eval ac_val
=\$
$ac_var
10771 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10775 _ | IFS | as_nl
) ;; #(
10776 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10777 *) { eval $ac_var=; unset $ac_var;} ;;
10783 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10784 *${as_nl}ac_space
=\
*)
10785 # `set' does not quote correctly, so add quotes: double-quote
10786 # substitution turns \\\\ into \\, and sed turns \\ into \.
10789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10792 # `set' quotes correctly as required by POSIX, so do not add quotes.
10793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10804 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10806 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10807 if test -w "$cache_file"; then
10808 if test "x$cache_file" != "x/dev/null"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10810 $as_echo "$as_me: updating cache $cache_file" >&6;}
10811 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10812 cat confcache
>"$cache_file"
10814 case $cache_file in #(
10816 mv -f confcache
"$cache_file"$$
&&
10817 mv -f "$cache_file"$$
"$cache_file" ;; #(
10819 mv -f confcache
"$cache_file" ;;
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10825 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10830 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10831 # Let make expand exec_prefix.
10832 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10834 DEFS
=-DHAVE_CONFIG_H
10839 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10840 # 1. Remove the extension, and $U if already installed.
10841 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10842 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10844 # will be set to the directory where LIBOBJS objects are built.
10845 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10846 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10848 LIBOBJS
=$ac_libobjs
10850 LTLIBOBJS
=$ac_ltlibobjs
10853 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10854 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
10855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10858 : "${CONFIG_STATUS=./config.status}"
10860 ac_clean_files_save
=$ac_clean_files
10861 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10863 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10865 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10867 # Generated by $as_me.
10868 # Run this file to recreate the current configuration.
10869 # Compiler output produced by configure, useful for debugging
10870 # configure, is in config.log if it exists.
10873 ac_cs_recheck=false
10876 SHELL=\${CONFIG_SHELL-$SHELL}
10879 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10880 ## -------------------- ##
10881 ## M4sh Initialization. ##
10882 ## -------------------- ##
10884 # Be more Bourne compatible
10885 DUALCASE
=1; export DUALCASE
# for MKS sh
10886 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10889 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10890 # is contrary to our usage. Disable this feature.
10891 alias -g '${1+"$@"}'='"$@"'
10892 setopt NO_GLOB_SUBST
10894 case `(set -o) 2>/dev/null` in #(
10906 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10907 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10908 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10910 # Prefer a ksh shell builtin over an external printf program on Solaris,
10911 # but without wasting forks for bash or zsh.
10912 if test -z "$BASH_VERSION$ZSH_VERSION" \
10913 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10914 as_echo='print
-r --'
10915 as_echo_n='print
-rn --'
10916 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10917 as_echo='printf %s
\n'
10918 as_echo_n='printf %s
'
10920 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10921 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10922 as_echo_n='/usr
/ucb
/echo -n'
10924 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10925 as_echo_n_body='eval
10929 expr "X$arg" : "X\\(.*\\)$as_nl";
10930 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10932 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10934 export as_echo_n_body
10935 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10937 export as_echo_body
10938 as_echo='sh
-c $as_echo_body as_echo
'
10941 # The user is always right.
10942 if test "${PATH_SEPARATOR+set}" != set; then
10944 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10945 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10952 # We need space, tab and new line, in precisely that order. Quoting is
10953 # there to prevent editors from complaining about space-tab.
10954 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10955 # splitting by setting IFS to empty value.)
10958 # Find who we are. Look in the path if we contain no directory separator.
10961 *[\\/]* ) as_myself=$0 ;;
10962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $PATH
10966 test -z "$as_dir" && as_dir=.
10967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10973 # We did not find ourselves, most probably we were run as `sh COMMAND'
10974 # in which case we are not to be found in the path.
10975 if test "x$as_myself" = x
; then
10978 if test ! -f "$as_myself"; then
10979 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10983 # Unset variables that we do not need and which cause bugs (e.g. in
10984 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10985 # suppresses any "Segmentation fault" message there. '((' could
10986 # trigger a bug in pdksh 5.2.14.
10987 for as_var
in BASH_ENV ENV MAIL MAILPATH
10988 do eval test x\
${$as_var+set} = xset \
10989 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11002 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11005 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11006 # ----------------------------------------
11007 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11008 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11009 # script with STATUS, using 1 if that was 0.
11012 as_status
=$1; test $as_status -eq 0 && as_status
=1
11014 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11015 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11017 $as_echo "$as_me: error: $2" >&2
11018 as_fn_exit
$as_status
11022 # as_fn_set_status STATUS
11023 # -----------------------
11024 # Set $? to STATUS, without forking.
11025 as_fn_set_status
()
11028 } # as_fn_set_status
11030 # as_fn_exit STATUS
11031 # -----------------
11032 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11036 as_fn_set_status
$1
11042 # Portably unset VAR.
11045 { eval $1=; unset $1;}
11047 as_unset
=as_fn_unset
11048 # as_fn_append VAR VALUE
11049 # ----------------------
11050 # Append the text in VALUE to the end of the definition contained in VAR. Take
11051 # advantage of any shell optimizations that allow amortized linear growth over
11052 # repeated appends, instead of the typical quadratic growth present in naive
11054 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11055 eval 'as_fn_append ()
11066 # as_fn_arith ARG...
11067 # ------------------
11068 # Perform arithmetic evaluation on the ARGs, and store the result in the
11069 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11070 # must be portable across $(()) and expr.
11071 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11072 eval 'as_fn_arith ()
11079 as_val
=`expr "$@" || test $? -eq 1`
11084 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11085 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11091 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11092 as_basename
=basename
11097 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11103 as_me
=`$as_basename -- "$0" ||
11104 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11105 X"$0" : 'X\(//\)$' \| \
11106 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11108 sed '/^.*\/\([^/][^/]*\)\/*$/{
11122 # Avoid depending upon Character Ranges.
11123 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11124 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11125 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11126 as_cr_digits
='0123456789'
11127 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11129 ECHO_C
= ECHO_N
= ECHO_T
=
11130 case `echo -n x` in #(((((
11132 case `echo 'xy\c'` in
11133 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11135 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11142 rm -f conf$$ conf$$.exe conf$$.
file
11143 if test -d conf$$.dir
; then
11144 rm -f conf$$.dir
/conf$$.
file
11147 mkdir conf$$.dir
2>/dev
/null
11149 if (echo >conf$$.
file) 2>/dev
/null
; then
11150 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11152 # ... but there are two gotchas:
11153 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11154 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11155 # In both cases, we have to default to `cp -pR'.
11156 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11158 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11166 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11167 rmdir conf$$.dir
2>/dev
/null
11172 # Create "$as_dir" as a directory, including parents if necessary.
11177 -*) as_dir
=.
/$as_dir;;
11179 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11183 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11184 *) as_qdir
=$as_dir;;
11186 as_dirs
="'$as_qdir' $as_dirs"
11187 as_dir
=`$as_dirname -- "$as_dir" ||
11188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11189 X"$as_dir" : 'X\(//\)[^/]' \| \
11190 X"$as_dir" : 'X\(//\)$' \| \
11191 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11192 $as_echo X"$as_dir" |
11193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11197 /^X\(\/\/\)[^/].*/{
11210 test -d "$as_dir" && break
11212 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11213 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11217 if mkdir
-p .
2>/dev
/null
; then
11218 as_mkdir_p
='mkdir -p "$as_dir"'
11220 test -d .
/-p && rmdir .
/-p
11225 # as_fn_executable_p FILE
11226 # -----------------------
11227 # Test if FILE is an executable regular file.
11228 as_fn_executable_p
()
11230 test -f "$1" && test -x "$1"
11231 } # as_fn_executable_p
11232 as_test_x
='test -x'
11233 as_executable_p
=as_fn_executable_p
11235 # Sed expression to map a string onto a valid CPP name.
11236 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11238 # Sed expression to map a string onto a valid variable name.
11239 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11243 ## ----------------------------------- ##
11244 ## Main body of $CONFIG_STATUS script. ##
11245 ## ----------------------------------- ##
11247 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11250 # Save the log message, to keep $0 and so on meaningful, and to
11251 # report actual input values of CONFIG_FILES etc. instead of their
11252 # values after options handling.
11254 This file was extended by $as_me, which was
11255 generated by GNU Autoconf 2.69. Invocation command line was
11257 CONFIG_FILES = $CONFIG_FILES
11258 CONFIG_HEADERS = $CONFIG_HEADERS
11259 CONFIG_LINKS = $CONFIG_LINKS
11260 CONFIG_COMMANDS = $CONFIG_COMMANDS
11263 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11268 case $ac_config_files in *"
11269 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11272 case $ac_config_headers in *"
11273 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11278 # Files that config.status was made for.
11279 config_files="$ac_config_files"
11280 config_headers="$ac_config_headers"
11281 config_commands="$ac_config_commands"
11285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11287 \`$as_me' instantiates files and other configuration actions
11288 from templates according to the current configuration. Unless the files
11289 and actions are specified as TAGs, all are instantiated by default.
11291 Usage: $0 [OPTION]... [TAG]...
11293 -h, --help print this help, then exit
11294 -V, --version print version number and configuration settings, then exit
11295 --config print configuration, then exit
11296 -q, --quiet, --silent
11297 do not print progress messages
11298 -d, --debug don't remove temporary files
11299 --recheck update $as_me by reconfiguring in the same conditions
11300 --file=FILE[:TEMPLATE]
11301 instantiate the configuration file FILE
11302 --header=FILE[:TEMPLATE]
11303 instantiate the configuration header FILE
11305 Configuration files:
11308 Configuration headers:
11311 Configuration commands:
11314 Report bugs to the package provider."
11317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11318 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11321 configured by $0, generated by GNU Autoconf 2.69,
11322 with options \\"\$ac_cs_config\\"
11324 Copyright (C) 2012 Free Software Foundation, Inc.
11325 This config.status script is free software; the Free Software Foundation
11326 gives unlimited permission to copy, distribute and modify it."
11331 test -n "\$AWK" || AWK=awk
11334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11335 # The default lists apply if the user does not specify any file.
11341 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11342 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11346 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11358 # Handling of the options.
11359 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11361 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11362 $as_echo "$ac_cs_version"; exit ;;
11363 --config |
--confi |
--conf |
--con |
--co |
--c )
11364 $as_echo "$ac_cs_config"; exit ;;
11365 --debug |
--debu |
--deb |
--de |
--d |
-d )
11367 --file |
--fil |
--fi |
--f )
11370 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11371 '') as_fn_error $?
"missing file argument" ;;
11373 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11374 ac_need_defaults
=false
;;
11375 --header |
--heade |
--head |
--hea )
11378 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11380 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11381 ac_need_defaults
=false
;;
11383 # Conflict between --help and --header
11384 as_fn_error $?
"ambiguous option: \`$1'
11385 Try \`$0 --help' for more information.";;
11386 --help |
--hel |
-h )
11387 $as_echo "$ac_cs_usage"; exit ;;
11388 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11389 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11392 # This is an error.
11393 -*) as_fn_error $?
"unrecognized option: \`$1'
11394 Try \`$0 --help' for more information." ;;
11396 *) as_fn_append ac_config_targets
" $1"
11397 ac_need_defaults
=false
;;
11403 ac_configure_extra_args
=
11405 if $ac_cs_silent; then
11407 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11412 if \$ac_cs_recheck; then
11413 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11415 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11416 CONFIG_SHELL='$SHELL'
11417 export CONFIG_SHELL
11422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11427 ## Running $as_me. ##
11433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11437 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
11438 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
11442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11444 # Handling of arguments.
11445 for ac_config_target
in $ac_config_targets
11447 case $ac_config_target in
11448 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11449 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
11450 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
11451 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11453 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11458 # If the user did not use the arguments to specify the items to instantiate,
11459 # then the envvar interface is used. Set only those that are not.
11460 # We use the long form for the default assignment because of an extremely
11461 # bizarre bug on SunOS 4.1.3.
11462 if $ac_need_defaults; then
11463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11465 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11468 # Have a temporary directory for convenience. Make it in the build tree
11469 # simply because there is no reason against having it here, and in addition,
11470 # creating and moving files from /tmp can sometimes cause problems.
11471 # Hook for its removal unless debugging.
11472 # Note that there is a small window in which the directory will not be cleaned:
11473 # after its creation but before its name has been assigned to `$tmp'.
11477 trap 'exit_status=$?
11478 : "${ac_tmp:=$tmp}"
11479 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11481 trap 'as_fn_exit 1' 1 2 13 15
11483 # Create a (secure) tmp directory for tmp files.
11486 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11490 tmp
=.
/conf$$
-$RANDOM
11491 (umask 077 && mkdir
"$tmp")
11492 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11495 # Set up the scripts for CONFIG_FILES section.
11496 # No need to generate them if there are no CONFIG_FILES.
11497 # This happens for instance with `./config.status config.h'.
11498 if test -n "$CONFIG_FILES"; then
11501 ac_cr
=`echo X | tr X '\015'`
11502 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11503 # But we know of no other shell where ac_cr would be empty at this
11504 # point, so we can use a bashism as a fallback.
11505 if test "x$ac_cr" = x
; then
11506 eval ac_cr
=\$
\'\\r
\'
11508 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11509 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11512 ac_cs_awk_cr
=$ac_cr
11515 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11520 echo "cat >conf$$subs.awk <<_ACEOF" &&
11521 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11523 } >conf$$subs.sh ||
11524 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11525 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11527 for ac_last_try in false false false false false :; do
11528 . ./conf$$subs.sh ||
11529 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11531 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11532 if test $ac_delim_n = $ac_delim_num; then
11534 elif $ac_last_try; then
11535 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11537 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11540 rm -f conf$$subs.sh
11542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11543 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11547 s/^/S["/; s
/!.
*/"]=/
11557 s/\(.\{148\}\)..*/\1/
11559 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11564 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11571 s/\(.\{148\}\)..*/\1/
11573 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11577 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11582 ' <conf$$subs.awk | sed '
11587 ' >>$CONFIG_STATUS || ac_write_fail=1
11588 rm -f conf$$subs.awk
11589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11591 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11592 for (key in S) S_is_set[key] = 1
11598 nfields = split(line, field, "@
")
11600 len = length(field[1])
11601 for (i = 2; i < nfields; i++) {
11603 keylen = length(key)
11604 if (S_is_set[key]) {
11606 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11607 len += length(value) + length(field[++i])
11618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11619 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11620 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11623 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11624 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11627 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11628 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11629 # trailing colons and then remove the whole line if VPATH becomes empty
11630 # (actually we leave an empty line to preserve line numbers).
11631 if test "x
$srcdir" = x.; then
11632 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11651 fi # test -n "$CONFIG_FILES"
11653 # Set up the scripts for CONFIG_HEADERS section.
11654 # No need to generate them if there are no CONFIG_HEADERS.
11655 # This happens for instance with `./config.status Makefile'.
11656 if test -n "$CONFIG_HEADERS"; then
11657 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11661 # Transform confdefs.h into an awk script `defines.awk', embedded as
11662 # here-document in config.status, that substitutes the proper values into
11663 # config.h.in to produce config.h.
11665 # Create a delimiter string that does not exist in confdefs.h, to ease
11666 # handling of long lines.
11668 for ac_last_try in false false :; do
11669 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11670 if test -z "$ac_tt"; then
11672 elif $ac_last_try; then
11673 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11675 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11679 # For the awk script, D is an array of macro values keyed by name,
11680 # likewise P contains macro parameters if any. Preserve backslash
11681 # newline sequences.
11683 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11685 s/.\{148\}/&'"$ac_delim"'/g
11688 s/^[ ]*#[ ]*define[ ][ ]*/ /
11695 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11697 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11702 D["\
1"]=" \
3\\\\\\n
"\\/p
11704 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11709 s/.\{148\}/&'"$ac_delim"'/g
11714 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11717 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11719 ' <confdefs.h | sed '
11720 s/'"$ac_delim"'/"\\\
11721 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11724 for (key in D) D_is_set[key] = 1
11727 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11729 split(line, arg, " ")
11730 if (arg[1] == "#") {
11734 defundef
= substr
(arg
[1], 2)
11737 split(mac1
, mac2
, "(") #)
11739 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11740 if (D_is_set
[macro
]) {
11741 # Preserve the white space surrounding the "#".
11742 print prefix
"define", macro P
[macro
] D
[macro
]
11745 # Replace #undef with comments. This is necessary, for example,
11746 # in the case of _POSIX_SOURCE, which is predefined and required
11747 # on some systems where configure will not decide to define it.
11748 if (defundef
== "undef") {
11749 print
"/*", prefix defundef
, macro
, "*/"
11757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11758 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11759 fi # test -n "$CONFIG_HEADERS"
11762 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11767 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11769 case $ac_mode$ac_tag in
11771 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11772 :[FH
]-) ac_tag
=-:-;;
11773 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11790 -) ac_f
="$ac_tmp/stdin";;
11791 *) # Look for the file first in the build tree, then in the source tree
11792 # (if the path is not absolute). The absolute path cannot be DOS-style,
11793 # because $ac_f cannot contain `:'.
11797 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11799 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11801 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11802 as_fn_append ac_file_inputs
" '$ac_f'"
11805 # Let's still pretend it is `configure' which instantiates (i.e., don't
11806 # use $as_me), people would be surprised to read:
11807 # /* config.h. Generated by config.status. */
11808 configure_input
='Generated from '`
11809 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11811 if test x
"$ac_file" != x-
; then
11812 configure_input
="$ac_file. $configure_input"
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11814 $as_echo "$as_me: creating $ac_file" >&6;}
11816 # Neutralize special characters interpreted by sed in replacement strings.
11817 case $configure_input in #(
11818 *\
&* |
*\|
* |
*\\* )
11819 ac_sed_conf_input
=`$as_echo "$configure_input" |
11820 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11821 *) ac_sed_conf_input
=$configure_input;;
11825 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11826 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11831 ac_dir
=`$as_dirname -- "$ac_file" ||
11832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11833 X"$ac_file" : 'X\(//\)[^/]' \| \
11834 X"$ac_file" : 'X\(//\)$' \| \
11835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11836 $as_echo X"$ac_file" |
11837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11841 /^X\(\/\/\)[^/].*/{
11854 as_dir
="$ac_dir"; as_fn_mkdir_p
11858 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11860 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11861 # A ".." for each directory in $ac_dir_suffix.
11862 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11863 case $ac_top_builddir_sub in
11864 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11865 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11868 ac_abs_top_builddir
=$ac_pwd
11869 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11870 # for backward compatibility:
11871 ac_top_builddir
=$ac_top_build_prefix
11874 .
) # We are building in place.
11876 ac_top_srcdir
=$ac_top_builddir_sub
11877 ac_abs_top_srcdir
=$ac_pwd ;;
11878 [\\/]* | ?
:[\\/]* ) # Absolute name.
11879 ac_srcdir
=$srcdir$ac_dir_suffix;
11880 ac_top_srcdir
=$srcdir
11881 ac_abs_top_srcdir
=$srcdir ;;
11882 *) # Relative name.
11883 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11884 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11885 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11887 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11897 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11898 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11903 # If the template does not know about datarootdir, expand it.
11904 # FIXME: This hack should be removed a few years after 2.60.
11905 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11916 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11917 *datarootdir
*) ac_datarootdir_seen
=yes;;
11918 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11920 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11923 ac_datarootdir_hack='
11924 s&@datadir@&$datadir&g
11925 s&@docdir@&$docdir&g
11926 s&@infodir@&$infodir&g
11927 s&@localedir@&$localedir&g
11928 s&@mandir@&$mandir&g
11929 s&\\\${datarootdir}&$datarootdir&g' ;;
11933 # Neutralize VPATH when `$srcdir' = `.'.
11934 # Shell code in configure.ac might set extrasub.
11935 # FIXME: do we really want to maintain this feature?
11936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11937 ac_sed_extra="$ac_vpsub
11940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11942 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11943 s|@configure_input@|
$ac_sed_conf_input|
;t t
11944 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11945 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11946 s
&@srcdir@
&$ac_srcdir&;t t
11947 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11948 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11949 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11950 s
&@builddir@
&$ac_builddir&;t t
11951 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11952 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11953 s
&@INSTALL@
&$ac_INSTALL&;t t
11954 $ac_datarootdir_hack
11956 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11957 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11959 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11960 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11962 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11964 which seems to be undefined. Please make sure it is defined" >&5
11965 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11966 which seems to be undefined. Please make sure it is defined" >&2;}
11968 rm -f "$ac_tmp/stdin"
11970 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11971 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11979 if test x"$ac_file" != x-; then
11981 $as_echo "/* $configure_input */" \
11982 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11983 } >"$ac_tmp/config.h" \
11984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11985 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11987 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11990 mv "$ac_tmp/config.h" "$ac_file" \
11991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11994 $as_echo "/* $configure_input */" \
11995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11996 || as_fn_error $? "could not create -" "$LINENO" 5
12000 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12001 $as_echo "$as_me: executing $ac_file commands" >&6;}
12006 case $ac_file$ac_mode in
12007 "config.h":H) echo > stamp-h ;;
12008 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
12010 for subdir in ${CONFIG_SRC_SUBDIR}
12012 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
12021 ac_clean_files=$ac_clean_files_save
12023 test $ac_write_fail = 0 ||
12024 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12027 # configure is writing to config.log, and then calls config.status.
12028 # config.status does its own redirection, appending to config.log.
12029 # Unfortunately, on DOS this fails, as config.log is still kept open
12030 # by configure, so config.status won't be able to
write to it
; its
12031 # output is simply discarded. So we exec the FD to /dev/null,
12032 # effectively closing config.log, so it can be properly (re)opened and
12033 # appended to by config.status. When coming back to configure, we
12034 # need to make the FD available again.
12035 if test "$no_create" != yes; then
12037 ac_config_status_args
=
12038 test "$silent" = yes &&
12039 ac_config_status_args
="$ac_config_status_args --quiet"
12041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12044 # would make configure fail if this is the last instruction.
12045 $ac_cs_success || as_fn_exit
1
12047 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12049 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}