2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libICE 1.0.8.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 # Use only awk features that work with 7th edition Unix awk (1978).
552 # My, what an old awk you have, Mr. Solaris!
554 while (length(v1) && length(v2)) {
555 # Set d1 to be the next thing to compare from v1, and likewise for d2.
556 # Normally this is a single character, but if v1 and v2 contain digits,
557 # compare them as integers and fractions as strverscmp does.
558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559 # Split v1 and v2 into their leading digit string components d1 and d2,
560 # and advance v1 and v2 past the leading digit strings.
561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
567 # Compare two fractions.
568 while (d1 ~ /^0/ && d2 ~ /^0/) {
569 d1 = substr(d1, 2); len1--
570 d2 = substr(d2, 2); len2--
572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573 # The two components differ in length, and the common prefix
574 # contains only leading zeros. Consider the longer to be less.
578 # Otherwise, compare as strings.
583 # A fraction is less than an integer.
588 # An integer is greater than a fraction.
591 # Compare two integers.
597 # The normal case, without worrying about digits.
598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605 # which mishandles some comparisons of empty strings to integers.
606 if (length(v2)) exit 1
607 if (length(v1)) exit 2
611 test -n "$DJDIR" || exec 7<&0 </dev/null
615 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616 # so uname gets run too.
617 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
622 ac_default_prefix=/usr/local
624 ac_config_libobj_dir=.
631 # Identity of this package.
632 PACKAGE_NAME='libICE'
633 PACKAGE_TARNAME='libICE'
634 PACKAGE_VERSION='1.0.8'
635 PACKAGE_STRING='libICE 1.0.8'
636 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
639 ac_unique_file="Makefile.am"
640 # Factoring default headers for most tests.
641 ac_includes_default="\
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
653 # ifdef HAVE_STDLIB_H
658 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
663 #ifdef HAVE_STRINGS_H
664 # include <strings.h>
666 #ifdef HAVE_INTTYPES_H
667 # include <inttypes.h>
676 ac_subst_vars='am__EXEEXT_FALSE
689 HAVE_STYLESHEETS_FALSE
690 HAVE_STYLESHEETS_TRUE
702 HAVE_XMLTO_TEXT_FALSE
759 MAINTAINER_MODE_FALSE
778 INSTALL_STRIP_PROGRAM
830 program_transform_name
843 enable_option_checking
844 enable_dependency_tracking
845 enable_maintainer_mode
853 enable_selective_werror
854 enable_strict_compilation
861 enable_unix_transport
864 enable_local_transport
868 ac_precious_vars='build_alias
887 # Initialize some variables set by options.
889 ac_init_version=false
890 ac_unrecognized_opts=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
901 program_transform_name=s,x,x,
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
926 infodir='${datarootdir}/info'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 # Accept the important Cygnus configure options, so we can diagnose typos.
954 case $ac_dashdash$ac_option in
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
976 cache_file=config.cache ;;
978 -datadir | --datadir | --datadi | --datad)
980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
981 datadir=$ac_optarg ;;
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
990 -disable-* | --disable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1004 eval enable_$ac_useropt=no ;;
1006 -docdir | --docdir | --docdi | --doc | --do)
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1016 -enable-* | --enable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 as_fn_error $? "invalid feature name: $ac_useropt"
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "enable_$ac_useropt"
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1030 eval enable_$ac_useropt=\$ac_optarg ;;
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 htmldir=$ac_optarg ;;
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1075 -libdir | --libdir | --libdi | --libd)
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1166 -psdir | --psdir | --psdi | --psd | --ps)
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 sbindir=$ac_optarg ;;
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 sharedstatedir=$ac_optarg ;;
1192 -site | --site | --sit)
1194 -site=* | --site=* | --sit=*)
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: $ac_useropt"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1234 eval with_$ac_useropt=\$ac_optarg ;;
1236 -without-* | --without-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1250 eval with_$ac_useropt=no ;;
1253 # Obsolete; use --with-x.
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271 Try \`$0 --help' for more information"
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1285 # FIXME: should be removed in autoconf 3.0.
1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 as_fn_error $? "missing argument to $ac_option"
1300 if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308 # Check all directory arguments for consistency.
1309 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
1314 eval ac_val=\$$ac_var
1315 # Remove trailing slashes.
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1321 # Be sure to have absolute directory names.
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 # There might be people who depend on the old broken behavior: `$host'
1330 # used to hold the argument of --host etc.
1331 # FIXME: To remove some day.
1334 target=$target_alias
1336 # FIXME: To remove some day.
1337 if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
1340 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1341 If a cross compiler is detected then cross compile mode will be used" >&2
1342 elif test "x$build_alias" != "x$host_alias"; then
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350 test "$silent" = yes && exec 6>/dev/null
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $? "pwd does not report name of working directory"
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1393 ac_srcdir_defaulted=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 # Report the --help message.
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1427 \`configure' configures libICE 1.0.8 to adapt to many kinds of systems.
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1434 Defaults for the options are specified in brackets.
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1458 For better control, use the options below.
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/libICE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 if test -n "$ac_init_help"; then
1496 case $ac_init_help in
1497 short | recursive ) echo "Configuration of libICE 1.0.8:";;
1502 --disable-option-checking ignore unrecognized --enable/--with options
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --disable-dependency-tracking speeds up one-time build
1506 --enable-dependency-tracking do not reject slow dependency extractors
1507 --enable-maintainer-mode enable make rules and dependencies not useful
1508 (and sometimes confusing) to the casual installer
1509 --enable-shared[=PKGS] build shared libraries [default=yes]
1510 --enable-static[=PKGS] build static libraries [default=yes]
1511 --enable-fast-install[=PKGS]
1512 optimize for fast installation [default=yes]
1513 --disable-libtool-lock avoid locking (might break parallel builds)
1514 --disable-selective-werror
1515 Turn off selective compiler errors. (default:
1517 --enable-strict-compilation
1518 Enable all warnings from compiler and make them
1519 errors (default: disabled)
1520 --enable-silent-rules less verbose build output (undo: `make V=1')
1521 --disable-silent-rules verbose build output (undo: `make V=0')
1522 --enable-docs Enable building the documentation (default: yes)
1523 --enable-specs Enable building the specs (default: yes)
1524 --enable-unix-transport Enable UNIX domain socket transport
1525 --enable-tcp-transport Enable TCP socket transport
1526 --enable-ipv6 Enable IPv6 support
1527 --enable-local-transport
1528 Enable os-specific local transport
1529 --enable-lint-library Create lint library (default: disabled)
1532 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1533 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1534 --with-pic try to use only PIC/non-PIC objects [default=use
1536 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1537 --with-sysroot=DIR Search for dependent libraries within DIR
1538 (or the compiler's sysroot if not specified).
1539 --with-xmlto Use xmlto to regenerate documentation (default:
1541 --with-fop Use fop to regenerate documentation (default: auto)
1542 --with-xsltproc Use xsltproc for the transformation of XML documents
1544 --with-lint Use a lint-style source code checker (default:
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1556 PKG_CONFIG path to pkg-config utility
1557 XMLTO Path to xmlto command
1558 FOP Path to fop command
1559 XSLTPROC Path to xsltproc command
1560 ICE_CFLAGS C compiler flags for ICE, overriding pkg-config
1561 ICE_LIBS linker flags for ICE, overriding pkg-config
1562 LINT Path to a lint-style command
1563 LINT_FLAGS Flags for the lint-style command
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1568 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1573 if test "$ac_init_help" = "recursive"; then
1574 # If there are subdirs, report their specific --help.
1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576 test -d "$ac_dir" ||
1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1631 libICE configure 1.0.8
1632 generated by GNU Autoconf 2.68
1634 Copyright (C) 2010 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1641 ## ------------------------ ##
1642 ## Autoconf initialization. ##
1643 ## ------------------------ ##
1645 # ac_fn_c_try_compile LINENO
1646 # --------------------------
1647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_compile ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext
1652 if { { ac_try="$ac_compile"
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_compile") 2>conftest.err
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest.$ac_objext; then :
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1681 } # ac_fn_c_try_compile
1683 # ac_fn_c_try_cpp LINENO
1684 # ----------------------
1685 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } > conftest.i && {
1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1720 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723 # the include files in INCLUDES and setting the cache variable VAR
1725 ac_fn_c_check_header_mongrel ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if eval \${$3+:} false; then :
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1738 # Is the header compilable?
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740 $as_echo_n "checking $2 usability... " >&6; }
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1746 if ac_fn_c_try_compile "$LINENO"; then :
1747 ac_header_compiler=yes
1749 ac_header_compiler=no
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753 $as_echo "$ac_header_compiler" >&6; }
1755 # Is the header present?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757 $as_echo_n "checking $2 presence... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1762 if ac_fn_c_try_cpp "$LINENO"; then :
1763 ac_header_preproc=yes
1765 ac_header_preproc=no
1767 rm -f conftest.err conftest.i conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769 $as_echo "$ac_header_preproc" >&6; }
1771 # So? What about this header?
1772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1783 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1787 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ( $as_echo "## ---------------------------------------------------------------------- ##
1791 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1792 ## ---------------------------------------------------------------------- ##"
1793 ) | sed "s/^/$as_me: WARNING: /" >&2
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1801 eval "$3=\$ac_header_compiler"
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 } # ac_fn_c_check_header_mongrel
1811 # ac_fn_c_try_run LINENO
1812 # ----------------------
1813 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1814 # that executables *can* be run.
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_link"
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>&5
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1829 { { case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_try") 2>&5
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; }; }; then :
1841 $as_echo "$as_me: program exited with status $ac_status" >&5
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 ac_retval=$ac_status
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1853 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1854 # -------------------------------------------------------
1855 # Tests whether HEADER exists and can be compiled using the include files in
1856 # INCLUDES, setting the cache variable VAR accordingly.
1857 ac_fn_c_check_header_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 } # ac_fn_c_check_header_compile
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 $as_test_x conftest$ac_exeext
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_c_try_link
1930 # ac_fn_c_check_func LINENO FUNC VAR
1931 # ----------------------------------
1932 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1933 ac_fn_c_check_func ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1945 #define $2 innocuous_$2
1947 /* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $2 (); below.
1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950 <limits.h> exists even on freestanding compilers. */
1953 # include <limits.h>
1955 # include <assert.h>
1960 /* Override any GCC internal prototype to avoid an error.
1961 Use char because int might match the return type of a GCC
1962 builtin and then its argument prototype would still apply. */
1967 /* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970 #if defined __stub_$2 || defined __stub___$2
1982 if ac_fn_c_try_link "$LINENO"; then :
1987 rm -f core conftest.err conftest.$ac_objext \
1988 conftest$ac_exeext conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 } # ac_fn_c_check_func
1997 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1998 # ---------------------------------------------
1999 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2001 ac_fn_c_check_decl ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 as_decl_name=`echo $2|sed 's/ *(.*//'`
2005 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2007 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2017 #ifndef $as_decl_name
2019 (void) $as_decl_use;
2021 (void) $as_decl_name;
2029 if ac_fn_c_try_compile "$LINENO"; then :
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 } # ac_fn_c_check_decl
2043 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2044 # ----------------------------------------------------
2045 # Tries to find if the field MEMBER exists in type AGGR, after including
2046 # INCLUDES, setting cache variable VAR accordingly.
2047 ac_fn_c_check_member ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2051 $as_echo_n "checking for $2.$3... " >&6; }
2052 if eval \${$4+:} false; then :
2053 $as_echo_n "(cached) " >&6
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2068 if ac_fn_c_try_compile "$LINENO"; then :
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2078 if (sizeof ac_aggr.$3)
2084 if ac_fn_c_try_compile "$LINENO"; then :
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 } # ac_fn_c_check_member
2100 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2101 # -------------------------------------------
2102 # Tests whether TYPE exists after having included INCLUDES, setting cache
2103 # variable VAR accordingly.
2104 ac_fn_c_check_type ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2138 if ac_fn_c_try_compile "$LINENO"; then :
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 } # ac_fn_c_check_type
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2157 It was created by libICE $as_me 1.0.8, which was
2158 generated by GNU Autoconf 2.68. Invocation command line was
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir=.
2194 $as_echo "PATH: $as_dir"
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2218 ac_must_keep_next=false
2224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2226 | -silent | --silent | --silen | --sile | --sil)
2229 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2232 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2234 as_fn_append ac_configure_args1 " '$ac_arg'"
2235 if test $ac_must_keep_next = true; then
2236 ac_must_keep_next=false # Got value, back to normal.
2239 *=* | --config-cache | -C | -disable-* | --disable-* \
2240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2242 | -with-* | --with-* | -without-* | --without-* | --x)
2243 case "$ac_configure_args0 " in
2244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2247 -* ) ac_must_keep_next=true ;;
2250 as_fn_append ac_configure_args " '$ac_arg'"
2255 { ac_configure_args0=; unset ac_configure_args0;}
2256 { ac_configure_args1=; unset ac_configure_args1;}
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log. We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264 # Save into config.log some information that might help in debugging.
2268 $as_echo "## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##"
2272 # The following way of writing the cache mishandles newlines in values,
2274 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2275 eval ac_val=\$$ac_var
2279 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2283 _ | IFS | as_nl) ;; #(
2284 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2285 *) { eval $ac_var=; unset $ac_var;} ;;
2290 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2291 *${as_nl}ac_space=\ *)
2293 "s/'\''/'\''\\\\'\'''\''/g;
2294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2297 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304 $as_echo "## ----------------- ##
2305 ## Output variables. ##
2306 ## ----------------- ##"
2308 for ac_var in $ac_subst_vars
2310 eval ac_val=\$$ac_var
2312 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 $as_echo "$ac_var='\''$ac_val'\''"
2318 if test -n "$ac_subst_files"; then
2319 $as_echo "## ------------------- ##
2320 ## File substitutions. ##
2321 ## ------------------- ##"
2323 for ac_var in $ac_subst_files
2325 eval ac_val=\$$ac_var
2327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329 $as_echo "$ac_var='\''$ac_val'\''"
2334 if test -s confdefs.h; then
2335 $as_echo "## ----------- ##
2342 test "$ac_signal" != 0 &&
2343 $as_echo "$as_me: caught signal $ac_signal"
2344 $as_echo "$as_me: exit $exit_status"
2346 rm -f core *.core core.conftest.* &&
2347 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2350 for ac_signal in 1 2 13 15; do
2351 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2356 rm -f -r conftest* confdefs.h
2358 $as_echo "/* confdefs.h */" > confdefs.h
2360 # Predefined preprocessor variables.
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_NAME "$PACKAGE_NAME"
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_STRING "$PACKAGE_STRING"
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_URL "$PACKAGE_URL"
2387 # Let the site file select an alternate cache file if it wants to.
2388 # Prefer an explicitly selected file to automatically selected ones.
2391 if test -n "$CONFIG_SITE"; then
2392 # We do not want a PATH search for config.site.
2393 case $CONFIG_SITE in #((
2394 -*) ac_site_file1=./$CONFIG_SITE;;
2395 */*) ac_site_file1=$CONFIG_SITE;;
2396 *) ac_site_file1=./$CONFIG_SITE;;
2398 elif test "x$prefix" != xNONE; then
2399 ac_site_file1=$prefix/share/config.site
2400 ac_site_file2=$prefix/etc/config.site
2402 ac_site_file1=$ac_default_prefix/share/config.site
2403 ac_site_file2=$ac_default_prefix/etc/config.site
2405 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2407 test "x$ac_site_file" = xNONE && continue
2408 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2410 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2411 sed 's/^/| /' "$ac_site_file" >&5
2413 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 as_fn_error $? "failed to load site script $ac_site_file
2416 See \`config.log' for more details" "$LINENO" 5; }
2420 if test -r "$cache_file"; then
2421 # Some versions of bash will fail to source /dev/null (special files
2422 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2423 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2425 $as_echo "$as_me: loading cache $cache_file" >&6;}
2427 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2428 *) . "./$cache_file";;
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2433 $as_echo "$as_me: creating cache $cache_file" >&6;}
2437 # Check that the precious variables saved in the cache have kept the same
2439 ac_cache_corrupted=false
2440 for ac_var in $ac_precious_vars; do
2441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2442 eval ac_new_set=\$ac_env_${ac_var}_set
2443 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2444 eval ac_new_val=\$ac_env_${ac_var}_value
2445 case $ac_old_set,$ac_new_set in
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2448 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2449 ac_cache_corrupted=: ;;
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2453 ac_cache_corrupted=: ;;
2456 if test "x$ac_old_val" != "x$ac_new_val"; then
2457 # differences in whitespace do not lead to failure.
2458 ac_old_val_w=`echo x $ac_old_val`
2459 ac_new_val_w=`echo x $ac_new_val`
2460 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2462 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2463 ac_cache_corrupted=:
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2466 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2467 eval $ac_var=\$ac_old_val
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2470 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2472 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2475 # Pass precious variables to config.status.
2476 if test "$ac_new_set" = set; then
2478 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2479 *) ac_arg=$ac_var=$ac_new_val ;;
2481 case " $ac_configure_args " in
2482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2483 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2487 if $ac_cache_corrupted; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2491 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2492 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2494 ## -------------------- ##
2495 ## Main body of script. ##
2496 ## -------------------- ##
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506 ac_config_headers="$ac_config_headers config.h"
2509 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2510 # Must be called before any macros that run the compiler (like
2511 # AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
2513 ac_cpp='$CPP $CPPFLAGS'
2514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517 if test -n "$ac_tool_prefix"; then
2518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if ${ac_cv_prog_CC+:} false; then :
2523 $as_echo_n "(cached) " >&6
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 if test -n "$CC"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2548 $as_echo "$CC" >&6; }
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 $as_echo "no" >&6; }
2556 if test -z "$ac_cv_prog_CC"; then
2558 # Extract the first word of "gcc", so it can be a program name with args.
2559 set dummy gcc; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$ac_ct_CC"; then
2566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_ac_ct_CC="gcc"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2586 if test -n "$ac_ct_CC"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2588 $as_echo "$ac_ct_CC" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2594 if test "x$ac_ct_CC" = x; then
2597 case $cross_compiling:$ac_tool_warned in
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2601 ac_tool_warned=yes ;;
2609 if test -z "$CC"; then
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2612 set dummy ${ac_tool_prefix}cc; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_CC+:} false; then :
2616 $as_echo_n "(cached) " >&6
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 ac_cv_prog_CC="${ac_tool_prefix}cc"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 if test -n "$CC"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2641 $as_echo "$CC" >&6; }
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2650 if test -z "$CC"; then
2651 # Extract the first word of "cc", so it can be a program name with args.
2652 set dummy cc; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_CC+:} false; then :
2656 $as_echo_n "(cached) " >&6
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2670 ac_prog_rejected=yes
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 if test $ac_prog_rejected = yes; then
2682 # We found a bogon in the path, so make sure we never use it.
2683 set dummy $ac_cv_prog_CC
2685 if test $# != 0; then
2686 # We chose a different compiler from the bogus one.
2687 # However, it has the same basename, so the bogon will be chosen
2688 # first if we set CC to just the basename; use the full file name.
2690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2696 if test -n "$CC"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2698 $as_echo "$CC" >&6; }
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2706 if test -z "$CC"; then
2707 if test -n "$ac_tool_prefix"; then
2708 for ac_prog in cl.exe
2710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if ${ac_cv_prog_CC+:} false; then :
2715 $as_echo_n "(cached) " >&6
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 if test -n "$CC"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2740 $as_echo "$CC" >&6; }
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2747 test -n "$CC" && break
2750 if test -z "$CC"; then
2752 for ac_prog in cl.exe
2754 # Extract the first word of "$ac_prog", so it can be a program name with args.
2755 set dummy $ac_prog; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2759 $as_echo_n "(cached) " >&6
2761 if test -n "$ac_ct_CC"; then
2762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_ac_ct_CC="$ac_prog"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2782 if test -n "$ac_ct_CC"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2784 $as_echo "$ac_ct_CC" >&6; }
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2791 test -n "$ac_ct_CC" && break
2794 if test "x$ac_ct_CC" = x; then
2797 case $cross_compiling:$ac_tool_warned in
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801 ac_tool_warned=yes ;;
2810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812 as_fn_error $? "no acceptable C compiler found in \$PATH
2813 See \`config.log' for more details" "$LINENO" 5; }
2815 # Provide some information about the compiler.
2816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2819 for ac_option in --version -v -V -qversion; do
2820 { { ac_try="$ac_compiler $ac_option >&5"
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2826 $as_echo "$ac_try_echo"; } >&5
2827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2829 if test -s conftest.err; then
2831 ... rest of stderr output deleted ...
2832 10q' conftest.err >conftest.er1
2833 cat conftest.er1 >&5
2835 rm -f conftest.er1 conftest.err
2836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2837 test $ac_status = 0; }
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841 /* end confdefs.h. */
2851 ac_clean_files_save=$ac_clean_files
2852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2853 # Try to create an executable without -o first, disregard a.out.
2854 # It will help us diagnose broken compilers, and finding out an intuition
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2857 $as_echo_n "checking whether the C compiler works... " >&6; }
2858 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2860 # The possible output files:
2861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2864 for ac_file in $ac_files
2867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2873 if { { ac_try="$ac_link_default"
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879 $as_echo "$ac_try_echo"; } >&5
2880 (eval "$ac_link_default") 2>&5
2882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883 test $ac_status = 0; }; then :
2884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2887 # so that the user can short-circuit this test for compilers unknown to
2889 for ac_file in $ac_files ''
2891 test -f "$ac_file" || continue
2893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2896 # We found the default executable, but exeext='' is most
2900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 # We set ac_cv_exeext here because the later test for it is not
2905 # safe: cross compilers may not add the suffix if given an `-o'
2906 # argument, so we may need to know it at that point already.
2907 # Even if this section looks crufty: it has the advantage of
2914 test "$ac_cv_exeext" = no && ac_cv_exeext=
2919 if test -z "$ac_file"; then :
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 $as_echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927 as_fn_error 77 "C compiler cannot create executables
2928 See \`config.log' for more details" "$LINENO" 5; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2931 $as_echo "yes" >&6; }
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2934 $as_echo_n "checking for C compiler default output file name... " >&6; }
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2936 $as_echo "$ac_file" >&6; }
2937 ac_exeext=$ac_cv_exeext
2939 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2940 ac_clean_files=$ac_clean_files_save
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2942 $as_echo_n "checking for suffix of executables... " >&6; }
2943 if { { ac_try="$ac_link"
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949 $as_echo "$ac_try_echo"; } >&5
2950 (eval "$ac_link") 2>&5
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }; then :
2954 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2955 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2956 # work properly (i.e., refer to `conftest.exe'), while it won't with
2958 for ac_file in conftest.exe conftest conftest.*; do
2959 test -f "$ac_file" || continue
2961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2962 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2971 See \`config.log' for more details" "$LINENO" 5; }
2973 rm -f conftest conftest$ac_cv_exeext
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2975 $as_echo "$ac_cv_exeext" >&6; }
2977 rm -f conftest.$ac_ext
2978 EXEEXT=$ac_cv_exeext
2980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2981 /* end confdefs.h. */
2986 FILE *f = fopen ("conftest.out", "w");
2987 return ferror (f) || fclose (f) != 0;
2993 ac_clean_files="$ac_clean_files conftest.out"
2994 # Check that the compiler produces executables we can run. If not, either
2995 # the compiler is broken, or we cross compile.
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2997 $as_echo_n "checking whether we are cross compiling... " >&6; }
2998 if test "$cross_compiling" != yes; then
2999 { { ac_try="$ac_link"
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_link") 2>&5
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }
3010 if { ac_try='./conftest$ac_cv_exeext'
3011 { { case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 $as_echo "$ac_try_echo"; } >&5
3017 (eval "$ac_try") 2>&5
3019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020 test $ac_status = 0; }; }; then
3023 if test "$cross_compiling" = maybe; then
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error $? "cannot run C compiled programs.
3029 If you meant to cross compile, use \`--host'.
3030 See \`config.log' for more details" "$LINENO" 5; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3035 $as_echo "$cross_compiling" >&6; }
3037 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3038 ac_clean_files=$ac_clean_files_save
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3040 $as_echo_n "checking for suffix of object files... " >&6; }
3041 if ${ac_cv_objext+:} false; then :
3042 $as_echo_n "(cached) " >&6
3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045 /* end confdefs.h. */
3055 rm -f conftest.o conftest.obj
3056 if { { ac_try="$ac_compile"
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_compile") 2>&5
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }; then :
3067 for ac_file in conftest.o conftest.obj conftest.*; do
3068 test -f "$ac_file" || continue;
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3071 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3076 $as_echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "cannot compute suffix of object files: cannot compile
3082 See \`config.log' for more details" "$LINENO" 5; }
3084 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3087 $as_echo "$ac_cv_objext" >&6; }
3088 OBJEXT=$ac_cv_objext
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3091 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3092 if ${ac_cv_c_compiler_gnu+:} false; then :
3093 $as_echo_n "(cached) " >&6
3095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096 /* end confdefs.h. */
3109 if ac_fn_c_try_compile "$LINENO"; then :
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3119 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3120 if test $ac_compiler_gnu = yes; then
3125 ac_test_CFLAGS=${CFLAGS+set}
3126 ac_save_CFLAGS=$CFLAGS
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3128 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3129 if ${ac_cv_prog_cc_g+:} false; then :
3130 $as_echo_n "(cached) " >&6
3132 ac_save_c_werror_flag=$ac_c_werror_flag
3133 ac_c_werror_flag=yes
3136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137 /* end confdefs.h. */
3147 if ac_fn_c_try_compile "$LINENO"; then :
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h. */
3162 if ac_fn_c_try_compile "$LINENO"; then :
3165 ac_c_werror_flag=$ac_save_c_werror_flag
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3178 if ac_fn_c_try_compile "$LINENO"; then :
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 ac_c_werror_flag=$ac_save_c_werror_flag
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3189 $as_echo "$ac_cv_prog_cc_g" >&6; }
3190 if test "$ac_test_CFLAGS" = set; then
3191 CFLAGS=$ac_save_CFLAGS
3192 elif test $ac_cv_prog_cc_g = yes; then
3193 if test "$GCC" = yes; then
3199 if test "$GCC" = yes; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3206 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3207 if ${ac_cv_prog_cc_c89+:} false; then :
3208 $as_echo_n "(cached) " >&6
3210 ac_cv_prog_cc_c89=no
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3216 #include <sys/types.h>
3217 #include <sys/stat.h>
3218 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3219 struct buf { int x; };
3220 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3221 static char *e (p, i)
3227 static char *f (char * (*g) (char **, int), char **p, ...)
3232 s = g (p, va_arg (v,int));
3237 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3238 function prototypes and stuff, but not '\xHH' hex character constants.
3239 These don't provoke an error unfortunately, instead are silently treated
3240 as 'x'. The following induces an error, until -std is added to get
3241 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3242 array size at least. It's necessary to write '\x00'==0 to get something
3243 that's true only with -std. */
3244 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3246 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3247 inside strings and character constants. */
3249 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3251 int test (int i, double x);
3252 struct s1 {int (*f) (int a);};
3253 struct s2 {int (*f) (double a);};
3254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3260 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3265 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3266 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3268 CC="$ac_save_CC $ac_arg"
3269 if ac_fn_c_try_compile "$LINENO"; then :
3270 ac_cv_prog_cc_c89=$ac_arg
3272 rm -f core conftest.err conftest.$ac_objext
3273 test "x$ac_cv_prog_cc_c89" != "xno" && break
3275 rm -f conftest.$ac_ext
3280 case "x$ac_cv_prog_cc_c89" in
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3283 $as_echo "none needed" >&6; } ;;
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3286 $as_echo "unsupported" >&6; } ;;
3288 CC="$CC $ac_cv_prog_cc_c89"
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3290 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3292 if test "x$ac_cv_prog_cc_c89" != xno; then :
3297 ac_cpp='$CPP $CPPFLAGS'
3298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304 ac_cpp='$CPP $CPPFLAGS'
3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3309 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3310 # On Suns, sometimes $CPP names a directory.
3311 if test -n "$CPP" && test -d "$CPP"; then
3314 if test -z "$CPP"; then
3315 if ${ac_cv_prog_CPP+:} false; then :
3316 $as_echo_n "(cached) " >&6
3318 # Double quotes because CPP needs to be expanded
3319 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3322 for ac_c_preproc_warn_flag in '' yes
3324 # Use a header file that comes with gcc, so configuring glibc
3325 # with a fresh cross-compiler works.
3326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3327 # <limits.h> exists even on freestanding compilers.
3328 # On the NeXT, cc -E runs the code through the compiler's parser,
3329 # not just through cpp. "Syntax error" is here to catch this case.
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3333 # include <limits.h>
3335 # include <assert.h>
3339 if ac_fn_c_try_cpp "$LINENO"; then :
3342 # Broken: fails on valid input.
3345 rm -f conftest.err conftest.i conftest.$ac_ext
3347 # OK, works on sane cases. Now check whether nonexistent headers
3348 # can be detected and how.
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351 #include <ac_nonexistent.h>
3353 if ac_fn_c_try_cpp "$LINENO"; then :
3354 # Broken: success on invalid input.
3357 # Passes both tests.
3361 rm -f conftest.err conftest.i conftest.$ac_ext
3364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3365 rm -f conftest.i conftest.err conftest.$ac_ext
3366 if $ac_preproc_ok; then :
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3379 $as_echo "$CPP" >&6; }
3381 for ac_c_preproc_warn_flag in '' yes
3383 # Use a header file that comes with gcc, so configuring glibc
3384 # with a fresh cross-compiler works.
3385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3386 # <limits.h> exists even on freestanding compilers.
3387 # On the NeXT, cc -E runs the code through the compiler's parser,
3388 # not just through cpp. "Syntax error" is here to catch this case.
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3392 # include <limits.h>
3394 # include <assert.h>
3398 if ac_fn_c_try_cpp "$LINENO"; then :
3401 # Broken: fails on valid input.
3404 rm -f conftest.err conftest.i conftest.$ac_ext
3406 # OK, works on sane cases. Now check whether nonexistent headers
3407 # can be detected and how.
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410 #include <ac_nonexistent.h>
3412 if ac_fn_c_try_cpp "$LINENO"; then :
3413 # Broken: success on invalid input.
3416 # Passes both tests.
3420 rm -f conftest.err conftest.i conftest.$ac_ext
3423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3424 rm -f conftest.i conftest.err conftest.$ac_ext
3425 if $ac_preproc_ok; then :
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3431 See \`config.log' for more details" "$LINENO" 5; }
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3442 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3443 if ${ac_cv_path_GREP+:} false; then :
3444 $as_echo_n "(cached) " >&6
3446 if test -z "$GREP"; then
3447 ac_path_GREP_found=false
3448 # Loop through the user's path and test for each of PROGNAME-LIST
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3453 test -z "$as_dir" && as_dir=.
3454 for ac_prog in grep ggrep; do
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3457 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3458 # Check for GNU ac_path_GREP and select it if it is found.
3459 # Check for GNU $ac_path_GREP
3460 case `"$ac_path_GREP" --version 2>&1` in
3462 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3465 $as_echo_n 0123456789 >"conftest.in"
3468 cat "conftest.in" "conftest.in" >"conftest.tmp"
3469 mv "conftest.tmp" "conftest.in"
3470 cp "conftest.in" "conftest.nl"
3471 $as_echo 'GREP' >> "conftest.nl"
3472 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3474 as_fn_arith $ac_count + 1 && ac_count=$as_val
3475 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3476 # Best one so far, save it but keep looking for a better one
3477 ac_cv_path_GREP="$ac_path_GREP"
3478 ac_path_GREP_max=$ac_count
3480 # 10*(2^10) chars as input seems more than enough
3481 test $ac_count -gt 10 && break
3483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3486 $ac_path_GREP_found && break 3
3491 if test -z "$ac_cv_path_GREP"; then
3492 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3495 ac_cv_path_GREP=$GREP
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3500 $as_echo "$ac_cv_path_GREP" >&6; }
3501 GREP="$ac_cv_path_GREP"
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3505 $as_echo_n "checking for egrep... " >&6; }
3506 if ${ac_cv_path_EGREP+:} false; then :
3507 $as_echo_n "(cached) " >&6
3509 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3510 then ac_cv_path_EGREP="$GREP -E"
3512 if test -z "$EGREP"; then
3513 ac_path_EGREP_found=false
3514 # Loop through the user's path and test for each of PROGNAME-LIST
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3519 test -z "$as_dir" && as_dir=.
3520 for ac_prog in egrep; do
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3523 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3524 # Check for GNU ac_path_EGREP and select it if it is found.
3525 # Check for GNU $ac_path_EGREP
3526 case `"$ac_path_EGREP" --version 2>&1` in
3528 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3531 $as_echo_n 0123456789 >"conftest.in"
3534 cat "conftest.in" "conftest.in" >"conftest.tmp"
3535 mv "conftest.tmp" "conftest.in"
3536 cp "conftest.in" "conftest.nl"
3537 $as_echo 'EGREP' >> "conftest.nl"
3538 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3540 as_fn_arith $ac_count + 1 && ac_count=$as_val
3541 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3542 # Best one so far, save it but keep looking for a better one
3543 ac_cv_path_EGREP="$ac_path_EGREP"
3544 ac_path_EGREP_max=$ac_count
3546 # 10*(2^10) chars as input seems more than enough
3547 test $ac_count -gt 10 && break
3549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3552 $ac_path_EGREP_found && break 3
3557 if test -z "$ac_cv_path_EGREP"; then
3558 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3561 ac_cv_path_EGREP=$EGREP
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3567 $as_echo "$ac_cv_path_EGREP" >&6; }
3568 EGREP="$ac_cv_path_EGREP"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3572 $as_echo_n "checking for ANSI C header files... " >&6; }
3573 if ${ac_cv_header_stdc+:} false; then :
3574 $as_echo_n "(cached) " >&6
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592 ac_cv_header_stdc=yes
3594 ac_cv_header_stdc=no
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 if test $ac_cv_header_stdc = yes; then
3599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3606 $EGREP "memchr" >/dev/null 2>&1; then :
3609 ac_cv_header_stdc=no
3615 if test $ac_cv_header_stdc = yes; then
3616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3623 $EGREP "free" >/dev/null 2>&1; then :
3626 ac_cv_header_stdc=no
3632 if test $ac_cv_header_stdc = yes; then
3633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3634 if test "$cross_compiling" = yes; then :
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3641 #if ((' ' & 0x0FF) == 0x020)
3642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3645 # define ISLOWER(c) \
3646 (('a' <= (c) && (c) <= 'i') \
3647 || ('j' <= (c) && (c) <= 'r') \
3648 || ('s' <= (c) && (c) <= 'z'))
3649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3657 for (i = 0; i < 256; i++)
3658 if (XOR (islower (i), ISLOWER (i))
3659 || toupper (i) != TOUPPER (i))
3664 if ac_fn_c_try_run "$LINENO"; then :
3667 ac_cv_header_stdc=no
3669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3670 conftest.$ac_objext conftest.beam conftest.$ac_ext
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3676 $as_echo "$ac_cv_header_stdc" >&6; }
3677 if test $ac_cv_header_stdc = yes; then
3679 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3683 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3684 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3685 inttypes.h stdint.h unistd.h
3687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3688 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3690 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3691 cat >>confdefs.h <<_ACEOF
3692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3701 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3702 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3709 if test "$MINIX" = yes; then
3711 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3714 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3717 $as_echo "#define _MINIX 1" >>confdefs.h
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3723 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3724 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3725 $as_echo_n "(cached) " >&6
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3730 # define __EXTENSIONS__ 1
3731 $ac_includes_default
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_safe_to_define___extensions__=yes
3743 ac_cv_safe_to_define___extensions__=no
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3748 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3749 test $ac_cv_safe_to_define___extensions__ = yes &&
3750 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3752 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3754 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3756 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3758 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3762 # Initialize Automake
3763 am__api_version='1.11'
3766 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3767 if test -f "$ac_dir/install-sh"; then
3769 ac_install_sh="$ac_aux_dir/install-sh -c"
3771 elif test -f "$ac_dir/install.sh"; then
3773 ac_install_sh="$ac_aux_dir/install.sh -c"
3775 elif test -f "$ac_dir/shtool"; then
3777 ac_install_sh="$ac_aux_dir/shtool install -c"
3781 if test -z "$ac_aux_dir"; then
3782 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3785 # These three variables are undocumented and unsupported,
3786 # and are intended to be withdrawn in a future Autoconf release.
3787 # They can cause serious problems if a builder's source tree is in a directory
3788 # whose full name contains unusual characters.
3789 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3790 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3791 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3794 # Find a good install program. We prefer a C program (faster),
3795 # so one script is as good as another. But avoid the broken or
3796 # incompatible versions:
3797 # SysV /etc/install, /usr/sbin/install
3798 # SunOS /usr/etc/install
3799 # IRIX /sbin/install
3801 # AmigaOS /C/install, which installs bootblocks on floppy discs
3802 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3803 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3804 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3805 # OS/2's system install, which has a completely different semantic
3806 # ./install, which can be erroneously created by make from ./install.sh.
3807 # Reject install programs that cannot install multiple files.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3809 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3810 if test -z "$INSTALL"; then
3811 if ${ac_cv_path_install+:} false; then :
3812 $as_echo_n "(cached) " >&6
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 test -z "$as_dir" && as_dir=.
3819 # Account for people who put trailing slashes in PATH elements.
3820 case $as_dir/ in #((
3821 ./ | .// | /[cC]/* | \
3822 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3823 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3826 # OSF1 and SCO ODT 3.0 have their own names for install.
3827 # Don't use installbsd from OSF since it installs stuff as root
3829 for ac_prog in ginstall scoinst install; do
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3832 if test $ac_prog = install &&
3833 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3834 # AIX install. It has an incompatible calling convention.
3836 elif test $ac_prog = install &&
3837 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3838 # program-specific install script used by HP pwplus--don't use.
3841 rm -rf conftest.one conftest.two conftest.dir
3842 echo one > conftest.one
3843 echo two > conftest.two
3845 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3846 test -s conftest.one && test -s conftest.two &&
3847 test -s conftest.dir/conftest.one &&
3848 test -s conftest.dir/conftest.two
3850 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3863 rm -rf conftest.one conftest.two conftest.dir
3866 if test "${ac_cv_path_install+set}" = set; then
3867 INSTALL=$ac_cv_path_install
3869 # As a last resort, use the slow shell script. Don't cache a
3870 # value for INSTALL within a source directory, because that will
3871 # break other packages using the cache if that directory is
3872 # removed, or if the value is a relative name.
3873 INSTALL=$ac_install_sh
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3877 $as_echo "$INSTALL" >&6; }
3879 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3880 # It thinks the first close brace ends the variable substitution.
3881 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3883 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3885 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3888 $as_echo_n "checking whether build environment is sane... " >&6; }
3891 echo timestamp > conftest.file
3892 # Reject unsafe characters in $srcdir or the absolute working directory
3893 # name. Accept space and tab only in the latter.
3897 *[\\\"\#\$\&\'\`$am_lf]*)
3898 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3901 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3902 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3905 # Do `set' in a subshell so we don't clobber the current shell's
3906 # arguments. Must try -L first in case configure is actually a
3907 # symlink; some systems play weird games with the mod time of symlinks
3908 # (eg FreeBSD returns the mod time of the symlink's containing
3911 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3912 if test "$*" = "X"; then
3914 set X `ls -t "$srcdir/configure" conftest.file`
3917 if test "$*" != "X $srcdir/configure conftest.file" \
3918 && test "$*" != "X conftest.file $srcdir/configure"; then
3920 # If neither matched, then we have a broken ls. This can happen
3921 # if, for instance, CONFIG_SHELL is bash and it inherits a
3922 # broken ls alias from the environment. This has actually
3923 # happened. Such a system could not be considered "sane".
3924 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3925 alias in your environment" "$LINENO" 5
3928 test "$2" = conftest.file
3934 as_fn_error $? "newly created file is older than distributed files!
3935 Check your system clock" "$LINENO" 5
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3938 $as_echo "yes" >&6; }
3939 test "$program_prefix" != NONE &&
3940 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3941 # Use a double $ so make ignores it.
3942 test "$program_suffix" != NONE &&
3943 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3944 # Double any \ or $.
3945 # By default was `s,x,x', remove it if useless.
3946 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3947 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3949 # expand $ac_aux_dir to an absolute path
3950 am_aux_dir=`cd $ac_aux_dir && pwd`
3952 if test x"${MISSING+set}" != xset; then
3955 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3957 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3960 # Use eval to expand $SHELL
3961 if eval "$MISSING --run true"; then
3962 am_missing_run="$MISSING --run "
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3966 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3969 if test x"${install_sh}" != xset; then
3972 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3974 install_sh="\${SHELL} $am_aux_dir/install-sh"
3978 # Installed binaries are usually stripped using `strip' when the user
3979 # run `make install-strip'. However `strip' might not be the right
3980 # tool to use in cross-compilation environments, therefore Automake
3981 # will honor the `STRIP' environment variable to overrule this program.
3982 if test "$cross_compiling" != no; then
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3985 set dummy ${ac_tool_prefix}strip; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_prog_STRIP+:} false; then :
3989 $as_echo_n "(cached) " >&6
3991 if test -n "$STRIP"; then
3992 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 STRIP=$ac_cv_prog_STRIP
4012 if test -n "$STRIP"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4014 $as_echo "$STRIP" >&6; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4022 if test -z "$ac_cv_prog_STRIP"; then
4024 # Extract the first word of "strip", so it can be a program name with args.
4025 set dummy strip; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4029 $as_echo_n "(cached) " >&6
4031 if test -n "$ac_ct_STRIP"; then
4032 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4041 ac_cv_prog_ac_ct_STRIP="strip"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4052 if test -n "$ac_ct_STRIP"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4054 $as_echo "$ac_ct_STRIP" >&6; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4060 if test "x$ac_ct_STRIP" = x; then
4063 case $cross_compiling:$ac_tool_warned in
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4067 ac_tool_warned=yes ;;
4072 STRIP="$ac_cv_prog_STRIP"
4076 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4079 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4080 if test -z "$MKDIR_P"; then
4081 if ${ac_cv_path_mkdir+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4088 test -z "$as_dir" && as_dir=.
4089 for ac_prog in mkdir gmkdir; do
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4092 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4093 'mkdir (GNU coreutils) '* | \
4094 'mkdir (coreutils) '* | \
4095 'mkdir (fileutils) '4.1*)
4096 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4106 test -d ./--version && rmdir ./--version
4107 if test "${ac_cv_path_mkdir+set}" = set; then
4108 MKDIR_P="$ac_cv_path_mkdir -p"
4110 # As a last resort, use the slow shell script. Don't cache a
4111 # value for MKDIR_P within a source directory, because that will
4112 # break other packages using the cache if that directory is
4113 # removed, or if the value is a relative name.
4114 MKDIR_P="$ac_install_sh -d"
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4118 $as_echo "$MKDIR_P" >&6; }
4122 [\\/$]* | ?:[\\/]*) ;;
4123 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4126 for ac_prog in gawk mawk nawk awk
4128 # Extract the first word of "$ac_prog", so it can be a program name with args.
4129 set dummy $ac_prog; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_AWK+:} false; then :
4133 $as_echo_n "(cached) " >&6
4135 if test -n "$AWK"; then
4136 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145 ac_cv_prog_AWK="$ac_prog"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 if test -n "$AWK"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4158 $as_echo "$AWK" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4165 test -n "$AWK" && break
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4169 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4171 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4172 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4173 $as_echo_n "(cached) " >&6
4175 cat >conftest.make <<\_ACEOF
4178 @echo '@@@%%%=$(MAKE)=@@@%%%'
4180 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4181 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4183 eval ac_cv_prog_make_${ac_make}_set=yes;;
4185 eval ac_cv_prog_make_${ac_make}_set=no;;
4189 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4191 $as_echo "yes" >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4196 SET_MAKE="MAKE=${MAKE-make}"
4199 rm -rf .tst 2>/dev/null
4200 mkdir .tst 2>/dev/null
4201 if test -d .tst; then
4206 rmdir .tst 2>/dev/null
4208 DEPDIR="${am__leading_dot}deps"
4210 ac_config_commands="$ac_config_commands depfiles"
4213 am_make=${MAKE-make}
4214 cat > confinc << 'END'
4216 @echo this is the am__doit target
4219 # If we don't find an include directive, just comment out the code.
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4221 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4225 # First try GNU make style include.
4226 echo "include confinc" > confmf
4227 # Ignore all kinds of additional output from `make'.
4228 case `$am_make -s -f confmf 2> /dev/null` in #(
4229 *the\ am__doit\ target*)
4235 # Now try BSD make style include.
4236 if test "$am__include" = "#"; then
4237 echo '.include "confinc"' > confmf
4238 case `$am_make -s -f confmf 2> /dev/null` in #(
4239 *the\ am__doit\ target*)
4240 am__include=.include
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4249 $as_echo "$_am_result" >&6; }
4250 rm -f confinc confmf
4252 # Check whether --enable-dependency-tracking was given.
4253 if test "${enable_dependency_tracking+set}" = set; then :
4254 enableval=$enable_dependency_tracking;
4257 if test "x$enable_dependency_tracking" != xno; then
4258 am_depcomp="$ac_aux_dir/depcomp"
4261 if test "x$enable_dependency_tracking" != xno; then
4270 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4271 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4272 # is not polluted with repeated "-I."
4273 am__isrc=' -I$(srcdir)'
4274 # test to see if srcdir already configured
4275 if test -f $srcdir/config.status; then
4276 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4280 # test whether we have cygpath
4281 if test -z "$CYGPATH_W"; then
4282 if (cygpath --version) >/dev/null 2>/dev/null; then
4283 CYGPATH_W='cygpath -w'
4290 # Define the identity of the package.
4295 cat >>confdefs.h <<_ACEOF
4296 #define PACKAGE "$PACKAGE"
4300 cat >>confdefs.h <<_ACEOF
4301 #define VERSION "$VERSION"
4304 # Some tools Automake needs.
4306 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4309 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4312 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4315 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4318 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4320 # We need awk for the "check" target. The system "awk" is bad on
4322 # Always define AMTAR for backward compatibility.
4324 AMTAR=${AMTAR-"${am_missing_run}tar"}
4326 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4331 depcc="$CC" am_compiler_list=
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4334 $as_echo_n "checking dependency style of $depcc... " >&6; }
4335 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4336 $as_echo_n "(cached) " >&6
4338 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4339 # We make a subdir and do the tests there. Otherwise we can end up
4340 # making bogus files that we don't know about and never remove. For
4341 # instance it was reported that on HP-UX the gcc test will end up
4342 # making a dummy file named `D' -- because `-MD' means `put the output
4345 # Copy depcomp to subdir because otherwise we won't find it if we're
4346 # using a relative directory.
4347 cp "$am_depcomp" conftest.dir
4349 # We will build objects and dependencies in a subdirectory because
4350 # it helps to detect inapplicable dependency modes. For instance
4351 # both Tru64's cc and ICC support -MD to output dependencies as a
4352 # side effect of compilation, but ICC will put the dependencies in
4353 # the current directory while Tru64 will put them in the object
4357 am_cv_CC_dependencies_compiler_type=none
4358 if test "$am_compiler_list" = ""; then
4359 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4362 case " $depcc " in #(
4363 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4366 for depmode in $am_compiler_list; do
4367 # Setup a source with many dependencies, because some compilers
4368 # like to wrap large dependency lists on column 80 (with \), and
4369 # we should not choose a depcomp mode which is confused by this.
4371 # We need to recreate these files for each test, as the compiler may
4372 # overwrite some of them when testing with obscure command lines.
4373 # This happens at least with the AIX C compiler.
4375 for i in 1 2 3 4 5 6; do
4376 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4377 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4378 # Solaris 8's {/usr,}/bin/sh.
4379 touch sub/conftst$i.h
4381 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4383 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4384 # mode. It turns out that the SunPro C++ compiler does not properly
4385 # handle `-M -o', and we need to detect this. Also, some Intel
4386 # versions had trouble with output in subdirs
4387 am__obj=sub/conftest.${OBJEXT-o}
4388 am__minus_obj="-o $am__obj"
4391 # This depmode causes a compiler race in universal mode.
4392 test "$am__universal" = false || continue
4395 # after this tag, mechanisms are not by side-effect, so they'll
4396 # only be used when explicitly requested
4397 if test "x$enable_dependency_tracking" = xyes; then
4403 msvisualcpp | msvcmsys)
4404 # This compiler won't grok `-c -o', but also, the minuso test has
4405 # not run yet. These depmodes are late enough in the game, and
4406 # so weak that their functioning should not be impacted.
4407 am__obj=conftest.${OBJEXT-o}
4412 if depmode=$depmode \
4413 source=sub/conftest.c object=$am__obj \
4414 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4415 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4416 >/dev/null 2>conftest.err &&
4417 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4418 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4419 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4420 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4421 # icc doesn't choke on unknown options, it will just issue warnings
4422 # or remarks (even with -Werror). So we grep stderr for any message
4423 # that says an option was ignored or not supported.
4424 # When given -MP, icc 7.0 and 7.1 complain thusly:
4425 # icc: Command line warning: ignoring option '-M'; no argument required
4426 # The diagnosis changed in icc 8.0:
4427 # icc: Command line remark: option '-MP' not supported
4428 if (grep 'ignoring option' conftest.err ||
4429 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4430 am_cv_CC_dependencies_compiler_type=$depmode
4439 am_cv_CC_dependencies_compiler_type=none
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4444 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4445 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4448 test "x$enable_dependency_tracking" != xno \
4449 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4451 am__fastdepCC_FALSE='#'
4453 am__fastdepCC_TRUE='#'
4454 am__fastdepCC_FALSE=
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4461 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4462 # Check whether --enable-maintainer-mode was given.
4463 if test "${enable_maintainer_mode+set}" = set; then :
4464 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4466 USE_MAINTAINER_MODE=no
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4470 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4471 if test $USE_MAINTAINER_MODE = yes; then
4472 MAINTAINER_MODE_TRUE=
4473 MAINTAINER_MODE_FALSE='#'
4475 MAINTAINER_MODE_TRUE='#'
4476 MAINTAINER_MODE_FALSE=
4479 MAINT=$MAINTAINER_MODE_TRUE
4483 # Initialize libtool
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4487 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4493 macro_revision='1.3293'
4507 ltmain="$ac_aux_dir/ltmain.sh"
4509 # Make sure we can run config.sub.
4510 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4511 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4514 $as_echo_n "checking build system type... " >&6; }
4515 if ${ac_cv_build+:} false; then :
4516 $as_echo_n "(cached) " >&6
4518 ac_build_alias=$build_alias
4519 test "x$ac_build_alias" = x &&
4520 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4521 test "x$ac_build_alias" = x &&
4522 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4523 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4524 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4528 $as_echo "$ac_cv_build" >&6; }
4529 case $ac_cv_build in
4531 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4534 ac_save_IFS=$IFS; IFS='-'
4540 # Remember, the first character of IFS is used to create $*,
4541 # except with old shells:
4544 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4548 $as_echo_n "checking host system type... " >&6; }
4549 if ${ac_cv_host+:} false; then :
4550 $as_echo_n "(cached) " >&6
4552 if test "x$host_alias" = x; then
4553 ac_cv_host=$ac_cv_build
4555 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4556 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4561 $as_echo "$ac_cv_host" >&6; }
4564 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4567 ac_save_IFS=$IFS; IFS='-'
4573 # Remember, the first character of IFS is used to create $*,
4574 # except with old shells:
4577 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4580 # Backslashify metacharacters that are still active within
4581 # double-quoted strings.
4582 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4584 # Same as above, but do not quote variable references.
4585 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4587 # Sed substitution to delay expansion of an escaped shell variable in a
4588 # double_quote_subst'ed string.
4589 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4591 # Sed substitution to delay expansion of an escaped single quote.
4592 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4594 # Sed substitution to avoid accidental globbing in evaled expressions
4595 no_glob_subst='s/\*/\\\*/g'
4597 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4598 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4599 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4602 $as_echo_n "checking how to print strings... " >&6; }
4603 # Test print first, because it will be a builtin if present.
4604 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4605 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4607 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4610 # Use this function as a fallback that always works.
4611 func_fallback_echo ()
4613 eval 'cat <<_LTECHO_EOF
4617 ECHO='func_fallback_echo'
4620 # func_echo_all arg...
4621 # Invoke $ECHO with all args, space-separated.
4628 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4629 $as_echo "printf" >&6; } ;;
4630 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4631 $as_echo "print -r" >&6; } ;;
4632 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4633 $as_echo "cat" >&6; } ;;
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4650 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4651 if ${ac_cv_path_SED+:} false; then :
4652 $as_echo_n "(cached) " >&6
4654 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4655 for ac_i in 1 2 3 4 5 6 7; do
4656 ac_script="$ac_script$as_nl$ac_script"
4658 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4659 { ac_script=; unset ac_script;}
4660 if test -z "$SED"; then
4661 ac_path_SED_found=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_prog in sed gsed; do
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4671 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4672 # Check for GNU ac_path_SED and select it if it is found.
4673 # Check for GNU $ac_path_SED
4674 case `"$ac_path_SED" --version 2>&1` in
4676 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4679 $as_echo_n 0123456789 >"conftest.in"
4682 cat "conftest.in" "conftest.in" >"conftest.tmp"
4683 mv "conftest.tmp" "conftest.in"
4684 cp "conftest.in" "conftest.nl"
4685 $as_echo '' >> "conftest.nl"
4686 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688 as_fn_arith $ac_count + 1 && ac_count=$as_val
4689 if test $ac_count -gt ${ac_path_SED_max-0}; then
4690 # Best one so far, save it but keep looking for a better one
4691 ac_cv_path_SED="$ac_path_SED"
4692 ac_path_SED_max=$ac_count
4694 # 10*(2^10) chars as input seems more than enough
4695 test $ac_count -gt 10 && break
4697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4700 $ac_path_SED_found && break 3
4705 if test -z "$ac_cv_path_SED"; then
4706 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4714 $as_echo "$ac_cv_path_SED" >&6; }
4715 SED="$ac_cv_path_SED"
4718 test -z "$SED" && SED=sed
4719 Xsed="$SED -e 1s/^X//"
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4732 $as_echo_n "checking for fgrep... " >&6; }
4733 if ${ac_cv_path_FGREP+:} false; then :
4734 $as_echo_n "(cached) " >&6
4736 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4737 then ac_cv_path_FGREP="$GREP -F"
4739 if test -z "$FGREP"; then
4740 ac_path_FGREP_found=false
4741 # Loop through the user's path and test for each of PROGNAME-LIST
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4746 test -z "$as_dir" && as_dir=.
4747 for ac_prog in fgrep; do
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4750 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4751 # Check for GNU ac_path_FGREP and select it if it is found.
4752 # Check for GNU $ac_path_FGREP
4753 case `"$ac_path_FGREP" --version 2>&1` in
4755 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4758 $as_echo_n 0123456789 >"conftest.in"
4761 cat "conftest.in" "conftest.in" >"conftest.tmp"
4762 mv "conftest.tmp" "conftest.in"
4763 cp "conftest.in" "conftest.nl"
4764 $as_echo 'FGREP' >> "conftest.nl"
4765 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4767 as_fn_arith $ac_count + 1 && ac_count=$as_val
4768 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4769 # Best one so far, save it but keep looking for a better one
4770 ac_cv_path_FGREP="$ac_path_FGREP"
4771 ac_path_FGREP_max=$ac_count
4773 # 10*(2^10) chars as input seems more than enough
4774 test $ac_count -gt 10 && break
4776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779 $ac_path_FGREP_found && break 3
4784 if test -z "$ac_cv_path_FGREP"; then
4785 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4788 ac_cv_path_FGREP=$FGREP
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4794 $as_echo "$ac_cv_path_FGREP" >&6; }
4795 FGREP="$ac_cv_path_FGREP"
4798 test -z "$GREP" && GREP=grep
4818 # Check whether --with-gnu-ld was given.
4819 if test "${with_gnu_ld+set}" = set; then :
4820 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4826 if test "$GCC" = yes; then
4827 # Check if gcc -print-prog-name=ld gives a path.
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4829 $as_echo_n "checking for ld used by $CC... " >&6; }
4832 # gcc leaves a trailing carriage return which upsets mingw
4833 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4835 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4838 # Accept absolute paths.
4840 re_direlt='/[^/][^/]*/\.\./'
4841 # Canonicalize the pathname of ld
4842 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4843 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4844 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4846 test -z "$LD" && LD="$ac_prog"
4849 # If it fails, then pretend we aren't using GCC.
4853 # If it is relative, then search for the first ld in PATH.
4857 elif test "$with_gnu_ld" = yes; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4859 $as_echo_n "checking for GNU ld... " >&6; }
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4862 $as_echo_n "checking for non-GNU ld... " >&6; }
4864 if ${lt_cv_path_LD+:} false; then :
4865 $as_echo_n "(cached) " >&6
4867 if test -z "$LD"; then
4868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4869 for ac_dir in $PATH; do
4871 test -z "$ac_dir" && ac_dir=.
4872 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4873 lt_cv_path_LD="$ac_dir/$ac_prog"
4874 # Check to see if the program is GNU ld. I'd rather use --version,
4875 # but apparently some variants of GNU ld only accept -v.
4876 # Break only if it was the GNU/non-GNU ld that we prefer.
4877 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4878 *GNU* | *'with BFD'*)
4879 test "$with_gnu_ld" != no && break
4882 test "$with_gnu_ld" != yes && break
4889 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4894 if test -n "$LD"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4896 $as_echo "$LD" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4901 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4904 if ${lt_cv_prog_gnu_ld+:} false; then :
4905 $as_echo_n "(cached) " >&6
4907 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4908 case `$LD -v 2>&1 </dev/null` in
4909 *GNU* | *'with BFD'*)
4910 lt_cv_prog_gnu_ld=yes
4913 lt_cv_prog_gnu_ld=no
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4918 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4919 with_gnu_ld=$lt_cv_prog_gnu_ld
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4930 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4931 if ${lt_cv_path_NM+:} false; then :
4932 $as_echo_n "(cached) " >&6
4934 if test -n "$NM"; then
4935 # Let the user override the test.
4938 lt_nm_to_check="${ac_tool_prefix}nm"
4939 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4940 lt_nm_to_check="$lt_nm_to_check nm"
4942 for lt_tmp_nm in $lt_nm_to_check; do
4943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4944 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4946 test -z "$ac_dir" && ac_dir=.
4947 tmp_nm="$ac_dir/$lt_tmp_nm"
4948 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4949 # Check to see if the nm accepts a BSD-compat flag.
4950 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4951 # nm: unknown option "B" ignored
4952 # Tru64's nm complains that /dev/null is an invalid object file
4953 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4954 */dev/null* | *'Invalid file or object type'*)
4955 lt_cv_path_NM="$tmp_nm -B"
4959 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4961 lt_cv_path_NM="$tmp_nm -p"
4965 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4966 continue # so that we can try to find one that supports BSD flags
4975 : ${lt_cv_path_NM=no}
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4979 $as_echo "$lt_cv_path_NM" >&6; }
4980 if test "$lt_cv_path_NM" != "no"; then
4983 # Didn't find any BSD compatible name lister, look for dumpbin.
4984 if test -n "$DUMPBIN"; then :
4985 # Let the user override the test.
4987 if test -n "$ac_tool_prefix"; then
4988 for ac_prog in dumpbin "link -dump"
4990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_prog_DUMPBIN+:} false; then :
4995 $as_echo_n "(cached) " >&6
4997 if test -n "$DUMPBIN"; then
4998 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 DUMPBIN=$ac_cv_prog_DUMPBIN
5018 if test -n "$DUMPBIN"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5020 $as_echo "$DUMPBIN" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5027 test -n "$DUMPBIN" && break
5030 if test -z "$DUMPBIN"; then
5031 ac_ct_DUMPBIN=$DUMPBIN
5032 for ac_prog in dumpbin "link -dump"
5034 # Extract the first word of "$ac_prog", so it can be a program name with args.
5035 set dummy $ac_prog; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5039 $as_echo_n "(cached) " >&6
5041 if test -n "$ac_ct_DUMPBIN"; then
5042 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5062 if test -n "$ac_ct_DUMPBIN"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5064 $as_echo "$ac_ct_DUMPBIN" >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5071 test -n "$ac_ct_DUMPBIN" && break
5074 if test "x$ac_ct_DUMPBIN" = x; then
5077 case $cross_compiling:$ac_tool_warned in
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5081 ac_tool_warned=yes ;;
5083 DUMPBIN=$ac_ct_DUMPBIN
5087 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5089 DUMPBIN="$DUMPBIN -symbols"
5097 if test "$DUMPBIN" != ":"; then
5101 test -z "$NM" && NM=nm
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5109 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5110 if ${lt_cv_nm_interface+:} false; then :
5111 $as_echo_n "(cached) " >&6
5113 lt_cv_nm_interface="BSD nm"
5114 echo "int some_variable = 0;" > conftest.$ac_ext
5115 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5116 (eval "$ac_compile" 2>conftest.err)
5117 cat conftest.err >&5
5118 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5119 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5120 cat conftest.err >&5
5121 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5122 cat conftest.out >&5
5123 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5124 lt_cv_nm_interface="MS dumpbin"
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5129 $as_echo "$lt_cv_nm_interface" >&6; }
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5132 $as_echo_n "checking whether ln -s works... " >&6; }
5134 if test "$LN_S" = "ln -s"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5136 $as_echo "yes" >&6; }
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5139 $as_echo "no, using $LN_S" >&6; }
5142 # find the maximum length of command line arguments
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5144 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5145 if ${lt_cv_sys_max_cmd_len+:} false; then :
5146 $as_echo_n "(cached) " >&6
5153 # On DJGPP, this test can blow up pretty badly due to problems in libc
5154 # (any single argument exceeding 2000 bytes causes a buffer overrun
5155 # during glob expansion). Even if it were fixed, the result of this
5156 # check would be larger than it should be.
5157 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5161 # Under GNU Hurd, this test is not required because there is
5162 # no limit to the length of command line arguments.
5163 # Libtool will interpret -1 as no limit whatsoever
5164 lt_cv_sys_max_cmd_len=-1;
5167 cygwin* | mingw* | cegcc*)
5168 # On Win9x/ME, this test blows up -- it succeeds, but takes
5169 # about 5 minutes as the teststring grows exponentially.
5170 # Worse, since 9x/ME are not pre-emptively multitasking,
5171 # you end up with a "frozen" computer, even though with patience
5172 # the test eventually succeeds (with a max line length of 256k).
5173 # Instead, let's just punt: use the minimum linelength reported by
5174 # all of the supported platforms: 8192 (on NT/2K/XP).
5175 lt_cv_sys_max_cmd_len=8192;
5179 # On MiNT this can take a long time and run out of memory.
5180 lt_cv_sys_max_cmd_len=8192;
5184 # On AmigaOS with pdksh, this test takes hours, literally.
5185 # So we just punt and use a minimum line length of 8192.
5186 lt_cv_sys_max_cmd_len=8192;
5189 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5190 # This has been around since 386BSD, at least. Likely further.
5191 if test -x /sbin/sysctl; then
5192 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5193 elif test -x /usr/sbin/sysctl; then
5194 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5196 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5198 # And add a safety zone
5199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5204 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5205 lt_cv_sys_max_cmd_len=196608
5209 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5210 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5211 # nice to cause kernel panics so lets avoid the loop below.
5212 # First set a reasonable default.
5213 lt_cv_sys_max_cmd_len=16384
5215 if test -x /sbin/sysconfig; then
5216 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5217 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5222 lt_cv_sys_max_cmd_len=102400
5224 sysv5* | sco5v6* | sysv4.2uw2*)
5225 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5226 if test -n "$kargmax"; then
5227 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5229 lt_cv_sys_max_cmd_len=32768
5233 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5234 if test -n "$lt_cv_sys_max_cmd_len"; then
5235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5238 # Make teststring a little bigger before we do anything with it.
5239 # a 1K string should be a reasonable start.
5240 for i in 1 2 3 4 5 6 7 8 ; do
5241 teststring=$teststring$teststring
5243 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5244 # If test is not a shell built-in, we'll probably end up computing a
5245 # maximum length that is only half of the actual maximum length, but
5247 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5248 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5249 test $i != 17 # 1/2 MB should be enough
5252 teststring=$teststring$teststring
5254 # Only check the string length outside the loop.
5255 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5257 # Add a significant safety factor because C++ compilers can tack on
5258 # massive amounts of additional arguments before passing them to the
5259 # linker. It appears as though 1/2 is a usable value.
5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5267 if test -n $lt_cv_sys_max_cmd_len ; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5269 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5272 $as_echo "none" >&6; }
5274 max_cmd_len=$lt_cv_sys_max_cmd_len
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5286 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5287 # Try some XSI features
5290 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5292 && eval 'test $(( 1 + 1 )) -eq 2 \
5293 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5296 $as_echo "$xsi_shell" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5300 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5302 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5304 && lt_shell_append=yes
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5306 $as_echo "$lt_shell_append" >&6; }
5309 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5319 # test EBCDIC or ASCII
5320 case `echo X|tr X '\101'` in
5321 A) # ASCII based system
5322 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5323 lt_SP2NL='tr \040 \012'
5324 lt_NL2SP='tr \015\012 \040\040'
5326 *) # EBCDIC based system
5327 lt_SP2NL='tr \100 \n'
5328 lt_NL2SP='tr \r\n \100\100'
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5341 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5342 if ${lt_cv_to_host_file_cmd+:} false; then :
5343 $as_echo_n "(cached) " >&6
5348 *-*-mingw* ) # actually msys
5349 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5352 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5354 * ) # otherwise, assume *nix
5355 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5361 *-*-mingw* ) # actually msys
5362 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5365 lt_cv_to_host_file_cmd=func_convert_file_noop
5367 * ) # otherwise, assume *nix
5368 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5372 * ) # unhandled hosts (and "normal" native builds)
5373 lt_cv_to_host_file_cmd=func_convert_file_noop
5379 to_host_file_cmd=$lt_cv_to_host_file_cmd
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5381 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5388 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5389 if ${lt_cv_to_tool_file_cmd+:} false; then :
5390 $as_echo_n "(cached) " >&6
5392 #assume ordinary cross tools, or native build.
5393 lt_cv_to_tool_file_cmd=func_convert_file_noop
5397 *-*-mingw* ) # actually msys
5398 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5406 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5408 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5415 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5416 if ${lt_cv_ld_reload_flag+:} false; then :
5417 $as_echo_n "(cached) " >&6
5419 lt_cv_ld_reload_flag='-r'
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5422 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5423 reload_flag=$lt_cv_ld_reload_flag
5424 case $reload_flag in
5426 *) reload_flag=" $reload_flag" ;;
5428 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5430 cygwin* | mingw* | pw32* | cegcc*)
5431 if test "$GCC" != yes; then
5436 if test "$GCC" = yes; then
5437 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5439 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5452 if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5454 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_OBJDUMP+:} false; then :
5458 $as_echo_n "(cached) " >&6
5460 if test -n "$OBJDUMP"; then
5461 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 OBJDUMP=$ac_cv_prog_OBJDUMP
5481 if test -n "$OBJDUMP"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5483 $as_echo "$OBJDUMP" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5491 if test -z "$ac_cv_prog_OBJDUMP"; then
5492 ac_ct_OBJDUMP=$OBJDUMP
5493 # Extract the first word of "objdump", so it can be a program name with args.
5494 set dummy objdump; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5498 $as_echo_n "(cached) " >&6
5500 if test -n "$ac_ct_OBJDUMP"; then
5501 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
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_prog_ac_ct_OBJDUMP="objdump"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5521 if test -n "$ac_ct_OBJDUMP"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5523 $as_echo "$ac_ct_OBJDUMP" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5529 if test "x$ac_ct_OBJDUMP" = x; then
5532 case $cross_compiling:$ac_tool_warned in
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536 ac_tool_warned=yes ;;
5538 OBJDUMP=$ac_ct_OBJDUMP
5541 OBJDUMP="$ac_cv_prog_OBJDUMP"
5544 test -z "$OBJDUMP" && OBJDUMP=objdump
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5555 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5556 if ${lt_cv_deplibs_check_method+:} false; then :
5557 $as_echo_n "(cached) " >&6
5559 lt_cv_file_magic_cmd='$MAGIC_CMD'
5560 lt_cv_file_magic_test_file=
5561 lt_cv_deplibs_check_method='unknown'
5562 # Need to set the preceding variable on all platforms that support
5563 # interlibrary dependencies.
5564 # 'none' -- dependencies not supported.
5565 # `unknown' -- same as none, but documents that we really don't know.
5566 # 'pass_all' -- all dependencies passed with no checks.
5567 # 'test_compile' -- check by making test program.
5568 # 'file_magic [[regex]]' -- check by looking for files in library path
5569 # which responds to the $file_magic_cmd with a given extended regex.
5570 # If you have `file' or equivalent on your system and you're not sure
5571 # whether `pass_all' will *always* work, you probably want this one.
5575 lt_cv_deplibs_check_method=pass_all
5579 lt_cv_deplibs_check_method=pass_all
5583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5584 lt_cv_file_magic_cmd='/usr/bin/file -L'
5585 lt_cv_file_magic_test_file=/shlib/libc.so
5589 # func_win32_libid is a shell function defined in ltmain.sh
5590 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5591 lt_cv_file_magic_cmd='func_win32_libid'
5595 # Base MSYS/MinGW do not provide the 'file' command needed by
5596 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5597 # unless we find 'file', for example because we are cross-compiling.
5598 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5599 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5601 lt_cv_file_magic_cmd='func_win32_libid'
5603 # Keep this pattern in sync with the one in func_win32_libid.
5604 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5605 lt_cv_file_magic_cmd='$OBJDUMP -f'
5610 # use the weaker test based on 'objdump'. See mingw*.
5611 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5612 lt_cv_file_magic_cmd='$OBJDUMP -f'
5615 darwin* | rhapsody*)
5616 lt_cv_deplibs_check_method=pass_all
5619 freebsd* | dragonfly*)
5620 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5623 # Not sure whether the presence of OpenBSD here was a mistake.
5624 # Let's accept both of them until this is cleared up.
5625 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5626 lt_cv_file_magic_cmd=/usr/bin/file
5627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5631 lt_cv_deplibs_check_method=pass_all
5636 lt_cv_deplibs_check_method=pass_all
5640 lt_cv_deplibs_check_method=pass_all
5643 hpux10.20* | hpux11*)
5644 lt_cv_file_magic_cmd=/usr/bin/file
5647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5648 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5651 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5652 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5655 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5656 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5662 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5666 irix5* | irix6* | nonstopux*)
5668 *-32|*"-32 ") libmagic=32-bit;;
5669 *-n32|*"-n32 ") libmagic=N32;;
5670 *-64|*"-64 ") libmagic=64-bit;;
5671 *) libmagic=never-match;;
5673 lt_cv_deplibs_check_method=pass_all
5676 # This must be Linux ELF.
5677 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5678 lt_cv_deplibs_check_method=pass_all
5682 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5691 lt_cv_file_magic_cmd=/usr/bin/file
5692 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5696 lt_cv_deplibs_check_method=pass_all
5700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5707 osf3* | osf4* | osf5*)
5708 lt_cv_deplibs_check_method=pass_all
5712 lt_cv_deplibs_check_method=pass_all
5716 lt_cv_deplibs_check_method=pass_all
5719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5720 lt_cv_deplibs_check_method=pass_all
5724 case $host_vendor in
5726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5730 lt_cv_deplibs_check_method=pass_all
5733 lt_cv_file_magic_cmd='/bin/file'
5734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5737 lt_cv_file_magic_cmd='/bin/file'
5738 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5739 lt_cv_file_magic_test_file=/lib/libc.so
5742 lt_cv_deplibs_check_method=pass_all
5745 lt_cv_deplibs_check_method=pass_all
5751 lt_cv_deplibs_check_method=pass_all
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5757 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5761 if test "$build" = "$host"; then
5764 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5767 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5773 file_magic_cmd=$lt_cv_file_magic_cmd
5774 deplibs_check_method=$lt_cv_deplibs_check_method
5775 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5798 if test -n "$ac_tool_prefix"; then
5799 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5800 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_DLLTOOL+:} false; then :
5804 $as_echo_n "(cached) " >&6
5806 if test -n "$DLLTOOL"; then
5807 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 DLLTOOL=$ac_cv_prog_DLLTOOL
5827 if test -n "$DLLTOOL"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5829 $as_echo "$DLLTOOL" >&6; }
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5837 if test -z "$ac_cv_prog_DLLTOOL"; then
5838 ac_ct_DLLTOOL=$DLLTOOL
5839 # Extract the first word of "dlltool", so it can be a program name with args.
5840 set dummy dlltool; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5844 $as_echo_n "(cached) " >&6
5846 if test -n "$ac_ct_DLLTOOL"; then
5847 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5867 if test -n "$ac_ct_DLLTOOL"; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5869 $as_echo "$ac_ct_DLLTOOL" >&6; }
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5875 if test "x$ac_ct_DLLTOOL" = x; then
5878 case $cross_compiling:$ac_tool_warned in
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5882 ac_tool_warned=yes ;;
5884 DLLTOOL=$ac_ct_DLLTOOL
5887 DLLTOOL="$ac_cv_prog_DLLTOOL"
5890 test -z "$DLLTOOL" && DLLTOOL=dlltool
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5902 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5903 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5904 $as_echo_n "(cached) " >&6
5906 lt_cv_sharedlib_from_linklib_cmd='unknown'
5909 cygwin* | mingw* | pw32* | cegcc*)
5910 # two different shell functions defined in ltmain.sh
5911 # decide which to use based on capabilities of $DLLTOOL
5912 case `$DLLTOOL --help 2>&1` in
5913 *--identify-strict*)
5914 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5917 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5922 # fallback: assume linklib IS sharedlib
5923 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5929 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5930 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5931 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5939 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_AR+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 if test -n "$AR"; then
5950 ac_cv_prog_AR="$AR" # Let the user override the test.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 if test -n "$AR"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5972 $as_echo "$AR" >&6; }
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5979 test -n "$AR" && break
5982 if test -z "$AR"; then
5986 # Extract the first word of "$ac_prog", so it can be a program name with args.
5987 set dummy $ac_prog; ac_word=$2
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989 $as_echo_n "checking for $ac_word... " >&6; }
5990 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5991 $as_echo_n "(cached) " >&6
5993 if test -n "$ac_ct_AR"; then
5994 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_prog_ac_ct_AR="$ac_prog"
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6014 if test -n "$ac_ct_AR"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6016 $as_echo "$ac_ct_AR" >&6; }
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6023 test -n "$ac_ct_AR" && break
6026 if test "x$ac_ct_AR" = x; then
6029 case $cross_compiling:$ac_tool_warned in
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6033 ac_tool_warned=yes ;;
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6053 $as_echo_n "checking for archiver @FILE support... " >&6; }
6054 if ${lt_cv_ar_at_file+:} false; then :
6055 $as_echo_n "(cached) " >&6
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6069 if ac_fn_c_try_compile "$LINENO"; then :
6070 echo conftest.$ac_objext > conftest.lst
6071 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6073 (eval $lt_ar_try) 2>&5
6075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6076 test $ac_status = 0; }
6077 if test "$ac_status" -eq 0; then
6078 # Ensure the archiver fails upon bogus file names.
6079 rm -f conftest.$ac_objext libconftest.a
6080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6081 (eval $lt_ar_try) 2>&5
6083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6084 test $ac_status = 0; }
6085 if test "$ac_status" -ne 0; then
6089 rm -f conftest.* libconftest.a
6092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6096 $as_echo "$lt_cv_ar_at_file" >&6; }
6098 if test "x$lt_cv_ar_at_file" = xno; then
6101 archiver_list_spec=$lt_cv_ar_at_file
6110 if test -n "$ac_tool_prefix"; then
6111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6112 set dummy ${ac_tool_prefix}strip; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_STRIP+:} false; then :
6116 $as_echo_n "(cached) " >&6
6118 if test -n "$STRIP"; then
6119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 STRIP=$ac_cv_prog_STRIP
6139 if test -n "$STRIP"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6141 $as_echo "$STRIP" >&6; }
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6149 if test -z "$ac_cv_prog_STRIP"; then
6151 # Extract the first word of "strip", so it can be a program name with args.
6152 set dummy strip; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6156 $as_echo_n "(cached) " >&6
6158 if test -n "$ac_ct_STRIP"; then
6159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_ac_ct_STRIP="strip"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6179 if test -n "$ac_ct_STRIP"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6181 $as_echo "$ac_ct_STRIP" >&6; }
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6187 if test "x$ac_ct_STRIP" = x; then
6190 case $cross_compiling:$ac_tool_warned in
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6194 ac_tool_warned=yes ;;
6199 STRIP="$ac_cv_prog_STRIP"
6202 test -z "$STRIP" && STRIP=:
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_RANLIB+:} false; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -n "$RANLIB"; then
6218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 RANLIB=$ac_cv_prog_RANLIB
6238 if test -n "$RANLIB"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6240 $as_echo "$RANLIB" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6248 if test -z "$ac_cv_prog_RANLIB"; then
6249 ac_ct_RANLIB=$RANLIB
6250 # Extract the first word of "ranlib", so it can be a program name with args.
6251 set dummy ranlib; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6255 $as_echo_n "(cached) " >&6
6257 if test -n "$ac_ct_RANLIB"; then
6258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_RANLIB="ranlib"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6278 if test -n "$ac_ct_RANLIB"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6280 $as_echo "$ac_ct_RANLIB" >&6; }
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6286 if test "x$ac_ct_RANLIB" = x; then
6289 case $cross_compiling:$ac_tool_warned in
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293 ac_tool_warned=yes ;;
6295 RANLIB=$ac_ct_RANLIB
6298 RANLIB="$ac_cv_prog_RANLIB"
6301 test -z "$RANLIB" && RANLIB=:
6308 # Determine commands to create old-style static archives.
6309 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6310 old_postinstall_cmds='chmod 644 $oldlib'
6311 old_postuninstall_cmds=
6313 if test -n "$RANLIB"; then
6316 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6322 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6327 lock_old_archive_extraction=yes ;;
6329 lock_old_archive_extraction=no ;;
6370 # If no C compiler was specified, use CC.
6373 # If no C compiler flags were specified, use CFLAGS.
6374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6376 # Allow CC to be a program name with arguments.
6380 # Check for command to grab the raw symbol name followed by C symbol from nm.
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6382 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6383 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6384 $as_echo_n "(cached) " >&6
6387 # These are sane defaults that work on at least a few old systems.
6388 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6390 # Character class describing NM global symbol codes.
6391 symcode='[BCDEGRST]'
6393 # Regexp to match symbols that can be accessed directly from C.
6394 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6396 # Define system-specific variables.
6401 cygwin* | mingw* | pw32* | cegcc*)
6402 symcode='[ABCDGISTW]'
6405 if test "$host_cpu" = ia64; then
6406 symcode='[ABCDEGRST]'
6410 symcode='[BCDEGRST]'
6413 symcode='[BCDEGQRST]'
6424 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6432 # If we're using GNU nm, then use its standard symbol codes.
6433 case `$NM -V 2>&1` in
6434 *GNU* | *'with BFD'*)
6435 symcode='[ABCDGIRSTW]' ;;
6438 # Transform an extracted symbol line into a proper C declaration.
6439 # Some systems (esp. on ia64) link data and code symbols differently,
6440 # so use this general approach.
6441 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6443 # Transform an extracted symbol line into symbol name and symbol address
6444 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6445 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6447 # Handle CRLF in mingw tool chain
6451 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6455 # Try without a prefix underscore, then with it.
6456 for ac_symprfx in "" "_"; do
6458 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6459 symxfrm="\\1 $ac_symprfx\\2 \\2"
6461 # Write the raw and C identifiers.
6462 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6463 # Fake it for dumpbin and say T for any non-static function
6464 # and D for any global variable.
6465 # Also find C++ and __fastcall symbols from MSVC++,
6466 # which start with @ or ?.
6467 lt_cv_sys_global_symbol_pipe="$AWK '"\
6468 " {last_section=section; section=\$ 3};"\
6469 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6470 " \$ 0!~/External *\|/{next};"\
6471 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6472 " {if(hide[section]) next};"\
6473 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6474 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6475 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6476 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6477 " ' prfx=^$ac_symprfx"
6479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6481 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6483 # Check to see that the pipe works correctly.
6487 cat > conftest.$ac_ext <<_LT_EOF
6492 void nm_test_func(void);
6493 void nm_test_func(void){}
6497 int main(){nm_test_var='a';nm_test_func();return(0);}
6500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6501 (eval $ac_compile) 2>&5
6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504 test $ac_status = 0; }; then
6505 # Now try to grab the symbols.
6507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6508 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6511 test $ac_status = 0; } && test -s "$nlist"; then
6512 # Try sorting and uniquifying the output.
6513 if sort "$nlist" | uniq > "$nlist"T; then
6514 mv -f "$nlist"T "$nlist"
6519 # Make sure that we snagged all the symbols we need.
6520 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6521 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6522 cat <<_LT_EOF > conftest.$ac_ext
6523 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6524 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6525 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6526 relocations are performed -- see ld's documentation on pseudo-relocs. */
6527 # define LT_DLSYM_CONST
6528 #elif defined(__osf__)
6529 /* This system does not cope well with relocations in const data. */
6530 # define LT_DLSYM_CONST
6532 # define LT_DLSYM_CONST const
6540 # Now generate the symbol file.
6541 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6543 cat <<_LT_EOF >> conftest.$ac_ext
6545 /* The mapping between symbol names and symbols. */
6546 LT_DLSYM_CONST struct {
6550 lt__PROGRAM__LTX_preloaded_symbols[] =
6552 { "@PROGRAM@", (void *) 0 },
6554 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6555 cat <<\_LT_EOF >> conftest.$ac_ext
6559 /* This works around a problem in FreeBSD linker */
6560 #ifdef FREEBSD_WORKAROUND
6561 static const void *lt_preloaded_setup() {
6562 return lt__PROGRAM__LTX_preloaded_symbols;
6570 # Now try linking the two files.
6571 mv conftest.$ac_objext conftstm.$ac_objext
6572 lt_globsym_save_LIBS=$LIBS
6573 lt_globsym_save_CFLAGS=$CFLAGS
6574 LIBS="conftstm.$ac_objext"
6575 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6577 (eval $ac_link) 2>&5
6579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6580 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6583 LIBS=$lt_globsym_save_LIBS
6584 CFLAGS=$lt_globsym_save_CFLAGS
6586 echo "cannot find nm_test_func in $nlist" >&5
6589 echo "cannot find nm_test_var in $nlist" >&5
6592 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6595 echo "$progname: failed program was:" >&5
6596 cat conftest.$ac_ext >&5
6598 rm -rf conftest* conftst*
6600 # Do not use the global_symbol_pipe unless it works.
6601 if test "$pipe_works" = yes; then
6604 lt_cv_sys_global_symbol_pipe=
6610 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6611 lt_cv_sys_global_symbol_to_cdecl=
6613 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6615 $as_echo "failed" >&6; }
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6618 $as_echo "ok" >&6; }
6621 # Response file support.
6622 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6623 nm_file_list_spec='@'
6624 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6625 nm_file_list_spec='@'
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6655 $as_echo_n "checking for sysroot... " >&6; }
6657 # Check whether --with-sysroot was given.
6658 if test "${with_sysroot+set}" = set; then :
6659 withval=$with_sysroot;
6666 case ${with_sysroot} in #(
6668 if test "$GCC" = yes; then
6669 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6673 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6679 $as_echo "${with_sysroot}" >&6; }
6680 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6685 $as_echo "${lt_sysroot:-no}" >&6; }
6691 # Check whether --enable-libtool-lock was given.
6692 if test "${enable_libtool_lock+set}" = set; then :
6693 enableval=$enable_libtool_lock;
6696 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6698 # Some flags need to be propagated to the compiler or linker for good
6702 # Find out which ABI we are using.
6703 echo 'int i;' > conftest.$ac_ext
6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6705 (eval $ac_compile) 2>&5
6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 test $ac_status = 0; }; then
6709 case `/usr/bin/file conftest.$ac_objext` in
6721 # Find out which ABI we are using.
6722 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6724 (eval $ac_compile) 2>&5
6726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6727 test $ac_status = 0; }; then
6728 if test "$lt_cv_prog_gnu_ld" = yes; then
6729 case `/usr/bin/file conftest.$ac_objext` in
6731 LD="${LD-ld} -melf32bsmip"
6734 LD="${LD-ld} -melf32bmipn32"
6737 LD="${LD-ld} -melf64bmip"
6741 case `/usr/bin/file conftest.$ac_objext` in
6757 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6758 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6759 # Find out which ABI we are using.
6760 echo 'int i;' > conftest.$ac_ext
6761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6762 (eval $ac_compile) 2>&5
6764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; }; then
6766 case `/usr/bin/file conftest.o` in
6769 x86_64-*kfreebsd*-gnu)
6770 LD="${LD-ld} -m elf_i386_fbsd"
6773 LD="${LD-ld} -m elf_i386"
6775 ppc64-*linux*|powerpc64-*linux*)
6776 LD="${LD-ld} -m elf32ppclinux"
6779 LD="${LD-ld} -m elf_s390"
6782 LD="${LD-ld} -m elf32_sparc"
6788 x86_64-*kfreebsd*-gnu)
6789 LD="${LD-ld} -m elf_x86_64_fbsd"
6792 LD="${LD-ld} -m elf_x86_64"
6794 ppc*-*linux*|powerpc*-*linux*)
6795 LD="${LD-ld} -m elf64ppc"
6797 s390*-*linux*|s390*-*tpf*)
6798 LD="${LD-ld} -m elf64_s390"
6801 LD="${LD-ld} -m elf64_sparc"
6811 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6812 SAVE_CFLAGS="$CFLAGS"
6813 CFLAGS="$CFLAGS -belf"
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6815 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6816 if ${lt_cv_cc_needs_belf+:} false; then :
6817 $as_echo_n "(cached) " >&6
6820 ac_cpp='$CPP $CPPFLAGS'
6821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6836 if ac_fn_c_try_link "$LINENO"; then :
6837 lt_cv_cc_needs_belf=yes
6839 lt_cv_cc_needs_belf=no
6841 rm -f core conftest.err conftest.$ac_objext \
6842 conftest$ac_exeext conftest.$ac_ext
6844 ac_cpp='$CPP $CPPFLAGS'
6845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6851 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6852 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6853 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6854 CFLAGS="$SAVE_CFLAGS"
6858 # Find out which ABI we are using.
6859 echo 'int i;' > conftest.$ac_ext
6860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6861 (eval $ac_compile) 2>&5
6863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6864 test $ac_status = 0; }; then
6865 case `/usr/bin/file conftest.o` in
6867 case $lt_cv_prog_gnu_ld in
6868 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6870 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6882 need_locks="$enable_libtool_lock"
6884 if test -n "$ac_tool_prefix"; then
6885 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6886 set dummy ${ac_tool_prefix}mt; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 if test -n "$MANIFEST_TOOL"; then
6893 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6913 if test -n "$MANIFEST_TOOL"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6915 $as_echo "$MANIFEST_TOOL" >&6; }
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6923 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6924 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6925 # Extract the first word of "mt", so it can be a program name with args.
6926 set dummy mt; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6930 $as_echo_n "(cached) " >&6
6932 if test -n "$ac_ct_MANIFEST_TOOL"; then
6933 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6953 if test -n "$ac_ct_MANIFEST_TOOL"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6955 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6961 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6964 case $cross_compiling:$ac_tool_warned in
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968 ac_tool_warned=yes ;;
6970 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6973 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6976 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6978 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6979 if ${lt_cv_path_mainfest_tool+:} false; then :
6980 $as_echo_n "(cached) " >&6
6982 lt_cv_path_mainfest_tool=no
6983 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6984 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6985 cat conftest.err >&5
6986 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6987 lt_cv_path_mainfest_tool=yes
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6992 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6993 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7003 rhapsody* | darwin*)
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7010 $as_echo_n "(cached) " >&6
7012 if test -n "$DSYMUTIL"; then
7013 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7033 if test -n "$DSYMUTIL"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7035 $as_echo "$DSYMUTIL" >&6; }
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7043 if test -z "$ac_cv_prog_DSYMUTIL"; then
7044 ac_ct_DSYMUTIL=$DSYMUTIL
7045 # Extract the first word of "dsymutil", so it can be a program name with args.
7046 set dummy dsymutil; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7050 $as_echo_n "(cached) " >&6
7052 if test -n "$ac_ct_DSYMUTIL"; then
7053 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7073 if test -n "$ac_ct_DSYMUTIL"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7075 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7081 if test "x$ac_ct_DSYMUTIL" = x; then
7084 case $cross_compiling:$ac_tool_warned in
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7090 DSYMUTIL=$ac_ct_DSYMUTIL
7093 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_NMEDIT+:} false; then :
7102 $as_echo_n "(cached) " >&6
7104 if test -n "$NMEDIT"; then
7105 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 NMEDIT=$ac_cv_prog_NMEDIT
7125 if test -n "$NMEDIT"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7127 $as_echo "$NMEDIT" >&6; }
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7135 if test -z "$ac_cv_prog_NMEDIT"; then
7136 ac_ct_NMEDIT=$NMEDIT
7137 # Extract the first word of "nmedit", so it can be a program name with args.
7138 set dummy nmedit; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7142 $as_echo_n "(cached) " >&6
7144 if test -n "$ac_ct_NMEDIT"; then
7145 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7165 if test -n "$ac_ct_NMEDIT"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7167 $as_echo "$ac_ct_NMEDIT" >&6; }
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7173 if test "x$ac_ct_NMEDIT" = x; then
7176 case $cross_compiling:$ac_tool_warned in
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7182 NMEDIT=$ac_ct_NMEDIT
7185 NMEDIT="$ac_cv_prog_NMEDIT"
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_LIPO+:} false; then :
7194 $as_echo_n "(cached) " >&6
7196 if test -n "$LIPO"; then
7197 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 LIPO=$ac_cv_prog_LIPO
7217 if test -n "$LIPO"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7219 $as_echo "$LIPO" >&6; }
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7227 if test -z "$ac_cv_prog_LIPO"; then
7229 # Extract the first word of "lipo", so it can be a program name with args.
7230 set dummy lipo; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7234 $as_echo_n "(cached) " >&6
7236 if test -n "$ac_ct_LIPO"; then
7237 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246 ac_cv_prog_ac_ct_LIPO="lipo"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7257 if test -n "$ac_ct_LIPO"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7259 $as_echo "$ac_ct_LIPO" >&6; }
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7265 if test "x$ac_ct_LIPO" = x; then
7268 case $cross_compiling:$ac_tool_warned in
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7277 LIPO="$ac_cv_prog_LIPO"
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}otool; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_OTOOL+:} false; then :
7286 $as_echo_n "(cached) " >&6
7288 if test -n "$OTOOL"; then
7289 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 OTOOL=$ac_cv_prog_OTOOL
7309 if test -n "$OTOOL"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7311 $as_echo "$OTOOL" >&6; }
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7319 if test -z "$ac_cv_prog_OTOOL"; then
7321 # Extract the first word of "otool", so it can be a program name with args.
7322 set dummy otool; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7326 $as_echo_n "(cached) " >&6
7328 if test -n "$ac_ct_OTOOL"; then
7329 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_prog_ac_ct_OTOOL="otool"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7349 if test -n "$ac_ct_OTOOL"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7351 $as_echo "$ac_ct_OTOOL" >&6; }
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7357 if test "x$ac_ct_OTOOL" = x; then
7360 case $cross_compiling:$ac_tool_warned in
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7369 OTOOL="$ac_cv_prog_OTOOL"
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_OTOOL64+:} false; then :
7378 $as_echo_n "(cached) " >&6
7380 if test -n "$OTOOL64"; then
7381 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 OTOOL64=$ac_cv_prog_OTOOL64
7401 if test -n "$OTOOL64"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7403 $as_echo "$OTOOL64" >&6; }
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7411 if test -z "$ac_cv_prog_OTOOL64"; then
7412 ac_ct_OTOOL64=$OTOOL64
7413 # Extract the first word of "otool64", so it can be a program name with args.
7414 set dummy otool64; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7418 $as_echo_n "(cached) " >&6
7420 if test -n "$ac_ct_OTOOL64"; then
7421 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_prog_ac_ct_OTOOL64="otool64"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7441 if test -n "$ac_ct_OTOOL64"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7443 $as_echo "$ac_ct_OTOOL64" >&6; }
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7449 if test "x$ac_ct_OTOOL64" = x; then
7452 case $cross_compiling:$ac_tool_warned in
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456 ac_tool_warned=yes ;;
7458 OTOOL64=$ac_ct_OTOOL64
7461 OTOOL64="$ac_cv_prog_OTOOL64"
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7491 $as_echo_n "checking for -single_module linker flag... " >&6; }
7492 if ${lt_cv_apple_cc_single_mod+:} false; then :
7493 $as_echo_n "(cached) " >&6
7495 lt_cv_apple_cc_single_mod=no
7496 if test -z "${LT_MULTI_MODULE}"; then
7497 # By default we will add the -single_module flag. You can override
7498 # by either setting the environment variable LT_MULTI_MODULE
7499 # non-empty at configure time, or by adding -multi_module to the
7501 rm -rf libconftest.dylib*
7502 echo "int foo(void){return 1;}" > conftest.c
7503 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504 -dynamiclib -Wl,-single_module conftest.c" >&5
7505 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7508 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7509 lt_cv_apple_cc_single_mod=yes
7511 cat conftest.err >&5
7513 rm -rf libconftest.dylib*
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7518 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7520 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7521 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7522 $as_echo_n "(cached) " >&6
7524 lt_cv_ld_exported_symbols_list=no
7525 save_LDFLAGS=$LDFLAGS
7526 echo "_main" > conftest.sym
7527 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7539 if ac_fn_c_try_link "$LINENO"; then :
7540 lt_cv_ld_exported_symbols_list=yes
7542 lt_cv_ld_exported_symbols_list=no
7544 rm -f core conftest.err conftest.$ac_objext \
7545 conftest$ac_exeext conftest.$ac_ext
7546 LDFLAGS="$save_LDFLAGS"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7550 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7552 $as_echo_n "checking for -force_load linker flag... " >&6; }
7553 if ${lt_cv_ld_force_load+:} false; then :
7554 $as_echo_n "(cached) " >&6
7556 lt_cv_ld_force_load=no
7557 cat > conftest.c << _LT_EOF
7558 int forced_loaded() { return 2;}
7560 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7561 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7562 echo "$AR cru libconftest.a conftest.o" >&5
7563 $AR cru libconftest.a conftest.o 2>&5
7564 echo "$RANLIB libconftest.a" >&5
7565 $RANLIB libconftest.a 2>&5
7566 cat > conftest.c << _LT_EOF
7567 int main() { return 0;}
7569 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7570 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7572 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7573 lt_cv_ld_force_load=yes
7575 cat conftest.err >&5
7577 rm -f conftest.err libconftest.a conftest conftest.c
7578 rm -rf conftest.dSYM
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7582 $as_echo "$lt_cv_ld_force_load" >&6; }
7584 rhapsody* | darwin1.[012])
7585 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7587 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7588 darwin*) # darwin 5.x on
7589 # if running on 10.5 or later, the deployment target defaults
7590 # to the OS version, if on x86, and 10.4, the deployment
7591 # target defaults to 10.4. Don't you love it?
7592 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7593 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7596 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7598 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7602 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7603 _lt_dar_single_mod='$single_module'
7605 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7606 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7608 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7610 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7611 _lt_dsymutil='~$DSYMUTIL $lib || :'
7618 for ac_header in dlfcn.h
7620 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7622 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7623 cat >>confdefs.h <<_ACEOF
7624 #define HAVE_DLFCN_H 1
7645 # Check whether --enable-shared was given.
7646 if test "${enable_shared+set}" = set; then :
7647 enableval=$enable_shared; p=${PACKAGE-default}
7649 yes) enable_shared=yes ;;
7650 no) enable_shared=no ;;
7653 # Look at the argument we got. We use all the common list separators.
7654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7655 for pkg in $enableval; do
7657 if test "X$pkg" = "X$p"; then
7676 # Check whether --enable-static was given.
7677 if test "${enable_static+set}" = set; then :
7678 enableval=$enable_static; p=${PACKAGE-default}
7680 yes) enable_static=yes ;;
7681 no) enable_static=no ;;
7684 # Look at the argument we got. We use all the common list separators.
7685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686 for pkg in $enableval; do
7688 if test "X$pkg" = "X$p"; then
7708 # Check whether --with-pic was given.
7709 if test "${with_pic+set}" = set; then :
7710 withval=$with_pic; pic_mode="$withval"
7716 test -z "$pic_mode" && pic_mode=default
7724 # Check whether --enable-fast-install was given.
7725 if test "${enable_fast_install+set}" = set; then :
7726 enableval=$enable_fast_install; p=${PACKAGE-default}
7728 yes) enable_fast_install=yes ;;
7729 no) enable_fast_install=no ;;
7731 enable_fast_install=no
7732 # Look at the argument we got. We use all the common list separators.
7733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7734 for pkg in $enableval; do
7736 if test "X$pkg" = "X$p"; then
7737 enable_fast_install=yes
7744 enable_fast_install=yes
7757 # This can be used to rebuild libtool when needed
7758 LIBTOOL_DEPS="$ltmain"
7760 # Always use our own libtool.
7761 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7788 test -z "$LN_S" && LN_S="ln -s"
7803 if test -n "${ZSH_VERSION+set}" ; then
7804 setopt NO_GLOB_SUBST
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7808 $as_echo_n "checking for objdir... " >&6; }
7809 if ${lt_cv_objdir+:} false; then :
7810 $as_echo_n "(cached) " >&6
7812 rm -f .libs 2>/dev/null
7813 mkdir .libs 2>/dev/null
7814 if test -d .libs; then
7817 # MS-DOS does not allow filenames that begin with a dot.
7820 rmdir .libs 2>/dev/null
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7823 $as_echo "$lt_cv_objdir" >&6; }
7824 objdir=$lt_cv_objdir
7830 cat >>confdefs.h <<_ACEOF
7831 #define LT_OBJDIR "$lt_cv_objdir/"
7839 # AIX sometimes has problems with the GCC collect2 program. For some
7840 # reason, if we set the COLLECT_NAMES environment variable, the problems
7841 # vanish in a puff of smoke.
7842 if test "X${COLLECT_NAMES+set}" != Xset; then
7844 export COLLECT_NAMES
7851 can_build_shared=yes
7853 # All known linkers require a `.a' archive for static linking (except MSVC,
7854 # which needs '.lib').
7857 with_gnu_ld="$lt_cv_prog_gnu_ld"
7860 old_CFLAGS="$CFLAGS"
7862 # Set sane defaults for various variables
7863 test -z "$CC" && CC=cc
7864 test -z "$LTCC" && LTCC=$CC
7865 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7866 test -z "$LD" && LD=ld
7867 test -z "$ac_objext" && ac_objext=o
7869 for cc_temp in $compiler""; do
7871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7877 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7880 # Only perform the check for file, if the check method requires it
7881 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7882 case $deplibs_check_method in
7884 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7886 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7887 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7888 $as_echo_n "(cached) " >&6
7892 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7895 lt_save_MAGIC_CMD="$MAGIC_CMD"
7896 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7897 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7898 for ac_dir in $ac_dummy; do
7900 test -z "$ac_dir" && ac_dir=.
7901 if test -f $ac_dir/${ac_tool_prefix}file; then
7902 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7903 if test -n "$file_magic_test_file"; then
7904 case $deplibs_check_method in
7906 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7908 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7909 $EGREP "$file_magic_regex" > /dev/null; then
7914 *** Warning: the command libtool uses to detect shared libraries,
7915 *** $file_magic_cmd, produces output that libtool cannot recognize.
7916 *** The result is that libtool may fail to recognize shared libraries
7917 *** as such. This will affect the creation of libtool libraries that
7918 *** depend on shared libraries, but programs linked with such libtool
7919 *** libraries will work regardless of this problem. Nevertheless, you
7920 *** may want to report the problem to your system manager and/or to
7921 *** bug-libtool@gnu.org
7931 MAGIC_CMD="$lt_save_MAGIC_CMD"
7936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7937 if test -n "$MAGIC_CMD"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7939 $as_echo "$MAGIC_CMD" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7949 if test -z "$lt_cv_path_MAGIC_CMD"; then
7950 if test -n "$ac_tool_prefix"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7952 $as_echo_n "checking for file... " >&6; }
7953 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7954 $as_echo_n "(cached) " >&6
7958 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7961 lt_save_MAGIC_CMD="$MAGIC_CMD"
7962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7963 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7964 for ac_dir in $ac_dummy; do
7966 test -z "$ac_dir" && ac_dir=.
7967 if test -f $ac_dir/file; then
7968 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7969 if test -n "$file_magic_test_file"; then
7970 case $deplibs_check_method in
7972 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7974 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7975 $EGREP "$file_magic_regex" > /dev/null; then
7980 *** Warning: the command libtool uses to detect shared libraries,
7981 *** $file_magic_cmd, produces output that libtool cannot recognize.
7982 *** The result is that libtool may fail to recognize shared libraries
7983 *** as such. This will affect the creation of libtool libraries that
7984 *** depend on shared libraries, but programs linked with such libtool
7985 *** libraries will work regardless of this problem. Nevertheless, you
7986 *** may want to report the problem to your system manager and/or to
7987 *** bug-libtool@gnu.org
7997 MAGIC_CMD="$lt_save_MAGIC_CMD"
8002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8003 if test -n "$MAGIC_CMD"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8005 $as_echo "$MAGIC_CMD" >&6; }
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8021 # Use C for the default configuration in the libtool script
8025 ac_cpp='$CPP $CPPFLAGS'
8026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031 # Source file extension for C test sources.
8034 # Object file extension for compiled C test sources.
8038 # Code to be used in simple compile tests
8039 lt_simple_compile_test_code="int some_variable = 0;"
8041 # Code to be used in simple link tests
8042 lt_simple_link_test_code='int main(){return(0);}'
8050 # If no C compiler was specified, use CC.
8053 # If no C compiler flags were specified, use CFLAGS.
8054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8056 # Allow CC to be a program name with arguments.
8059 # Save the default compiler, since it gets overwritten when the other
8060 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8061 compiler_DEFAULT=$CC
8063 # save warnings/boilerplate of simple test code
8064 ac_outfile=conftest.$ac_objext
8065 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8066 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8067 _lt_compiler_boilerplate=`cat conftest.err`
8070 ac_outfile=conftest.$ac_objext
8071 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8072 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8073 _lt_linker_boilerplate=`cat conftest.err`
8077 if test -n "$compiler"; then
8079 lt_prog_compiler_no_builtin_flag=
8081 if test "$GCC" = yes; then
8082 case $cc_basename in
8084 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8086 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8090 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8091 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8092 $as_echo_n "(cached) " >&6
8094 lt_cv_prog_compiler_rtti_exceptions=no
8095 ac_outfile=conftest.$ac_objext
8096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8097 lt_compiler_flag="-fno-rtti -fno-exceptions"
8098 # Insert the option either (1) after the last *FLAGS variable, or
8099 # (2) before a word containing "conftest.", or (3) at the end.
8100 # Note that $ac_compile itself does not contain backslashes and begins
8101 # with a dollar sign (not a hyphen), so the echo should work correctly.
8102 # The option is referenced via a variable to avoid confusing sed.
8103 lt_compile=`echo "$ac_compile" | $SED \
8104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8106 -e 's:$: $lt_compiler_flag:'`
8107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8108 (eval "$lt_compile" 2>conftest.err)
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 if (exit $ac_status) && test -s "$ac_outfile"; then
8113 # The compiler can only warn and ignore the option if not recognized
8114 # So say no if there are warnings other than the usual output.
8115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8118 lt_cv_prog_compiler_rtti_exceptions=yes
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8125 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8127 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8128 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8140 lt_prog_compiler_wl=
8141 lt_prog_compiler_pic=
8142 lt_prog_compiler_static=
8145 if test "$GCC" = yes; then
8146 lt_prog_compiler_wl='-Wl,'
8147 lt_prog_compiler_static='-static'
8151 # All AIX code is PIC.
8152 if test "$host_cpu" = ia64; then
8153 # AIX 5 now supports IA64 processor
8154 lt_prog_compiler_static='-Bstatic'
8161 # see comment about AmigaOS4 .so support
8162 lt_prog_compiler_pic='-fPIC'
8165 # FIXME: we need at least 68020 code to build shared libraries, but
8166 # adding the `-m68020' flag to GCC prevents building anything better,
8168 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8173 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8174 # PIC is the default for these OSes.
8177 mingw* | cygwin* | pw32* | os2* | cegcc*)
8178 # This hack is so that the source file can tell whether it is being
8179 # built for inclusion in a dll (and should export symbols for example).
8180 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8181 # (--disable-auto-import) libraries
8182 lt_prog_compiler_pic='-DDLL_EXPORT'
8185 darwin* | rhapsody*)
8186 # PIC is the default on this platform
8187 # Common symbols not allowed in MH_DYLIB files
8188 lt_prog_compiler_pic='-fno-common'
8192 # PIC is the default for Haiku.
8193 # The "-static" flag exists, but is broken.
8194 lt_prog_compiler_static=
8198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8200 # sets the default TLS model and affects inlining.
8206 lt_prog_compiler_pic='-fPIC'
8212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8213 # Instead, we relocate shared libraries at runtime.
8217 # Just because we use GCC doesn't mean we suddenly get shared libraries
8218 # on systems that don't support them.
8219 lt_prog_compiler_can_build_shared=no
8224 # QNX uses GNU C++, but need to define -shared option too, otherwise
8226 lt_prog_compiler_pic='-fPIC -shared'
8230 if test -d /usr/nec; then
8231 lt_prog_compiler_pic=-Kconform_pic
8236 lt_prog_compiler_pic='-fPIC'
8240 case $cc_basename in
8241 nvcc*) # Cuda Compiler Driver 2.2
8242 lt_prog_compiler_wl='-Xlinker '
8243 lt_prog_compiler_pic='-Xcompiler -fPIC'
8247 # PORTME Check for flag to pass linker flags through the system compiler.
8250 lt_prog_compiler_wl='-Wl,'
8251 if test "$host_cpu" = ia64; then
8252 # AIX 5 now supports IA64 processor
8253 lt_prog_compiler_static='-Bstatic'
8255 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8259 mingw* | cygwin* | pw32* | os2* | cegcc*)
8260 # This hack is so that the source file can tell whether it is being
8261 # built for inclusion in a dll (and should export symbols for example).
8262 lt_prog_compiler_pic='-DDLL_EXPORT'
8265 hpux9* | hpux10* | hpux11*)
8266 lt_prog_compiler_wl='-Wl,'
8267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8274 lt_prog_compiler_pic='+Z'
8277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8278 lt_prog_compiler_static='${wl}-a ${wl}archive'
8281 irix5* | irix6* | nonstopux*)
8282 lt_prog_compiler_wl='-Wl,'
8283 # PIC (with -KPIC) is the default.
8284 lt_prog_compiler_static='-non_shared'
8287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8288 case $cc_basename in
8289 # old Intel for x86_64 which still supported -KPIC.
8291 lt_prog_compiler_wl='-Wl,'
8292 lt_prog_compiler_pic='-KPIC'
8293 lt_prog_compiler_static='-static'
8295 # icc used to be incompatible with GCC.
8296 # ICC 10 doesn't accept -KPIC any more.
8298 lt_prog_compiler_wl='-Wl,'
8299 lt_prog_compiler_pic='-fPIC'
8300 lt_prog_compiler_static='-static'
8302 # Lahey Fortran 8.1.
8304 lt_prog_compiler_wl='-Wl,'
8305 lt_prog_compiler_pic='--shared'
8306 lt_prog_compiler_static='--static'
8309 # NAG Fortran compiler
8310 lt_prog_compiler_wl='-Wl,-Wl,,'
8311 lt_prog_compiler_pic='-PIC'
8312 lt_prog_compiler_static='-Bstatic'
8314 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8315 # Portland Group compilers (*not* the Pentium gcc compiler,
8316 # which looks to be a dead project)
8317 lt_prog_compiler_wl='-Wl,'
8318 lt_prog_compiler_pic='-fpic'
8319 lt_prog_compiler_static='-Bstatic'
8322 lt_prog_compiler_wl='-Wl,'
8323 # All Alpha code is PIC.
8324 lt_prog_compiler_static='-non_shared'
8326 xl* | bgxl* | bgf* | mpixl*)
8327 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='-qpic'
8330 lt_prog_compiler_static='-qstaticlink'
8333 case `$CC -V 2>&1 | sed 5q` in
8334 *Sun\ F* | *Sun*Fortran*)
8335 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-Bstatic'
8338 lt_prog_compiler_wl=''
8342 lt_prog_compiler_pic='-KPIC'
8343 lt_prog_compiler_static='-Bstatic'
8344 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-KPIC'
8353 lt_prog_compiler_static='-Bstatic'
8357 # QNX uses GNU C++, but need to define -shared option too, otherwise
8359 lt_prog_compiler_pic='-fPIC -shared'
8362 osf3* | osf4* | osf5*)
8363 lt_prog_compiler_wl='-Wl,'
8364 # All OSF/1 code is PIC.
8365 lt_prog_compiler_static='-non_shared'
8369 lt_prog_compiler_static='-non_shared'
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 case $cc_basename in
8376 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8377 lt_prog_compiler_wl='-Qoption ld ';;
8379 lt_prog_compiler_wl='-Wl,';;
8384 lt_prog_compiler_wl='-Qoption ld '
8385 lt_prog_compiler_pic='-PIC'
8386 lt_prog_compiler_static='-Bstatic'
8389 sysv4 | sysv4.2uw2* | sysv4.3*)
8390 lt_prog_compiler_wl='-Wl,'
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8396 if test -d /usr/nec ;then
8397 lt_prog_compiler_pic='-Kconform_pic'
8398 lt_prog_compiler_static='-Bstatic'
8402 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_can_build_shared=no
8414 lt_prog_compiler_pic='-pic'
8415 lt_prog_compiler_static='-Bstatic'
8419 lt_prog_compiler_can_build_shared=no
8425 # For platforms which do not support PIC, -DPIC is meaningless:
8427 lt_prog_compiler_pic=
8430 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8435 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8436 if ${lt_cv_prog_compiler_pic+:} false; then :
8437 $as_echo_n "(cached) " >&6
8439 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8442 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8443 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8446 # Check to make sure the PIC flag actually works.
8448 if test -n "$lt_prog_compiler_pic"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8450 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8451 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8452 $as_echo_n "(cached) " >&6
8454 lt_cv_prog_compiler_pic_works=no
8455 ac_outfile=conftest.$ac_objext
8456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8457 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8458 # Insert the option either (1) after the last *FLAGS variable, or
8459 # (2) before a word containing "conftest.", or (3) at the end.
8460 # Note that $ac_compile itself does not contain backslashes and begins
8461 # with a dollar sign (not a hyphen), so the echo should work correctly.
8462 # The option is referenced via a variable to avoid confusing sed.
8463 lt_compile=`echo "$ac_compile" | $SED \
8464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8466 -e 's:$: $lt_compiler_flag:'`
8467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8468 (eval "$lt_compile" 2>conftest.err)
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 if (exit $ac_status) && test -s "$ac_outfile"; then
8473 # The compiler can only warn and ignore the option if not recognized
8474 # So say no if there are warnings other than the usual output.
8475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8478 lt_cv_prog_compiler_pic_works=yes
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8485 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8487 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8488 case $lt_prog_compiler_pic in
8490 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8493 lt_prog_compiler_pic=
8494 lt_prog_compiler_can_build_shared=no
8510 # Check to make sure the static flag actually works.
8512 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8514 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8515 if ${lt_cv_prog_compiler_static_works+:} false; then :
8516 $as_echo_n "(cached) " >&6
8518 lt_cv_prog_compiler_static_works=no
8519 save_LDFLAGS="$LDFLAGS"
8520 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8521 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8522 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8523 # The linker can only warn and ignore the option if not recognized
8524 # So say no if there are warnings
8525 if test -s conftest.err; then
8526 # Append any errors to the config.log.
8527 cat conftest.err 1>&5
8528 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8530 if diff conftest.exp conftest.er2 >/dev/null; then
8531 lt_cv_prog_compiler_static_works=yes
8534 lt_cv_prog_compiler_static_works=yes
8538 LDFLAGS="$save_LDFLAGS"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8542 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8544 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8547 lt_prog_compiler_static=
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8557 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8558 if ${lt_cv_prog_compiler_c_o+:} false; then :
8559 $as_echo_n "(cached) " >&6
8561 lt_cv_prog_compiler_c_o=no
8562 $RM -r conftest 2>/dev/null
8566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8568 lt_compiler_flag="-o out/conftest2.$ac_objext"
8569 # Insert the option either (1) after the last *FLAGS variable, or
8570 # (2) before a word containing "conftest.", or (3) at the end.
8571 # Note that $ac_compile itself does not contain backslashes and begins
8572 # with a dollar sign (not a hyphen), so the echo should work correctly.
8573 lt_compile=`echo "$ac_compile" | $SED \
8574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8576 -e 's:$: $lt_compiler_flag:'`
8577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8578 (eval "$lt_compile" 2>out/conftest.err)
8580 cat out/conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8584 # The compiler can only warn and ignore the option if not recognized
8585 # So say no if there are warnings
8586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8589 lt_cv_prog_compiler_c_o=yes
8594 # SGI C++ compiler will create directory out/ii_files/ for
8595 # template instantiation
8596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8597 $RM out/* && rmdir out
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8604 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8612 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8613 if ${lt_cv_prog_compiler_c_o+:} false; then :
8614 $as_echo_n "(cached) " >&6
8616 lt_cv_prog_compiler_c_o=no
8617 $RM -r conftest 2>/dev/null
8621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8623 lt_compiler_flag="-o out/conftest2.$ac_objext"
8624 # Insert the option either (1) after the last *FLAGS variable, or
8625 # (2) before a word containing "conftest.", or (3) at the end.
8626 # Note that $ac_compile itself does not contain backslashes and begins
8627 # with a dollar sign (not a hyphen), so the echo should work correctly.
8628 lt_compile=`echo "$ac_compile" | $SED \
8629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8631 -e 's:$: $lt_compiler_flag:'`
8632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8633 (eval "$lt_compile" 2>out/conftest.err)
8635 cat out/conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8639 # The compiler can only warn and ignore the option if not recognized
8640 # So say no if there are warnings
8641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8644 lt_cv_prog_compiler_c_o=yes
8649 # SGI C++ compiler will create directory out/ii_files/ for
8650 # template instantiation
8651 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8652 $RM out/* && rmdir out
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8659 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8664 hard_links="nottested"
8665 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8666 # do not overwrite the value of need_locks provided by the user
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8668 $as_echo_n "checking if we can lock with hard links... " >&6; }
8671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8673 ln conftest.a conftest.b 2>&5 || hard_links=no
8674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8676 $as_echo "$hard_links" >&6; }
8677 if test "$hard_links" = no; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8679 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8692 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8695 allow_undefined_flag=
8696 always_export_symbols=no
8698 archive_expsym_cmds=
8699 compiler_needs_object=no
8700 enable_shared_with_static_runtimes=no
8701 export_dynamic_flag_spec=
8702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8703 hardcode_automatic=no
8705 hardcode_direct_absolute=no
8706 hardcode_libdir_flag_spec=
8707 hardcode_libdir_flag_spec_ld=
8708 hardcode_libdir_separator=
8710 hardcode_shlibpath_var=unsupported
8712 link_all_deplibs=unknown
8715 old_archive_from_new_cmds=
8716 old_archive_from_expsyms_cmds=
8717 thread_safe_flag_spec=
8718 whole_archive_flag_spec=
8719 # include_expsyms should be a list of space-separated symbols to be *always*
8720 # included in the symbol list
8722 # exclude_expsyms can be an extended regexp of symbols to exclude
8723 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8724 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8725 # as well as any symbol that contains `d'.
8726 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8727 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8728 # platforms (ab)use it in PIC code, but their linkers get confused if
8729 # the symbol is explicitly referenced. Since portable code cannot
8730 # rely on this symbol name, it's probably fine to never include it in
8731 # preloaded symbol tables.
8732 # Exclude shared library initialization/finalization symbols.
8733 extract_expsyms_cmds=
8736 cygwin* | mingw* | pw32* | cegcc*)
8737 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8738 # When not using gcc, we currently assume that we are using
8739 # Microsoft Visual C++.
8740 if test "$GCC" != yes; then
8745 # we just hope/assume this is gcc and not c89 (= MSVC++)
8755 # On some targets, GNU ld is compatible enough with the native linker
8756 # that we're better off using the native interface for both.
8757 lt_use_gnu_ld_interface=no
8758 if test "$with_gnu_ld" = yes; then
8761 # The AIX port of GNU ld has always aspired to compatibility
8762 # with the native linker. However, as the warning in the GNU ld
8763 # block says, versions before 2.19.5* couldn't really create working
8764 # shared libraries, regardless of the interface used.
8765 case `$LD -v 2>&1` in
8766 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8767 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8768 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8770 lt_use_gnu_ld_interface=yes
8775 lt_use_gnu_ld_interface=yes
8780 if test "$lt_use_gnu_ld_interface" = yes; then
8781 # If archive_cmds runs LD, not CC, wlarc should be empty
8784 # Set some defaults for GNU ld with shared library support. These
8785 # are reset later if shared libraries are not supported. Putting them
8786 # here allows them to be overridden if necessary.
8787 runpath_var=LD_RUN_PATH
8788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8789 export_dynamic_flag_spec='${wl}--export-dynamic'
8790 # ancient GNU ld didn't support --whole-archive et. al.
8791 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8792 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8794 whole_archive_flag_spec=
8796 supports_anon_versioning=no
8797 case `$LD -v 2>&1` in
8798 *GNU\ gold*) supports_anon_versioning=yes ;;
8799 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8800 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8801 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8802 *\ 2.11.*) ;; # other 2.11 versions
8803 *) supports_anon_versioning=yes ;;
8806 # See if GNU ld supports shared libraries.
8809 # On AIX/PPC, the GNU linker is very broken
8810 if test "$host_cpu" != ia64; then
8814 *** Warning: the GNU linker, at least up to release 2.19, is reported
8815 *** to be unable to reliably create shared libraries on AIX.
8816 *** Therefore, libtool is disabling shared libraries support. If you
8817 *** really care for shared libraries, you may want to install binutils
8818 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8819 *** You will then need to restart the configuration process.
8828 # see comment about AmigaOS4 .so support
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds=''
8833 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8834 hardcode_libdir_flag_spec='-L$libdir'
8835 hardcode_minus_L=yes
8841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8842 allow_undefined_flag=unsupported
8843 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8844 # support --undefined. This deserves some investigation. FIXME
8845 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8851 cygwin* | mingw* | pw32* | cegcc*)
8852 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8853 # as there is no search path for DLLs.
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 export_dynamic_flag_spec='${wl}--export-all-symbols'
8856 allow_undefined_flag=unsupported
8857 always_export_symbols=no
8858 enable_shared_with_static_runtimes=yes
8859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8860 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8862 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864 # If the export-symbols file already is a .def file (1st line
8865 # is EXPORTS), use it as is; otherwise, prepend...
8866 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8867 cp $export_symbols $output_objdir/$soname.def;
8869 echo EXPORTS > $output_objdir/$soname.def;
8870 cat $export_symbols >> $output_objdir/$soname.def;
8872 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8880 link_all_deplibs=yes
8885 hardcode_shlibpath_var=no
8886 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8887 export_dynamic_flag_spec='${wl}-E'
8888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8889 # Instead, shared libraries are loaded at an image base (0x10000000 by
8890 # default) and relocated if they conflict, which is a slow very memory
8891 # consuming and fragmenting process. To avoid this, we pick a random,
8892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8893 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8894 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8895 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8898 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8900 if test "$host_os" = linux-dietlibc; then
8901 case $cc_basename in
8902 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8905 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8906 && test "$tmp_diet" = no
8908 tmp_addflag=' $pic_flag'
8909 tmp_sharedflag='-shared'
8910 case $cc_basename,$host_cpu in
8911 pgcc*) # Portland Group C compiler
8912 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8913 tmp_addflag=' $pic_flag'
8915 pgf77* | pgf90* | pgf95* | pgfortran*)
8916 # Portland Group f77 and f90 compilers
8917 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8918 tmp_addflag=' $pic_flag -Mnomain' ;;
8919 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8920 tmp_addflag=' -i_dynamic' ;;
8921 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8922 tmp_addflag=' -i_dynamic -nofor_main' ;;
8923 ifc* | ifort*) # Intel Fortran compiler
8924 tmp_addflag=' -nofor_main' ;;
8925 lf95*) # Lahey Fortran 8.1
8926 whole_archive_flag_spec=
8927 tmp_sharedflag='--shared' ;;
8928 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8929 tmp_sharedflag='-qmkshrobj'
8931 nvcc*) # Cuda Compiler Driver 2.2
8932 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8933 compiler_needs_object=yes
8936 case `$CC -V 2>&1 | sed 5q` in
8937 *Sun\ C*) # Sun C 5.9
8938 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8939 compiler_needs_object=yes
8940 tmp_sharedflag='-G' ;;
8941 *Sun\ F*) # Sun Fortran 8.3
8942 tmp_sharedflag='-G' ;;
8944 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8946 if test "x$supports_anon_versioning" = xyes; then
8947 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8949 echo "local: *; };" >> $output_objdir/$libname.ver~
8950 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8953 case $cc_basename in
8954 xlf* | bgf* | bgxlf* | mpixlf*)
8955 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8956 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8957 hardcode_libdir_flag_spec=
8958 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8959 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8960 if test "x$supports_anon_versioning" = xyes; then
8961 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8963 echo "local: *; };" >> $output_objdir/$libname.ver~
8964 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8975 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8978 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8984 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8988 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8989 *** create shared libraries on Solaris systems. Therefore, libtool
8990 *** is disabling shared libraries support. We urge you to upgrade GNU
8991 *** binutils to release 2.9.1 or newer. Another option is to modify
8992 *** your PATH or compiler configuration so that the native linker is
8993 *** used, and then restart.
8996 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8997 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8998 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9005 case `$LD -v 2>&1` in
9006 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9010 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9011 *** reliably create shared libraries on SCO systems. Therefore, libtool
9012 *** is disabling shared libraries support. We urge you to upgrade GNU
9013 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9014 *** your PATH or compiler configuration so that the native linker is
9015 *** used, and then restart.
9020 # For security reasons, it is highly recommended that you always
9021 # use absolute paths for naming shared libraries, and exclude the
9022 # DT_RUNPATH tag from executables and libraries. But doing so
9023 # requires that you compile everything twice, which is a pain.
9024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9039 hardcode_shlibpath_var=no
9043 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9052 if test "$ld_shlibs" = no; then
9054 hardcode_libdir_flag_spec=
9055 export_dynamic_flag_spec=
9056 whole_archive_flag_spec=
9059 # PORTME fill in a description of your system's linker (not GNU ld)
9062 allow_undefined_flag=unsupported
9063 always_export_symbols=yes
9064 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9065 # Note: this linker hardcodes the directories in LIBPATH if there
9066 # are no directories specified by -L.
9067 hardcode_minus_L=yes
9068 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9069 # Neither direct hardcoding nor static linking is supported with a
9071 hardcode_direct=unsupported
9076 if test "$host_cpu" = ia64; then
9077 # On IA64, the linker does run time linking by default, so we don't
9078 # have to do anything special.
9079 aix_use_runtimelinking=no
9080 exp_sym_flag='-Bexport'
9083 # If we're using GNU nm, then we don't want the "-C" option.
9084 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9085 # Also, AIX nm treats weak defined symbols like other global
9086 # defined symbols, whereas GNU nm marks them as "W".
9087 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9088 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9090 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9092 aix_use_runtimelinking=no
9094 # Test if we are trying to use run time linking or normal
9095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9096 # need to do runtime linking.
9097 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9098 for ld_flag in $LDFLAGS; do
9099 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9100 aix_use_runtimelinking=yes
9107 exp_sym_flag='-bexport'
9108 no_entry_flag='-bnoentry'
9111 # When large executables or shared objects are built, AIX ld can
9112 # have problems creating the table of contents. If linking a library
9113 # or program results in "error TOC overflow" add -mminimal-toc to
9114 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9115 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9119 hardcode_direct_absolute=yes
9120 hardcode_libdir_separator=':'
9121 link_all_deplibs=yes
9122 file_list_spec='${wl}-f,'
9124 if test "$GCC" = yes; then
9125 case $host_os in aix4.[012]|aix4.[012].*)
9126 # We only want to do this on AIX 4.2 and lower, the check
9127 # below for broken collect2 doesn't work under 4.3+
9128 collect2name=`${CC} -print-prog-name=collect2`
9129 if test -f "$collect2name" &&
9130 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9132 # We have reworked collect2
9135 # We have old collect2
9136 hardcode_direct=unsupported
9137 # It fails to find uninstalled libraries when the uninstalled
9138 # path is not listed in the libpath. Setting hardcode_minus_L
9139 # to unsupported forces relinking
9140 hardcode_minus_L=yes
9141 hardcode_libdir_flag_spec='-L$libdir'
9142 hardcode_libdir_separator=
9146 shared_flag='-shared'
9147 if test "$aix_use_runtimelinking" = yes; then
9148 shared_flag="$shared_flag "'${wl}-G'
9152 if test "$host_cpu" = ia64; then
9153 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9154 # chokes on -Wl,-G. The following line is correct:
9157 if test "$aix_use_runtimelinking" = yes; then
9158 shared_flag='${wl}-G'
9160 shared_flag='${wl}-bM:SRE'
9165 export_dynamic_flag_spec='${wl}-bexpall'
9166 # It seems that -bexpall does not export symbols beginning with
9167 # underscore (_), so it is better to generate a list of symbols to export.
9168 always_export_symbols=yes
9169 if test "$aix_use_runtimelinking" = yes; then
9170 # Warning - without using the other runtime loading flags (-brtl),
9171 # -berok will link without error, but may produce a broken library.
9172 allow_undefined_flag='-berok'
9173 # Determine the default libpath from the value encoded in an
9175 if test "${lt_cv_aix_libpath+set}" = set; then
9176 aix_libpath=$lt_cv_aix_libpath
9178 if ${lt_cv_aix_libpath_+:} false; then :
9179 $as_echo_n "(cached) " >&6
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9192 if ac_fn_c_try_link "$LINENO"; then :
9194 lt_aix_libpath_sed='
9195 /Import File Strings/,/^$/ {
9197 s/^0 *\([^ ]*\) *$/\1/
9201 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9202 # Check for a 64-bit object if we didn't find anything.
9203 if test -z "$lt_cv_aix_libpath_"; then
9204 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9207 rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 if test -z "$lt_cv_aix_libpath_"; then
9210 lt_cv_aix_libpath_="/usr/lib:/lib"
9215 aix_libpath=$lt_cv_aix_libpath_
9218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9219 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9221 if test "$host_cpu" = ia64; then
9222 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9223 allow_undefined_flag="-z nodefs"
9224 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9226 # Determine the default libpath from the value encoded in an
9228 if test "${lt_cv_aix_libpath+set}" = set; then
9229 aix_libpath=$lt_cv_aix_libpath
9231 if ${lt_cv_aix_libpath_+:} false; then :
9232 $as_echo_n "(cached) " >&6
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9245 if ac_fn_c_try_link "$LINENO"; then :
9247 lt_aix_libpath_sed='
9248 /Import File Strings/,/^$/ {
9250 s/^0 *\([^ ]*\) *$/\1/
9254 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9255 # Check for a 64-bit object if we didn't find anything.
9256 if test -z "$lt_cv_aix_libpath_"; then
9257 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9260 rm -f core conftest.err conftest.$ac_objext \
9261 conftest$ac_exeext conftest.$ac_ext
9262 if test -z "$lt_cv_aix_libpath_"; then
9263 lt_cv_aix_libpath_="/usr/lib:/lib"
9268 aix_libpath=$lt_cv_aix_libpath_
9271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9272 # Warning - without using the other run time loading flags,
9273 # -berok will link without error, but may produce a broken library.
9274 no_undefined_flag=' ${wl}-bernotok'
9275 allow_undefined_flag=' ${wl}-berok'
9276 if test "$with_gnu_ld" = yes; then
9277 # We only use this code for GNU lds that support --whole-archive.
9278 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9280 # Exported symbols can be pulled into shared objects from archives
9281 whole_archive_flag_spec='$convenience'
9283 archive_cmds_need_lc=yes
9284 # This is similar to how AIX traditionally builds its shared libraries.
9285 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9293 # see comment about AmigaOS4 .so support
9294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295 archive_expsym_cmds=''
9298 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 hardcode_minus_L=yes
9306 export_dynamic_flag_spec=-rdynamic
9309 cygwin* | mingw* | pw32* | cegcc*)
9310 # When not using gcc, we currently assume that we are using
9311 # Microsoft Visual C++.
9312 # hardcode_libdir_flag_spec is actually meaningless, as there is
9313 # no search path for DLLs.
9314 case $cc_basename in
9317 hardcode_libdir_flag_spec=' '
9318 allow_undefined_flag=unsupported
9319 always_export_symbols=yes
9321 # Tell ltmain to make .lib files, not .a files.
9323 # Tell ltmain to make .dll files, not .so files.
9325 # FIXME: Setting linknames here is a bad hack.
9326 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9327 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9328 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9330 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9332 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9334 # The linker will not automatically build a static lib if we build a DLL.
9335 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9336 enable_shared_with_static_runtimes=yes
9337 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9339 old_postinstall_cmds='chmod 644 $oldlib'
9340 postlink_cmds='lt_outputfile="@OUTPUT@"~
9341 lt_tool_outputfile="@TOOL_OUTPUT@"~
9342 case $lt_outputfile in
9345 lt_outputfile="$lt_outputfile.exe"
9346 lt_tool_outputfile="$lt_tool_outputfile.exe"
9349 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9350 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9351 $RM "$lt_outputfile.manifest";
9355 # Assume MSVC wrapper
9356 hardcode_libdir_flag_spec=' '
9357 allow_undefined_flag=unsupported
9358 # Tell ltmain to make .lib files, not .a files.
9360 # Tell ltmain to make .dll files, not .so files.
9362 # FIXME: Setting linknames here is a bad hack.
9363 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9364 # The linker will automatically build a .lib file if we build a DLL.
9365 old_archive_from_new_cmds='true'
9366 # FIXME: Should let the user specify the lib program.
9367 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9368 enable_shared_with_static_runtimes=yes
9373 darwin* | rhapsody*)
9376 archive_cmds_need_lc=no
9378 hardcode_automatic=yes
9379 hardcode_shlibpath_var=unsupported
9380 if test "$lt_cv_ld_force_load" = "yes"; then
9381 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9383 whole_archive_flag_spec=''
9385 link_all_deplibs=yes
9386 allow_undefined_flag="$_lt_dar_allow_undefined"
9387 case $cc_basename in
9388 ifort*) _lt_dar_can_shared=yes ;;
9389 *) _lt_dar_can_shared=$GCC ;;
9391 if test "$_lt_dar_can_shared" = "yes"; then
9392 output_verbose_link_cmd=func_echo_all
9393 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9394 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9395 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9396 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406 hardcode_libdir_flag_spec='-L$libdir'
9407 hardcode_shlibpath_var=no
9414 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9415 # support. Future versions do this automatically, but an explicit c++rt0.o
9416 # does not break anything, and helps significantly (at the cost of a little
9419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9420 hardcode_libdir_flag_spec='-R$libdir'
9422 hardcode_shlibpath_var=no
9425 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_minus_L=yes
9430 hardcode_shlibpath_var=no
9433 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9434 freebsd* | dragonfly*)
9435 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9436 hardcode_libdir_flag_spec='-R$libdir'
9438 hardcode_shlibpath_var=no
9442 if test "$GCC" = yes; then
9443 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9445 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9448 hardcode_libdir_separator=:
9451 # hardcode_minus_L: Not really in the search PATH,
9452 # but as the default location of the library.
9453 hardcode_minus_L=yes
9454 export_dynamic_flag_spec='${wl}-E'
9458 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9459 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9461 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9463 if test "$with_gnu_ld" = no; then
9464 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9465 hardcode_libdir_flag_spec_ld='+b $libdir'
9466 hardcode_libdir_separator=:
9468 hardcode_direct_absolute=yes
9469 export_dynamic_flag_spec='${wl}-E'
9470 # hardcode_minus_L: Not really in the search PATH,
9471 # but as the default location of the library.
9472 hardcode_minus_L=yes
9477 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9480 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9492 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9499 # Older versions of the 11.00 compiler do not understand -b yet
9500 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9502 $as_echo_n "checking if $CC understands -b... " >&6; }
9503 if ${lt_cv_prog_compiler__b+:} false; then :
9504 $as_echo_n "(cached) " >&6
9506 lt_cv_prog_compiler__b=no
9507 save_LDFLAGS="$LDFLAGS"
9508 LDFLAGS="$LDFLAGS -b"
9509 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9511 # The linker can only warn and ignore the option if not recognized
9512 # So say no if there are warnings
9513 if test -s conftest.err; then
9514 # Append any errors to the config.log.
9515 cat conftest.err 1>&5
9516 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9518 if diff conftest.exp conftest.er2 >/dev/null; then
9519 lt_cv_prog_compiler__b=yes
9522 lt_cv_prog_compiler__b=yes
9526 LDFLAGS="$save_LDFLAGS"
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9530 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9532 if test x"$lt_cv_prog_compiler__b" = xyes; then
9533 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9541 if test "$with_gnu_ld" = no; then
9542 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9543 hardcode_libdir_separator=:
9548 hardcode_shlibpath_var=no
9552 hardcode_direct_absolute=yes
9553 export_dynamic_flag_spec='${wl}-E'
9555 # hardcode_minus_L: Not really in the search PATH,
9556 # but as the default location of the library.
9557 hardcode_minus_L=yes
9563 irix5* | irix6* | nonstopux*)
9564 if test "$GCC" = yes; then
9565 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9566 # Try to use the -exported_symbol ld option, if it does not
9567 # work, assume that -exports_file does not work either and
9568 # implicitly export all symbols.
9569 # This should be the same for all languages, so no per-tag cache variable.
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9571 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9572 if ${lt_cv_irix_exported_symbol+:} false; then :
9573 $as_echo_n "(cached) " >&6
9575 save_LDFLAGS="$LDFLAGS"
9576 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9579 int foo (void) { return 0; }
9581 if ac_fn_c_try_link "$LINENO"; then :
9582 lt_cv_irix_exported_symbol=yes
9584 lt_cv_irix_exported_symbol=no
9586 rm -f core conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9588 LDFLAGS="$save_LDFLAGS"
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9591 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9592 if test "$lt_cv_irix_exported_symbol" = yes; then
9593 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9599 archive_cmds_need_lc='no'
9600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 hardcode_libdir_separator=:
9603 link_all_deplibs=yes
9607 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9610 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9612 hardcode_libdir_flag_spec='-R$libdir'
9614 hardcode_shlibpath_var=no
9618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9620 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9621 hardcode_libdir_separator=:
9622 hardcode_shlibpath_var=no
9629 if test -f /usr/libexec/ld.so; then
9631 hardcode_shlibpath_var=no
9632 hardcode_direct_absolute=yes
9633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9635 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9636 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9637 export_dynamic_flag_spec='${wl}-E'
9640 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_libdir_flag_spec='-R$libdir'
9645 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9646 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9656 hardcode_libdir_flag_spec='-L$libdir'
9657 hardcode_minus_L=yes
9658 allow_undefined_flag=unsupported
9659 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9660 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9664 if test "$GCC" = yes; then
9665 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9666 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9668 allow_undefined_flag=' -expect_unresolved \*'
9669 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9671 archive_cmds_need_lc='no'
9672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673 hardcode_libdir_separator=:
9676 osf4* | osf5*) # as osf3* with the addition of -msym flag
9677 if test "$GCC" = yes; then
9678 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9679 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9682 allow_undefined_flag=' -expect_unresolved \*'
9683 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9684 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9685 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9687 # Both c and cxx compiler support -rpath directly
9688 hardcode_libdir_flag_spec='-rpath $libdir'
9690 archive_cmds_need_lc='no'
9691 hardcode_libdir_separator=:
9695 no_undefined_flag=' -z defs'
9696 if test "$GCC" = yes; then
9698 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9700 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9702 case `$CC -V 2>&1` in
9705 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9707 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9711 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9713 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_shlibpath_var=no
9720 solaris2.[0-5] | solaris2.[0-5].*) ;;
9722 # The compiler driver will combine and reorder linker options,
9723 # but understands `-z linker_flag'. GCC discards it without `$wl',
9724 # but is careful enough not to reorder.
9725 # Supported since Solaris 2.6 (maybe 2.5.1?)
9726 if test "$GCC" = yes; then
9727 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9729 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9733 link_all_deplibs=yes
9737 if test "x$host_vendor" = xsequent; then
9738 # Use $CC to link under sequent, because it throws in some extra .o
9739 # files that make .init and .fini sections work.
9740 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9744 hardcode_libdir_flag_spec='-L$libdir'
9746 hardcode_minus_L=yes
9747 hardcode_shlibpath_var=no
9751 case $host_vendor in
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_direct=yes # is this really true???
9757 ## LD is ld it makes a PLAMLIB
9758 ## CC just makes a GrossModule.
9759 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9760 reload_cmds='$CC -r -o $output$reload_objs'
9764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9768 runpath_var='LD_RUN_PATH'
9769 hardcode_shlibpath_var=no
9773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_shlibpath_var=no
9775 export_dynamic_flag_spec='-Bexport'
9779 if test -d /usr/nec; then
9780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_shlibpath_var=no
9782 runpath_var=LD_RUN_PATH
9783 hardcode_runpath_var=yes
9788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9789 no_undefined_flag='${wl}-z,text'
9790 archive_cmds_need_lc=no
9791 hardcode_shlibpath_var=no
9792 runpath_var='LD_RUN_PATH'
9794 if test "$GCC" = yes; then
9795 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9796 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 sysv5* | sco3.2v5* | sco5v6*)
9804 # Note: We can NOT use -z defs as we might desire, because we do not
9805 # link with -lc, and that would cause any symbols used from libc to
9806 # always be unresolved, which means just about no library would
9807 # ever link correctly. If we're not using GNU ld we use -z text
9808 # though, which does catch some bad symbols but isn't as heavy-handed
9810 no_undefined_flag='${wl}-z,text'
9811 allow_undefined_flag='${wl}-z,nodefs'
9812 archive_cmds_need_lc=no
9813 hardcode_shlibpath_var=no
9814 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9815 hardcode_libdir_separator=':'
9816 link_all_deplibs=yes
9817 export_dynamic_flag_spec='${wl}-Bexport'
9818 runpath_var='LD_RUN_PATH'
9820 if test "$GCC" = yes; then
9821 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831 hardcode_libdir_flag_spec='-L$libdir'
9832 hardcode_shlibpath_var=no
9840 if test x$host_vendor = xsni; then
9842 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9843 export_dynamic_flag_spec='${wl}-Blargedynsym'
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9850 $as_echo "$ld_shlibs" >&6; }
9851 test "$ld_shlibs" = no && can_build_shared=no
9853 with_gnu_ld=$with_gnu_ld
9870 # Do we need to explicitly link libc?
9872 case "x$archive_cmds_need_lc" in
9874 # Assume -lc should be added
9875 archive_cmds_need_lc=yes
9877 if test "$enable_shared" = yes && test "$GCC" = yes; then
9878 case $archive_cmds in
9880 # FIXME: we may have to deal with multi-command sequences.
9883 # Test whether the compiler implicitly links with -lc since on some
9884 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9885 # to ld, don't add -lc before -lgcc.
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9887 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9888 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9889 $as_echo_n "(cached) " >&6
9892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9895 (eval $ac_compile) 2>&5
9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; } 2>conftest.err; then
9901 libobjs=conftest.$ac_objext
9903 wl=$lt_prog_compiler_wl
9904 pic_flag=$lt_prog_compiler_pic
9910 lt_save_allow_undefined_flag=$allow_undefined_flag
9911 allow_undefined_flag=
9912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9913 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9916 test $ac_status = 0; }
9918 lt_cv_archive_cmds_need_lc=no
9920 lt_cv_archive_cmds_need_lc=yes
9922 allow_undefined_flag=$lt_save_allow_undefined_flag
9924 cat conftest.err 1>&5
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9930 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9931 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10095 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10097 if test "$GCC" = yes; then
10099 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10100 *) lt_awk_arg="/^libraries:/" ;;
10103 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10104 *) lt_sed_strip_eq="s,=/,/,g" ;;
10106 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10107 case $lt_search_path_spec in
10109 # if the path contains ";" then we assume it to be the separator
10110 # otherwise default to the standard path separator (i.e. ":") - it is
10111 # assumed that no part of a normal pathname contains ";" but that should
10112 # okay in the real world where ";" in dirpaths is itself problematic.
10113 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10116 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10119 # Ok, now we have the path, separated by spaces, we can step through it
10120 # and add multilib dir if necessary.
10121 lt_tmp_lt_search_path_spec=
10122 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10123 for lt_sys_path in $lt_search_path_spec; do
10124 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10125 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10127 test -d "$lt_sys_path" && \
10128 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10131 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10132 BEGIN {RS=" "; FS="/|\n";} {
10135 for (lt_i = NF; lt_i > 0; lt_i--) {
10136 if ($lt_i != "" && $lt_i != ".") {
10137 if ($lt_i == "..") {
10140 if (lt_count == 0) {
10141 lt_foo="/" $lt_i lt_foo;
10148 if (lt_foo != "") { lt_freq[lt_foo]++; }
10149 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10151 # AWK program above erroneously prepends '/' to C:/dos/paths
10154 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10155 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10157 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10159 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10161 library_names_spec=
10162 libname_spec='lib$name'
10166 postuninstall_cmds=
10170 shlibpath_overrides_runpath=unknown
10172 dynamic_linker="$host_os ld.so"
10173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10174 need_lib_prefix=unknown
10175 hardcode_into_libs=no
10177 # when you set need_version to no, make sure it does not cause -set_version
10178 # flags to be left without arguments
10179 need_version=unknown
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10185 shlibpath_var=LIBPATH
10187 # AIX 3 has no versioning support, so we append a major version to the name.
10188 soname_spec='${libname}${release}${shared_ext}$major'
10195 hardcode_into_libs=yes
10196 if test "$host_cpu" = ia64; then
10197 # AIX 5 supports IA64
10198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10199 shlibpath_var=LD_LIBRARY_PATH
10201 # With GCC up to 2.95.x, collect2 would create an import file
10202 # for dependence libraries. The import file would start with
10203 # the line `#! .'. This would cause the generated library to
10204 # depend on `.', always an invalid library. This was fixed in
10205 # development snapshots of GCC prior to 3.0.
10207 aix4 | aix4.[01] | aix4.[01].*)
10208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10210 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10213 can_build_shared=no
10217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10218 # soname into executable. Probably we can add versioning support to
10219 # collect2, so additional links can be useful in future.
10220 if test "$aix_use_runtimelinking" = yes; then
10221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10222 # instead of lib<name>.a to let people know that these are not
10223 # typical AIX shared libraries.
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 # We preserve .a as extension for shared libraries through AIX4.2
10227 # and later when we are not doing run time linking.
10228 library_names_spec='${libname}${release}.a $libname.a'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10231 shlibpath_var=LIBPATH
10238 # Since July 2007 AmigaOS4 officially supports .so libraries.
10239 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 library_names_spec='$libname.ixlibrary $libname.a'
10244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10245 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10251 library_names_spec='${libname}${shared_ext}'
10252 dynamic_linker="$host_os ld.so"
10253 shlibpath_var=LIBRARY_PATH
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10265 # the default ld.so.conf also contains /usr/contrib/lib and
10266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10267 # libtool to hard-code these into programs
10270 cygwin* | mingw* | pw32* | cegcc*)
10271 version_type=windows
10276 case $GCC,$cc_basename in
10279 library_names_spec='$libname.dll.a'
10280 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10281 postinstall_cmds='base_file=`basename \${file}`~
10282 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10283 dldir=$destdir/`dirname \$dlpath`~
10284 test -d \$dldir || mkdir -p \$dldir~
10285 $install_prog $dir/$dlname \$dldir/$dlname~
10286 chmod a+x \$dldir/$dlname~
10287 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10288 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10291 dlpath=$dir/\$dldll~
10293 shlibpath_overrides_runpath=yes
10297 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10298 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10300 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10303 # MinGW DLLs use traditional 'lib' prefix
10304 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10307 # pw32 DLLs use 'pw' prefix rather than 'lib'
10308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10311 dynamic_linker='Win32 ld.exe'
10316 libname_spec='$name'
10317 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10318 library_names_spec='${libname}.dll.lib'
10322 sys_lib_search_path_spec=
10325 for lt_path in $LIB
10328 # Let DOS variable expansion print the short 8.3 style file name.
10329 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10330 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10333 # Convert to MSYS style.
10334 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10337 # Convert to unix form, then to dos form, then back to unix form
10338 # but this time dos style (no spaces!) so that the unix form looks
10339 # like /cygdrive/c/PROGRA~1:/cygdr...
10340 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10341 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10342 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10345 sys_lib_search_path_spec="$LIB"
10346 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10347 # It is most probably a Windows format PATH.
10348 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10350 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10352 # FIXME: find the short name or the path components, as spaces are
10353 # common. (e.g. "Program Files" -> "PROGRA~1")
10357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10358 postinstall_cmds='base_file=`basename \${file}`~
10359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10360 dldir=$destdir/`dirname \$dlpath`~
10361 test -d \$dldir || mkdir -p \$dldir~
10362 $install_prog $dir/$dlname \$dldir/$dlname'
10363 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10364 dlpath=$dir/\$dldll~
10366 shlibpath_overrides_runpath=yes
10367 dynamic_linker='Win32 link.exe'
10371 # Assume MSVC wrapper
10372 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10373 dynamic_linker='Win32 ld.exe'
10376 # FIXME: first we should search . and the directory the executable is in
10380 darwin* | rhapsody*)
10381 dynamic_linker="$host_os dyld"
10382 version_type=darwin
10385 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10386 soname_spec='${libname}${release}${major}$shared_ext'
10387 shlibpath_overrides_runpath=yes
10388 shlibpath_var=DYLD_LIBRARY_PATH
10389 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10391 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10392 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10408 freebsd* | dragonfly*)
10409 # DragonFly does not have aout. When/if they implement a new
10410 # versioning mechanism, adjust this.
10411 if test -x /usr/bin/objformat; then
10412 objformat=`/usr/bin/objformat`
10415 freebsd[123]*) objformat=aout ;;
10416 *) objformat=elf ;;
10419 version_type=freebsd-$objformat
10420 case $version_type in
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10431 shlibpath_var=LD_LIBRARY_PATH
10434 shlibpath_overrides_runpath=yes
10436 freebsd3.[01]* | freebsdelf3.[01]*)
10437 shlibpath_overrides_runpath=yes
10438 hardcode_into_libs=yes
10440 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10441 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10442 shlibpath_overrides_runpath=no
10443 hardcode_into_libs=yes
10445 *) # from 4.6 on, and DragonFly
10446 shlibpath_overrides_runpath=yes
10447 hardcode_into_libs=yes
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 shlibpath_var=LD_LIBRARY_PATH
10459 hardcode_into_libs=yes
10466 dynamic_linker="$host_os runtime_loader"
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10468 soname_spec='${libname}${release}${shared_ext}$major'
10469 shlibpath_var=LIBRARY_PATH
10470 shlibpath_overrides_runpath=yes
10471 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10472 hardcode_into_libs=yes
10475 hpux9* | hpux10* | hpux11*)
10476 # Give a soname corresponding to the major version so that dld.sl refuses to
10477 # link against other versions.
10484 hardcode_into_libs=yes
10485 dynamic_linker="$host_os dld.so"
10486 shlibpath_var=LD_LIBRARY_PATH
10487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 if test "X$HPUX_IA64_MODE" = X32; then
10491 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10493 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10499 hardcode_into_libs=yes
10500 dynamic_linker="$host_os dld.sl"
10501 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504 soname_spec='${libname}${release}${shared_ext}$major'
10505 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10510 dynamic_linker="$host_os dld.sl"
10511 shlibpath_var=SHLIB_PATH
10512 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10517 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10518 postinstall_cmds='chmod 555 $lib'
10519 # or fails outright, so override atomically:
10520 install_override_mode=555
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=no
10532 hardcode_into_libs=yes
10535 irix5* | irix6* | nonstopux*)
10537 nonstopux*) version_type=nonstopux ;;
10539 if test "$lt_cv_prog_gnu_ld" = yes; then
10547 soname_spec='${libname}${release}${shared_ext}$major'
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10550 irix5* | nonstopux*)
10551 libsuff= shlibsuff=
10554 case $LD in # libtool.m4 will add one of these switches to LD
10555 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10556 libsuff= shlibsuff= libmagic=32-bit;;
10557 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10558 libsuff=32 shlibsuff=N32 libmagic=N32;;
10559 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10560 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10561 *) libsuff= shlibsuff= libmagic=never-match;;
10565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10566 shlibpath_overrides_runpath=no
10567 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10568 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10569 hardcode_into_libs=yes
10572 # No shared lib support for Linux oldld, aout, or coff.
10573 linux*oldld* | linux*aout* | linux*coff*)
10577 # This must be Linux ELF.
10578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583 soname_spec='${libname}${release}${shared_ext}$major'
10584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 shlibpath_overrides_runpath=no
10588 # Some binutils ld are patched to set DT_RUNPATH
10589 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10590 $as_echo_n "(cached) " >&6
10592 lt_cv_shlibpath_overrides_runpath=no
10593 save_LDFLAGS=$LDFLAGS
10594 save_libdir=$libdir
10595 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10596 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10608 if ac_fn_c_try_link "$LINENO"; then :
10609 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10610 lt_cv_shlibpath_overrides_runpath=yes
10613 rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LDFLAGS=$save_LDFLAGS
10616 libdir=$save_libdir
10620 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10622 # This implies no fast_install, which is unacceptable.
10623 # Some rework will be needed to allow for fast_install
10624 # before this can be enabled.
10625 hardcode_into_libs=yes
10627 # Append ld.so.conf contents to the search path
10628 if test -f /etc/ld.so.conf; then
10629 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10630 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10633 # We used to test for /lib/ld.so.1 and disable shared libraries on
10634 # powerpc, because MkLinux only supported shared libraries with the
10635 # GNU dynamic linker. Since this was broken with cross compilers,
10636 # most powerpc-linux boxes support dynamic linking these days and
10637 # people can always --disable-shared, the test was removed, and we
10638 # assume the GNU/Linux dynamic linker is in use.
10639 dynamic_linker='GNU/Linux ld.so'
10646 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10649 dynamic_linker='NetBSD (a.out) ld.so'
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 dynamic_linker='NetBSD ld.elf_so'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=yes
10657 hardcode_into_libs=yes
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 shlibpath_overrides_runpath=yes
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=no
10675 hardcode_into_libs=yes
10676 dynamic_linker='ldqnx.so'
10681 sys_lib_dlsearch_path_spec="/usr/lib"
10683 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10685 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10686 *) need_version=no ;;
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10693 openbsd2.[89] | openbsd2.[89].*)
10694 shlibpath_overrides_runpath=no
10697 shlibpath_overrides_runpath=yes
10701 shlibpath_overrides_runpath=yes
10706 libname_spec='$name'
10709 library_names_spec='$libname${shared_ext} $libname.a'
10710 dynamic_linker='OS/2 ld.exe'
10711 shlibpath_var=LIBPATH
10714 osf3* | osf4* | osf5*)
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10722 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 shlibpath_overrides_runpath=yes
10737 hardcode_into_libs=yes
10738 # ldd complains unless libraries are executable
10739 postinstall_cmds='chmod +x $lib'
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10745 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10746 shlibpath_var=LD_LIBRARY_PATH
10747 shlibpath_overrides_runpath=yes
10748 if test "$with_gnu_ld" = yes; then
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 soname_spec='${libname}${release}${shared_ext}$major'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 case $host_vendor in
10761 shlibpath_overrides_runpath=no
10763 runpath_var=LD_RUN_PATH
10771 shlibpath_overrides_runpath=no
10772 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10778 if test -d /usr/nec ;then
10780 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10781 soname_spec='$libname${shared_ext}.$major'
10782 shlibpath_var=LD_LIBRARY_PATH
10786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10787 version_type=freebsd-elf
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LD_LIBRARY_PATH
10793 shlibpath_overrides_runpath=yes
10794 hardcode_into_libs=yes
10795 if test "$with_gnu_ld" = yes; then
10796 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10798 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10801 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10805 sys_lib_dlsearch_path_spec='/usr/lib'
10809 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=no
10816 hardcode_into_libs=yes
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 shlibpath_var=LD_LIBRARY_PATH
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10831 $as_echo "$dynamic_linker" >&6; }
10832 test "$dynamic_linker" = no && can_build_shared=no
10834 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10835 if test "$GCC" = yes; then
10836 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10839 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10840 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10842 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10843 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10938 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10940 if test -n "$hardcode_libdir_flag_spec" ||
10941 test -n "$runpath_var" ||
10942 test "X$hardcode_automatic" = "Xyes" ; then
10944 # We can hardcode non-existent directories.
10945 if test "$hardcode_direct" != no &&
10946 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10947 # have to relink, otherwise we might link with an installed library
10948 # when we should be linking with a yet-to-be-installed one
10949 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10950 test "$hardcode_minus_L" != no; then
10951 # Linking always hardcodes the temporary library directory.
10952 hardcode_action=relink
10954 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10955 hardcode_action=immediate
10958 # We cannot hardcode anything, or else we can only hardcode existing
10960 hardcode_action=unsupported
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10963 $as_echo "$hardcode_action" >&6; }
10965 if test "$hardcode_action" = relink ||
10966 test "$inherit_rpath" = yes; then
10967 # Fast installation is not supported
10968 enable_fast_install=no
10969 elif test "$shlibpath_overrides_runpath" = yes ||
10970 test "$enable_shared" = no; then
10971 # Fast installation is not necessary
10972 enable_fast_install=needless
10980 if test "x$enable_dlopen" != xyes; then
10981 enable_dlopen=unknown
10982 enable_dlopen_self=unknown
10983 enable_dlopen_self_static=unknown
10990 lt_cv_dlopen="load_add_on"
10992 lt_cv_dlopen_self=yes
10995 mingw* | pw32* | cegcc*)
10996 lt_cv_dlopen="LoadLibrary"
11001 lt_cv_dlopen="dlopen"
11006 # if libdl is installed we need to link against it
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11008 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11009 if ${ac_cv_lib_dl_dlopen+:} false; then :
11010 $as_echo_n "(cached) " >&6
11012 ac_check_lib_save_LIBS=$LIBS
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11017 /* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11032 if ac_fn_c_try_link "$LINENO"; then :
11033 ac_cv_lib_dl_dlopen=yes
11035 ac_cv_lib_dl_dlopen=no
11037 rm -f core conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11042 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11043 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11047 lt_cv_dlopen="dyld"
11049 lt_cv_dlopen_self=yes
11056 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11057 if test "x$ac_cv_func_shl_load" = xyes; then :
11058 lt_cv_dlopen="shl_load"
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11061 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11062 if ${ac_cv_lib_dld_shl_load+:} false; then :
11063 $as_echo_n "(cached) " >&6
11065 ac_check_lib_save_LIBS=$LIBS
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11080 return shl_load ();
11085 if ac_fn_c_try_link "$LINENO"; then :
11086 ac_cv_lib_dld_shl_load=yes
11088 ac_cv_lib_dld_shl_load=no
11090 rm -f core conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11092 LIBS=$ac_check_lib_save_LIBS
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11095 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11096 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11097 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11099 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11100 if test "x$ac_cv_func_dlopen" = xyes; then :
11101 lt_cv_dlopen="dlopen"
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11104 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11105 if ${ac_cv_lib_dl_dlopen+:} false; then :
11106 $as_echo_n "(cached) " >&6
11108 ac_check_lib_save_LIBS=$LIBS
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11128 if ac_fn_c_try_link "$LINENO"; then :
11129 ac_cv_lib_dl_dlopen=yes
11131 ac_cv_lib_dl_dlopen=no
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11138 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11139 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11143 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11144 if ${ac_cv_lib_svld_dlopen+:} false; then :
11145 $as_echo_n "(cached) " >&6
11147 ac_check_lib_save_LIBS=$LIBS
11148 LIBS="-lsvld $LIBS"
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 ac_cv_lib_svld_dlopen=yes
11170 ac_cv_lib_svld_dlopen=no
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LIBS=$ac_check_lib_save_LIBS
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11177 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11178 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11179 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11182 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11183 if ${ac_cv_lib_dld_dld_link+:} false; then :
11184 $as_echo_n "(cached) " >&6
11186 ac_check_lib_save_LIBS=$LIBS
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11201 return dld_link ();
11206 if ac_fn_c_try_link "$LINENO"; then :
11207 ac_cv_lib_dld_dld_link=yes
11209 ac_cv_lib_dld_dld_link=no
11211 rm -f core conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213 LIBS=$ac_check_lib_save_LIBS
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11216 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11217 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11218 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11239 if test "x$lt_cv_dlopen" != xno; then
11245 case $lt_cv_dlopen in
11247 save_CPPFLAGS="$CPPFLAGS"
11248 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11250 save_LDFLAGS="$LDFLAGS"
11251 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11254 LIBS="$lt_cv_dlopen_libs $LIBS"
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11257 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11258 if ${lt_cv_dlopen_self+:} false; then :
11259 $as_echo_n "(cached) " >&6
11261 if test "$cross_compiling" = yes; then :
11262 lt_cv_dlopen_self=cross
11264 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11265 lt_status=$lt_dlunknown
11266 cat > conftest.$ac_ext <<_LT_EOF
11267 #line $LINENO "configure"
11268 #include "confdefs.h"
11277 # define LT_DLGLOBAL RTLD_GLOBAL
11280 # define LT_DLGLOBAL DL_GLOBAL
11282 # define LT_DLGLOBAL 0
11286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11287 find out it does not work in some platform. */
11288 #ifndef LT_DLLAZY_OR_NOW
11290 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11293 # define LT_DLLAZY_OR_NOW DL_LAZY
11296 # define LT_DLLAZY_OR_NOW RTLD_NOW
11299 # define LT_DLLAZY_OR_NOW DL_NOW
11301 # define LT_DLLAZY_OR_NOW 0
11308 /* When -fvisbility=hidden is used, assume the code has been annotated
11309 correspondingly for the symbols needed. */
11310 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11311 int fnord () __attribute__((visibility("default")));
11314 int fnord () { return 42; }
11317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11318 int status = $lt_dlunknown;
11322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11325 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11326 else puts (dlerror ());
11328 /* dlclose (self); */
11336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11337 (eval $ac_link) 2>&5
11339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11340 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11341 (./conftest; exit; ) >&5 2>/dev/null
11343 case x$lt_status in
11344 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11345 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11346 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11349 # compilation failed
11350 lt_cv_dlopen_self=no
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11358 $as_echo "$lt_cv_dlopen_self" >&6; }
11360 if test "x$lt_cv_dlopen_self" = xyes; then
11361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11363 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11364 if ${lt_cv_dlopen_self_static+:} false; then :
11365 $as_echo_n "(cached) " >&6
11367 if test "$cross_compiling" = yes; then :
11368 lt_cv_dlopen_self_static=cross
11370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11371 lt_status=$lt_dlunknown
11372 cat > conftest.$ac_ext <<_LT_EOF
11373 #line $LINENO "configure"
11374 #include "confdefs.h"
11383 # define LT_DLGLOBAL RTLD_GLOBAL
11386 # define LT_DLGLOBAL DL_GLOBAL
11388 # define LT_DLGLOBAL 0
11392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11393 find out it does not work in some platform. */
11394 #ifndef LT_DLLAZY_OR_NOW
11396 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11399 # define LT_DLLAZY_OR_NOW DL_LAZY
11402 # define LT_DLLAZY_OR_NOW RTLD_NOW
11405 # define LT_DLLAZY_OR_NOW DL_NOW
11407 # define LT_DLLAZY_OR_NOW 0
11414 /* When -fvisbility=hidden is used, assume the code has been annotated
11415 correspondingly for the symbols needed. */
11416 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11417 int fnord () __attribute__((visibility("default")));
11420 int fnord () { return 42; }
11423 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11424 int status = $lt_dlunknown;
11428 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11431 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11432 else puts (dlerror ());
11434 /* dlclose (self); */
11442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11443 (eval $ac_link) 2>&5
11445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11446 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11447 (./conftest; exit; ) >&5 2>/dev/null
11449 case x$lt_status in
11450 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11451 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11452 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11455 # compilation failed
11456 lt_cv_dlopen_self_static=no
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11464 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11467 CPPFLAGS="$save_CPPFLAGS"
11468 LDFLAGS="$save_LDFLAGS"
11473 case $lt_cv_dlopen_self in
11474 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11475 *) enable_dlopen_self=unknown ;;
11478 case $lt_cv_dlopen_self_static in
11479 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11480 *) enable_dlopen_self_static=unknown ;;
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11503 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11504 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11505 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11506 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11508 $as_echo "yes" >&6; }
11510 # FIXME - insert some real tests, host_os isn't really good enough
11513 if test -n "$STRIP" ; then
11514 striplib="$STRIP -x"
11515 old_striplib="$STRIP -S"
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11517 $as_echo "yes" >&6; }
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11541 # Report which library types will actually be built
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11543 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11545 $as_echo "$can_build_shared" >&6; }
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11548 $as_echo_n "checking whether to build shared libraries... " >&6; }
11549 test "$can_build_shared" = "no" && enable_shared=no
11551 # On AIX, shared libraries and static libraries use the same namespace, and
11552 # are all built from PIC.
11555 test "$enable_shared" = yes && enable_static=no
11556 if test -n "$RANLIB"; then
11557 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11558 postinstall_cmds='$RANLIB $lib'
11563 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11564 test "$enable_shared" = yes && enable_static=no
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11569 $as_echo "$enable_shared" >&6; }
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11572 $as_echo_n "checking whether to build static libraries... " >&6; }
11573 # Make sure either enable_shared or enable_static is yes.
11574 test "$enable_shared" = yes || enable_static=yes
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11576 $as_echo "$enable_static" >&6; }
11583 ac_cpp='$CPP $CPPFLAGS'
11584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11602 ac_config_commands="$ac_config_commands libtool"
11607 # Only expand once:
11611 # Require xorg-macros minimum of 1.12 for DocBook external references
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11624 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11625 if ${ac_cv_prog_cc_c99+:} false; then :
11626 $as_echo_n "(cached) " >&6
11628 ac_cv_prog_cc_c99=no
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11632 #include <stdarg.h>
11633 #include <stdbool.h>
11634 #include <stdlib.h>
11638 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11639 #define debug(...) fprintf (stderr, __VA_ARGS__)
11640 #define showlist(...) puts (#__VA_ARGS__)
11641 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11643 test_varargs_macros (void)
11648 debug ("X = %d\n", x);
11649 showlist (The first, second, and third items.);
11650 report (x>y, "x is %d but y is %d", x, y);
11653 // Check long long types.
11654 #define BIG64 18446744073709551615ull
11655 #define BIG32 4294967295ul
11656 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11658 your preprocessor is broken;
11662 your preprocessor is broken;
11664 static long long int bignum = -9223372036854775807LL;
11665 static unsigned long long int ubignum = BIG64;
11667 struct incomplete_array
11673 struct named_init {
11675 const wchar_t *name;
11679 typedef const char *ccp;
11682 test_restrict (ccp restrict text)
11684 // See if C++-style comments work.
11685 // Iterate through items via the restricted pointer.
11686 // Also check for declarations in for loops.
11687 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11692 // Check varargs and va_copy.
11694 test_varargs (const char *format, ...)
11697 va_start (args, format);
11699 va_copy (args_copy, args);
11709 case 's': // string
11710 str = va_arg (args_copy, const char *);
11713 number = va_arg (args_copy, int);
11716 fnumber = va_arg (args_copy, double);
11722 va_end (args_copy);
11731 _Bool success = false;
11734 if (test_restrict ("String literal") == 0)
11736 char *restrict newvar = "Another string";
11739 test_varargs ("s, d' f .", "string", 65, 34.234);
11740 test_varargs_macros ();
11742 // Check flexible array members.
11743 struct incomplete_array *ia =
11744 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11746 for (int i = 0; i < ia->datasize; ++i)
11747 ia->data[i] = i * 1.234;
11749 // Check named initializers.
11750 struct named_init ni = {
11752 .name = L"Test wide string",
11753 .average = 543.34343,
11758 int dynamic_array[ni.number];
11759 dynamic_array[ni.number - 1] = 543;
11761 // work around unused variable warnings
11762 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11763 || dynamic_array[ni.number - 1] != 543);
11769 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11771 CC="$ac_save_CC $ac_arg"
11772 if ac_fn_c_try_compile "$LINENO"; then :
11773 ac_cv_prog_cc_c99=$ac_arg
11775 rm -f core conftest.err conftest.$ac_objext
11776 test "x$ac_cv_prog_cc_c99" != "xno" && break
11778 rm -f conftest.$ac_ext
11783 case "x$ac_cv_prog_cc_c99" in
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11786 $as_echo "none needed" >&6; } ;;
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11789 $as_echo "unsupported" >&6; } ;;
11791 CC="$CC $ac_cv_prog_cc_c99"
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11793 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11795 if test "x$ac_cv_prog_cc_c99" != xno; then :
11802 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11803 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11809 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11810 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11816 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11817 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11826 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11827 if test -n "$ac_tool_prefix"; then
11828 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11829 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831 $as_echo_n "checking for $ac_word... " >&6; }
11832 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11833 $as_echo_n "(cached) " >&6
11835 case $PKG_CONFIG in
11837 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11844 test -z "$as_dir" && as_dir=.
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11847 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11859 if test -n "$PKG_CONFIG"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11861 $as_echo "$PKG_CONFIG" >&6; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11869 if test -z "$ac_cv_path_PKG_CONFIG"; then
11870 ac_pt_PKG_CONFIG=$PKG_CONFIG
11871 # Extract the first word of "pkg-config", so it can be a program name with args.
11872 set dummy pkg-config; ac_word=$2
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11874 $as_echo_n "checking for $ac_word... " >&6; }
11875 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11876 $as_echo_n "(cached) " >&6
11878 case $ac_pt_PKG_CONFIG in
11880 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11884 for as_dir in $PATH
11887 test -z "$as_dir" && as_dir=.
11888 for ac_exec_ext in '' $ac_executable_extensions; do
11889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11890 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11902 if test -n "$ac_pt_PKG_CONFIG"; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11904 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11910 if test "x$ac_pt_PKG_CONFIG" = x; then
11913 case $cross_compiling:$ac_tool_warned in
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11917 ac_tool_warned=yes ;;
11919 PKG_CONFIG=$ac_pt_PKG_CONFIG
11922 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11926 if test -n "$PKG_CONFIG"; then
11927 _pkg_min_version=0.9.0
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11929 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11930 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11932 $as_echo "yes" >&6; }
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11945 # Check whether --enable-selective-werror was given.
11946 if test "${enable_selective_werror+set}" = set; then :
11947 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11949 SELECTIVE_WERROR=yes
11953 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11954 if test "x$SUNCC" = "xyes"; then
11960 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11966 xorg_testset_save_CFLAGS="$CFLAGS"
11968 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11971 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11972 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11973 $as_echo_n "(cached) " >&6
11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h. */
11979 if ac_fn_c_try_compile "$LINENO"; then :
11980 xorg_cv_cc_flag_unknown_warning_option=yes
11982 xorg_cv_cc_flag_unknown_warning_option=no
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11987 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11988 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11989 CFLAGS="$xorg_testset_save_CFLAGS"
11992 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11998 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11999 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12000 $as_echo_n "(cached) " >&6
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12006 if ac_fn_c_try_compile "$LINENO"; then :
12007 xorg_cv_cc_flag_unused_command_line_argument=yes
12009 xorg_cv_cc_flag_unused_command_line_argument=no
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12014 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12015 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12016 CFLAGS="$xorg_testset_save_CFLAGS"
12021 if test $found = "no" ; then
12022 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12026 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12030 CFLAGS="$CFLAGS -Wall"
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12033 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12034 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
12035 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12036 $as_echo_n "(cached) " >&6
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12049 if ac_fn_c_try_link "$LINENO"; then :
12050 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12052 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12059 CFLAGS="$xorg_testset_save_CFLAGS"
12061 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12063 $as_echo "$supported" >&6; }
12064 if test "$supported" = "yes" ; then
12065 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12076 xorg_testset_save_CFLAGS="$CFLAGS"
12078 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12083 $as_echo_n "(cached) " >&6
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12089 if ac_fn_c_try_compile "$LINENO"; then :
12090 xorg_cv_cc_flag_unknown_warning_option=yes
12092 xorg_cv_cc_flag_unknown_warning_option=no
12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12098 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12099 CFLAGS="$xorg_testset_save_CFLAGS"
12102 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12103 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12110 $as_echo_n "(cached) " >&6
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12116 if ac_fn_c_try_compile "$LINENO"; then :
12117 xorg_cv_cc_flag_unused_command_line_argument=yes
12119 xorg_cv_cc_flag_unused_command_line_argument=no
12121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12125 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12126 CFLAGS="$xorg_testset_save_CFLAGS"
12131 if test $found = "no" ; then
12132 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12136 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12140 CFLAGS="$CFLAGS -Wpointer-arith"
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12143 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12144 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
12145 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12146 $as_echo_n "(cached) " >&6
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12162 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12169 CFLAGS="$xorg_testset_save_CFLAGS"
12171 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12173 $as_echo "$supported" >&6; }
12174 if test "$supported" = "yes" ; then
12175 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12186 xorg_testset_save_CFLAGS="$CFLAGS"
12188 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12191 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12192 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12193 $as_echo_n "(cached) " >&6
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12199 if ac_fn_c_try_compile "$LINENO"; then :
12200 xorg_cv_cc_flag_unknown_warning_option=yes
12202 xorg_cv_cc_flag_unknown_warning_option=no
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12207 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12208 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12209 CFLAGS="$xorg_testset_save_CFLAGS"
12212 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12213 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12218 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12219 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12220 $as_echo_n "(cached) " >&6
12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12226 if ac_fn_c_try_compile "$LINENO"; then :
12227 xorg_cv_cc_flag_unused_command_line_argument=yes
12229 xorg_cv_cc_flag_unused_command_line_argument=no
12231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12234 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12235 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12236 CFLAGS="$xorg_testset_save_CFLAGS"
12241 if test $found = "no" ; then
12242 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12246 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12250 CFLAGS="$CFLAGS -Wstrict-prototypes"
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12253 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12254 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12255 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12256 $as_echo_n "(cached) " >&6
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12269 if ac_fn_c_try_link "$LINENO"; then :
12270 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12272 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12274 rm -f core conftest.err conftest.$ac_objext \
12275 conftest$ac_exeext conftest.$ac_ext
12279 CFLAGS="$xorg_testset_save_CFLAGS"
12281 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12283 $as_echo "$supported" >&6; }
12284 if test "$supported" = "yes" ; then
12285 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12296 xorg_testset_save_CFLAGS="$CFLAGS"
12298 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12301 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12302 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12303 $as_echo_n "(cached) " >&6
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12309 if ac_fn_c_try_compile "$LINENO"; then :
12310 xorg_cv_cc_flag_unknown_warning_option=yes
12312 xorg_cv_cc_flag_unknown_warning_option=no
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12317 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12318 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12319 CFLAGS="$xorg_testset_save_CFLAGS"
12322 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12323 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12328 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12329 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12330 $as_echo_n "(cached) " >&6
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12336 if ac_fn_c_try_compile "$LINENO"; then :
12337 xorg_cv_cc_flag_unused_command_line_argument=yes
12339 xorg_cv_cc_flag_unused_command_line_argument=no
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12344 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12345 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12346 CFLAGS="$xorg_testset_save_CFLAGS"
12351 if test $found = "no" ; then
12352 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12356 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12360 CFLAGS="$CFLAGS -Wmissing-prototypes"
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12363 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12364 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12365 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12366 $as_echo_n "(cached) " >&6
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12379 if ac_fn_c_try_link "$LINENO"; then :
12380 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12382 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12384 rm -f core conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12389 CFLAGS="$xorg_testset_save_CFLAGS"
12391 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12393 $as_echo "$supported" >&6; }
12394 if test "$supported" = "yes" ; then
12395 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12406 xorg_testset_save_CFLAGS="$CFLAGS"
12408 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12411 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12412 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12413 $as_echo_n "(cached) " >&6
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12419 if ac_fn_c_try_compile "$LINENO"; then :
12420 xorg_cv_cc_flag_unknown_warning_option=yes
12422 xorg_cv_cc_flag_unknown_warning_option=no
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12427 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12428 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12429 CFLAGS="$xorg_testset_save_CFLAGS"
12432 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12433 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12438 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12439 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12440 $as_echo_n "(cached) " >&6
12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12446 if ac_fn_c_try_compile "$LINENO"; then :
12447 xorg_cv_cc_flag_unused_command_line_argument=yes
12449 xorg_cv_cc_flag_unused_command_line_argument=no
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12454 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12455 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12456 CFLAGS="$xorg_testset_save_CFLAGS"
12461 if test $found = "no" ; then
12462 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12466 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12470 CFLAGS="$CFLAGS -Wmissing-declarations"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12473 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12474 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
12475 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12476 $as_echo_n "(cached) " >&6
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12492 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12494 rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12499 CFLAGS="$xorg_testset_save_CFLAGS"
12501 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12503 $as_echo "$supported" >&6; }
12504 if test "$supported" = "yes" ; then
12505 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12516 xorg_testset_save_CFLAGS="$CFLAGS"
12518 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12521 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12522 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12523 $as_echo_n "(cached) " >&6
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12529 if ac_fn_c_try_compile "$LINENO"; then :
12530 xorg_cv_cc_flag_unknown_warning_option=yes
12532 xorg_cv_cc_flag_unknown_warning_option=no
12534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12537 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12538 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12539 CFLAGS="$xorg_testset_save_CFLAGS"
12542 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12543 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12548 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12549 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12550 $as_echo_n "(cached) " >&6
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12556 if ac_fn_c_try_compile "$LINENO"; then :
12557 xorg_cv_cc_flag_unused_command_line_argument=yes
12559 xorg_cv_cc_flag_unused_command_line_argument=no
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12564 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12565 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12566 CFLAGS="$xorg_testset_save_CFLAGS"
12571 if test $found = "no" ; then
12572 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12576 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12580 CFLAGS="$CFLAGS -Wnested-externs"
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12583 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12584 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12585 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12586 $as_echo_n "(cached) " >&6
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h. */
12599 if ac_fn_c_try_link "$LINENO"; then :
12600 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12602 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12604 rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12609 CFLAGS="$xorg_testset_save_CFLAGS"
12611 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12613 $as_echo "$supported" >&6; }
12614 if test "$supported" = "yes" ; then
12615 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12626 xorg_testset_save_CFLAGS="$CFLAGS"
12628 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12631 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12632 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12633 $as_echo_n "(cached) " >&6
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12639 if ac_fn_c_try_compile "$LINENO"; then :
12640 xorg_cv_cc_flag_unknown_warning_option=yes
12642 xorg_cv_cc_flag_unknown_warning_option=no
12644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12647 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12648 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12649 CFLAGS="$xorg_testset_save_CFLAGS"
12652 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12653 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12658 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12659 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12660 $as_echo_n "(cached) " >&6
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12666 if ac_fn_c_try_compile "$LINENO"; then :
12667 xorg_cv_cc_flag_unused_command_line_argument=yes
12669 xorg_cv_cc_flag_unused_command_line_argument=no
12671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12674 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12675 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12676 CFLAGS="$xorg_testset_save_CFLAGS"
12681 if test $found = "no" ; then
12682 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12686 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12690 CFLAGS="$CFLAGS -Wbad-function-cast"
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12693 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12694 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12695 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12696 $as_echo_n "(cached) " >&6
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12709 if ac_fn_c_try_link "$LINENO"; then :
12710 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12712 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12714 rm -f core conftest.err conftest.$ac_objext \
12715 conftest$ac_exeext conftest.$ac_ext
12719 CFLAGS="$xorg_testset_save_CFLAGS"
12721 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12723 $as_echo "$supported" >&6; }
12724 if test "$supported" = "yes" ; then
12725 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12736 xorg_testset_save_CFLAGS="$CFLAGS"
12738 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12741 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12742 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12743 $as_echo_n "(cached) " >&6
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12749 if ac_fn_c_try_compile "$LINENO"; then :
12750 xorg_cv_cc_flag_unknown_warning_option=yes
12752 xorg_cv_cc_flag_unknown_warning_option=no
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12757 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12758 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12759 CFLAGS="$xorg_testset_save_CFLAGS"
12762 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12763 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12768 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12769 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12770 $as_echo_n "(cached) " >&6
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12776 if ac_fn_c_try_compile "$LINENO"; then :
12777 xorg_cv_cc_flag_unused_command_line_argument=yes
12779 xorg_cv_cc_flag_unused_command_line_argument=no
12781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12784 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12785 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12786 CFLAGS="$xorg_testset_save_CFLAGS"
12791 if test $found = "no" ; then
12792 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12796 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12800 CFLAGS="$CFLAGS -Wformat=2"
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12803 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12804 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12805 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12806 $as_echo_n "(cached) " >&6
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12819 if ac_fn_c_try_link "$LINENO"; then :
12820 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12822 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12824 rm -f core conftest.err conftest.$ac_objext \
12825 conftest$ac_exeext conftest.$ac_ext
12829 CFLAGS="$xorg_testset_save_CFLAGS"
12831 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12833 $as_echo "$supported" >&6; }
12834 if test "$supported" = "yes" ; then
12835 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12840 if test $found = "no" ; then
12841 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12845 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12849 CFLAGS="$CFLAGS -Wformat"
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12852 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12853 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12854 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12855 $as_echo_n "(cached) " >&6
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12868 if ac_fn_c_try_link "$LINENO"; then :
12869 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12871 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12873 rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12878 CFLAGS="$xorg_testset_save_CFLAGS"
12880 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12882 $as_echo "$supported" >&6; }
12883 if test "$supported" = "yes" ; then
12884 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12895 xorg_testset_save_CFLAGS="$CFLAGS"
12897 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12900 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12901 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12902 $as_echo_n "(cached) " >&6
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12908 if ac_fn_c_try_compile "$LINENO"; then :
12909 xorg_cv_cc_flag_unknown_warning_option=yes
12911 xorg_cv_cc_flag_unknown_warning_option=no
12913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12916 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12917 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12918 CFLAGS="$xorg_testset_save_CFLAGS"
12921 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12922 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12927 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12928 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12929 $as_echo_n "(cached) " >&6
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12935 if ac_fn_c_try_compile "$LINENO"; then :
12936 xorg_cv_cc_flag_unused_command_line_argument=yes
12938 xorg_cv_cc_flag_unused_command_line_argument=no
12940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12943 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12944 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12945 CFLAGS="$xorg_testset_save_CFLAGS"
12950 if test $found = "no" ; then
12951 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12955 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12959 CFLAGS="$CFLAGS -Wold-style-definition"
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12962 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12963 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12964 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12965 $as_echo_n "(cached) " >&6
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12978 if ac_fn_c_try_link "$LINENO"; then :
12979 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12981 eval `$as_echo "$cacheid" | $as_tr_sh`=no
12983 rm -f core conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12988 CFLAGS="$xorg_testset_save_CFLAGS"
12990 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12992 $as_echo "$supported" >&6; }
12993 if test "$supported" = "yes" ; then
12994 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13005 xorg_testset_save_CFLAGS="$CFLAGS"
13007 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13010 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13011 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13012 $as_echo_n "(cached) " >&6
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13018 if ac_fn_c_try_compile "$LINENO"; then :
13019 xorg_cv_cc_flag_unknown_warning_option=yes
13021 xorg_cv_cc_flag_unknown_warning_option=no
13023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13026 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13027 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13028 CFLAGS="$xorg_testset_save_CFLAGS"
13031 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13032 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13037 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13038 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13039 $as_echo_n "(cached) " >&6
13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h. */
13045 if ac_fn_c_try_compile "$LINENO"; then :
13046 xorg_cv_cc_flag_unused_command_line_argument=yes
13048 xorg_cv_cc_flag_unused_command_line_argument=no
13050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13053 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13054 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13055 CFLAGS="$xorg_testset_save_CFLAGS"
13060 if test $found = "no" ; then
13061 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13065 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13069 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13072 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13073 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
13074 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13075 $as_echo_n "(cached) " >&6
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13088 if ac_fn_c_try_link "$LINENO"; then :
13089 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13091 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13093 rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13098 CFLAGS="$xorg_testset_save_CFLAGS"
13100 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13102 $as_echo "$supported" >&6; }
13103 if test "$supported" = "yes" ; then
13104 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13111 # This chunk adds additional warnings that could catch undesired effects.
13117 xorg_testset_save_CFLAGS="$CFLAGS"
13119 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13122 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13123 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13124 $as_echo_n "(cached) " >&6
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13130 if ac_fn_c_try_compile "$LINENO"; then :
13131 xorg_cv_cc_flag_unknown_warning_option=yes
13133 xorg_cv_cc_flag_unknown_warning_option=no
13135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13138 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13139 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13140 CFLAGS="$xorg_testset_save_CFLAGS"
13143 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13149 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13150 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13151 $as_echo_n "(cached) " >&6
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13157 if ac_fn_c_try_compile "$LINENO"; then :
13158 xorg_cv_cc_flag_unused_command_line_argument=yes
13160 xorg_cv_cc_flag_unused_command_line_argument=no
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13165 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13166 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13167 CFLAGS="$xorg_testset_save_CFLAGS"
13172 if test $found = "no" ; then
13173 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13177 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13181 CFLAGS="$CFLAGS -Wunused"
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13184 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13185 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
13186 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13187 $as_echo_n "(cached) " >&6
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13200 if ac_fn_c_try_link "$LINENO"; then :
13201 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13203 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13205 rm -f core conftest.err conftest.$ac_objext \
13206 conftest$ac_exeext conftest.$ac_ext
13210 CFLAGS="$xorg_testset_save_CFLAGS"
13212 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13214 $as_echo "$supported" >&6; }
13215 if test "$supported" = "yes" ; then
13216 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13227 xorg_testset_save_CFLAGS="$CFLAGS"
13229 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13232 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13233 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13234 $as_echo_n "(cached) " >&6
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13240 if ac_fn_c_try_compile "$LINENO"; then :
13241 xorg_cv_cc_flag_unknown_warning_option=yes
13243 xorg_cv_cc_flag_unknown_warning_option=no
13245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13248 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13249 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13250 CFLAGS="$xorg_testset_save_CFLAGS"
13253 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13259 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13260 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13261 $as_echo_n "(cached) " >&6
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13267 if ac_fn_c_try_compile "$LINENO"; then :
13268 xorg_cv_cc_flag_unused_command_line_argument=yes
13270 xorg_cv_cc_flag_unused_command_line_argument=no
13272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13275 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13276 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13277 CFLAGS="$xorg_testset_save_CFLAGS"
13282 if test $found = "no" ; then
13283 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13287 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13291 CFLAGS="$CFLAGS -Wuninitialized"
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13294 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13295 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13296 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13297 $as_echo_n "(cached) " >&6
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13310 if ac_fn_c_try_link "$LINENO"; then :
13311 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13313 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13315 rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13320 CFLAGS="$xorg_testset_save_CFLAGS"
13322 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13324 $as_echo "$supported" >&6; }
13325 if test "$supported" = "yes" ; then
13326 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13337 xorg_testset_save_CFLAGS="$CFLAGS"
13339 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13342 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13343 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13344 $as_echo_n "(cached) " >&6
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13350 if ac_fn_c_try_compile "$LINENO"; then :
13351 xorg_cv_cc_flag_unknown_warning_option=yes
13353 xorg_cv_cc_flag_unknown_warning_option=no
13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13358 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13359 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13360 CFLAGS="$xorg_testset_save_CFLAGS"
13363 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13364 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13369 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13370 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13371 $as_echo_n "(cached) " >&6
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13377 if ac_fn_c_try_compile "$LINENO"; then :
13378 xorg_cv_cc_flag_unused_command_line_argument=yes
13380 xorg_cv_cc_flag_unused_command_line_argument=no
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13385 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13386 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13387 CFLAGS="$xorg_testset_save_CFLAGS"
13392 if test $found = "no" ; then
13393 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13397 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13401 CFLAGS="$CFLAGS -Wshadow"
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13404 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13405 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13406 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13407 $as_echo_n "(cached) " >&6
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13420 if ac_fn_c_try_link "$LINENO"; then :
13421 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13423 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13425 rm -f core conftest.err conftest.$ac_objext \
13426 conftest$ac_exeext conftest.$ac_ext
13430 CFLAGS="$xorg_testset_save_CFLAGS"
13432 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13434 $as_echo "$supported" >&6; }
13435 if test "$supported" = "yes" ; then
13436 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13447 xorg_testset_save_CFLAGS="$CFLAGS"
13449 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13452 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13453 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13454 $as_echo_n "(cached) " >&6
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13460 if ac_fn_c_try_compile "$LINENO"; then :
13461 xorg_cv_cc_flag_unknown_warning_option=yes
13463 xorg_cv_cc_flag_unknown_warning_option=no
13465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13468 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13469 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13470 CFLAGS="$xorg_testset_save_CFLAGS"
13473 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13474 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13479 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13480 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13481 $as_echo_n "(cached) " >&6
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13487 if ac_fn_c_try_compile "$LINENO"; then :
13488 xorg_cv_cc_flag_unused_command_line_argument=yes
13490 xorg_cv_cc_flag_unused_command_line_argument=no
13492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13495 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13496 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13497 CFLAGS="$xorg_testset_save_CFLAGS"
13502 if test $found = "no" ; then
13503 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13507 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13511 CFLAGS="$CFLAGS -Wcast-qual"
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13514 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13515 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13516 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13517 $as_echo_n "(cached) " >&6
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h. */
13530 if ac_fn_c_try_link "$LINENO"; then :
13531 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13533 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13535 rm -f core conftest.err conftest.$ac_objext \
13536 conftest$ac_exeext conftest.$ac_ext
13540 CFLAGS="$xorg_testset_save_CFLAGS"
13542 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13544 $as_echo "$supported" >&6; }
13545 if test "$supported" = "yes" ; then
13546 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13557 xorg_testset_save_CFLAGS="$CFLAGS"
13559 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13564 $as_echo_n "(cached) " >&6
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13570 if ac_fn_c_try_compile "$LINENO"; then :
13571 xorg_cv_cc_flag_unknown_warning_option=yes
13573 xorg_cv_cc_flag_unknown_warning_option=no
13575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13579 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13580 CFLAGS="$xorg_testset_save_CFLAGS"
13583 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13584 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13591 $as_echo_n "(cached) " >&6
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13597 if ac_fn_c_try_compile "$LINENO"; then :
13598 xorg_cv_cc_flag_unused_command_line_argument=yes
13600 xorg_cv_cc_flag_unused_command_line_argument=no
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13606 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13607 CFLAGS="$xorg_testset_save_CFLAGS"
13612 if test $found = "no" ; then
13613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13617 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13621 CFLAGS="$CFLAGS -Wmissing-noreturn"
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13624 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13625 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13626 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13627 $as_echo_n "(cached) " >&6
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13640 if ac_fn_c_try_link "$LINENO"; then :
13641 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13643 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13645 rm -f core conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
13650 CFLAGS="$xorg_testset_save_CFLAGS"
13652 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13654 $as_echo "$supported" >&6; }
13655 if test "$supported" = "yes" ; then
13656 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13667 xorg_testset_save_CFLAGS="$CFLAGS"
13669 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13672 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13673 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13674 $as_echo_n "(cached) " >&6
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13680 if ac_fn_c_try_compile "$LINENO"; then :
13681 xorg_cv_cc_flag_unknown_warning_option=yes
13683 xorg_cv_cc_flag_unknown_warning_option=no
13685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13688 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13689 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13690 CFLAGS="$xorg_testset_save_CFLAGS"
13693 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13694 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13699 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13700 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13701 $as_echo_n "(cached) " >&6
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13707 if ac_fn_c_try_compile "$LINENO"; then :
13708 xorg_cv_cc_flag_unused_command_line_argument=yes
13710 xorg_cv_cc_flag_unused_command_line_argument=no
13712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13715 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13716 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13717 CFLAGS="$xorg_testset_save_CFLAGS"
13722 if test $found = "no" ; then
13723 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13727 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13731 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13734 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13735 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13736 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13737 $as_echo_n "(cached) " >&6
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13750 if ac_fn_c_try_link "$LINENO"; then :
13751 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13753 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13755 rm -f core conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
13760 CFLAGS="$xorg_testset_save_CFLAGS"
13762 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13764 $as_echo "$supported" >&6; }
13765 if test "$supported" = "yes" ; then
13766 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13777 xorg_testset_save_CFLAGS="$CFLAGS"
13779 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13782 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13783 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13784 $as_echo_n "(cached) " >&6
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13790 if ac_fn_c_try_compile "$LINENO"; then :
13791 xorg_cv_cc_flag_unknown_warning_option=yes
13793 xorg_cv_cc_flag_unknown_warning_option=no
13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13798 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13799 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13800 CFLAGS="$xorg_testset_save_CFLAGS"
13803 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13804 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13809 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13810 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13811 $as_echo_n "(cached) " >&6
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13817 if ac_fn_c_try_compile "$LINENO"; then :
13818 xorg_cv_cc_flag_unused_command_line_argument=yes
13820 xorg_cv_cc_flag_unused_command_line_argument=no
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13825 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13826 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13827 CFLAGS="$xorg_testset_save_CFLAGS"
13832 if test $found = "no" ; then
13833 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13837 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13841 CFLAGS="$CFLAGS -Wredundant-decls"
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13844 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13845 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13846 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13847 $as_echo_n "(cached) " >&6
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13860 if ac_fn_c_try_link "$LINENO"; then :
13861 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13863 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13865 rm -f core conftest.err conftest.$ac_objext \
13866 conftest$ac_exeext conftest.$ac_ext
13870 CFLAGS="$xorg_testset_save_CFLAGS"
13872 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13874 $as_echo "$supported" >&6; }
13875 if test "$supported" = "yes" ; then
13876 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13883 # These are currently disabled because they are noisy. They will be enabled
13884 # in the future once the codebase is sufficiently modernized to silence
13885 # them. For now, I don't want them to drown out the other warnings.
13886 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
13887 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
13888 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
13890 # Turn some warnings into errors, so we don't accidently get successful builds
13891 # when there are problems that should be fixed.
13893 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13899 xorg_testset_save_CFLAGS="$CFLAGS"
13901 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13904 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13905 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13906 $as_echo_n "(cached) " >&6
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13912 if ac_fn_c_try_compile "$LINENO"; then :
13913 xorg_cv_cc_flag_unknown_warning_option=yes
13915 xorg_cv_cc_flag_unknown_warning_option=no
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13920 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13921 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13922 CFLAGS="$xorg_testset_save_CFLAGS"
13925 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13926 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13931 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13932 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13933 $as_echo_n "(cached) " >&6
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13939 if ac_fn_c_try_compile "$LINENO"; then :
13940 xorg_cv_cc_flag_unused_command_line_argument=yes
13942 xorg_cv_cc_flag_unused_command_line_argument=no
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13947 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13948 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13949 CFLAGS="$xorg_testset_save_CFLAGS"
13954 if test $found = "no" ; then
13955 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13959 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13963 CFLAGS="$CFLAGS -Werror=implicit"
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13966 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13967 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13968 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13969 $as_echo_n "(cached) " >&6
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13982 if ac_fn_c_try_link "$LINENO"; then :
13983 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13985 eval `$as_echo "$cacheid" | $as_tr_sh`=no
13987 rm -f core conftest.err conftest.$ac_objext \
13988 conftest$ac_exeext conftest.$ac_ext
13992 CFLAGS="$xorg_testset_save_CFLAGS"
13994 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13996 $as_echo "$supported" >&6; }
13997 if test "$supported" = "yes" ; then
13998 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14003 if test $found = "no" ; then
14004 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14008 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14012 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14015 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14016 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
14017 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14018 $as_echo_n "(cached) " >&6
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14031 if ac_fn_c_try_link "$LINENO"; then :
14032 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14034 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14036 rm -f core conftest.err conftest.$ac_objext \
14037 conftest$ac_exeext conftest.$ac_ext
14041 CFLAGS="$xorg_testset_save_CFLAGS"
14043 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14045 $as_echo "$supported" >&6; }
14046 if test "$supported" = "yes" ; then
14047 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14058 xorg_testset_save_CFLAGS="$CFLAGS"
14060 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14063 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14064 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14065 $as_echo_n "(cached) " >&6
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14071 if ac_fn_c_try_compile "$LINENO"; then :
14072 xorg_cv_cc_flag_unknown_warning_option=yes
14074 xorg_cv_cc_flag_unknown_warning_option=no
14076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14079 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14080 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14081 CFLAGS="$xorg_testset_save_CFLAGS"
14084 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14090 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14091 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14092 $as_echo_n "(cached) " >&6
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14098 if ac_fn_c_try_compile "$LINENO"; then :
14099 xorg_cv_cc_flag_unused_command_line_argument=yes
14101 xorg_cv_cc_flag_unused_command_line_argument=no
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14106 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14107 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14108 CFLAGS="$xorg_testset_save_CFLAGS"
14113 if test $found = "no" ; then
14114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14118 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14122 CFLAGS="$CFLAGS -Werror=nonnull"
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14125 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14126 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
14127 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14128 $as_echo_n "(cached) " >&6
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14141 if ac_fn_c_try_link "$LINENO"; then :
14142 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14144 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14146 rm -f core conftest.err conftest.$ac_objext \
14147 conftest$ac_exeext conftest.$ac_ext
14151 CFLAGS="$xorg_testset_save_CFLAGS"
14153 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14155 $as_echo "$supported" >&6; }
14156 if test "$supported" = "yes" ; then
14157 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14168 xorg_testset_save_CFLAGS="$CFLAGS"
14170 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14173 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14174 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14175 $as_echo_n "(cached) " >&6
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14181 if ac_fn_c_try_compile "$LINENO"; then :
14182 xorg_cv_cc_flag_unknown_warning_option=yes
14184 xorg_cv_cc_flag_unknown_warning_option=no
14186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14189 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14190 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14191 CFLAGS="$xorg_testset_save_CFLAGS"
14194 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14200 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14201 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14202 $as_echo_n "(cached) " >&6
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14208 if ac_fn_c_try_compile "$LINENO"; then :
14209 xorg_cv_cc_flag_unused_command_line_argument=yes
14211 xorg_cv_cc_flag_unused_command_line_argument=no
14213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14216 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14217 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14218 CFLAGS="$xorg_testset_save_CFLAGS"
14223 if test $found = "no" ; then
14224 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14228 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14232 CFLAGS="$CFLAGS -Werror=init-self"
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14235 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14236 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
14237 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14238 $as_echo_n "(cached) " >&6
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14251 if ac_fn_c_try_link "$LINENO"; then :
14252 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14254 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14256 rm -f core conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
14261 CFLAGS="$xorg_testset_save_CFLAGS"
14263 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14265 $as_echo "$supported" >&6; }
14266 if test "$supported" = "yes" ; then
14267 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14278 xorg_testset_save_CFLAGS="$CFLAGS"
14280 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14283 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14284 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14285 $as_echo_n "(cached) " >&6
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14291 if ac_fn_c_try_compile "$LINENO"; then :
14292 xorg_cv_cc_flag_unknown_warning_option=yes
14294 xorg_cv_cc_flag_unknown_warning_option=no
14296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14299 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14300 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14301 CFLAGS="$xorg_testset_save_CFLAGS"
14304 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14305 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14310 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14311 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14312 $as_echo_n "(cached) " >&6
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14318 if ac_fn_c_try_compile "$LINENO"; then :
14319 xorg_cv_cc_flag_unused_command_line_argument=yes
14321 xorg_cv_cc_flag_unused_command_line_argument=no
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14326 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14327 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14328 CFLAGS="$xorg_testset_save_CFLAGS"
14333 if test $found = "no" ; then
14334 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14338 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14342 CFLAGS="$CFLAGS -Werror=main"
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14345 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14346 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14347 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14348 $as_echo_n "(cached) " >&6
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14361 if ac_fn_c_try_link "$LINENO"; then :
14362 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14364 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14366 rm -f core conftest.err conftest.$ac_objext \
14367 conftest$ac_exeext conftest.$ac_ext
14371 CFLAGS="$xorg_testset_save_CFLAGS"
14373 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14375 $as_echo "$supported" >&6; }
14376 if test "$supported" = "yes" ; then
14377 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14388 xorg_testset_save_CFLAGS="$CFLAGS"
14390 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14393 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14394 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14395 $as_echo_n "(cached) " >&6
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14401 if ac_fn_c_try_compile "$LINENO"; then :
14402 xorg_cv_cc_flag_unknown_warning_option=yes
14404 xorg_cv_cc_flag_unknown_warning_option=no
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14409 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14410 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14411 CFLAGS="$xorg_testset_save_CFLAGS"
14414 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14415 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14420 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14421 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14422 $as_echo_n "(cached) " >&6
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14428 if ac_fn_c_try_compile "$LINENO"; then :
14429 xorg_cv_cc_flag_unused_command_line_argument=yes
14431 xorg_cv_cc_flag_unused_command_line_argument=no
14433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14436 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14437 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14438 CFLAGS="$xorg_testset_save_CFLAGS"
14443 if test $found = "no" ; then
14444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14448 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14452 CFLAGS="$CFLAGS -Werror=missing-braces"
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14455 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14456 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14457 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14458 $as_echo_n "(cached) " >&6
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14471 if ac_fn_c_try_link "$LINENO"; then :
14472 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14474 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14476 rm -f core conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
14481 CFLAGS="$xorg_testset_save_CFLAGS"
14483 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14485 $as_echo "$supported" >&6; }
14486 if test "$supported" = "yes" ; then
14487 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14498 xorg_testset_save_CFLAGS="$CFLAGS"
14500 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14503 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14504 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14505 $as_echo_n "(cached) " >&6
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14511 if ac_fn_c_try_compile "$LINENO"; then :
14512 xorg_cv_cc_flag_unknown_warning_option=yes
14514 xorg_cv_cc_flag_unknown_warning_option=no
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14519 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14520 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14521 CFLAGS="$xorg_testset_save_CFLAGS"
14524 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14525 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14530 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14531 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14532 $as_echo_n "(cached) " >&6
14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14538 if ac_fn_c_try_compile "$LINENO"; then :
14539 xorg_cv_cc_flag_unused_command_line_argument=yes
14541 xorg_cv_cc_flag_unused_command_line_argument=no
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14546 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14547 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14548 CFLAGS="$xorg_testset_save_CFLAGS"
14553 if test $found = "no" ; then
14554 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14558 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14562 CFLAGS="$CFLAGS -Werror=sequence-point"
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14565 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14566 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14567 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14568 $as_echo_n "(cached) " >&6
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14584 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14591 CFLAGS="$xorg_testset_save_CFLAGS"
14593 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14595 $as_echo "$supported" >&6; }
14596 if test "$supported" = "yes" ; then
14597 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14608 xorg_testset_save_CFLAGS="$CFLAGS"
14610 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14613 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14614 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14615 $as_echo_n "(cached) " >&6
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14621 if ac_fn_c_try_compile "$LINENO"; then :
14622 xorg_cv_cc_flag_unknown_warning_option=yes
14624 xorg_cv_cc_flag_unknown_warning_option=no
14626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14629 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14630 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14631 CFLAGS="$xorg_testset_save_CFLAGS"
14634 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14640 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14641 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14642 $as_echo_n "(cached) " >&6
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14648 if ac_fn_c_try_compile "$LINENO"; then :
14649 xorg_cv_cc_flag_unused_command_line_argument=yes
14651 xorg_cv_cc_flag_unused_command_line_argument=no
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14656 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14657 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14658 CFLAGS="$xorg_testset_save_CFLAGS"
14663 if test $found = "no" ; then
14664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14672 CFLAGS="$CFLAGS -Werror=return-type"
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14675 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14676 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14677 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14678 $as_echo_n "(cached) " >&6
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14691 if ac_fn_c_try_link "$LINENO"; then :
14692 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14694 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14696 rm -f core conftest.err conftest.$ac_objext \
14697 conftest$ac_exeext conftest.$ac_ext
14701 CFLAGS="$xorg_testset_save_CFLAGS"
14703 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14705 $as_echo "$supported" >&6; }
14706 if test "$supported" = "yes" ; then
14707 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14712 if test $found = "no" ; then
14713 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14717 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14721 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14724 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14725 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14726 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14727 $as_echo_n "(cached) " >&6
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14740 if ac_fn_c_try_link "$LINENO"; then :
14741 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14743 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14745 rm -f core conftest.err conftest.$ac_objext \
14746 conftest$ac_exeext conftest.$ac_ext
14750 CFLAGS="$xorg_testset_save_CFLAGS"
14752 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14754 $as_echo "$supported" >&6; }
14755 if test "$supported" = "yes" ; then
14756 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14767 xorg_testset_save_CFLAGS="$CFLAGS"
14769 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14772 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14773 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14774 $as_echo_n "(cached) " >&6
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14780 if ac_fn_c_try_compile "$LINENO"; then :
14781 xorg_cv_cc_flag_unknown_warning_option=yes
14783 xorg_cv_cc_flag_unknown_warning_option=no
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14788 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14789 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14790 CFLAGS="$xorg_testset_save_CFLAGS"
14793 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14799 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14800 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14801 $as_echo_n "(cached) " >&6
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14807 if ac_fn_c_try_compile "$LINENO"; then :
14808 xorg_cv_cc_flag_unused_command_line_argument=yes
14810 xorg_cv_cc_flag_unused_command_line_argument=no
14812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14815 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14816 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14817 CFLAGS="$xorg_testset_save_CFLAGS"
14822 if test $found = "no" ; then
14823 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14827 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14831 CFLAGS="$CFLAGS -Werror=trigraphs"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14834 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14835 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14836 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14837 $as_echo_n "(cached) " >&6
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14850 if ac_fn_c_try_link "$LINENO"; then :
14851 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14853 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14860 CFLAGS="$xorg_testset_save_CFLAGS"
14862 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14864 $as_echo "$supported" >&6; }
14865 if test "$supported" = "yes" ; then
14866 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14877 xorg_testset_save_CFLAGS="$CFLAGS"
14879 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14884 $as_echo_n "(cached) " >&6
14886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887 /* end confdefs.h. */
14890 if ac_fn_c_try_compile "$LINENO"; then :
14891 xorg_cv_cc_flag_unknown_warning_option=yes
14893 xorg_cv_cc_flag_unknown_warning_option=no
14895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14899 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14900 CFLAGS="$xorg_testset_save_CFLAGS"
14903 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14904 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14911 $as_echo_n "(cached) " >&6
14913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14914 /* end confdefs.h. */
14917 if ac_fn_c_try_compile "$LINENO"; then :
14918 xorg_cv_cc_flag_unused_command_line_argument=yes
14920 xorg_cv_cc_flag_unused_command_line_argument=no
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14926 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14927 CFLAGS="$xorg_testset_save_CFLAGS"
14932 if test $found = "no" ; then
14933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14937 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14941 CFLAGS="$CFLAGS -Werror=array-bounds"
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14944 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14945 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14946 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14947 $as_echo_n "(cached) " >&6
14949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14950 /* end confdefs.h. */
14960 if ac_fn_c_try_link "$LINENO"; then :
14961 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14963 eval `$as_echo "$cacheid" | $as_tr_sh`=no
14965 rm -f core conftest.err conftest.$ac_objext \
14966 conftest$ac_exeext conftest.$ac_ext
14970 CFLAGS="$xorg_testset_save_CFLAGS"
14972 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14974 $as_echo "$supported" >&6; }
14975 if test "$supported" = "yes" ; then
14976 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14987 xorg_testset_save_CFLAGS="$CFLAGS"
14989 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14992 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14993 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14994 $as_echo_n "(cached) " >&6
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
15000 if ac_fn_c_try_compile "$LINENO"; then :
15001 xorg_cv_cc_flag_unknown_warning_option=yes
15003 xorg_cv_cc_flag_unknown_warning_option=no
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15008 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15009 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15010 CFLAGS="$xorg_testset_save_CFLAGS"
15013 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15014 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15019 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15020 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15021 $as_echo_n "(cached) " >&6
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15027 if ac_fn_c_try_compile "$LINENO"; then :
15028 xorg_cv_cc_flag_unused_command_line_argument=yes
15030 xorg_cv_cc_flag_unused_command_line_argument=no
15032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15035 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15036 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15037 CFLAGS="$xorg_testset_save_CFLAGS"
15042 if test $found = "no" ; then
15043 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15047 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15051 CFLAGS="$CFLAGS -Werror=write-strings"
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15054 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15055 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
15056 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15057 $as_echo_n "(cached) " >&6
15059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15070 if ac_fn_c_try_link "$LINENO"; then :
15071 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15073 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15075 rm -f core conftest.err conftest.$ac_objext \
15076 conftest$ac_exeext conftest.$ac_ext
15080 CFLAGS="$xorg_testset_save_CFLAGS"
15082 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15084 $as_echo "$supported" >&6; }
15085 if test "$supported" = "yes" ; then
15086 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15097 xorg_testset_save_CFLAGS="$CFLAGS"
15099 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15102 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15103 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15104 $as_echo_n "(cached) " >&6
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15110 if ac_fn_c_try_compile "$LINENO"; then :
15111 xorg_cv_cc_flag_unknown_warning_option=yes
15113 xorg_cv_cc_flag_unknown_warning_option=no
15115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15118 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15119 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15120 CFLAGS="$xorg_testset_save_CFLAGS"
15123 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15124 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15129 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15130 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15131 $as_echo_n "(cached) " >&6
15133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134 /* end confdefs.h. */
15137 if ac_fn_c_try_compile "$LINENO"; then :
15138 xorg_cv_cc_flag_unused_command_line_argument=yes
15140 xorg_cv_cc_flag_unused_command_line_argument=no
15142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15145 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15146 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15147 CFLAGS="$xorg_testset_save_CFLAGS"
15152 if test $found = "no" ; then
15153 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15157 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15161 CFLAGS="$CFLAGS -Werror=address"
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15164 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15165 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
15166 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15167 $as_echo_n "(cached) " >&6
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15180 if ac_fn_c_try_link "$LINENO"; then :
15181 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15183 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15185 rm -f core conftest.err conftest.$ac_objext \
15186 conftest$ac_exeext conftest.$ac_ext
15190 CFLAGS="$xorg_testset_save_CFLAGS"
15192 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15194 $as_echo "$supported" >&6; }
15195 if test "$supported" = "yes" ; then
15196 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15207 xorg_testset_save_CFLAGS="$CFLAGS"
15209 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15212 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15213 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15214 $as_echo_n "(cached) " >&6
15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15220 if ac_fn_c_try_compile "$LINENO"; then :
15221 xorg_cv_cc_flag_unknown_warning_option=yes
15223 xorg_cv_cc_flag_unknown_warning_option=no
15225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15228 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15229 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15230 CFLAGS="$xorg_testset_save_CFLAGS"
15233 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15234 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15239 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15240 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15241 $as_echo_n "(cached) " >&6
15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h. */
15247 if ac_fn_c_try_compile "$LINENO"; then :
15248 xorg_cv_cc_flag_unused_command_line_argument=yes
15250 xorg_cv_cc_flag_unused_command_line_argument=no
15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15255 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15256 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15257 CFLAGS="$xorg_testset_save_CFLAGS"
15262 if test $found = "no" ; then
15263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15267 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15271 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15274 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15275 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15276 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15277 $as_echo_n "(cached) " >&6
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15290 if ac_fn_c_try_link "$LINENO"; then :
15291 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15293 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15295 rm -f core conftest.err conftest.$ac_objext \
15296 conftest$ac_exeext conftest.$ac_ext
15300 CFLAGS="$xorg_testset_save_CFLAGS"
15302 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15304 $as_echo "$supported" >&6; }
15305 if test "$supported" = "yes" ; then
15306 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15311 if test $found = "no" ; then
15312 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15316 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15320 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15323 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15324 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15325 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15326 $as_echo_n "(cached) " >&6
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15339 if ac_fn_c_try_link "$LINENO"; then :
15340 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15342 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15344 rm -f core conftest.err conftest.$ac_objext \
15345 conftest$ac_exeext conftest.$ac_ext
15349 CFLAGS="$xorg_testset_save_CFLAGS"
15351 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15353 $as_echo "$supported" >&6; }
15354 if test "$supported" = "yes" ; then
15355 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15366 xorg_testset_save_CFLAGS="$CFLAGS"
15368 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15373 $as_echo_n "(cached) " >&6
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15379 if ac_fn_c_try_compile "$LINENO"; then :
15380 xorg_cv_cc_flag_unknown_warning_option=yes
15382 xorg_cv_cc_flag_unknown_warning_option=no
15384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15388 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15389 CFLAGS="$xorg_testset_save_CFLAGS"
15392 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15393 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15400 $as_echo_n "(cached) " >&6
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15406 if ac_fn_c_try_compile "$LINENO"; then :
15407 xorg_cv_cc_flag_unused_command_line_argument=yes
15409 xorg_cv_cc_flag_unused_command_line_argument=no
15411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15415 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15416 CFLAGS="$xorg_testset_save_CFLAGS"
15421 if test $found = "no" ; then
15422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15426 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15430 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15433 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15434 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15435 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15436 $as_echo_n "(cached) " >&6
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15449 if ac_fn_c_try_link "$LINENO"; then :
15450 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15452 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15454 rm -f core conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15459 CFLAGS="$xorg_testset_save_CFLAGS"
15461 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15463 $as_echo "$supported" >&6; }
15464 if test "$supported" = "yes" ; then
15465 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15470 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
15473 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
15479 xorg_testset_save_CFLAGS="$CFLAGS"
15481 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15484 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15485 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15486 $as_echo_n "(cached) " >&6
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15492 if ac_fn_c_try_compile "$LINENO"; then :
15493 xorg_cv_cc_flag_unknown_warning_option=yes
15495 xorg_cv_cc_flag_unknown_warning_option=no
15497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15500 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15501 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15502 CFLAGS="$xorg_testset_save_CFLAGS"
15505 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15506 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15512 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15513 $as_echo_n "(cached) " >&6
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15519 if ac_fn_c_try_compile "$LINENO"; then :
15520 xorg_cv_cc_flag_unused_command_line_argument=yes
15522 xorg_cv_cc_flag_unused_command_line_argument=no
15524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15527 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15528 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15529 CFLAGS="$xorg_testset_save_CFLAGS"
15534 if test $found = "no" ; then
15535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15539 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15543 CFLAGS="$CFLAGS -Wimplicit"
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15546 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15547 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15548 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15549 $as_echo_n "(cached) " >&6
15551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15552 /* end confdefs.h. */
15562 if ac_fn_c_try_link "$LINENO"; then :
15563 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15565 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15567 rm -f core conftest.err conftest.$ac_objext \
15568 conftest$ac_exeext conftest.$ac_ext
15572 CFLAGS="$xorg_testset_save_CFLAGS"
15574 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15576 $as_echo "$supported" >&6; }
15577 if test "$supported" = "yes" ; then
15578 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15589 xorg_testset_save_CFLAGS="$CFLAGS"
15591 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15594 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15595 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15596 $as_echo_n "(cached) " >&6
15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15602 if ac_fn_c_try_compile "$LINENO"; then :
15603 xorg_cv_cc_flag_unknown_warning_option=yes
15605 xorg_cv_cc_flag_unknown_warning_option=no
15607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15610 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15611 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15612 CFLAGS="$xorg_testset_save_CFLAGS"
15615 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15621 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15622 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15623 $as_echo_n "(cached) " >&6
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15629 if ac_fn_c_try_compile "$LINENO"; then :
15630 xorg_cv_cc_flag_unused_command_line_argument=yes
15632 xorg_cv_cc_flag_unused_command_line_argument=no
15634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15637 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15638 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15639 CFLAGS="$xorg_testset_save_CFLAGS"
15644 if test $found = "no" ; then
15645 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15649 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15653 CFLAGS="$CFLAGS -Wnonnull"
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15656 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15657 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15658 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15659 $as_echo_n "(cached) " >&6
15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15662 /* end confdefs.h. */
15672 if ac_fn_c_try_link "$LINENO"; then :
15673 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15675 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15677 rm -f core conftest.err conftest.$ac_objext \
15678 conftest$ac_exeext conftest.$ac_ext
15682 CFLAGS="$xorg_testset_save_CFLAGS"
15684 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15686 $as_echo "$supported" >&6; }
15687 if test "$supported" = "yes" ; then
15688 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15699 xorg_testset_save_CFLAGS="$CFLAGS"
15701 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15704 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15705 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15706 $as_echo_n "(cached) " >&6
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15712 if ac_fn_c_try_compile "$LINENO"; then :
15713 xorg_cv_cc_flag_unknown_warning_option=yes
15715 xorg_cv_cc_flag_unknown_warning_option=no
15717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15720 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15721 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15722 CFLAGS="$xorg_testset_save_CFLAGS"
15725 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15726 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15731 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15732 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15733 $as_echo_n "(cached) " >&6
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736 /* end confdefs.h. */
15739 if ac_fn_c_try_compile "$LINENO"; then :
15740 xorg_cv_cc_flag_unused_command_line_argument=yes
15742 xorg_cv_cc_flag_unused_command_line_argument=no
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15747 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15748 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15749 CFLAGS="$xorg_testset_save_CFLAGS"
15754 if test $found = "no" ; then
15755 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15759 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15763 CFLAGS="$CFLAGS -Winit-self"
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15766 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15767 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15768 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15769 $as_echo_n "(cached) " >&6
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15782 if ac_fn_c_try_link "$LINENO"; then :
15783 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15785 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15787 rm -f core conftest.err conftest.$ac_objext \
15788 conftest$ac_exeext conftest.$ac_ext
15792 CFLAGS="$xorg_testset_save_CFLAGS"
15794 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15796 $as_echo "$supported" >&6; }
15797 if test "$supported" = "yes" ; then
15798 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15809 xorg_testset_save_CFLAGS="$CFLAGS"
15811 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15815 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15816 $as_echo_n "(cached) " >&6
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15822 if ac_fn_c_try_compile "$LINENO"; then :
15823 xorg_cv_cc_flag_unknown_warning_option=yes
15825 xorg_cv_cc_flag_unknown_warning_option=no
15827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15830 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15831 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15832 CFLAGS="$xorg_testset_save_CFLAGS"
15835 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15841 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15842 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15843 $as_echo_n "(cached) " >&6
15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h. */
15849 if ac_fn_c_try_compile "$LINENO"; then :
15850 xorg_cv_cc_flag_unused_command_line_argument=yes
15852 xorg_cv_cc_flag_unused_command_line_argument=no
15854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15857 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15858 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15859 CFLAGS="$xorg_testset_save_CFLAGS"
15864 if test $found = "no" ; then
15865 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15869 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15873 CFLAGS="$CFLAGS -Wmain"
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15876 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15877 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15878 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15879 $as_echo_n "(cached) " >&6
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15892 if ac_fn_c_try_link "$LINENO"; then :
15893 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15895 eval `$as_echo "$cacheid" | $as_tr_sh`=no
15897 rm -f core conftest.err conftest.$ac_objext \
15898 conftest$ac_exeext conftest.$ac_ext
15902 CFLAGS="$xorg_testset_save_CFLAGS"
15904 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15906 $as_echo "$supported" >&6; }
15907 if test "$supported" = "yes" ; then
15908 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15919 xorg_testset_save_CFLAGS="$CFLAGS"
15921 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15926 $as_echo_n "(cached) " >&6
15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15932 if ac_fn_c_try_compile "$LINENO"; then :
15933 xorg_cv_cc_flag_unknown_warning_option=yes
15935 xorg_cv_cc_flag_unknown_warning_option=no
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15941 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15942 CFLAGS="$xorg_testset_save_CFLAGS"
15945 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15953 $as_echo_n "(cached) " >&6
15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15956 /* end confdefs.h. */
15959 if ac_fn_c_try_compile "$LINENO"; then :
15960 xorg_cv_cc_flag_unused_command_line_argument=yes
15962 xorg_cv_cc_flag_unused_command_line_argument=no
15964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15968 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15969 CFLAGS="$xorg_testset_save_CFLAGS"
15974 if test $found = "no" ; then
15975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15983 CFLAGS="$CFLAGS -Wmissing-braces"
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15986 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15987 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15988 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15989 $as_echo_n "(cached) " >&6
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
16002 if ac_fn_c_try_link "$LINENO"; then :
16003 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16005 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16007 rm -f core conftest.err conftest.$ac_objext \
16008 conftest$ac_exeext conftest.$ac_ext
16012 CFLAGS="$xorg_testset_save_CFLAGS"
16014 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16016 $as_echo "$supported" >&6; }
16017 if test "$supported" = "yes" ; then
16018 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16029 xorg_testset_save_CFLAGS="$CFLAGS"
16031 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16036 $as_echo_n "(cached) " >&6
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16042 if ac_fn_c_try_compile "$LINENO"; then :
16043 xorg_cv_cc_flag_unknown_warning_option=yes
16045 xorg_cv_cc_flag_unknown_warning_option=no
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16051 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16052 CFLAGS="$xorg_testset_save_CFLAGS"
16055 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16056 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16063 $as_echo_n "(cached) " >&6
16065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h. */
16069 if ac_fn_c_try_compile "$LINENO"; then :
16070 xorg_cv_cc_flag_unused_command_line_argument=yes
16072 xorg_cv_cc_flag_unused_command_line_argument=no
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16078 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16079 CFLAGS="$xorg_testset_save_CFLAGS"
16084 if test $found = "no" ; then
16085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16089 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16093 CFLAGS="$CFLAGS -Wsequence-point"
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16096 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16097 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
16098 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16099 $as_echo_n "(cached) " >&6
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16112 if ac_fn_c_try_link "$LINENO"; then :
16113 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16115 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16117 rm -f core conftest.err conftest.$ac_objext \
16118 conftest$ac_exeext conftest.$ac_ext
16122 CFLAGS="$xorg_testset_save_CFLAGS"
16124 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16126 $as_echo "$supported" >&6; }
16127 if test "$supported" = "yes" ; then
16128 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16139 xorg_testset_save_CFLAGS="$CFLAGS"
16141 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16144 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16145 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16146 $as_echo_n "(cached) " >&6
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h. */
16152 if ac_fn_c_try_compile "$LINENO"; then :
16153 xorg_cv_cc_flag_unknown_warning_option=yes
16155 xorg_cv_cc_flag_unknown_warning_option=no
16157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16160 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16161 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16162 CFLAGS="$xorg_testset_save_CFLAGS"
16165 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16171 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16172 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16173 $as_echo_n "(cached) " >&6
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16179 if ac_fn_c_try_compile "$LINENO"; then :
16180 xorg_cv_cc_flag_unused_command_line_argument=yes
16182 xorg_cv_cc_flag_unused_command_line_argument=no
16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16187 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16188 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16189 CFLAGS="$xorg_testset_save_CFLAGS"
16194 if test $found = "no" ; then
16195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16199 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16203 CFLAGS="$CFLAGS -Wreturn-type"
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16206 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16207 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16208 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16209 $as_echo_n "(cached) " >&6
16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h. */
16222 if ac_fn_c_try_link "$LINENO"; then :
16223 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16225 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16227 rm -f core conftest.err conftest.$ac_objext \
16228 conftest$ac_exeext conftest.$ac_ext
16232 CFLAGS="$xorg_testset_save_CFLAGS"
16234 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16236 $as_echo "$supported" >&6; }
16237 if test "$supported" = "yes" ; then
16238 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16249 xorg_testset_save_CFLAGS="$CFLAGS"
16251 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16254 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16255 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16256 $as_echo_n "(cached) " >&6
16258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259 /* end confdefs.h. */
16262 if ac_fn_c_try_compile "$LINENO"; then :
16263 xorg_cv_cc_flag_unknown_warning_option=yes
16265 xorg_cv_cc_flag_unknown_warning_option=no
16267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16270 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16271 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16272 CFLAGS="$xorg_testset_save_CFLAGS"
16275 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16281 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16282 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16283 $as_echo_n "(cached) " >&6
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16289 if ac_fn_c_try_compile "$LINENO"; then :
16290 xorg_cv_cc_flag_unused_command_line_argument=yes
16292 xorg_cv_cc_flag_unused_command_line_argument=no
16294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16297 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16298 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16299 CFLAGS="$xorg_testset_save_CFLAGS"
16304 if test $found = "no" ; then
16305 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16309 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16313 CFLAGS="$CFLAGS -Wtrigraphs"
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16316 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16317 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16318 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16319 $as_echo_n "(cached) " >&6
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16332 if ac_fn_c_try_link "$LINENO"; then :
16333 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16335 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16337 rm -f core conftest.err conftest.$ac_objext \
16338 conftest$ac_exeext conftest.$ac_ext
16342 CFLAGS="$xorg_testset_save_CFLAGS"
16344 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16346 $as_echo "$supported" >&6; }
16347 if test "$supported" = "yes" ; then
16348 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16359 xorg_testset_save_CFLAGS="$CFLAGS"
16361 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16364 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16365 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16366 $as_echo_n "(cached) " >&6
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16372 if ac_fn_c_try_compile "$LINENO"; then :
16373 xorg_cv_cc_flag_unknown_warning_option=yes
16375 xorg_cv_cc_flag_unknown_warning_option=no
16377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16380 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16381 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16382 CFLAGS="$xorg_testset_save_CFLAGS"
16385 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16386 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16391 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16392 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16393 $as_echo_n "(cached) " >&6
16395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h. */
16399 if ac_fn_c_try_compile "$LINENO"; then :
16400 xorg_cv_cc_flag_unused_command_line_argument=yes
16402 xorg_cv_cc_flag_unused_command_line_argument=no
16404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16407 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16408 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16409 CFLAGS="$xorg_testset_save_CFLAGS"
16414 if test $found = "no" ; then
16415 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16419 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16423 CFLAGS="$CFLAGS -Warray-bounds"
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16426 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16427 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16428 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16429 $as_echo_n "(cached) " >&6
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16442 if ac_fn_c_try_link "$LINENO"; then :
16443 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16445 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16447 rm -f core conftest.err conftest.$ac_objext \
16448 conftest$ac_exeext conftest.$ac_ext
16452 CFLAGS="$xorg_testset_save_CFLAGS"
16454 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16456 $as_echo "$supported" >&6; }
16457 if test "$supported" = "yes" ; then
16458 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16469 xorg_testset_save_CFLAGS="$CFLAGS"
16471 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16474 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16475 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16476 $as_echo_n "(cached) " >&6
16478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479 /* end confdefs.h. */
16482 if ac_fn_c_try_compile "$LINENO"; then :
16483 xorg_cv_cc_flag_unknown_warning_option=yes
16485 xorg_cv_cc_flag_unknown_warning_option=no
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16490 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16491 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16492 CFLAGS="$xorg_testset_save_CFLAGS"
16495 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16501 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16502 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16503 $as_echo_n "(cached) " >&6
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16509 if ac_fn_c_try_compile "$LINENO"; then :
16510 xorg_cv_cc_flag_unused_command_line_argument=yes
16512 xorg_cv_cc_flag_unused_command_line_argument=no
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16517 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16518 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16519 CFLAGS="$xorg_testset_save_CFLAGS"
16524 if test $found = "no" ; then
16525 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16529 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16533 CFLAGS="$CFLAGS -Wwrite-strings"
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16536 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16537 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16538 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16539 $as_echo_n "(cached) " >&6
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h. */
16552 if ac_fn_c_try_link "$LINENO"; then :
16553 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16555 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16557 rm -f core conftest.err conftest.$ac_objext \
16558 conftest$ac_exeext conftest.$ac_ext
16562 CFLAGS="$xorg_testset_save_CFLAGS"
16564 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16566 $as_echo "$supported" >&6; }
16567 if test "$supported" = "yes" ; then
16568 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16579 xorg_testset_save_CFLAGS="$CFLAGS"
16581 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16586 $as_echo_n "(cached) " >&6
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h. */
16592 if ac_fn_c_try_compile "$LINENO"; then :
16593 xorg_cv_cc_flag_unknown_warning_option=yes
16595 xorg_cv_cc_flag_unknown_warning_option=no
16597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16601 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16602 CFLAGS="$xorg_testset_save_CFLAGS"
16605 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16606 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16613 $as_echo_n "(cached) " >&6
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16619 if ac_fn_c_try_compile "$LINENO"; then :
16620 xorg_cv_cc_flag_unused_command_line_argument=yes
16622 xorg_cv_cc_flag_unused_command_line_argument=no
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16628 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16629 CFLAGS="$xorg_testset_save_CFLAGS"
16634 if test $found = "no" ; then
16635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16643 CFLAGS="$CFLAGS -Waddress"
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16646 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16647 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16648 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16649 $as_echo_n "(cached) " >&6
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16662 if ac_fn_c_try_link "$LINENO"; then :
16663 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16665 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16667 rm -f core conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16672 CFLAGS="$xorg_testset_save_CFLAGS"
16674 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16676 $as_echo "$supported" >&6; }
16677 if test "$supported" = "yes" ; then
16678 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16689 xorg_testset_save_CFLAGS="$CFLAGS"
16691 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16694 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16695 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16696 $as_echo_n "(cached) " >&6
16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16702 if ac_fn_c_try_compile "$LINENO"; then :
16703 xorg_cv_cc_flag_unknown_warning_option=yes
16705 xorg_cv_cc_flag_unknown_warning_option=no
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16710 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16711 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16712 CFLAGS="$xorg_testset_save_CFLAGS"
16715 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16716 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16721 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16722 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16723 $as_echo_n "(cached) " >&6
16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h. */
16729 if ac_fn_c_try_compile "$LINENO"; then :
16730 xorg_cv_cc_flag_unused_command_line_argument=yes
16732 xorg_cv_cc_flag_unused_command_line_argument=no
16734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16737 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16738 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16739 CFLAGS="$xorg_testset_save_CFLAGS"
16744 if test $found = "no" ; then
16745 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16749 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16753 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16756 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16757 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16758 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16759 $as_echo_n "(cached) " >&6
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762 /* end confdefs.h. */
16772 if ac_fn_c_try_link "$LINENO"; then :
16773 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16775 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16777 rm -f core conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
16782 CFLAGS="$xorg_testset_save_CFLAGS"
16784 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16786 $as_echo "$supported" >&6; }
16787 if test "$supported" = "yes" ; then
16788 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16799 xorg_testset_save_CFLAGS="$CFLAGS"
16801 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16804 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16805 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16806 $as_echo_n "(cached) " >&6
16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16812 if ac_fn_c_try_compile "$LINENO"; then :
16813 xorg_cv_cc_flag_unknown_warning_option=yes
16815 xorg_cv_cc_flag_unknown_warning_option=no
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16820 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16821 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16822 CFLAGS="$xorg_testset_save_CFLAGS"
16825 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16826 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16831 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16832 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16833 $as_echo_n "(cached) " >&6
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16839 if ac_fn_c_try_compile "$LINENO"; then :
16840 xorg_cv_cc_flag_unused_command_line_argument=yes
16842 xorg_cv_cc_flag_unused_command_line_argument=no
16844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16847 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16848 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16849 CFLAGS="$xorg_testset_save_CFLAGS"
16854 if test $found = "no" ; then
16855 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16859 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16863 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16866 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16867 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16868 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16869 $as_echo_n "(cached) " >&6
16871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h. */
16882 if ac_fn_c_try_link "$LINENO"; then :
16883 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16885 eval `$as_echo "$cacheid" | $as_tr_sh`=no
16887 rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
16892 CFLAGS="$xorg_testset_save_CFLAGS"
16894 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16896 $as_echo "$supported" >&6; }
16897 if test "$supported" = "yes" ; then
16898 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16911 CWARNFLAGS="$BASE_CFLAGS"
16912 if test "x$GCC" = xyes ; then
16913 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16921 # Check whether --enable-strict-compilation was given.
16922 if test "${enable_strict_compilation+set}" = set; then :
16923 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16935 xorg_testset_save_CFLAGS="$CFLAGS"
16937 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16942 $as_echo_n "(cached) " >&6
16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945 /* end confdefs.h. */
16948 if ac_fn_c_try_compile "$LINENO"; then :
16949 xorg_cv_cc_flag_unknown_warning_option=yes
16951 xorg_cv_cc_flag_unknown_warning_option=no
16953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16957 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16958 CFLAGS="$xorg_testset_save_CFLAGS"
16961 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16962 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16969 $as_echo_n "(cached) " >&6
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16975 if ac_fn_c_try_compile "$LINENO"; then :
16976 xorg_cv_cc_flag_unused_command_line_argument=yes
16978 xorg_cv_cc_flag_unused_command_line_argument=no
16980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16984 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16985 CFLAGS="$xorg_testset_save_CFLAGS"
16990 if test $found = "no" ; then
16991 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16995 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16999 CFLAGS="$CFLAGS -pedantic"
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17002 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17003 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
17004 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17005 $as_echo_n "(cached) " >&6
17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h. */
17018 if ac_fn_c_try_link "$LINENO"; then :
17019 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17021 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17023 rm -f core conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17028 CFLAGS="$xorg_testset_save_CFLAGS"
17030 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17032 $as_echo "$supported" >&6; }
17033 if test "$supported" = "yes" ; then
17034 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17045 xorg_testset_save_CFLAGS="$CFLAGS"
17047 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17052 $as_echo_n "(cached) " >&6
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h. */
17058 if ac_fn_c_try_compile "$LINENO"; then :
17059 xorg_cv_cc_flag_unknown_warning_option=yes
17061 xorg_cv_cc_flag_unknown_warning_option=no
17063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17067 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17068 CFLAGS="$xorg_testset_save_CFLAGS"
17071 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17072 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17079 $as_echo_n "(cached) " >&6
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17085 if ac_fn_c_try_compile "$LINENO"; then :
17086 xorg_cv_cc_flag_unused_command_line_argument=yes
17088 xorg_cv_cc_flag_unused_command_line_argument=no
17090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17094 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17095 CFLAGS="$xorg_testset_save_CFLAGS"
17100 if test $found = "no" ; then
17101 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17105 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17109 CFLAGS="$CFLAGS -Werror"
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17112 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17113 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17114 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17115 $as_echo_n "(cached) " >&6
17117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h. */
17128 if ac_fn_c_try_link "$LINENO"; then :
17129 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17131 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17133 rm -f core conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17138 CFLAGS="$xorg_testset_save_CFLAGS"
17140 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17142 $as_echo "$supported" >&6; }
17143 if test "$supported" = "yes" ; then
17144 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17149 if test $found = "no" ; then
17150 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17154 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17158 CFLAGS="$CFLAGS -errwarn"
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17161 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17162 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17163 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17164 $as_echo_n "(cached) " >&6
17166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167 /* end confdefs.h. */
17177 if ac_fn_c_try_link "$LINENO"; then :
17178 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17180 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17182 rm -f core conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext conftest.$ac_ext
17187 CFLAGS="$xorg_testset_save_CFLAGS"
17189 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17191 $as_echo "$supported" >&6; }
17192 if test "$supported" = "yes" ; then
17193 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17200 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17201 # activate it with -Werror, so we add it here explicitly.
17207 xorg_testset_save_CFLAGS="$CFLAGS"
17209 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17212 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17213 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17214 $as_echo_n "(cached) " >&6
17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h. */
17220 if ac_fn_c_try_compile "$LINENO"; then :
17221 xorg_cv_cc_flag_unknown_warning_option=yes
17223 xorg_cv_cc_flag_unknown_warning_option=no
17225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17228 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17229 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17230 CFLAGS="$xorg_testset_save_CFLAGS"
17233 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17234 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17239 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17240 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17241 $as_echo_n "(cached) " >&6
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17247 if ac_fn_c_try_compile "$LINENO"; then :
17248 xorg_cv_cc_flag_unused_command_line_argument=yes
17250 xorg_cv_cc_flag_unused_command_line_argument=no
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17255 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17256 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17257 CFLAGS="$xorg_testset_save_CFLAGS"
17262 if test $found = "no" ; then
17263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17267 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17271 CFLAGS="$CFLAGS -Werror=attributes"
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17274 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17275 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17276 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17277 $as_echo_n "(cached) " >&6
17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17280 /* end confdefs.h. */
17290 if ac_fn_c_try_link "$LINENO"; then :
17291 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17293 eval `$as_echo "$cacheid" | $as_tr_sh`=no
17295 rm -f core conftest.err conftest.$ac_objext \
17296 conftest$ac_exeext conftest.$ac_ext
17300 CFLAGS="$xorg_testset_save_CFLAGS"
17302 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17304 $as_echo "$supported" >&6; }
17305 if test "$supported" = "yes" ; then
17306 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17313 if test "x$STRICT_COMPILE" = "xyes"; then
17314 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17315 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17323 cat >>confdefs.h <<_ACEOF
17324 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17327 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17328 if test "x$PVM" = "x"; then
17332 cat >>confdefs.h <<_ACEOF
17333 #define PACKAGE_VERSION_MINOR $PVM
17336 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17337 if test "x$PVP" = "x"; then
17341 cat >>confdefs.h <<_ACEOF
17342 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17347 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17348 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17349 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17350 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17355 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17356 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17357 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17358 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17359 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17366 if test x$APP_MAN_SUFFIX = x ; then
17369 if test x$APP_MAN_DIR = x ; then
17370 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17373 if test x$LIB_MAN_SUFFIX = x ; then
17376 if test x$LIB_MAN_DIR = x ; then
17377 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17380 if test x$FILE_MAN_SUFFIX = x ; then
17382 solaris*) FILE_MAN_SUFFIX=4 ;;
17383 *) FILE_MAN_SUFFIX=5 ;;
17386 if test x$FILE_MAN_DIR = x ; then
17387 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17390 if test x$MISC_MAN_SUFFIX = x ; then
17392 solaris*) MISC_MAN_SUFFIX=5 ;;
17393 *) MISC_MAN_SUFFIX=7 ;;
17396 if test x$MISC_MAN_DIR = x ; then
17397 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17400 if test x$DRIVER_MAN_SUFFIX = x ; then
17402 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17403 *) DRIVER_MAN_SUFFIX=4 ;;
17406 if test x$DRIVER_MAN_DIR = x ; then
17407 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17410 if test x$ADMIN_MAN_SUFFIX = x ; then
17412 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17413 *) ADMIN_MAN_SUFFIX=8 ;;
17416 if test x$ADMIN_MAN_DIR = x ; then
17417 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17434 XORG_MAN_PAGE="X Version 11"
17437 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17438 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17439 -e 's|__xservername__|Xorg|g' \
17440 -e 's|__xconfigfile__|xorg.conf|g' \
17441 -e 's|__projectroot__|\$(prefix)|g' \
17442 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17443 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17444 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17445 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17446 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17447 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17448 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17452 # Check whether --enable-silent-rules was given.
17453 if test "${enable_silent_rules+set}" = set; then :
17454 enableval=$enable_silent_rules;
17457 case $enable_silent_rules in
17458 yes) AM_DEFAULT_VERBOSITY=0;;
17459 no) AM_DEFAULT_VERBOSITY=1;;
17460 *) AM_DEFAULT_VERBOSITY=0;;
17467 # Check whether --enable-docs was given.
17468 if test "${enable_docs+set}" = set; then :
17469 enableval=$enable_docs; build_docs=$enableval
17475 if test x$build_docs = xyes; then
17477 ENABLE_DOCS_FALSE='#'
17479 ENABLE_DOCS_TRUE='#'
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
17484 $as_echo_n "checking whether to build documentation... " >&6; }
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
17486 $as_echo "$build_docs" >&6; }
17490 # Check whether --enable-specs was given.
17491 if test "${enable_specs+set}" = set; then :
17492 enableval=$enable_specs; build_specs=$enableval
17498 if test x$build_specs = xyes; then
17500 ENABLE_SPECS_FALSE='#'
17502 ENABLE_SPECS_TRUE='#'
17503 ENABLE_SPECS_FALSE=
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
17507 $as_echo_n "checking whether to build functional specifications... " >&6; }
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
17509 $as_echo "$build_specs" >&6; }
17515 # Check whether --with-xmlto was given.
17516 if test "${with_xmlto+set}" = set; then :
17517 withval=$with_xmlto; use_xmlto=$withval
17524 if test "x$use_xmlto" = x"auto"; then
17525 # Extract the first word of "xmlto", so it can be a program name with args.
17526 set dummy xmlto; ac_word=$2
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17528 $as_echo_n "checking for $ac_word... " >&6; }
17529 if ${ac_cv_path_XMLTO+:} false; then :
17530 $as_echo_n "(cached) " >&6
17534 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17538 for as_dir in $PATH
17541 test -z "$as_dir" && as_dir=.
17542 for ac_exec_ext in '' $ac_executable_extensions; do
17543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17544 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17555 XMLTO=$ac_cv_path_XMLTO
17556 if test -n "$XMLTO"; then
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17558 $as_echo "$XMLTO" >&6; }
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17561 $as_echo "no" >&6; }
17565 if test "x$XMLTO" = "x"; then
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17567 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17572 elif test "x$use_xmlto" = x"yes" ; then
17573 # Extract the first word of "xmlto", so it can be a program name with args.
17574 set dummy xmlto; ac_word=$2
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17576 $as_echo_n "checking for $ac_word... " >&6; }
17577 if ${ac_cv_path_XMLTO+:} false; then :
17578 $as_echo_n "(cached) " >&6
17582 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17586 for as_dir in $PATH
17589 test -z "$as_dir" && as_dir=.
17590 for ac_exec_ext in '' $ac_executable_extensions; do
17591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17592 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17603 XMLTO=$ac_cv_path_XMLTO
17604 if test -n "$XMLTO"; then
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17606 $as_echo "$XMLTO" >&6; }
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17609 $as_echo "no" >&6; }
17613 if test "x$XMLTO" = "x"; then
17614 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
17617 elif test "x$use_xmlto" = x"no" ; then
17618 if test "x$XMLTO" != "x"; then
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
17620 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
17624 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
17627 # Test for a minimum version of xmlto, if provided.
17628 if test "$have_xmlto" = yes; then
17629 # scrape the xmlto version
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
17631 $as_echo_n "checking the xmlto version... " >&6; }
17632 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
17634 $as_echo "$xmlto_version" >&6; }
17635 as_arg_v1=$xmlto_version
17637 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17640 if test "x$use_xmlto" = xauto; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
17642 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
17645 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
17656 # Test for the ability of xmlto to generate a text target
17658 cat > conftest.xml << "EOF"
17660 if test "$have_xmlto" = yes; then :
17661 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
17662 have_xmlto_text=yes
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
17665 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
17669 if test $have_xmlto_text = yes; then
17670 HAVE_XMLTO_TEXT_TRUE=
17671 HAVE_XMLTO_TEXT_FALSE='#'
17673 HAVE_XMLTO_TEXT_TRUE='#'
17674 HAVE_XMLTO_TEXT_FALSE=
17677 if test "$have_xmlto" = yes; then
17679 HAVE_XMLTO_FALSE='#'
17681 HAVE_XMLTO_TRUE='#'
17690 # Check whether --with-fop was given.
17691 if test "${with_fop+set}" = set; then :
17692 withval=$with_fop; use_fop=$withval
17699 if test "x$use_fop" = x"auto"; then
17700 # Extract the first word of "fop", so it can be a program name with args.
17701 set dummy fop; ac_word=$2
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17703 $as_echo_n "checking for $ac_word... " >&6; }
17704 if ${ac_cv_path_FOP+:} false; then :
17705 $as_echo_n "(cached) " >&6
17709 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17713 for as_dir in $PATH
17716 test -z "$as_dir" && as_dir=.
17717 for ac_exec_ext in '' $ac_executable_extensions; do
17718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17719 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17730 FOP=$ac_cv_path_FOP
17731 if test -n "$FOP"; then
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17733 $as_echo "$FOP" >&6; }
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17736 $as_echo "no" >&6; }
17740 if test "x$FOP" = "x"; then
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
17742 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
17747 elif test "x$use_fop" = x"yes" ; then
17748 # Extract the first word of "fop", so it can be a program name with args.
17749 set dummy fop; ac_word=$2
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17751 $as_echo_n "checking for $ac_word... " >&6; }
17752 if ${ac_cv_path_FOP+:} false; then :
17753 $as_echo_n "(cached) " >&6
17757 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17761 for as_dir in $PATH
17764 test -z "$as_dir" && as_dir=.
17765 for ac_exec_ext in '' $ac_executable_extensions; do
17766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17767 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17778 FOP=$ac_cv_path_FOP
17779 if test -n "$FOP"; then
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17781 $as_echo "$FOP" >&6; }
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17784 $as_echo "no" >&6; }
17788 if test "x$FOP" = "x"; then
17789 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
17792 elif test "x$use_fop" = x"no" ; then
17793 if test "x$FOP" != "x"; then
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
17795 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
17799 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
17802 # Test for a minimum version of fop, if provided.
17804 if test "$have_fop" = yes; then
17815 # Preserves the interface, should it be implemented later
17819 # Check whether --with-xsltproc was given.
17820 if test "${with_xsltproc+set}" = set; then :
17821 withval=$with_xsltproc; use_xsltproc=$withval
17828 if test "x$use_xsltproc" = x"auto"; then
17829 # Extract the first word of "xsltproc", so it can be a program name with args.
17830 set dummy xsltproc; ac_word=$2
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17832 $as_echo_n "checking for $ac_word... " >&6; }
17833 if ${ac_cv_path_XSLTPROC+:} false; then :
17834 $as_echo_n "(cached) " >&6
17838 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17842 for as_dir in $PATH
17845 test -z "$as_dir" && as_dir=.
17846 for ac_exec_ext in '' $ac_executable_extensions; do
17847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17848 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
17849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17859 XSLTPROC=$ac_cv_path_XSLTPROC
17860 if test -n "$XSLTPROC"; then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17862 $as_echo "$XSLTPROC" >&6; }
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865 $as_echo "no" >&6; }
17869 if test "x$XSLTPROC" = "x"; then
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
17871 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
17876 elif test "x$use_xsltproc" = x"yes" ; then
17877 # Extract the first word of "xsltproc", so it can be a program name with args.
17878 set dummy xsltproc; ac_word=$2
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17880 $as_echo_n "checking for $ac_word... " >&6; }
17881 if ${ac_cv_path_XSLTPROC+:} false; then :
17882 $as_echo_n "(cached) " >&6
17886 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17890 for as_dir in $PATH
17893 test -z "$as_dir" && as_dir=.
17894 for ac_exec_ext in '' $ac_executable_extensions; do
17895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17896 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
17897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17907 XSLTPROC=$ac_cv_path_XSLTPROC
17908 if test -n "$XSLTPROC"; then
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17910 $as_echo "$XSLTPROC" >&6; }
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17913 $as_echo "no" >&6; }
17917 if test "x$XSLTPROC" = "x"; then
17918 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
17921 elif test "x$use_xsltproc" = x"no" ; then
17922 if test "x$XSLTPROC" != "x"; then
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
17924 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
17928 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
17931 if test "$have_xsltproc" = yes; then
17932 HAVE_XSLTPROC_TRUE=
17933 HAVE_XSLTPROC_FALSE='#'
17935 HAVE_XSLTPROC_TRUE='#'
17936 HAVE_XSLTPROC_FALSE=
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
17942 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
17944 if test -n "$PKG_CONFIG" && \
17945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
17946 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
17948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17949 test $ac_status = 0; }; then
17950 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
17956 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
17957 # the path and the name of the doc stylesheet
17958 if test "x$XORG_SGML_PATH" != "x" ; then
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
17960 $as_echo "$XORG_SGML_PATH" >&6; }
17961 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
17962 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965 $as_echo "no" >&6; }
17971 if test "x$XSL_STYLESHEET" != "x"; then
17972 HAVE_STYLESHEETS_TRUE=
17973 HAVE_STYLESHEETS_FALSE='#'
17975 HAVE_STYLESHEETS_TRUE='#'
17976 HAVE_STYLESHEETS_FALSE=
17981 # Obtain compiler/linker options for depedencies
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICE" >&5
17985 $as_echo_n "checking for ICE... " >&6; }
17987 if test -n "$ICE_CFLAGS"; then
17988 pkg_cv_ICE_CFLAGS="$ICE_CFLAGS"
17989 elif test -n "$PKG_CONFIG"; then
17990 if test -n "$PKG_CONFIG" && \
17991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans\""; } >&5
17992 ($PKG_CONFIG --exists --print-errors "xproto xtrans") 2>&5
17994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17995 test $ac_status = 0; }; then
17996 pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans" 2>/dev/null`
18003 if test -n "$ICE_LIBS"; then
18004 pkg_cv_ICE_LIBS="$ICE_LIBS"
18005 elif test -n "$PKG_CONFIG"; then
18006 if test -n "$PKG_CONFIG" && \
18007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans\""; } >&5
18008 ($PKG_CONFIG --exists --print-errors "xproto xtrans") 2>&5
18010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18011 test $ac_status = 0; }; then
18012 pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto xtrans" 2>/dev/null`
18022 if test $pkg_failed = yes; then
18024 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18025 _pkg_short_errors_supported=yes
18027 _pkg_short_errors_supported=no
18029 if test $_pkg_short_errors_supported = yes; then
18030 ICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto xtrans" 2>&1`
18032 ICE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto xtrans" 2>&1`
18034 # Put the nasty error message in config.log where it belongs
18035 echo "$ICE_PKG_ERRORS" >&5
18037 as_fn_error $? "Package requirements (xproto xtrans) were not met:
18041 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18042 installed software in a non-standard prefix.
18044 Alternatively, you may set the environment variables ICE_CFLAGS
18045 and ICE_LIBS to avoid the need to call pkg-config.
18046 See the pkg-config man page for more details.
18048 elif test $pkg_failed = untried; then
18049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18051 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18052 is in your PATH or set the PKG_CONFIG environment variable to the full
18053 path to pkg-config.
18055 Alternatively, you may set the environment variables ICE_CFLAGS
18056 and ICE_LIBS to avoid the need to call pkg-config.
18057 See the pkg-config man page for more details.
18059 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18060 See \`config.log' for more details" "$LINENO" 5; }
18062 ICE_CFLAGS=$pkg_cv_ICE_CFLAGS
18063 ICE_LIBS=$pkg_cv_ICE_LIBS
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18065 $as_echo "yes" >&6; }
18069 # Transport selection macro from xtrans.m4
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18071 $as_echo_n "checking return type of signal handlers... " >&6; }
18072 if ${ac_cv_type_signal+:} false; then :
18073 $as_echo_n "(cached) " >&6
18075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18076 /* end confdefs.h. */
18077 #include <sys/types.h>
18078 #include <signal.h>
18083 return *(signal (0, 0)) (0) == 1;
18088 if ac_fn_c_try_compile "$LINENO"; then :
18089 ac_cv_type_signal=int
18091 ac_cv_type_signal=void
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18096 $as_echo "$ac_cv_type_signal" >&6; }
18098 cat >>confdefs.h <<_ACEOF
18099 #define RETSIGTYPE $ac_cv_type_signal
18107 mingw*) unixdef="no" ;;
18108 *) unixdef="yes" ;;
18110 # Check whether --enable-unix-transport was given.
18111 if test "${enable_unix_transport+set}" = set; then :
18112 enableval=$enable_unix_transport; UNIXCONN=$enableval
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
18118 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
18119 if test "$UNIXCONN" = "yes"; then
18121 $as_echo "#define UNIXCONN 1" >>confdefs.h
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
18125 $as_echo "$UNIXCONN" >&6; }
18126 # Check whether --enable-tcp-transport was given.
18127 if test "${enable_tcp_transport+set}" = set; then :
18128 enableval=$enable_tcp_transport; TCPCONN=$enableval
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
18134 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
18136 $as_echo "$TCPCONN" >&6; }
18137 if test "$TCPCONN" = "yes"; then
18139 $as_echo "#define TCPCONN 1" >>confdefs.h
18142 # SVR4 hides these in libraries other than libc
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18144 $as_echo_n "checking for library containing socket... " >&6; }
18145 if ${ac_cv_search_socket+:} false; then :
18146 $as_echo_n "(cached) " >&6
18148 ac_func_search_save_LIBS=$LIBS
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18152 /* Override any GCC internal prototype to avoid an error.
18153 Use char because int might match the return type of a GCC
18154 builtin and then its argument prototype would still apply. */
18167 for ac_lib in '' socket; do
18168 if test -z "$ac_lib"; then
18169 ac_res="none required"
18172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18174 if ac_fn_c_try_link "$LINENO"; then :
18175 ac_cv_search_socket=$ac_res
18177 rm -f core conftest.err conftest.$ac_objext \
18179 if ${ac_cv_search_socket+:} false; then :
18183 if ${ac_cv_search_socket+:} false; then :
18186 ac_cv_search_socket=no
18188 rm conftest.$ac_ext
18189 LIBS=$ac_func_search_save_LIBS
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18192 $as_echo "$ac_cv_search_socket" >&6; }
18193 ac_res=$ac_cv_search_socket
18194 if test "$ac_res" != no; then :
18195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18200 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18201 if ${ac_cv_search_gethostbyname+:} false; then :
18202 $as_echo_n "(cached) " >&6
18204 ac_func_search_save_LIBS=$LIBS
18205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h. */
18208 /* Override any GCC internal prototype to avoid an error.
18209 Use char because int might match the return type of a GCC
18210 builtin and then its argument prototype would still apply. */
18214 char gethostbyname ();
18218 return gethostbyname ();
18223 for ac_lib in '' nsl; do
18224 if test -z "$ac_lib"; then
18225 ac_res="none required"
18228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18230 if ac_fn_c_try_link "$LINENO"; then :
18231 ac_cv_search_gethostbyname=$ac_res
18233 rm -f core conftest.err conftest.$ac_objext \
18235 if ${ac_cv_search_gethostbyname+:} false; then :
18239 if ${ac_cv_search_gethostbyname+:} false; then :
18242 ac_cv_search_gethostbyname=no
18244 rm conftest.$ac_ext
18245 LIBS=$ac_func_search_save_LIBS
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18248 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18249 ac_res=$ac_cv_search_gethostbyname
18250 if test "$ac_res" != no; then :
18251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18255 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
18257 $as_echo_n "checking for main in -lws2_32... " >&6; }
18258 if ${ac_cv_lib_ws2_32_main+:} false; then :
18259 $as_echo_n "(cached) " >&6
18261 ac_check_lib_save_LIBS=$LIBS
18262 LIBS="-lws2_32 $LIBS"
18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h. */
18275 if ac_fn_c_try_link "$LINENO"; then :
18276 ac_cv_lib_ws2_32_main=yes
18278 ac_cv_lib_ws2_32_main=no
18280 rm -f core conftest.err conftest.$ac_objext \
18281 conftest$ac_exeext conftest.$ac_ext
18282 LIBS=$ac_check_lib_save_LIBS
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
18285 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
18286 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
18287 cat >>confdefs.h <<_ACEOF
18288 #define HAVE_LIBWS2_32 1
18291 LIBS="-lws2_32 $LIBS"
18294 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
18298 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
18299 # Check whether --enable-ipv6 was given.
18300 if test "${enable_ipv6+set}" = set; then :
18301 enableval=$enable_ipv6; IPV6CONN=$enableval
18303 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18304 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
18313 $as_echo_n "checking if IPv6 support should be built... " >&6; }
18314 if test "$IPV6CONN" = "yes"; then
18316 $as_echo "#define IPv6 1" >>confdefs.h
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
18320 $as_echo "$IPV6CONN" >&6; }
18322 # 4.3BSD-Reno added a new member to struct sockaddr_in
18323 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
18324 #include <sys/types.h>
18325 #include <sys/socket.h>
18326 #include <netinet/in.h>
18329 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
18331 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
18336 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
18337 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
18338 $ac_includes_default
18339 #include <sys/socket.h>
18341 if test "x$ac_cv_type_socklen_t" = xyes; then :
18343 cat >>confdefs.h <<_ACEOF
18344 #define HAVE_SOCKLEN_T 1
18354 solaris*|sco*|sysv4*) localdef="yes" ;;
18355 *) localdef="no" ;;
18357 # Check whether --enable-local-transport was given.
18358 if test "${enable_local_transport+set}" = set; then :
18359 enableval=$enable_local_transport; LOCALCONN=$enableval
18361 LOCALCONN=$localdef
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
18365 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
18367 $as_echo "$LOCALCONN" >&6; }
18368 if test "$LOCALCONN" = "yes"; then
18370 $as_echo "#define LOCALCONN 1" >>confdefs.h
18376 $as_echo "#define ICE_t 1" >>confdefs.h
18379 # Checks for library functions.
18380 for ac_func in asprintf
18382 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
18383 if test "x$ac_cv_func_asprintf" = xyes; then :
18384 cat >>confdefs.h <<_ACEOF
18385 #define HAVE_ASPRINTF 1
18392 # Allow checking code with lint, sparse, etc.
18398 # Check whether --with-lint was given.
18399 if test "${with_lint+set}" = set; then :
18400 withval=$with_lint; use_lint=$withval
18406 # Obtain platform specific info like program name and options
18407 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
18409 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18411 lint_options="-badflag"
18413 *freebsd* | *netbsd*)
18415 lint_options="-u -b"
18419 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18423 # Test for the presence of the program (either guessed by the code or spelled out by the user)
18424 if test "x$use_lint" = x"yes" ; then
18425 # Extract the first word of "$lint_name", so it can be a program name with args.
18426 set dummy $lint_name; ac_word=$2
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18428 $as_echo_n "checking for $ac_word... " >&6; }
18429 if ${ac_cv_path_LINT+:} false; then :
18430 $as_echo_n "(cached) " >&6
18434 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18438 for as_dir in $PATH
18441 test -z "$as_dir" && as_dir=.
18442 for ac_exec_ext in '' $ac_executable_extensions; do
18443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18444 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18455 LINT=$ac_cv_path_LINT
18456 if test -n "$LINT"; then
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18458 $as_echo "$LINT" >&6; }
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18461 $as_echo "no" >&6; }
18465 if test "x$LINT" = "x"; then
18466 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18468 elif test "x$use_lint" = x"no" ; then
18469 if test "x$LINT" != "x"; then
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18471 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18474 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18477 # User supplied flags override default flags
18478 if test "x$LINT_FLAGS" != "x"; then
18479 lint_options=$LINT_FLAGS
18482 LINT_FLAGS=$lint_options
18484 if test "x$LINT" != x; then
18496 # Check whether --enable-lint-library was given.
18497 if test "${enable_lint_library+set}" = set; then :
18498 enableval=$enable_lint_library; make_lint_lib=$enableval
18504 if test "x$make_lint_lib" = x"yes" ; then
18505 LINTLIB=llib-lICE.ln
18506 if test "x$LINT" = "x"; then
18507 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
18509 elif test "x$make_lint_lib" != x"no" ; then
18510 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
18514 if test x$make_lint_lib != xno; then
18515 MAKE_LINT_LIB_TRUE=
18516 MAKE_LINT_LIB_FALSE='#'
18518 MAKE_LINT_LIB_TRUE='#'
18519 MAKE_LINT_LIB_FALSE=
18524 LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}"
18526 ac_config_files="$ac_config_files Makefile doc/Makefile specs/Makefile src/Makefile ice.pc"
18528 cat >confcache <<\_ACEOF
18529 # This file is a shell script that caches the results of configure
18530 # tests run on this system so they can be shared between configure
18531 # scripts and configure runs, see configure's option --config-cache.
18532 # It is not useful on other systems. If it contains results you don't
18533 # want to keep, you may remove or edit it.
18535 # config.status only pays attention to the cache file if you give it
18536 # the --recheck option to rerun configure.
18538 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18539 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18540 # following values.
18544 # The following way of writing the cache mishandles newlines in values,
18545 # but we know of no workaround that is simple, portable, and efficient.
18546 # So, we kill variables containing newlines.
18547 # Ultrix sh set writes to stderr and can't be redirected directly,
18548 # and sets the high bit in the cache file unless we assign to the vars.
18550 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18551 eval ac_val=\$$ac_var
18555 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18556 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18559 _ | IFS | as_nl) ;; #(
18560 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18561 *) { eval $ac_var=; unset $ac_var;} ;;
18567 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18568 *${as_nl}ac_space=\ *)
18569 # `set' does not quote correctly, so add quotes: double-quote
18570 # substitution turns \\\\ into \\, and sed turns \\ into \.
18573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18576 # `set' quotes correctly as required by POSIX, so do not add quotes.
18577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18586 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18588 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18590 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18591 if test -w "$cache_file"; then
18592 if test "x$cache_file" != "x/dev/null"; then
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18594 $as_echo "$as_me: updating cache $cache_file" >&6;}
18595 if test ! -f "$cache_file" || test -h "$cache_file"; then
18596 cat confcache >"$cache_file"
18598 case $cache_file in #(
18600 mv -f confcache "$cache_file"$$ &&
18601 mv -f "$cache_file"$$ "$cache_file" ;; #(
18603 mv -f confcache "$cache_file" ;;
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18609 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18615 # Let make expand exec_prefix.
18616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18618 DEFS=-DHAVE_CONFIG_H
18623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18624 # 1. Remove the extension, and $U if already installed.
18625 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18626 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18627 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18628 # will be set to the directory where LIBOBJS objects are built.
18629 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18630 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18632 LIBOBJS=$ac_libobjs
18634 LTLIBOBJS=$ac_ltlibobjs
18637 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18638 as_fn_error $? "conditional \"AMDEP\" was never defined.
18639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18641 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18642 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18645 if test -n "$EXEEXT"; then
18647 am__EXEEXT_FALSE='#'
18649 am__EXEEXT_TRUE='#'
18653 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18654 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18657 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
18658 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
18659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18661 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
18662 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
18663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18665 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
18666 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
18667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18669 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
18670 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
18671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18673 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
18674 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
18675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18677 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
18678 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
18679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18681 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
18682 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
18683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18685 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18686 as_fn_error $? "conditional \"LINT\" was never defined.
18687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18689 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
18690 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
18691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18694 : "${CONFIG_STATUS=./config.status}"
18696 ac_clean_files_save=$ac_clean_files
18697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18699 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18701 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18703 # Generated by $as_me.
18704 # Run this file to recreate the current configuration.
18705 # Compiler output produced by configure, useful for debugging
18706 # configure, is in config.log if it exists.
18709 ac_cs_recheck=false
18712 SHELL=\${CONFIG_SHELL-$SHELL}
18715 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18716 ## -------------------- ##
18717 ## M4sh Initialization. ##
18718 ## -------------------- ##
18720 # Be more Bourne compatible
18721 DUALCASE=1; export DUALCASE # for MKS sh
18722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18725 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18726 # is contrary to our usage. Disable this feature.
18727 alias -g '${1+"$@"}'='"$@"'
18728 setopt NO_GLOB_SUBST
18730 case `(set -o) 2>/dev/null` in #(
18742 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18743 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18744 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18746 # Prefer a ksh shell builtin over an external printf program on Solaris,
18747 # but without wasting forks for bash or zsh.
18748 if test -z "$BASH_VERSION$ZSH_VERSION" \
18749 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18750 as_echo='print -r --'
18751 as_echo_n='print -rn --'
18752 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18753 as_echo='printf %s\n'
18754 as_echo_n='printf %s'
18756 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18757 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18758 as_echo_n='/usr/ucb/echo -n'
18760 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18761 as_echo_n_body='eval
18765 expr "X$arg" : "X\\(.*\\)$as_nl";
18766 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18768 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18770 export as_echo_n_body
18771 as_echo_n='sh -c $as_echo_n_body as_echo'
18773 export as_echo_body
18774 as_echo='sh -c $as_echo_body as_echo'
18777 # The user is always right.
18778 if test "${PATH_SEPARATOR+set}" != set; then
18780 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18781 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18788 # We need space, tab and new line, in precisely that order. Quoting is
18789 # there to prevent editors from complaining about space-tab.
18790 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18791 # splitting by setting IFS to empty value.)
18794 # Find who we are. Look in the path if we contain no directory separator.
18797 *[\\/]* ) as_myself=$0 ;;
18798 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18799 for as_dir in $PATH
18802 test -z "$as_dir" && as_dir=.
18803 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18809 # We did not find ourselves, most probably we were run as `sh COMMAND'
18810 # in which case we are not to be found in the path.
18811 if test "x$as_myself" = x; then
18814 if test ! -f "$as_myself"; then
18815 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18819 # Unset variables that we do not need and which cause bugs (e.g. in
18820 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18821 # suppresses any "Segmentation fault" message there. '((' could
18822 # trigger a bug in pdksh 5.2.14.
18823 for as_var in BASH_ENV ENV MAIL MAILPATH
18824 do eval test x\${$as_var+set} = xset \
18825 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18838 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18841 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18842 # ----------------------------------------
18843 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18844 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18845 # script with STATUS, using 1 if that was 0.
18848 as_status=$1; test $as_status -eq 0 && as_status=1
18850 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18851 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18853 $as_echo "$as_me: error: $2" >&2
18854 as_fn_exit $as_status
18858 # as_fn_set_status STATUS
18859 # -----------------------
18860 # Set $? to STATUS, without forking.
18861 as_fn_set_status ()
18864 } # as_fn_set_status
18866 # as_fn_exit STATUS
18867 # -----------------
18868 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18872 as_fn_set_status $1
18878 # Portably unset VAR.
18881 { eval $1=; unset $1;}
18883 as_unset=as_fn_unset
18884 # as_fn_append VAR VALUE
18885 # ----------------------
18886 # Append the text in VALUE to the end of the definition contained in VAR. Take
18887 # advantage of any shell optimizations that allow amortized linear growth over
18888 # repeated appends, instead of the typical quadratic growth present in naive
18890 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18891 eval 'as_fn_append ()
18902 # as_fn_arith ARG...
18903 # ------------------
18904 # Perform arithmetic evaluation on the ARGs, and store the result in the
18905 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18906 # must be portable across $(()) and expr.
18907 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18908 eval 'as_fn_arith ()
18915 as_val=`expr "$@" || test $? -eq 1`
18920 if expr a : '\(a\)' >/dev/null 2>&1 &&
18921 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18927 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18928 as_basename=basename
18933 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18939 as_me=`$as_basename -- "$0" ||
18940 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18941 X"$0" : 'X\(//\)$' \| \
18942 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18944 sed '/^.*\/\([^/][^/]*\)\/*$/{
18958 # Avoid depending upon Character Ranges.
18959 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18960 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18961 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18962 as_cr_digits='0123456789'
18963 as_cr_alnum=$as_cr_Letters$as_cr_digits
18965 ECHO_C= ECHO_N= ECHO_T=
18966 case `echo -n x` in #(((((
18968 case `echo 'xy\c'` in
18969 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18971 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18978 rm -f conf$$ conf$$.exe conf$$.file
18979 if test -d conf$$.dir; then
18980 rm -f conf$$.dir/conf$$.file
18983 mkdir conf$$.dir 2>/dev/null
18985 if (echo >conf$$.file) 2>/dev/null; then
18986 if ln -s conf$$.file conf$$ 2>/dev/null; then
18988 # ... but there are two gotchas:
18989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18991 # In both cases, we have to default to `cp -p'.
18992 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18994 elif ln conf$$.file conf$$ 2>/dev/null; then
19002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19003 rmdir conf$$.dir 2>/dev/null
19008 # Create "$as_dir" as a directory, including parents if necessary.
19013 -*) as_dir=./$as_dir;;
19015 test -d "$as_dir" || eval $as_mkdir_p || {
19019 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19020 *) as_qdir=$as_dir;;
19022 as_dirs="'$as_qdir' $as_dirs"
19023 as_dir=`$as_dirname -- "$as_dir" ||
19024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19025 X"$as_dir" : 'X\(//\)[^/]' \| \
19026 X"$as_dir" : 'X\(//\)$' \| \
19027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19028 $as_echo X"$as_dir" |
19029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19033 /^X\(\/\/\)[^/].*/{
19046 test -d "$as_dir" && break
19048 test -z "$as_dirs" || eval "mkdir $as_dirs"
19049 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19053 if mkdir -p . 2>/dev/null; then
19054 as_mkdir_p='mkdir -p "$as_dir"'
19056 test -d ./-p && rmdir ./-p
19060 if test -x / >/dev/null 2>&1; then
19061 as_test_x='test -x'
19063 if ls -dL / >/dev/null 2>&1; then
19070 if test -d "$1"; then
19076 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19077 ???[sx]*):;;*)false;;esac;fi
19081 as_executable_p=$as_test_x
19083 # Sed expression to map a string onto a valid CPP name.
19084 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19086 # Sed expression to map a string onto a valid variable name.
19087 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19091 ## ----------------------------------- ##
19092 ## Main body of $CONFIG_STATUS script. ##
19093 ## ----------------------------------- ##
19095 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19098 # Save the log message, to keep $0 and so on meaningful, and to
19099 # report actual input values of CONFIG_FILES etc. instead of their
19100 # values after options handling.
19102 This file was extended by libICE $as_me 1.0.8, which was
19103 generated by GNU Autoconf 2.68. Invocation command line was
19105 CONFIG_FILES = $CONFIG_FILES
19106 CONFIG_HEADERS = $CONFIG_HEADERS
19107 CONFIG_LINKS = $CONFIG_LINKS
19108 CONFIG_COMMANDS = $CONFIG_COMMANDS
19111 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19116 case $ac_config_files in *"
19117 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19120 case $ac_config_headers in *"
19121 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19126 # Files that config.status was made for.
19127 config_files="$ac_config_files"
19128 config_headers="$ac_config_headers"
19129 config_commands="$ac_config_commands"
19133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19135 \`$as_me' instantiates files and other configuration actions
19136 from templates according to the current configuration. Unless the files
19137 and actions are specified as TAGs, all are instantiated by default.
19139 Usage: $0 [OPTION]... [TAG]...
19141 -h, --help print this help, then exit
19142 -V, --version print version number and configuration settings, then exit
19143 --config print configuration, then exit
19144 -q, --quiet, --silent
19145 do not print progress messages
19146 -d, --debug don't remove temporary files
19147 --recheck update $as_me by reconfiguring in the same conditions
19148 --file=FILE[:TEMPLATE]
19149 instantiate the configuration file FILE
19150 --header=FILE[:TEMPLATE]
19151 instantiate the configuration header FILE
19153 Configuration files:
19156 Configuration headers:
19159 Configuration commands:
19162 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19166 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19168 libICE config.status 1.0.8
19169 configured by $0, generated by GNU Autoconf 2.68,
19170 with options \\"\$ac_cs_config\\"
19172 Copyright (C) 2010 Free Software Foundation, Inc.
19173 This config.status script is free software; the Free Software Foundation
19174 gives unlimited permission to copy, distribute and modify it."
19181 test -n "\$AWK" || AWK=awk
19184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19185 # The default lists apply if the user does not specify any file.
19191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19192 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19196 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19208 # Handling of the options.
19209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19211 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19212 $as_echo "$ac_cs_version"; exit ;;
19213 --config | --confi | --conf | --con | --co | --c )
19214 $as_echo "$ac_cs_config"; exit ;;
19215 --debug | --debu | --deb | --de | --d | -d )
19217 --file | --fil | --fi | --f )
19220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19221 '') as_fn_error $? "missing file argument" ;;
19223 as_fn_append CONFIG_FILES " '$ac_optarg'"
19224 ac_need_defaults=false;;
19225 --header | --heade | --head | --hea )
19228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19230 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19231 ac_need_defaults=false;;
19233 # Conflict between --help and --header
19234 as_fn_error $? "ambiguous option: \`$1'
19235 Try \`$0 --help' for more information.";;
19236 --help | --hel | -h )
19237 $as_echo "$ac_cs_usage"; exit ;;
19238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19239 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19242 # This is an error.
19243 -*) as_fn_error $? "unrecognized option: \`$1'
19244 Try \`$0 --help' for more information." ;;
19246 *) as_fn_append ac_config_targets " $1"
19247 ac_need_defaults=false ;;
19253 ac_configure_extra_args=
19255 if $ac_cs_silent; then
19257 ac_configure_extra_args="$ac_configure_extra_args --silent"
19261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19262 if \$ac_cs_recheck; then
19263 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19265 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19266 CONFIG_SHELL='$SHELL'
19267 export CONFIG_SHELL
19272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19276 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19277 ## Running $as_me. ##
19283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19287 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19290 # The HP-UX ksh and POSIX shell print the target directory to stdout
19291 # if CDPATH is set.
19292 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19294 sed_quote_subst='$sed_quote_subst'
19295 double_quote_subst='$double_quote_subst'
19296 delay_variable_subst='$delay_variable_subst'
19297 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19298 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19299 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19300 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19301 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19302 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19303 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19304 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19305 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19306 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19307 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19308 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19309 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19310 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19311 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19312 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19313 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19314 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19315 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19316 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19317 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19318 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19319 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19320 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19321 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19322 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19323 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19324 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19325 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19326 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19327 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19328 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19329 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19330 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19331 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19332 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19333 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19334 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19335 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19336 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19337 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19338 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19339 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19340 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19341 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19342 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19343 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19344 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19345 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19346 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19347 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19348 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19349 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19350 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19351 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19352 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19353 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19354 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19355 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19356 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19357 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19358 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19359 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19360 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19361 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19362 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19363 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19364 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19365 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19366 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19367 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19368 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19369 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19370 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19371 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19372 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19373 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19374 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19375 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19376 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19377 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19378 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19379 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19380 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19381 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19382 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19383 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19384 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19385 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19386 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19387 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19388 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19389 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19390 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19391 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19392 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19393 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19394 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19395 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19396 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19397 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19398 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19399 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19400 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19401 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19402 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19403 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19404 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19405 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19406 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19407 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19408 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19409 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19410 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19411 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19412 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19413 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19414 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19415 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19416 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19417 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19418 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19419 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19420 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19421 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19422 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19423 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19424 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19425 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19426 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19429 LTCFLAGS='$LTCFLAGS'
19430 compiler='$compiler_DEFAULT'
19432 # A function that is used when there is no print builtin or printf.
19433 func_fallback_echo ()
19435 eval 'cat <<_LTECHO_EOF
19440 # Quote evaled strings.
19454 deplibs_check_method \
19459 sharedlib_from_linklib_cmd \
19462 archiver_list_spec \
19468 lt_cv_sys_global_symbol_pipe \
19469 lt_cv_sys_global_symbol_to_cdecl \
19470 lt_cv_sys_global_symbol_to_c_name_address \
19471 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19472 nm_file_list_spec \
19473 lt_prog_compiler_no_builtin_flag \
19474 lt_prog_compiler_pic \
19475 lt_prog_compiler_wl \
19476 lt_prog_compiler_static \
19477 lt_cv_prog_compiler_c_o \
19486 export_dynamic_flag_spec \
19487 whole_archive_flag_spec \
19488 compiler_needs_object \
19490 allow_undefined_flag \
19491 no_undefined_flag \
19492 hardcode_libdir_flag_spec \
19493 hardcode_libdir_flag_spec_ld \
19494 hardcode_libdir_separator \
19498 variables_saved_for_relink \
19500 library_names_spec \
19502 install_override_mode \
19506 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19507 *[\\\\\\\`\\"\\\$]*)
19508 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19511 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19516 # Double-quote double-evaled strings.
19517 for var in reload_cmds \
19518 old_postinstall_cmds \
19519 old_postuninstall_cmds \
19521 extract_expsyms_cmds \
19522 old_archive_from_new_cmds \
19523 old_archive_from_expsyms_cmds \
19525 archive_expsym_cmds \
19527 module_expsym_cmds \
19528 export_symbols_cmds \
19532 postuninstall_cmds \
19534 sys_lib_search_path_spec \
19535 sys_lib_dlsearch_path_spec; do
19536 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19537 *[\\\\\\\`\\"\\\$]*)
19538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19546 ac_aux_dir='$ac_aux_dir'
19547 xsi_shell='$xsi_shell'
19548 lt_shell_append='$lt_shell_append'
19550 # See if we are running on zsh, and set the options which allow our
19551 # commands through without removal of \ escapes INIT.
19552 if test -n "\${ZSH_VERSION+set}" ; then
19553 setopt NO_GLOB_SUBST
19559 TIMESTAMP='$TIMESTAMP'
19568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19570 # Handling of arguments.
19571 for ac_config_target in $ac_config_targets
19573 case $ac_config_target in
19574 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19575 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19576 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19577 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19578 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19579 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
19580 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19581 "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;;
19583 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19588 # If the user did not use the arguments to specify the items to instantiate,
19589 # then the envvar interface is used. Set only those that are not.
19590 # We use the long form for the default assignment because of an extremely
19591 # bizarre bug on SunOS 4.1.3.
19592 if $ac_need_defaults; then
19593 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19594 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19595 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19598 # Have a temporary directory for convenience. Make it in the build tree
19599 # simply because there is no reason against having it here, and in addition,
19600 # creating and moving files from /tmp can sometimes cause problems.
19601 # Hook for its removal unless debugging.
19602 # Note that there is a small window in which the directory will not be cleaned:
19603 # after its creation but before its name has been assigned to `$tmp'.
19607 trap 'exit_status=$?
19608 : "${ac_tmp:=$tmp}"
19609 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19611 trap 'as_fn_exit 1' 1 2 13 15
19613 # Create a (secure) tmp directory for tmp files.
19616 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19620 tmp=./conf$$-$RANDOM
19621 (umask 077 && mkdir "$tmp")
19622 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19625 # Set up the scripts for CONFIG_FILES section.
19626 # No need to generate them if there are no CONFIG_FILES.
19627 # This happens for instance with `./config.status config.h'.
19628 if test -n "$CONFIG_FILES"; then
19631 ac_cr=`echo X | tr X '\015'`
19632 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19633 # But we know of no other shell where ac_cr would be empty at this
19634 # point, so we can use a bashism as a fallback.
19635 if test "x$ac_cr" = x; then
19636 eval ac_cr=\$\'\\r\'
19638 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19639 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19642 ac_cs_awk_cr=$ac_cr
19645 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19650 echo "cat >conf$$subs.awk <<_ACEOF" &&
19651 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19653 } >conf$$subs.sh ||
19654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19655 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19657 for ac_last_try in false false false false false :; do
19658 . ./conf$$subs.sh ||
19659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19661 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19662 if test $ac_delim_n = $ac_delim_num; then
19664 elif $ac_last_try; then
19665 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19670 rm -f conf$$subs.sh
19672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19673 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19677 s/^/S["/; s/!.*/"]=/
19687 s/\(.\{148\}\)..*/\1/
19689 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19701 s/\(.\{148\}\)..*/\1/
19703 s/["\\]/\\&/g; s/^/"/; s/$/"/
19707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19712 ' <conf$$subs.awk | sed '
19717 ' >>$CONFIG_STATUS || ac_write_fail=1
19718 rm -f conf$$subs.awk
19719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19721 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19722 for (key in S) S_is_set[key] = 1
19728 nfields = split(line, field, "@")
19730 len = length(field[1])
19731 for (i = 2; i < nfields; i++) {
19733 keylen = length(key)
19734 if (S_is_set[key]) {
19736 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19737 len += length(value) + length(field[++i])
19748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19749 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19750 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19753 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19754 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19757 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19758 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19759 # trailing colons and then remove the whole line if VPATH becomes empty
19760 # (actually we leave an empty line to preserve line numbers).
19761 if test "x$srcdir" = x.; then
19762 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19781 fi # test -n "$CONFIG_FILES"
19783 # Set up the scripts for CONFIG_HEADERS section.
19784 # No need to generate them if there are no CONFIG_HEADERS.
19785 # This happens for instance with `./config.status Makefile'.
19786 if test -n "$CONFIG_HEADERS"; then
19787 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19791 # Transform confdefs.h into an awk script `defines.awk', embedded as
19792 # here-document in config.status, that substitutes the proper values into
19793 # config.h.in to produce config.h.
19795 # Create a delimiter string that does not exist in confdefs.h, to ease
19796 # handling of long lines.
19798 for ac_last_try in false false :; do
19799 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19800 if test -z "$ac_tt"; then
19802 elif $ac_last_try; then
19803 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19809 # For the awk script, D is an array of macro values keyed by name,
19810 # likewise P contains macro parameters if any. Preserve backslash
19811 # newline sequences.
19813 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19815 s/.\{148\}/&'"$ac_delim"'/g
19818 s/^[ ]*#[ ]*define[ ][ ]*/ /
19825 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19832 D["\1"]=" \3\\\\\\n"\\/p
19834 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19839 s/.\{148\}/&'"$ac_delim"'/g
19844 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19847 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19849 ' <confdefs.h | sed '
19850 s/'"$ac_delim"'/"\\\
19851 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19854 for (key in D) D_is_set[key] = 1
19857 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19859 split(line, arg, " ")
19860 if (arg[1] == "#") {
19864 defundef = substr(arg[1], 2)
19867 split(mac1, mac2, "(") #)
19869 prefix = substr(line, 1, index(line, defundef) - 1)
19870 if (D_is_set[macro]) {
19871 # Preserve the white space surrounding the "#".
19872 print prefix "define", macro P[macro] D[macro]
19875 # Replace #undef with comments. This is necessary, for example,
19876 # in the case of _POSIX_SOURCE, which is predefined and required
19877 # on some systems where configure will not decide to define it.
19878 if (defundef == "undef") {
19879 print "/*", prefix defundef, macro, "*/"
19887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19888 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19889 fi # test -n "$CONFIG_HEADERS"
19892 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19897 :[FHLC]) ac_mode=$ac_tag; continue;;
19899 case $ac_mode$ac_tag in
19901 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19902 :[FH]-) ac_tag=-:-;;
19903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19920 -) ac_f="$ac_tmp/stdin";;
19921 *) # Look for the file first in the build tree, then in the source tree
19922 # (if the path is not absolute). The absolute path cannot be DOS-style,
19923 # because $ac_f cannot contain `:'.
19927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19929 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19931 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19932 as_fn_append ac_file_inputs " '$ac_f'"
19935 # Let's still pretend it is `configure' which instantiates (i.e., don't
19936 # use $as_me), people would be surprised to read:
19937 # /* config.h. Generated by config.status. */
19938 configure_input='Generated from '`
19939 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19941 if test x"$ac_file" != x-; then
19942 configure_input="$ac_file. $configure_input"
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19944 $as_echo "$as_me: creating $ac_file" >&6;}
19946 # Neutralize special characters interpreted by sed in replacement strings.
19947 case $configure_input in #(
19948 *\&* | *\|* | *\\* )
19949 ac_sed_conf_input=`$as_echo "$configure_input" |
19950 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19951 *) ac_sed_conf_input=$configure_input;;
19955 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19961 ac_dir=`$as_dirname -- "$ac_file" ||
19962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19963 X"$ac_file" : 'X\(//\)[^/]' \| \
19964 X"$ac_file" : 'X\(//\)$' \| \
19965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19966 $as_echo X"$ac_file" |
19967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19971 /^X\(\/\/\)[^/].*/{
19984 as_dir="$ac_dir"; as_fn_mkdir_p
19988 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19990 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19991 # A ".." for each directory in $ac_dir_suffix.
19992 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19993 case $ac_top_builddir_sub in
19994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19998 ac_abs_top_builddir=$ac_pwd
19999 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20000 # for backward compatibility:
20001 ac_top_builddir=$ac_top_build_prefix
20004 .) # We are building in place.
20006 ac_top_srcdir=$ac_top_builddir_sub
20007 ac_abs_top_srcdir=$ac_pwd ;;
20008 [\\/]* | ?:[\\/]* ) # Absolute name.
20009 ac_srcdir=$srcdir$ac_dir_suffix;
20010 ac_top_srcdir=$srcdir
20011 ac_abs_top_srcdir=$srcdir ;;
20012 *) # Relative name.
20013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20014 ac_top_srcdir=$ac_top_build_prefix$srcdir
20015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20017 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20028 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20030 ac_MKDIR_P=$MKDIR_P
20032 [\\/$]* | ?:[\\/]* ) ;;
20033 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20038 # If the template does not know about datarootdir, expand it.
20039 # FIXME: This hack should be removed a few years after 2.60.
20040 ac_datarootdir_hack=; ac_datarootdir_seen=
20051 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20052 *datarootdir*) ac_datarootdir_seen=yes;;
20053 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20055 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20058 ac_datarootdir_hack='
20059 s&@datadir@&$datadir&g
20060 s&@docdir@&$docdir&g
20061 s&@infodir@&$infodir&g
20062 s&@localedir@&$localedir&g
20063 s&@mandir@&$mandir&g
20064 s&\\\${datarootdir}&$datarootdir&g' ;;
20068 # Neutralize VPATH when `$srcdir' = `.'.
20069 # Shell code in configure.ac might set extrasub.
20070 # FIXME: do we really want to maintain this feature?
20071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20072 ac_sed_extra="$ac_vpsub
20075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20078 s|@configure_input@|$ac_sed_conf_input|;t t
20079 s&@top_builddir@&$ac_top_builddir_sub&;t t
20080 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20081 s&@srcdir@&$ac_srcdir&;t t
20082 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20083 s&@top_srcdir@&$ac_top_srcdir&;t t
20084 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20085 s&@builddir@&$ac_builddir&;t t
20086 s&@abs_builddir@&$ac_abs_builddir&;t t
20087 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20088 s&@INSTALL@&$ac_INSTALL&;t t
20089 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20090 $ac_datarootdir_hack
20092 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20093 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20096 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20098 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20100 which seems to be undefined. Please make sure it is defined" >&5
20101 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20102 which seems to be undefined. Please make sure it is defined" >&2;}
20104 rm -f "$ac_tmp/stdin"
20106 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20107 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20115 if test x"$ac_file" != x-; then
20117 $as_echo "/* $configure_input */" \
20118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20119 } >"$ac_tmp/config.h" \
20120 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20121 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20123 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20126 mv "$ac_tmp/config.h" "$ac_file" \
20127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20130 $as_echo "/* $configure_input */" \
20131 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20132 || as_fn_error $? "could not create -" "$LINENO" 5
20134 # Compute "$ac_file"'s index in $config_headers.
20137 for _am_header in $config_headers :; do
20138 case $_am_header in
20139 $_am_arg | $_am_arg:* )
20142 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20145 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20146 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20147 X"$_am_arg" : 'X\(//\)[^/]' \| \
20148 X"$_am_arg" : 'X\(//\)$' \| \
20149 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20150 $as_echo X"$_am_arg" |
20151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20155 /^X\(\/\/\)[^/].*/{
20167 s/.*/./; q'`/stamp-h$_am_stamp_count
20170 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20171 $as_echo "$as_me: executing $ac_file commands" >&6;}
20176 case $ac_file$ac_mode in
20177 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20178 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20179 # are listed without --file. Let's play safe and only enable the eval
20180 # if we detect the quoting.
20181 case $CONFIG_FILES in
20182 *\'*) eval set x "$CONFIG_FILES" ;;
20183 *) set x $CONFIG_FILES ;;
20188 # Strip MF so we end up with the name of the file.
20189 mf=`echo "$mf" | sed -e 's/:.*$//'`
20190 # Check whether this is an Automake generated Makefile or not.
20191 # We used to match only the files named `Makefile.in', but
20192 # some people rename them; so instead we look at the file content.
20193 # Grep'ing the first line is not enough: some people post-process
20194 # each Makefile.in and add a new line on top of each file to say so.
20195 # Grep'ing the whole file is not good either: AIX grep has a line
20196 # limit of 2048, but all sed's we know have understand at least 4000.
20197 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20198 dirpart=`$as_dirname -- "$mf" ||
20199 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20200 X"$mf" : 'X\(//\)[^/]' \| \
20201 X"$mf" : 'X\(//\)$' \| \
20202 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20208 /^X\(\/\/\)[^/].*/{
20224 # Extract the definition of DEPDIR, am__include, and am__quote
20225 # from the Makefile without running `make'.
20226 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20227 test -z "$DEPDIR" && continue
20228 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20229 test -z "am__include" && continue
20230 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20231 # When using ansi2knr, U may be empty or an underscore; expand it
20232 U=`sed -n 's/^U = //p' < "$mf"`
20233 # Find all dependency output files, they are included files with
20234 # $(DEPDIR) in their names. We invoke sed twice because it is the
20235 # simplest approach to changing $(DEPDIR) to its actual value in the
20237 for file in `sed -n "
20238 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20239 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20240 # Make sure the directory exists.
20241 test -f "$dirpart/$file" && continue
20242 fdir=`$as_dirname -- "$file" ||
20243 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20244 X"$file" : 'X\(//\)[^/]' \| \
20245 X"$file" : 'X\(//\)$' \| \
20246 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20247 $as_echo X"$file" |
20248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20252 /^X\(\/\/\)[^/].*/{
20265 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20266 # echo "creating $dirpart/$file"
20267 echo '# dummy' > "$dirpart/$file"
20274 # See if we are running on zsh, and set the options which allow our
20275 # commands through without removal of \ escapes.
20276 if test -n "${ZSH_VERSION+set}" ; then
20277 setopt NO_GLOB_SUBST
20280 cfgfile="${ofile}T"
20281 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20284 cat <<_LT_EOF >> "$cfgfile"
20287 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20288 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20290 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20292 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20293 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20295 # Written by Gordon Matzigkeit, 1996
20297 # This file is part of GNU Libtool.
20299 # GNU Libtool is free software; you can redistribute it and/or
20300 # modify it under the terms of the GNU General Public License as
20301 # published by the Free Software Foundation; either version 2 of
20302 # the License, or (at your option) any later version.
20304 # As a special exception to the GNU General Public License,
20305 # if you distribute this file as part of a program or library that
20306 # is built using GNU Libtool, you may include this file under the
20307 # same distribution terms that you use for the rest of that program.
20309 # GNU Libtool is distributed in the hope that it will be useful,
20310 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20311 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20312 # GNU General Public License for more details.
20314 # You should have received a copy of the GNU General Public License
20315 # along with GNU Libtool; see the file COPYING. If not, a copy
20316 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20317 # obtained by writing to the Free Software Foundation, Inc.,
20318 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20321 # The names of the tagged configurations supported by this script.
20324 # ### BEGIN LIBTOOL CONFIG
20326 # Which release of libtool.m4 was used?
20327 macro_version=$macro_version
20328 macro_revision=$macro_revision
20330 # Whether or not to build shared libraries.
20331 build_libtool_libs=$enable_shared
20333 # Whether or not to build static libraries.
20334 build_old_libs=$enable_static
20336 # What type of objects to build.
20339 # Whether or not to optimize for fast installation.
20340 fast_install=$enable_fast_install
20342 # Shell to use when invoking shell scripts.
20345 # An echo program that protects backslashes.
20349 host_alias=$host_alias
20353 # The build system.
20354 build_alias=$build_alias
20358 # A sed program that does not truncate output.
20361 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20362 Xsed="\$SED -e 1s/^X//"
20364 # A grep program that handles long lines.
20370 # A literal string matcher.
20373 # A BSD- or MS-compatible name lister.
20376 # Whether we need soft or hard links.
20379 # What is the maximum length of a command?
20380 max_cmd_len=$max_cmd_len
20382 # Object file suffix (normally "o").
20385 # Executable file suffix (normally "").
20388 # whether the shell understands "unset".
20391 # turn spaces into newlines.
20394 # turn newlines into spaces.
20397 # convert \$build file names to \$host format.
20398 to_host_file_cmd=$lt_cv_to_host_file_cmd
20400 # convert \$build files to toolchain format.
20401 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20403 # An object symbol dumper.
20404 OBJDUMP=$lt_OBJDUMP
20406 # Method to check whether dependent libraries are shared objects.
20407 deplibs_check_method=$lt_deplibs_check_method
20409 # Command to use when deplibs_check_method = "file_magic".
20410 file_magic_cmd=$lt_file_magic_cmd
20412 # How to find potential files when deplibs_check_method = "file_magic".
20413 file_magic_glob=$lt_file_magic_glob
20415 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20416 want_nocaseglob=$lt_want_nocaseglob
20418 # DLL creation program.
20419 DLLTOOL=$lt_DLLTOOL
20421 # Command to associate shared and link libraries.
20422 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20427 # Flags to create an archive.
20428 AR_FLAGS=$lt_AR_FLAGS
20430 # How to feed a file listing to the archiver.
20431 archiver_list_spec=$lt_archiver_list_spec
20433 # A symbol stripping program.
20436 # Commands used to install an old-style archive.
20438 old_postinstall_cmds=$lt_old_postinstall_cmds
20439 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20441 # Whether to use a lock for old archive extraction.
20442 lock_old_archive_extraction=$lock_old_archive_extraction
20447 # LTCC compiler flags.
20448 LTCFLAGS=$lt_CFLAGS
20450 # Take the output of nm and produce a listing of raw symbols and C names.
20451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20453 # Transform the output of nm in a proper C declaration.
20454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20456 # Transform the output of nm in a C name address pair.
20457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20459 # Transform the output of nm in a C name address pair when lib prefix is needed.
20460 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20462 # Specify filename containing input files for \$NM.
20463 nm_file_list_spec=$lt_nm_file_list_spec
20465 # The root where to search for dependent libraries,and in which our libraries should be installed.
20466 lt_sysroot=$lt_sysroot
20468 # The name of the directory that contains temporary libtool files.
20471 # Used to examine libraries when file_magic_cmd begins with "file".
20472 MAGIC_CMD=$MAGIC_CMD
20474 # Must we lock files when doing compilation?
20475 need_locks=$lt_need_locks
20478 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20480 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20481 DSYMUTIL=$lt_DSYMUTIL
20483 # Tool to change global to local symbols on Mac OS X.
20486 # Tool to manipulate fat objects and archives on Mac OS X.
20489 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20492 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20493 OTOOL64=$lt_OTOOL64
20495 # Old archive suffix (normally "a").
20498 # Shared library suffix (normally ".so").
20499 shrext_cmds=$lt_shrext_cmds
20501 # The commands to extract the exported symbol list from a shared archive.
20502 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20504 # Variables whose values should be saved in libtool wrapper scripts and
20505 # restored at link time.
20506 variables_saved_for_relink=$lt_variables_saved_for_relink
20508 # Do we need the "lib" prefix for modules?
20509 need_lib_prefix=$need_lib_prefix
20511 # Do we need a version for libraries?
20512 need_version=$need_version
20514 # Library versioning type.
20515 version_type=$version_type
20517 # Shared library runtime path variable.
20518 runpath_var=$runpath_var
20520 # Shared library path variable.
20521 shlibpath_var=$shlibpath_var
20523 # Is shlibpath searched before the hard-coded library search path?
20524 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20526 # Format of library name prefix.
20527 libname_spec=$lt_libname_spec
20529 # List of archive names. First name is the real one, the rest are links.
20530 # The last name is the one that the linker finds with -lNAME
20531 library_names_spec=$lt_library_names_spec
20533 # The coded name of the library, if different from the real name.
20534 soname_spec=$lt_soname_spec
20536 # Permission mode override for installation of shared libraries.
20537 install_override_mode=$lt_install_override_mode
20539 # Command to use after installation of a shared archive.
20540 postinstall_cmds=$lt_postinstall_cmds
20542 # Command to use after uninstallation of a shared archive.
20543 postuninstall_cmds=$lt_postuninstall_cmds
20545 # Commands used to finish a libtool library installation in a directory.
20546 finish_cmds=$lt_finish_cmds
20548 # As "finish_cmds", except a single script fragment to be evaled but
20550 finish_eval=$lt_finish_eval
20552 # Whether we should hardcode library paths into libraries.
20553 hardcode_into_libs=$hardcode_into_libs
20555 # Compile-time system search path for libraries.
20556 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20558 # Run-time system search path for libraries.
20559 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20561 # Whether dlopen is supported.
20562 dlopen_support=$enable_dlopen
20564 # Whether dlopen of programs is supported.
20565 dlopen_self=$enable_dlopen_self
20567 # Whether dlopen of statically linked programs is supported.
20568 dlopen_self_static=$enable_dlopen_self_static
20570 # Commands to strip libraries.
20571 old_striplib=$lt_old_striplib
20572 striplib=$lt_striplib
20575 # The linker used to build libraries.
20578 # How to create reloadable object files.
20579 reload_flag=$lt_reload_flag
20580 reload_cmds=$lt_reload_cmds
20582 # Commands used to build an old-style archive.
20583 old_archive_cmds=$lt_old_archive_cmds
20585 # A language specific compiler.
20588 # Is the compiler the GNU compiler?
20591 # Compiler flag to turn off builtin functions.
20592 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20594 # Additional compiler flags for building library objects.
20595 pic_flag=$lt_lt_prog_compiler_pic
20597 # How to pass a linker flag through the compiler.
20598 wl=$lt_lt_prog_compiler_wl
20600 # Compiler flag to prevent dynamic linking.
20601 link_static_flag=$lt_lt_prog_compiler_static
20603 # Does compiler simultaneously support -c and -o options?
20604 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20606 # Whether or not to add -lc for building shared libraries.
20607 build_libtool_need_lc=$archive_cmds_need_lc
20609 # Whether or not to disallow shared libs when runtime libs are static.
20610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20612 # Compiler flag to allow reflexive dlopens.
20613 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20615 # Compiler flag to generate shared objects directly from archives.
20616 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20618 # Whether the compiler copes with passing no objects directly.
20619 compiler_needs_object=$lt_compiler_needs_object
20621 # Create an old-style archive from a shared archive.
20622 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20624 # Create a temporary old-style archive to link instead of a shared archive.
20625 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20627 # Commands used to build a shared archive.
20628 archive_cmds=$lt_archive_cmds
20629 archive_expsym_cmds=$lt_archive_expsym_cmds
20631 # Commands used to build a loadable module if different from building
20632 # a shared archive.
20633 module_cmds=$lt_module_cmds
20634 module_expsym_cmds=$lt_module_expsym_cmds
20636 # Whether we are building with GNU ld or not.
20637 with_gnu_ld=$lt_with_gnu_ld
20639 # Flag that allows shared libraries with undefined symbols to be built.
20640 allow_undefined_flag=$lt_allow_undefined_flag
20642 # Flag that enforces no undefined symbols.
20643 no_undefined_flag=$lt_no_undefined_flag
20645 # Flag to hardcode \$libdir into a binary during linking.
20646 # This must work even if \$libdir does not exist
20647 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20649 # If ld is used when linking, flag to hardcode \$libdir into a binary
20650 # during linking. This must work even if \$libdir does not exist.
20651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20653 # Whether we need a single "-rpath" flag with a separated argument.
20654 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20656 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20657 # DIR into the resulting binary.
20658 hardcode_direct=$hardcode_direct
20660 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20661 # DIR into the resulting binary and the resulting library dependency is
20662 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20663 # library is relocated.
20664 hardcode_direct_absolute=$hardcode_direct_absolute
20666 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20667 # into the resulting binary.
20668 hardcode_minus_L=$hardcode_minus_L
20670 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20671 # into the resulting binary.
20672 hardcode_shlibpath_var=$hardcode_shlibpath_var
20674 # Set to "yes" if building a shared library automatically hardcodes DIR
20675 # into the library and all subsequent libraries and executables linked
20677 hardcode_automatic=$hardcode_automatic
20679 # Set to yes if linker adds runtime paths of dependent libraries
20680 # to runtime path list.
20681 inherit_rpath=$inherit_rpath
20683 # Whether libtool must link a program against all its dependency libraries.
20684 link_all_deplibs=$link_all_deplibs
20686 # Set to "yes" if exported symbols are required.
20687 always_export_symbols=$always_export_symbols
20689 # The commands to list exported symbols.
20690 export_symbols_cmds=$lt_export_symbols_cmds
20692 # Symbols that should not be listed in the preloaded symbols.
20693 exclude_expsyms=$lt_exclude_expsyms
20695 # Symbols that must always be exported.
20696 include_expsyms=$lt_include_expsyms
20698 # Commands necessary for linking programs (against libraries) with templates.
20699 prelink_cmds=$lt_prelink_cmds
20701 # Commands necessary for finishing linking programs.
20702 postlink_cmds=$lt_postlink_cmds
20704 # Specify filename containing input files.
20705 file_list_spec=$lt_file_list_spec
20707 # How to hardcode a shared library path into an executable.
20708 hardcode_action=$hardcode_action
20710 # ### END LIBTOOL CONFIG
20716 cat <<\_LT_EOF >> "$cfgfile"
20717 # AIX sometimes has problems with the GCC collect2 program. For some
20718 # reason, if we set the COLLECT_NAMES environment variable, the problems
20719 # vanish in a puff of smoke.
20720 if test "X${COLLECT_NAMES+set}" != Xset; then
20722 export COLLECT_NAMES
20729 ltmain="$ac_aux_dir/ltmain.sh"
20732 # We use sed instead of cat because bash on DJGPP gets confused if
20733 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20734 # text mode, it properly converts lines to CR/LF. This bash problem
20735 # is reportedly fixed, but why not run on old versions too?
20736 sed '$q' "$ltmain" >> "$cfgfile" \
20737 || (rm -f "$cfgfile"; exit 1)
20739 if test x"$xsi_shell" = xyes; then
20740 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20744 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20745 \ * ) func_dirname_result="${3}" ;;\
20747 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20748 && mv -f "$cfgfile.tmp" "$cfgfile" \
20749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20750 test 0 -eq $? || _lt_function_replace_fail=:
20753 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20756 \ func_basename_result="${1##*/}"\
20757 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20758 && mv -f "$cfgfile.tmp" "$cfgfile" \
20759 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20760 test 0 -eq $? || _lt_function_replace_fail=:
20763 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20764 func_dirname_and_basename ()\
20767 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20768 \ * ) func_dirname_result="${3}" ;;\
20770 \ func_basename_result="${1##*/}"\
20771 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20772 && mv -f "$cfgfile.tmp" "$cfgfile" \
20773 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20774 test 0 -eq $? || _lt_function_replace_fail=:
20777 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20780 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20781 \ # positional parameters, so assign one to ordinary parameter first.\
20782 \ func_stripname_result=${3}\
20783 \ func_stripname_result=${func_stripname_result#"${1}"}\
20784 \ func_stripname_result=${func_stripname_result%"${2}"}\
20785 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20786 && mv -f "$cfgfile.tmp" "$cfgfile" \
20787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20788 test 0 -eq $? || _lt_function_replace_fail=:
20791 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20792 func_split_long_opt ()\
20794 \ func_split_long_opt_name=${1%%=*}\
20795 \ func_split_long_opt_arg=${1#*=}\
20796 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20797 && mv -f "$cfgfile.tmp" "$cfgfile" \
20798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20799 test 0 -eq $? || _lt_function_replace_fail=:
20802 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20803 func_split_short_opt ()\
20805 \ func_split_short_opt_arg=${1#??}\
20806 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20807 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20808 && mv -f "$cfgfile.tmp" "$cfgfile" \
20809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20810 test 0 -eq $? || _lt_function_replace_fail=:
20813 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20817 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20818 \ *) func_lo2o_result=${1} ;;\
20820 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20821 && mv -f "$cfgfile.tmp" "$cfgfile" \
20822 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20823 test 0 -eq $? || _lt_function_replace_fail=:
20826 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20829 func_xform_result=${1%.*}.lo\
20830 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20831 && mv -f "$cfgfile.tmp" "$cfgfile" \
20832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20833 test 0 -eq $? || _lt_function_replace_fail=:
20836 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20839 func_arith_result=$(( $* ))\
20840 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20841 && mv -f "$cfgfile.tmp" "$cfgfile" \
20842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20843 test 0 -eq $? || _lt_function_replace_fail=:
20846 sed -e '/^func_len ()$/,/^} # func_len /c\
20849 func_len_result=${#1}\
20850 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20851 && mv -f "$cfgfile.tmp" "$cfgfile" \
20852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20853 test 0 -eq $? || _lt_function_replace_fail=:
20857 if test x"$lt_shell_append" = xyes; then
20858 sed -e '/^func_append ()$/,/^} # func_append /c\
20861 eval "${1}+=\\${2}"\
20862 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20863 && mv -f "$cfgfile.tmp" "$cfgfile" \
20864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20865 test 0 -eq $? || _lt_function_replace_fail=:
20868 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20869 func_append_quoted ()\
20871 \ func_quote_for_eval "${2}"\
20872 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20873 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20874 && mv -f "$cfgfile.tmp" "$cfgfile" \
20875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20876 test 0 -eq $? || _lt_function_replace_fail=:
20879 # Save a `func_append' function call where possible by direct use of '+='
20880 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20881 && mv -f "$cfgfile.tmp" "$cfgfile" \
20882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20883 test 0 -eq $? || _lt_function_replace_fail=:
20885 # Save a `func_append' function call even when '+=' is not available
20886 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20887 && mv -f "$cfgfile.tmp" "$cfgfile" \
20888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20889 test 0 -eq $? || _lt_function_replace_fail=:
20892 if test x"$_lt_function_replace_fail" = x":"; then
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20894 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20898 mv -f "$cfgfile" "$ofile" ||
20899 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20910 ac_clean_files=$ac_clean_files_save
20912 test $ac_write_fail = 0 ||
20913 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20916 # configure is writing to config.log, and then calls config.status.
20917 # config.status does its own redirection, appending to config.log.
20918 # Unfortunately, on DOS this fails, as config.log is still kept open
20919 # by configure, so config.status won't be able to write to it; its
20920 # output is simply discarded. So we exec the FD to /dev/null,
20921 # effectively closing config.log, so it can be properly (re)opened and
20922 # appended to by config.status. When coming back to configure, we
20923 # need to make the FD available again.
20924 if test "$no_create" != yes; then
20926 ac_config_status_args=
20927 test "$silent" = yes &&
20928 ac_config_status_args="$ac_config_status_args --quiet"
20930 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20932 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20933 # would make configure fail if this is the last instruction.
20934 $ac_cs_success || as_fn_exit 1
20936 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20938 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}