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>
622 ac_subst_vars='am__EXEEXT_FALSE
626 MAINTAINER_MODE_FALSE
630 HAVE_NO_USE_LINKER_PLUGIN_FALSE
631 HAVE_NO_USE_LINKER_PLUGIN_TRUE
643 WARN_CFLAGS_FOR_BUILD
650 TLS_DESCRIPTORS_FALSE
652 TLS_GNU2_DIALECT_FALSE
653 TLS_GNU2_DIALECT_TRUE
663 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
664 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
667 NATIVE_OR_CROSS_LINKER_FALSE
668 NATIVE_OR_CROSS_LINKER_TRUE
701 DEFAULT_TARGET_MIPS_FALSE
702 DEFAULT_TARGET_MIPS_TRUE
703 DEFAULT_TARGET_TILEGX_FALSE
704 DEFAULT_TARGET_TILEGX_TRUE
705 DEFAULT_TARGET_X86_64_OR_X32_FALSE
706 DEFAULT_TARGET_X86_64_OR_X32_TRUE
707 DEFAULT_TARGET_X32_FALSE
708 DEFAULT_TARGET_X32_TRUE
709 DEFAULT_TARGET_X86_64_FALSE
710 DEFAULT_TARGET_X86_64_TRUE
711 DEFAULT_TARGET_S390_FALSE
712 DEFAULT_TARGET_S390_TRUE
713 DEFAULT_TARGET_SPARC_FALSE
714 DEFAULT_TARGET_SPARC_TRUE
715 DEFAULT_TARGET_POWERPC_FALSE
716 DEFAULT_TARGET_POWERPC_TRUE
717 DEFAULT_TARGET_I386_FALSE
718 DEFAULT_TARGET_I386_TRUE
719 DEFAULT_TARGET_ARM_FALSE
720 DEFAULT_TARGET_ARM_TRUE
721 DEFAULT_TARGET_AARCH64_FALSE
722 DEFAULT_TARGET_AARCH64_TRUE
761 INSTALL_STRIP_PROGRAM
815 program_transform_name
828 enable_option_checking
830 enable_dependency_tracking
837 enable_default_hash_style
841 enable_build_warnings
845 enable_maintainer_mode
847 ac_precious_vars='build_alias
864 # Initialize some variables set by options.
866 ac_init_version=false
867 ac_unrecognized_opts=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
878 program_transform_name=s,x,x,
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 # Accept the important Cygnus configure options, so we can diagnose typos.
931 case $ac_dashdash$ac_option in
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
953 cache_file=config.cache ;;
955 -datadir | --datadir | --datadi | --datad)
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
981 eval enable_$ac_useropt=no ;;
983 -docdir | --docdir | --docdi | --doc | --do)
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 htmldir=$ac_optarg ;;
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1052 -libdir | --libdir | --libdi | --libd)
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1143 -psdir | --psdir | --psdi | --psd | --ps)
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 sbindir=$ac_optarg ;;
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 sharedstatedir=$ac_optarg ;;
1169 -site | --site | --sit)
1171 -site=* | --site=* | --sit=*)
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1211 eval with_$ac_useropt=\$ac_optarg ;;
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1227 eval with_$ac_useropt=no ;;
1230 # Obsolete; use --with-x.
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1298 # Be sure to have absolute directory names.
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1311 target=$target_alias
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 elif test "x$build_alias" != "x$host_alias"; then
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325 test "$silent" = yes && exec 6>/dev/null
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error $? "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error $? "pwd does not report name of working directory"
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1368 ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1402 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking ...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 --target=TARGET configure for building compilers for TARGET [HOST]
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of gold 0.1:";;
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-silent-rules less verbose build output (undo: "make V=1")
1482 --disable-silent-rules verbose build output (undo: "make V=0")
1483 --enable-dependency-tracking
1484 do not reject slow dependency extractors
1485 --disable-dependency-tracking
1486 speeds up one-time build
1487 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1488 --enable-threads multi-threaded linking
1489 --enable-plugins Enable support for plugins
1490 --enable-relro enable -z relro in ELF linker by default
1491 --enable-targets alternative target configurations
1492 --enable-default-hash-style={sysv,gnu,both}
1493 use this default hash style
1494 --disable-nls do not use Native Language Support
1495 --enable-werror treat compile warnings as errors
1496 --enable-build-warnings enable build-time compiler warnings
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful (and
1499 sometimes confusing) to the casual installer
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-sysroot=DIR search for usr/lib et al within DIR
1505 --with-lib-path=dir1:dir2... set default LIB_PATH
1506 --with-gold-ldflags=FLAGS additional link flags for gold
1507 --with-gold-ldadd=LIBS additional libraries for gold
1508 --with-system-zlib use installed libz
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1519 CXX C++ compiler command
1520 CXXFLAGS C++ compiler flags
1521 YACC The `Yet Another Compiler Compiler' implementation to use.
1522 Defaults to the first program found out of: `bison -y', `byacc',
1524 YFLAGS The list of arguments that will be passed by default to $YACC.
1525 This script will default YFLAGS to the empty string to avoid a
1526 default value of `-d' given by some make applications.
1527 CXXCPP C++ preprocessor
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1532 Report bugs to the package provider.
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1562 .) # We are building in place.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1596 generated by GNU Autoconf 2.69
1598 Copyright (C) 2012 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1616 if { { ac_try="$ac_compile"
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_c_try_compile
1647 # ac_fn_c_try_cpp LINENO
1648 # ----------------------
1649 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } > conftest.i && {
1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1684 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1685 # -------------------------------------------------------
1686 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1687 # the include files in INCLUDES and setting the cache variable VAR
1689 ac_fn_c_check_header_mongrel ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if eval \${$3+:} false; then :
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696 $as_echo_n "(cached) " >&6
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1702 # Is the header compilable?
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1704 $as_echo_n "checking $2 usability... " >&6; }
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711 ac_header_compiler=yes
1713 ac_header_compiler=no
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1717 $as_echo "$ac_header_compiler" >&6; }
1719 # Is the header present?
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1721 $as_echo_n "checking $2 presence... " >&6; }
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1726 if ac_fn_c_try_cpp "$LINENO"; then :
1727 ac_header_preproc=yes
1729 ac_header_preproc=no
1731 rm -f conftest.err conftest.i conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1733 $as_echo "$ac_header_preproc" >&6; }
1735 # So? What about this header?
1736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1739 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1741 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1745 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1747 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1749 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1751 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1761 eval "$3=\$ac_header_compiler"
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 $as_echo "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 } # ac_fn_c_check_header_mongrel
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=$ac_status
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1813 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1814 # -------------------------------------------------------
1815 # Tests whether HEADER exists and can be compiled using the include files in
1816 # INCLUDES, setting the cache variable VAR accordingly.
1817 ac_fn_c_check_header_compile ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1830 if ac_fn_c_try_compile "$LINENO"; then :
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 } # ac_fn_c_check_header_compile
1844 # ac_fn_c_try_link LINENO
1845 # -----------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded.
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext conftest$ac_exeext
1851 if { { ac_try="$ac_link"
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>conftest.err
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest$ac_exeext && {
1870 test "$cross_compiling" = yes ||
1871 test -x conftest$ac_exeext
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1880 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882 # interfere with the next link command; also delete a directory that is
1883 # left behind by Apple's compiler. We do this before executing the actions.
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1888 } # ac_fn_c_try_link
1890 # ac_fn_cxx_try_compile LINENO
1891 # ----------------------------
1892 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_cxx_try_compile ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext
1897 if { { ac_try="$ac_compile"
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_compile") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest.$ac_objext; then :
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1926 } # ac_fn_cxx_try_compile
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943 #define $2 innocuous_$2
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1951 # include <limits.h>
1953 # include <assert.h>
1958 /* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1965 /* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968 #if defined __stub_$2 || defined __stub___$2
1980 if ac_fn_c_try_link "$LINENO"; then :
1985 rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 } # ac_fn_c_check_func
1995 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1996 # ---------------------------------------------
1997 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1999 ac_fn_c_check_decl ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 as_decl_name=`echo $2|sed 's/ *(.*//'`
2003 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2005 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2015 #ifndef $as_decl_name
2017 (void) $as_decl_use;
2019 (void) $as_decl_name;
2027 if ac_fn_c_try_compile "$LINENO"; then :
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 } # ac_fn_c_check_decl
2041 # ac_fn_cxx_try_cpp LINENO
2042 # ------------------------
2043 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2044 ac_fn_cxx_try_cpp ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_cpp conftest.$ac_ext"
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2056 if test -s conftest.err; then
2057 grep -v '^ *+' conftest.err >conftest.er1
2058 cat conftest.er1 >&5
2059 mv -f conftest.er1 conftest.err
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } > conftest.i && {
2063 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2064 test ! -s conftest.err
2068 $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 as_fn_set_status $ac_retval
2076 } # ac_fn_cxx_try_cpp
2078 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2079 # ---------------------------------------------------------
2080 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2081 # the include files in INCLUDES and setting the cache variable VAR
2083 ac_fn_cxx_check_header_mongrel ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 if eval \${$3+:} false; then :
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088 $as_echo_n "checking for $2... " >&6; }
2089 if eval \${$3+:} false; then :
2090 $as_echo_n "(cached) " >&6
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2096 # Is the header compilable?
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2098 $as_echo_n "checking $2 usability... " >&6; }
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2104 if ac_fn_cxx_try_compile "$LINENO"; then :
2105 ac_header_compiler=yes
2107 ac_header_compiler=no
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2111 $as_echo "$ac_header_compiler" >&6; }
2113 # Is the header present?
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2115 $as_echo_n "checking $2 presence... " >&6; }
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2120 if ac_fn_cxx_try_cpp "$LINENO"; then :
2121 ac_header_preproc=yes
2123 ac_header_preproc=no
2125 rm -f conftest.err conftest.i conftest.$ac_ext
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2127 $as_echo "$ac_header_preproc" >&6; }
2129 # So? What about this header?
2130 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2133 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2135 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2139 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2141 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2143 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2145 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2147 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151 $as_echo_n "checking for $2... " >&6; }
2152 if eval \${$3+:} false; then :
2153 $as_echo_n "(cached) " >&6
2155 eval "$3=\$ac_header_compiler"
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 } # ac_fn_cxx_check_header_mongrel
2165 # ac_fn_cxx_try_link LINENO
2166 # -------------------------
2167 # Try to link conftest.$ac_ext, and return whether this succeeded.
2168 ac_fn_cxx_try_link ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 rm -f conftest.$ac_objext conftest$ac_exeext
2172 if { { ac_try="$ac_link"
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_link") 2>conftest.err
2181 if test -s conftest.err; then
2182 grep -v '^ *+' conftest.err >conftest.er1
2183 cat conftest.er1 >&5
2184 mv -f conftest.er1 conftest.err
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } && {
2188 test -z "$ac_cxx_werror_flag" ||
2189 test ! -s conftest.err
2190 } && test -s conftest$ac_exeext && {
2191 test "$cross_compiling" = yes ||
2192 test -x conftest$ac_exeext
2196 $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2201 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2202 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2203 # interfere with the next link command; also delete a directory that is
2204 # left behind by Apple's compiler. We do this before executing the actions.
2205 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
2209 } # ac_fn_cxx_try_link
2211 # ac_fn_cxx_check_func LINENO FUNC VAR
2212 # ------------------------------------
2213 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2214 ac_fn_cxx_check_func ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2224 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2226 #define $2 innocuous_$2
2228 /* System header to define __stub macros and hopefully few prototypes,
2229 which can conflict with char $2 (); below.
2230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2231 <limits.h> exists even on freestanding compilers. */
2234 # include <limits.h>
2236 # include <assert.h>
2241 /* Override any GCC internal prototype to avoid an error.
2242 Use char because int might match the return type of a GCC
2243 builtin and then its argument prototype would still apply. */
2248 /* The GNU C library defines this for functions which it implements
2249 to always fail with ENOSYS. Some functions are actually named
2250 something starting with __ and the normal name is an alias. */
2251 #if defined __stub_$2 || defined __stub___$2
2263 if ac_fn_cxx_try_link "$LINENO"; then :
2268 rm -f core conftest.err conftest.$ac_objext \
2269 conftest$ac_exeext conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276 } # ac_fn_cxx_check_func
2278 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2279 # -----------------------------------------------
2280 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2282 ac_fn_cxx_check_decl ()
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 as_decl_name=`echo $2|sed 's/ *(.*//'`
2286 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2288 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2289 if eval \${$3+:} false; then :
2290 $as_echo_n "(cached) " >&6
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2298 #ifndef $as_decl_name
2300 (void) $as_decl_use;
2302 (void) $as_decl_name;
2310 if ac_fn_cxx_try_compile "$LINENO"; then :
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319 $as_echo "$ac_res" >&6; }
2320 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2322 } # ac_fn_cxx_check_decl
2323 cat >config.log <<_ACEOF
2324 This file contains any messages produced by compilers while
2325 running configure, to aid debugging if configure makes a mistake.
2327 It was created by gold $as_me 0.1, which was
2328 generated by GNU Autoconf 2.69. Invocation command line was
2340 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2341 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2342 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2343 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2344 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2346 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2347 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2349 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2350 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2351 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2352 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2353 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2354 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2355 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 $as_echo "PATH: $as_dir"
2380 # Keep a trace of the command line.
2381 # Strip out --no-create and --no-recursion so they do not pile up.
2382 # Strip out --silent because we don't want to record it for future runs.
2383 # Also quote any args containing shell meta-characters.
2384 # Make two passes to allow for proper duplicate-argument suppression.
2388 ac_must_keep_next=false
2394 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2396 | -silent | --silent | --silen | --sile | --sil)
2399 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2402 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2404 as_fn_append ac_configure_args1 " '$ac_arg'"
2405 if test $ac_must_keep_next = true; then
2406 ac_must_keep_next=false # Got value, back to normal.
2409 *=* | --config-cache | -C | -disable-* | --disable-* \
2410 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2411 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2412 | -with-* | --with-* | -without-* | --without-* | --x)
2413 case "$ac_configure_args0 " in
2414 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2417 -* ) ac_must_keep_next=true ;;
2420 as_fn_append ac_configure_args " '$ac_arg'"
2425 { ac_configure_args0=; unset ac_configure_args0;}
2426 { ac_configure_args1=; unset ac_configure_args1;}
2428 # When interrupted or exit'd, cleanup temporary files, and complete
2429 # config.log. We remove comments because anyway the quotes in there
2430 # would cause problems or look ugly.
2431 # WARNING: Use '\'' to represent an apostrophe within the trap.
2432 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2433 trap 'exit_status=$?
2434 # Save into config.log some information that might help in debugging.
2438 $as_echo "## ---------------- ##
2439 ## Cache variables. ##
2440 ## ---------------- ##"
2442 # The following way of writing the cache mishandles newlines in values,
2444 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2445 eval ac_val=\$$ac_var
2449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2450 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2453 _ | IFS | as_nl) ;; #(
2454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2455 *) { eval $ac_var=; unset $ac_var;} ;;
2460 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2461 *${as_nl}ac_space=\ *)
2463 "s/'\''/'\''\\\\'\'''\''/g;
2464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2474 $as_echo "## ----------------- ##
2475 ## Output variables. ##
2476 ## ----------------- ##"
2478 for ac_var in $ac_subst_vars
2480 eval ac_val=\$$ac_var
2482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484 $as_echo "$ac_var='\''$ac_val'\''"
2488 if test -n "$ac_subst_files"; then
2489 $as_echo "## ------------------- ##
2490 ## File substitutions. ##
2491 ## ------------------- ##"
2493 for ac_var in $ac_subst_files
2495 eval ac_val=\$$ac_var
2497 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499 $as_echo "$ac_var='\''$ac_val'\''"
2504 if test -s confdefs.h; then
2505 $as_echo "## ----------- ##
2512 test "$ac_signal" != 0 &&
2513 $as_echo "$as_me: caught signal $ac_signal"
2514 $as_echo "$as_me: exit $exit_status"
2516 rm -f core *.core core.conftest.* &&
2517 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2520 for ac_signal in 1 2 13 15; do
2521 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2525 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2526 rm -f -r conftest* confdefs.h
2528 $as_echo "/* confdefs.h */" > confdefs.h
2530 # Predefined preprocessor variables.
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_NAME "$PACKAGE_NAME"
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_STRING "$PACKAGE_STRING"
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_URL "$PACKAGE_URL"
2557 # Let the site file select an alternate cache file if it wants to.
2558 # Prefer an explicitly selected file to automatically selected ones.
2561 if test -n "$CONFIG_SITE"; then
2562 # We do not want a PATH search for config.site.
2563 case $CONFIG_SITE in #((
2564 -*) ac_site_file1=./$CONFIG_SITE;;
2565 */*) ac_site_file1=$CONFIG_SITE;;
2566 *) ac_site_file1=./$CONFIG_SITE;;
2568 elif test "x$prefix" != xNONE; then
2569 ac_site_file1=$prefix/share/config.site
2570 ac_site_file2=$prefix/etc/config.site
2572 ac_site_file1=$ac_default_prefix/share/config.site
2573 ac_site_file2=$ac_default_prefix/etc/config.site
2575 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2577 test "x$ac_site_file" = xNONE && continue
2578 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2580 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2581 sed 's/^/| /' "$ac_site_file" >&5
2583 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 as_fn_error $? "failed to load site script $ac_site_file
2586 See \`config.log' for more details" "$LINENO" 5; }
2590 if test -r "$cache_file"; then
2591 # Some versions of bash will fail to source /dev/null (special files
2592 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2593 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2595 $as_echo "$as_me: loading cache $cache_file" >&6;}
2597 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2598 *) . "./$cache_file";;
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2603 $as_echo "$as_me: creating cache $cache_file" >&6;}
2607 # Check that the precious variables saved in the cache have kept the same
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612 eval ac_new_set=\$ac_env_${ac_var}_set
2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614 eval ac_new_val=\$ac_env_${ac_var}_value
2615 case $ac_old_set,$ac_new_set in
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2626 if test "x$ac_old_val" != "x$ac_new_val"; then
2627 # differences in whitespace do not lead to failure.
2628 ac_old_val_w=`echo x $ac_old_val`
2629 ac_new_val_w=`echo x $ac_new_val`
2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633 ac_cache_corrupted=:
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637 eval $ac_var=\$ac_old_val
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2640 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2645 # Pass precious variables to config.status.
2646 if test "$ac_new_set" = set; then
2648 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649 *) ac_arg=$ac_var=$ac_new_val ;;
2651 case " $ac_configure_args " in
2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2653 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2657 if $ac_cache_corrupted; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2664 ## -------------------- ##
2665 ## Main body of script. ##
2666 ## -------------------- ##
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2682 if test -f "$ac_dir/install-sh"; then
2684 ac_install_sh="$ac_aux_dir/install-sh -c"
2686 elif test -f "$ac_dir/install.sh"; then
2688 ac_install_sh="$ac_aux_dir/install.sh -c"
2690 elif test -f "$ac_dir/shtool"; then
2692 ac_install_sh="$ac_aux_dir/shtool install -c"
2696 if test -z "$ac_aux_dir"; then
2697 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2700 # These three variables are undocumented and unsupported,
2701 # and are intended to be withdrawn in a future Autoconf release.
2702 # They can cause serious problems if a builder's source tree is in a directory
2703 # whose full name contains unusual characters.
2704 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2705 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2706 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2709 # Make sure we can run config.sub.
2710 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2711 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2714 $as_echo_n "checking build system type... " >&6; }
2715 if ${ac_cv_build+:} false; then :
2716 $as_echo_n "(cached) " >&6
2718 ac_build_alias=$build_alias
2719 test "x$ac_build_alias" = x &&
2720 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2721 test "x$ac_build_alias" = x &&
2722 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2723 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2724 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2728 $as_echo "$ac_cv_build" >&6; }
2729 case $ac_cv_build in
2731 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2734 ac_save_IFS=$IFS; IFS='-'
2740 # Remember, the first character of IFS is used to create $*,
2741 # except with old shells:
2744 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2748 $as_echo_n "checking host system type... " >&6; }
2749 if ${ac_cv_host+:} false; then :
2750 $as_echo_n "(cached) " >&6
2752 if test "x$host_alias" = x; then
2753 ac_cv_host=$ac_cv_build
2755 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2761 $as_echo "$ac_cv_host" >&6; }
2764 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2767 ac_save_IFS=$IFS; IFS='-'
2773 # Remember, the first character of IFS is used to create $*,
2774 # except with old shells:
2777 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2781 $as_echo_n "checking target system type... " >&6; }
2782 if ${ac_cv_target+:} false; then :
2783 $as_echo_n "(cached) " >&6
2785 if test "x$target_alias" = x; then
2786 ac_cv_target=$ac_cv_host
2788 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2794 $as_echo "$ac_cv_target" >&6; }
2795 case $ac_cv_target in
2797 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2799 target=$ac_cv_target
2800 ac_save_IFS=$IFS; IFS='-'
2806 # Remember, the first character of IFS is used to create $*,
2807 # except with old shells:
2810 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2813 # The aliases save the names the user supplied, while $host etc.
2814 # will get canonicalized.
2815 test -n "$target_alias" &&
2816 test "$program_prefix$program_suffix$program_transform_name" = \
2818 program_prefix=${target_alias}-
2820 am__api_version='1.15'
2822 # Find a good install program. We prefer a C program (faster),
2823 # so one script is as good as another. But avoid the broken or
2824 # incompatible versions:
2825 # SysV /etc/install, /usr/sbin/install
2826 # SunOS /usr/etc/install
2827 # IRIX /sbin/install
2829 # AmigaOS /C/install, which installs bootblocks on floppy discs
2830 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2831 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2832 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2833 # OS/2's system install, which has a completely different semantic
2834 # ./install, which can be erroneously created by make from ./install.sh.
2835 # Reject install programs that cannot install multiple files.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2837 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2838 if test -z "$INSTALL"; then
2839 if ${ac_cv_path_install+:} false; then :
2840 $as_echo_n "(cached) " >&6
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 test -z "$as_dir" && as_dir=.
2847 # Account for people who put trailing slashes in PATH elements.
2848 case $as_dir/ in #((
2849 ./ | .// | /[cC]/* | \
2850 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2851 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2854 # OSF1 and SCO ODT 3.0 have their own names for install.
2855 # Don't use installbsd from OSF since it installs stuff as root
2857 for ac_prog in ginstall scoinst install; do
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2860 if test $ac_prog = install &&
2861 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2862 # AIX install. It has an incompatible calling convention.
2864 elif test $ac_prog = install &&
2865 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2866 # program-specific install script used by HP pwplus--don't use.
2869 rm -rf conftest.one conftest.two conftest.dir
2870 echo one > conftest.one
2871 echo two > conftest.two
2873 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2874 test -s conftest.one && test -s conftest.two &&
2875 test -s conftest.dir/conftest.one &&
2876 test -s conftest.dir/conftest.two
2878 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2891 rm -rf conftest.one conftest.two conftest.dir
2894 if test "${ac_cv_path_install+set}" = set; then
2895 INSTALL=$ac_cv_path_install
2897 # As a last resort, use the slow shell script. Don't cache a
2898 # value for INSTALL within a source directory, because that will
2899 # break other packages using the cache if that directory is
2900 # removed, or if the value is a relative name.
2901 INSTALL=$ac_install_sh
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2905 $as_echo "$INSTALL" >&6; }
2907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2908 # It thinks the first close brace ends the variable substitution.
2909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2916 $as_echo_n "checking whether build environment is sane... " >&6; }
2917 # Reject unsafe characters in $srcdir or the absolute working directory
2918 # name. Accept space and tab only in the latter.
2922 *[\\\"\#\$\&\'\`$am_lf]*)
2923 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2926 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2927 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2930 # Do 'set' in a subshell so we don't clobber the current shell's
2931 # arguments. Must try -L first in case configure is actually a
2932 # symlink; some systems play weird games with the mod time of symlinks
2933 # (eg FreeBSD returns the mod time of the symlink's containing
2937 for am_try in 1 2; do
2938 echo "timestamp, slept: $am_has_slept" > conftest.file
2939 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2940 if test "$*" = "X"; then
2942 set X `ls -t "$srcdir/configure" conftest.file`
2944 if test "$*" != "X $srcdir/configure conftest.file" \
2945 && test "$*" != "X conftest.file $srcdir/configure"; then
2947 # If neither matched, then we have a broken ls. This can happen
2948 # if, for instance, CONFIG_SHELL is bash and it inherits a
2949 # broken ls alias from the environment. This has actually
2950 # happened. Such a system could not be considered "sane".
2951 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2952 alias in your environment" "$LINENO" 5
2954 if test "$2" = conftest.file || test $am_try -eq 2; then
2961 test "$2" = conftest.file
2967 as_fn_error $? "newly created file is older than distributed files!
2968 Check your system clock" "$LINENO" 5
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2972 # If we didn't sleep, we still need to ensure time stamps of config.status and
2973 # generated files are strictly newer.
2975 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2982 test "$program_prefix" != NONE &&
2983 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2984 # Use a double $ so make ignores it.
2985 test "$program_suffix" != NONE &&
2986 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2987 # Double any \ or $.
2988 # By default was `s,x,x', remove it if useless.
2989 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2990 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2992 # Expand $ac_aux_dir to an absolute path.
2993 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2995 if test x"${MISSING+set}" != xset; then
2998 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3000 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3003 # Use eval to expand $SHELL
3004 if eval "$MISSING --is-lightweight"; then
3005 am_missing_run="$MISSING "
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3009 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3012 if test x"${install_sh+set}" != xset; then
3015 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3017 install_sh="\${SHELL} $am_aux_dir/install-sh"
3021 # Installed binaries are usually stripped using 'strip' when the user
3022 # run "make install-strip". However 'strip' might not be the right
3023 # tool to use in cross-compilation environments, therefore Automake
3024 # will honor the 'STRIP' environment variable to overrule this program.
3025 if test "$cross_compiling" != no; then
3026 if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}strip; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_STRIP+:} false; then :
3032 $as_echo_n "(cached) " >&6
3034 if test -n "$STRIP"; then
3035 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 STRIP=$ac_cv_prog_STRIP
3055 if test -n "$STRIP"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3057 $as_echo "$STRIP" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3065 if test -z "$ac_cv_prog_STRIP"; then
3067 # Extract the first word of "strip", so it can be a program name with args.
3068 set dummy strip; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3072 $as_echo_n "(cached) " >&6
3074 if test -n "$ac_ct_STRIP"; then
3075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_ac_ct_STRIP="strip"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3095 if test -n "$ac_ct_STRIP"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3097 $as_echo "$ac_ct_STRIP" >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3103 if test "x$ac_ct_STRIP" = x; then
3106 case $cross_compiling:$ac_tool_warned in
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110 ac_tool_warned=yes ;;
3115 STRIP="$ac_cv_prog_STRIP"
3119 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3122 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3123 if test -z "$MKDIR_P"; then
3124 if ${ac_cv_path_mkdir+:} false; then :
3125 $as_echo_n "(cached) " >&6
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3131 test -z "$as_dir" && as_dir=.
3132 for ac_prog in mkdir gmkdir; do
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3135 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3136 'mkdir (GNU coreutils) '* | \
3137 'mkdir (coreutils) '* | \
3138 'mkdir (fileutils) '4.1*)
3139 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3149 test -d ./--version && rmdir ./--version
3150 if test "${ac_cv_path_mkdir+set}" = set; then
3151 MKDIR_P="$ac_cv_path_mkdir -p"
3153 # As a last resort, use the slow shell script. Don't cache a
3154 # value for MKDIR_P within a source directory, because that will
3155 # break other packages using the cache if that directory is
3156 # removed, or if the value is a relative name.
3157 MKDIR_P="$ac_install_sh -d"
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3161 $as_echo "$MKDIR_P" >&6; }
3163 for ac_prog in gawk mawk nawk awk
3165 # Extract the first word of "$ac_prog", so it can be a program name with args.
3166 set dummy $ac_prog; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_AWK+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 if test -n "$AWK"; then
3173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_AWK="$ac_prog"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 if test -n "$AWK"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3195 $as_echo "$AWK" >&6; }
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3202 test -n "$AWK" && break
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3206 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3208 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3209 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3210 $as_echo_n "(cached) " >&6
3212 cat >conftest.make <<\_ACEOF
3215 @echo '@@@%%%=$(MAKE)=@@@%%%'
3217 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3218 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3220 eval ac_cv_prog_make_${ac_make}_set=yes;;
3222 eval ac_cv_prog_make_${ac_make}_set=no;;
3226 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 SET_MAKE="MAKE=${MAKE-make}"
3236 rm -rf .tst 2>/dev/null
3237 mkdir .tst 2>/dev/null
3238 if test -d .tst; then
3243 rmdir .tst 2>/dev/null
3245 # Check whether --enable-silent-rules was given.
3246 if test "${enable_silent_rules+set}" = set; then :
3247 enableval=$enable_silent_rules;
3250 case $enable_silent_rules in # (((
3251 yes) AM_DEFAULT_VERBOSITY=0;;
3252 no) AM_DEFAULT_VERBOSITY=1;;
3253 *) AM_DEFAULT_VERBOSITY=1;;
3255 am_make=${MAKE-make}
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3257 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3258 if ${am_cv_make_support_nested_variables+:} false; then :
3259 $as_echo_n "(cached) " >&6
3261 if $as_echo 'TRUE=$(BAR$(V))
3267 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3268 am_cv_make_support_nested_variables=yes
3270 am_cv_make_support_nested_variables=no
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3274 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3275 if test $am_cv_make_support_nested_variables = yes; then
3277 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3279 AM_V=$AM_DEFAULT_VERBOSITY
3280 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3284 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3285 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3286 # is not polluted with repeated "-I."
3287 am__isrc=' -I$(srcdir)'
3288 # test to see if srcdir already configured
3289 if test -f $srcdir/config.status; then
3290 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3294 # test whether we have cygpath
3295 if test -z "$CYGPATH_W"; then
3296 if (cygpath --version) >/dev/null 2>/dev/null; then
3297 CYGPATH_W='cygpath -w'
3304 # Define the identity of the package.
3309 cat >>confdefs.h <<_ACEOF
3310 #define PACKAGE "$PACKAGE"
3314 cat >>confdefs.h <<_ACEOF
3315 #define VERSION "$VERSION"
3318 # Some tools Automake needs.
3320 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3323 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3326 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3329 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3332 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3334 # For better backward compatibility. To be removed once Automake 1.9.x
3335 # dies out for good. For more background, see:
3336 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3337 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3338 mkdir_p='$(MKDIR_P)'
3340 # We need awk for the "check" target (and possibly the TAP driver). The
3341 # system "awk" is bad on some platforms.
3342 # Always define AMTAR for backward compatibility. Yes, it's still used
3343 # in the wild :-( We should find a proper way to deprecate it ...
3347 # We'll loop over all known methods to create a tar archive until one works.
3348 _am_tools='gnutar pax cpio none'
3350 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3357 # POSIX will say in a future version that running "rm -f" with no argument
3358 # is OK; and we want to be able to make that assumption in our Makefile
3359 # recipes. So use an aggressive probe to check that the usage we want is
3360 # actually supported "in the wild" to an acceptable degree.
3361 # See automake bug#10828.
3362 # To make any issue more visible, cause the running configure to be aborted
3363 # by default if the 'rm' program in use doesn't match our expectations; the
3364 # user can still override this though.
3365 if rm -f && rm -fr && rm -rf; then : OK; else
3369 Your 'rm' program seems unable to run without file operands specified
3370 on the command line, even when the '-f' option is present. This is contrary
3371 to the behaviour of most rm programs out there, and not conforming with
3372 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3374 Please tell bug-automake@gnu.org about your system, including the value
3375 of your $PATH and any error possibly output before this message. This
3376 can help us improve future automake versions.
3379 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3380 echo 'Configuration will proceed anyway, since you have set the' >&2
3381 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3385 Aborting the configuration process, to ensure you take notice of the issue.
3387 You can download and install GNU coreutils to get an 'rm' implementation
3388 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3390 If you want to complete the configuration process using your problematic
3391 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3392 to "yes", and re-run configure.
3395 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3400 ac_config_headers="$ac_config_headers config.h:config.in"
3403 DEPDIR="${am__leading_dot}deps"
3405 ac_config_commands="$ac_config_commands depfiles"
3408 am_make=${MAKE-make}
3409 cat > confinc << 'END'
3411 @echo this is the am__doit target
3414 # If we don't find an include directive, just comment out the code.
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3416 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3420 # First try GNU make style include.
3421 echo "include confinc" > confmf
3422 # Ignore all kinds of additional output from 'make'.
3423 case `$am_make -s -f confmf 2> /dev/null` in #(
3424 *the\ am__doit\ target*)
3430 # Now try BSD make style include.
3431 if test "$am__include" = "#"; then
3432 echo '.include "confinc"' > confmf
3433 case `$am_make -s -f confmf 2> /dev/null` in #(
3434 *the\ am__doit\ target*)
3435 am__include=.include
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3444 $as_echo "$_am_result" >&6; }
3445 rm -f confinc confmf
3447 # Check whether --enable-dependency-tracking was given.
3448 if test "${enable_dependency_tracking+set}" = set; then :
3449 enableval=$enable_dependency_tracking;
3452 if test "x$enable_dependency_tracking" != xno; then
3453 am_depcomp="$ac_aux_dir/depcomp"
3457 if test "x$enable_dependency_tracking" != xno; then
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 if test -n "$ac_tool_prefix"; then
3472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3473 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_CC+:} false; then :
3477 $as_echo_n "(cached) " >&6
3479 if test -n "$CC"; then
3480 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 if test -n "$CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3502 $as_echo "$CC" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3510 if test -z "$ac_cv_prog_CC"; then
3512 # Extract the first word of "gcc", so it can be a program name with args.
3513 set dummy gcc; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_ac_ct_CC="gcc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3540 if test -n "$ac_ct_CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3542 $as_echo "$ac_ct_CC" >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3548 if test "x$ac_ct_CC" = x; then
3551 case $cross_compiling:$ac_tool_warned in
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555 ac_tool_warned=yes ;;
3563 if test -z "$CC"; then
3564 if test -n "$ac_tool_prefix"; then
3565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3566 set dummy ${ac_tool_prefix}cc; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if ${ac_cv_prog_CC+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 if test -n "$CC"; then
3573 ac_cv_prog_CC="$CC" # Let the user override the test.
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_CC="${ac_tool_prefix}cc"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 if test -n "$CC"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3595 $as_echo "$CC" >&6; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3604 if test -z "$CC"; then
3605 # Extract the first word of "cc", so it can be a program name with args.
3606 set dummy cc; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if ${ac_cv_prog_CC+:} false; then :
3610 $as_echo_n "(cached) " >&6
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3624 ac_prog_rejected=yes
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 if test $ac_prog_rejected = yes; then
3636 # We found a bogon in the path, so make sure we never use it.
3637 set dummy $ac_cv_prog_CC
3639 if test $# != 0; then
3640 # We chose a different compiler from the bogus one.
3641 # However, it has the same basename, so the bogon will be chosen
3642 # first if we set CC to just the basename; use the full file name.
3644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3650 if test -n "$CC"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652 $as_echo "$CC" >&6; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3660 if test -z "$CC"; then
3661 if test -n "$ac_tool_prefix"; then
3662 for ac_prog in cl.exe
3664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if ${ac_cv_prog_CC+:} false; then :
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$CC"; then
3672 ac_cv_prog_CC="$CC" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 if test -n "$CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3701 test -n "$CC" && break
3704 if test -z "$CC"; then
3706 for ac_prog in cl.exe
3708 # Extract the first word of "$ac_prog", so it can be a program name with args.
3709 set dummy $ac_prog; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3713 $as_echo_n "(cached) " >&6
3715 if test -n "$ac_ct_CC"; then
3716 ac_cv_prog_ac_ct_CC="$ac_ct_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 ac_cv_prog_ac_ct_CC="$ac_prog"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3736 if test -n "$ac_ct_CC"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3738 $as_echo "$ac_ct_CC" >&6; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3745 test -n "$ac_ct_CC" && break
3748 if test "x$ac_ct_CC" = x; then
3751 case $cross_compiling:$ac_tool_warned in
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3755 ac_tool_warned=yes ;;
3764 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error $? "no acceptable C compiler found in \$PATH
3767 See \`config.log' for more details" "$LINENO" 5; }
3769 # Provide some information about the compiler.
3770 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3773 for ac_option in --version -v -V -qversion; do
3774 { { ac_try="$ac_compiler $ac_option >&5"
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3783 if test -s conftest.err; then
3785 ... rest of stderr output deleted ...
3786 10q' conftest.err >conftest.er1
3787 cat conftest.er1 >&5
3789 rm -f conftest.er1 conftest.err
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3805 ac_clean_files_save=$ac_clean_files
3806 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3807 # Try to create an executable without -o first, disregard a.out.
3808 # It will help us diagnose broken compilers, and finding out an intuition
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3811 $as_echo_n "checking whether the C compiler works... " >&6; }
3812 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3814 # The possible output files:
3815 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3818 for ac_file in $ac_files
3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3822 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3827 if { { ac_try="$ac_link_default"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834 (eval "$ac_link_default") 2>&5
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }; then :
3838 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3839 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3840 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3841 # so that the user can short-circuit this test for compilers unknown to
3843 for ac_file in $ac_files ''
3845 test -f "$ac_file" || continue
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3850 # We found the default executable, but exeext='' is most
3854 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3856 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3858 # We set ac_cv_exeext here because the later test for it is not
3859 # safe: cross compilers may not add the suffix if given an `-o'
3860 # argument, so we may need to know it at that point already.
3861 # Even if this section looks crufty: it has the advantage of
3868 test "$ac_cv_exeext" = no && ac_cv_exeext=
3873 if test -z "$ac_file"; then :
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 $as_echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error 77 "C compiler cannot create executables
3882 See \`config.log' for more details" "$LINENO" 5; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3885 $as_echo "yes" >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3888 $as_echo_n "checking for C compiler default output file name... " >&6; }
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3890 $as_echo "$ac_file" >&6; }
3891 ac_exeext=$ac_cv_exeext
3893 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3894 ac_clean_files=$ac_clean_files_save
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3896 $as_echo_n "checking for suffix of executables... " >&6; }
3897 if { { ac_try="$ac_link"
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_link") 2>&5
3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }; then :
3908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3909 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3910 # work properly (i.e., refer to `conftest.exe'), while it won't with
3912 for ac_file in conftest.exe conftest conftest.*; do
3913 test -f "$ac_file" || continue
3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3925 See \`config.log' for more details" "$LINENO" 5; }
3927 rm -f conftest conftest$ac_cv_exeext
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3929 $as_echo "$ac_cv_exeext" >&6; }
3931 rm -f conftest.$ac_ext
3932 EXEEXT=$ac_cv_exeext
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3940 FILE *f = fopen ("conftest.out", "w");
3941 return ferror (f) || fclose (f) != 0;
3947 ac_clean_files="$ac_clean_files conftest.out"
3948 # Check that the compiler produces executables we can run. If not, either
3949 # the compiler is broken, or we cross compile.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3951 $as_echo_n "checking whether we are cross compiling... " >&6; }
3952 if test "$cross_compiling" != yes; then
3953 { { ac_try="$ac_link"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }
3964 if { ac_try='./conftest$ac_cv_exeext'
3965 { { case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3970 $as_echo "$ac_try_echo"; } >&5
3971 (eval "$ac_try") 2>&5
3973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974 test $ac_status = 0; }; }; then
3977 if test "$cross_compiling" = maybe; then
3980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error $? "cannot run C compiled programs.
3983 If you meant to cross compile, use \`--host'.
3984 See \`config.log' for more details" "$LINENO" 5; }
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3989 $as_echo "$cross_compiling" >&6; }
3991 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3992 ac_clean_files=$ac_clean_files_save
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3994 $as_echo_n "checking for suffix of object files... " >&6; }
3995 if ${ac_cv_objext+:} false; then :
3996 $as_echo_n "(cached) " >&6
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 rm -f conftest.o conftest.obj
4010 if { { ac_try="$ac_compile"
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_compile") 2>&5
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }; then :
4021 for ac_file in conftest.o conftest.obj conftest.*; do
4022 test -f "$ac_file" || continue;
4024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4030 $as_echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4035 as_fn_error $? "cannot compute suffix of object files: cannot compile
4036 See \`config.log' for more details" "$LINENO" 5; }
4038 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4041 $as_echo "$ac_cv_objext" >&6; }
4042 OBJEXT=$ac_cv_objext
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4045 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4046 if ${ac_cv_c_compiler_gnu+:} false; then :
4047 $as_echo_n "(cached) " >&6
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4063 if ac_fn_c_try_compile "$LINENO"; then :
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4073 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4074 if test $ac_compiler_gnu = yes; then
4079 ac_test_CFLAGS=${CFLAGS+set}
4080 ac_save_CFLAGS=$CFLAGS
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4082 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4083 if ${ac_cv_prog_cc_g+:} false; then :
4084 $as_echo_n "(cached) " >&6
4086 ac_save_c_werror_flag=$ac_c_werror_flag
4087 ac_c_werror_flag=yes
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"; then :
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4116 if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_c_werror_flag=$ac_save_c_werror_flag
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4132 if ac_fn_c_try_compile "$LINENO"; then :
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4143 $as_echo "$ac_cv_prog_cc_g" >&6; }
4144 if test "$ac_test_CFLAGS" = set; then
4145 CFLAGS=$ac_save_CFLAGS
4146 elif test $ac_cv_prog_cc_g = yes; then
4147 if test "$GCC" = yes; then
4153 if test "$GCC" = yes; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4160 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4161 if ${ac_cv_prog_cc_c89+:} false; then :
4162 $as_echo_n "(cached) " >&6
4164 ac_cv_prog_cc_c89=no
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4172 struct buf { int x; };
4173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4174 static char *e (p, i)
4180 static char *f (char * (*g) (char **, int), char **p, ...)
4185 s = g (p, va_arg (v,int));
4190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4191 function prototypes and stuff, but not '\xHH' hex character constants.
4192 These don't provoke an error unfortunately, instead are silently treated
4193 as 'x'. The following induces an error, until -std is added to get
4194 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4195 array size at least. It's necessary to write '\x00'==0 to get something
4196 that's true only with -std. */
4197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4200 inside strings and character constants. */
4202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4204 int test (int i, double x);
4205 struct s1 {int (*f) (int a);};
4206 struct s2 {int (*f) (double a);};
4207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4219 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4221 CC="$ac_save_CC $ac_arg"
4222 if ac_fn_c_try_compile "$LINENO"; then :
4223 ac_cv_prog_cc_c89=$ac_arg
4225 rm -f core conftest.err conftest.$ac_objext
4226 test "x$ac_cv_prog_cc_c89" != "xno" && break
4228 rm -f conftest.$ac_ext
4233 case "x$ac_cv_prog_cc_c89" in
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4236 $as_echo "none needed" >&6; } ;;
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4239 $as_echo "unsupported" >&6; } ;;
4241 CC="$CC $ac_cv_prog_cc_c89"
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4243 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4245 if test "x$ac_cv_prog_cc_c89" != xno; then :
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4261 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4262 if ${am_cv_prog_cc_c_o+:} false; then :
4263 $as_echo_n "(cached) " >&6
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 # Make sure it works both with $CC and with simple cc.
4277 # Following AC_PROG_CC_C_O, we do the test twice because some
4278 # compilers refuse to overwrite an existing .o file with -o,
4279 # though they will create one.
4280 am_cv_prog_cc_c_o=yes
4282 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4283 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } \
4287 && test -f conftest2.$ac_objext; then
4290 am_cv_prog_cc_c_o=no
4294 rm -f core conftest*
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4298 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4299 if test "$am_cv_prog_cc_c_o" != yes; then
4300 # Losing compiler, so override with the script.
4301 # FIXME: It is wrong to rewrite CC.
4302 # But if we don't then we get into trouble of one sort or another.
4303 # A longer-term fix would be to have automake use am__CC in this case,
4304 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4305 CC="$am_aux_dir/compile $CC"
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 depcc="$CC" am_compiler_list=
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4317 $as_echo_n "checking dependency style of $depcc... " >&6; }
4318 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4319 $as_echo_n "(cached) " >&6
4321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4322 # We make a subdir and do the tests there. Otherwise we can end up
4323 # making bogus files that we don't know about and never remove. For
4324 # instance it was reported that on HP-UX the gcc test will end up
4325 # making a dummy file named 'D' -- because '-MD' means "put the output
4329 # Copy depcomp to subdir because otherwise we won't find it if we're
4330 # using a relative directory.
4331 cp "$am_depcomp" conftest.dir
4333 # We will build objects and dependencies in a subdirectory because
4334 # it helps to detect inapplicable dependency modes. For instance
4335 # both Tru64's cc and ICC support -MD to output dependencies as a
4336 # side effect of compilation, but ICC will put the dependencies in
4337 # the current directory while Tru64 will put them in the object
4341 am_cv_CC_dependencies_compiler_type=none
4342 if test "$am_compiler_list" = ""; then
4343 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4346 case " $depcc " in #(
4347 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4350 for depmode in $am_compiler_list; do
4351 # Setup a source with many dependencies, because some compilers
4352 # like to wrap large dependency lists on column 80 (with \), and
4353 # we should not choose a depcomp mode which is confused by this.
4355 # We need to recreate these files for each test, as the compiler may
4356 # overwrite some of them when testing with obscure command lines.
4357 # This happens at least with the AIX C compiler.
4359 for i in 1 2 3 4 5 6; do
4360 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4361 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4362 # Solaris 10 /bin/sh.
4363 echo '/* dummy */' > sub/conftst$i.h
4365 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4367 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4368 # mode. It turns out that the SunPro C++ compiler does not properly
4369 # handle '-M -o', and we need to detect this. Also, some Intel
4370 # versions had trouble with output in subdirs.
4371 am__obj=sub/conftest.${OBJEXT-o}
4372 am__minus_obj="-o $am__obj"
4375 # This depmode causes a compiler race in universal mode.
4376 test "$am__universal" = false || continue
4379 # After this tag, mechanisms are not by side-effect, so they'll
4380 # only be used when explicitly requested.
4381 if test "x$enable_dependency_tracking" = xyes; then
4387 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4388 # This compiler won't grok '-c -o', but also, the minuso test has
4389 # not run yet. These depmodes are late enough in the game, and
4390 # so weak that their functioning should not be impacted.
4391 am__obj=conftest.${OBJEXT-o}
4396 if depmode=$depmode \
4397 source=sub/conftest.c object=$am__obj \
4398 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4399 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4400 >/dev/null 2>conftest.err &&
4401 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4402 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4403 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4404 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4405 # icc doesn't choke on unknown options, it will just issue warnings
4406 # or remarks (even with -Werror). So we grep stderr for any message
4407 # that says an option was ignored or not supported.
4408 # When given -MP, icc 7.0 and 7.1 complain thusly:
4409 # icc: Command line warning: ignoring option '-M'; no argument required
4410 # The diagnosis changed in icc 8.0:
4411 # icc: Command line remark: option '-MP' not supported
4412 if (grep 'ignoring option' conftest.err ||
4413 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4414 am_cv_CC_dependencies_compiler_type=$depmode
4423 am_cv_CC_dependencies_compiler_type=none
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4428 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4429 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4432 test "x$enable_dependency_tracking" != xno \
4433 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4435 am__fastdepCC_FALSE='#'
4437 am__fastdepCC_TRUE='#'
4438 am__fastdepCC_FALSE=
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4449 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4450 # On Suns, sometimes $CPP names a directory.
4451 if test -n "$CPP" && test -d "$CPP"; then
4454 if test -z "$CPP"; then
4455 if ${ac_cv_prog_CPP+:} false; then :
4456 $as_echo_n "(cached) " >&6
4458 # Double quotes because CPP needs to be expanded
4459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4462 for ac_c_preproc_warn_flag in '' yes
4464 # Use a header file that comes with gcc, so configuring glibc
4465 # with a fresh cross-compiler works.
4466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467 # <limits.h> exists even on freestanding compilers.
4468 # On the NeXT, cc -E runs the code through the compiler's parser,
4469 # not just through cpp. "Syntax error" is here to catch this case.
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4473 # include <limits.h>
4475 # include <assert.h>
4479 if ac_fn_c_try_cpp "$LINENO"; then :
4482 # Broken: fails on valid input.
4485 rm -f conftest.err conftest.i conftest.$ac_ext
4487 # OK, works on sane cases. Now check whether nonexistent headers
4488 # can be detected and how.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491 #include <ac_nonexistent.h>
4493 if ac_fn_c_try_cpp "$LINENO"; then :
4494 # Broken: success on invalid input.
4497 # Passes both tests.
4501 rm -f conftest.err conftest.i conftest.$ac_ext
4504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4505 rm -f conftest.i conftest.err conftest.$ac_ext
4506 if $ac_preproc_ok; then :
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4519 $as_echo "$CPP" >&6; }
4521 for ac_c_preproc_warn_flag in '' yes
4523 # Use a header file that comes with gcc, so configuring glibc
4524 # with a fresh cross-compiler works.
4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 # <limits.h> exists even on freestanding compilers.
4527 # On the NeXT, cc -E runs the code through the compiler's parser,
4528 # not just through cpp. "Syntax error" is here to catch this case.
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4532 # include <limits.h>
4534 # include <assert.h>
4538 if ac_fn_c_try_cpp "$LINENO"; then :
4541 # Broken: fails on valid input.
4544 rm -f conftest.err conftest.i conftest.$ac_ext
4546 # OK, works on sane cases. Now check whether nonexistent headers
4547 # can be detected and how.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #include <ac_nonexistent.h>
4552 if ac_fn_c_try_cpp "$LINENO"; then :
4553 # Broken: success on invalid input.
4556 # Passes both tests.
4560 rm -f conftest.err conftest.i conftest.$ac_ext
4563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564 rm -f conftest.i conftest.err conftest.$ac_ext
4565 if $ac_preproc_ok; then :
4568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4570 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4571 See \`config.log' for more details" "$LINENO" 5; }
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4582 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4583 if ${ac_cv_path_GREP+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 if test -z "$GREP"; then
4587 ac_path_GREP_found=false
4588 # Loop through the user's path and test for each of PROGNAME-LIST
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 test -z "$as_dir" && as_dir=.
4594 for ac_prog in grep ggrep; do
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4597 as_fn_executable_p "$ac_path_GREP" || continue
4598 # Check for GNU ac_path_GREP and select it if it is found.
4599 # Check for GNU $ac_path_GREP
4600 case `"$ac_path_GREP" --version 2>&1` in
4602 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605 $as_echo_n 0123456789 >"conftest.in"
4608 cat "conftest.in" "conftest.in" >"conftest.tmp"
4609 mv "conftest.tmp" "conftest.in"
4610 cp "conftest.in" "conftest.nl"
4611 $as_echo 'GREP' >> "conftest.nl"
4612 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614 as_fn_arith $ac_count + 1 && ac_count=$as_val
4615 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4616 # Best one so far, save it but keep looking for a better one
4617 ac_cv_path_GREP="$ac_path_GREP"
4618 ac_path_GREP_max=$ac_count
4620 # 10*(2^10) chars as input seems more than enough
4621 test $ac_count -gt 10 && break
4623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 $ac_path_GREP_found && break 3
4631 if test -z "$ac_cv_path_GREP"; then
4632 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 ac_cv_path_GREP=$GREP
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4640 $as_echo "$ac_cv_path_GREP" >&6; }
4641 GREP="$ac_cv_path_GREP"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4645 $as_echo_n "checking for egrep... " >&6; }
4646 if ${ac_cv_path_EGREP+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4650 then ac_cv_path_EGREP="$GREP -E"
4652 if test -z "$EGREP"; then
4653 ac_path_EGREP_found=false
4654 # Loop through the user's path and test for each of PROGNAME-LIST
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659 test -z "$as_dir" && as_dir=.
4660 for ac_prog in egrep; do
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4663 as_fn_executable_p "$ac_path_EGREP" || continue
4664 # Check for GNU ac_path_EGREP and select it if it is found.
4665 # Check for GNU $ac_path_EGREP
4666 case `"$ac_path_EGREP" --version 2>&1` in
4668 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671 $as_echo_n 0123456789 >"conftest.in"
4674 cat "conftest.in" "conftest.in" >"conftest.tmp"
4675 mv "conftest.tmp" "conftest.in"
4676 cp "conftest.in" "conftest.nl"
4677 $as_echo 'EGREP' >> "conftest.nl"
4678 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4680 as_fn_arith $ac_count + 1 && ac_count=$as_val
4681 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4682 # Best one so far, save it but keep looking for a better one
4683 ac_cv_path_EGREP="$ac_path_EGREP"
4684 ac_path_EGREP_max=$ac_count
4686 # 10*(2^10) chars as input seems more than enough
4687 test $ac_count -gt 10 && break
4689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692 $ac_path_EGREP_found && break 3
4697 if test -z "$ac_cv_path_EGREP"; then
4698 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 ac_cv_path_EGREP=$EGREP
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4707 $as_echo "$ac_cv_path_EGREP" >&6; }
4708 EGREP="$ac_cv_path_EGREP"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4712 $as_echo_n "checking for ANSI C header files... " >&6; }
4713 if ${ac_cv_header_stdc+:} false; then :
4714 $as_echo_n "(cached) " >&6
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4731 if ac_fn_c_try_compile "$LINENO"; then :
4732 ac_cv_header_stdc=yes
4734 ac_cv_header_stdc=no
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 if test $ac_cv_header_stdc = yes; then
4739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4746 $EGREP "memchr" >/dev/null 2>&1; then :
4749 ac_cv_header_stdc=no
4755 if test $ac_cv_header_stdc = yes; then
4756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4763 $EGREP "free" >/dev/null 2>&1; then :
4766 ac_cv_header_stdc=no
4772 if test $ac_cv_header_stdc = yes; then
4773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4774 if test "$cross_compiling" = yes; then :
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4781 #if ((' ' & 0x0FF) == 0x020)
4782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4785 # define ISLOWER(c) \
4786 (('a' <= (c) && (c) <= 'i') \
4787 || ('j' <= (c) && (c) <= 'r') \
4788 || ('s' <= (c) && (c) <= 'z'))
4789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4797 for (i = 0; i < 256; i++)
4798 if (XOR (islower (i), ISLOWER (i))
4799 || toupper (i) != TOUPPER (i))
4804 if ac_fn_c_try_run "$LINENO"; then :
4807 ac_cv_header_stdc=no
4809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4810 conftest.$ac_objext conftest.beam conftest.$ac_ext
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4816 $as_echo "$ac_cv_header_stdc" >&6; }
4817 if test $ac_cv_header_stdc = yes; then
4819 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4823 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4824 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4825 inttypes.h stdint.h unistd.h
4827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4828 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4831 cat >>confdefs.h <<_ACEOF
4832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4841 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4842 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4849 if test "$MINIX" = yes; then
4851 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4854 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4857 $as_echo "#define _MINIX 1" >>confdefs.h
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4863 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4864 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4865 $as_echo_n "(cached) " >&6
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4870 # define __EXTENSIONS__ 1
4871 $ac_includes_default
4880 if ac_fn_c_try_compile "$LINENO"; then :
4881 ac_cv_safe_to_define___extensions__=yes
4883 ac_cv_safe_to_define___extensions__=no
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4888 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4889 test $ac_cv_safe_to_define___extensions__ = yes &&
4890 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4892 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4894 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4896 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4898 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4906 # Check whether --with-sysroot was given.
4907 if test "${with_sysroot+set}" = set; then :
4908 withval=$with_sysroot; sysroot=$withval
4914 if test "$sysroot" = "yes"; then
4915 sysroot='${exec_prefix}/${target_alias}/sys-root'
4916 elif test "$sysroot" = "no"; then
4920 sysroot_relocatable=0
4921 if test -n "$sysroot"; then
4923 "${prefix}" | "${prefix}/"* | \
4924 "${exec_prefix}" | "${exec_prefix}/"* | \
4925 '${prefix}' | '${prefix}/'*| \
4926 '${exec_prefix}' | '${exec_prefix}/'*)
4927 sysroot_relocatable=1
4933 cat >>confdefs.h <<_ACEOF
4934 #define TARGET_SYSTEM_ROOT "$sysroot"
4938 cat >>confdefs.h <<_ACEOF
4939 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
4944 installed_linker=ld.gold
4945 # Check whether --enable-gold was given.
4946 if test "${enable_gold+set}" = set; then :
4947 enableval=$enable_gold; case "${enableval}" in
4949 install_as_default=yes
4952 if test x${enable_ld} = xno; then
4953 install_as_default=yes
4958 install_as_default=no
4964 # Check whether --enable-threads was given.
4965 if test "${enable_threads+set}" = set; then :
4966 enableval=$enable_threads; case "${enableval}" in
4967 yes | "") threads=yes ;;
4975 if test "$threads" = "yes"; then
4977 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
4980 if test "$threads" = "yes"; then
4991 for ac_header in dlfcn.h
4993 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4995 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4996 cat >>confdefs.h <<_ACEOF
4997 #define HAVE_DLFCN_H 1
5004 for ac_header in windows.h
5006 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5008 if test "x$ac_cv_header_windows_h" = xyes; then :
5009 cat >>confdefs.h <<_ACEOF
5010 #define HAVE_WINDOWS_H 1
5018 # Check whether --enable-plugins was given.
5019 if test "${enable_plugins+set}" = set; then :
5020 enableval=$enable_plugins; case "${enableval}" in
5023 if test "$maybe_plugins" != "yes" ; then
5024 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5028 plugins=$maybe_plugins
5032 if test "$plugins" = "yes"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5034 $as_echo_n "checking for library containing dlsym... " >&6; }
5035 if ${ac_cv_search_dlsym+:} false; then :
5036 $as_echo_n "(cached) " >&6
5038 ac_func_search_save_LIBS=$LIBS
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5042 /* Override any GCC internal prototype to avoid an error.
5043 Use char because int might match the return type of a GCC
5044 builtin and then its argument prototype would still apply. */
5057 for ac_lib in '' dl; do
5058 if test -z "$ac_lib"; then
5059 ac_res="none required"
5062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5064 if ac_fn_c_try_link "$LINENO"; then :
5065 ac_cv_search_dlsym=$ac_res
5067 rm -f core conftest.err conftest.$ac_objext \
5069 if ${ac_cv_search_dlsym+:} false; then :
5073 if ${ac_cv_search_dlsym+:} false; then :
5076 ac_cv_search_dlsym=no
5079 LIBS=$ac_func_search_save_LIBS
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5082 $as_echo "$ac_cv_search_dlsym" >&6; }
5083 ac_res=$ac_cv_search_dlsym
5084 if test "$ac_res" != no; then :
5085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5091 if test "$plugins" = "yes"; then
5093 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5096 if test "$plugins" = "yes"; then
5105 # Decide if -z relro should be enabled in ELF linker by default.
5106 ac_default_ld_z_relro=unset
5107 # Provide a configure time option to override our default.
5108 # Check whether --enable-relro was given.
5109 if test "${enable_relro+set}" = set; then :
5110 enableval=$enable_relro; case "${enableval}" in
5111 yes) ac_default_ld_z_relro=1 ;;
5112 no) ac_default_ld_z_relro=0 ;;
5115 if test "${ac_default_ld_z_relro}" = unset; then
5116 ac_default_ld_z_relro=1
5119 cat >>confdefs.h <<_ACEOF
5120 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5124 # Check whether --enable-targets was given.
5125 if test "${enable_targets+set}" = set; then :
5126 enableval=$enable_targets; case "${enableval}" in
5128 as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
5134 enable_targets=$enableval
5138 # For now, enable all targets by default
5144 # Canonicalize the enabled targets.
5145 if test -n "$enable_targets"; then
5146 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
5147 result=`$ac_config_sub $targ 2>/dev/null`
5148 if test -n "$result"; then
5149 canon_targets="$canon_targets $result"
5151 # Permit unrecognized target names, like "all".
5152 canon_targets="$canon_targets $targ"
5157 # Decide which "--hash-style" to use by default
5158 # Provide a configure time option to override our default.
5159 # Check whether --enable-default-hash-style was given.
5160 if test "${enable_default_hash_style+set}" = set; then :
5161 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
5162 sysv | gnu | both) ;;
5163 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5167 # Enable gnu hash only on GNU targets, but not mips
5168 mips*-*-*) enable_default_hash_style=sysv ;;
5169 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
5170 *) enable_default_hash_style=sysv ;;
5176 cat >>confdefs.h <<_ACEOF
5177 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5181 # See which specific instantiations we need.
5187 default_osabi=ELFOSABI_NONE
5192 for targ in $target $canon_targets; do
5193 if test "$targ" = "all"; then
5200 . ${srcdir}/configure.tgt
5202 if test "$targ_obj" = "UNKNOWN"; then
5203 as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
5205 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
5206 if test "$targ_extra_obj" != ""; then
5207 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5209 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5210 if test "$targ_big_endian" = "true" \
5211 -o "$targ_extra_big_endian" = "true"; then
5214 if test "$targ_big_endian" = "false" \
5215 -o "$targ_extra_big_endian" = "false"; then
5219 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5220 if test "$targ_big_endian" = "true" \
5221 -o "$targ_extra_big_endian" = "true"; then
5224 if test "$targ_big_endian" = "false" \
5225 -o "$targ_extra_big_endian" = "false"; then
5230 if test "$target" = "$targ"; then
5231 default_machine=$targ_machine
5232 default_size=$targ_size
5233 default_big_endian=$targ_big_endian
5234 default_osabi=$targ_osabi
5236 if test "$targ_obj" = "aarch64"; then
5237 DEFAULT_TARGET_AARCH64_TRUE=
5238 DEFAULT_TARGET_AARCH64_FALSE='#'
5240 DEFAULT_TARGET_AARCH64_TRUE='#'
5241 DEFAULT_TARGET_AARCH64_FALSE=
5244 if test "$targ_obj" = "arm"; then
5245 DEFAULT_TARGET_ARM_TRUE=
5246 DEFAULT_TARGET_ARM_FALSE='#'
5248 DEFAULT_TARGET_ARM_TRUE='#'
5249 DEFAULT_TARGET_ARM_FALSE=
5252 if test "$targ_obj" = "i386"; then
5253 DEFAULT_TARGET_I386_TRUE=
5254 DEFAULT_TARGET_I386_FALSE='#'
5256 DEFAULT_TARGET_I386_TRUE='#'
5257 DEFAULT_TARGET_I386_FALSE=
5260 if test "$targ_obj" = "powerpc"; then
5261 DEFAULT_TARGET_POWERPC_TRUE=
5262 DEFAULT_TARGET_POWERPC_FALSE='#'
5264 DEFAULT_TARGET_POWERPC_TRUE='#'
5265 DEFAULT_TARGET_POWERPC_FALSE=
5268 if test "$targ_obj" = "sparc"; then
5269 DEFAULT_TARGET_SPARC_TRUE=
5270 DEFAULT_TARGET_SPARC_FALSE='#'
5272 DEFAULT_TARGET_SPARC_TRUE='#'
5273 DEFAULT_TARGET_SPARC_FALSE=
5276 if test "$targ_obj" = "s390"; then
5277 DEFAULT_TARGET_S390_TRUE=
5278 DEFAULT_TARGET_S390_FALSE='#'
5280 DEFAULT_TARGET_S390_TRUE='#'
5281 DEFAULT_TARGET_S390_FALSE=
5286 if test "$targ_obj" = "x86_64"; then
5288 x86_64*-linux-gnux32)
5297 if test "$target_x86_64" = "yes"; then
5298 DEFAULT_TARGET_X86_64_TRUE=
5299 DEFAULT_TARGET_X86_64_FALSE='#'
5301 DEFAULT_TARGET_X86_64_TRUE='#'
5302 DEFAULT_TARGET_X86_64_FALSE=
5305 if test "$target_x32" = "yes"; then
5306 DEFAULT_TARGET_X32_TRUE=
5307 DEFAULT_TARGET_X32_FALSE='#'
5309 DEFAULT_TARGET_X32_TRUE='#'
5310 DEFAULT_TARGET_X32_FALSE=
5313 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5314 DEFAULT_TARGET_X86_64_OR_X32_TRUE=
5315 DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
5317 DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
5318 DEFAULT_TARGET_X86_64_OR_X32_FALSE=
5321 if test "$targ_obj" = "tilegx"; then
5322 DEFAULT_TARGET_TILEGX_TRUE=
5323 DEFAULT_TARGET_TILEGX_FALSE='#'
5325 DEFAULT_TARGET_TILEGX_TRUE='#'
5326 DEFAULT_TARGET_TILEGX_FALSE=
5329 if test "$targ_obj" = "mips"; then
5330 DEFAULT_TARGET_MIPS_TRUE=
5331 DEFAULT_TARGET_MIPS_FALSE='#'
5333 DEFAULT_TARGET_MIPS_TRUE='#'
5334 DEFAULT_TARGET_MIPS_FALSE=
5337 DEFAULT_TARGET=${targ_obj}
5344 # Remove any duplicates.
5346 for t in $targetobjs; do
5354 if test -n "$targ_32_little"; then
5356 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5359 if test -n "$targ_32_big"; then
5361 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5364 if test -n "$targ_64_little"; then
5366 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5369 if test -n "$targ_64_big"; then
5371 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5375 if test -n "$all_targets"; then
5376 TARGETOBJS='$(ALL_TARGETOBJS)'
5378 TARGETOBJS="$targetobjs"
5383 cat >>confdefs.h <<_ACEOF
5384 #define GOLD_DEFAULT_MACHINE $default_machine
5388 cat >>confdefs.h <<_ACEOF
5389 #define GOLD_DEFAULT_SIZE $default_size
5393 cat >>confdefs.h <<_ACEOF
5394 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5398 cat >>confdefs.h <<_ACEOF
5399 #define GOLD_DEFAULT_OSABI $default_osabi
5404 # Check whether --with-lib-path was given.
5405 if test "${with_lib_path+set}" = set; then :
5406 withval=$with_lib_path; case "$withval" in
5407 yes) LIB_PATH='"/lib:/usr/lib"' ;;
5408 no) LIB_PATH='""' ;;
5409 *) LIB_PATH='"'"$withval"'"' ;;
5412 LIB_PATH='"::DEFAULT::"'
5416 cat >>confdefs.h <<_ACEOF
5417 #define LIB_PATH $LIB_PATH
5420 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5422 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5426 if test -n "$ac_tool_prefix"; then
5427 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5428 set dummy ${ac_tool_prefix}nm; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if ${ac_cv_prog_NM+:} false; then :
5432 $as_echo_n "(cached) " >&6
5434 if test -n "$NM"; then
5435 ac_cv_prog_NM="$NM" # Let the user override the test.
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_prog_NM="${ac_tool_prefix}nm"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 if test -n "$NM"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5457 $as_echo "$NM" >&6; }
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5465 if test -z "$ac_cv_prog_NM"; then
5467 # Extract the first word of "nm", so it can be a program name with args.
5468 set dummy nm; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5472 $as_echo_n "(cached) " >&6
5474 if test -n "$ac_ct_NM"; then
5475 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_prog_ac_ct_NM="nm"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5495 if test -n "$ac_ct_NM"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5497 $as_echo "$ac_ct_NM" >&6; }
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5503 if test "x$ac_ct_NM" = x; then
5506 case $cross_compiling:$ac_tool_warned in
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5510 ac_tool_warned=yes ;;
5520 ac_cpp='$CPP $CPPFLAGS'
5521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524 if test -n "$ac_tool_prefix"; then
5525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_CC+:} false; then :
5530 $as_echo_n "(cached) " >&6
5532 if test -n "$CC"; then
5533 ac_cv_prog_CC="$CC" # Let the user override the test.
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 if test -n "$CC"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5555 $as_echo "$CC" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5563 if test -z "$ac_cv_prog_CC"; then
5565 # Extract the first word of "gcc", so it can be a program name with args.
5566 set dummy gcc; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5570 $as_echo_n "(cached) " >&6
5572 if test -n "$ac_ct_CC"; then
5573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582 ac_cv_prog_ac_ct_CC="gcc"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5593 if test -n "$ac_ct_CC"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5595 $as_echo "$ac_ct_CC" >&6; }
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5601 if test "x$ac_ct_CC" = x; then
5604 case $cross_compiling:$ac_tool_warned in
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5608 ac_tool_warned=yes ;;
5616 if test -z "$CC"; then
5617 if test -n "$ac_tool_prefix"; then
5618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5619 set dummy ${ac_tool_prefix}cc; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_CC+:} false; then :
5623 $as_echo_n "(cached) " >&6
5625 if test -n "$CC"; then
5626 ac_cv_prog_CC="$CC" # Let the user override the test.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_CC="${ac_tool_prefix}cc"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 if test -n "$CC"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5648 $as_echo "$CC" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5657 if test -z "$CC"; then
5658 # Extract the first word of "cc", so it can be a program name with args.
5659 set dummy cc; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if ${ac_cv_prog_CC+:} false; then :
5663 $as_echo_n "(cached) " >&6
5665 if test -n "$CC"; then
5666 ac_cv_prog_CC="$CC" # Let the user override the test.
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5677 ac_prog_rejected=yes
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 if test $ac_prog_rejected = yes; then
5689 # We found a bogon in the path, so make sure we never use it.
5690 set dummy $ac_cv_prog_CC
5692 if test $# != 0; then
5693 # We chose a different compiler from the bogus one.
5694 # However, it has the same basename, so the bogon will be chosen
5695 # first if we set CC to just the basename; use the full file name.
5697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5703 if test -n "$CC"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5705 $as_echo "$CC" >&6; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5713 if test -z "$CC"; then
5714 if test -n "$ac_tool_prefix"; then
5715 for ac_prog in cl.exe
5717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if ${ac_cv_prog_CC+:} false; then :
5722 $as_echo_n "(cached) " >&6
5724 if test -n "$CC"; then
5725 ac_cv_prog_CC="$CC" # Let the user override the test.
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 if test -n "$CC"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5747 $as_echo "$CC" >&6; }
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5754 test -n "$CC" && break
5757 if test -z "$CC"; then
5759 for ac_prog in cl.exe
5761 # Extract the first word of "$ac_prog", so it can be a program name with args.
5762 set dummy $ac_prog; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5766 $as_echo_n "(cached) " >&6
5768 if test -n "$ac_ct_CC"; then
5769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_ac_ct_CC="$ac_prog"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5789 if test -n "$ac_ct_CC"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5791 $as_echo "$ac_ct_CC" >&6; }
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5798 test -n "$ac_ct_CC" && break
5801 if test "x$ac_ct_CC" = x; then
5804 case $cross_compiling:$ac_tool_warned in
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808 ac_tool_warned=yes ;;
5817 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5819 as_fn_error $? "no acceptable C compiler found in \$PATH
5820 See \`config.log' for more details" "$LINENO" 5; }
5822 # Provide some information about the compiler.
5823 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5826 for ac_option in --version -v -V -qversion; do
5827 { { ac_try="$ac_compiler $ac_option >&5"
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5833 $as_echo "$ac_try_echo"; } >&5
5834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5836 if test -s conftest.err; then
5838 ... rest of stderr output deleted ...
5839 10q' conftest.err >conftest.er1
5840 cat conftest.er1 >&5
5842 rm -f conftest.er1 conftest.err
5843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5844 test $ac_status = 0; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5848 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5849 if ${ac_cv_c_compiler_gnu+:} false; then :
5850 $as_echo_n "(cached) " >&6
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5866 if ac_fn_c_try_compile "$LINENO"; then :
5871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5876 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5877 if test $ac_compiler_gnu = yes; then
5882 ac_test_CFLAGS=${CFLAGS+set}
5883 ac_save_CFLAGS=$CFLAGS
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5885 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5886 if ${ac_cv_prog_cc_g+:} false; then :
5887 $as_echo_n "(cached) " >&6
5889 ac_save_c_werror_flag=$ac_c_werror_flag
5890 ac_c_werror_flag=yes
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5904 if ac_fn_c_try_compile "$LINENO"; then :
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5919 if ac_fn_c_try_compile "$LINENO"; then :
5922 ac_c_werror_flag=$ac_save_c_werror_flag
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5935 if ac_fn_c_try_compile "$LINENO"; then :
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 ac_c_werror_flag=$ac_save_c_werror_flag
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5946 $as_echo "$ac_cv_prog_cc_g" >&6; }
5947 if test "$ac_test_CFLAGS" = set; then
5948 CFLAGS=$ac_save_CFLAGS
5949 elif test $ac_cv_prog_cc_g = yes; then
5950 if test "$GCC" = yes; then
5956 if test "$GCC" = yes; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5963 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5964 if ${ac_cv_prog_cc_c89+:} false; then :
5965 $as_echo_n "(cached) " >&6
5967 ac_cv_prog_cc_c89=no
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5975 struct buf { int x; };
5976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5977 static char *e (p, i)
5983 static char *f (char * (*g) (char **, int), char **p, ...)
5988 s = g (p, va_arg (v,int));
5993 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5994 function prototypes and stuff, but not '\xHH' hex character constants.
5995 These don't provoke an error unfortunately, instead are silently treated
5996 as 'x'. The following induces an error, until -std is added to get
5997 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5998 array size at least. It's necessary to write '\x00'==0 to get something
5999 that's true only with -std. */
6000 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6002 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6003 inside strings and character constants. */
6005 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6007 int test (int i, double x);
6008 struct s1 {int (*f) (int a);};
6009 struct s2 {int (*f) (double a);};
6010 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6016 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6021 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6022 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6024 CC="$ac_save_CC $ac_arg"
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026 ac_cv_prog_cc_c89=$ac_arg
6028 rm -f core conftest.err conftest.$ac_objext
6029 test "x$ac_cv_prog_cc_c89" != "xno" && break
6031 rm -f conftest.$ac_ext
6036 case "x$ac_cv_prog_cc_c89" in
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6039 $as_echo "none needed" >&6; } ;;
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6042 $as_echo "unsupported" >&6; } ;;
6044 CC="$CC $ac_cv_prog_cc_c89"
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6046 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6048 if test "x$ac_cv_prog_cc_c89" != xno; then :
6053 ac_cpp='$CPP $CPPFLAGS'
6054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6059 ac_cpp='$CPP $CPPFLAGS'
6060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6064 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6065 if ${am_cv_prog_cc_c_o+:} false; then :
6066 $as_echo_n "(cached) " >&6
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6079 # Make sure it works both with $CC and with simple cc.
6080 # Following AC_PROG_CC_C_O, we do the test twice because some
6081 # compilers refuse to overwrite an existing .o file with -o,
6082 # though they will create one.
6083 am_cv_prog_cc_c_o=yes
6085 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6086 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } \
6090 && test -f conftest2.$ac_objext; then
6093 am_cv_prog_cc_c_o=no
6097 rm -f core conftest*
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6101 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6102 if test "$am_cv_prog_cc_c_o" != yes; then
6103 # Losing compiler, so override with the script.
6104 # FIXME: It is wrong to rewrite CC.
6105 # But if we don't then we get into trouble of one sort or another.
6106 # A longer-term fix would be to have automake use am__CC in this case,
6107 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6108 CC="$am_aux_dir/compile $CC"
6111 ac_cpp='$CPP $CPPFLAGS'
6112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6117 depcc="$CC" am_compiler_list=
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6120 $as_echo_n "checking dependency style of $depcc... " >&6; }
6121 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6122 $as_echo_n "(cached) " >&6
6124 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6125 # We make a subdir and do the tests there. Otherwise we can end up
6126 # making bogus files that we don't know about and never remove. For
6127 # instance it was reported that on HP-UX the gcc test will end up
6128 # making a dummy file named 'D' -- because '-MD' means "put the output
6132 # Copy depcomp to subdir because otherwise we won't find it if we're
6133 # using a relative directory.
6134 cp "$am_depcomp" conftest.dir
6136 # We will build objects and dependencies in a subdirectory because
6137 # it helps to detect inapplicable dependency modes. For instance
6138 # both Tru64's cc and ICC support -MD to output dependencies as a
6139 # side effect of compilation, but ICC will put the dependencies in
6140 # the current directory while Tru64 will put them in the object
6144 am_cv_CC_dependencies_compiler_type=none
6145 if test "$am_compiler_list" = ""; then
6146 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6149 case " $depcc " in #(
6150 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6153 for depmode in $am_compiler_list; do
6154 # Setup a source with many dependencies, because some compilers
6155 # like to wrap large dependency lists on column 80 (with \), and
6156 # we should not choose a depcomp mode which is confused by this.
6158 # We need to recreate these files for each test, as the compiler may
6159 # overwrite some of them when testing with obscure command lines.
6160 # This happens at least with the AIX C compiler.
6162 for i in 1 2 3 4 5 6; do
6163 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6164 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6165 # Solaris 10 /bin/sh.
6166 echo '/* dummy */' > sub/conftst$i.h
6168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6170 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6171 # mode. It turns out that the SunPro C++ compiler does not properly
6172 # handle '-M -o', and we need to detect this. Also, some Intel
6173 # versions had trouble with output in subdirs.
6174 am__obj=sub/conftest.${OBJEXT-o}
6175 am__minus_obj="-o $am__obj"
6178 # This depmode causes a compiler race in universal mode.
6179 test "$am__universal" = false || continue
6182 # After this tag, mechanisms are not by side-effect, so they'll
6183 # only be used when explicitly requested.
6184 if test "x$enable_dependency_tracking" = xyes; then
6190 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6191 # This compiler won't grok '-c -o', but also, the minuso test has
6192 # not run yet. These depmodes are late enough in the game, and
6193 # so weak that their functioning should not be impacted.
6194 am__obj=conftest.${OBJEXT-o}
6199 if depmode=$depmode \
6200 source=sub/conftest.c object=$am__obj \
6201 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6202 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6203 >/dev/null 2>conftest.err &&
6204 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6205 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6206 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6207 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6208 # icc doesn't choke on unknown options, it will just issue warnings
6209 # or remarks (even with -Werror). So we grep stderr for any message
6210 # that says an option was ignored or not supported.
6211 # When given -MP, icc 7.0 and 7.1 complain thusly:
6212 # icc: Command line warning: ignoring option '-M'; no argument required
6213 # The diagnosis changed in icc 8.0:
6214 # icc: Command line remark: option '-MP' not supported
6215 if (grep 'ignoring option' conftest.err ||
6216 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6217 am_cv_CC_dependencies_compiler_type=$depmode
6226 am_cv_CC_dependencies_compiler_type=none
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6231 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6232 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6235 test "x$enable_dependency_tracking" != xno \
6236 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6238 am__fastdepCC_FALSE='#'
6240 am__fastdepCC_TRUE='#'
6241 am__fastdepCC_FALSE=
6246 ac_cpp='$CXXCPP $CPPFLAGS'
6247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6250 if test -z "$CXX"; then
6251 if test -n "$CCC"; then
6254 if test -n "$ac_tool_prefix"; then
6255 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_CXX+:} false; then :
6262 $as_echo_n "(cached) " >&6
6264 if test -n "$CXX"; then
6265 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 if test -n "$CXX"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6287 $as_echo "$CXX" >&6; }
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6294 test -n "$CXX" && break
6297 if test -z "$CXX"; then
6299 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6301 # Extract the first word of "$ac_prog", so it can be a program name with args.
6302 set dummy $ac_prog; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6306 $as_echo_n "(cached) " >&6
6308 if test -n "$ac_ct_CXX"; then
6309 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318 ac_cv_prog_ac_ct_CXX="$ac_prog"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6329 if test -n "$ac_ct_CXX"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6331 $as_echo "$ac_ct_CXX" >&6; }
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6338 test -n "$ac_ct_CXX" && break
6341 if test "x$ac_ct_CXX" = x; then
6344 case $cross_compiling:$ac_tool_warned in
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6348 ac_tool_warned=yes ;;
6356 # Provide some information about the compiler.
6357 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6360 for ac_option in --version -v -V -qversion; do
6361 { { ac_try="$ac_compiler $ac_option >&5"
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6367 $as_echo "$ac_try_echo"; } >&5
6368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6370 if test -s conftest.err; then
6372 ... rest of stderr output deleted ...
6373 10q' conftest.err >conftest.er1
6374 cat conftest.er1 >&5
6376 rm -f conftest.er1 conftest.err
6377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6378 test $ac_status = 0; }
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6382 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6383 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6384 $as_echo_n "(cached) " >&6
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6400 if ac_fn_cxx_try_compile "$LINENO"; then :
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6410 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6411 if test $ac_compiler_gnu = yes; then
6416 ac_test_CXXFLAGS=${CXXFLAGS+set}
6417 ac_save_CXXFLAGS=$CXXFLAGS
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6419 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6420 if ${ac_cv_prog_cxx_g+:} false; then :
6421 $as_echo_n "(cached) " >&6
6423 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6424 ac_cxx_werror_flag=yes
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6438 if ac_fn_cxx_try_compile "$LINENO"; then :
6439 ac_cv_prog_cxx_g=yes
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6453 if ac_fn_cxx_try_compile "$LINENO"; then :
6456 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6469 if ac_fn_cxx_try_compile "$LINENO"; then :
6470 ac_cv_prog_cxx_g=yes
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6480 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6481 if test "$ac_test_CXXFLAGS" = set; then
6482 CXXFLAGS=$ac_save_CXXFLAGS
6483 elif test $ac_cv_prog_cxx_g = yes; then
6484 if test "$GXX" = yes; then
6490 if test "$GXX" = yes; then
6497 ac_cpp='$CPP $CPPFLAGS'
6498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6502 depcc="$CXX" am_compiler_list=
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6505 $as_echo_n "checking dependency style of $depcc... " >&6; }
6506 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6507 $as_echo_n "(cached) " >&6
6509 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6510 # We make a subdir and do the tests there. Otherwise we can end up
6511 # making bogus files that we don't know about and never remove. For
6512 # instance it was reported that on HP-UX the gcc test will end up
6513 # making a dummy file named 'D' -- because '-MD' means "put the output
6517 # Copy depcomp to subdir because otherwise we won't find it if we're
6518 # using a relative directory.
6519 cp "$am_depcomp" conftest.dir
6521 # We will build objects and dependencies in a subdirectory because
6522 # it helps to detect inapplicable dependency modes. For instance
6523 # both Tru64's cc and ICC support -MD to output dependencies as a
6524 # side effect of compilation, but ICC will put the dependencies in
6525 # the current directory while Tru64 will put them in the object
6529 am_cv_CXX_dependencies_compiler_type=none
6530 if test "$am_compiler_list" = ""; then
6531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6534 case " $depcc " in #(
6535 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6538 for depmode in $am_compiler_list; do
6539 # Setup a source with many dependencies, because some compilers
6540 # like to wrap large dependency lists on column 80 (with \), and
6541 # we should not choose a depcomp mode which is confused by this.
6543 # We need to recreate these files for each test, as the compiler may
6544 # overwrite some of them when testing with obscure command lines.
6545 # This happens at least with the AIX C compiler.
6547 for i in 1 2 3 4 5 6; do
6548 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6549 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6550 # Solaris 10 /bin/sh.
6551 echo '/* dummy */' > sub/conftst$i.h
6553 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6555 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6556 # mode. It turns out that the SunPro C++ compiler does not properly
6557 # handle '-M -o', and we need to detect this. Also, some Intel
6558 # versions had trouble with output in subdirs.
6559 am__obj=sub/conftest.${OBJEXT-o}
6560 am__minus_obj="-o $am__obj"
6563 # This depmode causes a compiler race in universal mode.
6564 test "$am__universal" = false || continue
6567 # After this tag, mechanisms are not by side-effect, so they'll
6568 # only be used when explicitly requested.
6569 if test "x$enable_dependency_tracking" = xyes; then
6575 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6576 # This compiler won't grok '-c -o', but also, the minuso test has
6577 # not run yet. These depmodes are late enough in the game, and
6578 # so weak that their functioning should not be impacted.
6579 am__obj=conftest.${OBJEXT-o}
6584 if depmode=$depmode \
6585 source=sub/conftest.c object=$am__obj \
6586 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6587 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6588 >/dev/null 2>conftest.err &&
6589 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6590 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6591 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6592 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6593 # icc doesn't choke on unknown options, it will just issue warnings
6594 # or remarks (even with -Werror). So we grep stderr for any message
6595 # that says an option was ignored or not supported.
6596 # When given -MP, icc 7.0 and 7.1 complain thusly:
6597 # icc: Command line warning: ignoring option '-M'; no argument required
6598 # The diagnosis changed in icc 8.0:
6599 # icc: Command line remark: option '-MP' not supported
6600 if (grep 'ignoring option' conftest.err ||
6601 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6602 am_cv_CXX_dependencies_compiler_type=$depmode
6611 am_cv_CXX_dependencies_compiler_type=none
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6616 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6617 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6620 test "x$enable_dependency_tracking" != xno \
6621 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6622 am__fastdepCXX_TRUE=
6623 am__fastdepCXX_FALSE='#'
6625 am__fastdepCXX_TRUE='#'
6626 am__fastdepCXX_FALSE=
6630 for ac_prog in 'bison -y' byacc
6632 # Extract the first word of "$ac_prog", so it can be a program name with args.
6633 set dummy $ac_prog; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_YACC+:} false; then :
6637 $as_echo_n "(cached) " >&6
6639 if test -n "$YACC"; then
6640 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_YACC="$ac_prog"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 YACC=$ac_cv_prog_YACC
6660 if test -n "$YACC"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6662 $as_echo "$YACC" >&6; }
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6669 test -n "$YACC" && break
6671 test -n "$YACC" || YACC="yacc"
6673 if test -n "$ac_tool_prefix"; then
6674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6675 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_prog_RANLIB+:} false; then :
6679 $as_echo_n "(cached) " >&6
6681 if test -n "$RANLIB"; then
6682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 RANLIB=$ac_cv_prog_RANLIB
6702 if test -n "$RANLIB"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6704 $as_echo "$RANLIB" >&6; }
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6712 if test -z "$ac_cv_prog_RANLIB"; then
6713 ac_ct_RANLIB=$RANLIB
6714 # Extract the first word of "ranlib", so it can be a program name with args.
6715 set dummy ranlib; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6719 $as_echo_n "(cached) " >&6
6721 if test -n "$ac_ct_RANLIB"; then
6722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731 ac_cv_prog_ac_ct_RANLIB="ranlib"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6742 if test -n "$ac_ct_RANLIB"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6744 $as_echo "$ac_ct_RANLIB" >&6; }
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6750 if test "x$ac_ct_RANLIB" = x; then
6753 case $cross_compiling:$ac_tool_warned in
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757 ac_tool_warned=yes ;;
6759 RANLIB=$ac_ct_RANLIB
6762 RANLIB="$ac_cv_prog_RANLIB"
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6767 $as_echo_n "checking whether ln -s works... " >&6; }
6769 if test "$LN_S" = "ln -s"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6771 $as_echo "yes" >&6; }
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6774 $as_echo "no, using $LN_S" >&6; }
6780 # If we haven't got the data from the intl directory,
6781 # assume NLS is disabled.
6790 if test -f ../intl/config.intl; then
6791 . ../intl/config.intl
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6794 $as_echo_n "checking whether NLS is requested... " >&6; }
6795 if test x"$USE_NLS" != xyes; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6800 $as_echo "yes" >&6; }
6802 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6806 $as_echo_n "checking for catalogs to be installed... " >&6; }
6807 # Look for .po and .gmo files in the source directory.
6810 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6811 # If there aren't any .gmo files the shell will give us the
6812 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6814 case "$cat" in *\**)
6817 # The quadruple backslash is collapsed to a double backslash
6818 # by the backticks, then collapsed again by the double quotes,
6819 # leaving us with one backslash in the sed expression (right
6820 # before the dot that mustn't act as a wildcard).
6821 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6822 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6823 # The user is allowed to set LINGUAS to a list of languages to
6824 # install catalogs for. If it's empty that means "all of them."
6825 if test "x$LINGUAS" = x; then
6826 CATALOGS="$CATALOGS $cat"
6827 XLINGUAS="$XLINGUAS $lang"
6829 case "$LINGUAS" in *$lang*)
6830 CATALOGS="$CATALOGS $cat"
6831 XLINGUAS="$XLINGUAS $lang"
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6838 $as_echo "$LINGUAS" >&6; }
6852 if test -n "$ac_aux_dir"; then
6853 case "$ac_aux_dir" in
6854 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6855 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6858 if test -z "$MKINSTALLDIRS"; then
6859 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6865 $as_echo_n "checking whether NLS is requested... " >&6; }
6866 # Check whether --enable-nls was given.
6867 if test "${enable_nls+set}" = set; then :
6868 enableval=$enable_nls; USE_NLS=$enableval
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6874 $as_echo "$USE_NLS" >&6; }
6881 # Prepare PATH_SEPARATOR.
6882 # The user is always right.
6883 if test "${PATH_SEPARATOR+set}" != set; then
6884 echo "#! /bin/sh" >conf$$.sh
6885 echo "exit 0" >>conf$$.sh
6887 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6895 # Find out how to test for executable files. Don't use a zero-byte file,
6896 # as systems may use methods other than mode bits to determine executability.
6897 cat >conf$$.file <<_ASEOF
6901 chmod +x conf$$.file
6902 if test -x conf$$.file >/dev/null 2>&1; then
6903 ac_executable_p="test -x"
6905 ac_executable_p="test -f"
6909 # Extract the first word of "msgfmt", so it can be a program name with args.
6910 set dummy msgfmt; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_path_MSGFMT+:} false; then :
6914 $as_echo_n "(cached) " >&6
6918 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6921 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6922 for ac_dir in $PATH; do
6924 test -z "$ac_dir" && ac_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6927 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6928 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6929 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6936 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6940 MSGFMT="$ac_cv_path_MSGFMT"
6941 if test "$MSGFMT" != ":"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6943 $as_echo "$MSGFMT" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6949 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6950 set dummy gmsgfmt; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_path_GMSGFMT+:} false; then :
6954 $as_echo_n "(cached) " >&6
6958 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6980 GMSGFMT=$ac_cv_path_GMSGFMT
6981 if test -n "$GMSGFMT"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6983 $as_echo "$GMSGFMT" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6992 # Prepare PATH_SEPARATOR.
6993 # The user is always right.
6994 if test "${PATH_SEPARATOR+set}" != set; then
6995 echo "#! /bin/sh" >conf$$.sh
6996 echo "exit 0" >>conf$$.sh
6998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7006 # Find out how to test for executable files. Don't use a zero-byte file,
7007 # as systems may use methods other than mode bits to determine executability.
7008 cat >conf$$.file <<_ASEOF
7012 chmod +x conf$$.file
7013 if test -x conf$$.file >/dev/null 2>&1; then
7014 ac_executable_p="test -x"
7016 ac_executable_p="test -f"
7020 # Extract the first word of "xgettext", so it can be a program name with args.
7021 set dummy xgettext; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_path_XGETTEXT+:} false; then :
7025 $as_echo_n "(cached) " >&6
7029 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7032 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7033 for ac_dir in $PATH; do
7035 test -z "$ac_dir" && ac_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7038 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7039 (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
7040 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7047 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7051 XGETTEXT="$ac_cv_path_XGETTEXT"
7052 if test "$XGETTEXT" != ":"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7054 $as_echo "$XGETTEXT" >&6; }
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7063 # Prepare PATH_SEPARATOR.
7064 # The user is always right.
7065 if test "${PATH_SEPARATOR+set}" != set; then
7066 echo "#! /bin/sh" >conf$$.sh
7067 echo "exit 0" >>conf$$.sh
7069 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7077 # Find out how to test for executable files. Don't use a zero-byte file,
7078 # as systems may use methods other than mode bits to determine executability.
7079 cat >conf$$.file <<_ASEOF
7083 chmod +x conf$$.file
7084 if test -x conf$$.file >/dev/null 2>&1; then
7085 ac_executable_p="test -x"
7087 ac_executable_p="test -f"
7091 # Extract the first word of "msgmerge", so it can be a program name with args.
7092 set dummy msgmerge; ac_word=$2
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094 $as_echo_n "checking for $ac_word... " >&6; }
7095 if ${ac_cv_path_MSGMERGE+:} false; then :
7096 $as_echo_n "(cached) " >&6
7100 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7103 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7104 for ac_dir in $PATH; do
7106 test -z "$ac_dir" && ac_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7109 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7110 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7117 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7121 MSGMERGE="$ac_cv_path_MSGMERGE"
7122 if test "$MSGMERGE" != ":"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7124 $as_echo "$MSGMERGE" >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7131 if test "$GMSGFMT" != ":"; then
7132 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7133 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7136 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7138 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7143 if test "$XGETTEXT" != ":"; then
7144 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7145 (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
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7149 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7155 ac_config_commands="$ac_config_commands default-1"
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7160 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7161 if ${ac_cv_c_bigendian+:} false; then :
7162 $as_echo_n "(cached) " >&6
7164 ac_cv_c_bigendian=unknown
7165 # See if we're dealing with a universal compiler.
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 #ifndef __APPLE_CC__
7169 not a universal capable compiler
7174 if ac_fn_c_try_compile "$LINENO"; then :
7176 # Check for potential -arch flags. It is not universal unless
7177 # there are at least two -arch flags with different values.
7180 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7181 if test -n "$ac_prev"; then
7183 i?86 | x86_64 | ppc | ppc64)
7184 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7187 ac_cv_c_bigendian=universal
7193 elif test "x$ac_word" = "x-arch"; then
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 if test $ac_cv_c_bigendian = unknown; then
7200 # See if sys/param.h defines the BYTE_ORDER macro.
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 #include <sys/types.h>
7204 #include <sys/param.h>
7209 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7210 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7219 if ac_fn_c_try_compile "$LINENO"; then :
7220 # It does; now see whether it defined to BIG_ENDIAN or not.
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223 #include <sys/types.h>
7224 #include <sys/param.h>
7229 #if BYTE_ORDER != BIG_ENDIAN
7237 if ac_fn_c_try_compile "$LINENO"; then :
7238 ac_cv_c_bigendian=yes
7240 ac_cv_c_bigendian=no
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 if test $ac_cv_c_bigendian = unknown; then
7247 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7255 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7263 if ac_fn_c_try_compile "$LINENO"; then :
7264 # It does; now see whether it defined to _BIG_ENDIAN or not.
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7280 if ac_fn_c_try_compile "$LINENO"; then :
7281 ac_cv_c_bigendian=yes
7283 ac_cv_c_bigendian=no
7285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 if test $ac_cv_c_bigendian = unknown; then
7290 # Compile a test program.
7291 if test "$cross_compiling" = yes; then :
7292 # Try to guess by grepping values from an object file.
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 short int ascii_mm[] =
7296 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7297 short int ascii_ii[] =
7298 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7299 int use_ascii (int i) {
7300 return ascii_mm[i] + ascii_ii[i];
7302 short int ebcdic_ii[] =
7303 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7304 short int ebcdic_mm[] =
7305 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7306 int use_ebcdic (int i) {
7307 return ebcdic_mm[i] + ebcdic_ii[i];
7314 return use_ascii (foo) == use_ebcdic (foo);
7319 if ac_fn_c_try_compile "$LINENO"; then :
7320 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7321 ac_cv_c_bigendian=yes
7323 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7324 if test "$ac_cv_c_bigendian" = unknown; then
7325 ac_cv_c_bigendian=no
7327 # finding both strings is unlikely to happen, but who knows?
7328 ac_cv_c_bigendian=unknown
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 $ac_includes_default
7341 /* Are we little or big endian? From Harbison&Steele. */
7345 char c[sizeof (long int)];
7348 return u.c[sizeof (long int) - 1] == 1;
7354 if ac_fn_c_try_run "$LINENO"; then :
7355 ac_cv_c_bigendian=no
7357 ac_cv_c_bigendian=yes
7359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7360 conftest.$ac_objext conftest.beam conftest.$ac_ext
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7366 $as_echo "$ac_cv_c_bigendian" >&6; }
7367 case $ac_cv_c_bigendian in #(
7369 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7375 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7379 as_fn_error $? "unknown endianness
7380 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7386 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
7388 NATIVE_LINKER_FALSE='#'
7390 NATIVE_LINKER_TRUE='#'
7391 NATIVE_LINKER_FALSE=
7394 if test "$GCC" = yes; then
7403 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
7404 NATIVE_OR_CROSS_LINKER_TRUE=
7405 NATIVE_OR_CROSS_LINKER_FALSE='#'
7407 NATIVE_OR_CROSS_LINKER_TRUE='#'
7408 NATIVE_OR_CROSS_LINKER_FALSE=
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
7413 $as_echo_n "checking whether static linking works... " >&6; }
7414 if ${gold_cv_lib_static+:} false; then :
7415 $as_echo_n "(cached) " >&6
7417 LDFLAGS_hold=$LDFLAGS
7418 LDFLAGS="$LDFLAGS -static"
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7431 if ac_fn_c_try_link "$LINENO"; then :
7432 gold_cv_lib_static=yes
7434 gold_cv_lib_static=no
7436 rm -f core conftest.err conftest.$ac_objext \
7437 conftest$ac_exeext conftest.$ac_ext
7438 LDFLAGS=$LDFLAGS_hold
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
7441 $as_echo "$gold_cv_lib_static" >&6; }
7442 if test "$gold_cv_lib_static" = "yes"; then
7444 HAVE_STATIC_FALSE='#'
7446 HAVE_STATIC_TRUE='#'
7459 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
7460 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
7462 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
7463 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
7468 $as_echo_n "checking for gcc >= 4.1... " >&6; }
7469 if ${gold_cv_prog_gcc41+:} false; then :
7470 $as_echo_n "(cached) " >&6
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7475 #if !defined __GNUC__
7477 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
7482 if ac_fn_c_try_compile "$LINENO"; then :
7483 gold_cv_prog_gcc41=yes
7485 gold_cv_prog_gcc41=no
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
7490 $as_echo "$gold_cv_prog_gcc41" >&6; }
7492 save_CFLAGS="$CFLAGS"
7493 CFLAGS="$CFLAGS -mcmodel=medium"
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7498 if ac_fn_c_try_compile "$LINENO"; then :
7499 have_mcmodel_medium=yes
7501 have_mcmodel_medium=no
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 CFLAGS="$save_CFLAGS"
7505 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
7506 MCMODEL_MEDIUM_TRUE=
7507 MCMODEL_MEDIUM_FALSE='#'
7509 MCMODEL_MEDIUM_TRUE='#'
7510 MCMODEL_MEDIUM_FALSE=
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
7515 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
7516 if ${gold_cv_merge_constants+:} false; then :
7517 $as_echo_n "(cached) " >&6
7520 save_CFLAGS="$CFLAGS"
7521 CFLAGS="$CFLAGS -fmerge-constants"
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 const char *s = "foo";
7526 if ac_fn_c_try_compile "$LINENO"; then :
7527 gold_cv_merge_constants=yes
7529 gold_cv_merge_constants=no
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 CFLAGS="$save_CFLAGS"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
7535 $as_echo "$gold_cv_merge_constants" >&6; }
7537 if test "$gold_cv_merge_constants" = yes; then :
7538 MERGE_CONSTANTS_FLAG=-fmerge-constants
7540 MERGE_CONSTANTS_FLAG=
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
7544 $as_echo_n "checking for thread support... " >&6; }
7545 if ${gold_cv_c_thread+:} false; then :
7546 $as_echo_n "(cached) " >&6
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7552 if ac_fn_c_try_compile "$LINENO"; then :
7553 gold_cv_c_thread=yes
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
7560 $as_echo "$gold_cv_c_thread" >&6; }
7562 if test "$gold_cv_c_thread" = "yes"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
7572 $as_echo_n "checking for glibc >= 2.4... " >&6; }
7573 if ${gold_cv_lib_glibc24+:} false; then :
7574 $as_echo_n "(cached) " >&6
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7579 #include <features.h>
7580 #if !defined __GLIBC__
7582 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
7587 if ac_fn_c_try_compile "$LINENO"; then :
7588 gold_cv_lib_glibc24=yes
7590 gold_cv_lib_glibc24=no
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
7595 $as_echo "$gold_cv_lib_glibc24" >&6; }
7597 if test "$gold_cv_lib_glibc24" = "yes"; then
7599 STATIC_TLS_FALSE='#'
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
7607 $as_echo_n "checking for omp support... " >&6; }
7608 if ${gold_cv_c_threadprivate+:} false; then :
7609 $as_echo_n "(cached) " >&6
7611 save_CFLAGS="$CFLAGS"
7612 CFLAGS="$CFLAGS -fopenmp"
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7618 #pragma omp threadprivate (i)
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622 gold_cv_c_threadprivate=yes
7624 gold_cv_c_threadprivate=no
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 CFLAGS="$save_CFLAGS"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
7630 $as_echo "$gold_cv_c_threadprivate" >&6; }
7631 if test "$gold_cv_c_threadprivate" = "yes"; then
7633 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
7636 if test "$gold_cv_c_threadprivate" = "yes"; then
7638 OMP_SUPPORT_FALSE='#'
7640 OMP_SUPPORT_TRUE='#'
7645 save_CFLAGS="$CFLAGS"
7646 CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7657 if ac_fn_c_try_compile "$LINENO"; then :
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 CFLAGS="$save_CFLAGS"
7664 if test "$have_tls_gnu2" = "yes"; then
7665 TLS_GNU2_DIALECT_TRUE=
7666 TLS_GNU2_DIALECT_FALSE='#'
7668 TLS_GNU2_DIALECT_TRUE='#'
7669 TLS_GNU2_DIALECT_FALSE=
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
7674 $as_echo_n "checking for glibc >= 2.9... " >&6; }
7675 if ${gold_cv_lib_glibc29+:} false; then :
7676 $as_echo_n "(cached) " >&6
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7681 #include <features.h>
7682 #if !defined __GLIBC__
7684 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
7689 if ac_fn_c_try_compile "$LINENO"; then :
7690 gold_cv_lib_glibc29=yes
7692 gold_cv_lib_glibc29=no
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
7697 $as_echo "$gold_cv_lib_glibc29" >&6; }
7699 if test "$gold_cv_lib_glibc29" = "yes"; then
7700 TLS_DESCRIPTORS_TRUE=
7701 TLS_DESCRIPTORS_FALSE='#'
7703 TLS_DESCRIPTORS_TRUE='#'
7704 TLS_DESCRIPTORS_FALSE=
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
7709 $as_echo_n "checking for -frandom-seed support... " >&6; }
7710 if ${gold_cv_c_random_seed+:} false; then :
7711 $as_echo_n "(cached) " >&6
7713 save_CFLAGS="$CFLAGS"
7714 CFLAGS="$CFLAGS -frandom-seed=foo"
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7719 if ac_fn_c_try_compile "$LINENO"; then :
7720 gold_cv_c_random_seed=yes
7722 gold_cv_c_random_seed=no
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 CFLAGS="$save_CFLAGS"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
7728 $as_echo "$gold_cv_c_random_seed" >&6; }
7729 if test "$gold_cv_c_random_seed" = "yes"; then
7730 # In Makefile, '$@' will be expanded to be the name of the file
7731 # being built, providing a unique seed for each file.
7732 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
7737 $as_echo_n "checking for glibc ifunc support... " >&6; }
7738 if ${gold_cv_lib_glibc_ifunc+:} false; then :
7739 $as_echo_n "(cached) " >&6
7741 save_LDFLAGS="$LDFLAGS"
7742 LDFLAGS="$LDFLAGS -static"
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7746 #include <features.h>
7747 #if !defined __GLIBC__
7749 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
7752 void func (void) { }
7754 __asm__(".type invoke, %gnu_indirect_function");
7755 typedef void (*funcptr) (void);
7756 funcptr dispatch (void) __asm__ ("invoke");
7757 funcptr dispatch (void) { return &func; }
7767 if ac_fn_c_try_link "$LINENO"; then :
7769 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
7770 gold_cv_lib_glibc_ifunc=both
7772 gold_cv_lib_glibc_ifunc=dyn
7775 gold_cv_lib_glibc_ifunc=no
7777 rm -f core conftest.err conftest.$ac_objext \
7778 conftest$ac_exeext conftest.$ac_ext
7779 LDFLAGS="$save_LDFLAGS"
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
7782 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7784 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7792 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
7794 IFUNC_STATIC_FALSE='#'
7796 IFUNC_STATIC_TRUE='#'
7802 # Set the 'development' global.
7803 . $srcdir/../bfd/development.sh
7805 # Set acp_cpp_for_build variable
7806 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
7808 # Default set of GCC warnings to enable.
7809 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7810 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7812 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
7821 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
7826 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7832 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
7835 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
7840 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
7841 WARN_WRITE_STRINGS=""
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7847 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
7850 WARN_WRITE_STRINGS="-Wwrite-strings"
7855 # Verify CC_FOR_BUILD to be compatible with warning flags
7857 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7862 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7863 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
7866 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
7871 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7876 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7877 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
7880 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
7885 # Check whether --enable-werror was given.
7886 if test "${enable_werror+set}" = set; then :
7887 enableval=$enable_werror; case "${enableval}" in
7888 yes | y) ERROR_ON_WARNING="yes" ;;
7889 no | n) ERROR_ON_WARNING="no" ;;
7890 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7895 # Disable -Wformat by default when using gcc on mingw
7898 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
7899 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
7900 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
7906 # Enable -Werror by default when using gcc. Turn it off for releases.
7907 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
7908 ERROR_ON_WARNING=yes
7912 if test "${ERROR_ON_WARNING}" = yes ; then
7913 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
7914 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
7915 NO_WERROR="-Wno-error"
7918 if test "${GCC}" = yes ; then
7919 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
7920 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
7923 # Check whether --enable-build-warnings was given.
7924 if test "${enable_build_warnings+set}" = set; then :
7925 enableval=$enable_build_warnings; case "${enableval}" in
7926 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
7927 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
7928 no) if test "${GCC}" = yes ; then
7930 WARN_CFLAGS_FOR_BUILD="-w"
7932 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7933 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
7934 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
7935 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7936 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
7937 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
7938 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
7939 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7944 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
7945 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
7954 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
7958 # Check whether --with-gold-ldflags was given.
7959 if test "${with_gold_ldflags+set}" = set; then :
7960 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7963 GOLD_LDFLAGS=$withval
7972 # Check whether --with-gold-ldadd was given.
7973 if test "${with_gold_ldadd+set}" = set; then :
7974 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
7985 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
7988 for ac_header in sys/mman.h
7990 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
7991 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
7992 cat >>confdefs.h <<_ACEOF
7993 #define HAVE_SYS_MMAN_H 1
8000 for ac_func in chsize mmap
8002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8004 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8005 cat >>confdefs.h <<_ACEOF
8006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8012 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
8013 if test "x$ac_cv_func_pread" = xyes; then :
8014 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
8017 case " $LIBOBJS " in
8018 *" pread.$ac_objext "* ) ;;
8019 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
8025 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
8026 if test "x$ac_cv_func_ftruncate" = xyes; then :
8027 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
8030 case " $LIBOBJS " in
8031 *" ftruncate.$ac_objext "* ) ;;
8032 *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
8038 ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
8039 if test "x$ac_cv_func_ffsll" = xyes; then :
8040 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
8043 case " $LIBOBJS " in
8044 *" ffsll.$ac_objext "* ) ;;
8045 *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
8054 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
8055 if ${gold_cv_lib_mremap_maymove+:} false; then :
8056 $as_echo_n "(cached) " >&6
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8062 #include <sys/mman.h>
8063 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
8073 if ac_fn_c_try_link "$LINENO"; then :
8074 gold_cv_lib_mremap_maymove=yes
8076 gold_cv_lib_mremap_maymove=no
8078 rm -f core conftest.err conftest.$ac_objext \
8079 conftest$ac_exeext conftest.$ac_ext
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
8082 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
8083 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
8085 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
8088 case " $LIBOBJS " in
8089 *" mremap.$ac_objext "* ) ;;
8090 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
8096 # Link in zlib if we can. This allows us to write compressed sections.
8098 # Use the system's zlib library.
8099 zlibdir="-L\$(top_builddir)/../zlib"
8100 zlibinc="-I\$(top_srcdir)/../zlib"
8102 # Check whether --with-system-zlib was given.
8103 if test "${with_system_zlib+set}" = set; then :
8104 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8115 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
8116 if test "x$ac_cv_have_decl_basename" = xyes; then :
8122 cat >>confdefs.h <<_ACEOF
8123 #define HAVE_DECL_BASENAME $ac_have_decl
8125 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
8126 if test "x$ac_cv_have_decl_ffs" = xyes; then :
8132 cat >>confdefs.h <<_ACEOF
8133 #define HAVE_DECL_FFS $ac_have_decl
8135 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
8136 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
8142 cat >>confdefs.h <<_ACEOF
8143 #define HAVE_DECL_ASPRINTF $ac_have_decl
8145 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
8146 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_DECL_VASPRINTF $ac_have_decl
8155 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
8156 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
8162 cat >>confdefs.h <<_ACEOF
8163 #define HAVE_DECL_SNPRINTF $ac_have_decl
8165 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
8166 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
8172 cat >>confdefs.h <<_ACEOF
8173 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8175 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
8176 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
8182 cat >>confdefs.h <<_ACEOF
8183 #define HAVE_DECL_STRVERSCMP $ac_have_decl
8187 save_CFLAGS="$CFLAGS"
8188 CFLAGS="$CFLAGS -Werror -gpubnames"
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8193 if ac_fn_c_try_compile "$LINENO"; then :
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 CFLAGS="$save_CFLAGS"
8200 if test "$have_pubnames" = "yes"; then
8202 HAVE_PUBNAMES_FALSE='#'
8204 HAVE_PUBNAMES_TRUE='#'
8205 HAVE_PUBNAMES_FALSE=
8209 save_CFLAGS="$CFLAGS"
8210 CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8215 if ac_fn_c_try_compile "$LINENO"; then :
8216 have_no_use_linker_plugin=yes
8218 have_no_use_linker_plugin=no
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 CFLAGS="$save_CFLAGS"
8222 if test "$have_no_use_linker_plugin" = "yes"; then
8223 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
8224 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
8226 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
8227 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
8232 ac_cpp='$CXXCPP $CPPFLAGS'
8233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8240 ac_cpp='$CXXCPP $CPPFLAGS'
8241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8245 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8246 if test -z "$CXXCPP"; then
8247 if ${ac_cv_prog_CXXCPP+:} false; then :
8248 $as_echo_n "(cached) " >&6
8250 # Double quotes because CXXCPP needs to be expanded
8251 for CXXCPP in "$CXX -E" "/lib/cpp"
8254 for ac_cxx_preproc_warn_flag in '' yes
8256 # Use a header file that comes with gcc, so configuring glibc
8257 # with a fresh cross-compiler works.
8258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8259 # <limits.h> exists even on freestanding compilers.
8260 # On the NeXT, cc -E runs the code through the compiler's parser,
8261 # not just through cpp. "Syntax error" is here to catch this case.
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8265 # include <limits.h>
8267 # include <assert.h>
8271 if ac_fn_cxx_try_cpp "$LINENO"; then :
8274 # Broken: fails on valid input.
8277 rm -f conftest.err conftest.i conftest.$ac_ext
8279 # OK, works on sane cases. Now check whether nonexistent headers
8280 # can be detected and how.
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 #include <ac_nonexistent.h>
8285 if ac_fn_cxx_try_cpp "$LINENO"; then :
8286 # Broken: success on invalid input.
8289 # Passes both tests.
8293 rm -f conftest.err conftest.i conftest.$ac_ext
8296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8297 rm -f conftest.i conftest.err conftest.$ac_ext
8298 if $ac_preproc_ok; then :
8303 ac_cv_prog_CXXCPP=$CXXCPP
8306 CXXCPP=$ac_cv_prog_CXXCPP
8308 ac_cv_prog_CXXCPP=$CXXCPP
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8311 $as_echo "$CXXCPP" >&6; }
8313 for ac_cxx_preproc_warn_flag in '' yes
8315 # Use a header file that comes with gcc, so configuring glibc
8316 # with a fresh cross-compiler works.
8317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318 # <limits.h> exists even on freestanding compilers.
8319 # On the NeXT, cc -E runs the code through the compiler's parser,
8320 # not just through cpp. "Syntax error" is here to catch this case.
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8324 # include <limits.h>
8326 # include <assert.h>
8330 if ac_fn_cxx_try_cpp "$LINENO"; then :
8333 # Broken: fails on valid input.
8336 rm -f conftest.err conftest.i conftest.$ac_ext
8338 # OK, works on sane cases. Now check whether nonexistent headers
8339 # can be detected and how.
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8342 #include <ac_nonexistent.h>
8344 if ac_fn_cxx_try_cpp "$LINENO"; then :
8345 # Broken: success on invalid input.
8348 # Passes both tests.
8352 rm -f conftest.err conftest.i conftest.$ac_ext
8355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8356 rm -f conftest.i conftest.err conftest.$ac_ext
8357 if $ac_preproc_ok; then :
8360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8362 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
8363 See \`config.log' for more details" "$LINENO" 5; }
8367 ac_cpp='$CXXCPP $CPPFLAGS'
8368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8373 for ac_header in unordered_set unordered_map
8375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8378 cat >>confdefs.h <<_ACEOF
8379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8386 for ac_header in tr1/unordered_set tr1/unordered_map
8388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8389 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8391 cat >>confdefs.h <<_ACEOF
8392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8399 for ac_header in ext/hash_map ext/hash_set
8401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8402 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8404 cat >>confdefs.h <<_ACEOF
8405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8412 for ac_header in byteswap.h
8414 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
8415 if test "x$ac_cv_header_byteswap_h" = xyes; then :
8416 cat >>confdefs.h <<_ACEOF
8417 #define HAVE_BYTESWAP_H 1
8425 for ac_header in windows.h
8427 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8428 if test "x$ac_cv_header_windows_h" = xyes; then :
8429 cat >>confdefs.h <<_ACEOF
8430 #define HAVE_WINDOWS_H 1
8437 for ac_header in dlfcn.h
8439 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8440 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8441 cat >>confdefs.h <<_ACEOF
8442 #define HAVE_DLFCN_H 1
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8450 $as_echo_n "checking for library containing dlopen... " >&6; }
8451 if ${ac_cv_search_dlopen+:} false; then :
8452 $as_echo_n "(cached) " >&6
8454 ac_func_search_save_LIBS=$LIBS
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8458 /* Override any GCC internal prototype to avoid an error.
8459 Use char because int might match the return type of a GCC
8460 builtin and then its argument prototype would still apply. */
8473 for ac_lib in '' dl dld; do
8474 if test -z "$ac_lib"; then
8475 ac_res="none required"
8478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8480 if ac_fn_cxx_try_link "$LINENO"; then :
8481 ac_cv_search_dlopen=$ac_res
8483 rm -f core conftest.err conftest.$ac_objext \
8485 if ${ac_cv_search_dlopen+:} false; then :
8489 if ${ac_cv_search_dlopen+:} false; then :
8492 ac_cv_search_dlopen=no
8495 LIBS=$ac_func_search_save_LIBS
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8498 $as_echo "$ac_cv_search_dlopen" >&6; }
8499 ac_res=$ac_cv_search_dlopen
8500 if test "$ac_res" != no; then :
8501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8505 case "$ac_cv_search_dlopen" in
8506 no*) DLOPEN_LIBS="";;
8507 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
8511 for ac_func in mallinfo posix_fallocate fallocate readv sysconf times
8513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8514 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
8515 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8516 cat >>confdefs.h <<_ACEOF
8517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8523 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
8524 if test "x$ac_cv_have_decl_basename" = xyes; then :
8530 cat >>confdefs.h <<_ACEOF
8531 #define HAVE_DECL_BASENAME $ac_have_decl
8533 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
8534 if test "x$ac_cv_have_decl_ffs" = xyes; then :
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_DECL_FFS $ac_have_decl
8543 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
8544 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
8550 cat >>confdefs.h <<_ACEOF
8551 #define HAVE_DECL_ASPRINTF $ac_have_decl
8553 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
8554 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
8560 cat >>confdefs.h <<_ACEOF
8561 #define HAVE_DECL_VASPRINTF $ac_have_decl
8563 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
8564 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
8570 cat >>confdefs.h <<_ACEOF
8571 #define HAVE_DECL_SNPRINTF $ac_have_decl
8573 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
8574 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
8580 cat >>confdefs.h <<_ACEOF
8581 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8583 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
8584 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
8590 cat >>confdefs.h <<_ACEOF
8591 #define HAVE_DECL_STRVERSCMP $ac_have_decl
8593 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
8594 if test "x$ac_cv_have_decl_strndup" = xyes; then :
8600 cat >>confdefs.h <<_ACEOF
8601 #define HAVE_DECL_STRNDUP $ac_have_decl
8603 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8604 if test "x$ac_cv_have_decl_memmem" = xyes; then :
8610 cat >>confdefs.h <<_ACEOF
8611 #define HAVE_DECL_MEMMEM $ac_have_decl
8615 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
8616 # at link time with some versions of GCC.
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
8618 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
8619 if ${gold_cv_unordered_map_rehash+:} false; then :
8620 $as_echo_n "(cached) " >&6
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8625 #include <tr1/unordered_map>
8626 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
8636 if ac_fn_cxx_try_link "$LINENO"; then :
8637 gold_cv_unordered_map_rehash=yes
8639 gold_cv_unordered_map_rehash=no
8641 rm -f core conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
8645 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
8646 if test "$gold_cv_unordered_map_rehash" = "yes"; then
8648 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
8652 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
8653 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
8655 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
8656 if ${gold_cv_hash_off_t+:} false; then :
8657 $as_echo_n "(cached) " >&6
8659 CXXFLAGS_hold=$CXXFLAGS
8660 CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8664 #include <sys/types.h>
8665 #include <tr1/unordered_map>
8666 std::tr1::hash<off_t> h;
8669 if ac_fn_cxx_try_compile "$LINENO"; then :
8670 gold_cv_hash_off_t=yes
8672 gold_cv_hash_off_t=no
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 CXXFLAGS=$CXXFLAGS_hold
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
8678 $as_echo "$gold_cv_hash_off_t" >&6; }
8679 if test "$gold_cv_hash_off_t" = "yes"; then
8681 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
8685 # gcc 4.3.0 doesn't recognize the printf attribute on a template
8686 # function. Check for that. This is gcc bug 35546. This test can
8687 # probably be removed after the bug has been fixed for a while.
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
8689 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
8690 if ${gold_cv_template_attribute+:} false; then :
8691 $as_echo_n "(cached) " >&6
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8696 template<typename T> extern void foo(const char*, ...)
8697 __attribute__ ((__format__ (__printf__, 1, 2)));
8698 template<typename T> void foo(const char* format, ...) {}
8699 void bar() { foo<int>("%s\n", "foo"); }
8702 if ac_fn_cxx_try_compile "$LINENO"; then :
8703 gold_cv_template_attribute=yes
8705 gold_cv_template_attribute=no
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
8710 $as_echo "$gold_cv_template_attribute" >&6; }
8711 if test "$gold_cv_template_attribute" = "yes"; then
8713 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
8718 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
8719 if ${gold_cv_stat_st_mtim+:} false; then :
8720 $as_echo_n "(cached) " >&6
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8725 #include <sys/stat.h>
8726 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
8736 if ac_fn_cxx_try_compile "$LINENO"; then :
8737 gold_cv_stat_st_mtim=yes
8739 gold_cv_stat_st_mtim=no
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
8744 $as_echo "$gold_cv_stat_st_mtim" >&6; }
8745 if test "$gold_cv_stat_st_mtim" = "yes"; then
8747 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
8752 ac_cpp='$CPP $CPPFLAGS'
8753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8758 for ac_header in locale.h
8760 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
8761 if test "x$ac_cv_header_locale_h" = xyes; then :
8762 cat >>confdefs.h <<_ACEOF
8763 #define HAVE_LOCALE_H 1
8770 for ac_func in setlocale
8772 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
8773 if test "x$ac_cv_func_setlocale" = xyes; then :
8774 cat >>confdefs.h <<_ACEOF
8775 #define HAVE_SETLOCALE 1
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8783 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8784 if ${am_cv_val_LC_MESSAGES+:} false; then :
8785 $as_echo_n "(cached) " >&6
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8798 if ac_fn_c_try_link "$LINENO"; then :
8799 am_cv_val_LC_MESSAGES=yes
8801 am_cv_val_LC_MESSAGES=no
8803 rm -f core conftest.err conftest.$ac_objext \
8804 conftest$ac_exeext conftest.$ac_ext
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8807 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8808 if test $am_cv_val_LC_MESSAGES = yes; then
8810 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
8817 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
8818 # Check whether --enable-maintainer-mode was given.
8819 if test "${enable_maintainer_mode+set}" = set; then :
8820 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
8822 USE_MAINTAINER_MODE=no
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
8826 $as_echo "$USE_MAINTAINER_MODE" >&6; }
8827 if test $USE_MAINTAINER_MODE = yes; then
8828 MAINTAINER_MODE_TRUE=
8829 MAINTAINER_MODE_FALSE='#'
8831 MAINTAINER_MODE_TRUE='#'
8832 MAINTAINER_MODE_FALSE=
8835 MAINT=$MAINTAINER_MODE_TRUE
8839 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
8841 cat >confcache <<\_ACEOF
8842 # This file is a shell script that caches the results of configure
8843 # tests run on this system so they can be shared between configure
8844 # scripts and configure runs, see configure's option --config-cache.
8845 # It is not useful on other systems. If it contains results you don't
8846 # want to keep, you may remove or edit it.
8848 # config.status only pays attention to the cache file if you give it
8849 # the --recheck option to rerun configure.
8851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8857 # The following way of writing the cache mishandles newlines in values,
8858 # but we know of no workaround that is simple, portable, and efficient.
8859 # So, we kill variables containing newlines.
8860 # Ultrix sh set writes to stderr and can't be redirected directly,
8861 # and sets the high bit in the cache file unless we assign to the vars.
8863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8864 eval ac_val=\$$ac_var
8868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8872 _ | IFS | as_nl) ;; #(
8873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8874 *) { eval $ac_var=; unset $ac_var;} ;;
8880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8881 *${as_nl}ac_space=\ *)
8882 # `set' does not quote correctly, so add quotes: double-quote
8883 # substitution turns \\\\ into \\, and sed turns \\ into \.
8886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8889 # `set' quotes correctly as required by POSIX, so do not add quotes.
8890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8904 if test -w "$cache_file"; then
8905 if test "x$cache_file" != "x/dev/null"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8907 $as_echo "$as_me: updating cache $cache_file" >&6;}
8908 if test ! -f "$cache_file" || test -h "$cache_file"; then
8909 cat confcache >"$cache_file"
8911 case $cache_file in #(
8913 mv -f confcache "$cache_file"$$ &&
8914 mv -f "$cache_file"$$ "$cache_file" ;; #(
8916 mv -f confcache "$cache_file" ;;
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8922 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8928 # Let make expand exec_prefix.
8929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8931 DEFS=-DHAVE_CONFIG_H
8935 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8936 # 1. Remove the extension, and $U if already installed.
8937 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8938 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8940 # will be set to the directory where LIBOBJS objects are built.
8941 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8942 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8946 LTLIBOBJS=$ac_ltlibobjs
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8950 $as_echo_n "checking that generated files are newer than configure... " >&6; }
8951 if test -n "$am_sleep_pid"; then
8952 # Hide warnings about reused PIDs.
8953 wait $am_sleep_pid 2>/dev/null
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8956 $as_echo "done" >&6; }
8957 if test -n "$EXEEXT"; then
8959 am__EXEEXT_FALSE='#'
8965 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8966 as_fn_error $? "conditional \"AMDEP\" was never defined.
8967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8969 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8970 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8973 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
8974 as_fn_error $? "conditional \"THREADS\" was never defined.
8975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8977 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
8978 as_fn_error $? "conditional \"PLUGINS\" was never defined.
8979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8981 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
8982 as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
8983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8985 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
8986 as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
8987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8989 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
8990 as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
8991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8993 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
8994 as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
8995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8997 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
8998 as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
8999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9001 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
9002 as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
9003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9005 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
9006 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
9007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9009 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
9010 as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
9011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9013 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
9014 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
9015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9017 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
9018 as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
9019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9021 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
9022 as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
9023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9025 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9026 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9029 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9030 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9034 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
9035 as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
9036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9038 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
9039 as_fn_error $? "conditional \"GCC\" was never defined.
9040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9042 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
9043 as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
9044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9046 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
9047 as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
9048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9050 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
9051 as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
9052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9054 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
9055 as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
9056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9058 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
9059 as_fn_error $? "conditional \"TLS\" was never defined.
9060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9062 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
9063 as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
9064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9066 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
9067 as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
9068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9070 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
9071 as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
9072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9074 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
9075 as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
9076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9078 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
9079 as_fn_error $? "conditional \"IFUNC\" was never defined.
9080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9082 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
9083 as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
9084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9086 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
9087 as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
9088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9090 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
9091 as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
9092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9094 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9095 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9099 : "${CONFIG_STATUS=./config.status}"
9101 ac_clean_files_save=$ac_clean_files
9102 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9104 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9106 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9108 # Generated by $as_me.
9109 # Run this file to recreate the current configuration.
9110 # Compiler output produced by configure, useful for debugging
9111 # configure, is in config.log if it exists.
9117 SHELL=\${CONFIG_SHELL-$SHELL}
9120 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9121 ## -------------------- ##
9122 ## M4sh Initialization. ##
9123 ## -------------------- ##
9125 # Be more Bourne compatible
9126 DUALCASE=1; export DUALCASE # for MKS sh
9127 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9130 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9131 # is contrary to our usage. Disable this feature.
9132 alias -g '${1+"$@"}'='"$@"'
9133 setopt NO_GLOB_SUBST
9135 case `(set -o) 2>/dev/null` in #(
9147 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9148 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9149 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9150 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9151 # Prefer a ksh shell builtin over an external printf program on Solaris,
9152 # but without wasting forks for bash or zsh.
9153 if test -z "$BASH_VERSION$ZSH_VERSION" \
9154 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9155 as_echo='print -r --'
9156 as_echo_n='print -rn --'
9157 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9158 as_echo='printf %s\n'
9159 as_echo_n='printf %s'
9161 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9162 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9163 as_echo_n='/usr/ucb/echo -n'
9165 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9166 as_echo_n_body='eval
9170 expr "X$arg" : "X\\(.*\\)$as_nl";
9171 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9173 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9175 export as_echo_n_body
9176 as_echo_n='sh -c $as_echo_n_body as_echo'
9179 as_echo='sh -c $as_echo_body as_echo'
9182 # The user is always right.
9183 if test "${PATH_SEPARATOR+set}" != set; then
9185 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9186 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9193 # We need space, tab and new line, in precisely that order. Quoting is
9194 # there to prevent editors from complaining about space-tab.
9195 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9196 # splitting by setting IFS to empty value.)
9199 # Find who we are. Look in the path if we contain no directory separator.
9202 *[\\/]* ) as_myself=$0 ;;
9203 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 test -z "$as_dir" && as_dir=.
9208 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9214 # We did not find ourselves, most probably we were run as `sh COMMAND'
9215 # in which case we are not to be found in the path.
9216 if test "x$as_myself" = x; then
9219 if test ! -f "$as_myself"; then
9220 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9224 # Unset variables that we do not need and which cause bugs (e.g. in
9225 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9226 # suppresses any "Segmentation fault" message there. '((' could
9227 # trigger a bug in pdksh 5.2.14.
9228 for as_var in BASH_ENV ENV MAIL MAILPATH
9229 do eval test x\${$as_var+set} = xset \
9230 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9243 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9246 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9247 # ----------------------------------------
9248 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9249 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9250 # script with STATUS, using 1 if that was 0.
9253 as_status=$1; test $as_status -eq 0 && as_status=1
9255 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9256 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9258 $as_echo "$as_me: error: $2" >&2
9259 as_fn_exit $as_status
9263 # as_fn_set_status STATUS
9264 # -----------------------
9265 # Set $? to STATUS, without forking.
9269 } # as_fn_set_status
9273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9283 # Portably unset VAR.
9286 { eval $1=; unset $1;}
9288 as_unset=as_fn_unset
9289 # as_fn_append VAR VALUE
9290 # ----------------------
9291 # Append the text in VALUE to the end of the definition contained in VAR. Take
9292 # advantage of any shell optimizations that allow amortized linear growth over
9293 # repeated appends, instead of the typical quadratic growth present in naive
9295 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9296 eval 'as_fn_append ()
9307 # as_fn_arith ARG...
9308 # ------------------
9309 # Perform arithmetic evaluation on the ARGs, and store the result in the
9310 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9311 # must be portable across $(()) and expr.
9312 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9313 eval 'as_fn_arith ()
9320 as_val=`expr "$@" || test $? -eq 1`
9325 if expr a : '\(a\)' >/dev/null 2>&1 &&
9326 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9332 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9333 as_basename=basename
9338 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9344 as_me=`$as_basename -- "$0" ||
9345 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9346 X"$0" : 'X\(//\)$' \| \
9347 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9349 sed '/^.*\/\([^/][^/]*\)\/*$/{
9363 # Avoid depending upon Character Ranges.
9364 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9365 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9366 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9367 as_cr_digits='0123456789'
9368 as_cr_alnum=$as_cr_Letters$as_cr_digits
9370 ECHO_C= ECHO_N= ECHO_T=
9371 case `echo -n x` in #(((((
9373 case `echo 'xy\c'` in
9374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9376 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9383 rm -f conf$$ conf$$.exe conf$$.file
9384 if test -d conf$$.dir; then
9385 rm -f conf$$.dir/conf$$.file
9388 mkdir conf$$.dir 2>/dev/null
9390 if (echo >conf$$.file) 2>/dev/null; then
9391 if ln -s conf$$.file conf$$ 2>/dev/null; then
9393 # ... but there are two gotchas:
9394 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9395 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9396 # In both cases, we have to default to `cp -pR'.
9397 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9399 elif ln conf$$.file conf$$ 2>/dev/null; then
9407 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9408 rmdir conf$$.dir 2>/dev/null
9413 # Create "$as_dir" as a directory, including parents if necessary.
9418 -*) as_dir=./$as_dir;;
9420 test -d "$as_dir" || eval $as_mkdir_p || {
9424 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9425 *) as_qdir=$as_dir;;
9427 as_dirs="'$as_qdir' $as_dirs"
9428 as_dir=`$as_dirname -- "$as_dir" ||
9429 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9430 X"$as_dir" : 'X\(//\)[^/]' \| \
9431 X"$as_dir" : 'X\(//\)$' \| \
9432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9433 $as_echo X"$as_dir" |
9434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9451 test -d "$as_dir" && break
9453 test -z "$as_dirs" || eval "mkdir $as_dirs"
9454 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9458 if mkdir -p . 2>/dev/null; then
9459 as_mkdir_p='mkdir -p "$as_dir"'
9461 test -d ./-p && rmdir ./-p
9466 # as_fn_executable_p FILE
9467 # -----------------------
9468 # Test if FILE is an executable regular file.
9469 as_fn_executable_p ()
9471 test -f "$1" && test -x "$1"
9472 } # as_fn_executable_p
9474 as_executable_p=as_fn_executable_p
9476 # Sed expression to map a string onto a valid CPP name.
9477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9479 # Sed expression to map a string onto a valid variable name.
9480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9484 ## ----------------------------------- ##
9485 ## Main body of $CONFIG_STATUS script. ##
9486 ## ----------------------------------- ##
9488 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9491 # Save the log message, to keep $0 and so on meaningful, and to
9492 # report actual input values of CONFIG_FILES etc. instead of their
9493 # values after options handling.
9495 This file was extended by gold $as_me 0.1, which was
9496 generated by GNU Autoconf 2.69. Invocation command line was
9498 CONFIG_FILES = $CONFIG_FILES
9499 CONFIG_HEADERS = $CONFIG_HEADERS
9500 CONFIG_LINKS = $CONFIG_LINKS
9501 CONFIG_COMMANDS = $CONFIG_COMMANDS
9504 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9509 case $ac_config_files in *"
9510 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9513 case $ac_config_headers in *"
9514 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9519 # Files that config.status was made for.
9520 config_files="$ac_config_files"
9521 config_headers="$ac_config_headers"
9522 config_commands="$ac_config_commands"
9526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9528 \`$as_me' instantiates files and other configuration actions
9529 from templates according to the current configuration. Unless the files
9530 and actions are specified as TAGs, all are instantiated by default.
9532 Usage: $0 [OPTION]... [TAG]...
9534 -h, --help print this help, then exit
9535 -V, --version print version number and configuration settings, then exit
9536 --config print configuration, then exit
9537 -q, --quiet, --silent
9538 do not print progress messages
9539 -d, --debug don't remove temporary files
9540 --recheck update $as_me by reconfiguring in the same conditions
9541 --file=FILE[:TEMPLATE]
9542 instantiate the configuration file FILE
9543 --header=FILE[:TEMPLATE]
9544 instantiate the configuration header FILE
9546 Configuration files:
9549 Configuration headers:
9552 Configuration commands:
9555 Report bugs to the package provider."
9558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9559 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9561 gold config.status 0.1
9562 configured by $0, generated by GNU Autoconf 2.69,
9563 with options \\"\$ac_cs_config\\"
9565 Copyright (C) 2012 Free Software Foundation, Inc.
9566 This config.status script is free software; the Free Software Foundation
9567 gives unlimited permission to copy, distribute and modify it."
9574 test -n "\$AWK" || AWK=awk
9577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9578 # The default lists apply if the user does not specify any file.
9584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9585 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9589 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9601 # Handling of the options.
9602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9604 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9605 $as_echo "$ac_cs_version"; exit ;;
9606 --config | --confi | --conf | --con | --co | --c )
9607 $as_echo "$ac_cs_config"; exit ;;
9608 --debug | --debu | --deb | --de | --d | -d )
9610 --file | --fil | --fi | --f )
9613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9614 '') as_fn_error $? "missing file argument" ;;
9616 as_fn_append CONFIG_FILES " '$ac_optarg'"
9617 ac_need_defaults=false;;
9618 --header | --heade | --head | --hea )
9621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9623 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9624 ac_need_defaults=false;;
9626 # Conflict between --help and --header
9627 as_fn_error $? "ambiguous option: \`$1'
9628 Try \`$0 --help' for more information.";;
9629 --help | --hel | -h )
9630 $as_echo "$ac_cs_usage"; exit ;;
9631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9636 -*) as_fn_error $? "unrecognized option: \`$1'
9637 Try \`$0 --help' for more information." ;;
9639 *) as_fn_append ac_config_targets " $1"
9640 ac_need_defaults=false ;;
9646 ac_configure_extra_args=
9648 if $ac_cs_silent; then
9650 ac_configure_extra_args="$ac_configure_extra_args --silent"
9654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9655 if \$ac_cs_recheck; then
9656 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9658 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9659 CONFIG_SHELL='$SHELL'
9665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9669 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9670 ## Running $as_me. ##
9676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9680 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9681 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9682 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9684 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9685 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9686 LINGUAS="${LINGUAS-%UNSET%}"
9691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9693 # Handling of arguments.
9694 for ac_config_target in $ac_config_targets
9696 case $ac_config_target in
9697 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9698 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9699 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9700 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9701 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
9702 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9704 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9709 # If the user did not use the arguments to specify the items to instantiate,
9710 # then the envvar interface is used. Set only those that are not.
9711 # We use the long form for the default assignment because of an extremely
9712 # bizarre bug on SunOS 4.1.3.
9713 if $ac_need_defaults; then
9714 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9715 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9716 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9719 # Have a temporary directory for convenience. Make it in the build tree
9720 # simply because there is no reason against having it here, and in addition,
9721 # creating and moving files from /tmp can sometimes cause problems.
9722 # Hook for its removal unless debugging.
9723 # Note that there is a small window in which the directory will not be cleaned:
9724 # after its creation but before its name has been assigned to `$tmp'.
9728 trap 'exit_status=$?
9730 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9732 trap 'as_fn_exit 1' 1 2 13 15
9734 # Create a (secure) tmp directory for tmp files.
9737 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9741 tmp=./conf$$-$RANDOM
9742 (umask 077 && mkdir "$tmp")
9743 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9746 # Set up the scripts for CONFIG_FILES section.
9747 # No need to generate them if there are no CONFIG_FILES.
9748 # This happens for instance with `./config.status config.h'.
9749 if test -n "$CONFIG_FILES"; then
9752 ac_cr=`echo X | tr X '\015'`
9753 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9754 # But we know of no other shell where ac_cr would be empty at this
9755 # point, so we can use a bashism as a fallback.
9756 if test "x$ac_cr" = x; then
9757 eval ac_cr=\$\'\\r\'
9759 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9760 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9766 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9771 echo "cat >conf$$subs.awk <<_ACEOF" &&
9772 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9776 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9778 for ac_last_try in false false false false false :; do
9779 . ./conf$$subs.sh ||
9780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9782 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9783 if test $ac_delim_n = $ac_delim_num; then
9785 elif $ac_last_try; then
9786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9794 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9798 s/^/S["/; s/!.*/"]=/
9808 s/\(.\{148\}\)..*/\1/
9810 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9822 s/\(.\{148\}\)..*/\1/
9824 s/["\\]/\\&/g; s/^/"/; s/$/"/
9828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9833 ' <conf$$subs.awk | sed '
9838 ' >>$CONFIG_STATUS || ac_write_fail=1
9839 rm -f conf$$subs.awk
9840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9842 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9843 for (key in S) S_is_set[key] = 1
9849 nfields = split(line, field, "@")
9851 len = length(field[1])
9852 for (i = 2; i < nfields; i++) {
9854 keylen = length(key)
9855 if (S_is_set[key]) {
9857 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9858 len += length(value) + length(field[++i])
9869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9870 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9871 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9874 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9875 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9878 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9879 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9880 # trailing colons and then remove the whole line if VPATH becomes empty
9881 # (actually we leave an empty line to preserve line numbers).
9882 if test "x$srcdir" = x.; then
9883 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9902 fi # test -n "$CONFIG_FILES"
9904 # Set up the scripts for CONFIG_HEADERS section.
9905 # No need to generate them if there are no CONFIG_HEADERS.
9906 # This happens for instance with `./config.status Makefile'.
9907 if test -n "$CONFIG_HEADERS"; then
9908 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9912 # Transform confdefs.h into an awk script `defines.awk', embedded as
9913 # here-document in config.status, that substitutes the proper values into
9914 # config.h.in to produce config.h.
9916 # Create a delimiter string that does not exist in confdefs.h, to ease
9917 # handling of long lines.
9919 for ac_last_try in false false :; do
9920 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9921 if test -z "$ac_tt"; then
9923 elif $ac_last_try; then
9924 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9930 # For the awk script, D is an array of macro values keyed by name,
9931 # likewise P contains macro parameters if any. Preserve backslash
9932 # newline sequences.
9934 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9936 s/.\{148\}/&'"$ac_delim"'/g
9939 s/^[ ]*#[ ]*define[ ][ ]*/ /
9946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9948 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9953 D["\1"]=" \3\\\\\\n"\\/p
9955 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9960 s/.\{148\}/&'"$ac_delim"'/g
9965 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9968 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9970 ' <confdefs.h | sed '
9971 s/'"$ac_delim"'/"\\\
9972 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9975 for (key in D) D_is_set[key] = 1
9978 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9980 split(line, arg, " ")
9981 if (arg[1] == "#") {
9985 defundef = substr(arg[1], 2)
9988 split(mac1, mac2, "(") #)
9990 prefix = substr(line, 1, index(line, defundef) - 1)
9991 if (D_is_set[macro]) {
9992 # Preserve the white space surrounding the "#".
9993 print prefix "define", macro P[macro] D[macro]
9996 # Replace #undef with comments. This is necessary, for example,
9997 # in the case of _POSIX_SOURCE, which is predefined and required
9998 # on some systems where configure will not decide to define it.
9999 if (defundef == "undef") {
10000 print "/*", prefix defundef, macro, "*/"
10008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10009 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10010 fi # test -n "$CONFIG_HEADERS"
10013 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10018 :[FHLC]) ac_mode=$ac_tag; continue;;
10020 case $ac_mode$ac_tag in
10022 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10023 :[FH]-) ac_tag=-:-;;
10024 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10041 -) ac_f="$ac_tmp/stdin";;
10042 *) # Look for the file first in the build tree, then in the source tree
10043 # (if the path is not absolute). The absolute path cannot be DOS-style,
10044 # because $ac_f cannot contain `:'.
10048 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10050 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10052 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10053 as_fn_append ac_file_inputs " '$ac_f'"
10056 # Let's still pretend it is `configure' which instantiates (i.e., don't
10057 # use $as_me), people would be surprised to read:
10058 # /* config.h. Generated by config.status. */
10059 configure_input='Generated from '`
10060 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10062 if test x"$ac_file" != x-; then
10063 configure_input="$ac_file. $configure_input"
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10065 $as_echo "$as_me: creating $ac_file" >&6;}
10067 # Neutralize special characters interpreted by sed in replacement strings.
10068 case $configure_input in #(
10069 *\&* | *\|* | *\\* )
10070 ac_sed_conf_input=`$as_echo "$configure_input" |
10071 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10072 *) ac_sed_conf_input=$configure_input;;
10076 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10082 ac_dir=`$as_dirname -- "$ac_file" ||
10083 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10084 X"$ac_file" : 'X\(//\)[^/]' \| \
10085 X"$ac_file" : 'X\(//\)$' \| \
10086 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10087 $as_echo X"$ac_file" |
10088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10092 /^X\(\/\/\)[^/].*/{
10105 as_dir="$ac_dir"; as_fn_mkdir_p
10109 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10111 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10112 # A ".." for each directory in $ac_dir_suffix.
10113 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10114 case $ac_top_builddir_sub in
10115 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10116 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10119 ac_abs_top_builddir=$ac_pwd
10120 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10121 # for backward compatibility:
10122 ac_top_builddir=$ac_top_build_prefix
10125 .) # We are building in place.
10127 ac_top_srcdir=$ac_top_builddir_sub
10128 ac_abs_top_srcdir=$ac_pwd ;;
10129 [\\/]* | ?:[\\/]* ) # Absolute name.
10130 ac_srcdir=$srcdir$ac_dir_suffix;
10131 ac_top_srcdir=$srcdir
10132 ac_abs_top_srcdir=$srcdir ;;
10133 *) # Relative name.
10134 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10135 ac_top_srcdir=$ac_top_build_prefix$srcdir
10136 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10138 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10149 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10151 ac_MKDIR_P=$MKDIR_P
10153 [\\/$]* | ?:[\\/]* ) ;;
10154 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10159 # If the template does not know about datarootdir, expand it.
10160 # FIXME: This hack should be removed a few years after 2.60.
10161 ac_datarootdir_hack=; ac_datarootdir_seen=
10172 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10173 *datarootdir*) ac_datarootdir_seen=yes;;
10174 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10176 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10179 ac_datarootdir_hack='
10180 s&@datadir@&$datadir&g
10181 s&@docdir@&$docdir&g
10182 s&@infodir@&$infodir&g
10183 s&@localedir@&$localedir&g
10184 s&@mandir@&$mandir&g
10185 s&\\\${datarootdir}&$datarootdir&g' ;;
10189 # Neutralize VPATH when `$srcdir' = `.'.
10190 # Shell code in configure.ac might set extrasub.
10191 # FIXME: do we really want to maintain this feature?
10192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10193 ac_sed_extra="$ac_vpsub
10196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10199 s|@configure_input@|$ac_sed_conf_input|;t t
10200 s&@top_builddir@&$ac_top_builddir_sub&;t t
10201 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10202 s&@srcdir@&$ac_srcdir&;t t
10203 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10204 s&@top_srcdir@&$ac_top_srcdir&;t t
10205 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10206 s&@builddir@&$ac_builddir&;t t
10207 s&@abs_builddir@&$ac_abs_builddir&;t t
10208 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10209 s&@INSTALL@&$ac_INSTALL&;t t
10210 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10211 $ac_datarootdir_hack
10213 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10214 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10216 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10217 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10218 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10219 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10221 which seems to be undefined. Please make sure it is defined" >&5
10222 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10223 which seems to be undefined. Please make sure it is defined" >&2;}
10225 rm -f "$ac_tmp/stdin"
10227 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10228 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10236 if test x"$ac_file" != x-; then
10238 $as_echo "/* $configure_input */" \
10239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10240 } >"$ac_tmp/config.h" \
10241 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10242 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10244 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10247 mv "$ac_tmp/config.h" "$ac_file" \
10248 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10251 $as_echo "/* $configure_input */" \
10252 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10253 || as_fn_error $? "could not create -" "$LINENO" 5
10255 # Compute "$ac_file"'s index in $config_headers.
10258 for _am_header in $config_headers :; do
10259 case $_am_header in
10260 $_am_arg | $_am_arg:* )
10263 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10266 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10267 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10268 X"$_am_arg" : 'X\(//\)[^/]' \| \
10269 X"$_am_arg" : 'X\(//\)$' \| \
10270 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10271 $as_echo X"$_am_arg" |
10272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10276 /^X\(\/\/\)[^/].*/{
10288 s/.*/./; q'`/stamp-h$_am_stamp_count
10291 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10292 $as_echo "$as_me: executing $ac_file commands" >&6;}
10297 case $ac_file$ac_mode in
10298 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10299 # Older Autoconf quotes --file arguments for eval, but not when files
10300 # are listed without --file. Let's play safe and only enable the eval
10301 # if we detect the quoting.
10302 case $CONFIG_FILES in
10303 *\'*) eval set x "$CONFIG_FILES" ;;
10304 *) set x $CONFIG_FILES ;;
10309 # Strip MF so we end up with the name of the file.
10310 mf=`echo "$mf" | sed -e 's/:.*$//'`
10311 # Check whether this is an Automake generated Makefile or not.
10312 # We used to match only the files named 'Makefile.in', but
10313 # some people rename them; so instead we look at the file content.
10314 # Grep'ing the first line is not enough: some people post-process
10315 # each Makefile.in and add a new line on top of each file to say so.
10316 # Grep'ing the whole file is not good either: AIX grep has a line
10317 # limit of 2048, but all sed's we know have understand at least 4000.
10318 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10319 dirpart=`$as_dirname -- "$mf" ||
10320 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10321 X"$mf" : 'X\(//\)[^/]' \| \
10322 X"$mf" : 'X\(//\)$' \| \
10323 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10329 /^X\(\/\/\)[^/].*/{
10345 # Extract the definition of DEPDIR, am__include, and am__quote
10346 # from the Makefile without running 'make'.
10347 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10348 test -z "$DEPDIR" && continue
10349 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10350 test -z "$am__include" && continue
10351 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10352 # Find all dependency output files, they are included files with
10353 # $(DEPDIR) in their names. We invoke sed twice because it is the
10354 # simplest approach to changing $(DEPDIR) to its actual value in the
10356 for file in `sed -n "
10357 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10358 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10359 # Make sure the directory exists.
10360 test -f "$dirpart/$file" && continue
10361 fdir=`$as_dirname -- "$file" ||
10362 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10363 X"$file" : 'X\(//\)[^/]' \| \
10364 X"$file" : 'X\(//\)$' \| \
10365 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10366 $as_echo X"$file" |
10367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10371 /^X\(\/\/\)[^/].*/{
10384 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10385 # echo "creating $dirpart/$file"
10386 echo '# dummy' > "$dirpart/$file"
10392 for ac_file in $CONFIG_FILES; do
10393 # Support "outfile[:infile[:infile...]]"
10395 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10397 # PO directories have a Makefile.in generated from Makefile.in.in.
10398 case "$ac_file" in */Makefile.in)
10399 # Adjust a relative srcdir.
10400 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10401 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
10402 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10403 # In autoconf-2.13 it is called $ac_given_srcdir.
10404 # In autoconf-2.50 it is called $srcdir.
10405 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10406 case "$ac_given_srcdir" in
10407 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10408 /*) top_srcdir="$ac_given_srcdir" ;;
10409 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10411 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10412 rm -f "$ac_dir/POTFILES"
10413 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10414 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10415 POMAKEFILEDEPS="POTFILES.in"
10416 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10417 # on $ac_dir but don't depend on user-specified configuration
10419 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10420 # The LINGUAS file contains the set of available languages.
10421 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10422 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
10424 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10425 # Hide the ALL_LINGUAS assigment from automake.
10426 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10427 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10429 # The set of available languages was given in configure.ac.
10430 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10432 case "$ac_given_srcdir" in
10434 *) srcdirpre='$(srcdir)/' ;;
10440 for lang in $ALL_LINGUAS; do
10441 POFILES="$POFILES $srcdirpre$lang.po"
10442 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10443 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10444 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10446 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10447 # environment variable.
10449 if test -n "$ALL_LINGUAS"; then
10450 for presentlang in $ALL_LINGUAS; do
10452 if test "%UNSET%" != "$LINGUAS"; then
10453 desiredlanguages="$LINGUAS"
10455 desiredlanguages="$ALL_LINGUAS"
10457 for desiredlang in $desiredlanguages; do
10458 # Use the presentlang catalog if desiredlang is
10459 # a. equal to presentlang, or
10460 # b. a variant of presentlang (because in this case,
10461 # presentlang can be used as a fallback for messages
10462 # which are not translated in the desiredlang catalog).
10463 case "$desiredlang" in
10464 "$presentlang"*) useit=yes;;
10467 if test $useit = yes; then
10468 INST_LINGUAS="$INST_LINGUAS $presentlang"
10473 if test -n "$INST_LINGUAS"; then
10474 for lang in $INST_LINGUAS; do
10475 CATALOGS="$CATALOGS $lang.gmo"
10478 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10479 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"
10480 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10481 if test -f "$f"; then
10483 *.orig | *.bak | *~) ;;
10484 *) cat "$f" >> "$ac_dir/Makefile" ;;
10499 ac_clean_files=$ac_clean_files_save
10501 test $ac_write_fail = 0 ||
10502 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10505 # configure is writing to config.log, and then calls config.status.
10506 # config.status does its own redirection, appending to config.log.
10507 # Unfortunately, on DOS this fails, as config.log is still kept open
10508 # by configure, so config.status won't be able to write to it; its
10509 # output is simply discarded. So we exec the FD to /dev/null,
10510 # effectively closing config.log, so it can be properly (re)opened and
10511 # appended to by config.status. When coming back to configure, we
10512 # need to make the FD available again.
10513 if test "$no_create" != yes; then
10515 ac_config_status_args=
10516 test "$silent" = yes &&
10517 ac_config_status_args="$ac_config_status_args --quiet"
10519 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10521 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10522 # would make configure fail if this is the last instruction.
10523 $ac_cs_success || as_fn_exit 1
10525 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10527 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}