2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for GNU C Library (see version.h).
6 # Report bugs to <http://sourceware.org/bugzilla/>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 test -z "$as_dir" && as_dir=.
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 # Preserve -v and -x to the replacement shell.
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 *v*x* | *x*v* ) as_opts=-vx ;;
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: http://sourceware.org/bugzilla/ about your system,
244 $0: including any error possibly output before this
245 $0: message. Then install a modern shell, or manually run
246 $0: the script under such a shell if you do have one."
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
378 as_status=$1; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 test -n "$DJDIR" || exec 7<&0 </dev/null
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
552 ac_default_prefix=/usr/local
554 ac_config_libobj_dir=.
561 # Identity of this package.
562 PACKAGE_NAME='GNU C Library'
563 PACKAGE_TARNAME='glibc'
564 PACKAGE_VERSION='(see version.h)'
565 PACKAGE_STRING='GNU C Library (see version.h)'
566 PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/'
567 PACKAGE_URL='http://www.gnu.org/software/glibc/'
569 ac_unique_file="include/features.h"
570 enable_option_checking=no
571 # Factoring default headers for most tests.
572 ac_includes_default="\
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
584 # ifdef HAVE_STDLIB_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
607 ac_subst_vars='LTLIBOBJS
626 libc_cv_cc_novzeroupper
629 libc_cv_cpp_asm_debuginfo
630 libc_cv_forced_unwind
636 libc_cv_gcc_unwind_find_fde
644 libc_cv_cc_submachine
646 libc_cv_have_initfini
650 libc_cv_output_format
657 libc_cv_libgcc_s_suffix
659 libc_cv_cc_with_libunwind
669 libc_cv_gcc_static_libgcc
752 program_transform_name
765 enable_option_checking
784 enable_stackguard_randomization
797 ac_precious_vars='build_alias
812 # Initialize some variables set by options.
814 ac_init_version=false
815 ac_unrecognized_opts=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
826 program_transform_name=s,x,x,
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 # Accept the important Cygnus configure options, so we can diagnose typos.
879 case $ac_dashdash$ac_option in
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
901 cache_file=config.cache ;;
903 -datadir | --datadir | --datadi | --datad)
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
929 eval enable_$ac_useropt=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
955 eval enable_$ac_useropt=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
970 -help | --help | --hel | --he | -h)
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1119 -site=* | --site=* | --sit=*)
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1159 eval with_$ac_useropt=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1175 eval with_$ac_useropt=no ;;
1178 # Obsolete; use --with-x.
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1195 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1246 # Be sure to have absolute directory names.
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1259 target=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1266 If a cross compiler is detected then cross compile mode will be used" >&2
1267 elif test "x$build_alias" != "x$host_alias"; then
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275 test "$silent" = yes && exec 6>/dev/null
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1318 ac_srcdir_defaulted=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 # Report the --help message.
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1352 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1359 Defaults for the options are specified in brackets.
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1383 For better control, use the options below.
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 if test -n "$ac_init_help"; then
1416 case $ac_init_help in
1417 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1422 --disable-option-checking ignore unrecognized --enable/--with options
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --disable-sanity-checks really do not use threads (should not be used except
1426 in special situations) [default=yes]
1427 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1429 --enable-shared build shared library [default=yes if GNU ld & ELF]
1430 --enable-profile build profiled library [default=no]
1431 --enable-omitfp build undebuggable optimized library [default=no]
1432 --enable-bounded build with runtime bounds checking [default=no]
1433 --disable-versioning do not include versioning information in the library
1434 objects [default=yes if supported]
1435 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1436 [default=glibc default]
1437 --enable-stackguard-randomization
1438 initialize __stack_chk_guard canary with a random
1439 number at program start
1440 --enable-add-ons[=DIRS...]
1441 configure and build add-ons in DIR1,DIR2,... search
1442 for add-ons if no parameter given
1443 --disable-hidden-plt do not hide internal function calls to avoid PLT
1444 --enable-bind-now disable lazy relocations in DSOs
1445 --enable-static-nss build static NSS modules [default=no]
1446 --disable-force-install don't force installation of files from this package,
1447 even if they are older than the installed files
1448 --enable-kernel=VERSION compile for compatibility with kernel not older than
1450 --enable-all-warnings enable all useful warnings gcc can issue
1451 --enable-multi-arch enable single DSO with optimizations for multiple
1453 --enable-nss-crypt enable libcrypt to use nss
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-gd=DIR find libgd include dir and library with prefix DIR
1459 --with-gd-include=DIR find libgd include files in DIR
1460 --with-gd-lib=DIR find libgd library files in DIR
1461 --with-fp if using floating-point hardware [default=yes]
1462 --with-binutils=PATH specify location of binutils (as and ld)
1463 --with-elf if using the ELF object format
1464 --with-selinux if building with SELinux support
1465 --with-xcoff if using the XCOFF object format
1466 --with-headers=PATH location of system headers to use (for example
1467 /usr/src/linux/include) [default=compiler default]
1468 --with-default-link do not use explicit linker scripts
1469 --with-tls enable support for TLS
1470 --with-cpu=CPU select code for CPU variant
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1481 CXX C++ compiler command
1482 CXXFLAGS C++ compiler flags
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1487 Report bugs to <http://sourceware.org/bugzilla/>.
1488 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
1489 General help using GNU software: <http://www.gnu.org/gethelp/>.
1494 if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497 test -d "$ac_dir" ||
1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 ac_abs_top_builddir=$ac_pwd
1514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515 # for backward compatibility:
1516 ac_top_builddir=$ac_top_build_prefix
1519 .) # We are building in place.
1521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
1524 ac_srcdir=$srcdir$ac_dir_suffix;
1525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1552 GNU C Library configure (see version.h)
1553 generated by GNU Autoconf 2.68
1555 Copyright (C) 2010 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext
1573 if { { ac_try="$ac_compile"
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext; then :
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1602 } # ac_fn_c_try_compile
1604 # ac_fn_c_try_cpp LINENO
1605 # ----------------------
1606 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if { { ac_try="$ac_cpp conftest.$ac_ext"
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } > conftest.i && {
1626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1641 # ac_fn_cxx_try_compile LINENO
1642 # ----------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_cxx_try_compile ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext
1648 if { { ac_try="$ac_compile"
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_compile") 2>conftest.err
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_cxx_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest.$ac_objext; then :
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_cxx_try_compile
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest$ac_exeext
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_c_try_link
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1759 ac_retval=$ac_status
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1767 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1768 # --------------------------------------------
1769 # Tries to find the compile-time value of EXPR in a program that includes
1770 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1772 ac_fn_c_compute_int ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if test "$cross_compiling" = yes; then
1776 # Depending upon the size, compute the lo and hi bounds.
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1783 static int test_array [1 - 2 * !(($2) >= 0)];
1790 if ac_fn_c_try_compile "$LINENO"; then :
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1799 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807 ac_hi=$ac_mid; break
1809 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1810 if test $ac_lo -le $ac_mid; then
1814 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1825 static int test_array [1 - 2 * !(($2) < 0)];
1832 if ac_fn_c_try_compile "$LINENO"; then :
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1841 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 ac_lo=$ac_mid; break
1851 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1852 if test $ac_mid -le $ac_hi; then
1856 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 # Binary search between lo and hi bounds.
1867 while test "x$ac_lo" != "x$ac_hi"; do
1868 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1875 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1882 if ac_fn_c_try_compile "$LINENO"; then :
1885 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1897 static long int longval () { return $2; }
1898 static unsigned long int ulongval () { return $2; }
1905 FILE *f = fopen ("conftest.val", "w");
1910 long int i = longval ();
1913 fprintf (f, "%ld", i);
1917 unsigned long int i = ulongval ();
1920 fprintf (f, "%lu", i);
1922 /* Do not output a trailing newline, as this causes \r\n confusion
1923 on some platforms. */
1924 return ferror (f) || fclose (f) != 0;
1930 if ac_fn_c_try_run "$LINENO"; then :
1931 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1936 conftest.$ac_objext conftest.beam conftest.$ac_ext
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1943 } # ac_fn_c_compute_int
1945 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1946 # -------------------------------------------------------
1947 # Tests whether HEADER exists and can be compiled using the include files in
1948 # INCLUDES, setting the cache variable VAR accordingly.
1949 ac_fn_c_check_header_compile ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1962 if ac_fn_c_try_compile "$LINENO"; then :
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 } # ac_fn_c_check_header_compile
1975 cat >config.log <<_ACEOF
1976 This file contains any messages produced by compilers while
1977 running configure, to aid debugging if configure makes a mistake.
1979 It was created by GNU C Library $as_me (see version.h), which was
1980 generated by GNU Autoconf 2.68. Invocation command line was
1992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 $as_echo "PATH: $as_dir"
2032 # Keep a trace of the command line.
2033 # Strip out --no-create and --no-recursion so they do not pile up.
2034 # Strip out --silent because we don't want to record it for future runs.
2035 # Also quote any args containing shell meta-characters.
2036 # Make two passes to allow for proper duplicate-argument suppression.
2040 ac_must_keep_next=false
2046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2048 | -silent | --silent | --silen | --sile | --sil)
2051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2056 as_fn_append ac_configure_args1 " '$ac_arg'"
2057 if test $ac_must_keep_next = true; then
2058 ac_must_keep_next=false # Got value, back to normal.
2061 *=* | --config-cache | -C | -disable-* | --disable-* \
2062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2064 | -with-* | --with-* | -without-* | --without-* | --x)
2065 case "$ac_configure_args0 " in
2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2069 -* ) ac_must_keep_next=true ;;
2072 as_fn_append ac_configure_args " '$ac_arg'"
2077 { ac_configure_args0=; unset ac_configure_args0;}
2078 { ac_configure_args1=; unset ac_configure_args1;}
2080 # When interrupted or exit'd, cleanup temporary files, and complete
2081 # config.log. We remove comments because anyway the quotes in there
2082 # would cause problems or look ugly.
2083 # WARNING: Use '\'' to represent an apostrophe within the trap.
2084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2085 trap 'exit_status=$?
2086 # Save into config.log some information that might help in debugging.
2090 $as_echo "## ---------------- ##
2091 ## Cache variables. ##
2092 ## ---------------- ##"
2094 # The following way of writing the cache mishandles newlines in values,
2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2097 eval ac_val=\$$ac_var
2101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2105 _ | IFS | as_nl) ;; #(
2106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2107 *) { eval $ac_var=; unset $ac_var;} ;;
2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2113 *${as_nl}ac_space=\ *)
2115 "s/'\''/'\''\\\\'\'''\''/g;
2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126 $as_echo "## ----------------- ##
2127 ## Output variables. ##
2128 ## ----------------- ##"
2130 for ac_var in $ac_subst_vars
2132 eval ac_val=\$$ac_var
2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 $as_echo "$ac_var='\''$ac_val'\''"
2140 if test -n "$ac_subst_files"; then
2141 $as_echo "## ------------------- ##
2142 ## File substitutions. ##
2143 ## ------------------- ##"
2145 for ac_var in $ac_subst_files
2147 eval ac_val=\$$ac_var
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 $as_echo "$ac_var='\''$ac_val'\''"
2156 if test -s confdefs.h; then
2157 $as_echo "## ----------- ##
2164 test "$ac_signal" != 0 &&
2165 $as_echo "$as_me: caught signal $ac_signal"
2166 $as_echo "$as_me: exit $exit_status"
2168 rm -f core *.core core.conftest.* &&
2169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2172 for ac_signal in 1 2 13 15; do
2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2178 rm -f -r conftest* confdefs.h
2180 $as_echo "/* confdefs.h */" > confdefs.h
2182 # Predefined preprocessor variables.
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_NAME "$PACKAGE_NAME"
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_STRING "$PACKAGE_STRING"
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_URL "$PACKAGE_URL"
2209 # Let the site file select an alternate cache file if it wants to.
2210 # Prefer an explicitly selected file to automatically selected ones.
2213 if test -n "$CONFIG_SITE"; then
2214 # We do not want a PATH search for config.site.
2215 case $CONFIG_SITE in #((
2216 -*) ac_site_file1=./$CONFIG_SITE;;
2217 */*) ac_site_file1=$CONFIG_SITE;;
2218 *) ac_site_file1=./$CONFIG_SITE;;
2220 elif test "x$prefix" != xNONE; then
2221 ac_site_file1=$prefix/share/config.site
2222 ac_site_file2=$prefix/etc/config.site
2224 ac_site_file1=$ac_default_prefix/share/config.site
2225 ac_site_file2=$ac_default_prefix/etc/config.site
2227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2229 test "x$ac_site_file" = xNONE && continue
2230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233 sed 's/^/| /' "$ac_site_file" >&5
2235 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 as_fn_error $? "failed to load site script $ac_site_file
2238 See \`config.log' for more details" "$LINENO" 5; }
2242 if test -r "$cache_file"; then
2243 # Some versions of bash will fail to source /dev/null (special files
2244 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2247 $as_echo "$as_me: loading cache $cache_file" >&6;}
2249 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2250 *) . "./$cache_file";;
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2255 $as_echo "$as_me: creating cache $cache_file" >&6;}
2259 # Check that the precious variables saved in the cache have kept the same
2261 ac_cache_corrupted=false
2262 for ac_var in $ac_precious_vars; do
2263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2264 eval ac_new_set=\$ac_env_${ac_var}_set
2265 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2266 eval ac_new_val=\$ac_env_${ac_var}_value
2267 case $ac_old_set,$ac_new_set in
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2274 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2275 ac_cache_corrupted=: ;;
2278 if test "x$ac_old_val" != "x$ac_new_val"; then
2279 # differences in whitespace do not lead to failure.
2280 ac_old_val_w=`echo x $ac_old_val`
2281 ac_new_val_w=`echo x $ac_new_val`
2282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2285 ac_cache_corrupted=:
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2289 eval $ac_var=\$ac_old_val
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2292 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2297 # Pass precious variables to config.status.
2298 if test "$ac_new_set" = set; then
2300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2301 *) ac_arg=$ac_var=$ac_new_val ;;
2303 case " $ac_configure_args " in
2304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2305 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2309 if $ac_cache_corrupted; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2314 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2316 ## -------------------- ##
2317 ## Main body of script. ##
2318 ## -------------------- ##
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2328 ac_config_headers="$ac_config_headers config.h"
2331 for ac_dir in scripts "$srcdir"/scripts; do
2332 if test -f "$ac_dir/install-sh"; then
2334 ac_install_sh="$ac_aux_dir/install-sh -c"
2336 elif test -f "$ac_dir/install.sh"; then
2338 ac_install_sh="$ac_aux_dir/install.sh -c"
2340 elif test -f "$ac_dir/shtool"; then
2342 ac_install_sh="$ac_aux_dir/shtool install -c"
2346 if test -z "$ac_aux_dir"; then
2347 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2350 # These three variables are undocumented and unsupported,
2351 # and are intended to be withdrawn in a future Autoconf release.
2352 # They can cause serious problems if a builder's source tree is in a directory
2353 # whose full name contains unusual characters.
2354 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2355 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2356 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2365 # Make sure we can run config.sub.
2366 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2367 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2370 $as_echo_n "checking build system type... " >&6; }
2371 if ${ac_cv_build+:} false; then :
2372 $as_echo_n "(cached) " >&6
2374 ac_build_alias=$build_alias
2375 test "x$ac_build_alias" = x &&
2376 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2377 test "x$ac_build_alias" = x &&
2378 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2379 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2380 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2384 $as_echo "$ac_cv_build" >&6; }
2385 case $ac_cv_build in
2387 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2390 ac_save_IFS=$IFS; IFS='-'
2396 # Remember, the first character of IFS is used to create $*,
2397 # except with old shells:
2400 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2404 $as_echo_n "checking host system type... " >&6; }
2405 if ${ac_cv_host+:} false; then :
2406 $as_echo_n "(cached) " >&6
2408 if test "x$host_alias" = x; then
2409 ac_cv_host=$ac_cv_build
2411 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2417 $as_echo "$ac_cv_host" >&6; }
2420 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2423 ac_save_IFS=$IFS; IFS='-'
2429 # Remember, the first character of IFS is used to create $*,
2430 # except with old shells:
2433 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442 if test -n "$ac_tool_prefix"; then
2443 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446 $as_echo_n "checking for $ac_word... " >&6; }
2447 if ${ac_cv_prog_CC+:} false; then :
2448 $as_echo_n "(cached) " >&6
2450 if test -n "$CC"; then
2451 ac_cv_prog_CC="$CC" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 if test -n "$CC"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2473 $as_echo "$CC" >&6; }
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476 $as_echo "no" >&6; }
2481 if test -z "$ac_cv_prog_CC"; then
2483 # Extract the first word of "gcc", so it can be a program name with args.
2484 set dummy gcc; ac_word=$2
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486 $as_echo_n "checking for $ac_word... " >&6; }
2487 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2488 $as_echo_n "(cached) " >&6
2490 if test -n "$ac_ct_CC"; then
2491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_ac_ct_CC="gcc"
2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2511 if test -n "$ac_ct_CC"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2513 $as_echo "$ac_ct_CC" >&6; }
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516 $as_echo "no" >&6; }
2519 if test "x$ac_ct_CC" = x; then
2522 case $cross_compiling:$ac_tool_warned in
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2526 ac_tool_warned=yes ;;
2534 if test -z "$CC"; then
2535 if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}cc; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_CC+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_CC="${ac_tool_prefix}cc"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 if test -n "$CC"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2566 $as_echo "$CC" >&6; }
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2575 if test -z "$CC"; then
2576 # Extract the first word of "cc", so it can be a program name with args.
2577 set dummy cc; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_CC+:} false; then :
2581 $as_echo_n "(cached) " >&6
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2595 ac_prog_rejected=yes
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 if test $ac_prog_rejected = yes; then
2607 # We found a bogon in the path, so make sure we never use it.
2608 set dummy $ac_cv_prog_CC
2610 if test $# != 0; then
2611 # We chose a different compiler from the bogus one.
2612 # However, it has the same basename, so the bogon will be chosen
2613 # first if we set CC to just the basename; use the full file name.
2615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2621 if test -n "$CC"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2623 $as_echo "$CC" >&6; }
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626 $as_echo "no" >&6; }
2631 if test -z "$CC"; then
2632 if test -n "$ac_tool_prefix"; then
2633 for ac_prog in cl.exe
2635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_CC+:} false; then :
2640 $as_echo_n "(cached) " >&6
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC="$CC" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 if test -n "$CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665 $as_echo "$CC" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2672 test -n "$CC" && break
2675 if test -z "$CC"; then
2677 for ac_prog in cl.exe
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2684 $as_echo_n "(cached) " >&6
2686 if test -n "$ac_ct_CC"; then
2687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_ac_ct_CC="$ac_prog"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707 if test -n "$ac_ct_CC"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2709 $as_echo "$ac_ct_CC" >&6; }
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2716 test -n "$ac_ct_CC" && break
2719 if test "x$ac_ct_CC" = x; then
2722 case $cross_compiling:$ac_tool_warned in
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726 ac_tool_warned=yes ;;
2735 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 as_fn_error $? "no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details" "$LINENO" 5; }
2740 # Provide some information about the compiler.
2741 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2744 for ac_option in --version -v -V -qversion; do
2745 { { ac_try="$ac_compiler $ac_option >&5"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2751 $as_echo "$ac_try_echo"; } >&5
2752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2754 if test -s conftest.err; then
2756 ... rest of stderr output deleted ...
2757 10q' conftest.err >conftest.er1
2758 cat conftest.er1 >&5
2760 rm -f conftest.er1 conftest.err
2761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2762 test $ac_status = 0; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2767 $as_echo_n "checking for suffix of object files... " >&6; }
2768 if ${ac_cv_objext+:} false; then :
2769 $as_echo_n "(cached) " >&6
2771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772 /* end confdefs.h. */
2782 rm -f conftest.o conftest.obj
2783 if { { ac_try="$ac_compile"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790 (eval "$ac_compile") 2>&5
2792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793 test $ac_status = 0; }; then :
2794 for ac_file in conftest.o conftest.obj conftest.*; do
2795 test -f "$ac_file" || continue;
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2798 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2803 $as_echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 as_fn_error $? "cannot compute suffix of object files: cannot compile
2809 See \`config.log' for more details" "$LINENO" 5; }
2811 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2814 $as_echo "$ac_cv_objext" >&6; }
2815 OBJEXT=$ac_cv_objext
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2818 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2819 if ${ac_cv_c_compiler_gnu+:} false; then :
2820 $as_echo_n "(cached) " >&6
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2836 if ac_fn_c_try_compile "$LINENO"; then :
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2846 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2847 if test $ac_compiler_gnu = yes; then
2852 ac_test_CFLAGS=${CFLAGS+set}
2853 ac_save_CFLAGS=$CFLAGS
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2855 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2856 if ${ac_cv_prog_cc_g+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 ac_save_c_werror_flag=$ac_c_werror_flag
2860 ac_c_werror_flag=yes
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864 /* end confdefs.h. */
2874 if ac_fn_c_try_compile "$LINENO"; then :
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2889 if ac_fn_c_try_compile "$LINENO"; then :
2892 ac_c_werror_flag=$ac_save_c_werror_flag
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2905 if ac_fn_c_try_compile "$LINENO"; then :
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 ac_c_werror_flag=$ac_save_c_werror_flag
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2916 $as_echo "$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918 CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920 if test "$GCC" = yes; then
2926 if test "$GCC" = yes; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2933 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2934 if ${ac_cv_prog_cc_c89+:} false; then :
2935 $as_echo_n "(cached) " >&6
2937 ac_cv_prog_cc_c89=no
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2943 #include <sys/types.h>
2944 #include <sys/stat.h>
2945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2946 struct buf { int x; };
2947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2948 static char *e (p, i)
2954 static char *f (char * (*g) (char **, int), char **p, ...)
2959 s = g (p, va_arg (v,int));
2964 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2965 function prototypes and stuff, but not '\xHH' hex character constants.
2966 These don't provoke an error unfortunately, instead are silently treated
2967 as 'x'. The following induces an error, until -std is added to get
2968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2969 array size at least. It's necessary to write '\x00'==0 to get something
2970 that's true only with -std. */
2971 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2973 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2974 inside strings and character constants. */
2976 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2978 int test (int i, double x);
2979 struct s1 {int (*f) (int a);};
2980 struct s2 {int (*f) (double a);};
2981 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2987 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2992 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2993 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2995 CC="$ac_save_CC $ac_arg"
2996 if ac_fn_c_try_compile "$LINENO"; then :
2997 ac_cv_prog_cc_c89=$ac_arg
2999 rm -f core conftest.err conftest.$ac_objext
3000 test "x$ac_cv_prog_cc_c89" != "xno" && break
3002 rm -f conftest.$ac_ext
3007 case "x$ac_cv_prog_cc_c89" in
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3010 $as_echo "none needed" >&6; } ;;
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3013 $as_echo "unsupported" >&6; } ;;
3015 CC="$CC $ac_cv_prog_cc_c89"
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3017 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3019 if test "x$ac_cv_prog_cc_c89" != xno; then :
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029 if test $host != $build; then
3030 for ac_prog in gcc cc
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy $ac_prog; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_BUILD_CC+:} false; then :
3037 $as_echo_n "(cached) " >&6
3039 if test -n "$BUILD_CC"; then
3040 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_BUILD_CC="$ac_prog"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 BUILD_CC=$ac_cv_prog_BUILD_CC
3060 if test -n "$BUILD_CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3062 $as_echo "$BUILD_CC" >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3069 test -n "$BUILD_CC" && break
3075 ac_cpp='$CPP $CPPFLAGS'
3076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3080 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3081 # On Suns, sometimes $CPP names a directory.
3082 if test -n "$CPP" && test -d "$CPP"; then
3085 if test -z "$CPP"; then
3086 if ${ac_cv_prog_CPP+:} false; then :
3087 $as_echo_n "(cached) " >&6
3089 # Double quotes because CPP needs to be expanded
3090 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3093 for ac_c_preproc_warn_flag in '' yes
3095 # Use a header file that comes with gcc, so configuring glibc
3096 # with a fresh cross-compiler works.
3097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3098 # <limits.h> exists even on freestanding compilers.
3099 # On the NeXT, cc -E runs the code through the compiler's parser,
3100 # not just through cpp. "Syntax error" is here to catch this case.
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3104 # include <limits.h>
3106 # include <assert.h>
3110 if ac_fn_c_try_cpp "$LINENO"; then :
3113 # Broken: fails on valid input.
3116 rm -f conftest.err conftest.i conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether nonexistent headers
3119 # can be detected and how.
3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h. */
3122 #include <ac_nonexistent.h>
3124 if ac_fn_c_try_cpp "$LINENO"; then :
3125 # Broken: success on invalid input.
3128 # Passes both tests.
3132 rm -f conftest.err conftest.i conftest.$ac_ext
3135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3136 rm -f conftest.i conftest.err conftest.$ac_ext
3137 if $ac_preproc_ok; then :
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3150 $as_echo "$CPP" >&6; }
3152 for ac_c_preproc_warn_flag in '' yes
3154 # Use a header file that comes with gcc, so configuring glibc
3155 # with a fresh cross-compiler works.
3156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157 # <limits.h> exists even on freestanding compilers.
3158 # On the NeXT, cc -E runs the code through the compiler's parser,
3159 # not just through cpp. "Syntax error" is here to catch this case.
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3163 # include <limits.h>
3165 # include <assert.h>
3169 if ac_fn_c_try_cpp "$LINENO"; then :
3172 # Broken: fails on valid input.
3175 rm -f conftest.err conftest.i conftest.$ac_ext
3177 # OK, works on sane cases. Now check whether nonexistent headers
3178 # can be detected and how.
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3181 #include <ac_nonexistent.h>
3183 if ac_fn_c_try_cpp "$LINENO"; then :
3184 # Broken: success on invalid input.
3187 # Passes both tests.
3191 rm -f conftest.err conftest.i conftest.$ac_ext
3194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3195 rm -f conftest.i conftest.err conftest.$ac_ext
3196 if $ac_preproc_ok; then :
3199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3202 See \`config.log' for more details" "$LINENO" 5; }
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 # We need the C++ compiler only for testing.
3213 ac_cpp='$CXXCPP $CPPFLAGS'
3214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3217 if test -z "$CXX"; then
3218 if test -n "$CCC"; then
3221 if test -n "$ac_tool_prefix"; then
3222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CXX+:} false; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$CXX"; then
3232 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 if test -n "$CXX"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3254 $as_echo "$CXX" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3261 test -n "$CXX" && break
3264 if test -z "$CXX"; then
3266 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3268 # Extract the first word of "$ac_prog", so it can be a program name with args.
3269 set dummy $ac_prog; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3273 $as_echo_n "(cached) " >&6
3275 if test -n "$ac_ct_CXX"; then
3276 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_ac_ct_CXX="$ac_prog"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3296 if test -n "$ac_ct_CXX"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3298 $as_echo "$ac_ct_CXX" >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3305 test -n "$ac_ct_CXX" && break
3308 if test "x$ac_ct_CXX" = x; then
3311 case $cross_compiling:$ac_tool_warned in
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3315 ac_tool_warned=yes ;;
3323 # Provide some information about the compiler.
3324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3327 for ac_option in --version -v -V -qversion; do
3328 { { ac_try="$ac_compiler $ac_option >&5"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3337 if test -s conftest.err; then
3339 ... rest of stderr output deleted ...
3340 10q' conftest.err >conftest.er1
3341 cat conftest.er1 >&5
3343 rm -f conftest.er1 conftest.err
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3349 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3350 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3351 $as_echo_n "(cached) " >&6
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3367 if ac_fn_cxx_try_compile "$LINENO"; then :
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3377 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3378 if test $ac_compiler_gnu = yes; then
3383 ac_test_CXXFLAGS=${CXXFLAGS+set}
3384 ac_save_CXXFLAGS=$CXXFLAGS
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3386 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3387 if ${ac_cv_prog_cxx_g+:} false; then :
3388 $as_echo_n "(cached) " >&6
3390 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3391 ac_cxx_werror_flag=yes
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3405 if ac_fn_cxx_try_compile "$LINENO"; then :
3406 ac_cv_prog_cxx_g=yes
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3420 if ac_fn_cxx_try_compile "$LINENO"; then :
3423 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3436 if ac_fn_cxx_try_compile "$LINENO"; then :
3437 ac_cv_prog_cxx_g=yes
3439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3447 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3448 if test "$ac_test_CXXFLAGS" = set; then
3449 CXXFLAGS=$ac_save_CXXFLAGS
3450 elif test $ac_cv_prog_cxx_g = yes; then
3451 if test "$GXX" = yes; then
3457 if test "$GXX" = yes; then
3464 ac_cpp='$CPP $CPPFLAGS'
3465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3471 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3474 # This will get text that should go into config.make.
3477 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3479 # Check whether --with-gd was given.
3480 if test "${with_gd+set}" = set; then :
3481 withval=$with_gd; case "$with_gd" in
3483 *) libgd_include="-I$withval/include"
3484 libgd_ldflags="-L$withval/lib" ;;
3490 # Check whether --with-gd-include was given.
3491 if test "${with_gd_include+set}" = set; then :
3492 withval=$with_gd_include; case "$with_gd_include" in
3494 *) libgd_include="-I$withval" ;;
3500 # Check whether --with-gd-lib was given.
3501 if test "${with_gd_lib+set}" = set; then :
3502 withval=$with_gd_lib; case "$with_gd_lib" in
3504 *) libgd_ldflags="-L$withval" ;;
3510 if test -n "$libgd_include"; then
3511 config_vars="$config_vars
3512 CFLAGS-memusagestat.c = $libgd_include"
3514 if test -n "$libgd_ldflags"; then
3515 config_vars="$config_vars
3516 libgd-LDFLAGS = $libgd_ldflags"
3520 # Check whether --with-fp was given.
3521 if test "${with_fp+set}" = set; then :
3522 withval=$with_fp; with_fp=$withval
3529 # Check whether --with-binutils was given.
3530 if test "${with_binutils+set}" = set; then :
3531 withval=$with_binutils; path_binutils=$withval
3537 # Check whether --with-elf was given.
3538 if test "${with_elf+set}" = set; then :
3539 withval=$with_elf; elf=$withval
3545 # Check whether --with-selinux was given.
3546 if test "${with_selinux+set}" = set; then :
3547 withval=$with_selinux; with_selinux=$withval
3553 # Check whether --with-xcoff was given.
3554 if test "${with_xcoff+set}" = set; then :
3555 withval=$with_xcoff; xcoff=$withval
3562 # Check whether --with-headers was given.
3563 if test "${with_headers+set}" = set; then :
3564 withval=$with_headers; sysheaders=$withval
3572 # Check whether --with-default-link was given.
3573 if test "${with_default_link+set}" = set; then :
3574 withval=$with_default_link; use_default_link=$withval
3576 use_default_link=default
3580 # Check whether --enable-sanity-checks was given.
3581 if test "${enable_sanity_checks+set}" = set; then :
3582 enableval=$enable_sanity_checks; enable_sanity=$enableval
3589 # Check whether --enable-check-abi was given.
3590 if test "${enable_check_abi+set}" = set; then :
3591 enableval=$enable_check_abi; enable_check_abi=$enableval
3598 # Check whether --enable-shared was given.
3599 if test "${enable_shared+set}" = set; then :
3600 enableval=$enable_shared; shared=$enableval
3605 # Check whether --enable-profile was given.
3606 if test "${enable_profile+set}" = set; then :
3607 enableval=$enable_profile; profile=$enableval
3612 # Check whether --enable-omitfp was given.
3613 if test "${enable_omitfp+set}" = set; then :
3614 enableval=$enable_omitfp; omitfp=$enableval
3619 # Check whether --enable-bounded was given.
3620 if test "${enable_bounded+set}" = set; then :
3621 enableval=$enable_bounded; bounded=$enableval
3626 # Check whether --enable-versioning was given.
3627 if test "${enable_versioning+set}" = set; then :
3628 enableval=$enable_versioning; enable_versioning=$enableval
3630 enable_versioning=yes
3634 # Check whether --enable-oldest-abi was given.
3635 if test "${enable_oldest_abi+set}" = set; then :
3636 enableval=$enable_oldest_abi; oldest_abi=$enableval
3641 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3644 cat >>confdefs.h <<_ACEOF
3645 #define GLIBC_OLDEST_ABI "$oldest_abi"
3651 # Check whether --enable-stackguard-randomization was given.
3652 if test "${enable_stackguard_randomization+set}" = set; then :
3653 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3655 enable_stackguard_randomize=no
3658 if test "$enable_stackguard_randomize" = yes; then
3659 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3663 # Check whether --enable-add-ons was given.
3664 if test "${enable_add_ons+set}" = set; then :
3665 enableval=$enable_add_ons;
3672 # Check whether --with-tls was given.
3673 if test "${with_tls+set}" = set; then :
3674 withval=$with_tls; usetls=$withval
3680 # Check whether --enable-hidden-plt was given.
3681 if test "${enable_hidden_plt+set}" = set; then :
3682 enableval=$enable_hidden_plt; hidden=$enableval
3687 if test "x$hidden" = xno; then
3688 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3692 # Check whether --enable-bind-now was given.
3693 if test "${enable_bind_now+set}" = set; then :
3694 enableval=$enable_bind_now; bindnow=$enableval
3701 # Check whether --enable-static-nss was given.
3702 if test "${enable_static_nss+set}" = set; then :
3703 enableval=$enable_static_nss; static_nss=$enableval
3708 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3710 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3714 # Check whether --enable-force-install was given.
3715 if test "${enable_force_install+set}" = set; then :
3716 enableval=$enable_force_install; force_install=$enableval
3723 # Check whether --enable-kernel was given.
3724 if test "${enable_kernel+set}" = set; then :
3725 enableval=$enable_kernel; minimum_kernel=$enableval
3728 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3729 # Better nothing than this.
3732 if test "$minimum_kernel" = current; then
3733 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3737 # Check whether --enable-all-warnings was given.
3738 if test "${enable_all_warnings+set}" = set; then :
3739 enableval=$enable_all_warnings; all_warnings=$enableval
3744 # Check whether --enable-multi-arch was given.
3745 if test "${enable_multi_arch+set}" = set; then :
3746 enableval=$enable_multi_arch; multi_arch=$enableval
3752 # Check whether --enable-nss-crypt was given.
3753 if test "${enable_nss_crypt+set}" = set; then :
3754 enableval=$enable_nss_crypt; nss_crypt=$enableval
3759 if test x$nss_crypt = xyes; then
3760 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3761 if test $? -ne 0; then
3762 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3764 old_CFLAGS="$CFLAGS"
3765 CFLAGS="$CFLAGS $nss_includes"
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3771 #include <nsslowhash.h>
3772 void f (void) { NSSLOW_Init (); }
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782 libc_cv_nss_crypt=yes
3785 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 LIBS="$LIBS -lfreebl3"
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3794 #include <nsslowhash.h>
3803 if ac_fn_c_try_link "$LINENO"; then :
3804 libc_cv_nss_crypt=yes
3807 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3809 rm -f core conftest.err conftest.$ac_objext \
3810 conftest$ac_exeext conftest.$ac_ext
3811 CFLAGS="$old_CFLAGS"
3814 libc_cv_nss_crypt=no
3818 # The way shlib-versions is used to generate soversions.mk uses a
3819 # fairly simplistic model for name recognition that can't distinguish
3820 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3821 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3822 # tell. This doesn't get used much beyond that, so it's fairly safe.
3827 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3831 # We keep the original values in `$config_*' and never modify them, so we
3832 # can write them unchanged into config.make. Everything else uses
3833 # $machine, $vendor, and $os, and changes them whenever convenient.
3834 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3836 # Don't allow vendor == "unknown"
3837 test "$config_vendor" = unknown && config_vendor=
3838 config_os="`echo $config_os | sed 's/^unknown-//'`"
3840 # Some configurations imply other options.
3842 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3843 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3845 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3846 # These systems (almost) always use the ELF format.
3850 # These systems are always xcoff
3856 # The configure fragment of an add-on port can modify these to supplement
3857 # or override the table in the case statement below. No fragment should
3858 # ever change the config_* variables, however.
3859 machine=$config_machine
3860 vendor=$config_vendor
3864 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3866 if test "$machine" = rs6000; then
3870 # Braindead PowerPC box with absolutely no FPU.
3871 case "$machine-$host_os" in
3879 # Check whether --with-cpu was given.
3880 if test "${with_cpu+set}" = set; then :
3881 withval=$with_cpu; case "$withval" in
3882 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3884 *) submachine="$withval" ;;
3890 # An add-on can set this when it wants to disable the sanity check below.
3896 case "$enable_add_ons" in
3899 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3900 sed 's@/[^/]*$@@' | sort | uniq`
3901 add_ons_automatic=yes
3903 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3904 add_ons_automatic=no ;;
3910 if test x"$add_ons" != x; then
3911 for f in $add_ons; do
3912 # Some sanity checks
3916 *** It seems that you're using an old \`crypt' add-on. crypt is now
3917 *** part of glibc and using the old add-on will not work with this
3918 *** release. Start again with fresh sources and without the old
3919 *** \`crypt' add-on." "$LINENO" 5
3923 *** It seems that you're using an old \`localedata' add-on. localedata
3924 *** is now part of glibc and using the old add-on will not work with
3925 *** this release. Start again with fresh sources and without the old
3926 *** \`localedata' add-on." "$LINENO" 5
3931 # Now source each add-on's configure fragment.
3932 # The fragments can use $srcdir/$libc_add_on to find themselves,
3933 # and test $add_ons_automatic to see if they were explicitly requested.
3934 # A fragment can clear (or even change) $libc_add_on to affect
3935 # whether it goes into the list to be actually used in the build.
3937 for libc_add_on in $add_ons; do
3938 # Test whether such a directory really exists.
3939 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3940 case "$libc_add_on" in
3942 libc_add_on_srcdir=$libc_add_on
3945 test -d "$srcdir/$libc_add_on" || {
3946 if test -d "$libc_add_on"; then
3947 libc_add_on="`pwd`/$libc_add_on"
3949 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3952 libc_add_on_srcdir=$srcdir/$libc_add_on
3956 libc_add_on_frag=$libc_add_on_srcdir/configure
3957 libc_add_on_canonical=
3958 libc_add_on_config_subdirs=
3959 if test -r "$libc_add_on_frag"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3961 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3962 libc_add_on_canonical=unknown
3963 libc_add_on_subdirs=
3964 . "$libc_add_on_frag"
3965 test -z "$libc_add_on" || {
3966 configured_add_ons="$configured_add_ons $libc_add_on"
3967 if test "x$libc_add_on_canonical" = xunknown; then
3968 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
3970 for d in $libc_add_on_subdirs; do
3971 case "$libc_add_on" in
3972 /*) subdir_srcdir="$libc_add_on" ;;
3973 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3977 d="${libc_add_on_canonical:-$libc_add_on}"
3983 subdir_srcdir="$subdir_srcdir/$d"
3986 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3987 add_on_subdirs="$add_on_subdirs $d"
3988 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
3989 $d-srcdir = $subdir_srcdir"
3991 for d in $libc_add_on_config_subdirs; do
3993 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3995 if test ! -d "$libc_add_on_srcdir/$d"; then
3996 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
3998 case "$libc_add_on" in
3999 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4001 subdirs="$subdirs $libc_add_on/$d"
4005 if test -n "$libc_add_on"; then
4006 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
4009 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4010 for frag in $frags; do
4011 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4012 echo $ECHO_N "$name $ECHO_C" >&6
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4018 use_add_ons="$use_add_ons $libc_add_on"
4019 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4020 test -z "$libc_add_on_canonical" ||
4021 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4024 # Use echo to strip excess whitespace.
4025 add_ons="`echo $use_add_ons`"
4032 ### I put this here to prevent those annoying emails from people who cannot
4033 ### read and try to compile glibc on unsupported platforms. --drepper
4035 ### By using the undocumented --enable-hacker-mode option for configure
4036 ### one can skip this test to make the configuration not fail for unsupported
4039 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4040 case "$machine-$host_os" in
4041 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4044 echo "*** The GNU C library is currently not available for this platform."
4045 echo "*** So far nobody cared to port it and if there is no volunteer it"
4046 echo "*** might never happen. So, if you have interest to see glibc on"
4047 echo "*** this platform visit"
4048 echo "*** http://www.gnu.org/software/libc/porting.html"
4049 echo "*** and join the group of porters"
4055 # Expand the configuration machine name into a subdirectory by architecture
4056 # type and particular chip. If an add-on configure fragment already set
4057 # base_machine, we don't change it.
4058 test -n "$base_machine" || case "$machine" in
4059 a29k | am29000) base_machine=a29k machine=a29k ;;
4060 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4061 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4062 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4063 ia64) base_machine=ia64 machine=ia64 ;;
4064 m88???) base_machine=m88k machine=m88k/$machine ;;
4065 m88k) base_machine=m88k machine=m88k/m88100 ;;
4066 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4067 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4068 s390) base_machine=s390 machine=s390/s390-32 ;;
4069 s390x) base_machine=s390 machine=s390/s390-64 ;;
4070 sh3*) base_machine=sh machine=sh/sh3 ;;
4071 sh4*) base_machine=sh machine=sh/sh4 ;;
4073 base_machine=sparc machine=sparc/sparc32 ;;
4074 sparcv8 | supersparc | hypersparc)
4075 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4076 sparcv8plus | sparcv8plusa | sparcv9)
4077 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4078 sparcv8plusb | sparcv9b)
4079 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4081 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4083 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4085 base_machine=sparc machine=sparc/sparc64 ;;
4087 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4089 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4091 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4092 *) base_machine=$machine ;;
4096 if test "$base_machine" = "i386"; then
4097 $as_echo "#define USE_REGPARMS 1" >>confdefs.h
4101 # For the multi-arch option we need support in the assembler.
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_indirect_function symbol type support" >&5
4103 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
4104 if ${libc_cv_asm_gnu_indirect_function+:} false; then :
4105 $as_echo_n "(cached) " >&6
4107 cat > conftest.s <<EOF
4108 .type foo,%gnu_indirect_function
4110 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
4112 libc_cv_asm_gnu_indirect_function=yes
4114 libc_cv_asm_gnu_indirect_function=no
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_gnu_indirect_function" >&5
4119 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5
4122 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
4123 if ${libc_cv_dot_text+:} false; then :
4124 $as_echo_n "(cached) " >&6
4126 cat > conftest.s <<EOF
4130 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135 test $ac_status = 0; }; }; then
4136 libc_cv_dot_text=.text
4141 if test -z "$libc_cv_dot_text"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4146 $as_echo "yes" >&6; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global-symbol directive" >&5
4150 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
4151 if ${libc_cv_asm_global_directive+:} false; then :
4152 $as_echo_n "(cached) " >&6
4154 libc_cv_asm_global_directive=UNKNOWN
4155 for ac_globl in .globl .global .EXPORT; do
4156 cat > conftest.s <<EOF
4161 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166 test $ac_status = 0; }; }; then
4167 libc_cv_asm_global_directive=${ac_globl}
4170 test $libc_cv_asm_global_directive != UNKNOWN && break
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_global_directive" >&5
4174 $as_echo "$libc_cv_asm_global_directive" >&6; }
4175 if test $libc_cv_asm_global_directive = UNKNOWN; then
4176 as_fn_error $? "cannot determine asm global directive" "$LINENO" 5
4178 cat >>confdefs.h <<_ACEOF
4179 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive prefix" >&5
4185 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
4186 if ${libc_cv_asm_type_prefix+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 libc_cv_asm_type_prefix=no
4190 for ac_try_prefix in '@' '%' '#'; do
4191 cat > conftest.s <<EOF
4193 ${libc_cv_asm_global_directive} foo
4194 .type foo, ${ac_try_prefix}object
4199 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4204 test $ac_status = 0; }; }; then
4205 libc_cv_asm_type_prefix=${ac_try_prefix}
4208 test "x$libc_cv_asm_type_prefix" != xno && break
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_type_prefix" >&5
4212 $as_echo "$libc_cv_asm_type_prefix" >&6; }
4213 if test "x$libc_cv_asm_type_prefix" != xno; then
4214 cat >>confdefs.h <<_ACEOF
4215 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4220 if test x"$libc_cv_asm_gnu_indirect_function" != xyes -a x"$libc_cv_asm_type_prefix" = xno; then
4221 if test x"$multi_arch" = xyes; then
4222 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4227 if test x"$multi_arch" != xno; then
4228 multi_arch_d=/multiarch
4231 # Compute the list of sysdep directories for this configuration.
4232 # This can take a while to compute.
4233 sysdep_dir=$srcdir/sysdeps
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4235 $as_echo_n "checking sysdep dirs... " >&6; }
4236 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4237 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4239 test "x$base_os" != x || case "$os" in
4241 base_os=mach/hurd ;;
4242 netbsd* | 386bsd* | freebsd* | bsdi*)
4243 base_os=unix/bsd/bsd4.4 ;;
4244 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4246 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4247 base_os=unix/sysv ;;
4249 base_os=unix/sysv/irix6/$os ;;
4251 base_os=unix/sysv/sysv4 ;;
4253 base_os=unix/sysv/hpux/$os ;;
4255 base_os=unix/sysv/aix/aix4.3 ;;
4257 base_os=standalone ;;
4260 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4263 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4267 o=`echo $tail | sed 's/[0-9]*$//'`
4268 if test $o != $tail; then
4271 # For linux-gnu, try linux-gnu, then linux.
4272 o=`echo $tail | sed 's/-.*$//'`
4273 if test $o != $tail; then
4277 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4280 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4286 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4288 tail=$machine${submachine:+/$submachine}
4289 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4291 # Prepend the machine's FPU directory unless --without-fp.
4292 if test "$with_fp" = yes; then
4293 mach="$mach /$1/fpu"
4295 mach="$mach /$1/nofpu"
4302 # Find what sysdep directories exist.
4305 for b in $base ''; do
4306 for m0 in $mach ''; do
4307 for v in /$vendor ''; do
4308 test "$v" = / && continue
4309 for o in /$ostry ''; do
4310 test "$o" = / && continue
4311 for m in $multi_arch_d $mach ''; do
4312 for d in $add_ons_pfx ''; do
4313 for a in $add_ons_sfx ''; do
4314 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4315 try_srcdir="${srcdir}/"
4319 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4320 test -n "$enable_debug_configure" &&
4321 echo "$0 DEBUG: try $try" >&2
4322 if test -d "$try_srcdir$try"; then
4323 sysnames="$sysnames $try"
4324 { test -n "$o" || test -n "$b"; } && os_used=t
4325 { test -n "$m" || test -n "$m0"; } && machine_used=t
4327 x*/$submachine) submachine_used=t ;;
4329 if test -n "$d"; then
4330 case "$sysnames_add_ons" in
4332 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4345 # If the assembler supports gnu_indirect_function symbol type and the
4346 # architecture supports multi-arch, we enable multi-arch by default.
4347 case $sysnames_add_ons$sysnames in
4351 test x"$multi_arch" = xdefault && multi_arch=no
4354 if test x"$multi_arch" != xno; then
4355 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4360 if test -z "$os_used" && test "$os" != none; then
4361 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4363 if test -z "$machine_used" && test "$machine" != none; then
4364 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4366 if test -z "$submachine_used" && test -n "$submachine"; then
4367 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4371 # We have now validated the configuration.
4374 # If using ELF, look for an `elf' subdirectory of each machine directory.
4375 # We prepend these rather than inserting them whereever the machine appears
4376 # because things specified by the machine's ELF ABI should override
4377 # OS-specific things, and should always be the same for any OS on the
4378 # machine (otherwise what's the point of an ABI?).
4379 if test "$elf" = yes; then
4381 for d in $add_ons_pfx ''; do
4383 if test -d $srcdir/${d}sysdeps$m/elf; then
4384 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4388 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4392 # Expand the list of system names into a full list of directories
4393 # from each element's parent name and Implies file (if present).
4396 while test $# -gt 0; do
4400 case " $names " in *" $name "*)
4401 # Already in the list.
4405 # Report each name as we discover it, so there is no long pause in output.
4406 echo $ECHO_N "$name $ECHO_C" >&6
4408 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4412 *) xsrcdir=$srcdir/ ;;
4414 test -n "$enable_debug_configure" &&
4415 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4417 if test -f $xsrcdir$name/Implies; then
4418 # Collect more names from the `Implies' file (removing comments).
4419 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4421 for x in $implied_candidate; do
4423 if test -d $xsrcdir$name_base/$x; then
4424 implied="$implied $name_base/$x";
4427 for d in $add_ons_pfx ''; do
4428 try="${d}sysdeps/$x"
4431 *) try_srcdir=$srcdir/ ;;
4433 test -n "$enable_debug_configure" &&
4434 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4435 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4437 implied="$implied $try"
4439 case "$sysnames_add_ons" in
4441 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4445 if test $found = no; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/Implies specifies nonexistent $x" >&5
4447 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4454 # Add NAME to the list of names.
4455 names="$names $name"
4457 # Find the parent of NAME, using the empty string if it has none.
4458 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4460 # Add the names implied by NAME, and NAME's parent (if it has one), to
4461 # the list of names to be processed (the argument list). We prepend the
4462 # implied names to the list and append the parent. We want implied
4463 # directories to come before further directories inferred from the
4464 # configuration components; this ensures that for sysv4, unix/common
4465 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4467 sysnames="`echo $implied $* $parent`"
4468 test -n "$sysnames" && set $sysnames
4471 # Add the default directories.
4472 default_sysnames=sysdeps/generic
4473 if test "$elf" = yes; then
4474 default_sysnames="sysdeps/generic/elf $default_sysnames"
4476 sysnames="$names $default_sysnames"
4478 # The other names were emitted during the scan.
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4480 $as_echo "$default_sysnames" >&6; }
4482 # Collect the list of add-ons that supply partial sysdeps trees.
4484 for add_on in $add_ons; do
4487 *) xsrcdir="$srcdir/" ;;
4490 test -d "$xsrcdir$add_on/sysdeps" || {
4491 case "$configured_add_ons " in
4494 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4500 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4501 case "$sysnames_add_ons" in
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4505 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4510 for d in $sysnames; do
4512 $add_on/sysdeps/*) ;;
4515 (cd "$xsrcdir$d" && for f in *[!~]; do
4518 for ff in $f/*.h; do
4519 test -d "$ff" || { test -e "$ff" && exit 88; }
4523 test -d "$f" || { test -e "$f" && exit 88; }
4527 if test $? -eq 88; then
4532 if test $found = no; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4534 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4542 # Find a good install program. We prefer a C program (faster),
4543 # so one script is as good as another. But avoid the broken or
4544 # incompatible versions:
4545 # SysV /etc/install, /usr/sbin/install
4546 # SunOS /usr/etc/install
4547 # IRIX /sbin/install
4549 # AmigaOS /C/install, which installs bootblocks on floppy discs
4550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4553 # OS/2's system install, which has a completely different semantic
4554 # ./install, which can be erroneously created by make from ./install.sh.
4555 # Reject install programs that cannot install multiple files.
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4557 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4558 if test -z "$INSTALL"; then
4559 if ${ac_cv_path_install+:} false; then :
4560 $as_echo_n "(cached) " >&6
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 # Account for people who put trailing slashes in PATH elements.
4568 case $as_dir/ in #((
4569 ./ | .// | /[cC]/* | \
4570 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4571 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4574 # OSF1 and SCO ODT 3.0 have their own names for install.
4575 # Don't use installbsd from OSF since it installs stuff as root
4577 for ac_prog in ginstall scoinst install; do
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4580 if test $ac_prog = install &&
4581 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4582 # AIX install. It has an incompatible calling convention.
4584 elif test $ac_prog = install &&
4585 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4586 # program-specific install script used by HP pwplus--don't use.
4589 rm -rf conftest.one conftest.two conftest.dir
4590 echo one > conftest.one
4591 echo two > conftest.two
4593 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4594 test -s conftest.one && test -s conftest.two &&
4595 test -s conftest.dir/conftest.one &&
4596 test -s conftest.dir/conftest.two
4598 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4611 rm -rf conftest.one conftest.two conftest.dir
4614 if test "${ac_cv_path_install+set}" = set; then
4615 INSTALL=$ac_cv_path_install
4617 # As a last resort, use the slow shell script. Don't cache a
4618 # value for INSTALL within a source directory, because that will
4619 # break other packages using the cache if that directory is
4620 # removed, or if the value is a relative name.
4621 INSTALL=$ac_install_sh
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4625 $as_echo "$INSTALL" >&6; }
4627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4628 # It thinks the first close brace ends the variable substitution.
4629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4635 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4636 # The makefiles need to use a different form to find it in $srcdir.
4637 INSTALL='\$(..)./scripts/install-sh -c'
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4640 $as_echo_n "checking whether ln -s works... " >&6; }
4642 if test "$LN_S" = "ln -s"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4644 $as_echo "yes" >&6; }
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4647 $as_echo "no, using $LN_S" >&6; }
4651 # Was a --with-binutils option given?
4652 if test -n "$path_binutils"; then
4653 # Make absolute; ensure a single trailing slash.
4654 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4655 CC="$CC -B$path_binutils"
4657 AS=`$CC -print-prog-name=as`
4658 LD=`$CC -print-prog-name=ld`
4659 AR=`$CC -print-prog-name=ar`
4661 OBJDUMP=`$CC -print-prog-name=objdump`
4663 OBJCOPY=`$CC -print-prog-name=objcopy`
4666 # Determine whether we are using GNU binutils.
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4668 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4669 if ${libc_cv_prog_as_gnu+:} false; then :
4670 $as_echo_n "(cached) " >&6
4672 # Most GNU programs take a -v and spit out some text including
4673 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4674 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4675 libc_cv_prog_as_gnu=yes
4677 libc_cv_prog_as_gnu=no
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4682 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4684 gnu_as=$libc_cv_prog_as_gnu
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4687 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4688 if ${libc_cv_prog_ld_gnu+:} false; then :
4689 $as_echo_n "(cached) " >&6
4691 # Most GNU programs take a -v and spit out some text including
4692 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4693 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4694 libc_cv_prog_ld_gnu=yes
4696 libc_cv_prog_ld_gnu=no
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4701 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4702 gnu_ld=$libc_cv_prog_ld_gnu
4705 # Accept binutils 2.13 or newer.
4708 # Extract the first word of "$ac_prog", so it can be a program name with args.
4709 set dummy $ac_prog; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if ${ac_cv_prog_AS+:} false; then :
4713 $as_echo_n "(cached) " >&6
4715 if test -n "$AS"; then
4716 ac_cv_prog_AS="$AS" # Let the user override the test.
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_AS="$ac_prog"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 if test -n "$AS"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4738 $as_echo "$AS" >&6; }
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4745 test -n "$AS" && break
4748 if test -z "$AS"; then
4751 # Found it, now check the version.
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4753 $as_echo_n "checking version of $AS... " >&6; }
4754 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4755 case $ac_prog_version in
4756 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4757 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4758 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4759 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4763 $as_echo "$ac_prog_version" >&6; }
4765 if test $ac_verc_fail = yes; then
4766 AS=: critic_missing="$critic_missing as"
4771 # Extract the first word of "$ac_prog", so it can be a program name with args.
4772 set dummy $ac_prog; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_prog_LD+:} false; then :
4776 $as_echo_n "(cached) " >&6
4778 if test -n "$LD"; then
4779 ac_cv_prog_LD="$LD" # Let the user override the test.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_LD="$ac_prog"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 if test -n "$LD"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4801 $as_echo "$LD" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4808 test -n "$LD" && break
4811 if test -z "$LD"; then
4814 # Found it, now check the version.
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4816 $as_echo_n "checking version of $LD... " >&6; }
4817 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4818 case $ac_prog_version in
4819 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4820 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4821 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4822 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4826 $as_echo "$ac_prog_version" >&6; }
4828 if test $ac_verc_fail = yes; then
4829 LD=: critic_missing="$critic_missing ld"
4833 # We need the physical current working directory. We cannot use the
4834 # "pwd -P" shell builtin since that's not portable. Instead we try to
4835 # find a pwd binary. Note that assigning to the PWD environment
4836 # variable might have some interesting side effects, so we don't do
4838 # Extract the first word of "pwd", so it can be a program name with args.
4839 set dummy pwd; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_path_PWD_P+:} false; then :
4843 $as_echo_n "(cached) " >&6
4847 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4869 PWD_P=$ac_cv_path_PWD_P
4870 if test -n "$PWD_P"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWD_P" >&5
4872 $as_echo "$PWD_P" >&6; }
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4879 if test "$PWD_P" = no; then
4880 as_fn_error $? "*** A pwd binary could not be found." "$LINENO" 5
4883 # These programs are version sensitive.
4885 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4887 # Extract the first word of "$ac_prog", so it can be a program name with args.
4888 set dummy $ac_prog; ac_word=$2
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890 $as_echo_n "checking for $ac_word... " >&6; }
4891 if ${ac_cv_prog_CC+:} false; then :
4892 $as_echo_n "(cached) " >&6
4894 if test -n "$CC"; then
4895 ac_cv_prog_CC="$CC" # Let the user override the test.
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 ac_cv_prog_CC="$ac_prog"
4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 if test -n "$CC"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4917 $as_echo "$CC" >&6; }
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4924 test -n "$CC" && break
4927 if test -z "$CC"; then
4930 # Found it, now check the version.
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $CC" >&5
4932 $as_echo_n "checking version of $CC... " >&6; }
4933 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4934 case $ac_prog_version in
4935 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4937 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4938 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4942 $as_echo "$ac_prog_version" >&6; }
4944 if test $ac_verc_fail = yes; then
4945 critic_missing="$critic_missing gcc"
4948 for ac_prog in gnumake gmake make
4950 # Extract the first word of "$ac_prog", so it can be a program name with args.
4951 set dummy $ac_prog; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_MAKE+:} false; then :
4955 $as_echo_n "(cached) " >&6
4957 if test -n "$MAKE"; then
4958 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_MAKE="$ac_prog"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 MAKE=$ac_cv_prog_MAKE
4978 if test -n "$MAKE"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4980 $as_echo "$MAKE" >&6; }
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 test -n "$MAKE" && break
4990 if test -z "$MAKE"; then
4993 # Found it, now check the version.
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4995 $as_echo_n "checking version of $MAKE... " >&6; }
4996 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4997 case $ac_prog_version in
4998 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5000 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5001 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5005 $as_echo "$ac_prog_version" >&6; }
5007 if test $ac_verc_fail = yes; then
5008 critic_missing="$critic_missing make"
5012 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5014 # Extract the first word of "$ac_prog", so it can be a program name with args.
5015 set dummy $ac_prog; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_prog_MSGFMT+:} false; then :
5019 $as_echo_n "(cached) " >&6
5021 if test -n "$MSGFMT"; then
5022 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_MSGFMT="$ac_prog"
5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 MSGFMT=$ac_cv_prog_MSGFMT
5042 if test -n "$MSGFMT"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5044 $as_echo "$MSGFMT" >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5051 test -n "$MSGFMT" && break
5054 if test -z "$MSGFMT"; then
5057 # Found it, now check the version.
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5059 $as_echo_n "checking version of $MSGFMT... " >&6; }
5060 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5061 case $ac_prog_version in
5062 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5063 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5064 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5065 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5069 $as_echo "$ac_prog_version" >&6; }
5071 if test $ac_verc_fail = yes; then
5072 MSGFMT=: aux_missing="$aux_missing msgfmt"
5075 for ac_prog in makeinfo
5077 # Extract the first word of "$ac_prog", so it can be a program name with args.
5078 set dummy $ac_prog; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if ${ac_cv_prog_MAKEINFO+:} false; then :
5082 $as_echo_n "(cached) " >&6
5084 if test -n "$MAKEINFO"; then
5085 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094 ac_cv_prog_MAKEINFO="$ac_prog"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 MAKEINFO=$ac_cv_prog_MAKEINFO
5105 if test -n "$MAKEINFO"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5107 $as_echo "$MAKEINFO" >&6; }
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5114 test -n "$MAKEINFO" && break
5117 if test -z "$MAKEINFO"; then
5120 # Found it, now check the version.
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5122 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5123 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5124 case $ac_prog_version in
5125 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5127 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5128 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5132 $as_echo "$ac_prog_version" >&6; }
5134 if test $ac_verc_fail = yes; then
5135 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5140 # Extract the first word of "$ac_prog", so it can be a program name with args.
5141 set dummy $ac_prog; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_SED+:} false; then :
5145 $as_echo_n "(cached) " >&6
5147 if test -n "$SED"; then
5148 ac_cv_prog_SED="$SED" # Let the user override the test.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_prog_SED="$ac_prog"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 if test -n "$SED"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5170 $as_echo "$SED" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5177 test -n "$SED" && break
5180 if test -z "$SED"; then
5183 # Found it, now check the version.
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5185 $as_echo_n "checking version of $SED... " >&6; }
5186 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5187 case $ac_prog_version in
5188 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5189 3.0[2-9]*|3.[1-9]*|[4-9]*)
5190 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5191 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5195 $as_echo "$ac_prog_version" >&6; }
5197 if test $ac_verc_fail = yes; then
5198 SED=: aux_missing="$aux_missing sed"
5202 if test -n "$ac_tool_prefix"; then
5203 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
5204 set dummy ${ac_tool_prefix}readelf; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_READELF+:} false; then :
5208 $as_echo_n "(cached) " >&6
5210 if test -n "$READELF"; then
5211 ac_cv_prog_READELF="$READELF" # Let the user override the test.
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 READELF=$ac_cv_prog_READELF
5231 if test -n "$READELF"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5233 $as_echo "$READELF" >&6; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5241 if test -z "$ac_cv_prog_READELF"; then
5242 ac_ct_READELF=$READELF
5243 # Extract the first word of "readelf", so it can be a program name with args.
5244 set dummy readelf; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
5248 $as_echo_n "(cached) " >&6
5250 if test -n "$ac_ct_READELF"; then
5251 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_ac_ct_READELF="readelf"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
5271 if test -n "$ac_ct_READELF"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
5273 $as_echo "$ac_ct_READELF" >&6; }
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5279 if test "x$ac_ct_READELF" = x; then
5282 case $cross_compiling:$ac_tool_warned in
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286 ac_tool_warned=yes ;;
5288 READELF=$ac_ct_READELF
5291 READELF="$ac_cv_prog_READELF"
5295 for ac_prog in autoconf
5297 # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if ${ac_cv_prog_AUTOCONF+:} false; then :
5302 $as_echo_n "(cached) " >&6
5304 if test -n "$AUTOCONF"; then
5305 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_AUTOCONF="$ac_prog"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 AUTOCONF=$ac_cv_prog_AUTOCONF
5325 if test -n "$AUTOCONF"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5327 $as_echo "$AUTOCONF" >&6; }
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5334 test -n "$AUTOCONF" && break
5336 test -n "$AUTOCONF" || AUTOCONF="no"
5338 case "x$AUTOCONF" in
5339 xno|x|x:) AUTOCONF=no ;;
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5342 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5343 if ${libc_cv_autoconf_works+:} false; then :
5344 $as_echo_n "(cached) " >&6
5346 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5347 libc_cv_autoconf_works=yes
5349 libc_cv_autoconf_works=no
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5353 $as_echo "$libc_cv_autoconf_works" >&6; }
5354 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5357 if test "x$AUTOCONF" = xno; then
5358 aux_missing="$aux_missing autoconf"
5361 test -n "$critic_missing" && as_fn_error $? "
5362 *** These critical programs are missing or too old:$critic_missing
5363 *** Check the INSTALL file for required versions." "$LINENO" 5
5365 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5366 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5367 *** some features will be disabled.
5368 *** Check the INSTALL file for required versions." >&5
5369 $as_echo "$as_me: WARNING:
5370 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5371 *** some features will be disabled.
5372 *** Check the INSTALL file for required versions." >&2;}
5374 # if using special system headers, find out the compiler's sekrit
5375 # header directory and add that to the list. NOTE: Only does the right
5376 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5377 if test -n "$sysheaders"; then
5378 SYSINCLUDES=-nostdinc
5379 for d in include include-fixed; do
5380 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5381 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5383 SYSINCLUDES="$SYSINCLUDES \
5384 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5385 if test -n "$CXX"; then
5386 cxxversion=`$CXX -dumpversion 2>&5` &&
5387 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5388 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5389 CXX_SYSINCLUDES="-isystem $cxxheaders \
5390 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5396 # ranlib is never necessary on Linux and Hurd systems
5399 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5400 # since this would lead to problems installing/building glibc.
5401 # LD_LIBRARY_PATH contains the current directory if one of the following
5403 # - one of the terminals (":" and ";") is the first or last sign
5404 # - two terminals occur directly after each other
5405 # - the path contains an element with a dot in it
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5407 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5408 case ${LD_LIBRARY_PATH} in
5409 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5410 ld_library_path_setting="contains current directory"
5413 ld_library_path_setting="ok"
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5417 $as_echo "$ld_library_path_setting" >&6; }
5418 if test "$ld_library_path_setting" != "ok"; then
5420 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5421 *** building glibc. Please change the environment variable
5422 *** and run configure again." "$LINENO" 5
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
5426 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5427 if ${libc_cv_gcc_static_libgcc+:} false; then :
5428 $as_echo_n "(cached) " >&6
5430 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5431 libc_cv_gcc_static_libgcc=
5433 libc_cv_gcc_static_libgcc=-static-libgcc
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
5437 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5440 # Extract the first word of "bash", so it can be a program name with args.
5441 set dummy bash; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_path_BASH_SHELL+:} false; then :
5445 $as_echo_n "(cached) " >&6
5449 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5459 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5471 BASH_SHELL=$ac_cv_path_BASH_SHELL
5472 if test -n "$BASH_SHELL"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5474 $as_echo "$BASH_SHELL" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5481 if test "$BASH_SHELL" != no &&
5482 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5483 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5484 libc_cv_have_bash2=yes
5486 libc_cv_have_bash2=no
5490 if test "$BASH_SHELL" = no; then
5491 # Extract the first word of "ksh", so it can be a program name with args.
5492 set dummy ksh; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_path_KSH+:} false; then :
5496 $as_echo_n "(cached) " >&6
5500 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5523 if test -n "$KSH"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSH" >&5
5525 $as_echo "$KSH" >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5532 if test "$KSH" = no; then
5535 libc_cv_have_ksh=yes
5540 libc_cv_have_ksh=yes
5544 for ac_prog in gawk mawk nawk awk
5546 # Extract the first word of "$ac_prog", so it can be a program name with args.
5547 set dummy $ac_prog; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_prog_AWK+:} false; then :
5551 $as_echo_n "(cached) " >&6
5553 if test -n "$AWK"; then
5554 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_AWK="$ac_prog"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 if test -n "$AWK"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5576 $as_echo "$AWK" >&6; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5583 test -n "$AWK" && break
5586 # Extract the first word of "perl", so it can be a program name with args.
5587 set dummy perl; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if ${ac_cv_path_PERL+:} false; then :
5591 $as_echo_n "(cached) " >&6
5595 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5617 PERL=$ac_cv_path_PERL
5618 if test -n "$PERL"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5620 $as_echo "$PERL" >&6; }
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5627 if test "$PERL" != no &&
5628 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5631 # Extract the first word of "install-info", so it can be a program name with args.
5632 set dummy install-info; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5636 $as_echo_n "(cached) " >&6
5638 case $INSTALL_INFO in
5640 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5645 for as_dir in $as_dummy
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5651 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5663 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5664 if test -n "$INSTALL_INFO"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5666 $as_echo "$INSTALL_INFO" >&6; }
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5673 # Extract the first word of "bison", so it can be a program name with args.
5674 set dummy bison; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if ${ac_cv_path_BISON+:} false; then :
5678 $as_echo_n "(cached) " >&6
5682 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5687 for as_dir in $as_dummy
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5705 BISON=$ac_cv_path_BISON
5706 if test -n "$BISON"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5708 $as_echo "$BISON" >&6; }
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size_t type" >&5
5717 $as_echo_n "checking for signed size_t type... " >&6; }
5718 if ${libc_cv_signed_size_t+:} false; then :
5719 $as_echo_n "(cached) " >&6
5721 echo '#include <stddef.h>
5722 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5723 if eval "$ac_cpp conftest.c 2>/dev/null" \
5724 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5725 libc_cv_signed_size_t=no
5727 libc_cv_signed_size_t=yes
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_signed_size_t" >&5
5732 $as_echo "$libc_cv_signed_size_t" >&6; }
5733 if test $libc_cv_signed_size_t = yes; then
5734 cat >> confdefs.h <<\EOF
5735 #undef __SIZE_TYPE__
5736 #define __SIZE_TYPE__ unsigned
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libc-friendly stddef.h" >&5
5741 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5742 if ${libc_cv_friendly_stddef+:} false; then :
5743 $as_echo_n "(cached) " >&6
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #define __need_size_t
5748 #define __need_wchar_t
5755 size_t size; wchar_t wchar;
5757 #error stddef.h ignored __need_*
5759 if (&size == NULL || &wchar == NULL) abort ();
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 libc_cv_friendly_stddef=yes
5767 libc_cv_friendly_stddef=no
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_friendly_stddef" >&5
5772 $as_echo "$libc_cv_friendly_stddef" >&6; }
5773 if test $libc_cv_friendly_stddef = yes; then
5774 config_vars="$config_vars
5775 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5
5779 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5780 if ${libc_cv_need_minus_P+:} false; then :
5781 $as_echo_n "(cached) " >&6
5783 cat > conftest.S <<EOF
5784 #include "confdefs.h"
5785 /* Nothing whatsoever. */
5787 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5792 test $ac_status = 0; }; }; then
5793 libc_cv_need_minus_P=no
5795 libc_cv_need_minus_P=yes
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5
5800 $as_echo "$libc_cv_need_minus_P" >&6; }
5801 if test $libc_cv_need_minus_P = yes; then
5802 config_vars="$config_vars
5803 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5807 $as_echo_n "checking for .set assembler directive... " >&6; }
5808 if ${libc_cv_asm_set_directive+:} false; then :
5809 $as_echo_n "(cached) " >&6
5811 cat > conftest.s <<EOF
5814 .set glibc_conftest_frobozz,foo
5815 $libc_cv_asm_global_directive glibc_conftest_frobozz
5817 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5818 # (but it doesn't work), so we must do a linking check to be sure.
5819 cat > conftest1.c <<\EOF
5820 extern int glibc_conftest_frobozz;
5821 void _start() { glibc_conftest_frobozz = 1; }
5823 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5824 -nostartfiles -nostdlib \
5825 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5826 libc_cv_asm_set_directive=yes
5828 libc_cv_asm_set_directive=no
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5833 $as_echo "$libc_cv_asm_set_directive" >&6; }
5834 if test $libc_cv_asm_set_directive = yes; then
5835 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5
5840 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5841 if ${libc_cv_asm_unique_object+:} false; then :
5842 $as_echo_n "(cached) " >&6
5844 cat > conftest.s <<EOF
5847 .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
5849 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5850 libc_cv_asm_unique_object=yes
5852 libc_cv_asm_unique_object=no
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5
5857 $as_echo "$libc_cv_asm_unique_object" >&6; }
5858 if test $libc_cv_asm_unique_object = yes; then
5859 $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .symver assembler directive" >&5
5864 $as_echo_n "checking for .symver assembler directive... " >&6; }
5865 if ${libc_cv_asm_symver_directive+:} false; then :
5866 $as_echo_n "(cached) " >&6
5868 cat > conftest.s <<EOF
5871 .symver _sym,sym@VERS
5873 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5874 libc_cv_asm_symver_directive=yes
5876 libc_cv_asm_symver_directive=no
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_symver_directive" >&5
5881 $as_echo "$libc_cv_asm_symver_directive" >&6; }
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
5883 $as_echo_n "checking for ld --version-script... " >&6; }
5884 if ${libc_cv_ld_version_script_option+:} false; then :
5885 $as_echo_n "(cached) " >&6
5887 if test $libc_cv_asm_symver_directive = yes; then
5888 cat > conftest.s <<EOF
5891 .symver _sym,sym@VERS
5893 cat > conftest.map <<EOF
5902 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5903 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5904 -o conftest.so conftest.o
5905 -nostartfiles -nostdlib
5906 -Wl,--version-script,conftest.map
5908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; }; };
5914 libc_cv_ld_version_script_option=yes
5916 libc_cv_ld_version_script_option=no
5919 libc_cv_ld_version_script_option=no
5922 libc_cv_ld_version_script_option=no
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_version_script_option" >&5
5927 $as_echo "$libc_cv_ld_version_script_option" >&6; }
5928 if test $shared != no &&
5929 test $libc_cv_asm_symver_directive = yes &&
5930 test $libc_cv_ld_version_script_option = yes &&
5931 test $enable_versioning = yes; then
5933 $as_echo "#define DO_VERSIONING 1" >>confdefs.h
5940 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5942 *** WARNING: You should not compile GNU libc without versioning. Not using
5943 *** versioning will introduce incompatibilities so that old binaries
5944 *** will not run anymore.
5945 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5947 if test $elf = yes; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5
5949 $as_echo_n "checking for .previous assembler directive... " >&6; }
5950 if ${libc_cv_asm_previous_directive+:} false; then :
5951 $as_echo_n "(cached) " >&6
5953 cat > conftest.s <<EOF
5954 .section foo_section
5957 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5962 test $ac_status = 0; }; }; then
5963 libc_cv_asm_previous_directive=yes
5965 libc_cv_asm_previous_directive=no
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5
5970 $as_echo "$libc_cv_asm_previous_directive" >&6; }
5971 if test $libc_cv_asm_previous_directive = yes; then
5972 $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5
5976 $as_echo_n "checking for .popsection assembler directive... " >&6; }
5977 if ${libc_cv_asm_popsection_directive+:} false; then :
5978 $as_echo_n "(cached) " >&6
5980 cat > conftest.s <<EOF
5981 .pushsection foo_section
5984 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5989 test $ac_status = 0; }; }; then
5990 libc_cv_asm_popsection_directive=yes
5992 libc_cv_asm_popsection_directive=no
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5
5997 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
5998 if test $libc_cv_asm_popsection_directive = yes; then
5999 $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
6004 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6005 if ${libc_cv_asm_protected_directive+:} false; then :
6006 $as_echo_n "(cached) " >&6
6008 cat > conftest.s <<EOF
6014 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6019 test $ac_status = 0; }; }; then
6020 libc_cv_asm_protected_directive=yes
6022 as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
6027 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6029 if test $libc_cv_asm_protected_directive = yes; then
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
6031 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6032 if ${libc_cv_visibility_attribute+:} false; then :
6033 $as_echo_n "(cached) " >&6
6035 cat > conftest.c <<EOF
6036 int foo __attribute__ ((visibility ("hidden"))) = 1;
6037 int bar __attribute__ ((visibility ("protected"))) = 1;
6039 libc_cv_visibility_attribute=no
6040 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6045 test $ac_status = 0; }; }; then
6046 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6047 if grep '\.protected.*bar' conftest.s >/dev/null; then
6048 libc_cv_visibility_attribute=yes
6052 rm -f conftest.{c,s}
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
6056 $as_echo "$libc_cv_visibility_attribute" >&6; }
6057 if test $libc_cv_visibility_attribute != yes; then
6058 as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5
6062 if test $libc_cv_visibility_attribute = yes; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
6064 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6065 if ${libc_cv_broken_visibility_attribute+:} false; then :
6066 $as_echo_n "(cached) " >&6
6068 cat > conftest.c <<EOF
6070 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6071 int bar (int x) { return x; }
6073 libc_cv_broken_visibility_attribute=yes
6074 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079 test $ac_status = 0; }; }; then
6080 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6081 libc_cv_broken_visibility_attribute=no
6084 rm -f conftest.c conftest.s
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
6088 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6089 if test $libc_cv_broken_visibility_attribute = yes; then
6090 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6095 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6096 if ${libc_cv_broken_alias_attribute+:} false; then :
6097 $as_echo_n "(cached) " >&6
6099 cat > conftest.c <<EOF
6100 extern int foo (int x) __asm ("xyzzy");
6101 int bar (int x) { return x; }
6102 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6104 extern __typeof (dfoo) dfoo __asm ("abccb");
6107 libc_cv_broken_alias_attribute=yes
6108 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6113 test $ac_status = 0; }; }; then
6114 if grep 'xyzzy' conftest.s >/dev/null &&
6115 grep 'abccb' conftest.s >/dev/null; then
6116 libc_cv_broken_alias_attribute=no
6119 rm -f conftest.c conftest.s
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
6123 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6124 if test $libc_cv_broken_alias_attribute = yes; then
6125 as_fn_error $? "working alias attribute support required" "$LINENO" 5
6128 if test $libc_cv_visibility_attribute = yes; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
6130 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6131 if ${libc_cv_have_sdata_section+:} false; then :
6132 $as_echo_n "(cached) " >&6
6134 echo "int i;" > conftest.c
6135 libc_cv_have_sdata_section=no
6136 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6137 | grep '\.sdata' >/dev/null; then
6138 libc_cv_have_sdata_section=yes
6140 rm -f conftest.c conftest.so
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
6144 $as_echo "$libc_cv_have_sdata_section" >&6; }
6145 if test $libc_cv_have_sdata_section = yes; then
6146 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
6152 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6153 if ${libc_cv_initfini_array+:} false; then :
6154 $as_echo_n "(cached) " >&6
6156 cat > conftest.c <<EOF
6157 int _start (void) { return 0; }
6158 int __start (void) { return 0; }
6159 int foo (void) { return 1; }
6160 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6162 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6163 -static -nostartfiles -nostdlib 1>&5'
6164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; }; }
6170 if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then
6171 libc_cv_initfini_array=yes
6173 libc_cv_initfini_array=no
6176 libc_cv_initfini_array=no
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
6181 $as_echo "$libc_cv_initfini_array" >&6; }
6182 if test $libc_cv_initfini_array != yes; then
6183 as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
6187 $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
6188 if ${libc_cv_ctors_header+:} false; then :
6189 $as_echo_n "(cached) " >&6
6191 libc_cv_ctors_header=yes
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6199 __attribute__ ((constructor)) void ctor (void) { puts("ctor"); }
6200 __attribute__ ((destructor)) void dtor (void) { puts("dtor"); }
6206 if ac_fn_c_try_link "$LINENO"; then :
6207 if $READELF -WS conftest$ac_exeext | $AWK '
6208 { gsub(/\[ */, "[") }
6209 $2 == ".ctors" || $2 == ".dtors" {
6210 size = strtonum("0x" $6)
6211 align = strtonum("0x" $NF)
6213 stub[$2] = size == align * 2
6216 ctors_ok = !seen[".ctors"] || stub[".ctors"]
6217 dtors_ok = !seen[".dtors"] || stub[".dtors"]
6218 exit ((ctors_ok && dtors_ok) ? 0 : 1)
6221 libc_cv_ctors_header=no
6225 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
6233 $as_echo "$libc_cv_ctors_header" >&6; }
6234 if test $libc_cv_ctors_header = no; then
6235 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
6240 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6241 if ${libc_cv_cc_with_libunwind+:} false; then :
6242 $as_echo_n "(cached) " >&6
6245 cat > conftest.c <<EOF
6246 int main (void) { return 0; }
6248 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6249 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6250 libc_cv_cc_with_libunwind=yes
6252 libc_cv_cc_with_libunwind=no
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6257 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6259 if test $libc_cv_cc_with_libunwind = yes; then
6260 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodelete option" >&5
6265 $as_echo_n "checking for -z nodelete option... " >&6; }
6266 if ${libc_cv_z_nodelete+:} false; then :
6267 $as_echo_n "(cached) " >&6
6269 cat > conftest.c <<EOF
6270 int _start (void) { return 42; }
6272 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6273 -fPIC -shared -o conftest.so conftest.c
6274 -nostartfiles -nostdlib
6275 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6280 test $ac_status = 0; }; }
6282 libc_cv_z_nodelete=yes
6284 as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodelete" >&5
6289 $as_echo "$libc_cv_z_nodelete" >&6; }
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodlopen option" >&5
6292 $as_echo_n "checking for -z nodlopen option... " >&6; }
6293 if ${libc_cv_z_nodlopen+:} false; then :
6294 $as_echo_n "(cached) " >&6
6296 cat > conftest.c <<EOF
6297 int _start (void) { return 42; }
6299 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6300 -fPIC -shared -o conftest.so conftest.c
6301 -nostartfiles -nostdlib
6302 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307 test $ac_status = 0; }; }
6309 libc_cv_z_nodlopen=yes
6311 as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodlopen" >&5
6316 $as_echo "$libc_cv_z_nodlopen" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z initfirst option" >&5
6319 $as_echo_n "checking for -z initfirst option... " >&6; }
6320 if ${libc_cv_z_initfirst+:} false; then :
6321 $as_echo_n "(cached) " >&6
6323 cat > conftest.c <<EOF
6324 int _start (void) { return 42; }
6326 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6327 -fPIC -shared -o conftest.so conftest.c
6328 -nostartfiles -nostdlib
6329 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6334 test $ac_status = 0; }; }
6336 libc_cv_z_initfirst=yes
6338 as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_initfirst" >&5
6343 $as_echo "$libc_cv_z_initfirst" >&6; }
6345 # Add-on fragments can set these for other machines.
6346 libc_commonpagesize=${libc_commonpagesize:-no}
6347 libc_relro_required=${libc_relro_required:-no}
6348 case "$base_machine" in
6349 i[34567]86 | x86_64 | powerpc* | s390*)
6350 libc_commonpagesize=0x1000
6351 libc_relro_required=yes
6354 libc_commonpagesize=0x2000
6355 libc_relro_required=yes
6358 libc_commonpagesize=0x4000
6361 libc_commonpagesize=0x10000
6362 libc_relro_required=yes
6366 if test $libc_commonpagesize != no; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z relro option" >&5
6368 $as_echo_n "checking for -z relro option... " >&6; }
6369 if ${libc_cv_z_relro+:} false; then :
6370 $as_echo_n "(cached) " >&6
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6376 int _start (void) { return 42; }
6377 extern void _exit (int);
6378 /* Since these pointers are const, they should go in rodata.
6379 Since they refer to functions that have to be resolved by
6380 dynamic linking, they should instead go in RELRO data. */
6381 const void *const relro[] = { &_start, &_exit, 0 };
6382 /* GNU ld fails to produce RELRO data when it's very small and there is no
6383 normal writable data following it, or if only uninitialized (.bss) data
6384 follows it, or only very small writable data. */
6385 int data[0x10000] = { 1, };
6388 cat > conftest.awk <<\EOF
6391 commonpagesize = strtonum(commonpagesize)
6393 { print "LINE:", $0 > "/dev/stderr" }
6395 vaddr = strtonum($3)
6396 memsz = strtonum($6)
6398 printf "vaddr %#x memsz %#x end %#x commonpagesize %#x\n", \
6399 vaddr, memsz, end, commonpagesize > "/dev/stderr"
6400 result = (end % commonpagesize == 0) ? "yes" : "broken"
6402 END { print result }
6404 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6405 -fPIC -shared -o conftest.so conftest.c
6406 -nostartfiles -nostdlib
6408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6412 test $ac_status = 0; }; } &&
6413 { ac_try='$READELF -Wl conftest.so > conftest.ph'
6414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6418 test $ac_status = 0; }; } &&
6420 $AWK -v commonpagesize=$libc_commonpagesize -f conftest.awk
6421 conftest.ph > conftest.cps
6423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427 test $ac_status = 0; }; } &&
6428 libc_cv_z_relro=`cat conftest.cps 2>&5`
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_relro" >&5
6432 $as_echo "$libc_cv_z_relro" >&6; }
6433 if { test "x$libc_relro_required" = xyes &&
6434 test "x$libc_cv_z_relro" != xyes
6437 as_fn_error $? "linker with -z relro support required" "$LINENO" 5
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing architecture parameter to check for working -z relro" >&5
6441 $as_echo "$as_me: WARNING: missing architecture parameter to check for working -z relro" >&2;}
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5
6445 $as_echo_n "checking for -Bgroup option... " >&6; }
6446 if ${libc_cv_Bgroup+:} false; then :
6447 $as_echo_n "(cached) " >&6
6449 cat > conftest.c <<EOF
6450 int _start (void) { return 42; }
6452 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6453 -fPIC -shared -o conftest.so conftest.c
6454 -Wl,-Bgroup -nostdlib 1>&5'
6455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459 test $ac_status = 0; }; }
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5
6468 $as_echo "$libc_cv_Bgroup" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcc_s suffix" >&5
6472 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6473 if ${libc_cv_libgcc_s_suffix+:} false; then :
6474 $as_echo_n "(cached) " >&6
6476 cat > conftest.c <<EOF
6477 int main (void) { return 0; }
6479 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6480 -fPIC -shared -shared-libgcc -o conftest.so \
6481 conftest.c -v 2>&1 >/dev/null \
6482 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_libgcc_s_suffix" >&5
6486 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --as-needed option" >&5
6490 $as_echo_n "checking for --as-needed option... " >&6; }
6491 if ${libc_cv_as_needed+:} false; then :
6492 $as_echo_n "(cached) " >&6
6494 cat > conftest.c <<EOF
6495 int main (void) { return 0; }
6497 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6498 -fPIC -shared -o conftest.so conftest.c
6499 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505 test $ac_status = 0; }; }
6507 libc_cv_as_needed=yes
6509 libc_cv_as_needed=no
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_needed" >&5
6514 $as_echo "$libc_cv_as_needed" >&6; }
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6519 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6520 if ${libc_cv_as_noexecstack+:} false; then :
6521 $as_echo_n "(cached) " >&6
6523 cat > conftest.c <<EOF
6526 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6527 -S -o conftest.s conftest.c 1>&5'
6528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532 test $ac_status = 0; }; } \
6533 && grep -q .note.GNU-stack conftest.s \
6534 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6535 -c -o conftest.o conftest.s 1>&5'
6536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540 test $ac_status = 0; }; }
6542 libc_cv_as_noexecstack=yes
6544 libc_cv_as_noexecstack=no
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6549 $as_echo "$libc_cv_as_noexecstack" >&6; }
6550 if test $libc_cv_as_noexecstack = yes; then
6551 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
6556 $as_echo_n "checking for -z combreloc... " >&6; }
6557 if ${libc_cv_z_combreloc+:} false; then :
6558 $as_echo_n "(cached) " >&6
6560 cat > conftest.c <<EOF
6561 extern int bar (int);
6563 int foo (void) { return bar (mumble); }
6565 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6566 -fPIC -shared -o conftest.so conftest.c
6567 -nostdlib -nostartfiles
6568 -Wl,-z,combreloc 1>&5'
6569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }; }
6575 if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6576 libc_cv_z_combreloc=yes
6578 libc_cv_z_combreloc=no
6581 libc_cv_z_combreloc=no
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
6586 $as_echo "$libc_cv_z_combreloc" >&6; }
6587 if test "$libc_cv_z_combreloc" = yes; then
6588 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z execstack" >&5
6594 $as_echo_n "checking for -z execstack... " >&6; }
6595 if ${libc_cv_z_execstack+:} false; then :
6596 $as_echo_n "(cached) " >&6
6598 cat > conftest.c <<EOF
6599 int _start (void) { return 42; }
6601 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6602 -fPIC -shared -o conftest.so conftest.c
6603 -Wl,-z,execstack -nostdlib
6605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; }; }
6611 libc_cv_z_execstack=yes
6613 libc_cv_z_execstack=no
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_execstack" >&5
6618 $as_echo "$libc_cv_z_execstack" >&6; }
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6622 $as_echo_n "checking for -fpie... " >&6; }
6623 if ${libc_cv_fpie+:} false; then :
6624 $as_echo_n "(cached) " >&6
6626 cat > conftest.c <<EOF
6628 main () { return 0;}
6630 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6631 -o conftest conftest.c 1>&5'
6632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636 test $ac_status = 0; }; }
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6645 $as_echo "$libc_cv_fpie" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
6650 $as_echo_n "checking for --hash-style option... " >&6; }
6651 if ${libc_cv_hashstyle+:} false; then :
6652 $as_echo_n "(cached) " >&6
6654 cat > conftest.c <<EOF
6655 int _start (void) { return 42; }
6657 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6658 -fPIC -shared -o conftest.so conftest.c
6659 -Wl,--hash-style=both -nostdlib 1>&5'
6660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6664 test $ac_status = 0; }; }
6666 libc_cv_hashstyle=yes
6668 libc_cv_hashstyle=no
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
6673 $as_echo "$libc_cv_hashstyle" >&6; }
6676 # The linker's default -shared behavior is good enough if it
6677 # does these things that our custom linker scripts ensure that
6678 # all allocated NOTE sections come first.
6679 if test "$use_default_link" = default; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
6681 $as_echo_n "checking for sufficient default -shared layout... " >&6; }
6682 if ${libc_cv_use_default_link+:} false; then :
6683 $as_echo_n "(cached) " >&6
6685 libc_cv_use_default_link=no
6686 cat > conftest.s <<\EOF
6687 .section .note.a,"a",%note
6692 .section .note.b,"a",%note
6698 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
6699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703 test $ac_status = 0; }; } &&
6704 ac_try=`$READELF -S conftest.so | sed -n \
6706 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
6712 libc_seen_a=no libc_seen_b=no
6714 while test $# -ge 2 -a "$1" = NOTE; do
6716 .note.a) libc_seen_a=yes ;;
6717 .note.b) libc_seen_b=yes ;;
6721 case "$libc_seen_a$libc_seen_b" in
6723 libc_cv_use_default_link=yes
6727 $libc_seen_a$libc_seen_b from:
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
6735 $as_echo "$libc_cv_use_default_link" >&6; }
6736 use_default_link=$libc_cv_use_default_link
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
6741 $as_echo_n "checking linker output format... " >&6; }
6742 if ${libc_cv_output_format+:} false; then :
6743 $as_echo_n "(cached) " >&6
6745 if libc_cv_output_format=`
6746 ${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5`
6750 libc_cv_output_format=
6752 test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
6755 $as_echo "$libc_cv_output_format" >&6; }
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6759 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6760 if ${libc_cv_fno_toplevel_reorder+:} false; then :
6761 $as_echo_n "(cached) " >&6
6763 cat > conftest.c <<EOF
6766 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772 test $ac_status = 0; }; }
6774 libc_cv_fno_toplevel_reorder=yes
6776 libc_cv_fno_toplevel_reorder=no
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6781 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6782 if test $libc_cv_fno_toplevel_reorder = yes; then
6783 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6785 fno_unit_at_a_time=-fno-unit-at-a-time
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6790 $as_echo_n "checking for -fstack-protector... " >&6; }
6791 if ${libc_cv_ssp+:} false; then :
6792 $as_echo_n "(cached) " >&6
6794 cat > conftest.c <<EOF
6796 main () { return 0;}
6798 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6799 -o conftest conftest.c 1>&5'
6800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; }; }
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6813 $as_echo "$libc_cv_ssp" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5
6817 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6818 if ${libc_cv_gnu89_inline+:} false; then :
6819 $as_echo_n "(cached) " >&6
6821 cat > conftest.c <<EOF
6823 #ifdef __GNUC_GNU_INLINE__
6824 main () { return 0;}
6829 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6830 -o conftest.s conftest.c 1>&5'
6831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }; }
6837 libc_cv_gnu89_inline=yes
6839 libc_cv_gnu89_inline=no
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5
6844 $as_echo "$libc_cv_gnu89_inline" >&6; }
6845 if test $libc_cv_gnu89_inline = yes; then
6846 gnu89_inline=-fgnu89-inline
6852 if test $elf != yes; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .init and .fini sections" >&5
6854 $as_echo_n "checking for .init and .fini sections... " >&6; }
6855 if ${libc_cv_have_initfini+:} false; then :
6856 $as_echo_n "(cached) " >&6
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6864 asm (".section .init");
6865 asm (".section .fini");
6866 asm ("${libc_cv_dot_text}");
6871 if ac_fn_c_try_compile "$LINENO"; then :
6872 libc_cv_have_initfini=yes
6874 libc_cv_have_initfini=no
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_initfini" >&5
6879 $as_echo "$libc_cv_have_initfini" >&6; }
6880 if test $libc_cv_have_initfini = yes; then
6881 $as_echo "#define HAVE_INITFINI 1" >>confdefs.h
6886 if test $elf = yes; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6888 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6889 if ${libc_cv_have_section_quotes+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 cat > conftest.c <<EOF
6893 static const int foo
6894 __attribute__ ((section ("bar"))) = 1;
6896 if ${CC-cc} -S conftest.c -o conftest.s; then
6897 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6898 libc_cv_have_section_quotes=yes
6900 libc_cv_have_section_quotes=no
6903 libc_cv_have_section_quotes=unknown
6905 rm -f conftest.{c,s}
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6909 $as_echo "$libc_cv_have_section_quotes" >&6; }
6910 if test $libc_cv_have_section_quotes = yes; then
6911 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6918 if test $elf = yes; then
6919 libc_cv_asm_underscores=no
6921 if test $ac_cv_prog_cc_works = yes; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6923 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6924 if ${libc_cv_asm_underscores+:} false; then :
6925 $as_echo_n "(cached) " >&6
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6929 asm ("_glibc_foobar:");
6938 if ac_fn_c_try_link "$LINENO"; then :
6939 libc_cv_asm_underscores=yes
6941 libc_cv_asm_underscores=no
6943 rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6947 $as_echo "$libc_cv_asm_underscores" >&6; }
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6950 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6951 if ${libc_cv_asm_underscores+:} false; then :
6952 $as_echo_n "(cached) " >&6
6954 cat > conftest.$ac_ext <<EOF
6955 #line $LINENO "configure"
6956 #include "confdefs.h"
6957 void underscore_test(void) {
6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6961 (eval $ac_compile) 2>&5
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }; then
6965 if grep _underscore_test conftest* >/dev/null; then
6967 libc_cv_asm_underscores=yes
6970 libc_cv_asm_underscores=no
6973 echo "configure: failed program was:" >&5
6974 cat conftest.$ac_ext >&5
6976 libc_cv_asm_underscores=no
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6981 $as_echo "$libc_cv_asm_underscores" >&6; }
6984 if test $libc_cv_asm_underscores = no; then
6985 $as_echo "#define NO_UNDERSCORES 1" >>confdefs.h
6989 if test $elf = yes; then
6990 libc_cv_weak_symbols=yes
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5
6994 $as_echo_n "checking for assembler .weak directive... " >&6; }
6995 if ${libc_cv_asm_weak_directive+:} false; then :
6996 $as_echo_n "(cached) " >&6
6998 cat > conftest.s <<EOF
7000 ${libc_cv_asm_global_directive} foo
7003 .weak bar; bar = foo
7005 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7010 test $ac_status = 0; }; }; then
7011 libc_cv_asm_weak_directive=yes
7013 libc_cv_asm_weak_directive=no
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5
7018 $as_echo "$libc_cv_asm_weak_directive" >&6; }
7020 if test $libc_cv_asm_weak_directive = no; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5
7022 $as_echo_n "checking for assembler .weakext directive... " >&6; }
7023 if ${libc_cv_asm_weakext_directive+:} false; then :
7024 $as_echo_n "(cached) " >&6
7026 cat > conftest.s <<EOF
7028 ${libc_cv_asm_global_directive} foo
7032 ${libc_cv_asm_global_directive} baz
7035 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040 test $ac_status = 0; }; }; then
7041 libc_cv_asm_weakext_directive=yes
7043 libc_cv_asm_weakext_directive=no
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5
7048 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7052 if test $libc_cv_asm_weak_directive = yes; then
7053 $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h
7055 elif test $libc_cv_asm_weakext_directive = yes; then
7056 $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported" >&5
7061 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7062 if ${libc_cv_asm_cfi_directives+:} false; then :
7063 $as_echo_n "(cached) " >&6
7066 sparc/sparc64*) cfi_offset=2047;;
7069 cat > conftest.s <<EOF
7071 .type func,%function
7075 .cfi_rel_offset 1, $cfi_offset
7078 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083 test $ac_status = 0; }; }; then
7084 libc_cv_asm_cfi_directives=yes
7086 libc_cv_asm_cfi_directives=no
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_cfi_directives" >&5
7091 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7092 if test $libc_cv_asm_cfi_directives = yes; then
7093 $as_echo "#define HAVE_ASM_CFI_DIRECTIVES 1" >>confdefs.h
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
7098 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7099 if ${libc_cv_ld_no_whole_archive+:} false; then :
7100 $as_echo_n "(cached) " >&6
7102 cat > conftest.c <<\EOF
7107 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7108 -nostdlib -nostartfiles -Wl,--no-whole-archive
7109 -o conftest conftest.c 1>&5'
7110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7114 test $ac_status = 0; }; }; then
7115 libc_cv_ld_no_whole_archive=yes
7117 libc_cv_ld_no_whole_archive=no
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
7122 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7123 if test $libc_cv_ld_no_whole_archive = no; then
7124 as_fn_error $? "support for --no-whole-archive is needed" "$LINENO" 5
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5
7128 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7129 if ${libc_cv_gcc_exceptions+:} false; then :
7130 $as_echo_n "(cached) " >&6
7132 cat > conftest.c <<\EOF
7137 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7138 -nostdlib -nostartfiles -fexceptions
7139 -o conftest conftest.c 1>&5'
7140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144 test $ac_status = 0; }; }; then
7145 libc_cv_gcc_exceptions=yes
7147 libc_cv_gcc_exceptions=no
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5
7152 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7153 if test $libc_cv_gcc_exceptions = yes; then
7154 exceptions=-fexceptions
7157 if test "$host_cpu" = powerpc ; then
7158 # Check for a bug present in at least versions 2.8.x of GCC
7159 # and versions 1.0.x of EGCS.
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clobbering cr0 causes problems" >&5
7161 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7162 if ${libc_cv_c_asmcr0_bug+:} false; then :
7163 $as_echo_n "(cached) " >&6
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7167 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7176 if ac_fn_c_try_compile "$LINENO"; then :
7177 libc_cv_c_asmcr0_bug='no'
7179 libc_cv_c_asmcr0_bug='yes'
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_asmcr0_bug" >&5
7184 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7185 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7186 $as_echo "#define BROKEN_PPC_ASM_CR0 1" >>confdefs.h
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
7192 $as_echo_n "checking for __builtin_expect... " >&6; }
7193 if ${libc_cv_gcc_builtin_expect+:} false; then :
7194 $as_echo_n "(cached) " >&6
7196 cat > conftest.c <<EOF
7197 #line $LINENO "configure"
7200 a = __builtin_expect (a, 10);
7201 return a == 10 ? 0 : 1;
7204 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7205 -o conftest conftest.c -lgcc >&5'
7206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; }; }; then
7211 libc_cv_gcc_builtin_expect=yes
7213 libc_cv_gcc_builtin_expect=no
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_expect" >&5
7218 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7219 if test "$libc_cv_gcc_builtin_expect" = no; then
7220 as_fn_error $? "support for __builtin_expect needed" "$LINENO" 5
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7224 $as_echo_n "checking for __builtin_memset... " >&6; }
7225 if ${libc_cv_gcc_builtin_memset+:} false; then :
7226 $as_echo_n "(cached) " >&6
7228 cat > conftest.c <<\EOF
7231 __builtin_memset (x, 0, 1000);
7234 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7239 test $ac_status = 0; }; };
7241 libc_cv_gcc_builtin_memset=no
7243 libc_cv_gcc_builtin_memset=yes
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7248 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7249 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7250 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7255 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7256 if ${libc_cv_gcc_builtin_redirection+:} false; then :
7257 $as_echo_n "(cached) " >&6
7259 cat > conftest.c <<\EOF
7260 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7261 char *foo (const char *a, const char *b)
7263 return __builtin_strstr (a, b);
7266 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7271 test $ac_status = 0; }; };
7273 libc_cv_gcc_builtin_redirection=yes
7275 libc_cv_gcc_builtin_redirection=no
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7280 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7281 if test "$libc_cv_gcc_builtin_redirection" = no; then
7282 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
7286 $as_echo_n "checking for __thread... " >&6; }
7287 if ${libc_cv_gcc___thread+:} false; then :
7288 $as_echo_n "(cached) " >&6
7290 cat > conftest.c <<\EOF
7291 __thread int a = 42;
7293 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298 test $ac_status = 0; }; }; then
7299 libc_cv_gcc___thread=yes
7301 libc_cv_gcc___thread=no
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
7306 $as_echo "$libc_cv_gcc___thread" >&6; }
7307 if test "$libc_cv_gcc___thread" = no; then
7308 as_fn_error $? "support for the __thread keyword is required" "$LINENO" 5
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5
7312 $as_echo_n "checking for tls_model attribute... " >&6; }
7313 if ${libc_cv_gcc_tls_model_attr+:} false; then :
7314 $as_echo_n "(cached) " >&6
7316 cat > conftest.c <<\EOF
7317 extern __thread int a __attribute__((tls_model ("initial-exec")));
7319 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324 test $ac_status = 0; }; }; then
7325 libc_cv_gcc_tls_model_attr=yes
7327 libc_cv_gcc_tls_model_attr=no
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5
7332 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7333 if test "$libc_cv_gcc_tls_model_attr" = no; then
7334 as_fn_error $? "support for the tls_model attribute is required" "$LINENO" 5
7337 if test -n "$submachine"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7339 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7340 if ${libc_cv_cc_submachine+:} false; then :
7341 $as_echo_n "(cached) " >&6
7343 libc_cv_cc_submachine=no
7344 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7345 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350 test $ac_status = 0; }; }; then
7351 libc_cv_cc_submachine="$opt"
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7357 $as_echo "$libc_cv_cc_submachine" >&6; }
7358 if test "x$libc_cv_cc_submachine" = xno; then
7359 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
7365 $as_echo_n "checking for libgd... " >&6; }
7366 if test "$with_gd" != "no"; then
7367 old_CFLAGS="$CFLAGS"
7368 CFLAGS="$CFLAGS $libgd_include"
7369 old_LDFLAGS="$LDFLAGS"
7370 LDFLAGS="$LDFLAGS $libgd_ldflags"
7372 LIBS="$LIBS -lgd -lpng -lz -lm"
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7384 if ac_fn_c_try_link "$LINENO"; then :
7389 rm -f core conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext
7391 CFLAGS="$old_CFLAGS"
7392 LDFLAGS="$old_LDFLAGS"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
7398 $as_echo "$LIBGD" >&6; }
7402 if test x$with_selinux = xno ; then
7405 # See if we have the SELinux library
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
7407 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7408 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
7409 $as_echo_n "(cached) " >&6
7411 ac_check_lib_save_LIBS=$LIBS
7412 LIBS="-lselinux $LIBS"
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7416 /* Override any GCC internal prototype to avoid an error.
7417 Use char because int might match the return type of a GCC
7418 builtin and then its argument prototype would still apply. */
7422 char is_selinux_enabled ();
7426 return is_selinux_enabled ();
7431 if ac_fn_c_try_link "$LINENO"; then :
7432 ac_cv_lib_selinux_is_selinux_enabled=yes
7434 ac_cv_lib_selinux_is_selinux_enabled=no
7436 rm -f core conftest.err conftest.$ac_objext \
7437 conftest$ac_exeext conftest.$ac_ext
7438 LIBS=$ac_check_lib_save_LIBS
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7441 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7442 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
7448 # See if we have the SELinux header with the NSCD permissions in it.
7449 if test x$have_selinux = xyes ; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7451 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 #include <selinux/av_permissions.h>
7458 #ifdef NSCD__SHMEMHOST
7461 #error NSCD__SHMEMHOST not defined
7467 if ac_fn_c_try_compile "$LINENO"; then :
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_selinux" >&5
7474 $as_echo "$have_selinux" >&6; }
7477 if test x$with_selinux = xyes ; then
7478 if test x$have_selinux = xno ; then
7479 as_fn_error $? "SELinux explicitly required, but sufficiently recent SELinux library not found" "$LINENO" 5
7483 # Check if we're building with SELinux support.
7484 if test "x$have_selinux" = xyes; then
7486 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7489 # See if we have the libaudit library
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
7491 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7492 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
7493 $as_echo_n "(cached) " >&6
7495 ac_check_lib_save_LIBS=$LIBS
7496 LIBS="-laudit $LIBS"
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7500 /* Override any GCC internal prototype to avoid an error.
7501 Use char because int might match the return type of a GCC
7502 builtin and then its argument prototype would still apply. */
7506 char audit_log_user_avc_message ();
7510 return audit_log_user_avc_message ();
7515 if ac_fn_c_try_link "$LINENO"; then :
7516 ac_cv_lib_audit_audit_log_user_avc_message=yes
7518 ac_cv_lib_audit_audit_log_user_avc_message=no
7520 rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 LIBS=$ac_check_lib_save_LIBS
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7525 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7526 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
7532 if test "x$have_libaudit" = xyes; then
7534 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
7539 # See if we have the libcap library
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
7541 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7542 if ${ac_cv_lib_cap_cap_init+:} false; then :
7543 $as_echo_n "(cached) " >&6
7545 ac_check_lib_save_LIBS=$LIBS
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7550 /* Override any GCC internal prototype to avoid an error.
7551 Use char because int might match the return type of a GCC
7552 builtin and then its argument prototype would still apply. */
7565 if ac_fn_c_try_link "$LINENO"; then :
7566 ac_cv_lib_cap_cap_init=yes
7568 ac_cv_lib_cap_cap_init=no
7570 rm -f core conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7572 LIBS=$ac_check_lib_save_LIBS
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
7575 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7576 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
7582 if test "x$have_libcap" = xyes; then
7584 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7593 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7594 if ${ac_cv_path_GREP+:} false; then :
7595 $as_echo_n "(cached) " >&6
7597 if test -z "$GREP"; then
7598 ac_path_GREP_found=false
7599 # Loop through the user's path and test for each of PROGNAME-LIST
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7604 test -z "$as_dir" && as_dir=.
7605 for ac_prog in grep ggrep; do
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7608 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7609 # Check for GNU ac_path_GREP and select it if it is found.
7610 # Check for GNU $ac_path_GREP
7611 case `"$ac_path_GREP" --version 2>&1` in
7613 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7616 $as_echo_n 0123456789 >"conftest.in"
7619 cat "conftest.in" "conftest.in" >"conftest.tmp"
7620 mv "conftest.tmp" "conftest.in"
7621 cp "conftest.in" "conftest.nl"
7622 $as_echo 'GREP' >> "conftest.nl"
7623 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7625 as_fn_arith $ac_count + 1 && ac_count=$as_val
7626 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7627 # Best one so far, save it but keep looking for a better one
7628 ac_cv_path_GREP="$ac_path_GREP"
7629 ac_path_GREP_max=$ac_count
7631 # 10*(2^10) chars as input seems more than enough
7632 test $ac_count -gt 10 && break
7634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7637 $ac_path_GREP_found && break 3
7642 if test -z "$ac_cv_path_GREP"; then
7643 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7646 ac_cv_path_GREP=$GREP
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7651 $as_echo "$ac_cv_path_GREP" >&6; }
7652 GREP="$ac_cv_path_GREP"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7656 $as_echo_n "checking for egrep... " >&6; }
7657 if ${ac_cv_path_EGREP+:} false; then :
7658 $as_echo_n "(cached) " >&6
7660 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7661 then ac_cv_path_EGREP="$GREP -E"
7663 if test -z "$EGREP"; then
7664 ac_path_EGREP_found=false
7665 # Loop through the user's path and test for each of PROGNAME-LIST
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7670 test -z "$as_dir" && as_dir=.
7671 for ac_prog in egrep; do
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7674 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7675 # Check for GNU ac_path_EGREP and select it if it is found.
7676 # Check for GNU $ac_path_EGREP
7677 case `"$ac_path_EGREP" --version 2>&1` in
7679 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7682 $as_echo_n 0123456789 >"conftest.in"
7685 cat "conftest.in" "conftest.in" >"conftest.tmp"
7686 mv "conftest.tmp" "conftest.in"
7687 cp "conftest.in" "conftest.nl"
7688 $as_echo 'EGREP' >> "conftest.nl"
7689 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7691 as_fn_arith $ac_count + 1 && ac_count=$as_val
7692 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7693 # Best one so far, save it but keep looking for a better one
7694 ac_cv_path_EGREP="$ac_path_EGREP"
7695 ac_path_EGREP_max=$ac_count
7697 # 10*(2^10) chars as input seems more than enough
7698 test $ac_count -gt 10 && break
7700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7703 $ac_path_EGREP_found && break 3
7708 if test -z "$ac_cv_path_EGREP"; then
7709 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7712 ac_cv_path_EGREP=$EGREP
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7718 $as_echo "$ac_cv_path_EGREP" >&6; }
7719 EGREP="$ac_cv_path_EGREP"
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7723 $as_echo_n "checking for ANSI C header files... " >&6; }
7724 if ${ac_cv_header_stdc+:} false; then :
7725 $as_echo_n "(cached) " >&6
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743 ac_cv_header_stdc=yes
7745 ac_cv_header_stdc=no
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 if test $ac_cv_header_stdc = yes; then
7750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7757 $EGREP "memchr" >/dev/null 2>&1; then :
7760 ac_cv_header_stdc=no
7766 if test $ac_cv_header_stdc = yes; then
7767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7774 $EGREP "free" >/dev/null 2>&1; then :
7777 ac_cv_header_stdc=no
7783 if test $ac_cv_header_stdc = yes; then
7784 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7785 if test "$cross_compiling" = yes; then :
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7792 #if ((' ' & 0x0FF) == 0x020)
7793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7796 # define ISLOWER(c) \
7797 (('a' <= (c) && (c) <= 'i') \
7798 || ('j' <= (c) && (c) <= 'r') \
7799 || ('s' <= (c) && (c) <= 'z'))
7800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7808 for (i = 0; i < 256; i++)
7809 if (XOR (islower (i), ISLOWER (i))
7810 || toupper (i) != TOUPPER (i))
7815 if ac_fn_c_try_run "$LINENO"; then :
7818 ac_cv_header_stdc=no
7820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7821 conftest.$ac_objext conftest.beam conftest.$ac_ext
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7827 $as_echo "$ac_cv_header_stdc" >&6; }
7828 if test $ac_cv_header_stdc = yes; then
7830 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7834 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7835 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7836 inttypes.h stdint.h unistd.h
7838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7839 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7841 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7842 cat >>confdefs.h <<_ACEOF
7843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7851 # The cast to long int works around a bug in the HP C Compiler
7852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7854 # This bug is HP SR number 8606223364.
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7856 $as_echo_n "checking size of long double... " >&6; }
7857 if ${ac_cv_sizeof_long_double+:} false; then :
7858 $as_echo_n "(cached) " >&6
7860 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7863 if test "$ac_cv_type_long_double" = yes; then
7864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7866 as_fn_error 77 "cannot compute sizeof (long double)
7867 See \`config.log' for more details" "$LINENO" 5; }
7869 ac_cv_sizeof_long_double=0
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7875 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7879 cat >>confdefs.h <<_ACEOF
7880 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7884 sizeof_long_double=$ac_cv_sizeof_long_double
7887 ### End of automated tests.
7888 ### Now run sysdeps configure fragments.
7890 # They also can set these variables.
7892 ldd_rewrite_script=no
7893 libc_cv_sysconfdir=$sysconfdir
7894 libc_cv_gcc_unwind_find_fde=no
7897 # Iterate over all the sysdep directories we will use, running their
7898 # configure fragments.
7899 for dir in $sysnames; do
7902 *) dest=$srcdir/$dir ;;
7904 if test -r $dest/configure; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7906 $as_echo "running configure fragment for $dir" >&6; }
7911 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7912 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7917 # Test for old glibc 2.0.x headers so that they can be removed properly
7918 # Search only in includedir.
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5
7920 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
7921 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7923 old_glibc_headers=yes
7925 old_glibc_headers=no
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5
7928 $as_echo "$old_glibc_headers" >&6; }
7929 if test ${old_glibc_headers} = yes; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7931 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5
7933 $as_echo "$as_me: WARNING: *** be removed." >&2;}
7953 if test $elf = yes; then
7954 $as_echo "#define HAVE_ELF 1" >>confdefs.h
7957 if test $xcoff = yes; then
7958 $as_echo "#define HAVE_XCOFF 1" >>confdefs.h
7964 if test $shared = default; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7969 $as_echo_n "checking whether -fPIC is default... " >&6; }
7970 if ${libc_cv_pic_default+:} false; then :
7971 $as_echo_n "(cached) " >&6
7973 libc_cv_pic_default=yes
7974 cat > conftest.c <<EOF
7975 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7976 # error PIC is default.
7979 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7980 libc_cv_pic_default=no
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7985 $as_echo "$libc_cv_pic_default" >&6; }
7998 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8001 config_makefile=Makefile
8004 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8005 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8009 ac_config_files="$ac_config_files config.make ${config_makefile}"
8011 ac_config_commands="$ac_config_commands default"
8013 cat >confcache <<\_ACEOF
8014 # This file is a shell script that caches the results of configure
8015 # tests run on this system so they can be shared between configure
8016 # scripts and configure runs, see configure's option --config-cache.
8017 # It is not useful on other systems. If it contains results you don't
8018 # want to keep, you may remove or edit it.
8020 # config.status only pays attention to the cache file if you give it
8021 # the --recheck option to rerun configure.
8023 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8024 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8029 # The following way of writing the cache mishandles newlines in values,
8030 # but we know of no workaround that is simple, portable, and efficient.
8031 # So, we kill variables containing newlines.
8032 # Ultrix sh set writes to stderr and can't be redirected directly,
8033 # and sets the high bit in the cache file unless we assign to the vars.
8035 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8036 eval ac_val=\$$ac_var
8040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8044 _ | IFS | as_nl) ;; #(
8045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8046 *) { eval $ac_var=; unset $ac_var;} ;;
8052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8053 *${as_nl}ac_space=\ *)
8054 # `set' does not quote correctly, so add quotes: double-quote
8055 # substitution turns \\\\ into \\, and sed turns \\ into \.
8058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8061 # `set' quotes correctly as required by POSIX, so do not add quotes.
8062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8075 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8076 if test -w "$cache_file"; then
8077 if test "x$cache_file" != "x/dev/null"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8079 $as_echo "$as_me: updating cache $cache_file" >&6;}
8080 if test ! -f "$cache_file" || test -h "$cache_file"; then
8081 cat confcache >"$cache_file"
8083 case $cache_file in #(
8085 mv -f confcache "$cache_file"$$ &&
8086 mv -f "$cache_file"$$ "$cache_file" ;; #(
8088 mv -f confcache "$cache_file" ;;
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8094 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8099 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8100 # Let make expand exec_prefix.
8101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8103 DEFS=-DHAVE_CONFIG_H
8108 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8109 # 1. Remove the extension, and $U if already installed.
8110 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8111 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8112 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8113 # will be set to the directory where LIBOBJS objects are built.
8114 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8115 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8119 LTLIBOBJS=$ac_ltlibobjs
8123 : "${CONFIG_STATUS=./config.status}"
8125 ac_clean_files_save=$ac_clean_files
8126 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8128 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8130 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8132 # Generated by $as_me.
8133 # Run this file to recreate the current configuration.
8134 # Compiler output produced by configure, useful for debugging
8135 # configure, is in config.log if it exists.
8141 SHELL=\${CONFIG_SHELL-$SHELL}
8144 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8145 ## -------------------- ##
8146 ## M4sh Initialization. ##
8147 ## -------------------- ##
8149 # Be more Bourne compatible
8150 DUALCASE=1; export DUALCASE # for MKS sh
8151 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8154 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8155 # is contrary to our usage. Disable this feature.
8156 alias -g '${1+"$@"}'='"$@"'
8157 setopt NO_GLOB_SUBST
8159 case `(set -o) 2>/dev/null` in #(
8171 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8172 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8173 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8174 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8175 # Prefer a ksh shell builtin over an external printf program on Solaris,
8176 # but without wasting forks for bash or zsh.
8177 if test -z "$BASH_VERSION$ZSH_VERSION" \
8178 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8179 as_echo='print -r --'
8180 as_echo_n='print -rn --'
8181 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8182 as_echo='printf %s\n'
8183 as_echo_n='printf %s'
8185 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8186 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8187 as_echo_n='/usr/ucb/echo -n'
8189 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8190 as_echo_n_body='eval
8194 expr "X$arg" : "X\\(.*\\)$as_nl";
8195 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8197 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8199 export as_echo_n_body
8200 as_echo_n='sh -c $as_echo_n_body as_echo'
8203 as_echo='sh -c $as_echo_body as_echo'
8206 # The user is always right.
8207 if test "${PATH_SEPARATOR+set}" != set; then
8209 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8210 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8217 # We need space, tab and new line, in precisely that order. Quoting is
8218 # there to prevent editors from complaining about space-tab.
8219 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8220 # splitting by setting IFS to empty value.)
8223 # Find who we are. Look in the path if we contain no directory separator.
8226 *[\\/]* ) as_myself=$0 ;;
8227 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 test -z "$as_dir" && as_dir=.
8232 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8238 # We did not find ourselves, most probably we were run as `sh COMMAND'
8239 # in which case we are not to be found in the path.
8240 if test "x$as_myself" = x; then
8243 if test ! -f "$as_myself"; then
8244 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8248 # Unset variables that we do not need and which cause bugs (e.g. in
8249 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8250 # suppresses any "Segmentation fault" message there. '((' could
8251 # trigger a bug in pdksh 5.2.14.
8252 for as_var in BASH_ENV ENV MAIL MAILPATH
8253 do eval test x\${$as_var+set} = xset \
8254 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8267 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8270 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8271 # ----------------------------------------
8272 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8273 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8274 # script with STATUS, using 1 if that was 0.
8277 as_status=$1; test $as_status -eq 0 && as_status=1
8279 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8280 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8282 $as_echo "$as_me: error: $2" >&2
8283 as_fn_exit $as_status
8287 # as_fn_set_status STATUS
8288 # -----------------------
8289 # Set $? to STATUS, without forking.
8293 } # as_fn_set_status
8297 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8307 # Portably unset VAR.
8310 { eval $1=; unset $1;}
8312 as_unset=as_fn_unset
8313 # as_fn_append VAR VALUE
8314 # ----------------------
8315 # Append the text in VALUE to the end of the definition contained in VAR. Take
8316 # advantage of any shell optimizations that allow amortized linear growth over
8317 # repeated appends, instead of the typical quadratic growth present in naive
8319 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8320 eval 'as_fn_append ()
8331 # as_fn_arith ARG...
8332 # ------------------
8333 # Perform arithmetic evaluation on the ARGs, and store the result in the
8334 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8335 # must be portable across $(()) and expr.
8336 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8337 eval 'as_fn_arith ()
8344 as_val=`expr "$@" || test $? -eq 1`
8349 if expr a : '\(a\)' >/dev/null 2>&1 &&
8350 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8356 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8357 as_basename=basename
8362 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8368 as_me=`$as_basename -- "$0" ||
8369 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8370 X"$0" : 'X\(//\)$' \| \
8371 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8373 sed '/^.*\/\([^/][^/]*\)\/*$/{
8387 # Avoid depending upon Character Ranges.
8388 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8389 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8390 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8391 as_cr_digits='0123456789'
8392 as_cr_alnum=$as_cr_Letters$as_cr_digits
8394 ECHO_C= ECHO_N= ECHO_T=
8395 case `echo -n x` in #(((((
8397 case `echo 'xy\c'` in
8398 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8400 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8407 rm -f conf$$ conf$$.exe conf$$.file
8408 if test -d conf$$.dir; then
8409 rm -f conf$$.dir/conf$$.file
8412 mkdir conf$$.dir 2>/dev/null
8414 if (echo >conf$$.file) 2>/dev/null; then
8415 if ln -s conf$$.file conf$$ 2>/dev/null; then
8417 # ... but there are two gotchas:
8418 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8419 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8420 # In both cases, we have to default to `cp -p'.
8421 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8423 elif ln conf$$.file conf$$ 2>/dev/null; then
8431 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8432 rmdir conf$$.dir 2>/dev/null
8437 # Create "$as_dir" as a directory, including parents if necessary.
8442 -*) as_dir=./$as_dir;;
8444 test -d "$as_dir" || eval $as_mkdir_p || {
8448 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8449 *) as_qdir=$as_dir;;
8451 as_dirs="'$as_qdir' $as_dirs"
8452 as_dir=`$as_dirname -- "$as_dir" ||
8453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8454 X"$as_dir" : 'X\(//\)[^/]' \| \
8455 X"$as_dir" : 'X\(//\)$' \| \
8456 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8457 $as_echo X"$as_dir" |
8458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8475 test -d "$as_dir" && break
8477 test -z "$as_dirs" || eval "mkdir $as_dirs"
8478 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8482 if mkdir -p . 2>/dev/null; then
8483 as_mkdir_p='mkdir -p "$as_dir"'
8485 test -d ./-p && rmdir ./-p
8489 if test -x / >/dev/null 2>&1; then
8492 if ls -dL / >/dev/null 2>&1; then
8499 if test -d "$1"; then
8505 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8506 ???[sx]*):;;*)false;;esac;fi
8510 as_executable_p=$as_test_x
8512 # Sed expression to map a string onto a valid CPP name.
8513 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8515 # Sed expression to map a string onto a valid variable name.
8516 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8520 ## ----------------------------------- ##
8521 ## Main body of $CONFIG_STATUS script. ##
8522 ## ----------------------------------- ##
8524 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8527 # Save the log message, to keep $0 and so on meaningful, and to
8528 # report actual input values of CONFIG_FILES etc. instead of their
8529 # values after options handling.
8531 This file was extended by GNU C Library $as_me (see version.h), which was
8532 generated by GNU Autoconf 2.68. Invocation command line was
8534 CONFIG_FILES = $CONFIG_FILES
8535 CONFIG_HEADERS = $CONFIG_HEADERS
8536 CONFIG_LINKS = $CONFIG_LINKS
8537 CONFIG_COMMANDS = $CONFIG_COMMANDS
8540 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8545 case $ac_config_files in *"
8546 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8549 case $ac_config_headers in *"
8550 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8555 # Files that config.status was made for.
8556 config_files="$ac_config_files"
8557 config_headers="$ac_config_headers"
8558 config_commands="$ac_config_commands"
8562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8564 \`$as_me' instantiates files and other configuration actions
8565 from templates according to the current configuration. Unless the files
8566 and actions are specified as TAGs, all are instantiated by default.
8568 Usage: $0 [OPTION]... [TAG]...
8570 -h, --help print this help, then exit
8571 -V, --version print version number and configuration settings, then exit
8572 --config print configuration, then exit
8573 -q, --quiet, --silent
8574 do not print progress messages
8575 -d, --debug don't remove temporary files
8576 --recheck update $as_me by reconfiguring in the same conditions
8577 --file=FILE[:TEMPLATE]
8578 instantiate the configuration file FILE
8579 --header=FILE[:TEMPLATE]
8580 instantiate the configuration header FILE
8582 Configuration files:
8585 Configuration headers:
8588 Configuration commands:
8591 Report bugs to <http://sourceware.org/bugzilla/>.
8592 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
8593 General help using GNU software: <http://www.gnu.org/gethelp/>."
8596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8597 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8599 GNU C Library config.status (see version.h)
8600 configured by $0, generated by GNU Autoconf 2.68,
8601 with options \\"\$ac_cs_config\\"
8603 Copyright (C) 2010 Free Software Foundation, Inc.
8604 This config.status script is free software; the Free Software Foundation
8605 gives unlimited permission to copy, distribute and modify it."
8611 test -n "\$AWK" || AWK=awk
8614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8615 # The default lists apply if the user does not specify any file.
8621 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8622 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8626 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8638 # Handling of the options.
8639 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8641 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8642 $as_echo "$ac_cs_version"; exit ;;
8643 --config | --confi | --conf | --con | --co | --c )
8644 $as_echo "$ac_cs_config"; exit ;;
8645 --debug | --debu | --deb | --de | --d | -d )
8647 --file | --fil | --fi | --f )
8650 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8651 '') as_fn_error $? "missing file argument" ;;
8653 as_fn_append CONFIG_FILES " '$ac_optarg'"
8654 ac_need_defaults=false;;
8655 --header | --heade | --head | --hea )
8658 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8660 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8661 ac_need_defaults=false;;
8663 # Conflict between --help and --header
8664 as_fn_error $? "ambiguous option: \`$1'
8665 Try \`$0 --help' for more information.";;
8666 --help | --hel | -h )
8667 $as_echo "$ac_cs_usage"; exit ;;
8668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8669 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8673 -*) as_fn_error $? "unrecognized option: \`$1'
8674 Try \`$0 --help' for more information." ;;
8676 *) as_fn_append ac_config_targets " $1"
8677 ac_need_defaults=false ;;
8683 ac_configure_extra_args=
8685 if $ac_cs_silent; then
8687 ac_configure_extra_args="$ac_configure_extra_args --silent"
8691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8692 if \$ac_cs_recheck; then
8693 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8695 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8696 CONFIG_SHELL='$SHELL'
8702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8706 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8707 ## Running $as_me. ##
8713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8717 config_vars='$config_vars'
8721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8723 # Handling of arguments.
8724 for ac_config_target in $ac_config_targets
8726 case $ac_config_target in
8727 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8728 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8729 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
8730 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8732 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8737 # If the user did not use the arguments to specify the items to instantiate,
8738 # then the envvar interface is used. Set only those that are not.
8739 # We use the long form for the default assignment because of an extremely
8740 # bizarre bug on SunOS 4.1.3.
8741 if $ac_need_defaults; then
8742 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8743 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8744 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8747 # Have a temporary directory for convenience. Make it in the build tree
8748 # simply because there is no reason against having it here, and in addition,
8749 # creating and moving files from /tmp can sometimes cause problems.
8750 # Hook for its removal unless debugging.
8751 # Note that there is a small window in which the directory will not be cleaned:
8752 # after its creation but before its name has been assigned to `$tmp'.
8756 trap 'exit_status=$?
8758 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8760 trap 'as_fn_exit 1' 1 2 13 15
8762 # Create a (secure) tmp directory for tmp files.
8765 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8769 tmp=./conf$$-$RANDOM
8770 (umask 077 && mkdir "$tmp")
8771 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8774 # Set up the scripts for CONFIG_FILES section.
8775 # No need to generate them if there are no CONFIG_FILES.
8776 # This happens for instance with `./config.status config.h'.
8777 if test -n "$CONFIG_FILES"; then
8780 ac_cr=`echo X | tr X '\015'`
8781 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8782 # But we know of no other shell where ac_cr would be empty at this
8783 # point, so we can use a bashism as a fallback.
8784 if test "x$ac_cr" = x; then
8785 eval ac_cr=\$\'\\r\'
8787 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8788 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8794 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8799 echo "cat >conf$$subs.awk <<_ACEOF" &&
8800 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8803 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8804 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8806 for ac_last_try in false false false false false :; do
8807 . ./conf$$subs.sh ||
8808 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8810 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8811 if test $ac_delim_n = $ac_delim_num; then
8813 elif $ac_last_try; then
8814 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8822 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8826 s/^/S["/; s/!.*/"]=/
8836 s/\(.\{148\}\)..*/\1/
8838 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8843 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8850 s/\(.\{148\}\)..*/\1/
8852 s/["\\]/\\&/g; s/^/"/; s/$/"/
8856 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8861 ' <conf$$subs.awk | sed '
8866 ' >>$CONFIG_STATUS || ac_write_fail=1
8867 rm -f conf$$subs.awk
8868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8870 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8871 for (key in S) S_is_set[key] = 1
8877 nfields = split(line, field, "@")
8879 len = length(field[1])
8880 for (i = 2; i < nfields; i++) {
8882 keylen = length(key)
8883 if (S_is_set[key]) {
8885 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8886 len += length(value) + length(field[++i])
8897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8898 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8899 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8902 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8903 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8906 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8907 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8908 # trailing colons and then remove the whole line if VPATH becomes empty
8909 # (actually we leave an empty line to preserve line numbers).
8910 if test "x$srcdir" = x.; then
8911 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8930 fi # test -n "$CONFIG_FILES"
8932 # Set up the scripts for CONFIG_HEADERS section.
8933 # No need to generate them if there are no CONFIG_HEADERS.
8934 # This happens for instance with `./config.status Makefile'.
8935 if test -n "$CONFIG_HEADERS"; then
8936 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8940 # Transform confdefs.h into an awk script `defines.awk', embedded as
8941 # here-document in config.status, that substitutes the proper values into
8942 # config.h.in to produce config.h.
8944 # Create a delimiter string that does not exist in confdefs.h, to ease
8945 # handling of long lines.
8947 for ac_last_try in false false :; do
8948 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8949 if test -z "$ac_tt"; then
8951 elif $ac_last_try; then
8952 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8958 # For the awk script, D is an array of macro values keyed by name,
8959 # likewise P contains macro parameters if any. Preserve backslash
8960 # newline sequences.
8962 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8964 s/.\{148\}/&'"$ac_delim"'/g
8967 s/^[ ]*#[ ]*define[ ][ ]*/ /
8974 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8976 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8980 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8981 D["\1"]=" \3\\\\\\n"\\/p
8983 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8988 s/.\{148\}/&'"$ac_delim"'/g
8993 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8996 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8998 ' <confdefs.h | sed '
8999 s/'"$ac_delim"'/"\\\
9000 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9003 for (key in D) D_is_set[key] = 1
9006 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9008 split(line, arg, " ")
9009 if (arg[1] == "#") {
9013 defundef = substr(arg[1], 2)
9016 split(mac1, mac2, "(") #)
9018 prefix = substr(line, 1, index(line, defundef) - 1)
9019 if (D_is_set[macro]) {
9020 # Preserve the white space surrounding the "#".
9021 print prefix "define", macro P[macro] D[macro]
9024 # Replace #undef with comments. This is necessary, for example,
9025 # in the case of _POSIX_SOURCE, which is predefined and required
9026 # on some systems where configure will not decide to define it.
9027 if (defundef == "undef") {
9028 print "/*", prefix defundef, macro, "*/"
9036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9037 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9038 fi # test -n "$CONFIG_HEADERS"
9041 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9046 :[FHLC]) ac_mode=$ac_tag; continue;;
9048 case $ac_mode$ac_tag in
9050 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9051 :[FH]-) ac_tag=-:-;;
9052 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9069 -) ac_f="$ac_tmp/stdin";;
9070 *) # Look for the file first in the build tree, then in the source tree
9071 # (if the path is not absolute). The absolute path cannot be DOS-style,
9072 # because $ac_f cannot contain `:'.
9076 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9078 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9080 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9081 as_fn_append ac_file_inputs " '$ac_f'"
9084 # Let's still pretend it is `configure' which instantiates (i.e., don't
9085 # use $as_me), people would be surprised to read:
9086 # /* config.h. Generated by config.status. */
9087 configure_input='Generated from '`
9088 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9090 if test x"$ac_file" != x-; then
9091 configure_input="$ac_file. $configure_input"
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9093 $as_echo "$as_me: creating $ac_file" >&6;}
9095 # Neutralize special characters interpreted by sed in replacement strings.
9096 case $configure_input in #(
9097 *\&* | *\|* | *\\* )
9098 ac_sed_conf_input=`$as_echo "$configure_input" |
9099 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9100 *) ac_sed_conf_input=$configure_input;;
9104 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9110 ac_dir=`$as_dirname -- "$ac_file" ||
9111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9112 X"$ac_file" : 'X\(//\)[^/]' \| \
9113 X"$ac_file" : 'X\(//\)$' \| \
9114 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9115 $as_echo X"$ac_file" |
9116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9133 as_dir="$ac_dir"; as_fn_mkdir_p
9137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9139 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9140 # A ".." for each directory in $ac_dir_suffix.
9141 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9142 case $ac_top_builddir_sub in
9143 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9144 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9147 ac_abs_top_builddir=$ac_pwd
9148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9149 # for backward compatibility:
9150 ac_top_builddir=$ac_top_build_prefix
9153 .) # We are building in place.
9155 ac_top_srcdir=$ac_top_builddir_sub
9156 ac_abs_top_srcdir=$ac_pwd ;;
9157 [\\/]* | ?:[\\/]* ) # Absolute name.
9158 ac_srcdir=$srcdir$ac_dir_suffix;
9159 ac_top_srcdir=$srcdir
9160 ac_abs_top_srcdir=$srcdir ;;
9162 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9163 ac_top_srcdir=$ac_top_build_prefix$srcdir
9164 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9176 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9177 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9182 # If the template does not know about datarootdir, expand it.
9183 # FIXME: This hack should be removed a few years after 2.60.
9184 ac_datarootdir_hack=; ac_datarootdir_seen=
9195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9196 *datarootdir*) ac_datarootdir_seen=yes;;
9197 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9199 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9202 ac_datarootdir_hack='
9203 s&@datadir@&$datadir&g
9204 s&@docdir@&$docdir&g
9205 s&@infodir@&$infodir&g
9206 s&@localedir@&$localedir&g
9207 s&@mandir@&$mandir&g
9208 s&\\\${datarootdir}&$datarootdir&g' ;;
9212 # Neutralize VPATH when `$srcdir' = `.'.
9213 # Shell code in configure.ac might set extrasub.
9214 # FIXME: do we really want to maintain this feature?
9215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9216 ac_sed_extra="$ac_vpsub
9219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9222 s|@configure_input@|$ac_sed_conf_input|;t t
9223 s&@top_builddir@&$ac_top_builddir_sub&;t t
9224 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9225 s&@srcdir@&$ac_srcdir&;t t
9226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9227 s&@top_srcdir@&$ac_top_srcdir&;t t
9228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9229 s&@builddir@&$ac_builddir&;t t
9230 s&@abs_builddir@&$ac_abs_builddir&;t t
9231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9232 s&@INSTALL@&$ac_INSTALL&;t t
9233 $ac_datarootdir_hack
9235 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9236 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9238 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9239 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9240 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9241 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9243 which seems to be undefined. Please make sure it is defined" >&5
9244 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9245 which seems to be undefined. Please make sure it is defined" >&2;}
9247 rm -f "$ac_tmp/stdin"
9249 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9250 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9258 if test x"$ac_file" != x-; then
9260 $as_echo "/* $configure_input */" \
9261 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9262 } >"$ac_tmp/config.h" \
9263 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9264 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9266 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9269 mv "$ac_tmp/config.h" "$ac_file" \
9270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9273 $as_echo "/* $configure_input */" \
9274 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9275 || as_fn_error $? "could not create -" "$LINENO" 5
9279 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9280 $as_echo "$as_me: executing $ac_file commands" >&6;}
9285 case $ac_file$ac_mode in
9287 case $CONFIG_FILES in *config.make*)
9288 echo "$config_vars" >> config.make;;
9290 test -d bits || mkdir bits ;;
9298 ac_clean_files=$ac_clean_files_save
9300 test $ac_write_fail = 0 ||
9301 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9304 # configure is writing to config.log, and then calls config.status.
9305 # config.status does its own redirection, appending to config.log.
9306 # Unfortunately, on DOS this fails, as config.log is still kept open
9307 # by configure, so config.status won't be able to write to it; its
9308 # output is simply discarded. So we exec the FD to /dev/null,
9309 # effectively closing config.log, so it can be properly (re)opened and
9310 # appended to by config.status. When coming back to configure, we
9311 # need to make the FD available again.
9312 if test "$no_create" != yes; then
9314 ac_config_status_args=
9315 test "$silent" = yes &&
9316 ac_config_status_args="$ac_config_status_args --quiet"
9318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9321 # would make configure fail if this is the last instruction.
9322 $ac_cs_success || as_fn_exit 1
9326 # CONFIG_SUBDIRS section.
9328 if test "$no_recursion" != yes; then
9330 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9331 # so they do not pile up.
9332 ac_sub_configure_args=
9334 eval "set x $ac_configure_args"
9338 if test -n "$ac_prev"; then
9343 -cache-file | --cache-file | --cache-fil | --cache-fi \
9344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9345 ac_prev=cache_file ;;
9346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9350 --config-cache | -C)
9352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9356 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9358 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9360 --disable-option-checking)
9364 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9366 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9370 # Always prepend --prefix to ensure using the same prefix
9371 # in subdir configurations.
9372 ac_arg="--prefix=$prefix"
9374 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9376 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9379 if test "$silent" = yes; then
9380 ac_sub_configure_args="--silent $ac_sub_configure_args"
9383 # Always prepend --disable-option-checking to silence warnings, since
9384 # different subdirs can have different --enable and --with options.
9385 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9388 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9390 # Do not complain, so a configure script can configure whichever
9391 # parts of a large source tree are present.
9392 test -d "$srcdir/$ac_dir" || continue
9394 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9395 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9396 $as_echo "$ac_msg" >&6
9397 as_dir="$ac_dir"; as_fn_mkdir_p
9401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9403 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9404 # A ".." for each directory in $ac_dir_suffix.
9405 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9406 case $ac_top_builddir_sub in
9407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9411 ac_abs_top_builddir=$ac_pwd
9412 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9413 # for backward compatibility:
9414 ac_top_builddir=$ac_top_build_prefix
9417 .) # We are building in place.
9419 ac_top_srcdir=$ac_top_builddir_sub
9420 ac_abs_top_srcdir=$ac_pwd ;;
9421 [\\/]* | ?:[\\/]* ) # Absolute name.
9422 ac_srcdir=$srcdir$ac_dir_suffix;
9423 ac_top_srcdir=$srcdir
9424 ac_abs_top_srcdir=$srcdir ;;
9426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9427 ac_top_srcdir=$ac_top_build_prefix$srcdir
9428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9435 # Check for guested configure; otherwise get Cygnus style configure.
9436 if test -f "$ac_srcdir/configure.gnu"; then
9437 ac_sub_configure=$ac_srcdir/configure.gnu
9438 elif test -f "$ac_srcdir/configure"; then
9439 ac_sub_configure=$ac_srcdir/configure
9440 elif test -f "$ac_srcdir/configure.in"; then
9441 # This should be Cygnus configure.
9442 ac_sub_configure=$ac_aux_dir/configure
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9449 # The recursion is here.
9450 if test -n "$ac_sub_configure"; then
9451 # Make the cache file name correct relative to the subdirectory.
9453 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9455 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9459 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9460 # The eval makes quoting arguments work.
9461 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9462 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9463 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9469 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9471 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}