2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gold 0.1.
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.
579 PACKAGE_TARNAME
='gold'
580 PACKAGE_VERSION
='0.1'
581 PACKAGE_STRING
='gold 0.1'
585 ac_unique_file
="gold.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
='am__EXEEXT_FALSE
627 MAINTAINER_MODE_FALSE
632 HAVE_NO_USE_LINKER_PLUGIN_FALSE
633 HAVE_NO_USE_LINKER_PLUGIN_TRUE
661 WARN_CFLAGS_FOR_BUILD
668 TLS_DESCRIPTORS_FALSE
670 TLS_GNU2_DIALECT_FALSE
671 TLS_GNU2_DIALECT_TRUE
679 CFLAGS_CF_PROTECTION_FALSE
680 CFLAGS_CF_PROTECTION_TRUE
685 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
686 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
689 NATIVE_OR_CROSS_LINKER_FALSE
690 NATIVE_OR_CROSS_LINKER_TRUE
728 DEFAULT_TARGET_MIPS_FALSE
729 DEFAULT_TARGET_MIPS_TRUE
730 DEFAULT_TARGET_TILEGX_FALSE
731 DEFAULT_TARGET_TILEGX_TRUE
732 DEFAULT_TARGET_X86_64_OR_X32_FALSE
733 DEFAULT_TARGET_X86_64_OR_X32_TRUE
734 DEFAULT_TARGET_X32_FALSE
735 DEFAULT_TARGET_X32_TRUE
736 DEFAULT_TARGET_X86_64_FALSE
737 DEFAULT_TARGET_X86_64_TRUE
738 DEFAULT_TARGET_S390_FALSE
739 DEFAULT_TARGET_S390_TRUE
740 DEFAULT_TARGET_SPARC_FALSE
741 DEFAULT_TARGET_SPARC_TRUE
742 DEFAULT_TARGET_POWERPC_FALSE
743 DEFAULT_TARGET_POWERPC_TRUE
744 DEFAULT_TARGET_I386_FALSE
745 DEFAULT_TARGET_I386_TRUE
746 DEFAULT_TARGET_ARM_FALSE
747 DEFAULT_TARGET_ARM_TRUE
748 DEFAULT_TARGET_AARCH64_FALSE
749 DEFAULT_TARGET_AARCH64_TRUE
786 INSTALL_STRIP_PROGRAM
840 program_transform_name
853 enable_option_checking
855 enable_dependency_tracking
861 enable_default_hash_style
871 enable_build_warnings
878 enable_maintainer_mode
880 ac_precious_vars
='build_alias
904 # Initialize some variables set by options.
906 ac_init_version
=false
907 ac_unrecognized_opts
=
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
918 program_transform_name
=s
,x
,x
,
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir
='${exec_prefix}/bin'
933 sbindir
='${exec_prefix}/sbin'
934 libexecdir
='${exec_prefix}/libexec'
935 datarootdir
='${prefix}/share'
936 datadir
='${datarootdir}'
937 sysconfdir
='${prefix}/etc'
938 sharedstatedir
='${prefix}/com'
939 localstatedir
='${prefix}/var'
940 includedir
='${prefix}/include'
941 oldincludedir
='/usr/include'
942 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir
='${datarootdir}/info'
948 libdir
='${exec_prefix}/lib'
949 localedir
='${datarootdir}/locale'
950 mandir
='${datarootdir}/man'
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\
$ac_option
964 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
975 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
977 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
980 -build |
--build |
--buil |
--bui |
--bu)
981 ac_prev
=build_alias
;;
982 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
983 build_alias
=$ac_optarg ;;
985 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
986 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
987 ac_prev
=cache_file
;;
988 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
989 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
990 cache_file
=$ac_optarg ;;
993 cache_file
=config.cache
;;
995 -datadir |
--datadir |
--datadi |
--datad)
997 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
998 datadir
=$ac_optarg ;;
1000 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1001 |
--dataroo |
--dataro |
--datar)
1002 ac_prev
=datarootdir
;;
1003 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1004 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1005 datarootdir
=$ac_optarg ;;
1007 -disable-* |
--disable-*)
1008 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1011 as_fn_error $?
"invalid feature name: $ac_useropt"
1012 ac_useropt_orig
=$ac_useropt
1013 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_
$ac_useropt"
1018 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019 ac_unrecognized_sep
=', ';;
1021 eval enable_
$ac_useropt=no
;;
1023 -docdir |
--docdir |
--docdi |
--doc |
--do)
1025 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1026 docdir
=$ac_optarg ;;
1028 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1030 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1031 dvidir
=$ac_optarg ;;
1033 -enable-* |
--enable-*)
1034 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1037 as_fn_error $?
"invalid feature name: $ac_useropt"
1038 ac_useropt_orig
=$ac_useropt
1039 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "enable_
$ac_useropt"
1044 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045 ac_unrecognized_sep
=', ';;
1047 eval enable_
$ac_useropt=\
$ac_optarg ;;
1049 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1050 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1051 |
--exec |
--exe |
--ex)
1052 ac_prev
=exec_prefix
;;
1053 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1054 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1055 |
--exec=* |
--exe=* |
--ex=*)
1056 exec_prefix
=$ac_optarg ;;
1058 -gas |
--gas |
--ga |
--g)
1059 # Obsolete; use --with-gas.
1062 -help |
--help |
--hel |
--he |
-h)
1063 ac_init_help
=long
;;
1064 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1065 ac_init_help
=recursive
;;
1066 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1067 ac_init_help
=short
;;
1069 -host |
--host |
--hos |
--ho)
1070 ac_prev
=host_alias
;;
1071 -host=* |
--host=* |
--hos=* |
--ho=*)
1072 host_alias
=$ac_optarg ;;
1074 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1076 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1078 htmldir
=$ac_optarg ;;
1080 -includedir |
--includedir |
--includedi |
--included |
--include \
1081 |
--includ |
--inclu |
--incl |
--inc)
1082 ac_prev
=includedir
;;
1083 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1084 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1085 includedir
=$ac_optarg ;;
1087 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1089 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1090 infodir
=$ac_optarg ;;
1092 -libdir |
--libdir |
--libdi |
--libd)
1094 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1095 libdir
=$ac_optarg ;;
1097 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1098 |
--libexe |
--libex |
--libe)
1099 ac_prev
=libexecdir
;;
1100 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1101 |
--libexe=* |
--libex=* |
--libe=*)
1102 libexecdir
=$ac_optarg ;;
1104 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1105 ac_prev
=localedir
;;
1106 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1107 localedir
=$ac_optarg ;;
1109 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1110 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1111 ac_prev
=localstatedir
;;
1112 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1113 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1114 localstatedir
=$ac_optarg ;;
1116 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1118 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1119 mandir
=$ac_optarg ;;
1121 -nfp |
--nfp |
--nf)
1122 # Obsolete; use --without-fp.
1125 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1126 |
--no-cr |
--no-c |
-n)
1129 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1130 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1133 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1134 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1135 |
--oldin |
--oldi |
--old |
--ol |
--o)
1136 ac_prev
=oldincludedir
;;
1137 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1138 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1139 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1140 oldincludedir
=$ac_optarg ;;
1142 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1144 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1145 prefix
=$ac_optarg ;;
1147 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1148 |
--program-pre |
--program-pr |
--program-p)
1149 ac_prev
=program_prefix
;;
1150 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1151 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1152 program_prefix
=$ac_optarg ;;
1154 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1155 |
--program-suf |
--program-su |
--program-s)
1156 ac_prev
=program_suffix
;;
1157 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1158 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1159 program_suffix
=$ac_optarg ;;
1161 -program-transform-name |
--program-transform-name \
1162 |
--program-transform-nam |
--program-transform-na \
1163 |
--program-transform-n |
--program-transform- \
1164 |
--program-transform |
--program-transfor \
1165 |
--program-transfo |
--program-transf \
1166 |
--program-trans |
--program-tran \
1167 |
--progr-tra |
--program-tr |
--program-t)
1168 ac_prev
=program_transform_name
;;
1169 -program-transform-name=* |
--program-transform-name=* \
1170 |
--program-transform-nam=* |
--program-transform-na=* \
1171 |
--program-transform-n=* |
--program-transform-=* \
1172 |
--program-transform=* |
--program-transfor=* \
1173 |
--program-transfo=* |
--program-transf=* \
1174 |
--program-trans=* |
--program-tran=* \
1175 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1176 program_transform_name
=$ac_optarg ;;
1178 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1180 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1181 pdfdir
=$ac_optarg ;;
1183 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1185 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1188 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1189 |
-silent |
--silent |
--silen |
--sile |
--sil)
1192 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1194 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1196 sbindir
=$ac_optarg ;;
1198 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1199 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1200 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1202 ac_prev
=sharedstatedir
;;
1203 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1204 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1205 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1207 sharedstatedir
=$ac_optarg ;;
1209 -site |
--site |
--sit)
1211 -site=* |
--site=* |
--sit=*)
1214 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1216 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1217 srcdir
=$ac_optarg ;;
1219 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1220 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1221 ac_prev
=sysconfdir
;;
1222 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1223 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1224 sysconfdir
=$ac_optarg ;;
1226 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1227 ac_prev
=target_alias
;;
1228 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1229 target_alias
=$ac_optarg ;;
1231 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1234 -version |
--version |
--versio |
--versi |
--vers |
-V)
1235 ac_init_version
=: ;;
1238 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1241 as_fn_error $?
"invalid package name: $ac_useropt"
1242 ac_useropt_orig
=$ac_useropt
1243 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1248 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep
=', ';;
1251 eval with_
$ac_useropt=\
$ac_optarg ;;
1253 -without-* |
--without-*)
1254 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1257 as_fn_error $?
"invalid package name: $ac_useropt"
1258 ac_useropt_orig
=$ac_useropt
1259 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265 ac_unrecognized_sep
=', ';;
1267 eval with_
$ac_useropt=no
;;
1270 # Obsolete; use --with-x.
1273 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1274 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1275 ac_prev
=x_includes
;;
1276 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1277 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1278 x_includes
=$ac_optarg ;;
1280 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1281 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1282 ac_prev
=x_libraries
;;
1283 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1284 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1285 x_libraries
=$ac_optarg ;;
1287 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1288 Try \`$0 --help' for more information"
1292 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 case $ac_envvar in #(
1295 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1296 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1298 eval $ac_envvar=\
$ac_optarg
1299 export $ac_envvar ;;
1302 # FIXME: should be removed in autoconf 3.0.
1303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1312 if test -n "$ac_prev"; then
1313 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1314 as_fn_error $?
"missing argument to $ac_option"
1317 if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1320 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 # Check all directory arguments for consistency.
1326 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1331 eval ac_val
=\$
$ac_var
1332 # Remove trailing slashes.
1335 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\
$ac_val;;
1338 # Be sure to have absolute directory names.
1340 [\\/$
]* | ?
:[\\/]* ) continue;;
1341 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1343 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1351 target
=$target_alias
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x
; then
1355 if test "x$build_alias" = x
; then
1356 cross_compiling
=maybe
1357 elif test "x$build_alias" != "x$host_alias"; then
1363 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1365 test "$silent" = yes && exec 6>/dev
/null
1368 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di
=`ls -di .` &&
1370 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $?
"working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $?
"pwd does not report name of working directory"
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted
=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir
=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1408 ac_srcdir_defaulted
=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1412 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1414 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1426 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 for ac_var
in $ac_precious_vars; do
1429 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1431 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1442 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1505 --build=BUILD configure
for building on BUILD
[guessed
]
1506 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1507 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1511 if test -n "$ac_init_help"; then
1512 case $ac_init_help in
1513 short | recursive
) echo "Configuration of gold 0.1:";;
1518 --disable-option-checking ignore unrecognized
--enable/--with options
1519 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1520 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1521 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1522 --disable-silent-rules verbose build output
(undo
: "make V=0")
1523 --enable-dependency-tracking
1524 do not reject slow dependency extractors
1525 --disable-dependency-tracking
1526 speeds up one-time build
1527 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1528 --enable-plugins Enable support
for plugins
1529 --enable-relro enable -z relro
in ELF linker by default
1530 --enable-targets alternative target configurations
1531 --enable-default-hash-style={sysv
,gnu
,both
}
1532 use this default
hash style
1533 --disable-nls do not use Native Language Support
1534 --disable-rpath do not hardcode runtime library paths
1535 --enable-werror treat compile warnings as errors
1536 --enable-build-warnings enable build-time compiler warnings
1537 --enable-threads[=ARG
] multi-threaded linking
[ARG
={auto
,yes,no
}]
1538 --enable-jansson enable jansson
[default
=no
]
1539 --enable-maintainer-mode
1540 enable make rules and dependencies not useful
(and
1541 sometimes confusing
) to the casual installer
1544 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1545 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1546 --with-sysroot=DIR search
for usr
/lib et al within DIR
1547 --with-lib-path=dir1
:dir2...
set default LIB_PATH
1548 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1549 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1550 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1551 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1552 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1553 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1554 --with-libintl-type=TYPE
type of library to search
for (auto
/static
/shared
)
1555 --with-gold-ldflags=FLAGS additional link flags
for gold
1556 --with-gold-ldadd=LIBS additional libraries
for gold
1557 --with-system-zlib use installed libz
1558 --with-zstd support zstd compressed debug sections
1561 Some influential environment variables
:
1562 CC C compiler
command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1565 nonstandard directory
<lib dir
>
1566 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1567 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1568 you have headers
in a nonstandard directory
<include dir
>
1570 CXX C
++ compiler
command
1571 CXXFLAGS C
++ compiler flags
1572 YACC The
`Yet Another Compiler Compiler' implementation to use.
1573 Defaults to the first program found out of: `bison
-y', `byacc',
1575 YFLAGS The list of arguments that will be passed by default to $YACC.
1576 This script will default YFLAGS to the empty string to avoid a
1577 default value of `-d' given by some make applications.
1578 PKG_CONFIG path to pkg-config utility
1580 directories to add to pkg-config's search path
1582 path overriding pkg-config
's built-in search path
1583 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1584 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1586 C compiler flags for JANSSON, overriding pkg-config
1588 linker flags for JANSSON, overriding pkg-config
1589 CXXCPP C++ preprocessor
1591 Use these variables to override the choices made by `configure' or to
help
1592 it to
find libraries and programs with nonstandard names
/locations.
1594 Report bugs to the package provider.
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1608 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1610 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1615 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1618 ac_abs_top_builddir
=$ac_pwd
1619 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir
=$ac_top_build_prefix
1624 .
) # We are building in place.
1626 ac_top_srcdir
=$ac_top_builddir_sub
1627 ac_abs_top_srcdir
=$ac_pwd ;;
1628 [\\/]* | ?
:[\\/]* ) # Absolute name.
1629 ac_srcdir
=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir
=$srcdir
1631 ac_abs_top_srcdir
=$srcdir ;;
1633 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1637 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1658 generated by GNU Autoconf
2.69
1660 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1661 This configure
script is free software
; the Free Software Foundation
1662 gives unlimited permission to copy
, distribute and modify it.
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile
()
1676 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1677 rm -f conftest.
$ac_objext
1678 if { { ac_try
="$ac_compile"
1680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1707 } # ac_fn_c_try_compile
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1718 *) ac_try_echo
=$ac_try;;
1720 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 if test -s conftest.err
; then
1725 grep -v '^ *+' conftest.err
>conftest.er1
1726 cat conftest.er1
>&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i
&& {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.
$ac_ext >&5
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status
$ac_retval
1746 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1749 # the include files in INCLUDES and setting the cache variable VAR
1751 ac_fn_c_check_header_mongrel
()
1753 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1754 if eval \
${$3+:} false
; then :
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \
${$3+:} false
; then :
1758 $as_echo_n "(cached) " >&6
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1764 # Is the header compilable?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1766 $as_echo_n "checking $2 usability... " >&6; }
1767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1772 if ac_fn_c_try_compile
"$LINENO"; then :
1773 ac_header_compiler
=yes
1775 ac_header_compiler
=no
1777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1779 $as_echo "$ac_header_compiler" >&6; }
1781 # Is the header present?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1783 $as_echo_n "checking $2 presence... " >&6; }
1784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1788 if ac_fn_c_try_cpp
"$LINENO"; then :
1789 ac_header_preproc
=yes
1791 ac_header_preproc
=no
1793 rm -f conftest.err conftest.i conftest.
$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1795 $as_echo "$ac_header_preproc" >&6; }
1797 # So? What about this header?
1798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1801 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1807 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1809 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1811 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1813 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \
${$3+:} false
; then :
1821 $as_echo_n "(cached) " >&6
1823 eval "$3=\$ac_header_compiler"
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 } # ac_fn_c_check_header_mongrel
1833 # ac_fn_c_try_run LINENO
1834 # ----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1836 # that executables *can* be run.
1839 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1840 if { { ac_try
="$ac_link"
1842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>&5
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851 { { case "(($ac_try" in
1852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1853 *) ac_try_echo
=$ac_try;;
1855 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_try") 2>&5
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; }; }; then :
1863 $as_echo "$as_me: program exited with status $ac_status" >&5
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.
$ac_ext >&5
1867 ac_retval
=$ac_status
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status
$ac_retval
1875 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists and can be compiled using the include files in
1878 # INCLUDES, setting the cache variable VAR accordingly.
1879 ac_fn_c_check_header_compile
()
1881 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \
${$3+:} false
; then :
1885 $as_echo_n "(cached) " >&6
1887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1892 if ac_fn_c_try_compile
"$LINENO"; then :
1897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 } # ac_fn_c_check_header_compile
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1911 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1912 rm -f conftest.
$ac_objext conftest
$ac_exeext
1913 if { { ac_try
="$ac_link"
1915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 test -x conftest$ac_exeext
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944 # interfere with the next link command; also delete a directory that is
1945 # left behind by Apple's compiler. We do this before executing the actions.
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1950 } # ac_fn_c_try_link
1952 # ac_fn_cxx_try_compile LINENO
1953 # ----------------------------
1954 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_compile ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 rm -f conftest.$ac_objext
1959 if { { ac_try="$ac_compile"
1961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1962 *) ac_try_echo
=$ac_try;;
1964 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_compile") 2>conftest.err
1968 if test -s conftest.err
; then
1969 grep -v '^ *+' conftest.err
>conftest.er1
1970 cat conftest.er1
>&5
1971 mv -f conftest.er1 conftest.err
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && {
1975 test -z "$ac_cxx_werror_flag" ||
1976 test ! -s conftest.err
1977 } && test -s conftest.
$ac_objext; then :
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.
$ac_ext >&5
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 as_fn_set_status
$ac_retval
1988 } # ac_fn_cxx_try_compile
1990 # ac_fn_c_check_func LINENO FUNC VAR
1991 # ----------------------------------
1992 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1993 ac_fn_c_check_func
()
1995 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \
${$3+:} false
; then :
1999 $as_echo_n "(cached) " >&6
2001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2005 #define $2 innocuous_$2
2007 /* System header to define __stub macros and hopefully few prototypes,
2008 which can conflict with char $2 (); below.
2009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010 <limits.h> exists even on freestanding compilers. */
2013 # include <limits.h>
2015 # include <assert.h>
2020 /* Override any GCC internal prototype to avoid an error.
2021 Use char because int might match the return type of a GCC
2022 builtin and then its argument prototype would still apply. */
2027 /* The GNU C library defines this for functions which it implements
2028 to always fail with ENOSYS. Some functions are actually named
2029 something starting with __ and the normal name is an alias. */
2030 #if defined __stub_$2 || defined __stub___$2
2042 if ac_fn_c_try_link
"$LINENO"; then :
2047 rm -f core conftest.err conftest.
$ac_objext \
2048 conftest
$ac_exeext conftest.
$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_func
2057 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2058 # ---------------------------------------------
2059 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2061 ac_fn_c_check_decl
()
2063 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2064 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2065 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2067 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2068 if eval \
${$3+:} false
; then :
2069 $as_echo_n "(cached) " >&6
2071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2077 #ifndef $as_decl_name
2079 (void) $as_decl_use;
2081 (void) $as_decl_name;
2089 if ac_fn_c_try_compile
"$LINENO"; then :
2094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 } # ac_fn_c_check_decl
2103 # ac_fn_cxx_try_cpp LINENO
2104 # ------------------------
2105 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_cxx_try_cpp
()
2108 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2109 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } > conftest.i && {
2125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2126 test ! -s conftest.err
2130 $as_echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2138 } # ac_fn_cxx_try_cpp
2140 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2141 # ---------------------------------------------------------
2142 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143 # the include files in INCLUDES and setting the cache variable VAR
2145 ac_fn_cxx_check_header_mongrel ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if eval \${$3+:} false; then :
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2158 # Is the header compilable?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160 $as_echo_n "checking $2 usability... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2166 if ac_fn_cxx_try_compile "$LINENO"; then :
2167 ac_header_compiler=yes
2169 ac_header_compiler=no
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173 $as_echo "$ac_header_compiler" >&6; }
2175 # Is the header present?
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177 $as_echo_n "checking $2 presence... " >&6; }
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2182 if ac_fn_cxx_try_cpp "$LINENO"; then :
2183 ac_header_preproc=yes
2185 ac_header_preproc=no
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189 $as_echo "$ac_header_preproc" >&6; }
2191 # So? What about this header?
2192 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2203 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2207 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if eval \${$3+:} false; then :
2215 $as_echo_n "(cached) " >&6
2217 eval "$3=\$ac_header_compiler"
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 } # ac_fn_cxx_check_header_mongrel
2227 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2228 # -----------------------------------------------
2229 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2231 ac_fn_cxx_check_decl ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2235 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2237 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2238 if eval \${$3+:} false; then :
2239 $as_echo_n "(cached) " >&6
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2247 #ifndef $as_decl_name
2249 (void) $as_decl_use;
2251 (void) $as_decl_name;
2259 if ac_fn_cxx_try_compile "$LINENO"; then :
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_cxx_check_decl
2273 # ac_fn_cxx_try_link LINENO
2274 # -------------------------
2275 # Try to link conftest.$ac_ext, and return whether this succeeded.
2276 ac_fn_cxx_try_link ()
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 rm -f conftest.$ac_objext conftest$ac_exeext
2280 if { { ac_try="$ac_link"
2282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2283 *) ac_try_echo
=$ac_try;;
2285 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_link") 2>conftest.err
2289 if test -s conftest.err
; then
2290 grep -v '^ *+' conftest.err
>conftest.er1
2291 cat conftest.er1
>&5
2292 mv -f conftest.er1 conftest.err
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; } && {
2296 test -z "$ac_cxx_werror_flag" ||
2297 test ! -s conftest.err
2298 } && test -s conftest
$ac_exeext && {
2299 test "$cross_compiling" = yes ||
2300 test -x conftest
$ac_exeext
2304 $as_echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.
$ac_ext >&5
2309 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2310 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2311 # interfere with the next link command; also delete a directory that is
2312 # left behind by Apple's compiler. We do this before executing the actions.
2313 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 as_fn_set_status
$ac_retval
2317 } # ac_fn_cxx_try_link
2319 # ac_fn_cxx_check_func LINENO FUNC VAR
2320 # ------------------------------------
2321 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2322 ac_fn_cxx_check_func
()
2324 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326 $as_echo_n "checking for $2... " >&6; }
2327 if eval \
${$3+:} false
; then :
2328 $as_echo_n "(cached) " >&6
2330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2332 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2334 #define $2 innocuous_$2
2336 /* System header to define __stub macros and hopefully few prototypes,
2337 which can conflict with char $2 (); below.
2338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2339 <limits.h> exists even on freestanding compilers. */
2342 # include <limits.h>
2344 # include <assert.h>
2349 /* Override any GCC internal prototype to avoid an error.
2350 Use char because int might match the return type of a GCC
2351 builtin and then its argument prototype would still apply. */
2356 /* The GNU C library defines this for functions which it implements
2357 to always fail with ENOSYS. Some functions are actually named
2358 something starting with __ and the normal name is an alias. */
2359 #if defined __stub_$2 || defined __stub___$2
2371 if ac_fn_cxx_try_link
"$LINENO"; then :
2376 rm -f core conftest.err conftest.
$ac_objext \
2377 conftest
$ac_exeext conftest.
$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384 } # ac_fn_cxx_check_func
2385 cat >config.log
<<_ACEOF
2386 This file contains any messages produced by compilers while
2387 running configure, to aid debugging if configure makes a mistake.
2389 It was created by gold $as_me 0.1, which was
2390 generated by GNU Autoconf 2.69. Invocation command line was
2402 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2403 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2404 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2405 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2406 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2408 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2409 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2411 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2412 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2413 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2414 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2415 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2416 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2417 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir
=.
2426 $as_echo "PATH: $as_dir"
2442 # Keep a trace of the command line.
2443 # Strip out --no-create and --no-recursion so they do not pile up.
2444 # Strip out --silent because we don't want to record it for future runs.
2445 # Also quote any args containing shell meta-characters.
2446 # Make two passes to allow for proper duplicate-argument suppression.
2450 ac_must_keep_next
=false
2456 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2457 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2458 |
-silent |
--silent |
--silen |
--sile |
--sil)
2461 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2464 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2466 as_fn_append ac_configure_args1
" '$ac_arg'"
2467 if test $ac_must_keep_next = true
; then
2468 ac_must_keep_next
=false
# Got value, back to normal.
2471 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2472 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2473 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2474 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2475 case "$ac_configure_args0 " in
2476 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2479 -* ) ac_must_keep_next
=true
;;
2482 as_fn_append ac_configure_args
" '$ac_arg'"
2487 { ac_configure_args0
=; unset ac_configure_args0
;}
2488 { ac_configure_args1
=; unset ac_configure_args1
;}
2490 # When interrupted or exit'd, cleanup temporary files, and complete
2491 # config.log. We remove comments because anyway the quotes in there
2492 # would cause problems or look ugly.
2493 # WARNING: Use '\'' to represent an apostrophe within the trap.
2494 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2495 trap 'exit_status=$?
2496 # Save into config.log some information that might help in debugging.
2500 $as_echo "## ---------------- ##
2501 ## Cache variables. ##
2502 ## ---------------- ##"
2504 # The following way of writing the cache mishandles newlines in values,
2506 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2507 eval ac_val=\$$ac_var
2511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2515 _ | IFS | as_nl) ;; #(
2516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2517 *) { eval $ac_var=; unset $ac_var;} ;;
2522 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2523 *${as_nl}ac_space=\ *)
2525 "s/'\''/'\''\\\\'\'''\''/g;
2526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2529 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2536 $as_echo "## ----------------- ##
2537 ## Output variables. ##
2538 ## ----------------- ##"
2540 for ac_var in $ac_subst_vars
2542 eval ac_val=\$$ac_var
2544 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2546 $as_echo "$ac_var='\''$ac_val'\''"
2550 if test -n "$ac_subst_files"; then
2551 $as_echo "## ------------------- ##
2552 ## File substitutions. ##
2553 ## ------------------- ##"
2555 for ac_var
in $ac_subst_files
2557 eval ac_val
=\$
$ac_var
2559 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2561 $as_echo "$ac_var='\''$ac_val'\''"
2566 if test -s confdefs.h; then
2567 $as_echo "## ----------- ##
2574 test "$ac_signal" != 0 &&
2575 $as_echo "$as_me: caught signal $ac_signal"
2576 $as_echo "$as_me: exit $exit_status"
2578 rm -f core *.core core.conftest.* &&
2579 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2582 for ac_signal
in 1 2 13 15; do
2583 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2587 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2588 rm -f -r conftest
* confdefs.h
2590 $as_echo "/* confdefs.h */" > confdefs.h
2592 # Predefined preprocessor variables.
2594 cat >>confdefs.h
<<_ACEOF
2595 #define PACKAGE_NAME "$PACKAGE_NAME"
2598 cat >>confdefs.h
<<_ACEOF
2599 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2602 cat >>confdefs.h
<<_ACEOF
2603 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2606 cat >>confdefs.h
<<_ACEOF
2607 #define PACKAGE_STRING "$PACKAGE_STRING"
2610 cat >>confdefs.h
<<_ACEOF
2611 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2614 cat >>confdefs.h
<<_ACEOF
2615 #define PACKAGE_URL "$PACKAGE_URL"
2619 # Let the site file select an alternate cache file if it wants to.
2620 # Prefer an explicitly selected file to automatically selected ones.
2623 if test -n "$CONFIG_SITE"; then
2624 # We do not want a PATH search for config.site.
2625 case $CONFIG_SITE in #((
2626 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2627 */*) ac_site_file1
=$CONFIG_SITE;;
2628 *) ac_site_file1
=.
/$CONFIG_SITE;;
2630 elif test "x$prefix" != xNONE
; then
2631 ac_site_file1
=$prefix/share
/config.site
2632 ac_site_file2
=$prefix/etc
/config.site
2634 ac_site_file1
=$ac_default_prefix/share
/config.site
2635 ac_site_file2
=$ac_default_prefix/etc
/config.site
2637 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2639 test "x$ac_site_file" = xNONE
&& continue
2640 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2642 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2643 sed 's/^/| /' "$ac_site_file" >&5
2645 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 as_fn_error $?
"failed to load site script $ac_site_file
2648 See \`config.log' for more details" "$LINENO" 5; }
2652 if test -r "$cache_file"; then
2653 # Some versions of bash will fail to source /dev/null (special files
2654 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2655 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2657 $as_echo "$as_me: loading cache $cache_file" >&6;}
2659 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2660 *) .
"./$cache_file";;
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2665 $as_echo "$as_me: creating cache $cache_file" >&6;}
2669 gt_needs
="$gt_needs "
2670 # Check that the precious variables saved in the cache have kept the same
2672 ac_cache_corrupted
=false
2673 for ac_var
in $ac_precious_vars; do
2674 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2675 eval ac_new_set
=\
$ac_env_${ac_var}_set
2676 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2677 eval ac_new_val
=\
$ac_env_${ac_var}_value
2678 case $ac_old_set,$ac_new_set in
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2681 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2682 ac_cache_corrupted
=: ;;
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2685 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2686 ac_cache_corrupted
=: ;;
2689 if test "x$ac_old_val" != "x$ac_new_val"; then
2690 # differences in whitespace do not lead to failure.
2691 ac_old_val_w
=`echo x $ac_old_val`
2692 ac_new_val_w
=`echo x $ac_new_val`
2693 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2695 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2696 ac_cache_corrupted
=:
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2699 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2700 eval $ac_var=\
$ac_old_val
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2703 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2705 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2708 # Pass precious variables to config.status.
2709 if test "$ac_new_set" = set; then
2711 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2712 *) ac_arg
=$ac_var=$ac_new_val ;;
2714 case " $ac_configure_args " in
2715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2716 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2720 if $ac_cache_corrupted; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2724 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2725 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2727 ## -------------------- ##
2728 ## Main body of script. ##
2729 ## -------------------- ##
2732 ac_cpp
='$CPP $CPPFLAGS'
2733 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2744 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2745 if test -f "$ac_dir/install-sh"; then
2747 ac_install_sh
="$ac_aux_dir/install-sh -c"
2749 elif test -f "$ac_dir/install.sh"; then
2751 ac_install_sh
="$ac_aux_dir/install.sh -c"
2753 elif test -f "$ac_dir/shtool"; then
2755 ac_install_sh
="$ac_aux_dir/shtool install -c"
2759 if test -z "$ac_aux_dir"; then
2760 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2763 # These three variables are undocumented and unsupported,
2764 # and are intended to be withdrawn in a future Autoconf release.
2765 # They can cause serious problems if a builder's source tree is in a directory
2766 # whose full name contains unusual characters.
2767 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2768 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2769 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2772 # Make sure we can run config.sub.
2773 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2774 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2777 $as_echo_n "checking build system type... " >&6; }
2778 if ${ac_cv_build+:} false
; then :
2779 $as_echo_n "(cached) " >&6
2781 ac_build_alias
=$build_alias
2782 test "x$ac_build_alias" = x
&&
2783 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2784 test "x$ac_build_alias" = x
&&
2785 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2786 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2787 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2791 $as_echo "$ac_cv_build" >&6; }
2792 case $ac_cv_build in
2794 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2797 ac_save_IFS
=$IFS; IFS
='-'
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2807 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2811 $as_echo_n "checking host system type... " >&6; }
2812 if ${ac_cv_host+:} false
; then :
2813 $as_echo_n "(cached) " >&6
2815 if test "x$host_alias" = x
; then
2816 ac_cv_host
=$ac_cv_build
2818 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2819 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2824 $as_echo "$ac_cv_host" >&6; }
2827 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2830 ac_save_IFS
=$IFS; IFS
='-'
2836 # Remember, the first character of IFS is used to create $*,
2837 # except with old shells:
2840 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2844 $as_echo_n "checking target system type... " >&6; }
2845 if ${ac_cv_target+:} false
; then :
2846 $as_echo_n "(cached) " >&6
2848 if test "x$target_alias" = x
; then
2849 ac_cv_target
=$ac_cv_host
2851 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2852 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2857 $as_echo "$ac_cv_target" >&6; }
2858 case $ac_cv_target in
2860 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2862 target
=$ac_cv_target
2863 ac_save_IFS
=$IFS; IFS
='-'
2869 # Remember, the first character of IFS is used to create $*,
2870 # except with old shells:
2873 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2876 # The aliases save the names the user supplied, while $host etc.
2877 # will get canonicalized.
2878 test -n "$target_alias" &&
2879 test "$program_prefix$program_suffix$program_transform_name" = \
2881 program_prefix
=${target_alias}-
2883 am__api_version
='1.15'
2885 # Find a good install program. We prefer a C program (faster),
2886 # so one script is as good as another. But avoid the broken or
2887 # incompatible versions:
2888 # SysV /etc/install, /usr/sbin/install
2889 # SunOS /usr/etc/install
2890 # IRIX /sbin/install
2892 # AmigaOS /C/install, which installs bootblocks on floppy discs
2893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2896 # OS/2's system install, which has a completely different semantic
2897 # ./install, which can be erroneously created by make from ./install.sh.
2898 # Reject install programs that cannot install multiple files.
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2900 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2901 if test -z "$INSTALL"; then
2902 if ${ac_cv_path_install+:} false
; then :
2903 $as_echo_n "(cached) " >&6
2905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir
=.
2910 # Account for people who put trailing slashes in PATH elements.
2911 case $as_dir/ in #((
2912 .
/ | .
// |
/[cC
]/* | \
2913 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2914 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2917 # OSF1 and SCO ODT 3.0 have their own names for install.
2918 # Don't use installbsd from OSF since it installs stuff as root
2920 for ac_prog
in ginstall scoinst
install; do
2921 for ac_exec_ext
in '' $ac_executable_extensions; do
2922 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2923 if test $ac_prog = install &&
2924 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2925 # AIX install. It has an incompatible calling convention.
2927 elif test $ac_prog = install &&
2928 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2929 # program-specific install script used by HP pwplus--don't use.
2932 rm -rf conftest.one conftest.two conftest.dir
2933 echo one
> conftest.one
2934 echo two
> conftest.two
2936 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2937 test -s conftest.one
&& test -s conftest.two
&&
2938 test -s conftest.dir
/conftest.one
&&
2939 test -s conftest.dir
/conftest.two
2941 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2954 rm -rf conftest.one conftest.two conftest.dir
2957 if test "${ac_cv_path_install+set}" = set; then
2958 INSTALL
=$ac_cv_path_install
2960 # As a last resort, use the slow shell script. Don't cache a
2961 # value for INSTALL within a source directory, because that will
2962 # break other packages using the cache if that directory is
2963 # removed, or if the value is a relative name.
2964 INSTALL
=$ac_install_sh
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2968 $as_echo "$INSTALL" >&6; }
2970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2971 # It thinks the first close brace ends the variable substitution.
2972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2976 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2979 $as_echo_n "checking whether build environment is sane... " >&6; }
2980 # Reject unsafe characters in $srcdir or the absolute working directory
2981 # name. Accept space and tab only in the latter.
2985 *[\\\"\
#\$\&\'\`$am_lf]*)
2986 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2989 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2990 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2993 # Do 'set' in a subshell so we don't clobber the current shell's
2994 # arguments. Must try -L first in case configure is actually a
2995 # symlink; some systems play weird games with the mod time of symlinks
2996 # (eg FreeBSD returns the mod time of the symlink's containing
3000 for am_try
in 1 2; do
3001 echo "timestamp, slept: $am_has_slept" > conftest.
file
3002 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3003 if test "$*" = "X"; then
3005 set X
`ls -t "$srcdir/configure" conftest.file`
3007 if test "$*" != "X $srcdir/configure conftest.file" \
3008 && test "$*" != "X conftest.file $srcdir/configure"; then
3010 # If neither matched, then we have a broken ls. This can happen
3011 # if, for instance, CONFIG_SHELL is bash and it inherits a
3012 # broken ls alias from the environment. This has actually
3013 # happened. Such a system could not be considered "sane".
3014 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3015 alias in your environment" "$LINENO" 5
3017 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3024 test "$2" = conftest.
file
3030 as_fn_error $?
"newly created file is older than distributed files!
3031 Check your system clock" "$LINENO" 5
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034 $as_echo "yes" >&6; }
3035 # If we didn't sleep, we still need to ensure time stamps of config.status and
3036 # generated files are strictly newer.
3038 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3045 test "$program_prefix" != NONE
&&
3046 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3047 # Use a double $ so make ignores it.
3048 test "$program_suffix" != NONE
&&
3049 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3050 # Double any \ or $.
3051 # By default was `s,x,x', remove it if useless.
3052 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3053 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3055 # Expand $ac_aux_dir to an absolute path.
3056 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3058 if test x
"${MISSING+set}" != xset
; then
3061 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3063 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3066 # Use eval to expand $SHELL
3067 if eval "$MISSING --is-lightweight"; then
3068 am_missing_run
="$MISSING "
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3072 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3075 if test x
"${install_sh+set}" != xset
; then
3078 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3080 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3084 # Installed binaries are usually stripped using 'strip' when the user
3085 # run "make install-strip". However 'strip' might not be the right
3086 # tool to use in cross-compilation environments, therefore Automake
3087 # will honor the 'STRIP' environment variable to overrule this program.
3088 if test "$cross_compiling" != no
; then
3089 if test -n "$ac_tool_prefix"; then
3090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3091 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_STRIP+:} false
; then :
3095 $as_echo_n "(cached) " >&6
3097 if test -n "$STRIP"; then
3098 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3104 test -z "$as_dir" && as_dir
=.
3105 for ac_exec_ext
in '' $ac_executable_extensions; do
3106 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 STRIP
=$ac_cv_prog_STRIP
3118 if test -n "$STRIP"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3120 $as_echo "$STRIP" >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3128 if test -z "$ac_cv_prog_STRIP"; then
3130 # Extract the first word of "strip", so it can be a program name with args.
3131 set dummy strip
; ac_word
=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$ac_ct_STRIP"; then
3138 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir
=.
3145 for ac_exec_ext
in '' $ac_executable_extensions; do
3146 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_ac_ct_STRIP
="strip"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3158 if test -n "$ac_ct_STRIP"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3160 $as_echo "$ac_ct_STRIP" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3166 if test "x$ac_ct_STRIP" = x
; then
3169 case $cross_compiling:$ac_tool_warned in
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned
=yes ;;
3178 STRIP
="$ac_cv_prog_STRIP"
3182 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3185 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3186 if test -z "$MKDIR_P"; then
3187 if ${ac_cv_path_mkdir+:} false
; then :
3188 $as_echo_n "(cached) " >&6
3190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3191 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3194 test -z "$as_dir" && as_dir
=.
3195 for ac_prog
in mkdir gmkdir
; do
3196 for ac_exec_ext
in '' $ac_executable_extensions; do
3197 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3198 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3199 'mkdir (GNU coreutils) '* | \
3200 'mkdir (coreutils) '* | \
3201 'mkdir (fileutils) '4.1*)
3202 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3212 test -d .
/--version && rmdir .
/--version
3213 if test "${ac_cv_path_mkdir+set}" = set; then
3214 MKDIR_P
="$ac_cv_path_mkdir -p"
3216 # As a last resort, use the slow shell script. Don't cache a
3217 # value for MKDIR_P within a source directory, because that will
3218 # break other packages using the cache if that directory is
3219 # removed, or if the value is a relative name.
3220 MKDIR_P
="$ac_install_sh -d"
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3224 $as_echo "$MKDIR_P" >&6; }
3226 for ac_prog
in gawk mawk nawk
awk
3228 # Extract the first word of "$ac_prog", so it can be a program name with args.
3229 set dummy
$ac_prog; ac_word
=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if ${ac_cv_prog_AWK+:} false
; then :
3233 $as_echo_n "(cached) " >&6
3235 if test -n "$AWK"; then
3236 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir
=.
3243 for ac_exec_ext
in '' $ac_executable_extensions; do
3244 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_AWK
="$ac_prog"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 if test -n "$AWK"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3258 $as_echo "$AWK" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3265 test -n "$AWK" && break
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3269 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3271 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3272 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3273 $as_echo_n "(cached) " >&6
3275 cat >conftest.
make <<\_ACEOF
3278 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3280 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3283 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3285 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3289 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 SET_MAKE
="MAKE=${MAKE-make}"
3299 rm -rf .tst
2>/dev
/null
3300 mkdir .tst
2>/dev
/null
3301 if test -d .tst
; then
3306 rmdir .tst
2>/dev
/null
3308 # Check whether --enable-silent-rules was given.
3309 if test "${enable_silent_rules+set}" = set; then :
3310 enableval
=$enable_silent_rules;
3313 case $enable_silent_rules in # (((
3314 yes) AM_DEFAULT_VERBOSITY
=0;;
3315 no
) AM_DEFAULT_VERBOSITY
=1;;
3316 *) AM_DEFAULT_VERBOSITY
=1;;
3318 am_make
=${MAKE-make}
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3320 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3321 if ${am_cv_make_support_nested_variables+:} false
; then :
3322 $as_echo_n "(cached) " >&6
3324 if $as_echo 'TRUE=$(BAR$(V))
3330 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3331 am_cv_make_support_nested_variables
=yes
3333 am_cv_make_support_nested_variables
=no
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3337 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3338 if test $am_cv_make_support_nested_variables = yes; then
3340 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3342 AM_V
=$AM_DEFAULT_VERBOSITY
3343 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3347 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3348 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3349 # is not polluted with repeated "-I."
3350 am__isrc
=' -I$(srcdir)'
3351 # test to see if srcdir already configured
3352 if test -f $srcdir/config.status
; then
3353 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3357 # test whether we have cygpath
3358 if test -z "$CYGPATH_W"; then
3359 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3360 CYGPATH_W
='cygpath -w'
3367 # Define the identity of the package.
3372 cat >>confdefs.h
<<_ACEOF
3373 #define PACKAGE "$PACKAGE"
3377 cat >>confdefs.h
<<_ACEOF
3378 #define VERSION "$VERSION"
3381 # Some tools Automake needs.
3383 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3386 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3389 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3392 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3395 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3397 # For better backward compatibility. To be removed once Automake 1.9.x
3398 # dies out for good. For more background, see:
3399 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3400 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3401 mkdir_p
='$(MKDIR_P)'
3403 # We need awk for the "check" target (and possibly the TAP driver). The
3404 # system "awk" is bad on some platforms.
3405 # Always define AMTAR for backward compatibility. Yes, it's still used
3406 # in the wild :-( We should find a proper way to deprecate it ...
3410 # We'll loop over all known methods to create a tar archive until one works.
3411 _am_tools
='gnutar pax cpio none'
3413 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3420 # POSIX will say in a future version that running "rm -f" with no argument
3421 # is OK; and we want to be able to make that assumption in our Makefile
3422 # recipes. So use an aggressive probe to check that the usage we want is
3423 # actually supported "in the wild" to an acceptable degree.
3424 # See automake bug#10828.
3425 # To make any issue more visible, cause the running configure to be aborted
3426 # by default if the 'rm' program in use doesn't match our expectations; the
3427 # user can still override this though.
3428 if rm -f && rm -fr && rm -rf; then : OK
; else
3432 Your 'rm' program seems unable to run without file operands specified
3433 on the command line, even when the '-f' option is present. This is contrary
3434 to the behaviour of most rm programs out there, and not conforming with
3435 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3437 Please tell bug-automake@gnu.org about your system, including the value
3438 of your $PATH and any error possibly output before this message. This
3439 can help us improve future automake versions.
3442 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3443 echo 'Configuration will proceed anyway, since you have set the' >&2
3444 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3448 Aborting the configuration process, to ensure you take notice of the issue.
3450 You can download and install GNU coreutils to get an 'rm' implementation
3451 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3453 If you want to complete the configuration process using your problematic
3454 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3455 to "yes", and re-run configure.
3458 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3462 # Check whether --enable-silent-rules was given.
3463 if test "${enable_silent_rules+set}" = set; then :
3464 enableval
=$enable_silent_rules;
3467 case $enable_silent_rules in # (((
3468 yes) AM_DEFAULT_VERBOSITY
=0;;
3469 no
) AM_DEFAULT_VERBOSITY
=1;;
3470 *) AM_DEFAULT_VERBOSITY
=0;;
3472 am_make
=${MAKE-make}
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3474 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3475 if ${am_cv_make_support_nested_variables+:} false
; then :
3476 $as_echo_n "(cached) " >&6
3478 if $as_echo 'TRUE=$(BAR$(V))
3484 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3485 am_cv_make_support_nested_variables
=yes
3487 am_cv_make_support_nested_variables
=no
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3491 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3492 if test $am_cv_make_support_nested_variables = yes; then
3494 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3496 AM_V
=$AM_DEFAULT_VERBOSITY
3497 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3502 ac_config_headers="$ac_config_headers config.h:config.in"
3505 DEPDIR="${am__leading_dot}deps"
3507 ac_config_commands="$ac_config_commands depfiles"
3510 am_make=${MAKE-make}
3511 cat > confinc << 'END
'
3513 @echo this is the am__doit target
3516 # If we don't
find an include directive
, just comment out the code.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3518 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3522 # First try GNU make style include.
3523 echo "include confinc" > confmf
3524 # Ignore all kinds of additional output from 'make'.
3525 case `$am_make -s -f confmf 2> /dev/null` in #(
3526 *the\ am__doit\ target
*)
3532 # Now try BSD make style include.
3533 if test "$am__include" = "#"; then
3534 echo '.include "confinc"' > confmf
3535 case `$am_make -s -f confmf 2> /dev/null` in #(
3536 *the\ am__doit\ target
*)
3537 am__include
=.include
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3546 $as_echo "$_am_result" >&6; }
3547 rm -f confinc confmf
3549 # Check whether --enable-dependency-tracking was given.
3550 if test "${enable_dependency_tracking+set}" = set; then :
3551 enableval
=$enable_dependency_tracking;
3554 if test "x$enable_dependency_tracking" != xno
; then
3555 am_depcomp
="$ac_aux_dir/depcomp"
3559 if test "x$enable_dependency_tracking" != xno; then
3569 ac_cpp
='$CPP $CPPFLAGS'
3570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3573 if test -n "$ac_tool_prefix"; then
3574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3575 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_CC+:} false
; then :
3579 $as_echo_n "(cached) " >&6
3581 if test -n "$CC"; then
3582 ac_cv_prog_CC
="$CC" # Let the user override the test.
3584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3588 test -z "$as_dir" && as_dir
=.
3589 for ac_exec_ext
in '' $ac_executable_extensions; do
3590 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 if test -n "$CC"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604 $as_echo "$CC" >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3612 if test -z "$ac_cv_prog_CC"; then
3614 # Extract the first word of "gcc", so it can be a program name with args.
3615 set dummy gcc
; ac_word
=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3619 $as_echo_n "(cached) " >&6
3621 if test -n "$ac_ct_CC"; then
3622 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3628 test -z "$as_dir" && as_dir
=.
3629 for ac_exec_ext
in '' $ac_executable_extensions; do
3630 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_ac_ct_CC
="gcc"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 $as_echo "$ac_ct_CC" >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3650 if test "x$ac_ct_CC" = x
; then
3653 case $cross_compiling:$ac_tool_warned in
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned
=yes ;;
3665 if test -z "$CC"; then
3666 if test -n "$ac_tool_prefix"; then
3667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3668 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if ${ac_cv_prog_CC+:} false
; then :
3672 $as_echo_n "(cached) " >&6
3674 if test -n "$CC"; then
3675 ac_cv_prog_CC
="$CC" # Let the user override the test.
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir
=.
3682 for ac_exec_ext
in '' $ac_executable_extensions; do
3683 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3684 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 if test -n "$CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697 $as_echo "$CC" >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 # Extract the first word of "cc", so it can be a program name with args.
3708 set dummy cc
; ac_word
=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false
; then :
3712 $as_echo_n "(cached) " >&6
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC
="$CC" # Let the user override the test.
3718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3722 test -z "$as_dir" && as_dir
=.
3723 for ac_exec_ext
in '' $ac_executable_extensions; do
3724 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3726 ac_prog_rejected
=yes
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 if test $ac_prog_rejected = yes; then
3738 # We found a bogon in the path, so make sure we never use it.
3739 set dummy
$ac_cv_prog_CC
3741 if test $# != 0; then
3742 # We chose a different compiler from the bogus one.
3743 # However, it has the same basename, so the bogon will be chosen
3744 # first if we set CC to just the basename; use the full file name.
3746 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3752 if test -n "$CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 $as_echo "$CC" >&6; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3762 if test -z "$CC"; then
3763 if test -n "$ac_tool_prefix"; then
3764 for ac_prog
in cl.exe
3766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3767 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if ${ac_cv_prog_CC+:} false
; then :
3771 $as_echo_n "(cached) " >&6
3773 if test -n "$CC"; then
3774 ac_cv_prog_CC
="$CC" # Let the user override the test.
3776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3780 test -z "$as_dir" && as_dir
=.
3781 for ac_exec_ext
in '' $ac_executable_extensions; do
3782 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3803 test -n "$CC" && break
3806 if test -z "$CC"; then
3808 for ac_prog
in cl.exe
3810 # Extract the first word of "$ac_prog", so it can be a program name with args.
3811 set dummy
$ac_prog; ac_word
=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3815 $as_echo_n "(cached) " >&6
3817 if test -n "$ac_ct_CC"; then
3818 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir
=.
3825 for ac_exec_ext
in '' $ac_executable_extensions; do
3826 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_ac_ct_CC
="$ac_prog"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 $as_echo "$ac_ct_CC" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3847 test -n "$ac_ct_CC" && break
3850 if test "x$ac_ct_CC" = x
; then
3853 case $cross_compiling:$ac_tool_warned in
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3857 ac_tool_warned
=yes ;;
3866 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $?
"no acceptable C compiler found in \$PATH
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 # Provide some information about the compiler.
3872 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3875 for ac_option
in --version -v -V -qversion; do
3876 { { ac_try
="$ac_compiler $ac_option >&5"
3878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3885 if test -s conftest.err; then
3887 ... rest of stderr output deleted ...
3888 10q' conftest.err >conftest.er1
3889 cat conftest.er1 >&5
3891 rm -f conftest.er1 conftest.err
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3920 for ac_file in $ac_files
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3929 if { { ac_try="$ac_link_default"
3931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3932 *) ac_try_echo
=$ac_try;;
3934 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_link_default") 2>&5
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3941 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3942 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3943 # so that the user can short-circuit this test for compilers unknown to
3945 for ac_file
in $ac_files ''
3947 test -f "$ac_file" ||
continue
3949 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3952 # We found the default executable, but exeext='' is most
3956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3958 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 # We set ac_cv_exeext here because the later test for it is not
3961 # safe: cross compilers may not add the suffix if given an `-o'
3962 # argument, so we may need to know it at that point already.
3963 # Even if this section looks crufty: it has the advantage of
3970 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3975 if test -z "$ac_file"; then :
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.
$ac_ext >&5
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error
77 "C compiler cannot create executables
3984 See \`config.log' for more details" "$LINENO" 5; }
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987 $as_echo "yes" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3990 $as_echo_n "checking for C compiler default output file name... " >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3992 $as_echo "$ac_file" >&6; }
3993 ac_exeext
=$ac_cv_exeext
3995 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3996 ac_clean_files
=$ac_clean_files_save
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998 $as_echo_n "checking for suffix of executables... " >&6; }
3999 if { { ac_try
="$ac_link"
4001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_link") 2>&5
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; then :
4010 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4011 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4012 # work properly (i.e., refer to `conftest.exe'), while it won't with
4014 for ac_file
in conftest.exe conftest conftest.
*; do
4015 test -f "$ac_file" ||
continue
4017 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4018 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4027 See \`config.log' for more details" "$LINENO" 5; }
4029 rm -f conftest conftest
$ac_cv_exeext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031 $as_echo "$ac_cv_exeext" >&6; }
4033 rm -f conftest.
$ac_ext
4034 EXEEXT
=$ac_cv_exeext
4036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4042 FILE *f = fopen ("conftest.out", "w");
4043 return ferror (f) || fclose (f) != 0;
4049 ac_clean_files
="$ac_clean_files conftest.out"
4050 # Check that the compiler produces executables we can run. If not, either
4051 # the compiler is broken, or we cross compile.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4053 $as_echo_n "checking whether we are cross compiling... " >&6; }
4054 if test "$cross_compiling" != yes; then
4055 { { ac_try
="$ac_link"
4057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062 (eval "$ac_link") 2>&5
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }
4066 if { ac_try='./conftest$ac_cv_exeext'
4067 { { case "(($ac_try" in
4068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4069 *) ac_try_echo
=$ac_try;;
4071 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_try") 2>&5
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; }; then
4079 if test "$cross_compiling" = maybe
; then
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error $?
"cannot run C compiled programs.
4085 If you meant to cross compile, use \`--host'.
4086 See \`config.log' for more details" "$LINENO" 5; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4091 $as_echo "$cross_compiling" >&6; }
4093 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4094 ac_clean_files
=$ac_clean_files_save
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4096 $as_echo_n "checking for suffix of object files... " >&6; }
4097 if ${ac_cv_objext+:} false
; then :
4098 $as_echo_n "(cached) " >&6
4100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4111 rm -f conftest.o conftest.obj
4112 if { { ac_try
="$ac_compile"
4114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119 (eval "$ac_compile") 2>&5
4121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }; then :
4123 for ac_file in conftest.o conftest.obj conftest.*; do
4124 test -f "$ac_file" || continue;
4126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4132 $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4138 See \
`config.log' for more details" "$LINENO" 5; }
4140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4143 $as_echo "$ac_cv_objext" >&6; }
4144 OBJEXT=$ac_cv_objext
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4147 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4148 if ${ac_cv_c_compiler_gnu+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4165 if ac_fn_c_try_compile "$LINENO"; then :
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4176 if test $ac_compiler_gnu = yes; then
4181 ac_test_CFLAGS=${CFLAGS+set}
4182 ac_save_CFLAGS=$CFLAGS
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4184 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4185 if ${ac_cv_prog_cc_g+:} false; then :
4186 $as_echo_n "(cached) " >&6
4188 ac_save_c_werror_flag=$ac_c_werror_flag
4189 ac_c_werror_flag=yes
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4203 if ac_fn_c_try_compile "$LINENO"; then :
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4218 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_c_werror_flag=$ac_save_c_werror_flag
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4234 if ac_fn_c_try_compile "$LINENO"; then :
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_c_werror_flag=$ac_save_c_werror_flag
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4245 $as_echo "$ac_cv_prog_cc_g" >&6; }
4246 if test "$ac_test_CFLAGS" = set; then
4247 CFLAGS=$ac_save_CFLAGS
4248 elif test $ac_cv_prog_cc_g = yes; then
4249 if test "$GCC" = yes; then
4255 if test "$GCC" = yes; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4262 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4263 if ${ac_cv_prog_cc_c89+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 ac_cv_prog_cc_c89=no
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4274 struct buf { int x; };
4275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4276 static char *e (p, i)
4282 static char *f (char * (*g) (char **, int), char **p, ...)
4287 s = g (p, va_arg (v,int));
4292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4293 function prototypes and stuff, but not '\xHH' hex character constants.
4294 These don't provoke an error unfortunately, instead are silently treated
4295 as 'x'. The following induces an error, until -std is added to get
4296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4297 array size at least. It's necessary to write '\x00'==0 to get something
4298 that's true only with -std. */
4299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4302 inside strings and character constants. */
4304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4306 int test (int i, double x);
4307 struct s1 {int (*f) (int a);};
4308 struct s2 {int (*f) (double a);};
4309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323 CC="$ac_save_CC $ac_arg"
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_prog_cc_c89=$ac_arg
4327 rm -f core conftest.err conftest.$ac_objext
4328 test "x$ac_cv_prog_cc_c89" != "xno" && break
4330 rm -f conftest.$ac_ext
4335 case "x$ac_cv_prog_cc_c89" in
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4338 $as_echo "none needed" >&6; } ;;
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4341 $as_echo "unsupported" >&6; } ;;
4343 CC="$CC $ac_cv_prog_cc_c89"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4345 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4347 if test "x$ac_cv_prog_cc_c89" != xno; then :
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4363 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4364 if ${am_cv_prog_cc_c_o+:} false; then :
4365 $as_echo_n "(cached) " >&6
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4378 # Make sure it works both with $CC and with simple cc.
4379 # Following AC_PROG_CC_C_O, we do the test twice because some
4380 # compilers refuse to overwrite an existing .o file with -o,
4381 # though they will create one.
4382 am_cv_prog_cc_c_o=yes
4384 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4385 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } \
4389 && test -f conftest2.$ac_objext; then
4392 am_cv_prog_cc_c_o=no
4396 rm -f core conftest*
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4400 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4401 if test "$am_cv_prog_cc_c_o" != yes; then
4402 # Losing compiler, so override with the script.
4403 # FIXME: It is wrong to rewrite CC.
4404 # But if we don't then we get into trouble of one sort or another.
4405 # A longer-term fix would be to have automake use am__CC in this case,
4406 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4407 CC="$am_aux_dir/compile $CC"
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 depcc="$CC" am_compiler_list=
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4419 $as_echo_n "checking dependency style of $depcc... " >&6; }
4420 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4424 # We make a subdir and do the tests there. Otherwise we can end up
4425 # making bogus files that we don't know about and never remove. For
4426 # instance it was reported that on HP-UX the gcc test will end up
4427 # making a dummy file named 'D' -- because '-MD' means "put the output
4431 # Copy depcomp to subdir because otherwise we won't find it if we're
4432 # using a relative directory.
4433 cp "$am_depcomp" conftest.dir
4435 # We will build objects and dependencies in a subdirectory because
4436 # it helps to detect inapplicable dependency modes. For instance
4437 # both Tru64's cc and ICC support -MD to output dependencies as a
4438 # side effect of compilation, but ICC will put the dependencies in
4439 # the current directory while Tru64 will put them in the object
4443 am_cv_CC_dependencies_compiler_type=none
4444 if test "$am_compiler_list" = ""; then
4445 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4448 case " $depcc " in #(
4449 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4452 for depmode in $am_compiler_list; do
4453 # Setup a source with many dependencies, because some compilers
4454 # like to wrap large dependency lists on column 80 (with \), and
4455 # we should not choose a depcomp mode which is confused by this.
4457 # We need to recreate these files for each test, as the compiler may
4458 # overwrite some of them when testing with obscure command lines.
4459 # This happens at least with the AIX C compiler.
4461 for i in 1 2 3 4 5 6; do
4462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4463 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4464 # Solaris 10 /bin/sh.
4465 echo '/* dummy */' > sub/conftst$i.h
4467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4469 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4470 # mode. It turns out that the SunPro C++ compiler does not properly
4471 # handle '-M -o', and we need to detect this. Also, some Intel
4472 # versions had trouble with output in subdirs.
4473 am__obj=sub/conftest.${OBJEXT-o}
4474 am__minus_obj="-o $am__obj"
4477 # This depmode causes a compiler race in universal mode.
4478 test "$am__universal" = false || continue
4481 # After this tag, mechanisms are not by side-effect, so they'll
4482 # only be used when explicitly requested.
4483 if test "x$enable_dependency_tracking" = xyes; then
4489 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4490 # This compiler won't grok '-c -o', but also, the minuso test has
4491 # not run yet. These depmodes are late enough in the game, and
4492 # so weak that their functioning should not be impacted.
4493 am__obj=conftest.${OBJEXT-o}
4498 if depmode=$depmode \
4499 source=sub/conftest.c object=$am__obj \
4500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4501 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4502 >/dev/null 2>conftest.err &&
4503 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4504 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4505 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4506 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4507 # icc doesn't choke on unknown options, it will just issue warnings
4508 # or remarks (even with -Werror). So we grep stderr for any message
4509 # that says an option was ignored or not supported.
4510 # When given -MP, icc 7.0 and 7.1 complain thusly:
4511 # icc: Command line warning: ignoring option '-M'; no argument required
4512 # The diagnosis changed in icc 8.0:
4513 # icc: Command line remark: option '-MP' not supported
4514 if (grep 'ignoring option' conftest.err ||
4515 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4516 am_cv_CC_dependencies_compiler_type=$depmode
4525 am_cv_CC_dependencies_compiler_type=none
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4530 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4531 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4534 test "x$enable_dependency_tracking" != xno \
4535 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4537 am__fastdepCC_FALSE='#'
4539 am__fastdepCC_TRUE='#'
4540 am__fastdepCC_FALSE=
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4552 # On Suns, sometimes $CPP names a directory.
4553 if test -n "$CPP" && test -d "$CPP"; then
4556 if test -z "$CPP"; then
4557 if ${ac_cv_prog_CPP+:} false; then :
4558 $as_echo_n "(cached) " >&6
4560 # Double quotes because CPP needs to be expanded
4561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4564 for ac_c_preproc_warn_flag in '' yes
4566 # Use a header file that comes with gcc, so configuring glibc
4567 # with a fresh cross-compiler works.
4568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569 # <limits.h> exists even on freestanding compilers.
4570 # On the NeXT, cc -E runs the code through the compiler's parser,
4571 # not just through cpp. "Syntax error" is here to catch this case.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4575 # include <limits.h>
4577 # include <assert.h>
4581 if ac_fn_c_try_cpp "$LINENO"; then :
4584 # Broken: fails on valid input.
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4589 # OK, works on sane cases. Now check whether nonexistent headers
4590 # can be detected and how.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <ac_nonexistent.h>
4595 if ac_fn_c_try_cpp "$LINENO"; then :
4596 # Broken: success on invalid input.
4599 # Passes both tests.
4603 rm -f conftest.err conftest.i conftest.$ac_ext
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.i conftest.err conftest.
$ac_ext
4608 if $ac_preproc_ok; then :
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4621 $as_echo "$CPP" >&6; }
4623 for ac_c_preproc_warn_flag
in '' yes
4625 # Use a header file that comes with gcc, so configuring glibc
4626 # with a fresh cross-compiler works.
4627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4628 # <limits.h> exists even on freestanding compilers.
4629 # On the NeXT, cc -E runs the code through the compiler's parser,
4630 # not just through cpp. "Syntax error" is here to catch this case.
4631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4634 # include <limits.h>
4636 # include <assert.h>
4640 if ac_fn_c_try_cpp
"$LINENO"; then :
4643 # Broken: fails on valid input.
4646 rm -f conftest.err conftest.i conftest.
$ac_ext
4648 # OK, works on sane cases. Now check whether nonexistent headers
4649 # can be detected and how.
4650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #include <ac_nonexistent.h>
4654 if ac_fn_c_try_cpp
"$LINENO"; then :
4655 # Broken: success on invalid input.
4658 # Passes both tests.
4662 rm -f conftest.err conftest.i conftest.
$ac_ext
4665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4666 rm -f conftest.i conftest.err conftest.
$ac_ext
4667 if $ac_preproc_ok; then :
4670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4672 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4673 See \`config.log' for more details" "$LINENO" 5; }
4677 ac_cpp
='$CPP $CPPFLAGS'
4678 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4684 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4685 if ${ac_cv_path_GREP+:} false
; then :
4686 $as_echo_n "(cached) " >&6
4688 if test -z "$GREP"; then
4689 ac_path_GREP_found
=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4692 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4695 test -z "$as_dir" && as_dir
=.
4696 for ac_prog
in grep ggrep
; do
4697 for ac_exec_ext
in '' $ac_executable_extensions; do
4698 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4699 as_fn_executable_p
"$ac_path_GREP" ||
continue
4700 # Check for GNU ac_path_GREP and select it if it is found.
4701 # Check for GNU $ac_path_GREP
4702 case `"$ac_path_GREP" --version 2>&1` in
4704 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4707 $as_echo_n 0123456789 >"conftest.in"
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo 'GREP' >> "conftest.nl"
4714 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4715 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4716 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4717 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_GREP
="$ac_path_GREP"
4720 ac_path_GREP_max
=$ac_count
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4725 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4728 $ac_path_GREP_found && break 3
4733 if test -z "$ac_cv_path_GREP"; then
4734 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4737 ac_cv_path_GREP
=$GREP
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4742 $as_echo "$ac_cv_path_GREP" >&6; }
4743 GREP
="$ac_cv_path_GREP"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4747 $as_echo_n "checking for egrep... " >&6; }
4748 if ${ac_cv_path_EGREP+:} false
; then :
4749 $as_echo_n "(cached) " >&6
4751 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4752 then ac_cv_path_EGREP
="$GREP -E"
4754 if test -z "$EGREP"; then
4755 ac_path_EGREP_found
=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4758 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4761 test -z "$as_dir" && as_dir
=.
4762 for ac_prog
in egrep; do
4763 for ac_exec_ext
in '' $ac_executable_extensions; do
4764 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4765 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4766 # Check for GNU ac_path_EGREP and select it if it is found.
4767 # Check for GNU $ac_path_EGREP
4768 case `"$ac_path_EGREP" --version 2>&1` in
4770 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4773 $as_echo_n 0123456789 >"conftest.in"
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
4779 $as_echo 'EGREP' >> "conftest.nl"
4780 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4781 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4782 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4783 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_EGREP
="$ac_path_EGREP"
4786 ac_path_EGREP_max
=$ac_count
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4791 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4794 $ac_path_EGREP_found && break 3
4799 if test -z "$ac_cv_path_EGREP"; then
4800 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4803 ac_cv_path_EGREP
=$EGREP
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4809 $as_echo "$ac_cv_path_EGREP" >&6; }
4810 EGREP
="$ac_cv_path_EGREP"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4814 $as_echo_n "checking for ANSI C header files... " >&6; }
4815 if ${ac_cv_header_stdc+:} false
; then :
4816 $as_echo_n "(cached) " >&6
4818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4833 if ac_fn_c_try_compile
"$LINENO"; then :
4834 ac_cv_header_stdc
=yes
4836 ac_cv_header_stdc
=no
4838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4840 if test $ac_cv_header_stdc = yes; then
4841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4848 $EGREP "memchr" >/dev
/null
2>&1; then :
4851 ac_cv_header_stdc
=no
4857 if test $ac_cv_header_stdc = yes; then
4858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 $EGREP "free" >/dev
/null
2>&1; then :
4868 ac_cv_header_stdc
=no
4874 if test $ac_cv_header_stdc = yes; then
4875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4876 if test "$cross_compiling" = yes; then :
4879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4883 #if ((' ' & 0x0FF) == 0x020)
4884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4887 # define ISLOWER(c) \
4888 (('a' <= (c) && (c) <= 'i') \
4889 || ('j' <= (c) && (c) <= 'r') \
4890 || ('s' <= (c) && (c) <= 'z'))
4891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4899 for (i = 0; i < 256; i++)
4900 if (XOR (islower (i), ISLOWER (i))
4901 || toupper (i) != TOUPPER (i))
4906 if ac_fn_c_try_run
"$LINENO"; then :
4909 ac_cv_header_stdc
=no
4911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4912 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4918 $as_echo "$ac_cv_header_stdc" >&6; }
4919 if test $ac_cv_header_stdc = yes; then
4921 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4925 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4926 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4927 inttypes.h stdint.h unistd.h
4929 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4932 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4933 cat >>confdefs.h
<<_ACEOF
4934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4944 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4951 if test "$MINIX" = yes; then
4953 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4956 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4959 $as_echo "#define _MINIX 1" >>confdefs.h
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4965 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4966 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4967 $as_echo_n "(cached) " >&6
4969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4972 # define __EXTENSIONS__ 1
4973 $ac_includes_default
4982 if ac_fn_c_try_compile
"$LINENO"; then :
4983 ac_cv_safe_to_define___extensions__
=yes
4985 ac_cv_safe_to_define___extensions__
=no
4987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4990 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4991 test $ac_cv_safe_to_define___extensions__ = yes &&
4992 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4994 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4996 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4998 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5000 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5008 # Check whether --with-sysroot was given.
5009 if test "${with_sysroot+set}" = set; then :
5010 withval
=$with_sysroot; sysroot
=$withval
5016 if test "$sysroot" = "yes"; then
5017 sysroot
='${exec_prefix}/${target_alias}/sys-root'
5018 elif test "$sysroot" = "no"; then
5022 sysroot_relocatable
=0
5023 if test -n "$sysroot"; then
5025 "${prefix}" |
"${prefix}/"* | \
5026 "${exec_prefix}" |
"${exec_prefix}/"* | \
5027 '${prefix}' |
'${prefix}/'*| \
5028 '${exec_prefix}' |
'${exec_prefix}/'*)
5029 sysroot_relocatable
=1
5035 cat >>confdefs.h
<<_ACEOF
5036 #define TARGET_SYSTEM_ROOT "$sysroot"
5040 cat >>confdefs.h
<<_ACEOF
5041 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
5046 installed_linker
=ld.gold
5047 # Check whether --enable-gold was given.
5048 if test "${enable_gold+set}" = set; then :
5049 enableval
=$enable_gold; case "${enableval}" in
5051 install_as_default
=yes
5054 if test x
${enable_ld} = xno
; then
5055 install_as_default
=yes
5060 install_as_default
=no
5068 for ac_header
in dlfcn.h
5070 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5072 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5073 cat >>confdefs.h
<<_ACEOF
5074 #define HAVE_DLFCN_H 1
5081 for ac_header
in windows.h
5083 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5085 if test "x$ac_cv_header_windows_h" = xyes
; then :
5086 cat >>confdefs.h
<<_ACEOF
5087 #define HAVE_WINDOWS_H 1
5095 # Check whether --enable-plugins was given.
5096 if test "${enable_plugins+set}" = set; then :
5097 enableval
=$enable_plugins; case "${enableval}" in
5100 if test "$maybe_plugins" != "yes" ; then
5101 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5105 plugins
=$maybe_plugins
5109 if test "$plugins" = "yes"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5111 $as_echo_n "checking for library containing dlsym... " >&6; }
5112 if ${ac_cv_search_dlsym+:} false
; then :
5113 $as_echo_n "(cached) " >&6
5115 ac_func_search_save_LIBS
=$LIBS
5116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5119 /* Override any GCC internal prototype to avoid an error.
5120 Use char because int might match the return type of a GCC
5121 builtin and then its argument prototype would still apply. */
5134 for ac_lib
in '' dl
; do
5135 if test -z "$ac_lib"; then
5136 ac_res
="none required"
5139 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5141 if ac_fn_c_try_link
"$LINENO"; then :
5142 ac_cv_search_dlsym
=$ac_res
5144 rm -f core conftest.err conftest.
$ac_objext \
5146 if ${ac_cv_search_dlsym+:} false
; then :
5150 if ${ac_cv_search_dlsym+:} false
; then :
5153 ac_cv_search_dlsym
=no
5156 LIBS
=$ac_func_search_save_LIBS
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5159 $as_echo "$ac_cv_search_dlsym" >&6; }
5160 ac_res
=$ac_cv_search_dlsym
5161 if test "$ac_res" != no
; then :
5162 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5168 if test "$plugins" = "yes"; then
5170 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5173 if test "$plugins" = "yes"; then
5182 # Decide if -z relro should be enabled in ELF linker by default.
5183 ac_default_ld_z_relro
=unset
5184 # Provide a configure time option to override our default.
5185 # Check whether --enable-relro was given.
5186 if test "${enable_relro+set}" = set; then :
5187 enableval
=$enable_relro; case "${enableval}" in
5188 yes) ac_default_ld_z_relro
=1 ;;
5189 no
) ac_default_ld_z_relro
=0 ;;
5192 if test "${ac_default_ld_z_relro}" = unset; then
5193 ac_default_ld_z_relro
=1
5196 cat >>confdefs.h
<<_ACEOF
5197 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5201 # Check whether --enable-targets was given.
5202 if test "${enable_targets+set}" = set; then :
5203 enableval
=$enable_targets; case "${enableval}" in
5205 as_fn_error $?
"--enable-targets option must specify target names or 'all'" "$LINENO" 5
5211 enable_targets
=$enableval
5215 # For now, enable all targets by default
5221 # Canonicalize the enabled targets.
5222 if test -n "$enable_targets"; then
5223 for targ
in `echo $enable_targets | sed -e 's/,/ /g'`; do
5224 result
=`$ac_config_sub $targ 2>/dev/null`
5225 if test -n "$result"; then
5226 canon_targets
="$canon_targets $result"
5228 # Permit unrecognized target names, like "all".
5229 canon_targets
="$canon_targets $targ"
5234 # Decide which "--hash-style" to use by default
5235 # Provide a configure time option to override our default.
5236 # Check whether --enable-default-hash-style was given.
5237 if test "${enable_default_hash_style+set}" = set; then :
5238 enableval
=$enable_default_hash_style; case "${enable_default_hash_style}" in
5239 sysv | gnu | both
) ;;
5240 *) as_fn_error $?
"bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5244 # Enable gnu hash only on GNU targets, but not mips
5245 mips
*-*-*) enable_default_hash_style
=sysv
;;
5246 *-*-gnu* |
*-*-linux* |
*-*-nacl*) enable_default_hash_style
=both
;;
5247 *) enable_default_hash_style
=sysv
;;
5253 cat >>confdefs.h
<<_ACEOF
5254 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5258 # See which specific instantiations we need.
5264 default_osabi
=ELFOSABI_NONE
5269 for targ
in $target $canon_targets; do
5270 if test "$targ" = "all"; then
5277 .
${srcdir}/configure.tgt
5279 if test "$targ_obj" = "UNKNOWN"; then
5280 as_fn_error $?
"\"unsupported target $targ\"" "$LINENO" 5
5282 targetobjs
="$targetobjs ${targ_obj}.\$(OBJEXT)"
5283 if test "$targ_extra_obj" != ""; then
5284 targetobjs
="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5286 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5287 if test "$targ_big_endian" = "true" \
5288 -o "$targ_extra_big_endian" = "true"; then
5291 if test "$targ_big_endian" = "false" \
5292 -o "$targ_extra_big_endian" = "false"; then
5296 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5297 if test "$targ_big_endian" = "true" \
5298 -o "$targ_extra_big_endian" = "true"; then
5301 if test "$targ_big_endian" = "false" \
5302 -o "$targ_extra_big_endian" = "false"; then
5307 if test "$target" = "$targ"; then
5308 default_machine
=$targ_machine
5309 default_size
=$targ_size
5310 default_big_endian
=$targ_big_endian
5311 default_osabi
=$targ_osabi
5313 if test "$targ_obj" = "aarch64"; then
5314 DEFAULT_TARGET_AARCH64_TRUE
=
5315 DEFAULT_TARGET_AARCH64_FALSE
='#'
5317 DEFAULT_TARGET_AARCH64_TRUE
='#'
5318 DEFAULT_TARGET_AARCH64_FALSE
=
5321 if test "$targ_obj" = "arm"; then
5322 DEFAULT_TARGET_ARM_TRUE
=
5323 DEFAULT_TARGET_ARM_FALSE
='#'
5325 DEFAULT_TARGET_ARM_TRUE
='#'
5326 DEFAULT_TARGET_ARM_FALSE
=
5329 if test "$targ_obj" = "i386"; then
5330 DEFAULT_TARGET_I386_TRUE
=
5331 DEFAULT_TARGET_I386_FALSE
='#'
5333 DEFAULT_TARGET_I386_TRUE
='#'
5334 DEFAULT_TARGET_I386_FALSE
=
5337 if test "$targ_obj" = "powerpc"; then
5338 DEFAULT_TARGET_POWERPC_TRUE
=
5339 DEFAULT_TARGET_POWERPC_FALSE
='#'
5341 DEFAULT_TARGET_POWERPC_TRUE
='#'
5342 DEFAULT_TARGET_POWERPC_FALSE
=
5345 if test "$targ_obj" = "sparc"; then
5346 DEFAULT_TARGET_SPARC_TRUE
=
5347 DEFAULT_TARGET_SPARC_FALSE
='#'
5349 DEFAULT_TARGET_SPARC_TRUE
='#'
5350 DEFAULT_TARGET_SPARC_FALSE
=
5353 if test "$targ_obj" = "s390"; then
5354 DEFAULT_TARGET_S390_TRUE
=
5355 DEFAULT_TARGET_S390_FALSE
='#'
5357 DEFAULT_TARGET_S390_TRUE
='#'
5358 DEFAULT_TARGET_S390_FALSE
=
5363 if test "$targ_obj" = "x86_64"; then
5365 x86_64
*-linux-gnux32)
5374 if test "$target_x86_64" = "yes"; then
5375 DEFAULT_TARGET_X86_64_TRUE
=
5376 DEFAULT_TARGET_X86_64_FALSE
='#'
5378 DEFAULT_TARGET_X86_64_TRUE
='#'
5379 DEFAULT_TARGET_X86_64_FALSE
=
5382 if test "$target_x32" = "yes"; then
5383 DEFAULT_TARGET_X32_TRUE
=
5384 DEFAULT_TARGET_X32_FALSE
='#'
5386 DEFAULT_TARGET_X32_TRUE
='#'
5387 DEFAULT_TARGET_X32_FALSE
=
5390 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5391 DEFAULT_TARGET_X86_64_OR_X32_TRUE
=
5392 DEFAULT_TARGET_X86_64_OR_X32_FALSE
='#'
5394 DEFAULT_TARGET_X86_64_OR_X32_TRUE
='#'
5395 DEFAULT_TARGET_X86_64_OR_X32_FALSE
=
5398 if test "$targ_obj" = "tilegx"; then
5399 DEFAULT_TARGET_TILEGX_TRUE
=
5400 DEFAULT_TARGET_TILEGX_FALSE
='#'
5402 DEFAULT_TARGET_TILEGX_TRUE
='#'
5403 DEFAULT_TARGET_TILEGX_FALSE
=
5406 if test "$targ_obj" = "mips"; then
5407 DEFAULT_TARGET_MIPS_TRUE
=
5408 DEFAULT_TARGET_MIPS_FALSE
='#'
5410 DEFAULT_TARGET_MIPS_TRUE
='#'
5411 DEFAULT_TARGET_MIPS_FALSE
=
5414 DEFAULT_TARGET
=${targ_obj}
5421 # Remove any duplicates.
5423 for t
in $targetobjs; do
5431 if test -n "$targ_32_little"; then
5433 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5436 if test -n "$targ_32_big"; then
5438 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5441 if test -n "$targ_64_little"; then
5443 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5446 if test -n "$targ_64_big"; then
5448 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5452 if test -n "$all_targets"; then
5453 TARGETOBJS
='$(ALL_TARGETOBJS)'
5455 TARGETOBJS
="$targetobjs"
5460 cat >>confdefs.h
<<_ACEOF
5461 #define GOLD_DEFAULT_MACHINE $default_machine
5465 cat >>confdefs.h
<<_ACEOF
5466 #define GOLD_DEFAULT_SIZE $default_size
5470 cat >>confdefs.h
<<_ACEOF
5471 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5475 cat >>confdefs.h
<<_ACEOF
5476 #define GOLD_DEFAULT_OSABI $default_osabi
5481 # Check whether --with-lib-path was given.
5482 if test "${with_lib_path+set}" = set; then :
5483 withval
=$with_lib_path; case "$withval" in
5484 yes) LIB_PATH
='"/lib:/usr/lib"' ;;
5485 no
) LIB_PATH
='""' ;;
5486 *) LIB_PATH
='"'"$withval"'"' ;;
5489 LIB_PATH
='"::DEFAULT::"'
5493 cat >>confdefs.h
<<_ACEOF
5494 #define LIB_PATH $LIB_PATH
5497 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5499 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5503 if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5505 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_NM+:} false
; then :
5509 $as_echo_n "(cached) " >&6
5511 if test -n "$NM"; then
5512 ac_cv_prog_NM
="$NM" # Let the user override the test.
5514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir
=.
5519 for ac_exec_ext
in '' $ac_executable_extensions; do
5520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_NM
="${ac_tool_prefix}nm"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 if test -n "$NM"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5534 $as_echo "$NM" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5542 if test -z "$ac_cv_prog_NM"; then
5544 # Extract the first word of "nm", so it can be a program name with args.
5545 set dummy nm
; ac_word
=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_ac_ct_NM+:} false
; then :
5549 $as_echo_n "(cached) " >&6
5551 if test -n "$ac_ct_NM"; then
5552 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
5554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5558 test -z "$as_dir" && as_dir
=.
5559 for ac_exec_ext
in '' $ac_executable_extensions; do
5560 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_ac_ct_NM
="nm"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
5572 if test -n "$ac_ct_NM"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5574 $as_echo "$ac_ct_NM" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5580 if test "x$ac_ct_NM" = x
; then
5583 case $cross_compiling:$ac_tool_warned in
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587 ac_tool_warned
=yes ;;
5597 ac_cpp
='$CPP $CPPFLAGS'
5598 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5601 if test -n "$ac_tool_prefix"; then
5602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5603 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_CC+:} false
; then :
5607 $as_echo_n "(cached) " >&6
5609 if test -n "$CC"; then
5610 ac_cv_prog_CC
="$CC" # Let the user override the test.
5612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir
=.
5617 for ac_exec_ext
in '' $ac_executable_extensions; do
5618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 if test -n "$CC"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5632 $as_echo "$CC" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5640 if test -z "$ac_cv_prog_CC"; then
5642 # Extract the first word of "gcc", so it can be a program name with args.
5643 set dummy gcc
; ac_word
=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5647 $as_echo_n "(cached) " >&6
5649 if test -n "$ac_ct_CC"; then
5650 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir
=.
5657 for ac_exec_ext
in '' $ac_executable_extensions; do
5658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_ac_ct_CC
="gcc"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5670 if test -n "$ac_ct_CC"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5672 $as_echo "$ac_ct_CC" >&6; }
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5678 if test "x$ac_ct_CC" = x
; then
5681 case $cross_compiling:$ac_tool_warned in
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5685 ac_tool_warned
=yes ;;
5693 if test -z "$CC"; then
5694 if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5696 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_CC+:} false
; then :
5700 $as_echo_n "(cached) " >&6
5702 if test -n "$CC"; then
5703 ac_cv_prog_CC
="$CC" # Let the user override the test.
5705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5709 test -z "$as_dir" && as_dir
=.
5710 for ac_exec_ext
in '' $ac_executable_extensions; do
5711 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 if test -n "$CC"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5725 $as_echo "$CC" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5734 if test -z "$CC"; then
5735 # Extract the first word of "cc", so it can be a program name with args.
5736 set dummy cc
; ac_word
=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_CC+:} false
; then :
5740 $as_echo_n "(cached) " >&6
5742 if test -n "$CC"; then
5743 ac_cv_prog_CC
="$CC" # Let the user override the test.
5746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5750 test -z "$as_dir" && as_dir
=.
5751 for ac_exec_ext
in '' $ac_executable_extensions; do
5752 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5754 ac_prog_rejected
=yes
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 if test $ac_prog_rejected = yes; then
5766 # We found a bogon in the path, so make sure we never use it.
5767 set dummy
$ac_cv_prog_CC
5769 if test $# != 0; then
5770 # We chose a different compiler from the bogus one.
5771 # However, it has the same basename, so the bogon will be chosen
5772 # first if we set CC to just the basename; use the full file name.
5774 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5780 if test -n "$CC"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5782 $as_echo "$CC" >&6; }
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5790 if test -z "$CC"; then
5791 if test -n "$ac_tool_prefix"; then
5792 for ac_prog
in cl.exe
5794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5795 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_CC+:} false
; then :
5799 $as_echo_n "(cached) " >&6
5801 if test -n "$CC"; then
5802 ac_cv_prog_CC
="$CC" # Let the user override the test.
5804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir
=.
5809 for ac_exec_ext
in '' $ac_executable_extensions; do
5810 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 if test -n "$CC"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824 $as_echo "$CC" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5831 test -n "$CC" && break
5834 if test -z "$CC"; then
5836 for ac_prog
in cl.exe
5838 # Extract the first word of "$ac_prog", so it can be a program name with args.
5839 set dummy
$ac_prog; ac_word
=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5843 $as_echo_n "(cached) " >&6
5845 if test -n "$ac_ct_CC"; then
5846 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir
=.
5853 for ac_exec_ext
in '' $ac_executable_extensions; do
5854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_ac_ct_CC
="$ac_prog"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5866 if test -n "$ac_ct_CC"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5868 $as_echo "$ac_ct_CC" >&6; }
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5875 test -n "$ac_ct_CC" && break
5878 if test "x$ac_ct_CC" = x
; then
5881 case $cross_compiling:$ac_tool_warned in
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885 ac_tool_warned
=yes ;;
5894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896 as_fn_error $?
"no acceptable C compiler found in \$PATH
5897 See \`config.log' for more details" "$LINENO" 5; }
5899 # Provide some information about the compiler.
5900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5903 for ac_option
in --version -v -V -qversion; do
5904 { { ac_try
="$ac_compiler $ac_option >&5"
5906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5910 $as_echo "$ac_try_echo"; } >&5
5911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5913 if test -s conftest.err; then
5915 ... rest of stderr output deleted ...
5916 10q' conftest.err >conftest.er1
5917 cat conftest.er1 >&5
5919 rm -f conftest.er1 conftest.err
5920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5925 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5926 if ${ac_cv_c_compiler_gnu+:} false; then :
5927 $as_echo_n "(cached) " >&6
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5943 if ac_fn_c_try_compile "$LINENO"; then :
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5953 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5954 if test $ac_compiler_gnu = yes; then
5959 ac_test_CFLAGS=${CFLAGS+set}
5960 ac_save_CFLAGS=$CFLAGS
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5962 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5963 if ${ac_cv_prog_cc_g+:} false; then :
5964 $as_echo_n "(cached) " >&6
5966 ac_save_c_werror_flag=$ac_c_werror_flag
5967 ac_c_werror_flag=yes
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5981 if ac_fn_c_try_compile "$LINENO"; then :
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5996 if ac_fn_c_try_compile "$LINENO"; then :
5999 ac_c_werror_flag=$ac_save_c_werror_flag
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6012 if ac_fn_c_try_compile "$LINENO"; then :
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 ac_c_werror_flag=$ac_save_c_werror_flag
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6023 $as_echo "$ac_cv_prog_cc_g" >&6; }
6024 if test "$ac_test_CFLAGS" = set; then
6025 CFLAGS=$ac_save_CFLAGS
6026 elif test $ac_cv_prog_cc_g = yes; then
6027 if test "$GCC" = yes; then
6033 if test "$GCC" = yes; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6040 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6041 if ${ac_cv_prog_cc_c89+:} false; then :
6042 $as_echo_n "(cached) " >&6
6044 ac_cv_prog_cc_c89=no
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6052 struct buf { int x; };
6053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6054 static char *e (p, i)
6060 static char *f (char * (*g) (char **, int), char **p, ...)
6065 s = g (p, va_arg (v,int));
6070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6071 function prototypes and stuff, but not '\xHH' hex character constants.
6072 These don't provoke an error unfortunately, instead are silently treated
6073 as 'x'. The following induces an error, until -std is added to get
6074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6075 array size at least. It's necessary to write '\x00'==0 to get something
6076 that's true only with -std. */
6077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6080 inside strings and character constants. */
6082 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6084 int test (int i, double x);
6085 struct s1 {int (*f) (int a);};
6086 struct s2 {int (*f) (double a);};
6087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6093 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6098 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6101 CC="$ac_save_CC $ac_arg"
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103 ac_cv_prog_cc_c89=$ac_arg
6105 rm -f core conftest.err conftest.$ac_objext
6106 test "x$ac_cv_prog_cc_c89" != "xno" && break
6108 rm -f conftest.$ac_ext
6113 case "x$ac_cv_prog_cc_c89" in
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6116 $as_echo "none needed" >&6; } ;;
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6119 $as_echo "unsupported" >&6; } ;;
6121 CC="$CC $ac_cv_prog_cc_c89"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6123 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6125 if test "x$ac_cv_prog_cc_c89" != xno; then :
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6136 ac_cpp='$CPP $CPPFLAGS'
6137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6141 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6142 if ${am_cv_prog_cc_c_o+:} false; then :
6143 $as_echo_n "(cached) " >&6
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6156 # Make sure it works both with $CC and with simple cc.
6157 # Following AC_PROG_CC_C_O, we do the test twice because some
6158 # compilers refuse to overwrite an existing .o file with -o,
6159 # though they will create one.
6160 am_cv_prog_cc_c_o=yes
6162 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6163 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } \
6167 && test -f conftest2.$ac_objext; then
6170 am_cv_prog_cc_c_o=no
6174 rm -f core conftest*
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6178 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6179 if test "$am_cv_prog_cc_c_o" != yes; then
6180 # Losing compiler, so override with the script.
6181 # FIXME: It is wrong to rewrite CC.
6182 # But if we don't then we get into trouble of one sort or another.
6183 # A longer-term fix would be to have automake use am__CC in this case,
6184 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6185 CC="$am_aux_dir/compile $CC"
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 depcc="$CC" am_compiler_list=
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6197 $as_echo_n "checking dependency style of $depcc... " >&6; }
6198 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6199 $as_echo_n "(cached) " >&6
6201 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6202 # We make a subdir and do the tests there. Otherwise we can end up
6203 # making bogus files that we don't know about and never remove. For
6204 # instance it was reported that on HP-UX the gcc test will end up
6205 # making a dummy file named 'D' -- because '-MD' means "put the output
6209 # Copy depcomp to subdir because otherwise we won't find it if we're
6210 # using a relative directory.
6211 cp "$am_depcomp" conftest.dir
6213 # We will build objects and dependencies in a subdirectory because
6214 # it helps to detect inapplicable dependency modes. For instance
6215 # both Tru64's cc and ICC support -MD to output dependencies as a
6216 # side effect of compilation, but ICC will put the dependencies in
6217 # the current directory while Tru64 will put them in the object
6221 am_cv_CC_dependencies_compiler_type=none
6222 if test "$am_compiler_list" = ""; then
6223 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6226 case " $depcc " in #(
6227 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6230 for depmode in $am_compiler_list; do
6231 # Setup a source with many dependencies, because some compilers
6232 # like to wrap large dependency lists on column 80 (with \), and
6233 # we should not choose a depcomp mode which is confused by this.
6235 # We need to recreate these files for each test, as the compiler may
6236 # overwrite some of them when testing with obscure command lines.
6237 # This happens at least with the AIX C compiler.
6239 for i in 1 2 3 4 5 6; do
6240 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6241 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6242 # Solaris 10 /bin/sh.
6243 echo '/* dummy */' > sub/conftst$i.h
6245 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6247 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6248 # mode. It turns out that the SunPro C++ compiler does not properly
6249 # handle '-M -o', and we need to detect this. Also, some Intel
6250 # versions had trouble with output in subdirs.
6251 am__obj=sub/conftest.${OBJEXT-o}
6252 am__minus_obj="-o $am__obj"
6255 # This depmode causes a compiler race in universal mode.
6256 test "$am__universal" = false || continue
6259 # After this tag, mechanisms are not by side-effect, so they'll
6260 # only be used when explicitly requested.
6261 if test "x$enable_dependency_tracking" = xyes; then
6267 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6268 # This compiler won't grok '-c -o', but also, the minuso test has
6269 # not run yet. These depmodes are late enough in the game, and
6270 # so weak that their functioning should not be impacted.
6271 am__obj=conftest.${OBJEXT-o}
6276 if depmode=$depmode \
6277 source=sub/conftest.c object=$am__obj \
6278 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6279 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6280 >/dev/null 2>conftest.err &&
6281 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6282 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6283 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6284 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6285 # icc doesn't choke on unknown options, it will just issue warnings
6286 # or remarks (even with -Werror). So we grep stderr for any message
6287 # that says an option was ignored or not supported.
6288 # When given -MP, icc 7.0 and 7.1 complain thusly:
6289 # icc: Command line warning: ignoring option '-M'; no argument required
6290 # The diagnosis changed in icc 8.0:
6291 # icc: Command line remark: option '-MP' not supported
6292 if (grep 'ignoring option' conftest.err ||
6293 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6294 am_cv_CC_dependencies_compiler_type=$depmode
6303 am_cv_CC_dependencies_compiler_type=none
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6308 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6309 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6312 test "x$enable_dependency_tracking" != xno \
6313 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6315 am__fastdepCC_FALSE='#'
6317 am__fastdepCC_TRUE='#'
6318 am__fastdepCC_FALSE=
6323 ac_cpp='$CXXCPP $CPPFLAGS'
6324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6327 if test -z "$CXX"; then
6328 if test -n "$CCC"; then
6331 if test -n "$ac_tool_prefix"; then
6332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_CXX+:} false; then :
6339 $as_echo_n "(cached) " >&6
6341 if test -n "$CXX"; then
6342 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 if test -n "$CXX"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6364 $as_echo "$CXX" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6371 test -n "$CXX" && break
6374 if test -z "$CXX"; then
6376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6378 # Extract the first word of "$ac_prog", so it can be a program name with args.
6379 set dummy $ac_prog; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6383 $as_echo_n "(cached) " >&6
6385 if test -n "$ac_ct_CXX"; then
6386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_ac_ct_CXX="$ac_prog"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6406 if test -n "$ac_ct_CXX"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6408 $as_echo "$ac_ct_CXX" >&6; }
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6415 test -n "$ac_ct_CXX" && break
6418 if test "x$ac_ct_CXX" = x; then
6421 case $cross_compiling:$ac_tool_warned in
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6433 # Provide some information about the compiler.
6434 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6437 for ac_option in --version -v -V -qversion; do
6438 { { ac_try="$ac_compiler $ac_option >&5"
6440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6441 *) ac_try_echo
=$ac_try;;
6443 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6444 $as_echo "$ac_try_echo"; } >&5
6445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6447 if test -s conftest.err
; then
6449 ... rest of stderr output deleted ...
6450 10q' conftest.err
>conftest.er1
6451 cat conftest.er1
>&5
6453 rm -f conftest.er1 conftest.err
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6459 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6460 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
6461 $as_echo_n "(cached) " >&6
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6477 if ac_fn_cxx_try_compile
"$LINENO"; then :
6482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6483 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6487 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6488 if test $ac_compiler_gnu = yes; then
6493 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6494 ac_save_CXXFLAGS
=$CXXFLAGS
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6496 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6497 if ${ac_cv_prog_cxx_g+:} false
; then :
6498 $as_echo_n "(cached) " >&6
6500 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6501 ac_cxx_werror_flag
=yes
6504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6515 if ac_fn_cxx_try_compile
"$LINENO"; then :
6516 ac_cv_prog_cxx_g
=yes
6519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6530 if ac_fn_cxx_try_compile
"$LINENO"; then :
6533 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6546 if ac_fn_cxx_try_compile
"$LINENO"; then :
6547 ac_cv_prog_cxx_g
=yes
6549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6554 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6557 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6558 if test "$ac_test_CXXFLAGS" = set; then
6559 CXXFLAGS
=$ac_save_CXXFLAGS
6560 elif test $ac_cv_prog_cxx_g = yes; then
6561 if test "$GXX" = yes; then
6567 if test "$GXX" = yes; then
6574 ac_cpp
='$CPP $CPPFLAGS'
6575 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6579 depcc
="$CXX" am_compiler_list
=
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6582 $as_echo_n "checking dependency style of $depcc... " >&6; }
6583 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
6584 $as_echo_n "(cached) " >&6
6586 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6587 # We make a subdir and do the tests there. Otherwise we can end up
6588 # making bogus files that we don't know about and never remove. For
6589 # instance it was reported that on HP-UX the gcc test will end up
6590 # making a dummy file named 'D' -- because '-MD' means "put the output
6594 # Copy depcomp to subdir because otherwise we won't find it if we're
6595 # using a relative directory.
6596 cp "$am_depcomp" conftest.dir
6598 # We will build objects and dependencies in a subdirectory because
6599 # it helps to detect inapplicable dependency modes. For instance
6600 # both Tru64's cc and ICC support -MD to output dependencies as a
6601 # side effect of compilation, but ICC will put the dependencies in
6602 # the current directory while Tru64 will put them in the object
6606 am_cv_CXX_dependencies_compiler_type
=none
6607 if test "$am_compiler_list" = ""; then
6608 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6611 case " $depcc " in #(
6612 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
6615 for depmode
in $am_compiler_list; do
6616 # Setup a source with many dependencies, because some compilers
6617 # like to wrap large dependency lists on column 80 (with \), and
6618 # we should not choose a depcomp mode which is confused by this.
6620 # We need to recreate these files for each test, as the compiler may
6621 # overwrite some of them when testing with obscure command lines.
6622 # This happens at least with the AIX C compiler.
6624 for i
in 1 2 3 4 5 6; do
6625 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6626 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6627 # Solaris 10 /bin/sh.
6628 echo '/* dummy */' > sub
/conftst
$i.h
6630 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6632 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6633 # mode. It turns out that the SunPro C++ compiler does not properly
6634 # handle '-M -o', and we need to detect this. Also, some Intel
6635 # versions had trouble with output in subdirs.
6636 am__obj
=sub
/conftest.
${OBJEXT-o}
6637 am__minus_obj
="-o $am__obj"
6640 # This depmode causes a compiler race in universal mode.
6641 test "$am__universal" = false ||
continue
6644 # After this tag, mechanisms are not by side-effect, so they'll
6645 # only be used when explicitly requested.
6646 if test "x$enable_dependency_tracking" = xyes
; then
6652 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
6653 # This compiler won't grok '-c -o', but also, the minuso test has
6654 # not run yet. These depmodes are late enough in the game, and
6655 # so weak that their functioning should not be impacted.
6656 am__obj
=conftest.
${OBJEXT-o}
6661 if depmode
=$depmode \
6662 source=sub
/conftest.c object
=$am__obj \
6663 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6664 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
6665 >/dev
/null
2>conftest.err
&&
6666 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6667 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6668 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
6669 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6670 # icc doesn't choke on unknown options, it will just issue warnings
6671 # or remarks (even with -Werror). So we grep stderr for any message
6672 # that says an option was ignored or not supported.
6673 # When given -MP, icc 7.0 and 7.1 complain thusly:
6674 # icc: Command line warning: ignoring option '-M'; no argument required
6675 # The diagnosis changed in icc 8.0:
6676 # icc: Command line remark: option '-MP' not supported
6677 if (grep 'ignoring option' conftest.err ||
6678 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6679 am_cv_CXX_dependencies_compiler_type
=$depmode
6688 am_cv_CXX_dependencies_compiler_type
=none
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6693 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6694 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
6697 test "x$enable_dependency_tracking" != xno \
6698 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
6699 am__fastdepCXX_TRUE
=
6700 am__fastdepCXX_FALSE
='#'
6702 am__fastdepCXX_TRUE
='#'
6703 am__fastdepCXX_FALSE
=
6707 for ac_prog
in 'bison -y' byacc
6709 # Extract the first word of "$ac_prog", so it can be a program name with args.
6710 set dummy
$ac_prog; ac_word
=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_YACC+:} false
; then :
6714 $as_echo_n "(cached) " >&6
6716 if test -n "$YACC"; then
6717 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir
=.
6724 for ac_exec_ext
in '' $ac_executable_extensions; do
6725 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6726 ac_cv_prog_YACC
="$ac_prog"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 YACC
=$ac_cv_prog_YACC
6737 if test -n "$YACC"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6739 $as_echo "$YACC" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6746 test -n "$YACC" && break
6748 test -n "$YACC" || YACC
="yacc"
6750 if test -n "$ac_tool_prefix"; then
6751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6752 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_RANLIB+:} false
; then :
6756 $as_echo_n "(cached) " >&6
6758 if test -n "$RANLIB"; then
6759 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir
=.
6766 for ac_exec_ext
in '' $ac_executable_extensions; do
6767 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 RANLIB
=$ac_cv_prog_RANLIB
6779 if test -n "$RANLIB"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6781 $as_echo "$RANLIB" >&6; }
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6789 if test -z "$ac_cv_prog_RANLIB"; then
6790 ac_ct_RANLIB
=$RANLIB
6791 # Extract the first word of "ranlib", so it can be a program name with args.
6792 set dummy ranlib
; ac_word
=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6796 $as_echo_n "(cached) " >&6
6798 if test -n "$ac_ct_RANLIB"; then
6799 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir
=.
6806 for ac_exec_ext
in '' $ac_executable_extensions; do
6807 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6819 if test -n "$ac_ct_RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6821 $as_echo "$ac_ct_RANLIB" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6827 if test "x$ac_ct_RANLIB" = x
; then
6830 case $cross_compiling:$ac_tool_warned in
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834 ac_tool_warned
=yes ;;
6836 RANLIB
=$ac_ct_RANLIB
6839 RANLIB
="$ac_cv_prog_RANLIB"
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6844 $as_echo_n "checking whether ln -s works... " >&6; }
6846 if test "$LN_S" = "ln -s"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6848 $as_echo "yes" >&6; }
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6851 $as_echo "no, using $LN_S" >&6; }
6859 if test -n "$ac_aux_dir"; then
6860 case "$ac_aux_dir" in
6861 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
6862 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6865 if test -z "$MKINSTALLDIRS"; then
6866 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6872 $as_echo_n "checking whether NLS is requested... " >&6; }
6873 # Check whether --enable-nls was given.
6874 if test "${enable_nls+set}" = set; then :
6875 enableval
=$enable_nls; USE_NLS
=$enableval
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6881 $as_echo "$USE_NLS" >&6; }
6888 # Prepare PATH_SEPARATOR.
6889 # The user is always right.
6890 if test "${PATH_SEPARATOR+set}" != set; then
6891 echo "#! /bin/sh" >conf$$.sh
6892 echo "exit 0" >>conf$$.sh
6894 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6902 # Find out how to test for executable files. Don't use a zero-byte file,
6903 # as systems may use methods other than mode bits to determine executability.
6904 cat >conf$$.
file <<_ASEOF
6908 chmod +x conf$$.
file
6909 if test -x conf$$.
file >/dev
/null
2>&1; then
6910 ac_executable_p
="test -x"
6912 ac_executable_p
="test -f"
6916 # Extract the first word of "msgfmt", so it can be a program name with args.
6917 set dummy msgfmt
; ac_word
=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_path_MSGFMT+:} false
; then :
6921 $as_echo_n "(cached) " >&6
6925 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6928 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6929 for ac_dir
in $PATH; do
6931 test -z "$ac_dir" && ac_dir
=.
6932 for ac_exec_ext
in '' $ac_executable_extensions; do
6933 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6934 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
6935 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6936 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
6943 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6947 MSGFMT
="$ac_cv_path_MSGFMT"
6948 if test "$MSGFMT" != ":"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6950 $as_echo "$MSGFMT" >&6; }
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6956 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6957 set dummy gmsgfmt
; ac_word
=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_path_GMSGFMT+:} false
; then :
6961 $as_echo_n "(cached) " >&6
6965 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir
=.
6973 for ac_exec_ext
in '' $ac_executable_extensions; do
6974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6987 GMSGFMT
=$ac_cv_path_GMSGFMT
6988 if test -n "$GMSGFMT"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6990 $as_echo "$GMSGFMT" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6999 # Prepare PATH_SEPARATOR.
7000 # The user is always right.
7001 if test "${PATH_SEPARATOR+set}" != set; then
7002 echo "#! /bin/sh" >conf$$.sh
7003 echo "exit 0" >>conf$$.sh
7005 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7013 # Find out how to test for executable files. Don't use a zero-byte file,
7014 # as systems may use methods other than mode bits to determine executability.
7015 cat >conf$$.
file <<_ASEOF
7019 chmod +x conf$$.
file
7020 if test -x conf$$.
file >/dev
/null
2>&1; then
7021 ac_executable_p
="test -x"
7023 ac_executable_p
="test -f"
7027 # Extract the first word of "xgettext", so it can be a program name with args.
7028 set dummy xgettext
; ac_word
=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_path_XGETTEXT+:} false
; then :
7032 $as_echo_n "(cached) " >&6
7036 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7039 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7040 for ac_dir
in $PATH; do
7042 test -z "$ac_dir" && ac_dir
=.
7043 for ac_exec_ext
in '' $ac_executable_extensions; do
7044 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7045 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
7046 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7047 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
7054 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7058 XGETTEXT
="$ac_cv_path_XGETTEXT"
7059 if test "$XGETTEXT" != ":"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7061 $as_echo "$XGETTEXT" >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7070 # Prepare PATH_SEPARATOR.
7071 # The user is always right.
7072 if test "${PATH_SEPARATOR+set}" != set; then
7073 echo "#! /bin/sh" >conf$$.sh
7074 echo "exit 0" >>conf$$.sh
7076 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7084 # Find out how to test for executable files. Don't use a zero-byte file,
7085 # as systems may use methods other than mode bits to determine executability.
7086 cat >conf$$.
file <<_ASEOF
7090 chmod +x conf$$.
file
7091 if test -x conf$$.
file >/dev
/null
2>&1; then
7092 ac_executable_p
="test -x"
7094 ac_executable_p
="test -f"
7098 # Extract the first word of "msgmerge", so it can be a program name with args.
7099 set dummy msgmerge
; ac_word
=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_path_MSGMERGE+:} false
; then :
7103 $as_echo_n "(cached) " >&6
7107 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
7110 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7111 for ac_dir
in $PATH; do
7113 test -z "$ac_dir" && ac_dir
=.
7114 for ac_exec_ext
in '' $ac_executable_extensions; do
7115 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7116 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
7117 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
7124 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
7128 MSGMERGE
="$ac_cv_path_MSGMERGE"
7129 if test "$MSGMERGE" != ":"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7131 $as_echo "$MSGMERGE" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7138 if test "$GMSGFMT" != ":"; then
7139 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
7140 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7143 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7145 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7150 if test "$XGETTEXT" != ":"; then
7151 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
7152 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7156 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7162 ac_config_commands
="$ac_config_commands default-1"
7166 if test "X$prefix" = "XNONE"; then
7167 acl_final_prefix
="$ac_default_prefix"
7169 acl_final_prefix
="$prefix"
7171 if test "X$exec_prefix" = "XNONE"; then
7172 acl_final_exec_prefix
='${prefix}'
7174 acl_final_exec_prefix
="$exec_prefix"
7176 acl_save_prefix
="$prefix"
7177 prefix
="$acl_final_prefix"
7178 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7179 prefix
="$acl_save_prefix"
7182 # Check whether --with-gnu-ld was given.
7183 if test "${with_gnu_ld+set}" = set; then :
7184 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7189 # Prepare PATH_SEPARATOR.
7190 # The user is always right.
7191 if test "${PATH_SEPARATOR+set}" != set; then
7192 echo "#! /bin/sh" >conf$$.sh
7193 echo "exit 0" >>conf$$.sh
7195 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7203 if test "$GCC" = yes; then
7204 # Check if gcc -print-prog-name=ld gives a path.
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7206 $as_echo_n "checking for ld used by GCC... " >&6; }
7209 # gcc leaves a trailing carriage return which upsets mingw
7210 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7212 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7215 # Accept absolute paths.
7216 [\\/]* |
[A-Za-z
]:[\\/]*)
7217 re_direlt
='/[^/][^/]*/\.\./'
7218 # Canonicalize the path of ld
7219 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7220 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7221 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7223 test -z "$LD" && LD
="$ac_prog"
7226 # If it fails, then pretend we aren't using GCC.
7230 # If it is relative, then search for the first ld in PATH.
7234 elif test "$with_gnu_ld" = yes; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7236 $as_echo_n "checking for GNU ld... " >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7239 $as_echo_n "checking for non-GNU ld... " >&6; }
7241 if ${acl_cv_path_LD+:} false
; then :
7242 $as_echo_n "(cached) " >&6
7244 if test -z "$LD"; then
7245 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7246 for ac_dir
in $PATH; do
7247 test -z "$ac_dir" && ac_dir
=.
7248 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7249 acl_cv_path_LD
="$ac_dir/$ac_prog"
7250 # Check to see if the program is GNU ld. I'd rather use --version,
7251 # but apparently some GNU ld's only accept -v.
7252 # Break only if it was the GNU/non-GNU ld that we prefer.
7253 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
7254 test "$with_gnu_ld" != no
&& break
7256 test "$with_gnu_ld" != yes && break
7262 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7266 LD
="$acl_cv_path_LD"
7267 if test -n "$LD"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7269 $as_echo "$LD" >&6; }
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7274 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7276 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7277 if ${acl_cv_prog_gnu_ld+:} false
; then :
7278 $as_echo_n "(cached) " >&6
7280 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7281 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
7282 acl_cv_prog_gnu_ld
=yes
7284 acl_cv_prog_gnu_ld
=no
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7288 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7289 with_gnu_ld
=$acl_cv_prog_gnu_ld
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7294 $as_echo_n "checking for shared library run path origin... " >&6; }
7295 if ${acl_cv_rpath+:} false
; then :
7296 $as_echo_n "(cached) " >&6
7299 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7300 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7307 $as_echo "$acl_cv_rpath" >&6; }
7309 libext
="$acl_cv_libext"
7310 shlibext
="$acl_cv_shlibext"
7311 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7312 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7313 hardcode_direct
="$acl_cv_hardcode_direct"
7314 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7315 # Check whether --enable-rpath was given.
7316 if test "${enable_rpath+set}" = set; then :
7317 enableval
=$enable_rpath; :
7331 acl_save_prefix
="$prefix"
7332 prefix
="$acl_final_prefix"
7333 acl_save_exec_prefix
="$exec_prefix"
7334 exec_prefix
="$acl_final_exec_prefix"
7336 eval additional_includedir
=\"$includedir\"
7337 eval additional_libdir
=\"$libdir\"
7339 exec_prefix
="$acl_save_exec_prefix"
7340 prefix
="$acl_save_prefix"
7343 # Check whether --with-libiconv-prefix was given.
7344 if test "${with_libiconv_prefix+set}" = set; then :
7345 withval
=$with_libiconv_prefix;
7346 if test "X$withval" = "Xno"; then
7349 if test "X$withval" = "X"; then
7351 acl_save_prefix
="$prefix"
7352 prefix
="$acl_final_prefix"
7353 acl_save_exec_prefix
="$exec_prefix"
7354 exec_prefix
="$acl_final_exec_prefix"
7356 eval additional_includedir
=\"$includedir\"
7357 eval additional_libdir
=\"$libdir\"
7359 exec_prefix
="$acl_save_exec_prefix"
7360 prefix
="$acl_save_prefix"
7363 additional_includedir
="$withval/include"
7364 additional_libdir
="$withval/lib"
7371 # Check whether --with-libiconv-type was given.
7372 if test "${with_libiconv_type+set}" = set; then :
7373 withval
=$with_libiconv_type; with_libiconv_type
=$withval
7375 with_libiconv_type
=auto
7378 lib_type
=`eval echo \$with_libiconv_type`
7385 names_already_handled
=
7386 names_next_round
='iconv '
7387 while test -n "$names_next_round"; do
7388 names_this_round
="$names_next_round"
7390 for name
in $names_this_round; do
7392 for n
in $names_already_handled; do
7393 if test "$n" = "$name"; then
7398 if test -z "$already_handled"; then
7399 names_already_handled
="$names_already_handled $name"
7400 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7401 eval value
=\"\
$HAVE_LIB$uppername\"
7402 if test -n "$value"; then
7403 if test "$value" = yes; then
7404 eval value
=\"\
$LIB$uppername\"
7405 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
7406 eval value
=\"\
$LTLIB$uppername\"
7407 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
7416 if test $use_additional = yes; then
7417 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
7418 found_dir
="$additional_libdir"
7419 found_so
="$additional_libdir/lib$name.$shlibext"
7420 if test -f "$additional_libdir/lib$name.la"; then
7421 found_la
="$additional_libdir/lib$name.la"
7423 elif test x
$lib_type != xshared
; then
7424 if test -f "$additional_libdir/lib$name.$libext"; then
7425 found_dir
="$additional_libdir"
7426 found_a
="$additional_libdir/lib$name.$libext"
7427 if test -f "$additional_libdir/lib$name.la"; then
7428 found_la
="$additional_libdir/lib$name.la"
7433 if test "X$found_dir" = "X"; then
7434 for x
in $LDFLAGS $LTLIBICONV; do
7436 acl_save_prefix
="$prefix"
7437 prefix
="$acl_final_prefix"
7438 acl_save_exec_prefix
="$exec_prefix"
7439 exec_prefix
="$acl_final_exec_prefix"
7441 exec_prefix
="$acl_save_exec_prefix"
7442 prefix
="$acl_save_prefix"
7446 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7447 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
7449 found_so
="$dir/lib$name.$shlibext"
7450 if test -f "$dir/lib$name.la"; then
7451 found_la
="$dir/lib$name.la"
7453 elif test x
$lib_type != xshared
; then
7454 if test -f "$dir/lib$name.$libext"; then
7456 found_a
="$dir/lib$name.$libext"
7457 if test -f "$dir/lib$name.la"; then
7458 found_la
="$dir/lib$name.la"
7464 if test "X$found_dir" != "X"; then
7469 if test "X$found_dir" != "X"; then
7470 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7471 if test "X$found_so" != "X"; then
7472 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7473 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7476 for x
in $ltrpathdirs; do
7477 if test "X$x" = "X$found_dir"; then
7482 if test -z "$haveit"; then
7483 ltrpathdirs
="$ltrpathdirs $found_dir"
7485 if test "$hardcode_direct" = yes; then
7486 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7488 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7489 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7491 for x
in $rpathdirs; do
7492 if test "X$x" = "X$found_dir"; then
7497 if test -z "$haveit"; then
7498 rpathdirs
="$rpathdirs $found_dir"
7502 for x
in $LDFLAGS $LIBICONV; do
7504 acl_save_prefix
="$prefix"
7505 prefix
="$acl_final_prefix"
7506 acl_save_exec_prefix
="$exec_prefix"
7507 exec_prefix
="$acl_final_exec_prefix"
7509 exec_prefix
="$acl_save_exec_prefix"
7510 prefix
="$acl_save_prefix"
7512 if test "X$x" = "X-L$found_dir"; then
7517 if test -z "$haveit"; then
7518 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7520 if test "$hardcode_minus_L" != no
; then
7521 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7523 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7529 if test "X$found_a" != "X"; then
7530 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7532 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7535 additional_includedir
=
7536 case "$found_dir" in
7538 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7539 additional_includedir
="$basedir/include"
7542 if test "X$additional_includedir" != "X"; then
7543 if test "X$additional_includedir" != "X/usr/include"; then
7545 if test "X$additional_includedir" = "X/usr/local/include"; then
7546 if test -n "$GCC"; then
7548 linux
*) haveit
=yes;;
7552 if test -z "$haveit"; then
7553 for x
in $CPPFLAGS $INCICONV; do
7555 acl_save_prefix
="$prefix"
7556 prefix
="$acl_final_prefix"
7557 acl_save_exec_prefix
="$exec_prefix"
7558 exec_prefix
="$acl_final_exec_prefix"
7560 exec_prefix
="$acl_save_exec_prefix"
7561 prefix
="$acl_save_prefix"
7563 if test "X$x" = "X-I$additional_includedir"; then
7568 if test -z "$haveit"; then
7569 if test -d "$additional_includedir"; then
7570 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7576 if test -n "$found_la"; then
7577 save_libdir
="$libdir"
7579 */* |
*\\*) .
"$found_la" ;;
7580 *) .
"./$found_la" ;;
7582 libdir
="$save_libdir"
7583 for dep
in $dependency_libs; do
7586 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7587 if test "X$additional_libdir" != "X/usr/lib"; then
7589 if test "X$additional_libdir" = "X/usr/local/lib"; then
7590 if test -n "$GCC"; then
7592 linux
*) haveit
=yes;;
7596 if test -z "$haveit"; then
7598 for x
in $LDFLAGS $LIBICONV; do
7600 acl_save_prefix
="$prefix"
7601 prefix
="$acl_final_prefix"
7602 acl_save_exec_prefix
="$exec_prefix"
7603 exec_prefix
="$acl_final_exec_prefix"
7605 exec_prefix
="$acl_save_exec_prefix"
7606 prefix
="$acl_save_prefix"
7608 if test "X$x" = "X-L$additional_libdir"; then
7613 if test -z "$haveit"; then
7614 if test -d "$additional_libdir"; then
7615 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7619 for x
in $LDFLAGS $LTLIBICONV; do
7621 acl_save_prefix
="$prefix"
7622 prefix
="$acl_final_prefix"
7623 acl_save_exec_prefix
="$exec_prefix"
7624 exec_prefix
="$acl_final_exec_prefix"
7626 exec_prefix
="$acl_save_exec_prefix"
7627 prefix
="$acl_save_prefix"
7629 if test "X$x" = "X-L$additional_libdir"; then
7634 if test -z "$haveit"; then
7635 if test -d "$additional_libdir"; then
7636 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7643 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7644 if test "$enable_rpath" != no
; then
7646 for x
in $rpathdirs; do
7647 if test "X$x" = "X$dir"; then
7652 if test -z "$haveit"; then
7653 rpathdirs
="$rpathdirs $dir"
7656 for x
in $ltrpathdirs; do
7657 if test "X$x" = "X$dir"; then
7662 if test -z "$haveit"; then
7663 ltrpathdirs
="$ltrpathdirs $dir"
7668 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7671 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7674 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7675 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7681 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
7682 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7683 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7685 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7686 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7693 if test "X$rpathdirs" != "X"; then
7694 if test -n "$hardcode_libdir_separator"; then
7696 for found_dir
in $rpathdirs; do
7697 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7699 acl_save_libdir
="$libdir"
7701 eval flag
=\"$hardcode_libdir_flag_spec\"
7702 libdir
="$acl_save_libdir"
7703 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7705 for found_dir
in $rpathdirs; do
7706 acl_save_libdir
="$libdir"
7708 eval flag
=\"$hardcode_libdir_flag_spec\"
7709 libdir
="$acl_save_libdir"
7710 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7714 if test "X$ltrpathdirs" != "X"; then
7715 for found_dir
in $ltrpathdirs; do
7716 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7724 if test -f ..
/gettext
/uninstalled-config.sh
; then
7725 relative_builddir
='$(top_builddir)/../gettext'
7726 . ..
/gettext
/uninstalled-config.sh
7728 # The sister gettext directory doesn't exist and won't collect information on
7729 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7754 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7755 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
7756 $as_echo_n "(cached) " >&6
7758 gt_save_LIBS
="$LIBS"
7759 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
7760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 #include <CoreFoundation/CFPreferences.h>
7766 CFPreferencesCopyAppValue(NULL, NULL)
7771 if ac_fn_c_try_link
"$LINENO"; then :
7772 gt_cv_func_CFPreferencesCopyAppValue
=yes
7774 gt_cv_func_CFPreferencesCopyAppValue
=no
7776 rm -f core conftest.err conftest.
$ac_objext \
7777 conftest
$ac_exeext conftest.
$ac_ext
7778 LIBS
="$gt_save_LIBS"
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7781 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7782 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7784 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
7788 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
7789 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false
; then :
7790 $as_echo_n "(cached) " >&6
7792 gt_save_LIBS
="$LIBS"
7793 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
7794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #include <CoreFoundation/CFLocale.h>
7800 CFLocaleCopyPreferredLanguages();
7805 if ac_fn_c_try_link
"$LINENO"; then :
7806 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
7808 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
7810 rm -f core conftest.err conftest.
$ac_objext \
7811 conftest
$ac_exeext conftest.
$ac_ext
7812 LIBS
="$gt_save_LIBS"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
7815 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
7816 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7818 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
7822 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
7823 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7824 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
7836 case " $gt_needs " in
7837 *" need-formatstring-macros "*) gt_api_version
=3 ;;
7838 *" need-ngettext "*) gt_api_version
=2 ;;
7839 *) gt_api_version
=1 ;;
7841 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
7842 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
7844 if test "$USE_NLS" = "yes"; then
7845 gt_use_preinstalled_gnugettext
=no
7848 if test $gt_api_version -ge 3; then
7849 gt_revision_test_code
='
7850 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7851 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7853 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7856 gt_revision_test_code
=
7858 if test $gt_api_version -ge 2; then
7859 gt_expression_test_code
=' + * ngettext ("", "", 0)'
7861 gt_expression_test_code
=
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7865 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7866 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
7867 $as_echo_n "(cached) " >&6
7869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7872 #include <libintl.h>
7873 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7874 extern int _nl_msg_cat_cntr;
7875 extern int *_nl_domain_bindings;
7876 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7878 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7880 $gt_revision_test_code
7886 bindtextdomain ("", "");
7887 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7893 if ac_fn_c_try_link
"$LINENO"; then :
7894 eval "$gt_func_gnugettext_libc=yes"
7896 eval "$gt_func_gnugettext_libc=no"
7898 rm -f core conftest.err conftest.
$ac_objext \
7899 conftest
$ac_exeext conftest.
$ac_ext
7901 eval ac_res
=\$
$gt_func_gnugettext_libc
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7903 $as_echo "$ac_res" >&6; }
7905 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7911 am_save_CPPFLAGS
="$CPPFLAGS"
7913 for element
in $INCICONV; do
7915 for x
in $CPPFLAGS; do
7917 acl_save_prefix
="$prefix"
7918 prefix
="$acl_final_prefix"
7919 acl_save_exec_prefix
="$exec_prefix"
7920 exec_prefix
="$acl_final_exec_prefix"
7922 exec_prefix
="$acl_save_exec_prefix"
7923 prefix
="$acl_save_prefix"
7925 if test "X$x" = "X$element"; then
7930 if test -z "$haveit"; then
7931 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7937 $as_echo_n "checking for iconv... " >&6; }
7938 if ${am_cv_func_iconv+:} false
; then :
7939 $as_echo_n "(cached) " >&6
7942 am_cv_func_iconv
="no, consider installing GNU libiconv"
7944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7953 iconv_t cd = iconv_open("","");
7954 iconv(cd,NULL,NULL,NULL,NULL);
7960 if ac_fn_c_try_link
"$LINENO"; then :
7961 am_cv_func_iconv
=yes
7963 rm -f core conftest.err conftest.
$ac_objext \
7964 conftest
$ac_exeext conftest.
$ac_ext
7965 if test "$am_cv_func_iconv" != yes; then
7966 am_save_LIBS
="$LIBS"
7967 LIBS
="$LIBS $LIBICONV"
7968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7977 iconv_t cd = iconv_open("","");
7978 iconv(cd,NULL,NULL,NULL,NULL);
7984 if ac_fn_c_try_link
"$LINENO"; then :
7986 am_cv_func_iconv
=yes
7988 rm -f core conftest.err conftest.
$ac_objext \
7989 conftest
$ac_exeext conftest.
$ac_ext
7990 LIBS
="$am_save_LIBS"
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7995 $as_echo "$am_cv_func_iconv" >&6; }
7996 if test "$am_cv_func_iconv" = yes; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7998 $as_echo_n "checking for working iconv... " >&6; }
7999 if ${am_cv_func_iconv_works+:} false
; then :
8000 $as_echo_n "(cached) " >&6
8003 am_save_LIBS
="$LIBS"
8004 if test $am_cv_lib_iconv = yes; then
8005 LIBS
="$LIBS $LIBICONV"
8007 am_cv_func_iconv_works
=no
8008 for ac_iconv_const
in '' 'const'; do
8009 if test "$cross_compiling" = yes; then :
8011 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
8012 *) am_cv_func_iconv_works
="guessing yes" ;;
8015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8022 # define ICONV_CONST $ac_iconv_const
8029 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
8030 successful returns. This is even documented in
8031 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
8033 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8034 if (cd_utf8_to_88591 != (iconv_t)(-1))
8036 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8038 ICONV_CONST char *inptr = input;
8039 size_t inbytesleft = strlen (input);
8041 size_t outbytesleft = sizeof (buf);
8042 size_t res = iconv (cd_utf8_to_88591,
8043 &inptr, &inbytesleft,
8044 &outptr, &outbytesleft);
8047 iconv_close (cd_utf8_to_88591);
8050 /* Test against Solaris 10 bug: Failures are not distinguishable from
8051 successful returns. */
8053 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8054 if (cd_ascii_to_88591 != (iconv_t)(-1))
8056 static ICONV_CONST char input[] = "\263";
8058 ICONV_CONST char *inptr = input;
8059 size_t inbytesleft = strlen (input);
8061 size_t outbytesleft = sizeof (buf);
8062 size_t res = iconv (cd_ascii_to_88591,
8063 &inptr, &inbytesleft,
8064 &outptr, &outbytesleft);
8067 iconv_close (cd_ascii_to_88591);
8070 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8072 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8073 if (cd_88591_to_utf8 != (iconv_t)(-1))
8075 static ICONV_CONST char input[] = "\304";
8076 static char buf[2] = { (char)0xDE, (char)0xAD };
8077 ICONV_CONST char *inptr = input;
8078 size_t inbytesleft = 1;
8080 size_t outbytesleft = 1;
8081 size_t res = iconv (cd_88591_to_utf8,
8082 &inptr, &inbytesleft,
8083 &outptr, &outbytesleft);
8084 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8086 iconv_close (cd_88591_to_utf8);
8089 #if 0 /* This bug could be worked around by the caller. */
8090 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8092 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8093 if (cd_88591_to_utf8 != (iconv_t)(-1))
8095 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8097 ICONV_CONST char *inptr = input;
8098 size_t inbytesleft = strlen (input);
8100 size_t outbytesleft = sizeof (buf);
8101 size_t res = iconv (cd_88591_to_utf8,
8102 &inptr, &inbytesleft,
8103 &outptr, &outbytesleft);
8106 iconv_close (cd_88591_to_utf8);
8110 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8113 /* Try standardized names. */
8114 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8115 /* Try IRIX, OSF/1 names. */
8116 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8117 /* Try AIX names. */
8118 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8119 /* Try HP-UX names. */
8120 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8121 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8122 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8124 if (cd1 != (iconv_t)(-1))
8126 if (cd2 != (iconv_t)(-1))
8128 if (cd3 != (iconv_t)(-1))
8130 if (cd4 != (iconv_t)(-1))
8139 if ac_fn_c_try_run
"$LINENO"; then :
8140 am_cv_func_iconv_works
=yes
8142 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8143 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8146 test "$am_cv_func_iconv_works" = no ||
break
8148 LIBS
="$am_save_LIBS"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8152 $as_echo "$am_cv_func_iconv_works" >&6; }
8153 case "$am_cv_func_iconv_works" in
8154 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
8155 *) am_func_iconv
=yes ;;
8158 am_func_iconv
=no am_cv_lib_iconv
=no
8160 if test "$am_func_iconv" = yes; then
8162 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8165 if test "$am_cv_lib_iconv" = yes; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8167 $as_echo_n "checking how to link with libiconv... " >&6; }
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8169 $as_echo "$LIBICONV" >&6; }
8171 CPPFLAGS
="$am_save_CPPFLAGS"
8183 acl_save_prefix
="$prefix"
8184 prefix
="$acl_final_prefix"
8185 acl_save_exec_prefix
="$exec_prefix"
8186 exec_prefix
="$acl_final_exec_prefix"
8188 eval additional_includedir
=\"$includedir\"
8189 eval additional_libdir
=\"$libdir\"
8191 exec_prefix
="$acl_save_exec_prefix"
8192 prefix
="$acl_save_prefix"
8195 # Check whether --with-libintl-prefix was given.
8196 if test "${with_libintl_prefix+set}" = set; then :
8197 withval
=$with_libintl_prefix;
8198 if test "X$withval" = "Xno"; then
8201 if test "X$withval" = "X"; then
8203 acl_save_prefix
="$prefix"
8204 prefix
="$acl_final_prefix"
8205 acl_save_exec_prefix
="$exec_prefix"
8206 exec_prefix
="$acl_final_exec_prefix"
8208 eval additional_includedir
=\"$includedir\"
8209 eval additional_libdir
=\"$libdir\"
8211 exec_prefix
="$acl_save_exec_prefix"
8212 prefix
="$acl_save_prefix"
8215 additional_includedir
="$withval/include"
8216 additional_libdir
="$withval/lib"
8223 # Check whether --with-libintl-type was given.
8224 if test "${with_libintl_type+set}" = set; then :
8225 withval
=$with_libintl_type; with_libintl_type
=$withval
8227 with_libintl_type
=auto
8230 lib_type
=`eval echo \$with_libintl_type`
8237 names_already_handled
=
8238 names_next_round
='intl '
8239 while test -n "$names_next_round"; do
8240 names_this_round
="$names_next_round"
8242 for name
in $names_this_round; do
8244 for n
in $names_already_handled; do
8245 if test "$n" = "$name"; then
8250 if test -z "$already_handled"; then
8251 names_already_handled
="$names_already_handled $name"
8252 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8253 eval value
=\"\
$HAVE_LIB$uppername\"
8254 if test -n "$value"; then
8255 if test "$value" = yes; then
8256 eval value
=\"\
$LIB$uppername\"
8257 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
8258 eval value
=\"\
$LTLIB$uppername\"
8259 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
8268 if test $use_additional = yes; then
8269 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8270 found_dir
="$additional_libdir"
8271 found_so
="$additional_libdir/lib$name.$shlibext"
8272 if test -f "$additional_libdir/lib$name.la"; then
8273 found_la
="$additional_libdir/lib$name.la"
8275 elif test x
$lib_type != xshared
; then
8276 if test -f "$additional_libdir/lib$name.$libext"; then
8277 found_dir
="$additional_libdir"
8278 found_a
="$additional_libdir/lib$name.$libext"
8279 if test -f "$additional_libdir/lib$name.la"; then
8280 found_la
="$additional_libdir/lib$name.la"
8285 if test "X$found_dir" = "X"; then
8286 for x
in $LDFLAGS $LTLIBINTL; 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"
8298 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8299 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8301 found_so
="$dir/lib$name.$shlibext"
8302 if test -f "$dir/lib$name.la"; then
8303 found_la
="$dir/lib$name.la"
8305 elif test x
$lib_type != xshared
; then
8306 if test -f "$dir/lib$name.$libext"; then
8308 found_a
="$dir/lib$name.$libext"
8309 if test -f "$dir/lib$name.la"; then
8310 found_la
="$dir/lib$name.la"
8316 if test "X$found_dir" != "X"; then
8321 if test "X$found_dir" != "X"; then
8322 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8323 if test "X$found_so" != "X"; then
8324 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8325 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8328 for x
in $ltrpathdirs; do
8329 if test "X$x" = "X$found_dir"; then
8334 if test -z "$haveit"; then
8335 ltrpathdirs
="$ltrpathdirs $found_dir"
8337 if test "$hardcode_direct" = yes; then
8338 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8340 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8341 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8343 for x
in $rpathdirs; do
8344 if test "X$x" = "X$found_dir"; then
8349 if test -z "$haveit"; then
8350 rpathdirs
="$rpathdirs $found_dir"
8354 for x
in $LDFLAGS $LIBINTL; do
8356 acl_save_prefix
="$prefix"
8357 prefix
="$acl_final_prefix"
8358 acl_save_exec_prefix
="$exec_prefix"
8359 exec_prefix
="$acl_final_exec_prefix"
8361 exec_prefix
="$acl_save_exec_prefix"
8362 prefix
="$acl_save_prefix"
8364 if test "X$x" = "X-L$found_dir"; then
8369 if test -z "$haveit"; then
8370 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8372 if test "$hardcode_minus_L" != no
; then
8373 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8375 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8381 if test "X$found_a" != "X"; then
8382 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
8384 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8387 additional_includedir
=
8388 case "$found_dir" in
8390 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8391 additional_includedir
="$basedir/include"
8394 if test "X$additional_includedir" != "X"; then
8395 if test "X$additional_includedir" != "X/usr/include"; then
8397 if test "X$additional_includedir" = "X/usr/local/include"; then
8398 if test -n "$GCC"; then
8400 linux
*) haveit
=yes;;
8404 if test -z "$haveit"; then
8405 for x
in $CPPFLAGS $INCINTL; do
8407 acl_save_prefix
="$prefix"
8408 prefix
="$acl_final_prefix"
8409 acl_save_exec_prefix
="$exec_prefix"
8410 exec_prefix
="$acl_final_exec_prefix"
8412 exec_prefix
="$acl_save_exec_prefix"
8413 prefix
="$acl_save_prefix"
8415 if test "X$x" = "X-I$additional_includedir"; then
8420 if test -z "$haveit"; then
8421 if test -d "$additional_includedir"; then
8422 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8428 if test -n "$found_la"; then
8429 save_libdir
="$libdir"
8431 */* |
*\\*) .
"$found_la" ;;
8432 *) .
"./$found_la" ;;
8434 libdir
="$save_libdir"
8435 for dep
in $dependency_libs; do
8438 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8439 if test "X$additional_libdir" != "X/usr/lib"; then
8441 if test "X$additional_libdir" = "X/usr/local/lib"; then
8442 if test -n "$GCC"; then
8444 linux
*) haveit
=yes;;
8448 if test -z "$haveit"; then
8450 for x
in $LDFLAGS $LIBINTL; do
8452 acl_save_prefix
="$prefix"
8453 prefix
="$acl_final_prefix"
8454 acl_save_exec_prefix
="$exec_prefix"
8455 exec_prefix
="$acl_final_exec_prefix"
8457 exec_prefix
="$acl_save_exec_prefix"
8458 prefix
="$acl_save_prefix"
8460 if test "X$x" = "X-L$additional_libdir"; then
8465 if test -z "$haveit"; then
8466 if test -d "$additional_libdir"; then
8467 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8471 for x
in $LDFLAGS $LTLIBINTL; do
8473 acl_save_prefix
="$prefix"
8474 prefix
="$acl_final_prefix"
8475 acl_save_exec_prefix
="$exec_prefix"
8476 exec_prefix
="$acl_final_exec_prefix"
8478 exec_prefix
="$acl_save_exec_prefix"
8479 prefix
="$acl_save_prefix"
8481 if test "X$x" = "X-L$additional_libdir"; then
8486 if test -z "$haveit"; then
8487 if test -d "$additional_libdir"; then
8488 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8495 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8496 if test "$enable_rpath" != no
; then
8498 for x
in $rpathdirs; do
8499 if test "X$x" = "X$dir"; then
8504 if test -z "$haveit"; then
8505 rpathdirs
="$rpathdirs $dir"
8508 for x
in $ltrpathdirs; do
8509 if test "X$x" = "X$dir"; then
8514 if test -z "$haveit"; then
8515 ltrpathdirs
="$ltrpathdirs $dir"
8520 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8523 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8526 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
8527 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8533 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8534 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8535 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8537 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
8538 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
8545 if test "X$rpathdirs" != "X"; then
8546 if test -n "$hardcode_libdir_separator"; then
8548 for found_dir
in $rpathdirs; do
8549 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8551 acl_save_libdir
="$libdir"
8553 eval flag
=\"$hardcode_libdir_flag_spec\"
8554 libdir
="$acl_save_libdir"
8555 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8557 for found_dir
in $rpathdirs; do
8558 acl_save_libdir
="$libdir"
8560 eval flag
=\"$hardcode_libdir_flag_spec\"
8561 libdir
="$acl_save_libdir"
8562 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8566 if test "X$ltrpathdirs" != "X"; then
8567 for found_dir
in $ltrpathdirs; do
8568 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8573 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8574 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
8575 $as_echo_n "(cached) " >&6
8577 gt_save_CPPFLAGS
="$CPPFLAGS"
8578 CPPFLAGS
="$CPPFLAGS $INCINTL"
8579 gt_save_LIBS
="$LIBS"
8580 LIBS
="$LIBS $LIBINTL"
8581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8584 #include <libintl.h>
8585 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8586 extern int _nl_msg_cat_cntr;
8591 const char *_nl_expand_alias (const char *);
8592 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8594 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8596 $gt_revision_test_code
8602 bindtextdomain ("", "");
8603 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8609 if ac_fn_c_try_link
"$LINENO"; then :
8610 eval "$gt_func_gnugettext_libintl=yes"
8612 eval "$gt_func_gnugettext_libintl=no"
8614 rm -f core conftest.err conftest.
$ac_objext \
8615 conftest
$ac_exeext conftest.
$ac_ext
8616 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8617 LIBS
="$LIBS $LIBICONV"
8618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8621 #include <libintl.h>
8622 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8623 extern int _nl_msg_cat_cntr;
8628 const char *_nl_expand_alias (const char *);
8629 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8631 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8633 $gt_revision_test_code
8639 bindtextdomain ("", "");
8640 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8646 if ac_fn_c_try_link
"$LINENO"; then :
8647 LIBINTL
="$LIBINTL $LIBICONV"
8648 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
8649 eval "$gt_func_gnugettext_libintl=yes"
8652 rm -f core conftest.err conftest.
$ac_objext \
8653 conftest
$ac_exeext conftest.
$ac_ext
8655 CPPFLAGS
="$gt_save_CPPFLAGS"
8656 LIBS
="$gt_save_LIBS"
8658 eval ac_res
=\$
$gt_func_gnugettext_libintl
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8660 $as_echo "$ac_res" >&6; }
8663 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8664 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8665 && test "$PACKAGE" != gettext-runtime \
8666 && test "$PACKAGE" != gettext-tools
; }; then
8667 gt_use_preinstalled_gnugettext
=yes
8676 if test -n "$INTL_MACOSX_LIBS"; then
8677 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8678 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
8679 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
8680 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
8684 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8685 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
8687 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8695 $as_echo_n "checking whether to use NLS... " >&6; }
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8697 $as_echo "$USE_NLS" >&6; }
8698 if test "$USE_NLS" = "yes"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8700 $as_echo_n "checking where the gettext function comes from... " >&6; }
8701 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8702 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8703 gt_source
="external libintl"
8708 gt_source
="included intl directory"
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8711 $as_echo "$gt_source" >&6; }
8714 if test "$USE_NLS" = "yes"; then
8716 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8717 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8719 $as_echo_n "checking how to link with libintl... " >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8721 $as_echo "$LIBINTL" >&6; }
8723 for element
in $INCINTL; do
8725 for x
in $CPPFLAGS; do
8727 acl_save_prefix
="$prefix"
8728 prefix
="$acl_final_prefix"
8729 acl_save_exec_prefix
="$exec_prefix"
8730 exec_prefix
="$acl_final_exec_prefix"
8732 exec_prefix
="$acl_save_exec_prefix"
8733 prefix
="$acl_save_prefix"
8735 if test "X$x" = "X$element"; then
8740 if test -z "$haveit"; then
8741 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8748 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8751 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8780 $as_echo_n "checking whether NLS is requested... " >&6; }
8781 if test x
"$USE_NLS" != xyes
; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8786 $as_echo "yes" >&6; }
8788 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8792 $as_echo_n "checking for catalogs to be installed... " >&6; }
8793 # Look for .po and .gmo files in the source directory.
8796 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
8797 # If there aren't any .gmo files the shell will give us the
8798 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8800 case "$cat" in *\
**)
8803 # The quadruple backslash is collapsed to a double backslash
8804 # by the backticks, then collapsed again by the double quotes,
8805 # leaving us with one backslash in the sed expression (right
8806 # before the dot that mustn't act as a wildcard).
8807 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8808 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
8809 # The user is allowed to set LINGUAS to a list of languages to
8810 # install catalogs for. If it's empty that means "all of them."
8811 if test "x$LINGUAS" = x
; then
8812 CATALOGS
="$CATALOGS $cat"
8813 XLINGUAS
="$XLINGUAS $lang"
8815 case "$LINGUAS" in *$lang*)
8816 CATALOGS
="$CATALOGS $cat"
8817 XLINGUAS
="$XLINGUAS $lang"
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8824 $as_echo "$LINGUAS" >&6; }
8840 # Prepare PATH_SEPARATOR.
8841 # The user is always right.
8842 if test "${PATH_SEPARATOR+set}" != set; then
8843 echo "#! /bin/sh" >conf$$.sh
8844 echo "exit 0" >>conf$$.sh
8846 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8854 # Find out how to test for executable files. Don't use a zero-byte file,
8855 # as systems may use methods other than mode bits to determine executability.
8856 cat >conf$$.
file <<_ASEOF
8860 chmod +x conf$$.
file
8861 if test -x conf$$.
file >/dev
/null
2>&1; then
8862 ac_executable_p
="test -x"
8864 ac_executable_p
="test -f"
8868 # Extract the first word of "msgfmt", so it can be a program name with args.
8869 set dummy msgfmt
; ac_word
=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if ${ac_cv_path_MSGFMT+:} false
; then :
8873 $as_echo_n "(cached) " >&6
8877 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8880 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8881 for ac_dir
in $PATH; do
8883 test -z "$ac_dir" && ac_dir
=.
8884 for ac_exec_ext
in '' $ac_executable_extensions; do
8885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8886 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
8887 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
8888 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
8895 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8899 MSGFMT
="$ac_cv_path_MSGFMT"
8900 if test "$MSGFMT" != ":"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8902 $as_echo "$MSGFMT" >&6; }
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8908 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8909 set dummy gmsgfmt
; ac_word
=$2
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911 $as_echo_n "checking for $ac_word... " >&6; }
8912 if ${ac_cv_path_GMSGFMT+:} false
; then :
8913 $as_echo_n "(cached) " >&6
8917 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8924 test -z "$as_dir" && as_dir
=.
8925 for ac_exec_ext
in '' $ac_executable_extensions; do
8926 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8927 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8939 GMSGFMT
=$ac_cv_path_GMSGFMT
8940 if test -n "$GMSGFMT"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8942 $as_echo "$GMSGFMT" >&6; }
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8951 # Prepare PATH_SEPARATOR.
8952 # The user is always right.
8953 if test "${PATH_SEPARATOR+set}" != set; then
8954 echo "#! /bin/sh" >conf$$.sh
8955 echo "exit 0" >>conf$$.sh
8957 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8965 # Find out how to test for executable files. Don't use a zero-byte file,
8966 # as systems may use methods other than mode bits to determine executability.
8967 cat >conf$$.
file <<_ASEOF
8971 chmod +x conf$$.
file
8972 if test -x conf$$.
file >/dev
/null
2>&1; then
8973 ac_executable_p
="test -x"
8975 ac_executable_p
="test -f"
8979 # Extract the first word of "xgettext", so it can be a program name with args.
8980 set dummy xgettext
; ac_word
=$2
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982 $as_echo_n "checking for $ac_word... " >&6; }
8983 if ${ac_cv_path_XGETTEXT+:} false
; then :
8984 $as_echo_n "(cached) " >&6
8988 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8991 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8992 for ac_dir
in $PATH; do
8994 test -z "$ac_dir" && ac_dir
=.
8995 for ac_exec_ext
in '' $ac_executable_extensions; do
8996 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8997 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
8998 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
8999 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
9006 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
9010 XGETTEXT
="$ac_cv_path_XGETTEXT"
9011 if test "$XGETTEXT" != ":"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9013 $as_echo "$XGETTEXT" >&6; }
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9022 # Prepare PATH_SEPARATOR.
9023 # The user is always right.
9024 if test "${PATH_SEPARATOR+set}" != set; then
9025 echo "#! /bin/sh" >conf$$.sh
9026 echo "exit 0" >>conf$$.sh
9028 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9036 # Find out how to test for executable files. Don't use a zero-byte file,
9037 # as systems may use methods other than mode bits to determine executability.
9038 cat >conf$$.
file <<_ASEOF
9042 chmod +x conf$$.
file
9043 if test -x conf$$.
file >/dev
/null
2>&1; then
9044 ac_executable_p
="test -x"
9046 ac_executable_p
="test -f"
9050 # Extract the first word of "msgmerge", so it can be a program name with args.
9051 set dummy msgmerge
; ac_word
=$2
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053 $as_echo_n "checking for $ac_word... " >&6; }
9054 if ${ac_cv_path_MSGMERGE+:} false
; then :
9055 $as_echo_n "(cached) " >&6
9059 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
9062 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
9063 for ac_dir
in $PATH; do
9065 test -z "$ac_dir" && ac_dir
=.
9066 for ac_exec_ext
in '' $ac_executable_extensions; do
9067 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9068 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
9069 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
9076 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
9080 MSGMERGE
="$ac_cv_path_MSGMERGE"
9081 if test "$MSGMERGE" != ":"; then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9083 $as_echo "$MSGMERGE" >&6; }
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086 $as_echo "no" >&6; }
9090 if test "$GMSGFMT" != ":"; then
9091 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
9092 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
9095 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
9097 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
9102 if test "$XGETTEXT" != ":"; then
9103 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
9104 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
9108 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
9114 ac_config_commands
="$ac_config_commands default-2"
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9119 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9120 if ${ac_cv_c_bigendian+:} false
; then :
9121 $as_echo_n "(cached) " >&6
9123 ac_cv_c_bigendian
=unknown
9124 # See if we're dealing with a universal compiler.
9125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 #ifndef __APPLE_CC__
9128 not a universal capable compiler
9133 if ac_fn_c_try_compile
"$LINENO"; then :
9135 # Check for potential -arch flags. It is not universal unless
9136 # there are at least two -arch flags with different values.
9139 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9140 if test -n "$ac_prev"; then
9142 i?
86 | x86_64 | ppc | ppc64
)
9143 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9146 ac_cv_c_bigendian
=universal
9152 elif test "x$ac_word" = "x-arch"; then
9157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9158 if test $ac_cv_c_bigendian = unknown
; then
9159 # See if sys/param.h defines the BYTE_ORDER macro.
9160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 #include <sys/types.h>
9163 #include <sys/param.h>
9168 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9169 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9178 if ac_fn_c_try_compile
"$LINENO"; then :
9179 # It does; now see whether it defined to BIG_ENDIAN or not.
9180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9182 #include <sys/types.h>
9183 #include <sys/param.h>
9188 #if BYTE_ORDER != BIG_ENDIAN
9196 if ac_fn_c_try_compile
"$LINENO"; then :
9197 ac_cv_c_bigendian
=yes
9199 ac_cv_c_bigendian
=no
9201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9205 if test $ac_cv_c_bigendian = unknown
; then
9206 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9214 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9222 if ac_fn_c_try_compile
"$LINENO"; then :
9223 # It does; now see whether it defined to _BIG_ENDIAN or not.
9224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9239 if ac_fn_c_try_compile
"$LINENO"; then :
9240 ac_cv_c_bigendian
=yes
9242 ac_cv_c_bigendian
=no
9244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9248 if test $ac_cv_c_bigendian = unknown
; then
9249 # Compile a test program.
9250 if test "$cross_compiling" = yes; then :
9251 # Try to guess by grepping values from an object file.
9252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254 short int ascii_mm[] =
9255 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9256 short int ascii_ii[] =
9257 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9258 int use_ascii (int i) {
9259 return ascii_mm[i] + ascii_ii[i];
9261 short int ebcdic_ii[] =
9262 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9263 short int ebcdic_mm[] =
9264 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9265 int use_ebcdic (int i) {
9266 return ebcdic_mm[i] + ebcdic_ii[i];
9273 return use_ascii (foo) == use_ebcdic (foo);
9278 if ac_fn_c_try_compile
"$LINENO"; then :
9279 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9280 ac_cv_c_bigendian
=yes
9282 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9283 if test "$ac_cv_c_bigendian" = unknown
; then
9284 ac_cv_c_bigendian
=no
9286 # finding both strings is unlikely to happen, but who knows?
9287 ac_cv_c_bigendian
=unknown
9291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9295 $ac_includes_default
9300 /* Are we little or big endian? From Harbison&Steele. */
9304 char c[sizeof (long int)];
9307 return u.c[sizeof (long int) - 1] == 1;
9313 if ac_fn_c_try_run
"$LINENO"; then :
9314 ac_cv_c_bigendian
=no
9316 ac_cv_c_bigendian
=yes
9318 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9319 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9325 $as_echo "$ac_cv_c_bigendian" >&6; }
9326 case $ac_cv_c_bigendian in #(
9328 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9334 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9338 as_fn_error $?
"unknown endianness
9339 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9345 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
9347 NATIVE_LINKER_FALSE
='#'
9349 NATIVE_LINKER_TRUE
='#'
9350 NATIVE_LINKER_FALSE
=
9353 if test "$GCC" = yes; then
9362 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
9363 NATIVE_OR_CROSS_LINKER_TRUE
=
9364 NATIVE_OR_CROSS_LINKER_FALSE
='#'
9366 NATIVE_OR_CROSS_LINKER_TRUE
='#'
9367 NATIVE_OR_CROSS_LINKER_FALSE
=
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
9372 $as_echo_n "checking whether static linking works... " >&6; }
9373 if ${gold_cv_lib_static+:} false
; then :
9374 $as_echo_n "(cached) " >&6
9376 LDFLAGS_hold
=$LDFLAGS
9377 LDFLAGS
="$LDFLAGS -static"
9378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9390 if ac_fn_c_try_link
"$LINENO"; then :
9391 gold_cv_lib_static
=yes
9393 gold_cv_lib_static
=no
9395 rm -f core conftest.err conftest.
$ac_objext \
9396 conftest
$ac_exeext conftest.
$ac_ext
9397 LDFLAGS
=$LDFLAGS_hold
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
9400 $as_echo "$gold_cv_lib_static" >&6; }
9401 if test "$gold_cv_lib_static" = "yes"; then
9403 HAVE_STATIC_FALSE
='#'
9405 HAVE_STATIC_TRUE
='#'
9418 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
=
9419 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
='#'
9421 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
='#'
9422 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
=
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
9427 $as_echo_n "checking for gcc >= 4.1... " >&6; }
9428 if ${gold_cv_prog_gcc41+:} false
; then :
9429 $as_echo_n "(cached) " >&6
9431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9434 #if !defined __GNUC__
9436 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
9441 if ac_fn_c_try_compile
"$LINENO"; then :
9442 gold_cv_prog_gcc41
=yes
9444 gold_cv_prog_gcc41
=no
9446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
9449 $as_echo "$gold_cv_prog_gcc41" >&6; }
9451 save_CFLAGS
="$CFLAGS"
9452 CFLAGS
="$CFLAGS -mcmodel=medium"
9453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9457 if ac_fn_c_try_compile
"$LINENO"; then :
9458 have_mcmodel_medium
=yes
9460 have_mcmodel_medium
=no
9462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9463 CFLAGS
="$save_CFLAGS"
9464 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
9465 MCMODEL_MEDIUM_TRUE
=
9466 MCMODEL_MEDIUM_FALSE
='#'
9468 MCMODEL_MEDIUM_TRUE
='#'
9469 MCMODEL_MEDIUM_FALSE
=
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
9474 $as_echo_n "checking for gcc >= 9... " >&6; }
9475 if ${gold_cv_prog_gcc9+:} false
; then :
9476 $as_echo_n "(cached) " >&6
9478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9481 #if !defined __GNUC__ || __GNUC__ < 9
9486 if ac_fn_c_try_compile
"$LINENO"; then :
9487 gold_cv_prog_gcc9
=yes
9489 gold_cv_prog_gcc9
=no
9491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
9494 $as_echo "$gold_cv_prog_gcc9" >&6; }
9495 if test "$gold_cv_prog_gcc9" = "yes"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
9505 $as_echo_n "checking for -fcf-protection... " >&6; }
9506 if ${gold_cv_cflags_cf_protection+:} false
; then :
9507 $as_echo_n "(cached) " >&6
9509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9512 #if !defined __x86_64__ || !defined __CET__
9517 if ac_fn_c_try_compile
"$LINENO"; then :
9518 gold_cv_cflags_cf_protection
=yes
9520 gold_cv_cflags_cf_protection
=no
9522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
9525 $as_echo "$gold_cv_cflags_cf_protection" >&6; }
9526 if test "$gold_cv_cflags_cf_protection" = "yes"; then
9527 CFLAGS_CF_PROTECTION_TRUE
=
9528 CFLAGS_CF_PROTECTION_FALSE
='#'
9530 CFLAGS_CF_PROTECTION_TRUE
='#'
9531 CFLAGS_CF_PROTECTION_FALSE
=
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
9536 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
9537 if ${gold_cv_merge_constants+:} false
; then :
9538 $as_echo_n "(cached) " >&6
9541 save_CFLAGS
="$CFLAGS"
9542 CFLAGS
="$CFLAGS -fmerge-constants"
9543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545 const char *s = "foo";
9547 if ac_fn_c_try_compile
"$LINENO"; then :
9548 gold_cv_merge_constants
=yes
9550 gold_cv_merge_constants
=no
9552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9553 CFLAGS
="$save_CFLAGS"
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
9556 $as_echo "$gold_cv_merge_constants" >&6; }
9558 if test "$gold_cv_merge_constants" = yes; then :
9559 MERGE_CONSTANTS_FLAG
=-fmerge-constants
9561 MERGE_CONSTANTS_FLAG
=
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
9565 $as_echo_n "checking for thread support... " >&6; }
9566 if ${gold_cv_c_thread+:} false
; then :
9567 $as_echo_n "(cached) " >&6
9569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9573 if ac_fn_c_try_compile
"$LINENO"; then :
9574 gold_cv_c_thread
=yes
9578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
9581 $as_echo "$gold_cv_c_thread" >&6; }
9583 if test "$gold_cv_c_thread" = "yes"; then
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
9593 $as_echo_n "checking for glibc >= 2.4... " >&6; }
9594 if ${gold_cv_lib_glibc24+:} false
; then :
9595 $as_echo_n "(cached) " >&6
9597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9600 #include <features.h>
9601 #if !defined __GLIBC__
9603 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
9608 if ac_fn_c_try_compile
"$LINENO"; then :
9609 gold_cv_lib_glibc24
=yes
9611 gold_cv_lib_glibc24
=no
9613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
9616 $as_echo "$gold_cv_lib_glibc24" >&6; }
9618 if test "$gold_cv_lib_glibc24" = "yes"; then
9620 STATIC_TLS_FALSE
='#'
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
9628 $as_echo_n "checking for omp support... " >&6; }
9629 if ${gold_cv_c_threadprivate+:} false
; then :
9630 $as_echo_n "(cached) " >&6
9632 save_CFLAGS
="$CFLAGS"
9633 CFLAGS
="$CFLAGS -fopenmp"
9634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9639 #pragma omp threadprivate (i)
9642 if ac_fn_c_try_compile
"$LINENO"; then :
9643 gold_cv_c_threadprivate
=yes
9645 gold_cv_c_threadprivate
=no
9647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9648 CFLAGS
="$save_CFLAGS"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
9651 $as_echo "$gold_cv_c_threadprivate" >&6; }
9652 if test "$gold_cv_c_threadprivate" = "yes"; then
9654 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
9657 if test "$gold_cv_c_threadprivate" = "yes"; then
9659 OMP_SUPPORT_FALSE
='#'
9661 OMP_SUPPORT_TRUE
='#'
9666 save_CFLAGS
="$CFLAGS"
9667 CFLAGS
="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
9668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9678 if ac_fn_c_try_compile
"$LINENO"; then :
9683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9684 CFLAGS
="$save_CFLAGS"
9685 if test "$have_tls_gnu2" = "yes"; then
9686 TLS_GNU2_DIALECT_TRUE
=
9687 TLS_GNU2_DIALECT_FALSE
='#'
9689 TLS_GNU2_DIALECT_TRUE
='#'
9690 TLS_GNU2_DIALECT_FALSE
=
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
9695 $as_echo_n "checking for glibc >= 2.9... " >&6; }
9696 if ${gold_cv_lib_glibc29+:} false
; then :
9697 $as_echo_n "(cached) " >&6
9699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9702 #include <features.h>
9703 #if !defined __GLIBC__
9705 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
9710 if ac_fn_c_try_compile
"$LINENO"; then :
9711 gold_cv_lib_glibc29
=yes
9713 gold_cv_lib_glibc29
=no
9715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
9718 $as_echo "$gold_cv_lib_glibc29" >&6; }
9720 if test "$gold_cv_lib_glibc29" = "yes"; then
9721 TLS_DESCRIPTORS_TRUE
=
9722 TLS_DESCRIPTORS_FALSE
='#'
9724 TLS_DESCRIPTORS_TRUE
='#'
9725 TLS_DESCRIPTORS_FALSE
=
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
9730 $as_echo_n "checking for -frandom-seed support... " >&6; }
9731 if ${gold_cv_c_random_seed+:} false
; then :
9732 $as_echo_n "(cached) " >&6
9734 save_CFLAGS
="$CFLAGS"
9735 CFLAGS
="$CFLAGS -frandom-seed=foo"
9736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9740 if ac_fn_c_try_compile
"$LINENO"; then :
9741 gold_cv_c_random_seed
=yes
9743 gold_cv_c_random_seed
=no
9745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9746 CFLAGS
="$save_CFLAGS"
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
9749 $as_echo "$gold_cv_c_random_seed" >&6; }
9750 if test "$gold_cv_c_random_seed" = "yes"; then
9751 # In Makefile, '$@' will be expanded to be the name of the file
9752 # being built, providing a unique seed for each file.
9753 RANDOM_SEED_CFLAGS
=-frandom-seed=\$@
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
9758 $as_echo_n "checking for glibc ifunc support... " >&6; }
9759 if ${gold_cv_lib_glibc_ifunc+:} false
; then :
9760 $as_echo_n "(cached) " >&6
9762 save_LDFLAGS
="$LDFLAGS"
9763 LDFLAGS
="$LDFLAGS -static"
9764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9767 #include <features.h>
9768 #if !defined __GLIBC__
9770 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
9773 void func (void) { }
9775 __asm__(".type invoke, %gnu_indirect_function");
9776 typedef void (*funcptr) (void);
9777 funcptr dispatch (void) __asm__ ("invoke");
9778 funcptr dispatch (void) { return &func; }
9788 if ac_fn_c_try_link
"$LINENO"; then :
9790 if ${NM} conftest
$EXEEXT |
grep "__rela\?_iplt_start" >/dev
/null
2>&1; then
9791 gold_cv_lib_glibc_ifunc
=both
9793 gold_cv_lib_glibc_ifunc
=dyn
9796 gold_cv_lib_glibc_ifunc
=no
9798 rm -f core conftest.err conftest.
$ac_objext \
9799 conftest
$ac_exeext conftest.
$ac_ext
9800 LDFLAGS
="$save_LDFLAGS"
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
9803 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
9805 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
9813 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
9815 IFUNC_STATIC_FALSE
='#'
9817 IFUNC_STATIC_TRUE
='#'
9823 # Set the 'development' global.
9824 .
$srcdir/..
/bfd
/development.sh
9826 # Set acp_cpp_for_build variable
9827 ac_cpp_for_build
="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
9829 # Default set of GCC warnings to enable.
9830 GCC_WARN_CFLAGS
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9831 GCC_WARN_CFLAGS_FOR_BUILD
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9833 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9839 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
9842 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wshadow"
9847 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9853 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
9856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9861 $EGREP "^__clang__$" >/dev
/null
2>&1; then :
9862 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wstack-usage=262144"
9870 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
9871 WARN_WRITE_STRINGS
=""
9872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9877 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
9880 WARN_WRITE_STRINGS
="-Wwrite-strings"
9885 # Verify CC_FOR_BUILD to be compatible with warning flags
9887 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9892 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9893 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
9896 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
9901 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9906 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9907 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
9910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9914 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9915 $EGREP "^__clang__$" >/dev
/null
2>&1; then :
9916 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
9924 # Check whether --enable-werror was given.
9925 if test "${enable_werror+set}" = set; then :
9926 enableval
=$enable_werror; case "${enableval}" in
9927 yes | y
) ERROR_ON_WARNING
="yes" ;;
9928 no | n
) ERROR_ON_WARNING
="no" ;;
9929 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9934 # Disable -Wformat by default when using gcc on mingw
9937 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9938 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wno-format"
9939 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
9945 # Enable -Werror by default when using gcc. Turn it off for releases.
9946 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true
; then
9947 ERROR_ON_WARNING
=yes
9951 if test "${ERROR_ON_WARNING}" = yes ; then
9952 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Werror"
9953 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
9954 NO_WERROR
="-Wno-error"
9957 if test "${GCC}" = yes ; then
9958 WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
9959 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}"
9962 # Check whether --enable-build-warnings was given.
9963 if test "${enable_build_warnings+set}" = set; then :
9964 enableval
=$enable_build_warnings; case "${enableval}" in
9965 yes) WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
9966 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}";;
9967 no
) if test "${GCC}" = yes ; then
9969 WARN_CFLAGS_FOR_BUILD
="-w"
9971 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9972 WARN_CFLAGS
="${GCC_WARN_CFLAGS} ${t}"
9973 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
9974 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9975 WARN_CFLAGS
="${t} ${GCC_WARN_CFLAGS}"
9976 WARN_CFLAGS_FOR_BUILD
="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
9977 *) WARN_CFLAGS
=`echo "${enableval}" | sed -e "s/,/ /g"`
9978 WARN_CFLAGS_FOR_BUILD
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9983 if test x
"$silent" != x
"yes" && test x
"$WARN_CFLAGS" != x
""; then
9984 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9993 WARN_CXXFLAGS
=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
9997 # Check whether --with-gold-ldflags was given.
9998 if test "${with_gold_ldflags+set}" = set; then :
9999 withval
=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
10002 GOLD_LDFLAGS
=$withval
10011 # Check whether --with-gold-ldadd was given.
10012 if test "${with_gold_ldadd+set}" = set; then :
10013 withval
=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
10016 GOLD_LDADD
=$withval
10024 LFS_CFLAGS
="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
10027 for ac_header
in sys
/mman.h
10029 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
10030 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10031 cat >>confdefs.h
<<_ACEOF
10032 #define HAVE_SYS_MMAN_H 1
10039 for ac_func
in chsize mmap link
10041 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10042 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10043 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10044 cat >>confdefs.h
<<_ACEOF
10045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10051 ac_fn_c_check_func
"$LINENO" "pread" "ac_cv_func_pread"
10052 if test "x$ac_cv_func_pread" = xyes
; then :
10053 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
10056 case " $LIBOBJS " in
10057 *" pread.$ac_objext "* ) ;;
10058 *) LIBOBJS
="$LIBOBJS pread.$ac_objext"
10064 ac_fn_c_check_func
"$LINENO" "ftruncate" "ac_cv_func_ftruncate"
10065 if test "x$ac_cv_func_ftruncate" = xyes
; then :
10066 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
10069 case " $LIBOBJS " in
10070 *" ftruncate.$ac_objext "* ) ;;
10071 *) LIBOBJS
="$LIBOBJS ftruncate.$ac_objext"
10077 ac_fn_c_check_func
"$LINENO" "ffsll" "ac_cv_func_ffsll"
10078 if test "x$ac_cv_func_ffsll" = xyes
; then :
10079 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
10082 case " $LIBOBJS " in
10083 *" ffsll.$ac_objext "* ) ;;
10084 *) LIBOBJS
="$LIBOBJS ffsll.$ac_objext"
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
10093 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
10094 if ${gold_cv_lib_mremap_maymove+:} false
; then :
10095 $as_echo_n "(cached) " >&6
10097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h. */
10101 #include <sys/mman.h>
10102 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
10112 if ac_fn_c_try_link
"$LINENO"; then :
10113 gold_cv_lib_mremap_maymove
=yes
10115 gold_cv_lib_mremap_maymove
=no
10117 rm -f core conftest.err conftest.
$ac_objext \
10118 conftest
$ac_exeext conftest.
$ac_ext
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
10121 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
10122 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
10124 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
10127 case " $LIBOBJS " in
10128 *" mremap.$ac_objext "* ) ;;
10129 *) LIBOBJS
="$LIBOBJS mremap.$ac_objext"
10135 # Link in zlib/zstd if we can. This allows us to write compressed sections.
10137 # Use the system's zlib library.
10138 zlibdir
="-L\$(top_builddir)/../zlib"
10139 zlibinc
="-I\$(top_srcdir)/../zlib"
10141 # Check whether --with-system-zlib was given.
10142 if test "${with_system_zlib+set}" = set; then :
10143 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
10160 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10161 if test -n "$ac_tool_prefix"; then
10162 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10163 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165 $as_echo_n "checking for $ac_word... " >&6; }
10166 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10167 $as_echo_n "(cached) " >&6
10169 case $PKG_CONFIG in
10171 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10175 for as_dir
in $PATH
10178 test -z "$as_dir" && as_dir
=.
10179 for ac_exec_ext
in '' $ac_executable_extensions; do
10180 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10181 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10193 if test -n "$PKG_CONFIG"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10195 $as_echo "$PKG_CONFIG" >&6; }
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10203 if test -z "$ac_cv_path_PKG_CONFIG"; then
10204 ac_pt_PKG_CONFIG
=$PKG_CONFIG
10205 # Extract the first word of "pkg-config", so it can be a program name with args.
10206 set dummy pkg-config
; ac_word
=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
10210 $as_echo_n "(cached) " >&6
10212 case $ac_pt_PKG_CONFIG in
10214 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10218 for as_dir
in $PATH
10221 test -z "$as_dir" && as_dir
=.
10222 for ac_exec_ext
in '' $ac_executable_extensions; do
10223 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10224 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
10236 if test -n "$ac_pt_PKG_CONFIG"; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10238 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241 $as_echo "no" >&6; }
10244 if test "x$ac_pt_PKG_CONFIG" = x
; then
10247 case $cross_compiling:$ac_tool_warned in
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10251 ac_tool_warned
=yes ;;
10253 PKG_CONFIG
=$ac_pt_PKG_CONFIG
10256 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
10260 if test -n "$PKG_CONFIG"; then
10261 _pkg_min_version
=0.9.0
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10263 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10264 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10266 $as_echo "yes" >&6; }
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10275 # Check whether --with-zstd was given.
10276 if test "${with_zstd+set}" = set; then :
10277 withval
=$with_zstd;
10283 if test "$with_zstd" != no
; then :
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
10287 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
10289 if test -n "$ZSTD_CFLAGS"; then
10290 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
10291 elif test -n "$PKG_CONFIG"; then
10292 if test -n "$PKG_CONFIG" && \
10293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10294 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10297 test $ac_status = 0; }; then
10298 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
10299 test "x$?" != "x0" && pkg_failed
=yes
10306 if test -n "$ZSTD_LIBS"; then
10307 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
10308 elif test -n "$PKG_CONFIG"; then
10309 if test -n "$PKG_CONFIG" && \
10310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10311 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314 test $ac_status = 0; }; then
10315 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
10316 test "x$?" != "x0" && pkg_failed
=yes
10324 if test $pkg_failed = no
; then
10325 pkg_save_LDFLAGS
="$LDFLAGS"
10326 LDFLAGS
="$LDFLAGS $pkg_cv_ZSTD_LIBS"
10327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10338 if ac_fn_c_try_link
"$LINENO"; then :
10343 rm -f core conftest.err conftest.
$ac_objext \
10344 conftest
$ac_exeext conftest.
$ac_ext
10345 LDFLAGS
=$pkg_save_LDFLAGS
10350 if test $pkg_failed = yes; then
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10354 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10355 _pkg_short_errors_supported
=yes
10357 _pkg_short_errors_supported
=no
10359 if test $_pkg_short_errors_supported = yes; then
10360 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10362 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10364 # Put the nasty error message in config.log where it belongs
10365 echo "$ZSTD_PKG_ERRORS" >&5
10368 if test "$with_zstd" = yes; then
10369 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10372 elif test $pkg_failed = untried
; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10376 if test "$with_zstd" = yes; then
10377 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10381 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
10382 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10384 $as_echo "yes" >&6; }
10387 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
10394 if test "$pkg_cv_ZSTD_LIBS" != ""; then
10396 HAVE_ZSTD_FALSE
='#'
10403 # Check whether --enable-threads was given.
10404 if test "${enable_threads+set}" = set; then :
10405 enableval
=$enable_threads; case "${enableval}" in
10406 yes |
"") threads
=yes ;;
10408 auto
) threads
=auto
;;
10416 if test "$threads" = "yes"; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10418 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10419 if ${ac_cv_path_SED+:} false
; then :
10420 $as_echo_n "(cached) " >&6
10422 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
10423 for ac_i
in 1 2 3 4 5 6 7; do
10424 ac_script
="$ac_script$as_nl$ac_script"
10426 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
10427 { ac_script
=; unset ac_script
;}
10428 if test -z "$SED"; then
10429 ac_path_SED_found
=false
10430 # Loop through the user's path and test for each of PROGNAME-LIST
10431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10432 for as_dir
in $PATH
10435 test -z "$as_dir" && as_dir
=.
10436 for ac_prog
in sed gsed
; do
10437 for ac_exec_ext
in '' $ac_executable_extensions; do
10438 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
10439 as_fn_executable_p
"$ac_path_SED" ||
continue
10440 # Check for GNU ac_path_SED and select it if it is found.
10441 # Check for GNU $ac_path_SED
10442 case `"$ac_path_SED" --version 2>&1` in
10444 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
10447 $as_echo_n 0123456789 >"conftest.in"
10450 cat "conftest.in" "conftest.in" >"conftest.tmp"
10451 mv "conftest.tmp" "conftest.in"
10452 cp "conftest.in" "conftest.nl"
10453 $as_echo '' >> "conftest.nl"
10454 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
10455 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
10456 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
10457 if test $ac_count -gt ${ac_path_SED_max-0}; then
10458 # Best one so far, save it but keep looking for a better one
10459 ac_cv_path_SED
="$ac_path_SED"
10460 ac_path_SED_max
=$ac_count
10462 # 10*(2^10) chars as input seems more than enough
10463 test $ac_count -gt 10 && break
10465 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
10468 $ac_path_SED_found && break 3
10473 if test -z "$ac_cv_path_SED"; then
10474 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
10477 ac_cv_path_SED
=$SED
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10482 $as_echo "$ac_cv_path_SED" >&6; }
10483 SED
="$ac_cv_path_SED"
10491 ac_cpp
='$CPP $CPPFLAGS'
10492 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10493 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10494 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10498 # We used to check for pthread.h first, but this fails if pthread.h
10499 # requires special compiler flags (e.g. on Tru64 or Sequent).
10500 # It gets checked for in the link test anyway.
10502 # First of all, check if the user has set any of the PTHREAD_LIBS,
10503 # etcetera environment variables, and if threads linking works using
10505 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10506 ax_pthread_save_CC
="$CC"
10507 ax_pthread_save_CFLAGS
="$CFLAGS"
10508 ax_pthread_save_LIBS
="$LIBS"
10509 if test "x$PTHREAD_CC" != "x"; then :
10512 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10513 LIBS
="$PTHREAD_LIBS $LIBS"
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10515 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10519 /* Override any GCC internal prototype to avoid an error.
10520 Use char because int might match the return type of a GCC
10521 builtin and then its argument prototype would still apply. */
10525 char pthread_join ();
10529 return pthread_join ();
10534 if ac_fn_c_try_link
"$LINENO"; then :
10537 rm -f core conftest.err conftest.
$ac_objext \
10538 conftest
$ac_exeext conftest.
$ac_ext
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10540 $as_echo "$ax_pthread_ok" >&6; }
10541 if test "x$ax_pthread_ok" = "xno"; then
10545 CC
="$ax_pthread_save_CC"
10546 CFLAGS
="$ax_pthread_save_CFLAGS"
10547 LIBS
="$ax_pthread_save_LIBS"
10550 # We must check for the threads library under a number of different
10551 # names; the ordering is very important because some systems
10552 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10553 # libraries is broken (non-POSIX).
10555 # Create a list of thread flags to try. Items starting with a "-" are
10556 # C compiler flags, and other items are library names, except for "none"
10557 # which indicates that we try without any flags at all, and "pthread-config"
10558 # which is a program returning the flags for the Pth emulation library.
10560 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10562 # The ordering *is* (sometimes) important. Some notes on the
10563 # individual items follow:
10565 # pthreads: AIX (must check this before -lpthread)
10566 # none: in case threads are in libc; should be tried before -Kthread and
10567 # other compiler flags to prevent continual compiler warnings
10568 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10569 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10570 # (Note: HP C rejects this with "bad form for `-t' option")
10571 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10572 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10573 # doesn't hurt to check since this sometimes defines pthreads and
10574 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10575 # is present but should not be used directly; and before -mthreads,
10576 # because the compiler interprets this as "-mt" + "-hreads")
10577 # -mthreads: Mingw32/gcc, Lynx/gcc
10578 # pthread: Linux, etcetera
10579 # --thread-safe: KAI C++
10580 # pthread-config: use pthread-config program (for GNU Pth library)
10586 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10587 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10589 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
10594 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10595 # multi-threading and also sets -lpthread."
10597 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
10602 # IBM z/OS requires a feature-test macro to be defined in order to
10603 # enable POSIX threads at all, so give the user a hint if this is
10604 # not set. (We don't define these ourselves, as they can affect
10605 # other portions of the system API in unpredictable ways.)
10607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10610 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10611 AX_PTHREAD_ZOS_MISSING
10615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10616 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10618 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10626 # On Solaris (at least, for some versions), libc contains stubbed
10627 # (non-functional) versions of the pthreads routines, so link-based
10628 # tests will erroneously succeed. (N.B.: The stubs are missing
10629 # pthread_cleanup_push, or rather a function called by this macro,
10630 # so we could check for that, but who knows whether they'll stub
10631 # that too in a future libc.) So we'll check first for the
10632 # standard Solaris way of linking pthreads (-mt -lpthread).
10634 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
10638 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10640 if test "x$GCC" = "xyes"; then :
10641 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
10644 # The presence of a feature test macro requesting re-entrant function
10645 # definitions is, on some systems, a strong hint that pthreads support is
10646 # correctly enabled
10649 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
10650 ax_pthread_check_macro
="_REENTRANT"
10654 ax_pthread_check_macro
="_THREAD_SAFE"
10658 ax_pthread_check_macro
="--"
10661 if test "x$ax_pthread_check_macro" = "x--"; then :
10662 ax_pthread_check_cond
=0
10664 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
10667 # Are we compiling with Clang?
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10670 $as_echo_n "checking whether $CC is Clang... " >&6; }
10671 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
10672 $as_echo_n "(cached) " >&6
10674 ax_cv_PTHREAD_CLANG
=no
10675 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10676 if test "x$GCC" = "xyes"; then
10677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10680 # if defined(__clang__) && defined(__llvm__)
10681 AX_PTHREAD_CC_IS_CLANG
10685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10686 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
10687 ax_cv_PTHREAD_CLANG
=yes
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10695 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10696 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
10698 ax_pthread_clang_warning
=no
10700 # Clang needs special handling, because older versions handle the -pthread
10701 # option in a rather... idiosyncratic way
10703 if test "x$ax_pthread_clang" = "xyes"; then
10705 # Clang takes -pthread; it has never supported any other flag
10707 # (Note 1: This will need to be revisited if a system that Clang
10708 # supports has POSIX threads in a separate library. This tends not
10709 # to be the way of modern systems, but it's conceivable.)
10711 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10712 # to get POSIX threads support; the API is always present and
10713 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10714 # -pthread does define _REENTRANT, and while the Darwin headers
10715 # ignore this macro, third-party headers might not.)
10717 PTHREAD_CFLAGS
="-pthread"
10722 # However, older versions of Clang make a point of warning the user
10723 # that, in an invocation where only linking and no compilation is
10724 # taking place, the -pthread option has no effect ("argument unused
10725 # during compilation"). They expect -pthread to be passed in only
10726 # when source code is being compiled.
10728 # Problem is, this is at odds with the way Automake and most other
10729 # C build frameworks function, which is that the same flags used in
10730 # compilation (CFLAGS) are also used in linking. Many systems
10731 # supported by AX_PTHREAD require exactly this for POSIX threads
10732 # support, and in fact it is often not straightforward to specify a
10733 # flag that is used only in the compilation phase and not in
10734 # linking. Such a scenario is extremely rare in practice.
10736 # Even though use of the -pthread flag in linking would only print
10737 # a warning, this can be a nuisance for well-run software projects
10738 # that build with -Werror. So if the active version of Clang has
10739 # this misfeature, we search for an option to squash it.
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10742 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10743 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
10744 $as_echo_n "(cached) " >&6
10746 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
10747 # Create an alternate version of $ac_link that compiles and
10748 # links in two steps (.c -> .o, .o -> exe) instead of one
10749 # (.c -> exe), because the warning occurs only in the second
10751 ax_pthread_save_ac_link
="$ac_link"
10752 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10753 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10754 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10755 ax_pthread_save_CFLAGS
="$CFLAGS"
10756 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
10757 if test "x$ax_pthread_try" = "xunknown"; then :
10760 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10761 ac_link
="$ax_pthread_save_ac_link"
10762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764 int main(void){return 0;}
10766 if ac_fn_c_try_link
"$LINENO"; then :
10767 ac_link
="$ax_pthread_2step_ac_link"
10768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10770 int main(void){return 0;}
10772 if ac_fn_c_try_link
"$LINENO"; then :
10775 rm -f core conftest.err conftest.
$ac_objext \
10776 conftest
$ac_exeext conftest.
$ac_ext
10779 rm -f core conftest.err conftest.
$ac_objext \
10780 conftest
$ac_exeext conftest.
$ac_ext
10782 ac_link
="$ax_pthread_save_ac_link"
10783 CFLAGS
="$ax_pthread_save_CFLAGS"
10784 if test "x$ax_pthread_try" = "x"; then :
10787 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10791 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10793 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10795 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10798 fi # $ax_pthread_clang = yes
10800 if test "x$ax_pthread_ok" = "xno"; then
10801 for ax_pthread_try_flag
in $ax_pthread_flags; do
10803 case $ax_pthread_try_flag in
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10806 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10811 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10812 PTHREAD_CFLAGS
="-mt"
10813 PTHREAD_LIBS
="-lpthread"
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10818 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10819 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
10823 # Extract the first word of "pthread-config", so it can be a program name with args.
10824 set dummy pthread-config
; ac_word
=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
10828 $as_echo_n "(cached) " >&6
10830 if test -n "$ax_pthread_config"; then
10831 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
10833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10834 for as_dir
in $PATH
10837 test -z "$as_dir" && as_dir
=.
10838 for ac_exec_ext
in '' $ac_executable_extensions; do
10839 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10840 ac_cv_prog_ax_pthread_config
="yes"
10841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
10851 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
10852 if test -n "$ax_pthread_config"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10854 $as_echo "$ax_pthread_config" >&6; }
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10857 $as_echo "no" >&6; }
10861 if test "x$ax_pthread_config" = "xno"; then :
10864 PTHREAD_CFLAGS
="`pthread-config --cflags`"
10865 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10870 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10871 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
10875 ax_pthread_save_CFLAGS
="$CFLAGS"
10876 ax_pthread_save_LIBS
="$LIBS"
10877 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10878 LIBS
="$PTHREAD_LIBS $LIBS"
10880 # Check for various functions. We must include pthread.h,
10881 # since some functions may be macros. (On the Sequent, we
10882 # need a special flag -Kthread to make this header compile.)
10883 # We check for pthread_join because it is in -lpthread on IRIX
10884 # while pthread_create is in libc. We check for pthread_attr_init
10885 # due to DEC craziness with -lpthreads. We check for
10886 # pthread_cleanup_push because it is one of the few pthread
10887 # functions on Solaris that doesn't have a non-functional libc stub.
10888 # We try pthread_create on general principles.
10890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 #include <pthread.h>
10893 # if $ax_pthread_check_cond
10894 # error "$ax_pthread_check_macro must be defined"
10896 static void routine(void *a) { a = 0; }
10897 static void *start_routine(void *a) { return a; }
10901 pthread_t th; pthread_attr_t attr;
10902 pthread_create(&th, 0, start_routine, 0);
10903 pthread_join(th, 0);
10904 pthread_attr_init(&attr);
10905 pthread_cleanup_push(routine, 0);
10906 pthread_cleanup_pop(0) /* ; */
10911 if ac_fn_c_try_link
"$LINENO"; then :
10914 rm -f core conftest.err conftest.
$ac_objext \
10915 conftest
$ac_exeext conftest.
$ac_ext
10917 CFLAGS
="$ax_pthread_save_CFLAGS"
10918 LIBS
="$ax_pthread_save_LIBS"
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10921 $as_echo "$ax_pthread_ok" >&6; }
10922 if test "x$ax_pthread_ok" = "xyes"; then :
10931 # Various other checks:
10932 if test "x$ax_pthread_ok" = "xyes"; then
10933 ax_pthread_save_CFLAGS
="$CFLAGS"
10934 ax_pthread_save_LIBS
="$LIBS"
10935 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10936 LIBS
="$PTHREAD_LIBS $LIBS"
10938 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10940 $as_echo_n "checking for joinable pthread attribute... " >&6; }
10941 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
10942 $as_echo_n "(cached) " >&6
10944 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
10945 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
10946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #include <pthread.h>
10952 int attr = $ax_pthread_attr; return attr /* ; */
10957 if ac_fn_c_try_link
"$LINENO"; then :
10958 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
10960 rm -f core conftest.err conftest.
$ac_objext \
10961 conftest
$ac_exeext conftest.
$ac_ext
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10966 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10967 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10968 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10969 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10971 cat >>confdefs.h
<<_ACEOF
10972 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10975 ax_pthread_joinable_attr_defined
=yes
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10980 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10981 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
10982 $as_echo_n "(cached) " >&6
10984 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
10987 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10993 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10994 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10995 test "x$ax_pthread_special_flags_added" != "xyes"; then :
10996 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10997 ax_pthread_special_flags_added
=yes
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11001 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11002 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11003 $as_echo_n "(cached) " >&6
11005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11007 #include <pthread.h>
11011 int i = PTHREAD_PRIO_INHERIT;
11016 if ac_fn_c_try_link
"$LINENO"; then :
11017 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11019 ax_cv_PTHREAD_PRIO_INHERIT
=no
11021 rm -f core conftest.err conftest.
$ac_objext \
11022 conftest
$ac_exeext conftest.
$ac_ext
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11026 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11027 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11028 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11030 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11032 ax_pthread_prio_inherit_defined
=yes
11036 CFLAGS
="$ax_pthread_save_CFLAGS"
11037 LIBS
="$ax_pthread_save_LIBS"
11039 # More AIX lossage: compile with *_r variant
11040 if test "x$GCC" != "xyes"; then
11044 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11045 #handle absolute path differently from PATH based program lookup
11048 if as_fn_executable_p
${CC}_r
; then :
11049 PTHREAD_CC
="${CC}_r"
11052 for ac_prog
in ${CC}_r
11054 # Extract the first word of "$ac_prog", so it can be a program name with args.
11055 set dummy
$ac_prog; ac_word
=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11059 $as_echo_n "(cached) " >&6
11061 if test -n "$PTHREAD_CC"; then
11062 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11065 for as_dir
in $PATH
11068 test -z "$as_dir" && as_dir
=.
11069 for ac_exec_ext
in '' $ac_executable_extensions; do
11070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11071 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11082 if test -n "$PTHREAD_CC"; then
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11084 $as_echo "$PTHREAD_CC" >&6; }
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087 $as_echo "no" >&6; }
11091 test -n "$PTHREAD_CC" && break
11093 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11104 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11110 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11111 if test "x$ax_pthread_ok" = "xyes"; then
11116 as_fn_error $?
"pthread not found" "$LINENO" 5
11119 ac_cpp
='$CPP $CPPFLAGS'
11120 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11121 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11122 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11125 elif test "$threads" = "auto"; then
11131 ac_cpp
='$CPP $CPPFLAGS'
11132 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11133 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11134 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11138 # We used to check for pthread.h first, but this fails if pthread.h
11139 # requires special compiler flags (e.g. on Tru64 or Sequent).
11140 # It gets checked for in the link test anyway.
11142 # First of all, check if the user has set any of the PTHREAD_LIBS,
11143 # etcetera environment variables, and if threads linking works using
11145 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
11146 ax_pthread_save_CC
="$CC"
11147 ax_pthread_save_CFLAGS
="$CFLAGS"
11148 ax_pthread_save_LIBS
="$LIBS"
11149 if test "x$PTHREAD_CC" != "x"; then :
11152 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11153 LIBS
="$PTHREAD_LIBS $LIBS"
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
11155 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
11156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11159 /* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
11165 char pthread_join ();
11169 return pthread_join ();
11174 if ac_fn_c_try_link
"$LINENO"; then :
11177 rm -f core conftest.err conftest.
$ac_objext \
11178 conftest
$ac_exeext conftest.
$ac_ext
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11180 $as_echo "$ax_pthread_ok" >&6; }
11181 if test "x$ax_pthread_ok" = "xno"; then
11185 CC
="$ax_pthread_save_CC"
11186 CFLAGS
="$ax_pthread_save_CFLAGS"
11187 LIBS
="$ax_pthread_save_LIBS"
11190 # We must check for the threads library under a number of different
11191 # names; the ordering is very important because some systems
11192 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11193 # libraries is broken (non-POSIX).
11195 # Create a list of thread flags to try. Items starting with a "-" are
11196 # C compiler flags, and other items are library names, except for "none"
11197 # which indicates that we try without any flags at all, and "pthread-config"
11198 # which is a program returning the flags for the Pth emulation library.
11200 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11202 # The ordering *is* (sometimes) important. Some notes on the
11203 # individual items follow:
11205 # pthreads: AIX (must check this before -lpthread)
11206 # none: in case threads are in libc; should be tried before -Kthread and
11207 # other compiler flags to prevent continual compiler warnings
11208 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11209 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
11210 # (Note: HP C rejects this with "bad form for `-t' option")
11211 # -pthreads: Solaris/gcc (Note: HP C also rejects)
11212 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11213 # doesn't hurt to check since this sometimes defines pthreads and
11214 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
11215 # is present but should not be used directly; and before -mthreads,
11216 # because the compiler interprets this as "-mt" + "-hreads")
11217 # -mthreads: Mingw32/gcc, Lynx/gcc
11218 # pthread: Linux, etcetera
11219 # --thread-safe: KAI C++
11220 # pthread-config: use pthread-config program (for GNU Pth library)
11226 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11227 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11229 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
11234 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
11235 # multi-threading and also sets -lpthread."
11237 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
11242 # IBM z/OS requires a feature-test macro to be defined in order to
11243 # enable POSIX threads at all, so give the user a hint if this is
11244 # not set. (We don't define these ourselves, as they can affect
11245 # other portions of the system API in unpredictable ways.)
11247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11250 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
11251 AX_PTHREAD_ZOS_MISSING
11255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11256 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
11258 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
11266 # On Solaris (at least, for some versions), libc contains stubbed
11267 # (non-functional) versions of the pthreads routines, so link-based
11268 # tests will erroneously succeed. (N.B.: The stubs are missing
11269 # pthread_cleanup_push, or rather a function called by this macro,
11270 # so we could check for that, but who knows whether they'll stub
11271 # that too in a future libc.) So we'll check first for the
11272 # standard Solaris way of linking pthreads (-mt -lpthread).
11274 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
11278 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
11280 if test "x$GCC" = "xyes"; then :
11281 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
11284 # The presence of a feature test macro requesting re-entrant function
11285 # definitions is, on some systems, a strong hint that pthreads support is
11286 # correctly enabled
11289 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
11290 ax_pthread_check_macro
="_REENTRANT"
11294 ax_pthread_check_macro
="_THREAD_SAFE"
11298 ax_pthread_check_macro
="--"
11301 if test "x$ax_pthread_check_macro" = "x--"; then :
11302 ax_pthread_check_cond
=0
11304 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
11307 # Are we compiling with Clang?
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
11310 $as_echo_n "checking whether $CC is Clang... " >&6; }
11311 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
11312 $as_echo_n "(cached) " >&6
11314 ax_cv_PTHREAD_CLANG
=no
11315 # Note that Autoconf sets GCC=yes for Clang as well as GCC
11316 if test "x$GCC" = "xyes"; then
11317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11319 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
11320 # if defined(__clang__) && defined(__llvm__)
11321 AX_PTHREAD_CC_IS_CLANG
11325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11326 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
11327 ax_cv_PTHREAD_CLANG
=yes
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
11335 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
11336 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
11338 ax_pthread_clang_warning
=no
11340 # Clang needs special handling, because older versions handle the -pthread
11341 # option in a rather... idiosyncratic way
11343 if test "x$ax_pthread_clang" = "xyes"; then
11345 # Clang takes -pthread; it has never supported any other flag
11347 # (Note 1: This will need to be revisited if a system that Clang
11348 # supports has POSIX threads in a separate library. This tends not
11349 # to be the way of modern systems, but it's conceivable.)
11351 # (Note 2: On some systems, notably Darwin, -pthread is not needed
11352 # to get POSIX threads support; the API is always present and
11353 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
11354 # -pthread does define _REENTRANT, and while the Darwin headers
11355 # ignore this macro, third-party headers might not.)
11357 PTHREAD_CFLAGS
="-pthread"
11362 # However, older versions of Clang make a point of warning the user
11363 # that, in an invocation where only linking and no compilation is
11364 # taking place, the -pthread option has no effect ("argument unused
11365 # during compilation"). They expect -pthread to be passed in only
11366 # when source code is being compiled.
11368 # Problem is, this is at odds with the way Automake and most other
11369 # C build frameworks function, which is that the same flags used in
11370 # compilation (CFLAGS) are also used in linking. Many systems
11371 # supported by AX_PTHREAD require exactly this for POSIX threads
11372 # support, and in fact it is often not straightforward to specify a
11373 # flag that is used only in the compilation phase and not in
11374 # linking. Such a scenario is extremely rare in practice.
11376 # Even though use of the -pthread flag in linking would only print
11377 # a warning, this can be a nuisance for well-run software projects
11378 # that build with -Werror. So if the active version of Clang has
11379 # this misfeature, we search for an option to squash it.
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
11382 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
11383 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
11384 $as_echo_n "(cached) " >&6
11386 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
11387 # Create an alternate version of $ac_link that compiles and
11388 # links in two steps (.c -> .o, .o -> exe) instead of one
11389 # (.c -> exe), because the warning occurs only in the second
11391 ax_pthread_save_ac_link
="$ac_link"
11392 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
11393 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
11394 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
11395 ax_pthread_save_CFLAGS
="$CFLAGS"
11396 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
11397 if test "x$ax_pthread_try" = "xunknown"; then :
11400 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
11401 ac_link
="$ax_pthread_save_ac_link"
11402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11404 int main(void){return 0;}
11406 if ac_fn_c_try_link
"$LINENO"; then :
11407 ac_link
="$ax_pthread_2step_ac_link"
11408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11410 int main(void){return 0;}
11412 if ac_fn_c_try_link
"$LINENO"; then :
11415 rm -f core conftest.err conftest.
$ac_objext \
11416 conftest
$ac_exeext conftest.
$ac_ext
11419 rm -f core conftest.err conftest.
$ac_objext \
11420 conftest
$ac_exeext conftest.
$ac_ext
11422 ac_link
="$ax_pthread_save_ac_link"
11423 CFLAGS
="$ax_pthread_save_CFLAGS"
11424 if test "x$ax_pthread_try" = "x"; then :
11427 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11431 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11433 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11435 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11438 fi # $ax_pthread_clang = yes
11440 if test "x$ax_pthread_ok" = "xno"; then
11441 for ax_pthread_try_flag
in $ax_pthread_flags; do
11443 case $ax_pthread_try_flag in
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11446 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11451 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11452 PTHREAD_CFLAGS
="-mt"
11453 PTHREAD_LIBS
="-lpthread"
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11458 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11459 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
11463 # Extract the first word of "pthread-config", so it can be a program name with args.
11464 set dummy pthread-config
; ac_word
=$2
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466 $as_echo_n "checking for $ac_word... " >&6; }
11467 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
11468 $as_echo_n "(cached) " >&6
11470 if test -n "$ax_pthread_config"; then
11471 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
11473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11474 for as_dir
in $PATH
11477 test -z "$as_dir" && as_dir
=.
11478 for ac_exec_ext
in '' $ac_executable_extensions; do
11479 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11480 ac_cv_prog_ax_pthread_config
="yes"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
11491 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
11492 if test -n "$ax_pthread_config"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11494 $as_echo "$ax_pthread_config" >&6; }
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11501 if test "x$ax_pthread_config" = "xno"; then :
11504 PTHREAD_CFLAGS
="`pthread-config --cflags`"
11505 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11510 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11511 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
11515 ax_pthread_save_CFLAGS
="$CFLAGS"
11516 ax_pthread_save_LIBS
="$LIBS"
11517 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11518 LIBS
="$PTHREAD_LIBS $LIBS"
11520 # Check for various functions. We must include pthread.h,
11521 # since some functions may be macros. (On the Sequent, we
11522 # need a special flag -Kthread to make this header compile.)
11523 # We check for pthread_join because it is in -lpthread on IRIX
11524 # while pthread_create is in libc. We check for pthread_attr_init
11525 # due to DEC craziness with -lpthreads. We check for
11526 # pthread_cleanup_push because it is one of the few pthread
11527 # functions on Solaris that doesn't have a non-functional libc stub.
11528 # We try pthread_create on general principles.
11530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11532 #include <pthread.h>
11533 # if $ax_pthread_check_cond
11534 # error "$ax_pthread_check_macro must be defined"
11536 static void routine(void *a) { a = 0; }
11537 static void *start_routine(void *a) { return a; }
11541 pthread_t th; pthread_attr_t attr;
11542 pthread_create(&th, 0, start_routine, 0);
11543 pthread_join(th, 0);
11544 pthread_attr_init(&attr);
11545 pthread_cleanup_push(routine, 0);
11546 pthread_cleanup_pop(0) /* ; */
11551 if ac_fn_c_try_link
"$LINENO"; then :
11554 rm -f core conftest.err conftest.
$ac_objext \
11555 conftest
$ac_exeext conftest.
$ac_ext
11557 CFLAGS
="$ax_pthread_save_CFLAGS"
11558 LIBS
="$ax_pthread_save_LIBS"
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11561 $as_echo "$ax_pthread_ok" >&6; }
11562 if test "x$ax_pthread_ok" = "xyes"; then :
11571 # Various other checks:
11572 if test "x$ax_pthread_ok" = "xyes"; then
11573 ax_pthread_save_CFLAGS
="$CFLAGS"
11574 ax_pthread_save_LIBS
="$LIBS"
11575 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11576 LIBS
="$PTHREAD_LIBS $LIBS"
11578 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11580 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11581 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
11582 $as_echo_n "(cached) " >&6
11584 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
11585 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
11586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11588 #include <pthread.h>
11592 int attr = $ax_pthread_attr; return attr /* ; */
11597 if ac_fn_c_try_link
"$LINENO"; then :
11598 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
11600 rm -f core conftest.err conftest.
$ac_objext \
11601 conftest
$ac_exeext conftest.
$ac_ext
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11606 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11607 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11608 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11609 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11611 cat >>confdefs.h
<<_ACEOF
11612 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11615 ax_pthread_joinable_attr_defined
=yes
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11620 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11621 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
11622 $as_echo_n "(cached) " >&6
11624 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
11627 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11633 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11634 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11635 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11636 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11637 ax_pthread_special_flags_added
=yes
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11641 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11642 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11643 $as_echo_n "(cached) " >&6
11645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647 #include <pthread.h>
11651 int i = PTHREAD_PRIO_INHERIT;
11656 if ac_fn_c_try_link
"$LINENO"; then :
11657 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11659 ax_cv_PTHREAD_PRIO_INHERIT
=no
11661 rm -f core conftest.err conftest.
$ac_objext \
11662 conftest
$ac_exeext conftest.
$ac_ext
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11666 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11667 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11668 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11670 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11672 ax_pthread_prio_inherit_defined
=yes
11676 CFLAGS
="$ax_pthread_save_CFLAGS"
11677 LIBS
="$ax_pthread_save_LIBS"
11679 # More AIX lossage: compile with *_r variant
11680 if test "x$GCC" != "xyes"; then
11684 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11685 #handle absolute path differently from PATH based program lookup
11688 if as_fn_executable_p
${CC}_r
; then :
11689 PTHREAD_CC
="${CC}_r"
11692 for ac_prog
in ${CC}_r
11694 # Extract the first word of "$ac_prog", so it can be a program name with args.
11695 set dummy
$ac_prog; ac_word
=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11699 $as_echo_n "(cached) " >&6
11701 if test -n "$PTHREAD_CC"; then
11702 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11705 for as_dir
in $PATH
11708 test -z "$as_dir" && as_dir
=.
11709 for ac_exec_ext
in '' $ac_executable_extensions; do
11710 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11722 if test -n "$PTHREAD_CC"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11724 $as_echo "$PTHREAD_CC" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11731 test -n "$PTHREAD_CC" && break
11733 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11744 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11750 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11751 if test "x$ax_pthread_ok" = "xyes"; then
11759 ac_cpp
='$CPP $CPPFLAGS'
11760 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11761 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11762 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11767 if test "$threads" = "yes"; then
11769 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
11772 if test "$threads" = "yes"; then
11781 # Used to validate --package-metadata= input. Disabled by default.
11782 # Check whether --enable-jansson was given.
11783 if test "${enable_jansson+set}" = set; then :
11784 enableval
=$enable_jansson; enable_jansson
=$enableval
11786 enable_jansson
="no"
11790 if test "x$enable_jansson" != "xno"; then
11798 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11799 if test -n "$ac_tool_prefix"; then
11800 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11801 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11805 $as_echo_n "(cached) " >&6
11807 case $PKG_CONFIG in
11809 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11813 for as_dir
in $PATH
11816 test -z "$as_dir" && as_dir
=.
11817 for ac_exec_ext
in '' $ac_executable_extensions; do
11818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11819 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11831 if test -n "$PKG_CONFIG"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11833 $as_echo "$PKG_CONFIG" >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11841 if test -z "$ac_cv_path_PKG_CONFIG"; then
11842 ac_pt_PKG_CONFIG
=$PKG_CONFIG
11843 # Extract the first word of "pkg-config", so it can be a program name with args.
11844 set dummy pkg-config
; ac_word
=$2
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846 $as_echo_n "checking for $ac_word... " >&6; }
11847 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
11848 $as_echo_n "(cached) " >&6
11850 case $ac_pt_PKG_CONFIG in
11852 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11856 for as_dir
in $PATH
11859 test -z "$as_dir" && as_dir
=.
11860 for ac_exec_ext
in '' $ac_executable_extensions; do
11861 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11862 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
11874 if test -n "$ac_pt_PKG_CONFIG"; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11876 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11882 if test "x$ac_pt_PKG_CONFIG" = x
; then
11885 case $cross_compiling:$ac_tool_warned in
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11889 ac_tool_warned
=yes ;;
11891 PKG_CONFIG
=$ac_pt_PKG_CONFIG
11894 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
11898 if test -n "$PKG_CONFIG"; then
11899 _pkg_min_version
=0.9.0
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11901 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11902 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11904 $as_echo "yes" >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11911 if test -n "$PKG_CONFIG"; then :
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
11916 $as_echo_n "checking for jansson... " >&6; }
11918 if test -n "$JANSSON_CFLAGS"; then
11919 pkg_cv_JANSSON_CFLAGS
="$JANSSON_CFLAGS"
11920 elif test -n "$PKG_CONFIG"; then
11921 if test -n "$PKG_CONFIG" && \
11922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11923 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11926 test $ac_status = 0; }; then
11927 pkg_cv_JANSSON_CFLAGS
=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
11928 test "x$?" != "x0" && pkg_failed
=yes
11935 if test -n "$JANSSON_LIBS"; then
11936 pkg_cv_JANSSON_LIBS
="$JANSSON_LIBS"
11937 elif test -n "$PKG_CONFIG"; then
11938 if test -n "$PKG_CONFIG" && \
11939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11940 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11943 test $ac_status = 0; }; then
11944 pkg_cv_JANSSON_LIBS
=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
11945 test "x$?" != "x0" && pkg_failed
=yes
11953 if test $pkg_failed = no
; then
11954 pkg_save_LDFLAGS
="$LDFLAGS"
11955 LDFLAGS
="$LDFLAGS $pkg_cv_JANSSON_LIBS"
11956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11967 if ac_fn_c_try_link
"$LINENO"; then :
11972 rm -f core conftest.err conftest.
$ac_objext \
11973 conftest
$ac_exeext conftest.
$ac_ext
11974 LDFLAGS
=$pkg_save_LDFLAGS
11979 if test $pkg_failed = yes; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11984 _pkg_short_errors_supported
=yes
11986 _pkg_short_errors_supported
=no
11988 if test $_pkg_short_errors_supported = yes; then
11989 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
11991 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
11993 # Put the nasty error message in config.log where it belongs
11994 echo "$JANSSON_PKG_ERRORS" >&5
11997 as_fn_error $?
"Cannot find jansson library" "$LINENO" 5
11999 elif test $pkg_failed = untried
; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001 $as_echo "no" >&6; }
12003 as_fn_error $?
"Cannot find jansson library" "$LINENO" 5
12006 JANSSON_CFLAGS
=$pkg_cv_JANSSON_CFLAGS
12007 JANSSON_LIBS
=$pkg_cv_JANSSON_LIBS
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12009 $as_echo "yes" >&6; }
12012 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
12021 as_fn_error $?
"Cannot find pkg-config" "$LINENO" 5
12026 ac_fn_c_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12027 if test "x$ac_cv_have_decl_basename" = xyes
; then :
12033 cat >>confdefs.h
<<_ACEOF
12034 #define HAVE_DECL_BASENAME $ac_have_decl
12036 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12037 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12043 cat >>confdefs.h
<<_ACEOF
12044 #define HAVE_DECL_FFS $ac_have_decl
12046 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12047 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12053 cat >>confdefs.h
<<_ACEOF
12054 #define HAVE_DECL_ASPRINTF $ac_have_decl
12056 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12057 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12063 cat >>confdefs.h
<<_ACEOF
12064 #define HAVE_DECL_VASPRINTF $ac_have_decl
12066 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12067 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12073 cat >>confdefs.h
<<_ACEOF
12074 #define HAVE_DECL_SNPRINTF $ac_have_decl
12076 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12077 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12083 cat >>confdefs.h
<<_ACEOF
12084 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12086 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12087 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12093 cat >>confdefs.h
<<_ACEOF
12094 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12098 save_CFLAGS
="$CFLAGS"
12099 CFLAGS
="$CFLAGS -Werror -gpubnames"
12100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12104 if ac_fn_c_try_compile
"$LINENO"; then :
12109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12110 CFLAGS
="$save_CFLAGS"
12111 if test "$have_pubnames" = "yes"; then
12112 HAVE_PUBNAMES_TRUE
=
12113 HAVE_PUBNAMES_FALSE
='#'
12115 HAVE_PUBNAMES_TRUE
='#'
12116 HAVE_PUBNAMES_FALSE
=
12120 save_CFLAGS
="$CFLAGS"
12121 CFLAGS
="$CFLAGS -Werror -fno-use-linker-plugin"
12122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12126 if ac_fn_c_try_compile
"$LINENO"; then :
12127 have_no_use_linker_plugin
=yes
12129 have_no_use_linker_plugin
=no
12131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12132 CFLAGS
="$save_CFLAGS"
12133 if test "$have_no_use_linker_plugin" = "yes"; then
12134 HAVE_NO_USE_LINKER_PLUGIN_TRUE
=
12135 HAVE_NO_USE_LINKER_PLUGIN_FALSE
='#'
12137 HAVE_NO_USE_LINKER_PLUGIN_TRUE
='#'
12138 HAVE_NO_USE_LINKER_PLUGIN_FALSE
=
12143 ac_cpp
='$CXXCPP $CPPFLAGS'
12144 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12145 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12146 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12151 ac_cpp
='$CXXCPP $CPPFLAGS'
12152 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12156 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12157 if test -z "$CXXCPP"; then
12158 if ${ac_cv_prog_CXXCPP+:} false
; then :
12159 $as_echo_n "(cached) " >&6
12161 # Double quotes because CXXCPP needs to be expanded
12162 for CXXCPP
in "$CXX -E" "/lib/cpp"
12164 ac_preproc_ok
=false
12165 for ac_cxx_preproc_warn_flag
in '' yes
12167 # Use a header file that comes with gcc, so configuring glibc
12168 # with a fresh cross-compiler works.
12169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12170 # <limits.h> exists even on freestanding compilers.
12171 # On the NeXT, cc -E runs the code through the compiler's parser,
12172 # not just through cpp. "Syntax error" is here to catch this case.
12173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12176 # include <limits.h>
12178 # include <assert.h>
12182 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12185 # Broken: fails on valid input.
12188 rm -f conftest.err conftest.i conftest.
$ac_ext
12190 # OK, works on sane cases. Now check whether nonexistent headers
12191 # can be detected and how.
12192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12194 #include <ac_nonexistent.h>
12196 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12197 # Broken: success on invalid input.
12200 # Passes both tests.
12204 rm -f conftest.err conftest.i conftest.
$ac_ext
12207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12208 rm -f conftest.i conftest.err conftest.
$ac_ext
12209 if $ac_preproc_ok; then :
12214 ac_cv_prog_CXXCPP
=$CXXCPP
12217 CXXCPP
=$ac_cv_prog_CXXCPP
12219 ac_cv_prog_CXXCPP
=$CXXCPP
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12222 $as_echo "$CXXCPP" >&6; }
12223 ac_preproc_ok
=false
12224 for ac_cxx_preproc_warn_flag
in '' yes
12226 # Use a header file that comes with gcc, so configuring glibc
12227 # with a fresh cross-compiler works.
12228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12229 # <limits.h> exists even on freestanding compilers.
12230 # On the NeXT, cc -E runs the code through the compiler's parser,
12231 # not just through cpp. "Syntax error" is here to catch this case.
12232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12235 # include <limits.h>
12237 # include <assert.h>
12241 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12244 # Broken: fails on valid input.
12247 rm -f conftest.err conftest.i conftest.
$ac_ext
12249 # OK, works on sane cases. Now check whether nonexistent headers
12250 # can be detected and how.
12251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253 #include <ac_nonexistent.h>
12255 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12256 # Broken: success on invalid input.
12259 # Passes both tests.
12263 rm -f conftest.err conftest.i conftest.
$ac_ext
12266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12267 rm -f conftest.i conftest.err conftest.
$ac_ext
12268 if $ac_preproc_ok; then :
12271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12273 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
12274 See \`config.log' for more details" "$LINENO" 5; }
12278 ac_cpp
='$CXXCPP $CPPFLAGS'
12279 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12280 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12281 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12284 for ac_header
in unordered_set unordered_map
12286 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12287 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12288 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12289 cat >>confdefs.h
<<_ACEOF
12290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12297 for ac_header
in tr1/unordered_set
tr1/unordered_map
12299 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12300 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12301 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12302 cat >>confdefs.h
<<_ACEOF
12303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12310 for ac_header
in ext
/hash_map ext
/hash_set
12312 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12313 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12314 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12315 cat >>confdefs.h
<<_ACEOF
12316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12323 for ac_header
in byteswap.h
12325 ac_fn_cxx_check_header_mongrel
"$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
12326 if test "x$ac_cv_header_byteswap_h" = xyes
; then :
12327 cat >>confdefs.h
<<_ACEOF
12328 #define HAVE_BYTESWAP_H 1
12336 ac_fn_cxx_check_decl
"$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
12338 if test "x$ac_cv_have_decl_bswap_16" = xyes
; then :
12344 cat >>confdefs.h
<<_ACEOF
12345 #define HAVE_DECL_BSWAP_16 $ac_have_decl
12347 ac_fn_cxx_check_decl
"$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
12349 if test "x$ac_cv_have_decl_bswap_32" = xyes
; then :
12355 cat >>confdefs.h
<<_ACEOF
12356 #define HAVE_DECL_BSWAP_32 $ac_have_decl
12358 ac_fn_cxx_check_decl
"$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
12360 if test "x$ac_cv_have_decl_bswap_64" = xyes
; then :
12366 cat >>confdefs.h
<<_ACEOF
12367 #define HAVE_DECL_BSWAP_64 $ac_have_decl
12371 for ac_header
in windows.h
12373 ac_fn_cxx_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12374 if test "x$ac_cv_header_windows_h" = xyes
; then :
12375 cat >>confdefs.h
<<_ACEOF
12376 #define HAVE_WINDOWS_H 1
12383 for ac_header
in dlfcn.h
12385 ac_fn_cxx_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12386 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
12387 cat >>confdefs.h
<<_ACEOF
12388 #define HAVE_DLFCN_H 1
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12396 $as_echo_n "checking for library containing dlopen... " >&6; }
12397 if ${ac_cv_search_dlopen+:} false
; then :
12398 $as_echo_n "(cached) " >&6
12400 ac_func_search_save_LIBS
=$LIBS
12401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12404 /* Override any GCC internal prototype to avoid an error.
12405 Use char because int might match the return type of a GCC
12406 builtin and then its argument prototype would still apply. */
12419 for ac_lib
in '' dl dld
; do
12420 if test -z "$ac_lib"; then
12421 ac_res
="none required"
12424 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12426 if ac_fn_cxx_try_link
"$LINENO"; then :
12427 ac_cv_search_dlopen
=$ac_res
12429 rm -f core conftest.err conftest.
$ac_objext \
12431 if ${ac_cv_search_dlopen+:} false
; then :
12435 if ${ac_cv_search_dlopen+:} false
; then :
12438 ac_cv_search_dlopen
=no
12440 rm conftest.
$ac_ext
12441 LIBS
=$ac_func_search_save_LIBS
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12444 $as_echo "$ac_cv_search_dlopen" >&6; }
12445 ac_res
=$ac_cv_search_dlopen
12446 if test "$ac_res" != no
; then :
12447 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12451 case "$ac_cv_search_dlopen" in
12452 no
*) DLOPEN_LIBS
="";;
12453 *) DLOPEN_LIBS
="$ac_cv_search_dlopen";;
12457 for ac_func
in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf
times mkdtemp
12459 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12460 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12461 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12462 cat >>confdefs.h
<<_ACEOF
12463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12469 ac_fn_cxx_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12470 if test "x$ac_cv_have_decl_basename" = xyes
; then :
12476 cat >>confdefs.h
<<_ACEOF
12477 #define HAVE_DECL_BASENAME $ac_have_decl
12479 ac_fn_cxx_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12480 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12486 cat >>confdefs.h
<<_ACEOF
12487 #define HAVE_DECL_FFS $ac_have_decl
12489 ac_fn_cxx_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12490 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12496 cat >>confdefs.h
<<_ACEOF
12497 #define HAVE_DECL_ASPRINTF $ac_have_decl
12499 ac_fn_cxx_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12500 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12506 cat >>confdefs.h
<<_ACEOF
12507 #define HAVE_DECL_VASPRINTF $ac_have_decl
12509 ac_fn_cxx_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12510 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12516 cat >>confdefs.h
<<_ACEOF
12517 #define HAVE_DECL_SNPRINTF $ac_have_decl
12519 ac_fn_cxx_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12520 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12526 cat >>confdefs.h
<<_ACEOF
12527 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12529 ac_fn_cxx_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12530 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12536 cat >>confdefs.h
<<_ACEOF
12537 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12539 ac_fn_cxx_check_decl
"$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
12540 if test "x$ac_cv_have_decl_strndup" = xyes
; then :
12546 cat >>confdefs.h
<<_ACEOF
12547 #define HAVE_DECL_STRNDUP $ac_have_decl
12549 ac_fn_cxx_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
12550 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
12556 cat >>confdefs.h
<<_ACEOF
12557 #define HAVE_DECL_MEMMEM $ac_have_decl
12561 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
12562 # at link time with some versions of GCC.
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
12564 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
12565 if ${gold_cv_unordered_map_rehash+:} false
; then :
12566 $as_echo_n "(cached) " >&6
12568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12571 #include <tr1/unordered_map>
12572 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
12582 if ac_fn_cxx_try_link
"$LINENO"; then :
12583 gold_cv_unordered_map_rehash
=yes
12585 gold_cv_unordered_map_rehash
=no
12587 rm -f core conftest.err conftest.
$ac_objext \
12588 conftest
$ac_exeext conftest.
$ac_ext
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
12591 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
12592 if test "$gold_cv_unordered_map_rehash" = "yes"; then
12594 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
12598 # Since 5e9091dab8858b25210a91d22fbbbfdee9c969ad gold now requires C++11
12599 # So we need to check for it.
12600 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
12602 ac_cpp
='$CXXCPP $CPPFLAGS'
12603 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12604 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
12609 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
12610 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
12611 $as_echo_n "(cached) " >&6
12613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12617 // If the compiler admits that it is not ready for C++11, why torture it?
12618 // Hopefully, this will speed up the test.
12620 #ifndef __cplusplus
12622 #error "This is not a C++ compiler"
12624 #elif __cplusplus < 201103L
12626 #error "This is not a C++11 compiler"
12633 namespace test_static_assert
12636 template <typename T>
12639 static_assert(sizeof(int) <= sizeof(T), "not big enough");
12644 namespace test_final_override
12650 virtual void f() {}
12653 struct Derived : public Base
12655 virtual ~Derived() override {}
12656 virtual void f() override {}
12661 namespace test_double_right_angle_brackets
12664 template < typename T >
12667 typedef check<void> single_type;
12668 typedef check<check<void>> double_type;
12669 typedef check<check<check<void>>> triple_type;
12670 typedef check<check<check<check<void>>>> quadruple_type;
12674 namespace test_decltype
12687 namespace test_type_deduction
12690 template < typename T1, typename T2 >
12693 static const bool value = false;
12696 template < typename T >
12697 struct is_same<T, T>
12699 static const bool value = true;
12702 template < typename T1, typename T2 >
12704 add(T1 a1, T2 a2) -> decltype(a1 + a2)
12710 test(const int c, volatile int v)
12712 static_assert(is_same<int, decltype(0)>::value == true, "");
12713 static_assert(is_same<int, decltype(c)>::value == false, "");
12714 static_assert(is_same<int, decltype(v)>::value == false, "");
12717 auto sumi = ac + av + 'x';
12718 auto sumf = ac + av + 1.0;
12719 static_assert(is_same<int, decltype(ac)>::value == true, "");
12720 static_assert(is_same<int, decltype(av)>::value == true, "");
12721 static_assert(is_same<int, decltype(sumi)>::value == true, "");
12722 static_assert(is_same<int, decltype(sumf)>::value == false, "");
12723 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
12724 return (sumf > 0.0) ? sumi : add(c, v);
12729 namespace test_noexcept
12732 int f() { return 0; }
12733 int g() noexcept { return 0; }
12735 static_assert(noexcept(f()) == false, "");
12736 static_assert(noexcept(g()) == true, "");
12740 namespace test_constexpr
12743 template < typename CharT >
12744 unsigned long constexpr
12745 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
12747 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
12750 template < typename CharT >
12751 unsigned long constexpr
12752 strlen_c(const CharT *const s) noexcept
12754 return strlen_c_r(s, 0UL);
12757 static_assert(strlen_c("") == 0UL, "");
12758 static_assert(strlen_c("1") == 1UL, "");
12759 static_assert(strlen_c("example") == 7UL, "");
12760 static_assert(strlen_c("another\0example") == 7UL, "");
12764 namespace test_rvalue_references
12770 static constexpr int value = N;
12773 answer<1> f(int&) { return answer<1>(); }
12774 answer<2> f(const int&) { return answer<2>(); }
12775 answer<3> f(int&&) { return answer<3>(); }
12782 static_assert(decltype(f(i))::value == 1, "");
12783 static_assert(decltype(f(c))::value == 2, "");
12784 static_assert(decltype(f(0))::value == 3, "");
12789 namespace test_uniform_initialization
12794 static const int zero {};
12795 static const int one {1};
12798 static_assert(test::zero == 0, "");
12799 static_assert(test::one == 1, "");
12803 namespace test_lambdas
12809 auto lambda1 = [](){};
12810 auto lambda2 = lambda1;
12818 auto a = [](int i, int j){ return i + j; }(1, 2);
12819 auto b = []() -> int { return '0'; }();
12820 auto c = [=](){ return a + b; }();
12821 auto d = [&](){ return c; }();
12822 auto e = [a, &b](int x) mutable {
12823 const auto identity = [](int y){ return y; };
12824 for (auto i = 0; i < a; ++i)
12826 return x + identity(a + b);
12828 return a + b + c + d + e;
12834 const auto nullary = [](){ return 0; };
12835 const auto unary = [](int x){ return x; };
12836 using nullary_t = decltype(nullary);
12837 using unary_t = decltype(unary);
12838 const auto higher1st = [](nullary_t f){ return f(); };
12839 const auto higher2nd = [unary](nullary_t f1){
12840 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
12842 return higher1st(nullary) + higher2nd(nullary)(unary);
12847 namespace test_variadic_templates
12853 template <int N0, int... N1toN>
12854 struct sum<N0, N1toN...>
12856 static constexpr auto value = N0 + sum<N1toN...>::value;
12862 static constexpr auto value = 0;
12865 static_assert(sum<>::value == 0, "");
12866 static_assert(sum<1>::value == 1, "");
12867 static_assert(sum<23>::value == 23, "");
12868 static_assert(sum<1, 2>::value == 3, "");
12869 static_assert(sum<5, 5, 11>::value == 21, "");
12870 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
12874 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
12875 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
12876 // because of this.
12877 namespace test_template_alias_sfinae
12882 template<typename T>
12883 using member = typename T::member_type;
12885 template<typename T>
12888 template<typename T>
12889 void func(member<T>*) {}
12893 void test() { func<foo>(0); }
12897 } // namespace cxx11
12899 #endif // __cplusplus >= 201103L
12904 if ac_fn_cxx_try_compile
"$LINENO"; then :
12905 ax_cv_cxx_compile_cxx11
=yes
12907 ax_cv_cxx_compile_cxx11
=no
12909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
12912 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
12913 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
12917 if test x
$ac_success = xno
; then
12918 for alternative
in ${ax_cxx_compile_alternatives}; do
12919 switch
="-std=gnu++${alternative}"
12920 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
12922 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
12923 if eval \
${$cachevar+:} false
; then :
12924 $as_echo_n "(cached) " >&6
12928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12932 // If the compiler admits that it is not ready for C++11, why torture it?
12933 // Hopefully, this will speed up the test.
12935 #ifndef __cplusplus
12937 #error "This is not a C++ compiler"
12939 #elif __cplusplus < 201103L
12941 #error "This is not a C++11 compiler"
12948 namespace test_static_assert
12951 template <typename T>
12954 static_assert(sizeof(int) <= sizeof(T), "not big enough");
12959 namespace test_final_override
12965 virtual void f() {}
12968 struct Derived : public Base
12970 virtual ~Derived() override {}
12971 virtual void f() override {}
12976 namespace test_double_right_angle_brackets
12979 template < typename T >
12982 typedef check<void> single_type;
12983 typedef check<check<void>> double_type;
12984 typedef check<check<check<void>>> triple_type;
12985 typedef check<check<check<check<void>>>> quadruple_type;
12989 namespace test_decltype
13002 namespace test_type_deduction
13005 template < typename T1, typename T2 >
13008 static const bool value = false;
13011 template < typename T >
13012 struct is_same<T, T>
13014 static const bool value = true;
13017 template < typename T1, typename T2 >
13019 add(T1 a1, T2 a2) -> decltype(a1 + a2)
13025 test(const int c, volatile int v)
13027 static_assert(is_same<int, decltype(0)>::value == true, "");
13028 static_assert(is_same<int, decltype(c)>::value == false, "");
13029 static_assert(is_same<int, decltype(v)>::value == false, "");
13032 auto sumi = ac + av + 'x';
13033 auto sumf = ac + av + 1.0;
13034 static_assert(is_same<int, decltype(ac)>::value == true, "");
13035 static_assert(is_same<int, decltype(av)>::value == true, "");
13036 static_assert(is_same<int, decltype(sumi)>::value == true, "");
13037 static_assert(is_same<int, decltype(sumf)>::value == false, "");
13038 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13039 return (sumf > 0.0) ? sumi : add(c, v);
13044 namespace test_noexcept
13047 int f() { return 0; }
13048 int g() noexcept { return 0; }
13050 static_assert(noexcept(f()) == false, "");
13051 static_assert(noexcept(g()) == true, "");
13055 namespace test_constexpr
13058 template < typename CharT >
13059 unsigned long constexpr
13060 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13062 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13065 template < typename CharT >
13066 unsigned long constexpr
13067 strlen_c(const CharT *const s) noexcept
13069 return strlen_c_r(s, 0UL);
13072 static_assert(strlen_c("") == 0UL, "");
13073 static_assert(strlen_c("1") == 1UL, "");
13074 static_assert(strlen_c("example") == 7UL, "");
13075 static_assert(strlen_c("another\0example") == 7UL, "");
13079 namespace test_rvalue_references
13085 static constexpr int value = N;
13088 answer<1> f(int&) { return answer<1>(); }
13089 answer<2> f(const int&) { return answer<2>(); }
13090 answer<3> f(int&&) { return answer<3>(); }
13097 static_assert(decltype(f(i))::value == 1, "");
13098 static_assert(decltype(f(c))::value == 2, "");
13099 static_assert(decltype(f(0))::value == 3, "");
13104 namespace test_uniform_initialization
13109 static const int zero {};
13110 static const int one {1};
13113 static_assert(test::zero == 0, "");
13114 static_assert(test::one == 1, "");
13118 namespace test_lambdas
13124 auto lambda1 = [](){};
13125 auto lambda2 = lambda1;
13133 auto a = [](int i, int j){ return i + j; }(1, 2);
13134 auto b = []() -> int { return '0'; }();
13135 auto c = [=](){ return a + b; }();
13136 auto d = [&](){ return c; }();
13137 auto e = [a, &b](int x) mutable {
13138 const auto identity = [](int y){ return y; };
13139 for (auto i = 0; i < a; ++i)
13141 return x + identity(a + b);
13143 return a + b + c + d + e;
13149 const auto nullary = [](){ return 0; };
13150 const auto unary = [](int x){ return x; };
13151 using nullary_t = decltype(nullary);
13152 using unary_t = decltype(unary);
13153 const auto higher1st = [](nullary_t f){ return f(); };
13154 const auto higher2nd = [unary](nullary_t f1){
13155 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13157 return higher1st(nullary) + higher2nd(nullary)(unary);
13162 namespace test_variadic_templates
13168 template <int N0, int... N1toN>
13169 struct sum<N0, N1toN...>
13171 static constexpr auto value = N0 + sum<N1toN...>::value;
13177 static constexpr auto value = 0;
13180 static_assert(sum<>::value == 0, "");
13181 static_assert(sum<1>::value == 1, "");
13182 static_assert(sum<23>::value == 23, "");
13183 static_assert(sum<1, 2>::value == 3, "");
13184 static_assert(sum<5, 5, 11>::value == 21, "");
13185 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13189 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13190 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13191 // because of this.
13192 namespace test_template_alias_sfinae
13197 template<typename T>
13198 using member = typename T::member_type;
13200 template<typename T>
13203 template<typename T>
13204 void func(member<T>*) {}
13208 void test() { func<foo>(0); }
13212 } // namespace cxx11
13214 #endif // __cplusplus >= 201103L
13219 if ac_fn_cxx_try_compile
"$LINENO"; then :
13224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13227 eval ac_res
=\$
$cachevar
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13229 $as_echo "$ac_res" >&6; }
13230 if eval test x\$
$cachevar = xyes
; then
13232 if test -n "$CXXCPP" ; then
13233 CXXCPP
="$CXXCPP $switch"
13241 if test x
$ac_success = xno
; then
13242 for alternative
in ${ax_cxx_compile_alternatives}; do
13243 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
13244 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
13246 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
13247 if eval \${$cachevar+:} false; then :
13248 $as_echo_n "(cached
) " >&6
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13256 // If the compiler admits that it is not ready for C++11, why torture it?
13257 // Hopefully, this will speed up the test.
13259 #ifndef __cplusplus
13261 #error "This is not a C
++ compiler
"
13263 #elif __cplusplus < 201103L
13265 #error "This is not a C
++11 compiler
"
13272 namespace test_static_assert
13275 template <typename T>
13278 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
13283 namespace test_final_override
13289 virtual void f() {}
13292 struct Derived : public Base
13294 virtual ~Derived() override {}
13295 virtual void f() override {}
13300 namespace test_double_right_angle_brackets
13303 template < typename T >
13306 typedef check<void> single_type;
13307 typedef check<check<void>> double_type;
13308 typedef check<check<check<void>>> triple_type;
13309 typedef check<check<check<check<void>>>> quadruple_type;
13313 namespace test_decltype
13326 namespace test_type_deduction
13329 template < typename T1, typename T2 >
13332 static const bool value = false;
13335 template < typename T >
13336 struct is_same<T, T>
13338 static const bool value = true;
13341 template < typename T1, typename T2 >
13343 add(T1 a1, T2 a2) -> decltype(a1 + a2)
13349 test(const int c, volatile int v)
13351 static_assert(is_same<int, decltype(0)>::value == true, "");
13352 static_assert(is_same<int, decltype(c)>::value == false, "");
13353 static_assert(is_same<int, decltype(v)>::value == false, "");
13356 auto sumi = ac + av + 'x';
13357 auto sumf = ac + av + 1.0;
13358 static_assert(is_same<int, decltype(ac)>::value == true, "");
13359 static_assert(is_same<int, decltype(av)>::value == true, "");
13360 static_assert(is_same<int, decltype(sumi)>::value == true, "");
13361 static_assert(is_same<int, decltype(sumf)>::value == false, "");
13362 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13363 return (sumf > 0.0) ? sumi : add(c, v);
13368 namespace test_noexcept
13371 int f() { return 0; }
13372 int g() noexcept { return 0; }
13374 static_assert(noexcept(f()) == false, "");
13375 static_assert(noexcept(g()) == true, "");
13379 namespace test_constexpr
13382 template < typename CharT >
13383 unsigned long constexpr
13384 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13386 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13389 template < typename CharT >
13390 unsigned long constexpr
13391 strlen_c(const CharT *const s) noexcept
13393 return strlen_c_r(s, 0UL);
13396 static_assert(strlen_c("") == 0UL, "");
13397 static_assert(strlen_c("1") == 1UL, "");
13398 static_assert(strlen_c("example
") == 7UL, "");
13399 static_assert(strlen_c("another\
0example
") == 7UL, "");
13403 namespace test_rvalue_references
13409 static constexpr int value = N;
13412 answer<1> f(int&) { return answer<1>(); }
13413 answer<2> f(const int&) { return answer<2>(); }
13414 answer<3> f(int&&) { return answer<3>(); }
13421 static_assert(decltype(f(i))::value == 1, "");
13422 static_assert(decltype(f(c))::value == 2, "");
13423 static_assert(decltype(f(0))::value == 3, "");
13428 namespace test_uniform_initialization
13433 static const int zero {};
13434 static const int one {1};
13437 static_assert(test::zero == 0, "");
13438 static_assert(test::one == 1, "");
13442 namespace test_lambdas
13448 auto lambda1 = [](){};
13449 auto lambda2 = lambda1;
13457 auto a = [](int i, int j){ return i + j; }(1, 2);
13458 auto b = []() -> int { return '0'; }();
13459 auto c = [=](){ return a + b; }();
13460 auto d = [&](){ return c; }();
13461 auto e = [a, &b](int x) mutable {
13462 const auto identity = [](int y){ return y; };
13463 for (auto i = 0; i < a; ++i)
13465 return x + identity(a + b);
13467 return a + b + c + d + e;
13473 const auto nullary = [](){ return 0; };
13474 const auto unary = [](int x){ return x; };
13475 using nullary_t = decltype(nullary);
13476 using unary_t = decltype(unary);
13477 const auto higher1st = [](nullary_t f){ return f(); };
13478 const auto higher2nd = [unary](nullary_t f1){
13479 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13481 return higher1st(nullary) + higher2nd(nullary)(unary);
13486 namespace test_variadic_templates
13492 template <int N0, int... N1toN>
13493 struct sum<N0, N1toN...>
13495 static constexpr auto value = N0 + sum<N1toN...>::value;
13501 static constexpr auto value = 0;
13504 static_assert(sum<>::value == 0, "");
13505 static_assert(sum<1>::value == 1, "");
13506 static_assert(sum<23>::value == 23, "");
13507 static_assert(sum<1, 2>::value == 3, "");
13508 static_assert(sum<5, 5, 11>::value == 21, "");
13509 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13513 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13514 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13515 // because of this.
13516 namespace test_template_alias_sfinae
13521 template<typename T>
13522 using member = typename T::member_type;
13524 template<typename T>
13527 template<typename T>
13528 void func(member<T>*) {}
13532 void test() { func<foo>(0); }
13536 } // namespace cxx11
13538 #endif // __cplusplus >= 201103L
13543 if ac_fn_cxx_try_compile "$LINENO"; then :
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551 eval ac_res=\$$cachevar
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
13553 $as_echo "$ac_res" >&6; }
13554 if eval test x\$$cachevar = xyes; then
13556 if test -n "$CXXCPP" ; then
13557 CXXCPP="$CXXCPP $switch"
13563 if test x$ac_success = xyes; then
13570 ac_cpp='$CXXCPP $CPPFLAGS'
13571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13575 if test x$ax_cxx_compile_cxx11_required = xtrue; then
13576 if test x$ac_success = xno; then
13577 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
13580 if test x$ac_success = xno; then
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
13583 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
13587 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
13593 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
13594 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
13596 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
13597 if ${gold_cv_hash_off_t+:} false
; then :
13598 $as_echo_n "(cached) " >&6
13600 CXXFLAGS_hold
=$CXXFLAGS
13601 CXXFLAGS
="$CXXFLAGS $LFS_CFLAGS"
13602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13605 #include <sys/types.h>
13606 #include <tr1/unordered_map>
13607 std::tr1::hash<off_t> h;
13610 if ac_fn_cxx_try_compile
"$LINENO"; then :
13611 gold_cv_hash_off_t
=yes
13613 gold_cv_hash_off_t
=no
13615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13616 CXXFLAGS
=$CXXFLAGS_hold
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
13619 $as_echo "$gold_cv_hash_off_t" >&6; }
13620 if test "$gold_cv_hash_off_t" = "yes"; then
13622 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
13626 # gcc 4.3.0 doesn't recognize the printf attribute on a template
13627 # function. Check for that. This is gcc bug 35546. This test can
13628 # probably be removed after the bug has been fixed for a while.
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
13630 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
13631 if ${gold_cv_template_attribute+:} false
; then :
13632 $as_echo_n "(cached) " >&6
13634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13637 template<typename T> extern void foo(const char*, ...)
13638 __attribute__ ((__format__ (__printf__, 1, 2)));
13639 template<typename T> void foo(const char* format, ...) {}
13640 void bar() { foo<int>("%s\n", "foo"); }
13643 if ac_fn_cxx_try_compile
"$LINENO"; then :
13644 gold_cv_template_attribute
=yes
13646 gold_cv_template_attribute
=no
13648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
13651 $as_echo "$gold_cv_template_attribute" >&6; }
13652 if test "$gold_cv_template_attribute" = "yes"; then
13654 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
13659 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
13660 if ${gold_cv_stat_st_mtim+:} false
; then :
13661 $as_echo_n "(cached) " >&6
13663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13666 #include <sys/stat.h>
13667 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
13677 if ac_fn_cxx_try_compile
"$LINENO"; then :
13678 gold_cv_stat_st_mtim
=yes
13680 gold_cv_stat_st_mtim
=no
13682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
13685 $as_echo "$gold_cv_stat_st_mtim" >&6; }
13686 if test "$gold_cv_stat_st_mtim" = "yes"; then
13688 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
13693 ac_cpp
='$CPP $CPPFLAGS'
13694 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13695 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13696 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13699 for ac_header
in locale.h
13701 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13702 if test "x$ac_cv_header_locale_h" = xyes
; then :
13703 cat >>confdefs.h
<<_ACEOF
13704 #define HAVE_LOCALE_H 1
13711 for ac_func
in setlocale
13713 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
13714 if test "x$ac_cv_func_setlocale" = xyes
; then :
13715 cat >>confdefs.h
<<_ACEOF
13716 #define HAVE_SETLOCALE 1
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13724 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13725 if ${am_cv_val_LC_MESSAGES+:} false
; then :
13726 $as_echo_n "(cached) " >&6
13728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730 #include <locale.h>
13739 if ac_fn_c_try_link
"$LINENO"; then :
13740 am_cv_val_LC_MESSAGES
=yes
13742 am_cv_val_LC_MESSAGES
=no
13744 rm -f core conftest.err conftest.
$ac_objext \
13745 conftest
$ac_exeext conftest.
$ac_ext
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13748 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13749 if test $am_cv_val_LC_MESSAGES = yes; then
13751 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13758 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13759 # Check whether --enable-maintainer-mode was given.
13760 if test "${enable_maintainer_mode+set}" = set; then :
13761 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
13763 USE_MAINTAINER_MODE
=no
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13767 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13768 if test $USE_MAINTAINER_MODE = yes; then
13769 MAINTAINER_MODE_TRUE
=
13770 MAINTAINER_MODE_FALSE
='#'
13772 MAINTAINER_MODE_TRUE
='#'
13773 MAINTAINER_MODE_FALSE
=
13776 MAINT
=$MAINTAINER_MODE_TRUE
13780 ac_config_files
="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
13782 cat >confcache
<<\_ACEOF
13783 # This file is a shell script that caches the results of configure
13784 # tests run on this system so they can be shared between configure
13785 # scripts and configure runs, see configure's option --config-cache.
13786 # It is not useful on other systems. If it contains results you don't
13787 # want to keep, you may remove or edit it.
13789 # config.status only pays attention to the cache file if you give it
13790 # the --recheck option to rerun configure.
13792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13794 # following values.
13798 # The following way of writing the cache mishandles newlines in values,
13799 # but we know of no workaround that is simple, portable, and efficient.
13800 # So, we kill variables containing newlines.
13801 # Ultrix sh set writes to stderr and can't be redirected directly,
13802 # and sets the high bit in the cache file unless we assign to the vars.
13804 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13805 eval ac_val
=\$
$ac_var
13809 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13810 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13813 _ | IFS | as_nl
) ;; #(
13814 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13815 *) { eval $ac_var=; unset $ac_var;} ;;
13821 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13822 *${as_nl}ac_space
=\
*)
13823 # `set' does not quote correctly, so add quotes: double-quote
13824 # substitution turns \\\\ into \\, and sed turns \\ into \.
13827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13830 # `set' quotes correctly as required by POSIX, so do not add quotes.
13831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13842 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13844 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13845 if test -w "$cache_file"; then
13846 if test "x$cache_file" != "x/dev/null"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13848 $as_echo "$as_me: updating cache $cache_file" >&6;}
13849 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
13850 cat confcache
>"$cache_file"
13852 case $cache_file in #(
13854 mv -f confcache
"$cache_file"$$
&&
13855 mv -f "$cache_file"$$
"$cache_file" ;; #(
13857 mv -f confcache
"$cache_file" ;;
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13863 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13868 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13869 # Let make expand exec_prefix.
13870 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13872 DEFS
=-DHAVE_CONFIG_H
13876 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13877 # 1. Remove the extension, and $U if already installed.
13878 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13879 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13880 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13881 # will be set to the directory where LIBOBJS objects are built.
13882 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13883 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13885 LIBOBJS
=$ac_libobjs
13887 LTLIBOBJS
=$ac_ltlibobjs
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13891 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13892 if test -n "$am_sleep_pid"; then
13893 # Hide warnings about reused PIDs.
13894 wait $am_sleep_pid 2>/dev
/null
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13897 $as_echo "done" >&6; }
13898 if test -n "$EXEEXT"; then
13900 am__EXEEXT_FALSE
='#'
13902 am__EXEEXT_TRUE
='#'
13906 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13907 as_fn_error $?
"conditional \"AMDEP\" was never defined.
13908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13910 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13911 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
13912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13914 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
13915 as_fn_error $?
"conditional \"PLUGINS\" was never defined.
13916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13918 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
13919 as_fn_error $?
"conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
13920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13922 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
13923 as_fn_error $?
"conditional \"DEFAULT_TARGET_ARM\" was never defined.
13924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13926 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
13927 as_fn_error $?
"conditional \"DEFAULT_TARGET_I386\" was never defined.
13928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13930 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
13931 as_fn_error $?
"conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
13932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13934 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
13935 as_fn_error $?
"conditional \"DEFAULT_TARGET_SPARC\" was never defined.
13936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13938 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
13939 as_fn_error $?
"conditional \"DEFAULT_TARGET_S390\" was never defined.
13940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13942 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
13943 as_fn_error $?
"conditional \"DEFAULT_TARGET_X86_64\" was never defined.
13944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13946 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
13947 as_fn_error $?
"conditional \"DEFAULT_TARGET_X32\" was never defined.
13948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13950 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
13951 as_fn_error $?
"conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
13952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13954 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
13955 as_fn_error $?
"conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
13956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13958 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
13959 as_fn_error $?
"conditional \"DEFAULT_TARGET_MIPS\" was never defined.
13960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13962 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13963 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
13964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13966 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13967 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
13968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13971 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
13972 as_fn_error $?
"conditional \"NATIVE_LINKER\" was never defined.
13973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13975 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
13976 as_fn_error $?
"conditional \"GCC\" was never defined.
13977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13979 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
13980 as_fn_error $?
"conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
13981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13983 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
13984 as_fn_error $?
"conditional \"HAVE_STATIC\" was never defined.
13985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13987 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
13988 as_fn_error $?
"conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
13989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13991 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
13992 as_fn_error $?
"conditional \"MCMODEL_MEDIUM\" was never defined.
13993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13995 if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
13996 as_fn_error $?
"conditional \"GCC9\" was never defined.
13997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13999 if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
14000 as_fn_error $?
"conditional \"CFLAGS_CF_PROTECTION\" was never defined.
14001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14003 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
14004 as_fn_error $?
"conditional \"TLS\" was never defined.
14005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14007 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
14008 as_fn_error $?
"conditional \"STATIC_TLS\" was never defined.
14009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14011 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
14012 as_fn_error $?
"conditional \"OMP_SUPPORT\" was never defined.
14013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14015 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
14016 as_fn_error $?
"conditional \"TLS_GNU2_DIALECT\" was never defined.
14017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14019 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
14020 as_fn_error $?
"conditional \"TLS_DESCRIPTORS\" was never defined.
14021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14023 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
14024 as_fn_error $?
"conditional \"IFUNC\" was never defined.
14025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14027 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
14028 as_fn_error $?
"conditional \"IFUNC_STATIC\" was never defined.
14029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14031 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14032 as_fn_error $?
"conditional \"HAVE_ZSTD\" was never defined.
14033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14035 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
14036 as_fn_error $?
"conditional \"THREADS\" was never defined.
14037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14039 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
14040 as_fn_error $?
"conditional \"HAVE_PUBNAMES\" was never defined.
14041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14043 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
14044 as_fn_error $?
"conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
14045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14047 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14048 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
14049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14052 : "${CONFIG_STATUS=./config.status}"
14054 ac_clean_files_save
=$ac_clean_files
14055 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14057 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14059 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14061 # Generated by $as_me.
14062 # Run this file to recreate the current configuration.
14063 # Compiler output produced by configure, useful for debugging
14064 # configure, is in config.log if it exists.
14067 ac_cs_recheck=false
14070 SHELL=\${CONFIG_SHELL-$SHELL}
14073 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14074 ## -------------------- ##
14075 ## M4sh Initialization. ##
14076 ## -------------------- ##
14078 # Be more Bourne compatible
14079 DUALCASE
=1; export DUALCASE
# for MKS sh
14080 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14083 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14084 # is contrary to our usage. Disable this feature.
14085 alias -g '${1+"$@"}'='"$@"'
14086 setopt NO_GLOB_SUBST
14088 case `(set -o) 2>/dev/null` in #(
14100 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14101 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14102 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14103 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14104 # Prefer a ksh shell builtin over an external printf program on Solaris,
14105 # but without wasting forks for bash or zsh.
14106 if test -z "$BASH_VERSION$ZSH_VERSION" \
14107 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14108 as_echo='print
-r --'
14109 as_echo_n='print
-rn --'
14110 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14111 as_echo='printf %s
\n'
14112 as_echo_n='printf %s
'
14114 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14115 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14116 as_echo_n='/usr
/ucb
/echo -n'
14118 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14119 as_echo_n_body='eval
14123 expr "X$arg" : "X\\(.*\\)$as_nl";
14124 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14126 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14128 export as_echo_n_body
14129 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14131 export as_echo_body
14132 as_echo='sh
-c $as_echo_body as_echo
'
14135 # The user is always right.
14136 if test "${PATH_SEPARATOR+set}" != set; then
14138 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14139 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14146 # We need space, tab and new line, in precisely that order. Quoting is
14147 # there to prevent editors from complaining about space-tab.
14148 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14149 # splitting by setting IFS to empty value.)
14152 # Find who we are. Look in the path if we contain no directory separator.
14155 *[\\/]* ) as_myself=$0 ;;
14156 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14157 for as_dir in $PATH
14160 test -z "$as_dir" && as_dir=.
14161 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14167 # We did not find ourselves, most probably we were run as `sh COMMAND'
14168 # in which case we are not to be found in the path.
14169 if test "x$as_myself" = x
; then
14172 if test ! -f "$as_myself"; then
14173 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14177 # Unset variables that we do not need and which cause bugs (e.g. in
14178 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14179 # suppresses any "Segmentation fault" message there. '((' could
14180 # trigger a bug in pdksh 5.2.14.
14181 for as_var
in BASH_ENV ENV MAIL MAILPATH
14182 do eval test x\
${$as_var+set} = xset \
14183 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14196 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14199 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14200 # ----------------------------------------
14201 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14202 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14203 # script with STATUS, using 1 if that was 0.
14206 as_status
=$1; test $as_status -eq 0 && as_status
=1
14208 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14209 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14211 $as_echo "$as_me: error: $2" >&2
14212 as_fn_exit
$as_status
14216 # as_fn_set_status STATUS
14217 # -----------------------
14218 # Set $? to STATUS, without forking.
14219 as_fn_set_status
()
14222 } # as_fn_set_status
14224 # as_fn_exit STATUS
14225 # -----------------
14226 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14230 as_fn_set_status
$1
14236 # Portably unset VAR.
14239 { eval $1=; unset $1;}
14241 as_unset
=as_fn_unset
14242 # as_fn_append VAR VALUE
14243 # ----------------------
14244 # Append the text in VALUE to the end of the definition contained in VAR. Take
14245 # advantage of any shell optimizations that allow amortized linear growth over
14246 # repeated appends, instead of the typical quadratic growth present in naive
14248 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14249 eval 'as_fn_append ()
14260 # as_fn_arith ARG...
14261 # ------------------
14262 # Perform arithmetic evaluation on the ARGs, and store the result in the
14263 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14264 # must be portable across $(()) and expr.
14265 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14266 eval 'as_fn_arith ()
14273 as_val
=`expr "$@" || test $? -eq 1`
14278 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14279 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14285 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14286 as_basename
=basename
14291 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14297 as_me
=`$as_basename -- "$0" ||
14298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14299 X"$0" : 'X\(//\)$' \| \
14300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14302 sed '/^.*\/\([^/][^/]*\)\/*$/{
14316 # Avoid depending upon Character Ranges.
14317 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14318 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14319 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14320 as_cr_digits
='0123456789'
14321 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14323 ECHO_C
= ECHO_N
= ECHO_T
=
14324 case `echo -n x` in #(((((
14326 case `echo 'xy\c'` in
14327 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14329 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14336 rm -f conf$$ conf$$.exe conf$$.
file
14337 if test -d conf$$.dir
; then
14338 rm -f conf$$.dir
/conf$$.
file
14341 mkdir conf$$.dir
2>/dev
/null
14343 if (echo >conf$$.
file) 2>/dev
/null
; then
14344 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14346 # ... but there are two gotchas:
14347 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14348 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14349 # In both cases, we have to default to `cp -pR'.
14350 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14352 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14360 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14361 rmdir conf$$.dir
2>/dev
/null
14366 # Create "$as_dir" as a directory, including parents if necessary.
14371 -*) as_dir
=.
/$as_dir;;
14373 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14377 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14378 *) as_qdir
=$as_dir;;
14380 as_dirs
="'$as_qdir' $as_dirs"
14381 as_dir
=`$as_dirname -- "$as_dir" ||
14382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14383 X"$as_dir" : 'X\(//\)[^/]' \| \
14384 X"$as_dir" : 'X\(//\)$' \| \
14385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14386 $as_echo X"$as_dir" |
14387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14391 /^X\(\/\/\)[^/].*/{
14404 test -d "$as_dir" && break
14406 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14407 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
14411 if mkdir
-p .
2>/dev
/null
; then
14412 as_mkdir_p
='mkdir -p "$as_dir"'
14414 test -d .
/-p && rmdir .
/-p
14419 # as_fn_executable_p FILE
14420 # -----------------------
14421 # Test if FILE is an executable regular file.
14422 as_fn_executable_p
()
14424 test -f "$1" && test -x "$1"
14425 } # as_fn_executable_p
14426 as_test_x
='test -x'
14427 as_executable_p
=as_fn_executable_p
14429 # Sed expression to map a string onto a valid CPP name.
14430 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14432 # Sed expression to map a string onto a valid variable name.
14433 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14437 ## ----------------------------------- ##
14438 ## Main body of $CONFIG_STATUS script. ##
14439 ## ----------------------------------- ##
14441 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14444 # Save the log message, to keep $0 and so on meaningful, and to
14445 # report actual input values of CONFIG_FILES etc. instead of their
14446 # values after options handling.
14448 This file was extended by gold $as_me 0.1, which was
14449 generated by GNU Autoconf 2.69. Invocation command line was
14451 CONFIG_FILES = $CONFIG_FILES
14452 CONFIG_HEADERS = $CONFIG_HEADERS
14453 CONFIG_LINKS = $CONFIG_LINKS
14454 CONFIG_COMMANDS = $CONFIG_COMMANDS
14457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14462 case $ac_config_files in *"
14463 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14466 case $ac_config_headers in *"
14467 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14472 # Files that config.status was made for.
14473 config_files="$ac_config_files"
14474 config_headers="$ac_config_headers"
14475 config_commands="$ac_config_commands"
14479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14481 \`$as_me' instantiates files and other configuration actions
14482 from templates according to the current configuration. Unless the files
14483 and actions are specified as TAGs, all are instantiated by default.
14485 Usage: $0 [OPTION]... [TAG]...
14487 -h, --help print this help, then exit
14488 -V, --version print version number and configuration settings, then exit
14489 --config print configuration, then exit
14490 -q, --quiet, --silent
14491 do not print progress messages
14492 -d, --debug don't remove temporary files
14493 --recheck update $as_me by reconfiguring in the same conditions
14494 --file=FILE[:TEMPLATE]
14495 instantiate the configuration file FILE
14496 --header=FILE[:TEMPLATE]
14497 instantiate the configuration header FILE
14499 Configuration files:
14502 Configuration headers:
14505 Configuration commands:
14508 Report bugs to the package provider."
14511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14512 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14514 gold config.status 0.1
14515 configured by $0, generated by GNU Autoconf 2.69,
14516 with options \\"\$ac_cs_config\\"
14518 Copyright (C) 2012 Free Software Foundation, Inc.
14519 This config.status script is free software; the Free Software Foundation
14520 gives unlimited permission to copy, distribute and modify it."
14527 test -n "\$AWK" || AWK=awk
14530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14531 # The default lists apply if the user does not specify any file.
14537 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14538 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14542 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14554 # Handling of the options.
14555 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14557 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14558 $as_echo "$ac_cs_version"; exit ;;
14559 --config |
--confi |
--conf |
--con |
--co |
--c )
14560 $as_echo "$ac_cs_config"; exit ;;
14561 --debug |
--debu |
--deb |
--de |
--d |
-d )
14563 --file |
--fil |
--fi |
--f )
14566 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14567 '') as_fn_error $?
"missing file argument" ;;
14569 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14570 ac_need_defaults
=false
;;
14571 --header |
--heade |
--head |
--hea )
14574 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14576 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14577 ac_need_defaults
=false
;;
14579 # Conflict between --help and --header
14580 as_fn_error $?
"ambiguous option: \`$1'
14581 Try \`$0 --help' for more information.";;
14582 --help |
--hel |
-h )
14583 $as_echo "$ac_cs_usage"; exit ;;
14584 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14585 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14588 # This is an error.
14589 -*) as_fn_error $?
"unrecognized option: \`$1'
14590 Try \`$0 --help' for more information." ;;
14592 *) as_fn_append ac_config_targets
" $1"
14593 ac_need_defaults
=false
;;
14599 ac_configure_extra_args
=
14601 if $ac_cs_silent; then
14603 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14608 if \$ac_cs_recheck; then
14609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14611 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14612 CONFIG_SHELL='$SHELL'
14613 export CONFIG_SHELL
14618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14623 ## Running $as_me. ##
14629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14633 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14634 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14635 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14637 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14638 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14639 LINGUAS="${LINGUAS-%UNSET%}"
14641 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14642 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14644 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14645 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14646 LINGUAS="${LINGUAS-%UNSET%}"
14651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14653 # Handling of arguments.
14654 for ac_config_target
in $ac_config_targets
14656 case $ac_config_target in
14657 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
14658 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
14659 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
14660 "default-2") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
14661 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14662 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
14663 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14665 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14670 # If the user did not use the arguments to specify the items to instantiate,
14671 # then the envvar interface is used. Set only those that are not.
14672 # We use the long form for the default assignment because of an extremely
14673 # bizarre bug on SunOS 4.1.3.
14674 if $ac_need_defaults; then
14675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14680 # Have a temporary directory for convenience. Make it in the build tree
14681 # simply because there is no reason against having it here, and in addition,
14682 # creating and moving files from /tmp can sometimes cause problems.
14683 # Hook for its removal unless debugging.
14684 # Note that there is a small window in which the directory will not be cleaned:
14685 # after its creation but before its name has been assigned to `$tmp'.
14689 trap 'exit_status=$?
14690 : "${ac_tmp:=$tmp}"
14691 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14693 trap 'as_fn_exit 1' 1 2 13 15
14695 # Create a (secure) tmp directory for tmp files.
14698 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14702 tmp
=.
/conf$$
-$RANDOM
14703 (umask 077 && mkdir
"$tmp")
14704 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
14707 # Set up the scripts for CONFIG_FILES section.
14708 # No need to generate them if there are no CONFIG_FILES.
14709 # This happens for instance with `./config.status config.h'.
14710 if test -n "$CONFIG_FILES"; then
14713 ac_cr
=`echo X | tr X '\015'`
14714 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14715 # But we know of no other shell where ac_cr would be empty at this
14716 # point, so we can use a bashism as a fallback.
14717 if test "x$ac_cr" = x
; then
14718 eval ac_cr
=\$
\'\\r
\'
14720 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14721 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14724 ac_cs_awk_cr
=$ac_cr
14727 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14732 echo "cat >conf$$subs.awk <<_ACEOF" &&
14733 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14735 } >conf$$subs.sh ||
14736 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14737 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14739 for ac_last_try in false false false false false :; do
14740 . ./conf$$subs.sh ||
14741 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14743 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14744 if test $ac_delim_n = $ac_delim_num; then
14746 elif $ac_last_try; then
14747 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14749 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14752 rm -f conf$$subs.sh
14754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14755 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
14759 s/^/S["/; s
/!.
*/"]=/
14769 s/\(.\{148\}\)..*/\1/
14771 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14776 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14783 s/\(.\{148\}\)..*/\1/
14785 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14789 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14794 ' <conf$$subs.awk | sed '
14799 ' >>$CONFIG_STATUS || ac_write_fail=1
14800 rm -f conf$$subs.awk
14801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14803 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
14804 for (key in S) S_is_set[key] = 1
14810 nfields = split(line, field, "@
")
14812 len = length(field[1])
14813 for (i = 2; i < nfields; i++) {
14815 keylen = length(key)
14816 if (S_is_set[key]) {
14818 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14819 len += length(value) + length(field[++i])
14830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14831 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14832 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14835 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
14836 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
14839 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14840 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
14841 # trailing colons and then remove the whole line if VPATH becomes empty
14842 # (actually we leave an empty line to preserve line numbers).
14843 if test "x
$srcdir" = x.; then
14844 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14863 fi # test -n "$CONFIG_FILES"
14865 # Set up the scripts for CONFIG_HEADERS section.
14866 # No need to generate them if there are no CONFIG_HEADERS.
14867 # This happens for instance with `./config.status Makefile'.
14868 if test -n "$CONFIG_HEADERS"; then
14869 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
14873 # Transform confdefs.h into an awk script `defines.awk', embedded as
14874 # here-document in config.status, that substitutes the proper values into
14875 # config.h.in to produce config.h.
14877 # Create a delimiter string that does not exist in confdefs.h, to ease
14878 # handling of long lines.
14880 for ac_last_try in false false :; do
14881 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
14882 if test -z "$ac_tt"; then
14884 elif $ac_last_try; then
14885 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
14887 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14891 # For the awk script, D is an array of macro values keyed by name,
14892 # likewise P contains macro parameters if any. Preserve backslash
14893 # newline sequences.
14895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14897 s/.\{148\}/&'"$ac_delim"'/g
14900 s/^[ ]*#[ ]*define[ ][ ]*/ /
14907 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14909 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14914 D["\
1"]=" \
3\\\\\\n
"\\/p
14916 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14921 s/.\{148\}/&'"$ac_delim"'/g
14926 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14929 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14931 ' <confdefs.h | sed '
14932 s/'"$ac_delim"'/"\\\
14933 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14936 for (key in D) D_is_set[key] = 1
14939 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14941 split(line, arg, " ")
14942 if (arg[1] == "#") {
14946 defundef
= substr
(arg
[1], 2)
14949 split(mac1
, mac2
, "(") #)
14951 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14952 if (D_is_set
[macro
]) {
14953 # Preserve the white space surrounding the "#".
14954 print prefix
"define", macro P
[macro
] D
[macro
]
14957 # Replace #undef with comments. This is necessary, for example,
14958 # in the case of _POSIX_SOURCE, which is predefined and required
14959 # on some systems where configure will not decide to define it.
14960 if (defundef
== "undef") {
14961 print
"/*", prefix defundef
, macro
, "*/"
14969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14970 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
14971 fi # test -n "$CONFIG_HEADERS"
14974 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14979 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14981 case $ac_mode$ac_tag in
14983 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14984 :[FH
]-) ac_tag
=-:-;;
14985 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15002 -) ac_f
="$ac_tmp/stdin";;
15003 *) # Look for the file first in the build tree, then in the source tree
15004 # (if the path is not absolute). The absolute path cannot be DOS-style,
15005 # because $ac_f cannot contain `:'.
15009 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15011 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15013 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15014 as_fn_append ac_file_inputs
" '$ac_f'"
15017 # Let's still pretend it is `configure' which instantiates (i.e., don't
15018 # use $as_me), people would be surprised to read:
15019 # /* config.h. Generated by config.status. */
15020 configure_input
='Generated from '`
15021 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15023 if test x
"$ac_file" != x-
; then
15024 configure_input
="$ac_file. $configure_input"
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15026 $as_echo "$as_me: creating $ac_file" >&6;}
15028 # Neutralize special characters interpreted by sed in replacement strings.
15029 case $configure_input in #(
15030 *\
&* |
*\|
* |
*\\* )
15031 ac_sed_conf_input
=`$as_echo "$configure_input" |
15032 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15033 *) ac_sed_conf_input
=$configure_input;;
15037 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
15038 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
15043 ac_dir
=`$as_dirname -- "$ac_file" ||
15044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15045 X"$ac_file" : 'X\(//\)[^/]' \| \
15046 X"$ac_file" : 'X\(//\)$' \| \
15047 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15048 $as_echo X"$ac_file" |
15049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15053 /^X\(\/\/\)[^/].*/{
15066 as_dir
="$ac_dir"; as_fn_mkdir_p
15070 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15072 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15073 # A ".." for each directory in $ac_dir_suffix.
15074 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15075 case $ac_top_builddir_sub in
15076 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15077 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15080 ac_abs_top_builddir
=$ac_pwd
15081 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15082 # for backward compatibility:
15083 ac_top_builddir
=$ac_top_build_prefix
15086 .
) # We are building in place.
15088 ac_top_srcdir
=$ac_top_builddir_sub
15089 ac_abs_top_srcdir
=$ac_pwd ;;
15090 [\\/]* | ?
:[\\/]* ) # Absolute name.
15091 ac_srcdir
=$srcdir$ac_dir_suffix;
15092 ac_top_srcdir
=$srcdir
15093 ac_abs_top_srcdir
=$srcdir ;;
15094 *) # Relative name.
15095 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15096 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15097 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15099 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15109 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15110 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15112 ac_MKDIR_P
=$MKDIR_P
15114 [\\/$
]* | ?
:[\\/]* ) ;;
15115 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15120 # If the template does not know about datarootdir, expand it.
15121 # FIXME: This hack should be removed a few years after 2.60.
15122 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15133 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15134 *datarootdir
*) ac_datarootdir_seen
=yes;;
15135 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15137 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15140 ac_datarootdir_hack='
15141 s&@datadir@&$datadir&g
15142 s&@docdir@&$docdir&g
15143 s&@infodir@&$infodir&g
15144 s&@localedir@&$localedir&g
15145 s&@mandir@&$mandir&g
15146 s&\\\${datarootdir}&$datarootdir&g' ;;
15150 # Neutralize VPATH when `$srcdir' = `.'.
15151 # Shell code in configure.ac might set extrasub.
15152 # FIXME: do we really want to maintain this feature?
15153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15154 ac_sed_extra="$ac_vpsub
15157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15159 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15160 s|@configure_input@|
$ac_sed_conf_input|
;t t
15161 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15162 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15163 s
&@srcdir@
&$ac_srcdir&;t t
15164 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15165 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15166 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15167 s
&@builddir@
&$ac_builddir&;t t
15168 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15169 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15170 s
&@INSTALL@
&$ac_INSTALL&;t t
15171 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15172 $ac_datarootdir_hack
15174 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
15175 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
15177 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15178 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
15179 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15180 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15182 which seems to be undefined. Please make sure it is defined" >&5
15183 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15184 which seems to be undefined. Please make sure it is defined" >&2;}
15186 rm -f "$ac_tmp/stdin"
15188 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15189 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15197 if test x"$ac_file" != x-; then
15199 $as_echo "/* $configure_input */" \
15200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15201 } >"$ac_tmp/config.h" \
15202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15203 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15205 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15208 mv "$ac_tmp/config.h" "$ac_file" \
15209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15212 $as_echo "/* $configure_input */" \
15213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15214 || as_fn_error $? "could not create -" "$LINENO" 5
15216 # Compute "$ac_file"'s index
in $config_headers.
15219 for _am_header
in $config_headers :; do
15220 case $_am_header in
15221 $_am_arg |
$_am_arg:* )
15224 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15227 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15228 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15229 X"$_am_arg" : 'X\(//\)[^/]' \| \
15230 X"$_am_arg" : 'X\(//\)$' \| \
15231 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15232 $as_echo X"$_am_arg" |
15233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15237 /^X\(\/\/\)[^/].*/{
15249 s/.*/./; q'`/stamp-h
$_am_stamp_count
15252 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15253 $as_echo "$as_me: executing $ac_file commands" >&6;}
15258 case $ac_file$ac_mode in
15259 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
15260 # Older Autoconf quotes --file arguments for eval, but not when files
15261 # are listed without --file. Let's play safe and only enable the eval
15262 # if we detect the quoting.
15263 case $CONFIG_FILES in
15264 *\'*) eval set x
"$CONFIG_FILES" ;;
15265 *) set x
$CONFIG_FILES ;;
15270 # Strip MF so we end up with the name of the file.
15271 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15272 # Check whether this is an Automake generated Makefile or not.
15273 # We used to match only the files named 'Makefile.in', but
15274 # some people rename them; so instead we look at the file content.
15275 # Grep'ing the first line is not enough: some people post-process
15276 # each Makefile.in and add a new line on top of each file to say so.
15277 # Grep'ing the whole file is not good either: AIX grep has a line
15278 # limit of 2048, but all sed's we know have understand at least 4000.
15279 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
15280 dirpart
=`$as_dirname -- "$mf" ||
15281 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15282 X"$mf" : 'X\(//\)[^/]' \| \
15283 X"$mf" : 'X\(//\)$' \| \
15284 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15290 /^X\(\/\/\)[^/].*/{
15306 # Extract the definition of DEPDIR, am__include, and am__quote
15307 # from the Makefile without running 'make'.
15308 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15309 test -z "$DEPDIR" && continue
15310 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15311 test -z "$am__include" && continue
15312 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15313 # Find all dependency output files, they are included files with
15314 # $(DEPDIR) in their names. We invoke sed twice because it is the
15315 # simplest approach to changing $(DEPDIR) to its actual value in the
15317 for file in `sed -n "
15318 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15319 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15320 # Make sure the directory exists.
15321 test -f "$dirpart/$file" && continue
15322 fdir
=`$as_dirname -- "$file" ||
15323 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15324 X"$file" : 'X\(//\)[^/]' \| \
15325 X"$file" : 'X\(//\)$' \| \
15326 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15327 $as_echo X"$file" |
15328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15332 /^X\(\/\/\)[^/].*/{
15345 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
15346 # echo "creating $dirpart/$file"
15347 echo '# dummy' > "$dirpart/$file"
15353 for ac_file
in $CONFIG_FILES; do
15354 # Support "outfile[:infile[:infile...]]"
15356 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15358 # PO directories have a Makefile.in generated from Makefile.in.in.
15359 case "$ac_file" in */Makefile.
in)
15360 # Adjust a relative srcdir.
15361 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15362 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
15363 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15364 # In autoconf-2.13 it is called $ac_given_srcdir.
15365 # In autoconf-2.50 it is called $srcdir.
15366 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
15367 case "$ac_given_srcdir" in
15368 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
15369 /*) top_srcdir
="$ac_given_srcdir" ;;
15370 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
15372 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15373 rm -f "$ac_dir/POTFILES"
15374 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
15375 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15376 POMAKEFILEDEPS
="POTFILES.in"
15377 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15378 # on $ac_dir but don't depend on user-specified configuration
15380 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15381 # The LINGUAS file contains the set of available languages.
15382 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15383 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
15385 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15386 # Hide the ALL_LINGUAS assigment from automake.
15387 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15388 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
15390 # The set of available languages was given in configure.ac.
15391 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15393 case "$ac_given_srcdir" in
15395 *) srcdirpre
='$(srcdir)/' ;;
15401 for lang
in $ALL_LINGUAS; do
15402 POFILES
="$POFILES $srcdirpre$lang.po"
15403 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
15404 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
15405 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
15407 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15408 # environment variable.
15410 if test -n "$ALL_LINGUAS"; then
15411 for presentlang
in $ALL_LINGUAS; do
15413 if test "%UNSET%" != "$LINGUAS"; then
15414 desiredlanguages
="$LINGUAS"
15416 desiredlanguages
="$ALL_LINGUAS"
15418 for desiredlang
in $desiredlanguages; do
15419 # Use the presentlang catalog if desiredlang is
15420 # a. equal to presentlang, or
15421 # b. a variant of presentlang (because in this case,
15422 # presentlang can be used as a fallback for messages
15423 # which are not translated in the desiredlang catalog).
15424 case "$desiredlang" in
15425 "$presentlang"*) useit
=yes;;
15428 if test $useit = yes; then
15429 INST_LINGUAS
="$INST_LINGUAS $presentlang"
15434 if test -n "$INST_LINGUAS"; then
15435 for lang
in $INST_LINGUAS; do
15436 CATALOGS
="$CATALOGS $lang.gmo"
15439 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
15440 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15441 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
15442 if test -f "$f"; then
15444 *.orig |
*.bak |
*~
) ;;
15445 *) cat "$f" >> "$ac_dir/Makefile" ;;
15454 for ac_file
in $CONFIG_FILES; do
15455 # Support "outfile[:infile[:infile...]]"
15457 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15459 # PO directories have a Makefile.in generated from Makefile.in.in.
15460 case "$ac_file" in */Makefile.
in)
15461 # Adjust a relative srcdir.
15462 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15463 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
15464 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15465 # In autoconf-2.13 it is called $ac_given_srcdir.
15466 # In autoconf-2.50 it is called $srcdir.
15467 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
15468 case "$ac_given_srcdir" in
15469 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
15470 /*) top_srcdir
="$ac_given_srcdir" ;;
15471 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
15473 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15474 rm -f "$ac_dir/POTFILES"
15475 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
15476 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15477 POMAKEFILEDEPS
="POTFILES.in"
15478 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15479 # on $ac_dir but don't depend on user-specified configuration
15481 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15482 # The LINGUAS file contains the set of available languages.
15483 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15484 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
15486 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15487 # Hide the ALL_LINGUAS assigment from automake.
15488 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15489 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
15491 # The set of available languages was given in configure.ac.
15492 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15494 case "$ac_given_srcdir" in
15496 *) srcdirpre
='$(srcdir)/' ;;
15502 for lang
in $ALL_LINGUAS; do
15503 POFILES
="$POFILES $srcdirpre$lang.po"
15504 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
15505 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
15506 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
15508 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15509 # environment variable.
15511 if test -n "$ALL_LINGUAS"; then
15512 for presentlang
in $ALL_LINGUAS; do
15514 if test "%UNSET%" != "$LINGUAS"; then
15515 desiredlanguages
="$LINGUAS"
15517 desiredlanguages
="$ALL_LINGUAS"
15519 for desiredlang
in $desiredlanguages; do
15520 # Use the presentlang catalog if desiredlang is
15521 # a. equal to presentlang, or
15522 # b. a variant of presentlang (because in this case,
15523 # presentlang can be used as a fallback for messages
15524 # which are not translated in the desiredlang catalog).
15525 case "$desiredlang" in
15526 "$presentlang"*) useit
=yes;;
15529 if test $useit = yes; then
15530 INST_LINGUAS
="$INST_LINGUAS $presentlang"
15535 if test -n "$INST_LINGUAS"; then
15536 for lang
in $INST_LINGUAS; do
15537 CATALOGS
="$CATALOGS $lang.gmo"
15540 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
15541 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15542 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
15543 if test -f "$f"; then
15545 *.orig |
*.bak |
*~
) ;;
15546 *) cat "$f" >> "$ac_dir/Makefile" ;;
15561 ac_clean_files
=$ac_clean_files_save
15563 test $ac_write_fail = 0 ||
15564 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15567 # configure is writing to config.log, and then calls config.status.
15568 # config.status does its own redirection, appending to config.log.
15569 # Unfortunately, on DOS this fails, as config.log is still kept open
15570 # by configure, so config.status won't be able to write to it; its
15571 # output is simply discarded. So we exec the FD to /dev/null,
15572 # effectively closing config.log, so it can be properly (re)opened and
15573 # appended to by config.status. When coming back to configure, we
15574 # need to make the FD available again.
15575 if test "$no_create" != yes; then
15577 ac_config_status_args
=
15578 test "$silent" = yes &&
15579 ac_config_status_args
="$ac_config_status_args --quiet"
15581 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15583 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15584 # would make configure fail if this is the last instruction.
15585 $ac_cs_success || as_fn_exit
1
15587 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15589 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}